6b8276c4fbfc2cd68233f73035dc0d497d42d2ff
[gnulib.git] / ChangeLog
1 2007-10-06  Bruno Haible  <bruno@clisp.org>
2
3         * modules/freopen-tests: New file.
4         * tests/test-freopen.c: New file.
5
6         * modules/fopen-tests: New file.
7         * tests/test-fopen.c: New file.
8
9         * modules/fopen: New file.
10         * lib/fopen.c: New file.
11         * m4/fopen.m4: New file.
12         * modules/freopen: New file.
13         * lib/freopen.c: New file.
14         * m4/freopen.m4: New file.
15         * lib/stdio.in.h (fopen, freopen): New declarations.
16         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
17         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
18         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
19         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
20         * doc/functions/fopen.texi: Mention the 'fopen' module.
21         * doc/functions/freopen.texi: Mention the 'freopen' module.
22
23 2007-10-06  Bruno Haible  <bruno@clisp.org>
24
25         * modules/open-tests: New file.
26         * tests/test-open.c: New file.
27
28         * modules/open: New file.
29         * lib/open.c: New file.
30         * m4/open.m4: New file.
31         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32         lib/open.c does.
33         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
34         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35         macros.
36         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
37         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38         REPLACE_OPEN.
39         * doc/functions/open.texi: Mention the 'open' module.
40
41 2007-10-04  Bruno Haible  <bruno@clisp.org>
42
43         * modules/ceill-tests: New file.
44         * tests/test-ceill.c: New file.
45
46         * modules/ceill: New file.
47         * lib/ceill.c: Replace entire file.
48         * m4/ceill.m4: New file.
49         * lib/math.in.h (ceill): Replace declaration.
50         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52         * doc/functions/ceill.texi: Mention the 'ceill' module.
53         * modules/mathl (Files): Remove lib/ceill.c.
54         (Depends-on): Add ceill.
55
56 2007-10-04  Bruno Haible  <bruno@clisp.org>
57
58         * modules/ceilf-tests: New file.
59         * tests/test-ceilf.c: New file.
60
61         * modules/ceilf: New file.
62         * lib/ceil.c: New file.
63         * lib/ceilf.c: New file.
64         * m4/ceilf.m4: New file.
65         * lib/math.in.h (ceilf): New declaration.
66         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67         HAVE_DECL_CEILF.
68         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
69         HAVE_DECL_CEILF.
70         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
71
72 2007-10-04  Bruno Haible  <bruno@clisp.org>
73
74         * modules/floorl-tests: New file.
75         * tests/test-floorl.c: New file.
76
77         * modules/floorl: New file.
78         * lib/floorl.c: Replace entire file.
79         * m4/floorl.m4: New file.
80         * lib/math.in.h (floorl): Replace declaration.
81         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
82         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
83         * doc/functions/floorl.texi: Mention the 'floorl' module.
84         * modules/mathl (Files): Remove lib/floorl.c.
85         (Depends-on): Add floorl.
86
87 2007-10-04  Bruno Haible  <bruno@clisp.org>
88
89         * modules/floorf-tests: New file.
90         * tests/test-floorf.c: New file.
91
92         * modules/floorf: New file.
93         * lib/floor.c: New file.
94         * lib/floorf.c: New file.
95         * m4/floorf.m4: New file.
96         * lib/math.in.h (floorf): New declaration.
97         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
98         HAVE_DECL_FLOORF.
99         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100         HAVE_DECL_FLOORF.
101         * doc/functions/floorf.texi: Mention the 'floorf' module.
102
103 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
104             Bruno Haible  <bruno@clisp.org>
105
106         Advertise for the Git server instead of the CVS server.
107         * doc/gnulib-intro.texi (Steady Development): Mention the Git
108         repository instead of the CVS one.
109         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
110         about all VCS systems generically.
111         * doc/gnulib.texi (Introduction): Capitalize `Git'.
112
113 2007-10-04  Bruno Haible  <bruno@clisp.org>
114
115         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
116         means.
117         Reported by BenoĆ®t Sigoure <tsuna@lrde.epita.fr>.
118
119 2007-10-04  Bruno Haible  <bruno@clisp.org>
120
121         * modules/truncl-tests: New file.
122         * tests/test-truncl.c: New file.
123
124         * modules/truncl: New file.
125         * lib/truncl.c: New file.
126         * m4/truncl.m4: New file.
127         * lib/math.in.h (truncl): New declaration.
128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
129         HAVE_DECL_TRUNCL.
130         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
131         HAVE_DECL_TRUNCL.
132         * doc/functions/truncl.texi: Mention the 'truncl' module.
133
134 2007-10-04  Bruno Haible  <bruno@clisp.org>
135
136         * modules/truncf-tests: New file.
137         * tests/test-truncf.c: New file.
138
139         * modules/truncf: New file.
140         * lib/trunc.c: Make paramerizable through USE_* macros.
141         * lib/truncf.c: New file.
142         * m4/truncf.m4: New file.
143         * lib/math.in.h (truncf): New declaration.
144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
145         HAVE_DECL_TRUNCF.
146         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
147         HAVE_DECL_TRUNCF.
148         * doc/functions/truncf.texi: Mention the 'truncf' module.
149
150 2007-10-03  Bruno Haible  <bruno@clisp.org>
151
152         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
153         augmentation also for tests modules.
154         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
155         * modules/atexit-tests (Makefile.am): Likewise.
156         * modules/binary-io-tests (Makefile.am): Likewise.
157         * modules/c-strcase-tests (Makefile.am): Likewise.
158         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
159         * modules/canonicalize-tests (Makefile.am): Likewise.
160         * modules/closein-tests (Makefile.am): Likewise.
161         * modules/fprintf-posix-tests (Makefile.am): Likewise.
162         * modules/freadahead-tests (Makefile.am): Likewise.
163         * modules/fseek-tests (Makefile.am): Likewise.
164         * modules/fseeko-tests (Makefile.am): Likewise.
165         * modules/ftell-tests (Makefile.am): Likewise.
166         * modules/ftello-tests (Makefile.am): Likewise.
167         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
168         * modules/isnanl-tests (Makefile.am): Likewise.
169         * modules/lseek-tests (Makefile.am): Likewise.
170         * modules/mbscasecmp-tests (Makefile.am): Likewise.
171         * modules/mbscasestr-tests (Makefile.am): Likewise.
172         * modules/mbschr-tests (Makefile.am): Likewise.
173         * modules/mbscspn-tests (Makefile.am): Likewise.
174         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
175         * modules/mbspbrk-tests (Makefile.am): Likewise.
176         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
177         * modules/mbsrchr-tests (Makefile.am): Likewise.
178         * modules/mbsspn-tests (Makefile.am): Likewise.
179         * modules/mbsstr-tests (Makefile.am): Likewise.
180         * modules/printf-posix-tests (Makefile.am): Likewise.
181         * modules/snprintf-posix-tests (Makefile.am): Likewise.
182         * modules/sprintf-posix-tests (Makefile.am): Likewise.
183         * modules/tsearch-tests (Makefile.am): Likewise.
184         * modules/uniname/uniname-tests (Makefile.am): Likewise.
185         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
186         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
187         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
188         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
189         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
190         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
191         * modules/vprintf-posix-tests (Makefile.am): Likewise.
192         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
193         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
194         * modules/xstrtoimax-tests (Makefile.am): Likewise.
195         * modules/xstrtol-tests (Makefile.am): Likewise.
196         * modules/xstrtoumax-tests (Makefile.am): Likewise.
197         * modules/yesno-tests (Makefile.am): Likewise.
198
199 2007-10-03  Bruno Haible  <bruno@clisp.org>
200
201         * modules/trunc-tests: New file.
202         * tests/test-trunc.c: New file.
203
204         * modules/trunc: New file.
205         * lib/trunc.c: New file.
206         * m4/trunc.m4: New file.
207         * lib/math.in.h (trunc): New declaration.
208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
209         HAVE_DECL_TRUNC.
210         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
211         HAVE_DECL_TRUNC.
212         * doc/functions/trunc.texi: Mention the 'trunc' module.
213
214 2007-10-03  Bruno Haible  <bruno@clisp.org>
215
216         * tests/test-fpending.c: New file, mostly copied
217         from coreutils/lib/t-fpending.c.
218         * modules/fpending-tests: New file.
219
220 2007-10-03  Bruno Haible  <bruno@clisp.org>
221
222         Port the stdio extensions to QNX (untested).
223         * lib/fseterr.c (fseterr): Add support for QNX.
224         * lib/fbufmode.c (fbufmode): Likewise.
225         * lib/freadable.c (freadable): Likewise.
226         * lib/fwritable.c (fwritable): Likewise.
227         * lib/freading.c (freading): Likewise.
228         * lib/fwriting.c (fwriting): Likewise.
229         * lib/freadahead.c (freadahed): Likewise.
230         * lib/fpurge.c (fpurge): Likewise.
231         * lib/fseeko.c (rpl_fseeko): Likewise.
232
233 2007-10-03  Bruno Haible  <bruno@clisp.org>
234             Jim Meyering  <jim@meyering.net>
235             Eric Blake  <ebb9@byu.net>
236
237         * doc/relocatable.texi: Use @command instead of @program.
238
239 2007-10-02  Jim Meyering  <jim@meyering.net>
240
241         Perform one more "_.h" -> ".in.h" substitution.
242         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
243         instead of unistd_.h here, too.
244
245 2007-10-01  Bruno Haible  <bruno@clisp.org>
246
247         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
248         Needed for the alloca-opt module.
249
250 2007-09-30  Bruno Haible  <bruno@clisp.org>
251
252         * lib/alloca.in.h: Renamed from lib/alloca_.h.
253         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
254         alloca_.h.
255         * lib/argz.in.h: Renamed from lib/argz_.h.
256         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
257         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
258         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
259         byteswap_.h.
260         * lib/dirent.in.h: Renamed from lib/dirent_.h.
261         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
262         dirent_.h.
263         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
264         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
265         fcntl_.h.
266         * lib/float.in.h: Renamed from lib/float_.h.
267         * modules/float (Files, Makefile.am): Use float.in.h instead of
268         float_.h.
269         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
270         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
271         fnmatch_.h.
272         * lib/getopt.in.h: Renamed from lib/getopt_.h.
273         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
274         getopt_.h.
275         * lib/glob.in.h: Renamed from lib/glob_.h.
276         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
277         * lib/iconv.in.h: Renamed from lib/iconv_.h.
278         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
279         iconv_.h.
280         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
281         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
282         inttypes_.h.
283         * lib/locale.in.h: Renamed from lib/locale_.h.
284         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
285         locale_.h.
286         * lib/math.in.h: Renamed from lib/math_.h.
287         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
288         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
289         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
290         of netinet_in_.h. Add dependency.
291         * lib/poll.in.h: Renamed from lib/poll_.h.
292         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
293         * lib/search.in.h: Renamed from lib/search_.h.
294         * modules/search (Files, Makefile.am): Use search.in.h instead of
295         search_.h.
296         * lib/signal.in.h: Renamed from lib/signal_.h.
297         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
298         _signal.h.
299         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
300         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
301         stdbool_.h.
302         * lib/stdint.in.h: Renamed from lib/stdint_.h.
303         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
304         stdint_.h.
305         * lib/stdio.in.h: Renamed from lib/stdio_.h.
306         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
307         stdio_.h.
308         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
309         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
310         stdlib_.h.
311         * lib/string.in.h: Renamed from lib/string_.h.
312         * modules/string (Files, Makefile.am): Use string.in.h instead of
313         string_.h.
314         * doc/gnulib-tool.texi (Initial import): Update.
315         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
316         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
317         of sys_select_.h. Add dependency.
318         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
319         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
320         of sys_socket_.h.
321         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
322         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
323         sys_stat_.h.
324         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
325         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
326         sys_time_.h.
327         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
328         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
329         sysexits_.h.
330         * lib/time.in.h: Renamed from lib/time_.h.
331         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
332         * lib/unistd.in.h: Renamed from lib/unistd_.h.
333         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
334         unistd_.h.
335         * lib/wchar.in.h: Renamed from lib/wchar_.h.
336         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
337         wchar_.h.
338         * lib/wctype.in.h: Renamed from lib/wctype_.h.
339         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
340         wctype_.h.
341         * build-aux/bootstrap (slurp): Update.
342         * lib/.cppi-disable: Update.
343
344 2007-09-30  Bruno Haible  <bruno@clisp.org>
345
346         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
347         Needed on BeOS.
348
349 2007-09-30  Bruno Haible  <bruno@clisp.org>
350
351         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
352
353 2007-09-29  Bruno Haible  <bruno@clisp.org>
354
355         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
356
357 2007-09-29  Bruno Haible  <bruno@clisp.org>
358
359         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
360         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
361         * build-aux/install-reloc: Compile also areadlink.c.
362         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
363
364 2007-09-29  Bruno Haible  <bruno@clisp.org>
365
366         * gnulib-tool (func_emit_initmacro_done): Indentation.
367
368 2007-09-29  Bruno Haible  <bruno@clisp.org>
369
370         * README: Add CVS checkout update instructions.
371         Info from Bob Proulx <bob@proulx.com>.
372
373 2007-09-28  Eric Blake  <ebb9@byu.net>
374
375         Provide move-if-change.
376         * build-aux/move-if-change: New file, based on best practice
377         rather than any canonical upstream location.
378
379 2007-09-28  Jim Meyering  <jim@meyering.net>
380
381         Fix canonicalize loop-detection corner case.
382         Do not attempt to stat the symlink values stored via seen_triple.
383         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
384         on linux-2.6.18, (but not 2.6.22).
385         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
386         triple_compare.  The former compares dev,ino,filename, while the latter
387         would actually stat dirname(filename) when dev and ino were equal.
388         * lib/hash-triple.c: Install <string.h>.
389         (STREQ): Define.
390         (triple_compare_ino_str): New function.
391         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
392
393 2007-09-28  Eric Blake  <ebb9@byu.net>
394
395         Enforce that AC_REPLACE_FUNCS files exist.
396         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
397         override check for typos.
398
399         Fix test-closein on Solaris 10.
400         * tests/test-closein.c (main): Don't assume stdin can be inherited
401         closed on all systems.
402         * tests/test-closein.sh: Likewise.
403         Reported by Piotr Tarnowski.
404
405 2007-09-28  Jim Meyering  <jim@meyering.net>
406
407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
408
409 2007-09-27  Jim Meyering  <jim@meyering.net>
410
411         canonicalize: Avoid a false-positive cycle failure.
412         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
413         Sort.  Remove cycle-check.
414         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
415         not cycle-check.h.
416         (seen_triple): New function.
417         (canonicalize_filename_mode): Use it instead of cycle-check.
418         * tests/test-canonicalize.c: Add a test for this bug.
419         * tests/test-canonicalize.sh: Set up and run the test.
420
421         New module, file-set, from coreutils.
422         * modules/file-set: Define it.
423         * lib/file-set.c, lib/file-set.h: Implement.
424
425         New module, hash-triple, from coreutils.
426         * modules/hash-triple: Define it.
427         * lib/hash-triple.c, lib/hash-triple.h: Implement.
428
429 2007-09-25  Eric Blake  <ebb9@byu.net>
430
431         Fix strerror on Interix.
432         * lib/string_.h (strerror): Declare replacement.
433         * doc/functions/strerror.texi (strerror): Document the Interix
434         shortcoming.
435         * modules/string (Makefile.am): Support new hooks.
436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
437         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
438         gl_FUNC_STRERROR_SEPARATE.
439         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
440         * lib/strerror.c (rpl_strerror): Provide replacement.
441         * modules/strerror (Depends-on): Add string.
442         (configure.ac): Detect use of module.
443         * tests/test-strerror.c: New file.
444         * modules/strerror-tests: New test module.
445         * modules/argp (Depends-on): Add strerror.
446         * modules/error (Depends-on): Likewise.
447         Reported by Martin Koeppe.
448
449 2007-09-24  Bruno Haible  <bruno@clisp.org>
450
451         * README: Update git instructions.
452
453 2007-09-24  Eric Blake  <ebb9@byu.net>
454
455         Revert fpending breakage from 2007-09-08.
456         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
457         __fpending.c.
458
459 2007-09-24  Jim Meyering  <jim@meyering.net>
460
461         filenamecat.c: Add a test.
462         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
463         showing how the function works when DIR is the empty string.
464
465 2007-09-21  Simon Josefsson  <simon@josefsson.org>
466
467         * tests/test-canonicalize.sh: Turn on executable bit.
468
469 2007-09-19  Eric Blake  <ebb9@byu.net>
470
471         * README: Update CVS instructions.
472
473 2007-09-18  Bruno Haible  <bruno@clisp.org>
474
475         * modules/areadlink: New file.
476         * lib/areadlink.h (areadlink): New declaration.
477         * lib/areadlink.c: New file, based on lib/xreadlink.c.
478
479 2007-09-17  Jim Meyering  <jim@meyering.net>
480
481         * lib/savewd.c (ESTALE) [!defined]: Define.
482         Reported to be required on Interix by Martin Koeppe.
483
484 2007-09-17  Bruno Haible  <bruno@clisp.org>
485
486         * gnulib-tool (func_version): Use $version.
487
488 2007-09-16  Bruno Haible  <bruno@clisp.org>
489
490         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
491         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
492         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
493         Reported by Greg Schafer <gschafer@zip.com.au>.
494
495 2007-09-15  Bruno Haible  <bruno@clisp.org>
496
497         * gnulib-tool (sed): Try a little harder to make bash understand the
498         alias.
499         Reported by Bruce Korb <bruce.korb@gmail.com>.
500
501 2007-09-13  Eric Blake  <ebb9@byu.net>
502
503         * ChangeLog: Remove conflict markers.
504
505 2007-09-13  Simon Josefsson  <simon@josefsson.org>
506
507         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
508         Reported by Bruno Haible <bruno@clisp.org>.
509
510 2007-09-12  Bruno Haible  <bruno@clisp.org>
511
512         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
513         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
514         is not defined.
515
516 2007-09-12  Eric Blake  <ebb9@byu.net>
517
518         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
519         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
520         Autoconf definition.
521         * modules/euidaccess (Depends-on): Add extensions, for
522         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
523         * modules/fnmatch (Depends-on): Likewise.
524         * modules/getaddrinfo (Depends-on): Likewise.
525         * modules/getdelim (Depends-on): Likewise.
526         * modules/getline (Depends-on): Likewise.
527         * modules/getsubopt (Depends-on): Likewise.
528         * modules/gettext (Depends-on): Likewise.
529         * modules/group-member (Depends-on): Likewise.
530         * modules/mbchar (Depends-on): Likewise.
531         * modules/memmem (Depends-on): Likewise.
532         * modules/mempcpy (Depends-on): Likewise.
533         * modules/memrchr (Depends-on): Likewise.
534         * modules/pagealign_alloc (Depends-on): Likewise.
535         * modules/readutmp (Depends-on): Likewise.
536         * modules/stpcpy (Depends-on): Likewise.
537         * modules/stpncpy (Depends-on): Likewise.
538         * modules/strchrnul (Depends-on): Likewise.
539         * modules/strndup (Depends-on): Likewise.
540         * modules/strsep (Depends-on): Likewise.
541         * modules/strverscmp (Depends-on): Likewise.
542         * modules/vasprintf (Depends-on): Likewise.
543         * modules/wcwidth (Depends-on): Likewise.
544         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
545         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
546         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
547         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
548         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
549         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
550         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
551         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
552         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
553         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
554         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
555         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
556         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
557         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
558         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
559         * m4/readutmp.m4 (gl_READUTMP): Likewise.
560         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
561         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
563         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
564         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
565         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
566         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
567         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
568         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
570         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
571         so that lock.m4 can be used in gettext without extensions module.
572
573 2007-09-11  Bruno Haible  <bruno@clisp.org>
574
575         * m4/isc-posix.m4: Remove file.
576         Suggested by Eric Blake.
577
578 2007-09-11  Eric Blake  <ebb9@byu.net>
579
580         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
581
582 2007-09-10  Bruno Haible  <bruno@clisp.org>
583
584         * posix-modules: Fix typo in error message.
585         Reported by Matt <mkraai@beckman.com>.
586
587 2007-09-09  Bruno Haible  <bruno@clisp.org>
588
589         * doc/functions/getdelim.texi: Update list of platforms lacking the
590         function.
591         * doc/functions/getline.texi: Likewise.
592
593 2007-09-09  Jim Meyering  <jim@meyering.net>
594
595         * lib/hash.c (hash_initialize): Detect calloc failure.
596         Reported by Bruno Haible.
597
598 2007-09-09  Bruno Haible  <bruno@clisp.org>
599
600         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
601         malloc or realloc fails.
602
603 2007-09-09  Bruno Haible  <bruno@clisp.org>
604
605         * modules/getcwd (Depends-on): Add malloc-posix.
606         * modules/glob (Depends-on): Likewise.
607         * modules/putenv (Depends-on): Likewise.
608         * modules/strdup (Depends-on): Likewise.
609         * modules/getdelim (Depends-on): Add realloc-posix.
610         * modules/read-file (Depends-on): Likewise.
611
612 2007-09-09  Bruno Haible  <bruno@clisp.org>
613
614         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
615         (gl_FUNC_MALLOC_POSIX): Require it.
616         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
617         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
618         * modules/realloc (Files): Add m4/malloc.m4.
619         * modules/calloc (Files): Likewise.
620
621 2007-09-09  Bruno Haible  <bruno@clisp.org>
622
623         * modules/malloc-posix: New file.
624         * modules/malloc (Depends-on): Add malloc-posix.
625         * lib/malloc.c: Include errno.h.
626         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
627         and a POSIX-compatible malloc into a single function. Set ENOMEM
628         when returning NULL.
629         * m4/malloc.m4: New file.
630         * doc/functions/malloc.texi: Mention the malloc-posix module.
631         * lib/stdlib_.h (malloc): New declaration.
632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
633         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
634         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
635         and HAVE_MALLOC_POSIX.
636
637 2007-09-09  Bruno Haible  <bruno@clisp.org>
638
639         * modules/realloc-posix: New file.
640         * modules/realloc (Depends-on): Add realloc-posix.
641         * lib/realloc.c: Include errno.h.
642         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
643         and a POSIX-compatible realloc into a single function. Set ENOMEM
644         when returning NULL.
645         * m4/realloc.m4: New file.
646         * doc/functions/realloc.texi: Mention the realloc-posix module.
647         * lib/stdlib_.h (realloc): New declaration.
648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
649         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
650         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
651         and HAVE_REALLOC_POSIX.
652
653 2007-09-09  Bruno Haible  <bruno@clisp.org>
654
655         * modules/calloc-posix: New file.
656         * modules/calloc (Depends-on): Add calloc-posix.
657         * lib/calloc.c: Include errno.h.
658         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
659         and a POSIX-compatible calloc into a single function. Set ENOMEM
660         when returning NULL.
661         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
662         * doc/functions/calloc.texi: Mention the calloc-posix module.
663         * lib/stdlib_.h (calloc): New declaration.
664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
665         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
666         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
667         and HAVE_CALLOC_POSIX.
668
669 2007-09-09  Bruno Haible  <bruno@clisp.org>
670
671         Allow for modules to show an arbitrary notice.
672         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
673         * gnulib-tool: New option --extract-notice.
674         (func_usage): Document it.
675         (sed_extract_prog): Update.
676         (func_get_notice): New function.
677         (func_modules_notice): New function.
678         (func_import, func_create_testdir): Invoke it.
679         Suggested by Jim Meyering.
680
681 2007-09-09  Bruno Haible  <bruno@clisp.org>
682
683         * gnulib-tool: New options --verbose, --quiet.
684         (func_usage): Document them.
685         (verbose): New variable.
686         (func_execute_command): New function.
687         (func_import): Don't show the module list and the file list if
688         $verbose < 0.
689         (func_create_testdir): Likewise. Use func_execute_command.
690         (func_create_megatestdir): Use func_execute_command.
691
692 2007-09-08  Bruno Haible  <bruno@clisp.org>
693
694         * gnulib-tool (func_import): Prefer rsync over wget when available,
695         for fetching the PO files.
696
697 2007-09-08  Bruno Haible  <bruno@clisp.org>
698
699         * posix-modules: New file. Portions copied from gnulib-tool.
700         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
701
702 2007-09-08  Jim Meyering  <jim@meyering.net>
703
704         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
705         * lib/fpending.h: Rename from __fpending.h.
706         * lib/fpending.c: Rename from __fpending.c.
707         Include "fpending.h", not "__fpending.h".
708         * lib/__fpending.h, lib/__fpending.c: Remove files.
709         * modules/fpending (Files): Reflect new file names.
710         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
711
712 2007-09-08  Bruno Haible  <bruno@clisp.org>
713
714         * m4/inttypes-h.m4: Remove stub file.
715
716 2007-09-07  Simon Josefsson  <simon@josefsson.org>
717
718         * doc/headers/stdint.texi: Discuss #include_next issue.
719
720 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
721
722         * build-aux/bootstrap: Remove obsolete comment about wget --help.
723
724 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
725
726         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
727         in variable name.
728
729 2007-09-03  Jim Meyering  <jim@meyering.net>
730
731         New module: git-version-gen.
732         * modules/git-version-gen: New file.
733
734         Import changes from coreutils for bootstrap script.
735
736         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
737
738         bootstrap: uses rsync to download the .po files
739         * build-aux/bootstrap (po_download_command_format): New global.
740         (download_po_files): Use rsync.
741         (update_po_files): Don't remove .po files after download,
742         so future rsync runs can take advantage of the copies.
743
744         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
745
746         Solve the unnecessary-.po-file-regeneration problem once and for all.
747         * build-aux/bootstrap (download_po_files): New function, renamed from
748         get_translations.  Now, downloads, but doesn't update LINGUAS.
749         (update_po_files): New function.
750
751         bootstrap: Ignore more.
752         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
753         uniwidth to e.g., lib/.gitignore.
754         (slurp): Handle the sys_stat_.h -> sys mapping, too.
755
756         * build-aux/bootstrap: New setting: vc_ignore.
757         (insert_sorted_if_absent): Create $file if absent.
758         Adapt to new, possibly empty, list: $vc_ignore.
759
760         bootstrap: generate more ignorable names
761         * build-aux/bootstrap (slurp): When generating ignorable names,
762         also map .sin to .sed, .gperf to .c, and .y to .c.
763
764 2007-09-03  Jim Meyering  <jim@meyering.net>
765
766         * build-aux/git-version-gen: New file, from coreutils.  For details, see
767         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
768
769 2007-09-02  Bruno Haible  <bruno@clisp.org>
770
771         Fix mis-recognition of 'mcs' on QNX 6.
772         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
773         output contains the string "Mono".
774         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
775         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
776
777 2007-09-01  Bruno Haible  <bruno@clisp.org>
778
779         Fix collision between uniwidth/* and linebreak modules.
780         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
781         u32_width): Remove declarations.
782         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
783         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
784         streq3, streq2, streq1, streq0): Remove functions.
785         (STREQ): Remove macro.
786         (is_cjk_encoding): Remove function.
787         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
788         (uc_width, u8_width, u16_width, u32_width): Remove functions.
789         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
790         * NEWS: Document the change.
791
792 2007-09-01  Bruno Haible  <bruno@clisp.org>
793
794         * lib/streq.h: Add double-inclusion guard.
795
796 2007-09-01  Karl Berry  <karl@gnu.org>
797
798         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
799
800 2007-08-28  Jim Meyering  <jim@meyering.net>
801
802         Rename mreadlink_with_size to areadlink_with_size.
803         * NEWS: Document the change.
804         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
805         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
806         * lib/mreadlink.h: Rename this to...
807         * lib/areadlink.h: ...this.
808         * modules/mreadlink-with-size: Rename this to...
809         * modules/areadlink-with-size: ...this.
810         * lib/canonicalize.c: Reflect the renaming.
811         * modules/canonicalize: Likewise.
812
813 2007-08-26  Bruno Haible  <bruno@clisp.org>
814
815         * gnulib-tool (func_import): When deciding which files to remove,
816         consider also dangling symbolic links.
817         Reported by Eric Blake.
818
819 2007-08-26  Bruno Haible  <bruno@clisp.org>
820
821         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
822
823 2007-08-23  Simon Josefsson  <simon@josefsson.org>
824
825         * lib/readline.c: Don't include getline.h, the prototype is now
826         found in stdio.h.
827
828 2007-08-23  Jim Meyering  <jim@meyering.net>
829
830         Getdelim touchup.
831         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
832         around the funlockfile call, since funlockfile never sets errno.
833         Don't set errno upon failed realloc.
834
835 2007-08-22  Eric Blake  <ebb9@byu.net>
836
837         Getline touchups.
838         * lib/getdelim.c (getdelim): Revert regression that required *n to
839         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
840         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
841         getdelim, rather than whether implementation is missing.
842         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
843         * lib/stdio_.h (getline): Also declare if replacement is
844         required.
845         * doc/functions/getdelim.texi: New file.
846         * doc/functions/getline.texi: Likewise.
847         * doc/gnulib.texi (Function Substitutes): Add new files.
848         Reported by Bruno Haible.
849
850 2007-08-22  Ludovic CourtĆØs  <ludo@gnu.org>
851
852         * users.txt: Add Guile.
853
854 2007-08-22  Eric Blake  <ebb9@byu.net>
855
856         * tests/test-getdelim.c (main): Use remove, not unlink.
857         * tests/test-getline.c (main): Likewise.
858
859         Move getline and getdelim into stdio.h, per POSIX 200x.
860         * modules/getline (Files): Remove getline.h.
861         (Depends-on): Add stdio.
862         (configure.ac): Add module indicator.
863         * modules/getdelim (Files): Remove getdelim.h.
864         (Depends-on): Add stdio.
865         (configure.ac): Add module indicator.
866         * modules/stdio (Makefile.am): Work with new indicators.
867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
868         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
869         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
870         * lib/getdelim.h: Delete.
871         * lib/getline.h: Delete.
872         * lib/stdio_.h (getdelim, getline): Declare.
873         * modules/getdelim-tests: New module.
874         * modules/getline-tests: Likewise.
875         * tests/test-getdelim.c: New file.
876         * tests/test-getline.c: Likewise.
877         * NEWS: Document the change.
878         * lib/getline.c: Update choice of header.
879         * lib/csharpcomp.c: Likewise.
880         * lib/getpass.c: Likewise.
881         * lib/javacomp.c: Likewise.
882         * lib/javaversion.c: Likewise.
883         * lib/yesno.c: Likewise.
884         * lib/getdelim.c: Likewise.
885         (getdelim): Set errno on failure, and avoid memory leak.
886
887 2007-08-19  Bruno Haible  <bruno@clisp.org>
888
889         * modules/closein (Depends-on): Add freadahead.
890         * lib/closein.c: Include freadahead.h.
891         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
892         is zero.
893
894 2007-08-19  Bruno Haible  <bruno@clisp.org>
895
896         * modules/freadahead-tests: New file.
897         * tests/test-freadahead.sh: New file.
898         * tests/test-freadahead.c: New file.
899
900         * modules/freadahead: New file.
901         * lib/freadahead.h: New file.
902         * lib/freadahead.c: New file.
903         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
904         fbufmode, fpurge, freadable, fwritable.
905
906 2007-08-19  Eric Blake  <ebb9@byu.net>
907
908         Test yesno in combination with closein.
909         * lib/yesno.c (yesno): Document use of stdin.
910         * modules/yesno-tests (Files): New module.
911         * tests/test-yesno.c (main): New file.
912         * tests/test-yesno.sh: Likewise.
913
914 2007-08-19  Bruno Haible  <bruno@clisp.org>
915
916         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
917         * lib/fseeko.c (rpl_fseeko): Likewise.
918         * lib/fseterr.c (fseterr): Likewise.
919
920 2007-08-19  Bruno Haible  <bruno@clisp.org>
921
922         * tests/test-lseek.c (main): Disable a test for BeOS.
923         * doc/functions/lseek.texi: Document the BeOS bug.
924
925 2007-08-19  Bruno Haible  <bruno@clisp.org>
926             Eric Blake  <ebb9@byu.net>
927
928         * lib/lseek.c: Include <sys/stat.h>.
929         (rpl_lseek): Add workaround code also for Unix platforms.
930         Needed for BeOS.
931         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
932         * doc/functions/lseek.texi: Document BeOS definiency.
933
934 2007-08-18  Bruno Haible  <bruno@clisp.org>
935
936         * modules/fstrcmp-tests: New file.
937         * tests/test-fstrcmp.c: New file.
938
939 2007-08-18  Bruno Haible  <bruno@clisp.org>
940
941         * modules/fstrcmp: New file, from GNU gettext with modifications.
942         * lib/fstrcmp.h: New file, from GNU gettext.
943         * lib/fstrcmp.c: New file, from GNU gettext.
944         * MODULES.html.sh (String handling): Add fstrcmp.
945
946 2007-08-18  Bruno Haible  <bruno@clisp.org>
947
948         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
949         'bool'.
950         (diag, compareseq): Remove const from the ctxt argument.
951         (USE_HEURISTIC): Undefine at the end.
952
953 2007-08-18  Jim Meyering  <jim@meyering.net>
954
955         New file: lib/idcache.h
956         * NEWS: Mention the addition.
957         * modules/idcache (Files): Add lib/idcache.h
958         * lib/idcache.c: Include "idcache.h".
959         Don't include <sys/types.h>.
960         Add a FIXME comment.
961         Move file-scoped "static" declarations to the top.
962         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
963
964 2007-08-17  Bruno Haible  <bruno@clisp.org>
965         and Paul Eggert  <eggert@cs.ucla.edu>
966
967         * MODULES.html.sh: Add diffseq.
968         * modules/diffseq: New file.
969         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
970         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
971
972 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
973
974         Import changes from coreutils for bootstrap script.
975
976         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
977
978         * build-aux/bootstrap (slurp): Work even in environments where
979         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
980         current code does not slurp files whose names start with ".", and
981         this looks like it might be a troublesome area.
982
983         2007-07-11  Jim Meyering  <jim@meyering.net>
984
985         If there's a GPL vN copyright comment, require that N == 3.
986
987         2007-07-08  Jim Meyering  <jim@meyering.net>
988
989         Run the coreutils-specific code only if tests/Makefile.am.in exists.
990         * build-aux/bootstrap (mam_template): Move definition out of loop.
991
992         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
993
994         * build-aux/bootstrap (symlink_to_dir): Rename function from
995         symlink_to_gnulib.  Add a directory parameter.  Update all
996         callers.
997         (cp_mark_as_generated): Also check for -- and link to -- files in
998         gl/.
999
1000         2007-07-08  Jim Meyering  <jim@meyering.net>
1001
1002         Adapt to deeper hierarchy in gnulib.
1003         * build-aux/bootstrap (symlink_to_dir): If the destination
1004         directory doesn't exist, create it. This is required at least for
1005         "lib/uniwidth/cjk.h".
1006
1007         2007-05-15  Jim Meyering  <jim@meyering.net>
1008
1009         * build-aux/bootstrap: Now that generated Makefile.am files
1010         are no longer under version control, they must be created at
1011         bootstrap time.
1012
1013 2007-08-14  Ben Pfaff  <blp@gnu.org>
1014
1015         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
1016
1017 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
1018
1019         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
1020         given the changes below.
1021         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
1022         even on hosts that have padding bits beyond the supported 64.
1023
1024 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1025
1026         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
1027         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
1028         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
1029         depends on it.
1030         (xstrtol_error): Remove.
1031         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
1032         but with a different signature.
1033         (ATTRIBUTE_NORETURN, __attribute__): New macros.
1034         * lib/xstrtol-error.c: Include exitfail.h.
1035         (xstrtol_fatal): New function, with a different signature from the
1036         old xstrtol_error, so that the caller need not worry about passing
1037         in an exit status, or about storage management of the option argument.
1038         (xstrtol_error): Now a static function.  Redo signature to
1039         implement xstrtol_fatal.  Output the correct number of hyphens in
1040         front of the option so that the caller need not worry about
1041         storage management.
1042         (N_): New macro.
1043         (_): Remove; not used now.
1044         * modules/xstrtol: Depend on getopt.
1045         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
1046         of old STRTOL_FATAL_ERROR macro.
1047         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
1048         of test program.
1049         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
1050         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
1051
1052 2007-08-08  Eric Blake  <ebb9@byu.net>
1053
1054         * lib/xstrtol-error.c: Add missing include.
1055
1056         Move xstrtol messages into gnulib domain, when --pobase is used.
1057         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
1058         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
1059         * modules/xstrtol (Files): Distribute new file.
1060         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
1061         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
1062         * tests/test-xstrtol.c: ...into new file.
1063         * tests/test-xstrtoul.c: Also test xstrtoul.
1064         * tests/test-xstrtoimax.c: Also test xstrtoimax.
1065         * tests/test-xstrtoumax.c: Also test xstrtoumax.
1066         * tests/test-xstrtol.sh: Drive the tests.
1067         * tests/test-xstrtoimax.sh: Likewise.
1068         * tests/test-xstrtoumax.sh: Likewise.
1069         * modules/xstrtol-tests: New module.
1070         * modules/xstrtoimax-tests: Likewise.
1071         * modules/xstrtoumax-tests: Likewise.
1072
1073 2007-08-08  Jim Meyering  <jim@meyering.net>
1074
1075         New function: mfile_name_concat.
1076         * lib/filenamecat.c (mfile_name_concat): New function, just like
1077         file_name_concat, but return NULL upon failure rather than exiting
1078         with a diagnostic.
1079         * lib/filenamecat.h: Declare it.
1080
1081 2007-08-07  Bruno Haible  <bruno@clisp.org>
1082
1083         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
1084         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
1085         warning from gcc.
1086         Reported by Eric Blake.
1087
1088 2007-08-07  Simon Josefsson  <simon@josefsson.org>
1089
1090         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
1091         * modules/crypto/arcfour (License): Likewise.
1092         * modules/crypto/des-tests (License): Likewise.
1093         * modules/crypto/gc-arctwo-tests (License): Likewise.
1094         * modules/crypto/gc-des-tests (License): Likewise.
1095         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
1096         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
1097         * modules/crypto/gc-md2-tests (License): Likewise.
1098         * modules/crypto/gc-md4-tests (License): Likewise.
1099         * modules/crypto/gc-md5-tests (License): Likewise.
1100         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
1101         * modules/crypto/gc-rijndael-tests (License): Likewise.
1102         * modules/crypto/gc-sha1-tests (License): Likewise.
1103         * modules/crypto/gc-tests (License): Likewise.
1104         * modules/crypto/hmac-md5 (License): Likewise.
1105         * modules/crypto/hmac-sha1 (License): Likewise.
1106         * modules/crypto/md2-tests (License): Likewise.
1107         * modules/crypto/md4-tests (License): Likewise.
1108         * modules/crypto/md5 (License): Likewise.
1109         * modules/crypto/rijndael (License): Likewise.
1110         * modules/crypto/sha1 (License): Likewise.
1111         * modules/memxor (License): Likewise.
1112
1113 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1114         and Bruno Haible  <bruno@clisp.org>
1115
1116         * NEWS: Describe interface changes to human, xstrtol.
1117         * lib/human.h: Include <xstrtol.h>.
1118         (human_options): Return enum strtol_error, not int.  Remove
1119         bool arg; take int * instead.
1120         * lib/human.c: Don't include "gettext.h".
1121         (_): Remove; no longer used.
1122         Don't include <xstrtol.h>, since human.h does it.
1123         (human_options): Adjust to abovementioned interface changes.
1124         Do not report error to stderr; that's now the caller's
1125         responsibility.
1126         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
1127         interface change.
1128         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
1129         Str, Argument_type_string.  All uses changed.  Put " argument"
1130         in diagnostics to make them clearer.  Change wording of suffix
1131         message for clarity.
1132         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
1133         Argument_type_string.
1134         (STRTOL_FATAL_WARN): Remove; no longer used.
1135         * modules/human (Depends-on): Remove gettext-h.
1136
1137 2007-08-06  Simon Josefsson  <simon@josefsson.org>
1138
1139         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
1140
1141 2007-07-31  Bruno Haible  <bruno@clisp.org>
1142
1143         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
1144         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
1145         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
1146
1147 2007-07-31  Bruno Haible  <bruno@clisp.org>
1148
1149         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
1150         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
1151
1152 2007-07-30  Bruno Haible  <bruno@clisp.org>
1153
1154         * modules/base64 (License): Use the synonymous term "LGPLv2+".
1155         * modules/c-ctype (License): Likewise.
1156         * modules/c-strcase (License): Likewise.
1157         * modules/check-version (License): Likewise.
1158         * modules/iconv (License): Likewise.
1159         * modules/iconv_open (License): Likewise.
1160         * modules/read-file (License): Likewise.
1161         * modules/striconv (License): Likewise.
1162         * modules/strverscmp (License): Likewise.
1163         * modules/vasprintf (License): Likewise.
1164         * modules/crypto/des (License): Likewise.
1165         * modules/crypto/gc (License): Likewise.
1166         * modules/crypto/gc-arcfour (License): Likewise.
1167         * modules/crypto/gc-arctwo (License): Likewise.
1168         * modules/crypto/gc-des (License): Likewise.
1169         * modules/crypto/gc-hmac-md5 (License): Likewise.
1170         * modules/crypto/gc-hmac-sha1 (License): Likewise.
1171         * modules/crypto/gc-md2 (License): Likewise.
1172         * modules/crypto/gc-md4 (License): Likewise.
1173         * modules/crypto/gc-md5 (License): Likewise.
1174         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
1175         * modules/crypto/gc-random (License): Likewise.
1176         * modules/crypto/gc-rijndael (License): Likewise.
1177         * modules/crypto/gc-sha1 (License): Likewise.
1178         * modules/crypto/md2 (License): Likewise.
1179         * modules/crypto/md4 (License): Likewise.
1180
1181 2007-07-30  Jim Meyering  <jim@meyering.net>
1182
1183         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
1184         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
1185         it has valid stat data.  This bug would cause du not to count the
1186         sizes of inaccessible directories.
1187         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
1188         in <http://bugzilla.redhat.com/250077>.
1189
1190 2007-07-25  Peter O'Gorman  <peter@pogma.com>
1191             Bruno Haible  <bruno@clisp.org>
1192
1193         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
1194         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
1195         #include_next, gives a diagnostic about it, but reports no error in
1196         the exit code.
1197         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
1198
1199 2007-07-24  Ben Pfaff  <blp@gnu.org>
1200
1201         Improve name: "count-one-bits" is better than "popcount".
1202         * MODULES.html.sh: Update name.
1203         * lib/popcount.h: Renamed lib/count-one-bits.h.
1204         (popcount): Renamed count_one_bits.
1205         (popcountl): Renamed count_one_bits_l.
1206         (popcountll): Renamed count_one_bits_ll.
1207         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
1208         * modules/popcount: Renamed module/count-one-bits.
1209         * modules/popcount-tests: Renamed module/count-one-bits-tests.
1210         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
1211
1212 2007-07-23  Ben Pfaff  <blp@gnu.org>
1213
1214         * lib/popcount.h (popcount32): Reduce size of constants, to allow
1215         better code generation, and add U to large constants to avoid
1216         warnings, in non-GCC case.
1217         Suggested by Bruno Haible.
1218
1219 2007-07-23  Ben Pfaff  <blp@gnu.org>
1220
1221         * lib/popcount.h: Use verify_true instead of if...abort.
1222         * modules/popcount: Depend on verify module.
1223         Suggested by Jim Meyering.
1224
1225 2007-07-23  Bruno Haible  <bruno@clisp.org>
1226
1227         * gnulib-tool (func_import): Create a .cvsignore file also when the
1228         directory is not yet in CVS but the toplevel directory is. When
1229         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
1230         Reported by Karl Berry.
1231
1232 2007-07-22  Ben Pfaff  <blp@gnu.org>
1233
1234         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
1235         case.
1236         Suggested by Eric Blake.
1237
1238 2007-07-22  Ben Pfaff  <blp@gnu.org>
1239
1240         New module: popcount.
1241         * MODULES.html.sh: Add popcount.
1242         * modules/popcount: New file.
1243         * modules/popcount-tests: New file.
1244         * tests/test-popcount.c: New file.
1245         * lib/popcount.h: New file.
1246         * m4/popcount.m4: New file.
1247
1248 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1249
1250         * build-aux/announce-gen: Update to GPLv3.
1251
1252         * build-aux/config.guess: Update from config.
1253
1254 2007-07-21  Bruno Haible  <bruno@clisp.org>
1255
1256         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
1257         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
1258
1259 2007-07-20  Jim Meyering  <jim@meyering.net>
1260
1261         * check-module: Diagnose a self-dependency.
1262
1263 2007-07-19  Bruno Haible  <bruno@clisp.org>
1264
1265         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
1266         empty.
1267         Reported by Eric Blake.
1268
1269 2007-07-18  Bruno Haible  <bruno@clisp.org>
1270
1271         * gnulib-tool: New options --po-base, --po-domain.
1272         (func_usage): Document them.
1273         (pobase, po_domain): New variables.
1274         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
1275         DEFAULT_TEXT_DOMAIN.
1276         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
1277         (func_import): Consider pobase and po_domain. Create a po/ directory.
1278         (func_create_testdir): Set pobase and po_domain to empty.
1279         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
1280         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
1281
1282 2007-07-18  Bruno Haible  <bruno@clisp.org>
1283
1284         * gnulib-tool (func_get_automake_snippet): Synthesize also an
1285         EXTRA_DIST augmentation for files in build-aux/.
1286
1287 2007-07-16  Bruno Haible  <bruno@clisp.org>
1288
1289         * modules/lseek (License): Use the synonymous term "LGPLv2+".
1290         * modules/getdelim (License): Likewise.
1291
1292 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1293
1294         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
1295         * modules/d-type (License): Likewise.
1296         * modules/extensions (License): Likewise.
1297         * modules/fnmatch (License): Likewise.
1298         * modules/fseeko (License): Likewise.
1299         * modules/getaddrinfo (License): Likewise.
1300         * modules/getline (License): Likewise.
1301         * modules/getlogin_r (License): Likewise.
1302         * modules/getpass (License): Likewise.
1303         * modules/gettimeofday (License): Likewise.
1304         * modules/glob (License): Likewise.
1305         * modules/inet_ntop (License): Likewise.
1306         * modules/malloc (License): Likewise.
1307         * modules/malloca (License): Likewise.
1308         * modules/memmem (License): Likewise.
1309         * modules/mempcpy (License): Likewise.
1310         * modules/memset (License): Likewise.
1311         * modules/minmax (License): Likewise.
1312         * modules/mktime (License): Likewise.
1313         * modules/netinet_in (License): Likewise.
1314         * modules/pathmax (License): Likewise.
1315         * modules/poll (License): Likewise.
1316         * modules/regex (License): Likewise.
1317         * modules/snprintf (License): Likewise.
1318         * modules/stdbool (License): Likewise.
1319         * modules/stdint (License): Likewise.
1320         * modules/stdio (License): Likewise.
1321         * modules/strcase (License): Likewise.
1322         * modules/strcasestr (License): Likewise.
1323         * modules/strdup (License): Likewise.
1324         * modules/string (License): Likewise.
1325         * modules/strndup (License): Likewise.
1326         * modules/strnlen (License): Likewise.
1327         * modules/strpbrk (License): Likewise.
1328         * modules/strptime (License): Likewise.
1329         * modules/strsep (License): Likewise.
1330         * modules/sys_select (License): Likewise.
1331         * modules/sys_socket (License): Likewise.
1332         * modules/sys_stat (License): Likewise.
1333         * modules/sys_time (License): Likewise.
1334         * modules/time (License): Likewise.
1335         * modules/time_r (License): Likewise.
1336         * modules/timegm (License): Likewise.
1337         * modules/unistd (License): Likewise.
1338         * modules/vsnprintf (License): Likewise.
1339         * modules/wctype (License): Likewise.
1340
1341 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1342
1343         * modules/argz (License): LGPLv2+.
1344
1345 2007-07-15  Karl Berry  <karl@gnu.org>
1346
1347         * doc/gnulib.texi: revise node structure per new fdl.texi.
1348
1349 2007-07-14  Bruno Haible  <bruno@clisp.org>
1350
1351         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
1352         the output file.
1353         * lib/uniname/uninames.h: Regenerated.
1354
1355 2007-07-14  Karl Berry  <karl@gnu.org>
1356
1357         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
1358         omitting sectioning and index commands.
1359
1360 2007-07-13  Bruno Haible  <bruno@clisp.org>
1361
1362         New gnulib-tool option --more-symlinks.
1363         * gnulib-tool (func_usage): Document --more-symlinks.
1364         (do_copyrights): New variable.
1365         Recognize option --more-symlinks.
1366         (func_import): Don't add a copyright notice transform to
1367         sed_transform_lib_file if do_copyrights is empty.
1368
1369 2007-07-13  Bruno Haible  <bruno@clisp.org>
1370
1371         * lib/vasnprintf.c (decimal_point_char): Define also if
1372         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
1373         && !NEED_PRINTF_DIRECTIVE_A.
1374         Reported by Clemens Koller <clemens.koller@anagramm.de> via
1375         Gary V. Vaughan <gary@gnu.org>.
1376
1377 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
1378
1379         * lib/inttypes_.h: Undo previous change, since it was fixed
1380         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
1381
1382 2007-07-13  Bruno Haible  <bruno@clisp.org>
1383
1384         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
1385         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
1386
1387 2007-07-13  Jim Meyering  <jim@meyering.net>
1388
1389         df: Don't fail for Tru64's "file-on-file mount".
1390         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
1391         so we fall through and use statfs instead.  Details here:
1392         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
1393         Reported by Albert Chin.
1394
1395 2007-07-13  Bruno Haible  <bruno@clisp.org>
1396
1397         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
1398         * modules/configmake (License): Likewise.
1399         * modules/gettext (License): Likewise.
1400         * modules/gettext-h (License): Likewise.
1401         * modules/include_next (License): Likewise.
1402         * modules/link-warning (License): Likewise.
1403         * modules/localcharset (License): Likewise.
1404         * modules/localename (License): Likewise.
1405         * modules/lock (License): Likewise.
1406         * modules/relocatable-lib-lgpl (License): Likewise.
1407         * modules/size_max (License): Likewise.
1408         * modules/vasnprintf (License): Likewise.
1409         * modules/wchar (License): Likewise.
1410         * modules/xsize (License): Likewise.
1411
1412 2007-07-13  Bruno Haible  <bruno@clisp.org>
1413
1414         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
1415         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
1416
1417 2007-07-12  Bruno Haible  <bruno@clisp.org>
1418
1419         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
1420         in the modules files.
1421
1422 2007-07-11  Karl Berry  <karl@gnu.org>
1423
1424         * MODULES.html.sh (func_module): use
1425          sed -e '\|^'"${includefile}"'$|d'
1426          instead of /.../d, to avoid errors on $includefile's containing /.
1427
1428 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
1429
1430         * gnulib-tool (func_import): Avoid duplication of --avoid
1431         statements
1432         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
1433         names to `_' in variable names.
1434
1435 2007-07-10  Eric Blake  <ebb9@byu.net>
1436
1437         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
1438         * NEWS: Document this change.
1439
1440 2007-07-08  Bruno Haible  <bruno@clisp.org>
1441
1442         Update to Unicode 5.0.
1443         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
1444         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
1445         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
1446         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
1447         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
1448         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
1449         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
1450         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
1451         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
1452         U+10A3F, U+1D242..U+1D244.
1453         (nonspacing_table_ind): Update.
1454         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
1455         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
1456
1457 2007-07-08  Bruno Haible  <bruno@clisp.org>
1458
1459         Update to Unicode 5.0.
1460         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
1461         code transform. Extend the name index field of unicode_name_to_code and
1462         unicode_code_to_name from 16 to 24 bits.
1463         * lib/uniname/uniname.c (unicode_character_name,
1464         unicode_name_character): Add the range 0x12xxx to the code transform.
1465         * lib/uniname/uninames.h: Regenerated.
1466         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
1467
1468 2007-07-07  Bruno Haible  <bruno@clisp.org>
1469
1470         * modules/wcwidth-tests: New file.
1471         * tests/test-wcwidth.c: New file.
1472
1473         Work around MacOS X wcwidth() bug.
1474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
1475         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
1476         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
1477         original wcwidth in non-UTF-8 locales.
1478         * modules/wcwidth (Depends-on): Add localcharset, streq,
1479         uniwidth/width.
1480         * doc/functions/wcwidth.texi: Update.
1481
1482 2007-07-07  Bruno Haible  <bruno@clisp.org>
1483
1484         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
1485         (wcwidth): New declaration.
1486         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
1487         macros.
1488         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
1489         here. Prepare for creating <wchar.h> unconditionally.
1490         * modules/wchar (Depends-on): Add link-warning.
1491         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
1492         REPLACE_WCWIDTH, and GL_LINK_WARNING.
1493         * lib/wcwidth.h: Remove file.
1494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
1495         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
1496         * modules/wcwidth (Files): Remove lib/wcwidth.h.
1497         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
1498         (Include): Replace wcwidth.h with <wchar.h>.
1499         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
1500         * lib/mbchar.h: Don't include wcwidth.h.
1501         * lib/mbswidth.c: Likewise.
1502         * NEWS: Mention the change.
1503
1504 2007-07-07  Bruno Haible  <bruno@clisp.org>
1505
1506         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
1507         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
1508         definition with an external declaration.
1509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
1510         defined as a function. Remove AC_C_INLINE requirement.
1511         * modules/wcwidth (Files): Add lib/wcwidth.c.
1512         (Makefile.am): Remove redundant statement.
1513
1514 2007-07-07  Bruno Haible  <bruno@clisp.org>
1515
1516         * MODULES.html.sh (Unicode string functions): Add the new modules.
1517
1518         * tests/uniwidth/test-u32-strwidth.c: New file.
1519         * modules/uniwidth/u32-strwidth-tests: New file.
1520
1521         * lib/uniwidth/u32-strwidth.c: New file.
1522         * modules/uniwidth/u32-strwidth: New file.
1523
1524         * tests/uniwidth/test-u16-strwidth.c: New file.
1525         * modules/uniwidth/u16-strwidth-tests: New file.
1526
1527         * lib/uniwidth/u16-strwidth.c: New file.
1528         * modules/uniwidth/u16-strwidth: New file.
1529
1530         * tests/uniwidth/test-u8-strwidth.c: New file.
1531         * modules/uniwidth/u8-strwidth-tests: New file.
1532
1533         * lib/uniwidth/u8-strwidth.c: New file.
1534         * modules/uniwidth/u8-strwidth: New file.
1535
1536         * tests/uniwidth/test-u32-width.c: New file.
1537         * modules/uniwidth/u32-width-tests: New file.
1538
1539         * lib/uniwidth/u32-width.c: New file.
1540         * modules/uniwidth/u32-width: New file.
1541
1542         * tests/uniwidth/test-u16-width.c: New file.
1543         * modules/uniwidth/u16-width-tests: New file.
1544
1545         * lib/uniwidth/u16-width.c: New file.
1546         * modules/uniwidth/u16-width: New file.
1547
1548         * tests/uniwidth/test-u8-width.c: New file.
1549         * modules/uniwidth/u8-width-tests: New file.
1550
1551         * lib/uniwidth/u8-width.c: New file.
1552         * modules/uniwidth/u8-width: New file.
1553
1554         * tests/uniwidth/test-uc_width.c: New file.
1555         * modules/uniwidth/width-tests: New file.
1556
1557         * lib/uniwidth/width.c: New file, from GNU libiconv.
1558         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
1559         * modules/uniwidth/width: New file.
1560
1561         * lib/uniwidth.h: New file, from GNU libiconv.
1562         * modules/uniwidth/base: New file.
1563
1564 2007-07-07  Bruno Haible  <bruno@clisp.org>
1565
1566         * lib/uniname.h: New file, from GNU gettext.
1567         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
1568         * lib/uniname/uninames.h: New file, from GNU gettext.
1569         * lib/uniname/uniname.c: New file, from GNU gettext.
1570         * tests/uniname/test-uninames.sh: New file.
1571         * tests/uniname/test-uninames.c: New file, from GNU gettext.
1572         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
1573         * modules/uniname/base: New file.
1574         * modules/uniname/uniname: New file.
1575         * modules/uniname/uniname-tests: New file.
1576         * MODULES.html.sh (Unicode string functions): Add the new modules.
1577
1578 2007-07-06  Bruno Haible  <bruno@clisp.org>
1579
1580         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
1581
1582 2007-07-06  Bruno Haible  <bruno@clisp.org>
1583
1584         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
1585         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
1586         includes <cygwin/sys_time.h> which includes <sys/select.h> which
1587         include <sys/time.h>.
1588         Reported by Eric Blake.
1589
1590 2007-07-06  Eric Blake  <ebb9@byu.net>
1591
1592         Fix testing canonicalize on cygwin.
1593         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1594         Revert patch from 2007-06-19.
1595         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
1596         canonicalize module is also in use.
1597         * tests/test-canonicalize.c: New file.
1598         * tests/test-canonicalize.sh: Likewise.
1599         * modules/canonicalize-tests: Likewise.
1600
1601 2007-07-06  Jim Meyering  <jim@meyering.net>
1602
1603         * lib/getugroups.c (getugroups): Detect getgrent failure.
1604         Adjust comment to reflect reality: this function may return -1.
1605
1606 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1607
1608         * build-aux/bootstrap (TP_URL,get_translations): Update to use
1609         the new TP address.
1610         (usage): Fix typo
1611         (gnulib_mk): New variable.
1612
1613 2007-07-05  Jim Meyering  <jim@meyering.net>
1614
1615         Don't let endgrent clobber errno, no matter how improbable.
1616         * lib/getugroups.c (getugroups): Save and restore errno around
1617         endgrent call.
1618
1619         Close the group DB even when failing with 2^31 or more members.
1620         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
1621
1622 2007-07-04  Jim Meyering  <jim@meyering.net>
1623
1624         * lib/getugroups.h: New file.
1625         * lib/getugroups.c: Include "getugroups.h".
1626         Remove uses of "register" keyword.
1627         Move local variable, "cp", down into scope where used.
1628         Give "username" parameter the "const" attribute.
1629         * modules/getugroups (Files): Add lib/getugroups.h
1630
1631 2007-07-04  Karl Berry  <karl@gnu.org>
1632
1633         * MODULES.html.sh (func_all_modules): Complete rename of
1634         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
1635
1636 2007-07-02  Bruno Haible  <bruno@clisp.org>
1637
1638         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
1639         mode, when inttypes.h comes from gnulib.
1640         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1641
1642 2007-07-02  Simon Josefsson  <simon@josefsson.org>
1643
1644         * NEWS: Mention lgpl module name change.
1645
1646         * modules/lgpl-2.1: Renamed from lgpl.
1647
1648         * NEWS: Mention gpl module name change.
1649
1650         * modules/gpl-3.0: New file, based on gpl-2.0.
1651
1652         * modules/gpl-2.0: Renamed from gpl.
1653
1654         * modules/gpl: Fix filename, doc/gpl.texi is now found at
1655         doc/gpl-2.0.texi.
1656
1657 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1658
1659         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
1660         #define __STDC_LIMIT_MACROS temporarily while including
1661         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
1662         Problem reported by Joel E. Denny in
1663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
1664
1665 2007-07-01  Bruno Haible  <bruno@clisp.org>
1666
1667         * lib/unistdio.h: New file.
1668         * lib/unistdio/u-asnprintf.h: New file.
1669         * lib/unistdio/u-asprintf.h: New file.
1670         * lib/unistdio/u-printf-args.c: New file.
1671         * lib/unistdio/u-printf-args.h: New file.
1672         * lib/unistdio/u-printf-parse.h: New file.
1673         * lib/unistdio/u-snprintf.h: New file.
1674         * lib/unistdio/u-sprintf.h: New file.
1675         * lib/unistdio/u-vasprintf.h: New file.
1676         * lib/unistdio/u-vsnprintf.h: New file.
1677         * lib/unistdio/u-vsprintf.h: New file.
1678         * lib/unistdio/ulc-asnprintf.c: New file.
1679         * lib/unistdio/ulc-asprintf.c: New file.
1680         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
1681         * lib/unistdio/ulc-printf-parse.c: New file.
1682         * lib/unistdio/ulc-snprintf.c: New file.
1683         * lib/unistdio/ulc-sprintf.c: New file.
1684         * lib/unistdio/ulc-vasnprintf.c: New file.
1685         * lib/unistdio/ulc-vasprintf.c: New file.
1686         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
1687         * lib/unistdio/ulc-vsnprintf.c: New file.
1688         * lib/unistdio/ulc-vsprintf.c: New file.
1689         * lib/unistdio/u8-asnprintf.c: New file.
1690         * lib/unistdio/u8-asprintf.c: New file.
1691         * lib/unistdio/u8-printf-parse.c: New file.
1692         * lib/unistdio/u8-snprintf.c: New file.
1693         * lib/unistdio/u8-sprintf.c: New file.
1694         * lib/unistdio/u8-vasnprintf.c: New file.
1695         * lib/unistdio/u8-vasprintf.c: New file.
1696         * lib/unistdio/u8-vsnprintf.c: New file.
1697         * lib/unistdio/u8-vsprintf.c: New file.
1698         * lib/unistdio/u8-u8-asnprintf.c: New file.
1699         * lib/unistdio/u8-u8-asprintf.c: New file.
1700         * lib/unistdio/u8-u8-snprintf.c: New file.
1701         * lib/unistdio/u8-u8-sprintf.c: New file.
1702         * lib/unistdio/u8-u8-vasnprintf.c: New file.
1703         * lib/unistdio/u8-u8-vasprintf.c: New file.
1704         * lib/unistdio/u8-u8-vsnprintf.c: New file.
1705         * lib/unistdio/u8-u8-vsprintf.c: New file.
1706         * lib/unistdio/u16-asnprintf.c: New file.
1707         * lib/unistdio/u16-asprintf.c: New file.
1708         * lib/unistdio/u16-printf-parse.c: New file.
1709         * lib/unistdio/u16-snprintf.c: New file.
1710         * lib/unistdio/u16-sprintf.c: New file.
1711         * lib/unistdio/u16-vasnprintf.c: New file.
1712         * lib/unistdio/u16-vasprintf.c: New file.
1713         * lib/unistdio/u16-vsnprintf.c: New file.
1714         * lib/unistdio/u16-vsprintf.c: New file.
1715         * lib/unistdio/u16-u16-asnprintf.c: New file.
1716         * lib/unistdio/u16-u16-asprintf.c: New file.
1717         * lib/unistdio/u16-u16-snprintf.c: New file.
1718         * lib/unistdio/u16-u16-sprintf.c: New file.
1719         * lib/unistdio/u16-u16-vasnprintf.c: New file.
1720         * lib/unistdio/u16-u16-vasprintf.c: New file.
1721         * lib/unistdio/u16-u16-vsnprintf.c: New file.
1722         * lib/unistdio/u16-u16-vsprintf.c: New file.
1723         * lib/unistdio/u32-asnprintf.c: New file.
1724         * lib/unistdio/u32-asprintf.c: New file.
1725         * lib/unistdio/u32-printf-parse.c: New file.
1726         * lib/unistdio/u32-snprintf.c: New file.
1727         * lib/unistdio/u32-sprintf.c: New file.
1728         * lib/unistdio/u32-vasnprintf.c: New file.
1729         * lib/unistdio/u32-vasprintf.c: New file.
1730         * lib/unistdio/u32-vsnprintf.c: New file.
1731         * lib/unistdio/u32-vsprintf.c: New file.
1732         * lib/unistdio/u32-u32-asnprintf.c: New file.
1733         * lib/unistdio/u32-u32-asprintf.c: New file.
1734         * lib/unistdio/u32-u32-snprintf.c: New file.
1735         * lib/unistdio/u32-u32-sprintf.c: New file.
1736         * lib/unistdio/u32-u32-vasnprintf.c: New file.
1737         * lib/unistdio/u32-u32-vasprintf.c: New file.
1738         * lib/unistdio/u32-u32-vsnprintf.c: New file.
1739         * lib/unistdio/u32-u32-vsprintf.c: New file.
1740         * tests/unistdio/test-ulc-asnprintf1.c: New file.
1741         * tests/unistdio/test-ulc-asnprintf1.h: New file.
1742         * tests/unistdio/test-ulc-printf1.h: New file.
1743         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
1744         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
1745         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
1746         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
1747         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
1748         * tests/unistdio/test-ulc-vasprintf1.c: New file.
1749         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
1750         * tests/unistdio/test-ulc-vsprintf1.c: New file.
1751         * tests/unistdio/test-u8-asnprintf1.c: New file.
1752         * tests/unistdio/test-u8-asnprintf1.h: New file.
1753         * tests/unistdio/test-u8-printf1.h: New file.
1754         * tests/unistdio/test-u8-vasnprintf1.c: New file.
1755         * tests/unistdio/test-u8-vasnprintf2.c: New file.
1756         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
1757         * tests/unistdio/test-u8-vasnprintf3.c: New file.
1758         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
1759         * tests/unistdio/test-u8-vasprintf1.c: New file.
1760         * tests/unistdio/test-u8-vsnprintf1.c: New file.
1761         * tests/unistdio/test-u8-vsprintf1.c: New file.
1762         * tests/unistdio/test-u16-asnprintf1.c: New file.
1763         * tests/unistdio/test-u16-asnprintf1.h: New file.
1764         * tests/unistdio/test-u16-printf1.h: New file.
1765         * tests/unistdio/test-u16-vasnprintf1.c: New file.
1766         * tests/unistdio/test-u16-vasnprintf2.c: New file.
1767         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
1768         * tests/unistdio/test-u16-vasnprintf3.c: New file.
1769         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
1770         * tests/unistdio/test-u16-vasprintf1.c: New file.
1771         * tests/unistdio/test-u16-vsnprintf1.c: New file.
1772         * tests/unistdio/test-u16-vsprintf1.c: New file.
1773         * tests/unistdio/test-u32-asnprintf1.c: New file.
1774         * tests/unistdio/test-u32-asnprintf1.h: New file.
1775         * tests/unistdio/test-u32-printf1.h: New file.
1776         * tests/unistdio/test-u32-vasnprintf1.c: New file.
1777         * tests/unistdio/test-u32-vasnprintf2.c: New file.
1778         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
1779         * tests/unistdio/test-u32-vasnprintf3.c: New file.
1780         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
1781         * tests/unistdio/test-u32-vasprintf1.c: New file.
1782         * tests/unistdio/test-u32-vsnprintf1.c: New file.
1783         * tests/unistdio/test-u32-vsprintf1.c: New file.
1784         * modules/unistdio/base: New file.
1785         * modules/unistdio/u-printf-args: New file.
1786         * modules/unistdio/ulc-asnprintf: New file.
1787         * modules/unistdio/ulc-asprintf: New file.
1788         * modules/unistdio/ulc-fprintf: New file.
1789         * modules/unistdio/ulc-printf-parse: New file.
1790         * modules/unistdio/ulc-snprintf: New file.
1791         * modules/unistdio/ulc-sprintf: New file.
1792         * modules/unistdio/ulc-vasnprintf: New file.
1793         * modules/unistdio/ulc-vasprintf: New file.
1794         * modules/unistdio/ulc-vfprintf: New file.
1795         * modules/unistdio/ulc-vsnprintf: New file.
1796         * modules/unistdio/ulc-vsprintf: New file.
1797         * modules/unistdio/u8-asnprintf: New file.
1798         * modules/unistdio/u8-asprintf: New file.
1799         * modules/unistdio/u8-printf-parse: New file.
1800         * modules/unistdio/u8-snprintf: New file.
1801         * modules/unistdio/u8-sprintf: New file.
1802         * modules/unistdio/u8-vasnprintf: New file.
1803         * modules/unistdio/u8-vasprintf: New file.
1804         * modules/unistdio/u8-vsnprintf: New file.
1805         * modules/unistdio/u8-vsprintf: New file.
1806         * modules/unistdio/u8-u8-asnprintf: New file.
1807         * modules/unistdio/u8-u8-asprintf: New file.
1808         * modules/unistdio/u8-u8-snprintf: New file.
1809         * modules/unistdio/u8-u8-sprintf: New file.
1810         * modules/unistdio/u8-u8-vasnprintf: New file.
1811         * modules/unistdio/u8-u8-vasprintf: New file.
1812         * modules/unistdio/u8-u8-vsnprintf: New file.
1813         * modules/unistdio/u8-u8-vsprintf: New file.
1814         * modules/unistdio/u16-asnprintf: New file.
1815         * modules/unistdio/u16-asprintf: New file.
1816         * modules/unistdio/u16-printf-parse: New file.
1817         * modules/unistdio/u16-snprintf: New file.
1818         * modules/unistdio/u16-sprintf: New file.
1819         * modules/unistdio/u16-vasnprintf: New file.
1820         * modules/unistdio/u16-vasprintf: New file.
1821         * modules/unistdio/u16-vsnprintf: New file.
1822         * modules/unistdio/u16-vsprintf: New file.
1823         * modules/unistdio/u16-u16-asnprintf: New file.
1824         * modules/unistdio/u16-u16-asprintf: New file.
1825         * modules/unistdio/u16-u16-snprintf: New file.
1826         * modules/unistdio/u16-u16-sprintf: New file.
1827         * modules/unistdio/u16-u16-vasnprintf: New file.
1828         * modules/unistdio/u16-u16-vasprintf: New file.
1829         * modules/unistdio/u16-u16-vsnprintf: New file.
1830         * modules/unistdio/u16-u16-vsprintf: New file.
1831         * modules/unistdio/u32-asnprintf: New file.
1832         * modules/unistdio/u32-asprintf: New file.
1833         * modules/unistdio/u32-printf-parse: New file.
1834         * modules/unistdio/u32-snprintf: New file.
1835         * modules/unistdio/u32-sprintf: New file.
1836         * modules/unistdio/u32-vasnprintf: New file.
1837         * modules/unistdio/u32-vasprintf: New file.
1838         * modules/unistdio/u32-vsnprintf: New file.
1839         * modules/unistdio/u32-vsprintf: New file.
1840         * modules/unistdio/u32-u32-asnprintf: New file.
1841         * modules/unistdio/u32-u32-asprintf: New file.
1842         * modules/unistdio/u32-u32-snprintf: New file.
1843         * modules/unistdio/u32-u32-sprintf: New file.
1844         * modules/unistdio/u32-u32-vasnprintf: New file.
1845         * modules/unistdio/u32-u32-vasprintf: New file.
1846         * modules/unistdio/u32-u32-vsnprintf: New file.
1847         * modules/unistdio/u32-u32-vsprintf: New file.
1848         * modules/unistdio/ulc-asnprintf-tests: New file.
1849         * modules/unistdio/ulc-vasnprintf-tests: New file.
1850         * modules/unistdio/ulc-vasprintf-tests: New file.
1851         * modules/unistdio/ulc-vsnprintf-tests: New file.
1852         * modules/unistdio/ulc-vsprintf-tests: New file.
1853         * modules/unistdio/u8-asnprintf-tests: New file.
1854         * modules/unistdio/u8-vasnprintf-tests: New file.
1855         * modules/unistdio/u8-vasprintf-tests: New file.
1856         * modules/unistdio/u8-vsnprintf-tests: New file.
1857         * modules/unistdio/u8-vsprintf-tests: New file.
1858         * modules/unistdio/u16-asnprintf-tests: New file.
1859         * modules/unistdio/u16-vasnprintf-tests: New file.
1860         * modules/unistdio/u16-vasprintf-tests: New file.
1861         * modules/unistdio/u16-vsnprintf-tests: New file.
1862         * modules/unistdio/u16-vsprintf-tests: New file.
1863         * modules/unistdio/u32-asnprintf-tests: New file.
1864         * modules/unistdio/u32-vasnprintf-tests: New file.
1865         * modules/unistdio/u32-vasprintf-tests: New file.
1866         * modules/unistdio/u32-vsnprintf-tests: New file.
1867         * modules/unistdio/u32-vsprintf-tests: New file.
1868         * MODULES.html.sh (Unicode string functions): Add the new modules.
1869
1870 2007-07-01  Bruno Haible  <bruno@clisp.org>
1871
1872         * lib/sprintf.c (sprintf): Limit the available length estimation,
1873         to avoid address wraparound.
1874         * lib/vsprintf.c (vsprintf): Likewise.
1875         * modules/sprintf-posix (Dependencies): Add stdint.
1876         * modules/vsprintf-posix (Dependencies): Likewise.
1877
1878 2007-07-01  Bruno Haible  <bruno@clisp.org>
1879
1880         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
1881         Windows PATH as well. Conservative double-quoting. Comments.
1882
1883 2007-07-01  Bruno Haible  <bruno@clisp.org>
1884             Eric Blake  <ebb9@byu.net>
1885             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1886
1887         * gnulib-tool (self_abspathname): Fix algorithm to cope with
1888         empty components in $PATH, denoting '.'.
1889
1890 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1891
1892         * gnulib-tool: Fix indentation.
1893         (func_create_megatestdir): Likewise.
1894         Report by Bruno Haible.
1895
1896 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1897
1898         Sync from Automake.
1899         * build-aux/gnupload: Fix shell portability issues with for loops.
1900         Report by Karl Berry.
1901
1902 2007-06-29  Simon Josefsson  <simon@josefsson.org>
1903
1904         * build-aux/maint.mk (POURL): Use translationproject.org.
1905
1906 2007-06-27  Simon Josefsson  <simon@josefsson.org>
1907             Bruno Haible  <bruno@clisp.org>
1908
1909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
1910         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
1911         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
1912         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
1913         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
1914
1915 2007-06-27  Bruno Haible  <bruno@clisp.org>
1916
1917         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
1918         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
1919
1920 2007-06-26  Karl Berry  <karl@gnu.org>
1921
1922         * MODULES.html.sh: remove xreadlink-with-size.
1923
1924 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1925
1926         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
1927         method that I hope also handles the double-include problem noted
1928         by Bruno Haible in
1929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
1930
1931 2007-06-23  Bruno Haible  <bruno@clisp.org>
1932
1933         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1934         Don't let the 'mostlyclean' target fail if the last subdirectory could
1935         not be removed.
1936         Reported by Karl Berry.
1937
1938 2007-06-23  Bruno Haible  <bruno@clisp.org>
1939
1940         * gnulib-tool (echo): Add a speedier workaround for ksh.
1941         * tests/test-echo.sh: Likewise.
1942
1943 2007-06-23  Bruno Haible  <bruno@clisp.org>
1944
1945         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
1946         * tests/test-echo.sh: Likewise.
1947
1948 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1949
1950         * gnulib-tool (IFS): Initialize early, so we don't set it to
1951         empty later.
1952         (self_abspathname): Rewrite algorithm to set it, reindent.
1953         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1954         (func_create_megatestdir): Merge some sed scripts.
1955
1956 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1957
1958         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
1959         exposed by Sun Studio 11 cc on Solaris 8.
1960
1961 2007-06-22  Bruno Haible  <bruno@clisp.org>
1962
1963         * gnulib-tool (echo): Ensure the echo primitive does not interpret
1964         backslashes.
1965         * tests/test-echo.sh: New file.
1966
1967 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1968
1969         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
1970         simplify `sed_replace_build_aux' scripts, they are portable but
1971         echoing them with `echo' is not.
1972         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
1973
1974 2007-06-21  Karl Berry  <karl@gnu.org>
1975
1976         * config/srclist.txt: guess we can't handle the licenses via
1977         srclist at the moment.
1978
1979 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1980
1981         * MODULES.html.sh: Add include_next.
1982         * modules/include_next: New file.
1983
1984 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1985
1986         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
1987         INCLUDE_NEXT.
1988         (gl_CHECK_NEXT_HEADERS): New macro.
1989         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
1990         the obsolescent gl_ABSOLUTE_HEADER.
1991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1992         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1993         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1994         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1995         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1996         * m4/math_h.m4 (gl_MATH_H): Likewise.
1997         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1998         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1999         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2000         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2001         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2002         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2003         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2005         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2006         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2008         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
2009         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2010         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2011         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2012         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
2013         * m4/inttypes.m4 (gl_INTTYPES_H): Define
2014         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
2015         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
2016         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
2017         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
2018         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
2019         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
2020         * lib/float_.h: Likewise.
2021         * lib/inttypes_.h: Likewise.
2022         * lib/math_.h: Likewise.
2023         * lib/search_.h: Likewise.
2024         * lib/signal_.h: Likewise.
2025         * lib/stdint_.h: Likewise.
2026         * lib/stdio_.h: Likewise.
2027         * lib/stdlib_.h: Likewise.
2028         * lib/string_.h: Likewise.
2029         * lib/sys_stat_.h: Likewise.
2030         * lib/sys_time_.h: Likewise.
2031         * lib/time_.h: Likewise.
2032         * lib/unistd_.h: Likewise.
2033         * lib/wchar_.h: Likewise.
2034         * lib/wctype_.h: Likewise.
2035         * lib/dirent_.h: Likewise.
2036         * lib/iconv_.h: Likewise.
2037         * lib/locale_.h: Likewise.
2038         * lib/netinet_in_.h: Likewise.
2039         * lib/sys_select_.h: Likewise.
2040         * lib/sys_socket_.h: Likewise.
2041         * lib/sysexits_.h: Likewise.
2042         * modules/fcntl (Depends-on): Depend on include_next, not
2043         absolute_header.
2044         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
2045         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
2046         * modules/fchdir: Likewise.
2047         * modules/float: Likewise.
2048         * modules/iconv_open: Likewise.
2049         * modules/inttypes: Likewise.
2050         * modules/locale: Likewise.
2051         * modules/math: Likewise.
2052         * modules/netinet_in: Likewise.
2053         * modules/search: Likewise.
2054         * modules/signal: Likewise.
2055         * modules/stdint: Likewise.
2056         * modules/stdio: Likewise.
2057         * modules/stdlib: Likewise.
2058         * modules/string: Likewise.
2059         * modules/sys_select: Likewise.
2060         * modules/sys_socket: Likewise.
2061         * modules/sys_stat: Likewise.
2062         * modules/sys_time: Likewise.
2063         * modules/sysexits: Likewise.
2064         * modules/time: Likewise.
2065         * modules/unistd: Likewise.
2066         * modules/wchar: Likewise.
2067         * modules/wctype: Likewise.
2068         * modules/sys_stat: Change maintainer to "all".
2069         * modules/unistd: Likewise.
2070
2071 2007-06-20  Karl Berry  <karl@gnu.org>
2072
2073         * config/srclist.txt: track www changes in license files.
2074
2075 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
2076
2077         * build-aux/bootstrap: Remove stray dot.
2078         Make sure build_aux settings are honored when linking
2079         gnulib_extra_files.
2080
2081 2007-06-19  Eric Blake  <ebb9@byu.net>
2082
2083         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
2084         Allow compilation on cygwin.
2085
2086 2007-06-19  Jim Meyering  <jim@meyering.net>
2087
2088         xreadlink-with-size: Remove module.  No longer used.
2089         Ex-callers now use xreadlink or mreadlink-with-size.
2090         * modules/xreadlink-with-size: Remove module.
2091         * lib/xreadlink-with-size.c: Remove file.
2092         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
2093         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
2094         just before the function definition *is* accurate.
2095
2096         Eliminate one way canonicalize_filename_mode could exit.
2097         * lib/canonicalize.c (canonicalize_filename_mode):
2098         Use mreadlink_with_size, not xreadlink_with_size.
2099
2100 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
2101
2102         Detect porting problems to FreeBSD/arm, which has time_t wider than
2103         long int.  Original problem reported for GNU diff by Xin Li in
2104         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
2105         * modules/getdate (Depends-on): Add intprops, verify.
2106         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
2107         is an integer type no wider than long int.
2108
2109 2007-06-18  Jim Meyering  <jim@meyering.net>
2110
2111         New module: mreadlink-with-size.
2112         * MODULES.html.sh: Add mreadlink-with-size.
2113         * modules/mreadlink-with-size: New module
2114         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
2115         not xreadlink-with-size.
2116         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
2117
2118 2007-06-16  Bruno Haible  <bruno@clisp.org>
2119
2120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
2121         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
2122         Reported by Gary V. Vaughan <gary@gnu.org>.
2123
2124 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2125
2126         Revamp lchown so that it lives in unistd.h where it belongs.
2127         * lib/lchown.h: Remove.
2128         * lib/dirchownmod.c: Don't include lib/lchown.h.
2129         * lib/fchownat.c: Likewise.
2130         * lib/openat.c: Likewise.
2131         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
2132         does not follow symlinks.
2133         (EOPNOTSUPP): Define if not defined.
2134         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
2135         is defined to 0.
2136         (lchown): New decl.
2137         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
2138         Do not check for lchown decl.
2139         Set REPLACE_LCHOWN.
2140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
2141         REPLACE_LCHOWN.
2142         * modules/chown: Make it clear it follows symlinks.
2143         * modules/lchown: Make it clear it doesn't follow symlinks.
2144         (Files): Remove lib/lchown.h
2145         (Depends-on): Add unistd.
2146         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
2147         (Include): Include <unistd.h>, not "lchown.h".
2148         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
2149         REPLACE_LCHOWN.
2150
2151 2007-06-15  Jim Meyering  <jim@meyering.net>
2152
2153         Change license (GPL to LGPL) of fsusage and dependents.
2154         * modules/fsusage (License): Change to LGPL.
2155         * modules/full-read (License): Likewise.
2156         * modules/full-write (License): Likewise.
2157         * modules/safe-read (License): Likewise.
2158         * modules/safe-write (License): Likewise.
2159
2160 2007-06-14  Ben Pfaff  <blp@gnu.org>
2161
2162         Missing part of allocsa -> malloca transition.
2163         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
2164         gl_MALLOCA.
2165
2166 2007-06-12  Bruno Haible  <bruno@clisp.org>
2167
2168         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
2169         to ia64, x86_64, i386.
2170         Reported by Eric Blake.
2171
2172 2007-06-12  Bruno Haible  <bruno@clisp.org>
2173
2174         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
2175         cross-compiling to x86_64.
2176
2177 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
2178
2179         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
2180         glitch reported by Ralf Wildenhues in
2181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
2182
2183         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
2184         Vin Shelton.
2185
2186 2007-06-11  Bruno Haible  <bruno@clisp.org>
2187
2188         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
2189         replacement string.
2190         Reported by Eric Blake.
2191
2192 2007-06-10  Bruno Haible  <bruno@clisp.org>
2193
2194         Prepare vasnprintf code for use with Unicode strings.
2195         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
2196         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
2197         TYPE_U32_STRING.
2198         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
2199         a_u32_string variants.
2200         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
2201         * lib/printf-args.c: Don't include config.h and the specification
2202         header if PRINTF_FETCHARGS is already defined.
2203         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
2204         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
2205         TYPE_U16_STRING, TYPE_U32_STRING.
2206         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
2207         u16_directive, u16_directives, u32_directive, u32_directives): New
2208         types.
2209         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
2210         New declarations.
2211         * lib/printf-parse.c: Don't include config.h and the specification
2212         header if PRINTF_PARSE is already defined. Eliminate the set of
2213         parameters for WIDE_CHAR_VERSION; the user of this file must provide
2214         them now. Include c-ctype.h.
2215         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
2216         directive and CHAR_T_ONLY_ASCII.
2217         * lib/vasnprintf.c: Don't include config.h and the specification header
2218         if VASNPRINTF is already defined.
2219         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
2220         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
2221         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
2222         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
2223         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
2224         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
2225         code accordingly.
2226         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
2227         pad_ourselves also in this case, with the 'c' and 's' directives, and
2228         with a different notion of "width".
2229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
2230
2231 2007-06-10  Bruno Haible  <bruno@clisp.org>
2232
2233         * modules/unistr/u32-mbsnlen: New file.
2234         * lib/unistr/u32-mbsnlen.c: New file.
2235
2236         * modules/unistr/u16-mbsnlen: New file.
2237         * lib/unistr/u16-mbsnlen.c: New file.
2238
2239         * modules/unistr/u8-mbsnlen: New file.
2240         * lib/unistr/u8-mbsnlen.c: New file.
2241
2242         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
2243         declarations.
2244
2245 2007-06-10  Bruno Haible  <bruno@clisp.org>
2246
2247         * lib/string_.h (mbsnlen): New declaration.
2248         * lib/mbsnlen.c: New file.
2249         * m4/mbsnlen.m4: New file.
2250         * modules/mbsnlen: New file.
2251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
2252         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
2253         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
2254
2255 2007-06-10  Bruno Haible  <bruno@clisp.org>
2256
2257         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
2258
2259 2007-06-10  Bruno Haible  <bruno@clisp.org>
2260
2261         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
2262         * lib/mbuiter.h: Likewise.
2263
2264 2007-06-10  Bruno Haible  <bruno@clisp.org>
2265
2266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
2267         declaration.
2268
2269 2007-06-10  Karl Berry  <karl@gnu.org>
2270
2271         * config/srclist.txt: remove gettext entries, Bruno prefers
2272         to update individually.
2273
2274 2007-06-10  Bruno Haible  <bruno@clisp.org>
2275
2276         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
2277         'maxlen'. Ensure only length + width bytes are allocated, not
2278         length + 1 + width.
2279
2280 2007-06-09  Bruno Haible  <bruno@clisp.org>
2281
2282         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
2283         (CHAR_T): Remove macro.
2284         (VASNPRINTF): Update.
2285
2286 2007-06-09  Bruno Haible  <bruno@clisp.org>
2287
2288         * MODULES.html.sh (Unicode string functions): Add the new modules.
2289
2290         * modules/uniconv/u32-conv-to-enc: New file.
2291         * lib/uniconv/u32-conv-to-enc.c: New file.
2292         * modules/uniconv/u32-conv-to-enc-tests: New file.
2293         * tests/uniconv/test-u32-conv-to-enc.c: New file.
2294
2295         * modules/uniconv/u16-conv-to-enc: New file.
2296         * lib/uniconv/u16-conv-to-enc.c: New file.
2297         * lib/uniconv/u-conv-to-enc.h: New file.
2298         * modules/uniconv/u16-conv-to-enc-tests: New file.
2299         * tests/uniconv/test-u16-conv-to-enc.c: New file.
2300
2301         * modules/uniconv/u8-conv-to-enc: New file.
2302         * lib/uniconv/u8-conv-to-enc.c: New file.
2303         * modules/uniconv/u8-conv-to-enc-tests: New file.
2304         * tests/uniconv/test-u8-conv-to-enc.c: New file.
2305
2306         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
2307         u32_conv_to_encoding): New declarations.
2308
2309 2007-06-09  Bruno Haible  <bruno@clisp.org>
2310
2311         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
2312
2313 2007-06-09  Bruno Haible  <bruno@clisp.org>
2314
2315         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
2316         * modules/malloca: Renamed from modules/allocsa, updated.
2317         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
2318         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
2319         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
2320         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
2321         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
2322         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
2323         * modules/xmalloca: Renamed from modules/xallocsa, updated.
2324         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
2325         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
2326         * modules/c-strcasestr (Depends-on): Update.
2327         * lib/c-strcasestr.c: Update.
2328         * modules/c-strstr (Depends-on): Update.
2329         * lib/c-strstr.c: Update.
2330         * modules/canonicalize-lgpl (Depends-on): Update.
2331         * lib/canonicalize-lgpl.c: Update.
2332         * modules/clean-temp (Depends-on): Update.
2333         * lib/clean-temp.c: Update.
2334         * modules/csharpcomp (Depends-on): Update.
2335         * lib/csharpcomp.c: Update.
2336         * modules/csharpexec (Depends-on): Update.
2337         * lib/csharpexec.c: Update.
2338         * modules/javacomp (Depends-on): Update.
2339         * lib/javacomp.c: Update.
2340         * modules/javaexec (Depends-on): Update.
2341         * lib/javaexec.c: Update.
2342         * modules/mbscasestr (Depends-on): Update.
2343         * lib/mbscasestr.c: Update.
2344         * modules/mbsstr (Depends-on): Update.
2345         * lib/mbsstr.c: Update.
2346         * modules/setenv (Depends-on): Update.
2347         * lib/setenv.c: Update.
2348         * modules/strcasestr (Depends-on): Update.
2349         * lib/strcasestr.c: Update.
2350         * modules/striconveha (Depends-on): Update.
2351         * lib/striconveha.c: Update.
2352         * modules/relocatable-prog-wrapper (Files): Update.
2353         * lib/relocwrapper.c: Update.
2354         * build-aux/install-reloc: Update.
2355         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
2356
2357 2007-06-08  Bruno Haible  <bruno@clisp.org>
2358
2359         Port to uClibc.
2360         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
2361         * lib/fpurge.c (fpurge): Likewise.
2362         * lib/freading.c (freading): Likewise.
2363         * lib/fseeko.c (rpl_fseeko): Likewise.
2364         * lib/fseterr.c (fseterr): Likewise.
2365         * lib/fwriting.c (fwriting): Likewise.
2366         * tests/test-fflush.c (main): Avoid a failure on uClibc.
2367
2368 2007-06-08  Bruno Haible  <bruno@clisp.org>
2369
2370         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
2371         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
2372         * modules/gettext (Files): Add m4/intlmacosx.m4.
2373
2374 2007-06-07  Bruno Haible  <bruno@clisp.org>
2375
2376         * modules/localename-tests: New file.
2377         * tests/test-localename.c: New file.
2378
2379         New module 'localename'.
2380         * lib/localename.h: New file.
2381         * lib/localename.c: New file, from GNU gettext.
2382         * m4/localename.m4: New file.
2383         * modules/localename: New file.
2384
2385 2007-06-07  Bruno Haible  <bruno@clisp.org>
2386
2387         Work around the lack of <wchar.h> on some builds of uClibc.
2388         * doc/headers/wchar.texi: Update.
2389         * lib/wchar_.h: Include <wchar.h> only if it exists.
2390         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
2391         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
2392         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
2393         doesn't exist.
2394         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
2395         * modules/mbfile (Depends-on): Add wchar.
2396         * modules/mbiter (Depends-on): Likewise.
2397         * modules/mbuiter (Depends-on): Likewise.
2398         Reported by Simon Josefsson.
2399
2400 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
2401
2402         Work around problem reported by Steven M. Schweda in
2403         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
2404         Tru64 5.1B with the Compaq compiler environment installed declares
2405         an 'isblank' function but does not define it in the C library.
2406         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
2407         * lib/regex_internal.h (isblank): Likewise.
2408         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
2409         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2410
2411 2007-06-05  Bruno Haible  <bruno@clisp.org>
2412
2413         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
2414         ia64.
2415         * modules/printf-safe: New file.
2416         * modules/fprintf-posix (Depends-on): Add printf-safe.
2417         * modules/printf-posix (Depends-on): Likewise.
2418         * modules/snprintf-posix (Depends-on): Likewise.
2419         * modules/sprintf-posix (Depends-on): Likewise.
2420         * modules/vasnprintf-posix (Depends-on): Likewise.
2421         * modules/vasprintf-posix (Depends-on): Likewise.
2422         * modules/vfprintf-posix (Depends-on): Likewise.
2423         * modules/vprintf-posix (Depends-on): Likewise.
2424         * modules/vsnprintf-posix (Depends-on): Likewise.
2425         * modules/vsprintf-posix (Depends-on): Likewise.
2426         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2427         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
2428         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
2429         "no" on i386, x86_64, ia64.
2430         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
2431         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2432         on i386, x86_64, ia64.
2433         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
2434         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2435         on i386, x86_64, ia64.
2436         * tests/test-vasnprintf-posix.c: Include float.h.
2437         (LDBL80_WORDS): New macro.
2438         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2439         on i386, x86_64, ia64.
2440         * tests/test-vasprintf-posix.c: Include float.h.
2441         (LDBL80_WORDS): New macro.
2442         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2443         on i386, x86_64, ia64.
2444         * tests/test-snprintf-posix.c: Include float.h.
2445         * tests/test-sprintf-posix.c: Likewise.
2446         * tests/test-vsnprintf-posix.c: Likewise.
2447         * tests/test-vsprintf-posix.c: Likewise.
2448
2449 2007-06-05  Bruno Haible  <bruno@clisp.org>
2450
2451         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
2452         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
2453         non-IEEE numbers on i386, x86_64, ia64.
2454         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
2455         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
2456         * tests/test-isnanl.h: Include float.h.
2457         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
2458
2459 2007-06-05  Bruno Haible  <bruno@clisp.org>
2460
2461         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
2462         also the %a / %A. Handle the %a / %A code before this extra handling.
2463
2464 2007-06-05  Bruno Haible  <bruno@clisp.org>
2465
2466         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
2467         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
2468
2469 2007-06-05  Bruno Haible  <bruno@clisp.org>
2470
2471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
2472         typo in variable name.
2473
2474 2007-06-05  Eric Blake  <ebb9@byu.net>
2475
2476         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
2477         Reported by Simon Josefsson.
2478
2479 2007-06-04  Bruno Haible  <bruno@clisp.org>
2480
2481         Avoid test failures on some PowerPC platforms.
2482         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
2483         Define differently for PowerPC.
2484         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
2485         Reported by Gary V. Vaughan <gary@gnu.org>.
2486
2487 2007-06-02  Bruno Haible  <bruno@clisp.org>
2488
2489         Fix test-stdint failure on FreeBSD/ia64.
2490         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
2491         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
2492         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
2493         * doc/headers/stdint.texi: Update.
2494
2495 2007-06-01  Bruno Haible  <bruno@clisp.org>
2496
2497         * tests/test-binary-io.c (main): Pass a third argument to open().
2498         Reported by Gary V. Vaughan <gary@gnu.org>.
2499
2500 2007-06-01  Bruno Haible  <bruno@clisp.org>
2501
2502         * doc/functions/frexpl.texi: Update for mingw.
2503
2504 2007-06-01  Bruno Haible  <bruno@clisp.org>
2505
2506         * tests/test-lseek.c (main): Disable test of errno for invalid third
2507         argument.
2508         * doc/functions/lseek.texi: Update.
2509         Reported by Gary V. Vaughan <gary@gnu.org>.
2510
2511 2007-05-28  Bruno Haible  <bruno@clisp.org>
2512
2513         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
2514
2515 2007-05-31  Eric Blake  <ebb9@byu.net>
2516
2517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
2518         cross compiling.
2519
2520 2007-05-30  Eric Blake  <ebb9@byu.net>
2521         and Bruno Haible  <bruno@clisp.org>
2522
2523         Work around mingw test failures exposed by m4-1.4.9b.
2524         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
2525         * tests/test-unistd.c: Disable uid_t and git_t tests for the
2526         moment.
2527
2528 2007-05-30  Bruno Haible  <bruno@clisp.org>
2529
2530         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
2531         assuming that they are closed. Needed on HP-UX 11.
2532
2533 2007-05-29  Bruno Haible  <bruno@clisp.org>
2534
2535         Fix a problem with #include_next.
2536         * lib/dirent_.h: Split the double-inclusion guard.
2537         * lib/fcntl_.h: Likewise.
2538         * lib/float_.h: Likewise.
2539         * lib/iconv_.h: Likewise.
2540         * lib/inttypes_.h: Likewise.
2541         * lib/locale_.h: Likewise.
2542         * lib/math_.h: Likewise.
2543         * lib/netinet_in_.h: Likewise.
2544         * lib/search_.h: Likewise.
2545         * lib/signal_.h: Likewise.
2546         * lib/stdint_.h: Likewise.
2547         * lib/stdio_.h: Likewise.
2548         * lib/stdlib_.h: Likewise.
2549         * lib/string_.h: Likewise.
2550         * lib/sys_select_.h: Likewise.
2551         * lib/sys_socket_.h: Likewise.
2552         * lib/sys_stat_.h: Likewise.
2553         * lib/sys_time_.h: Likewise.
2554         * lib/sysexits_.h: Likewise.
2555         * lib/time_.h: Likewise.
2556         * lib/unistd_.h: Likewise.
2557         * lib/wchar_.h: Likewise.
2558         * lib/wctype_.h: Likewise.
2559
2560 2007-05-29  Bruno Haible  <bruno@clisp.org>
2561
2562         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
2563         for the moment.
2564
2565 2007-05-29  Bruno Haible  <bruno@clisp.org>
2566
2567         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
2568         invocation.
2569         Reported by Eric Blake.
2570
2571 2007-05-29  Bruno Haible  <bruno@clisp.org>
2572
2573         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
2574         compiling case.
2575
2576 2007-05-29  Eric Blake  <ebb9@byu.net>
2577             Bruno Haible  <bruno@clisp.org>
2578
2579         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
2580         cross compiles.
2581
2582 2007-05-28  Eric Blake  <ebb9@byu.net>
2583
2584         * modules/closein-tests (test_closein_LDADD): Support test on
2585         cygwin with libtool.
2586
2587 2007-05-28  Bruno Haible  <bruno@clisp.org>
2588
2589         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
2590         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2591         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2592         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2593         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2594         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2595         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2596         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2597         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2598
2599 2007-05-28  Eric Blake  <ebb9@byu.net>
2600
2601         Unconditionally include <config.h> in unit tests.
2602         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
2603         * tests/test-allocsa.c, tests/test-arcfour.c,
2604         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
2605         tests/test-array_list.c, tests/test-array_oset.c,
2606         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
2607         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
2608         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
2609         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
2610         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
2611         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
2612         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
2613         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
2614         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
2615         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
2616         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
2617         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
2618         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
2619         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
2620         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
2621         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
2622         test-md5.c, test-memmem.c, test-printf-posix.c,
2623         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
2624         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
2625         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
2626         test-strcasestr.c, test-striconv.c, test-striconveh.c,
2627         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
2628         test-vasnprintf-posix2.c, test-vasnprintf.c,
2629         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
2630         test-vfprintf-posix.c, test-vprintf-posix.c,
2631         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
2632         test-xvasprintf.c: Likewise.
2633
2634 2007-05-28  Bruno Haible  <bruno@clisp.org>
2635
2636         * gnulib-tool (func_import): Remember the --with-tests command-line
2637         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
2638         Reported by Eric Blake.
2639
2640 2007-05-28  Bruno Haible  <bruno@clisp.org>
2641
2642         * modules/ftell-tests: New file.
2643         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
2644         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
2645
2646         * lib/ftell.c: New file.
2647         * modules/ftell: New file.
2648         * m4/ftell.m4: New file.
2649         * doc/functions/ftell.texi: Update.
2650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
2651         REPLACE_FTELL.
2652         * lib/stdio_.h (rpl_ftell): New declaration.
2653         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
2654         REPLACE_FTELL.
2655
2656 2007-05-28  Eric Blake  <ebb9@byu.net>
2657
2658         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
2659
2660 2007-05-28  Bruno Haible  <bruno@clisp.org>
2661
2662         * modules/fseek-tests: New file.
2663         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
2664         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
2665
2666         * lib/fseek.c: New file.
2667         * modules/fseek: New file.
2668         * m4/fseek.m4: New file.
2669         * doc/functions/fseek.texi: Update.
2670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
2671         REPLACE_FSEEK.
2672         * lib/stdio_.h (rpl_fseek): New declaration.
2673         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
2674         REPLACE_FSEEK.
2675
2676 2007-05-28  Bruno Haible  <bruno@clisp.org>
2677
2678         * lib/stdio_.h (fflush): More comments.
2679
2680 2007-05-28  Bruno Haible  <bruno@clisp.org>
2681
2682         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
2683         runtime test.
2684
2685 2007-05-28  Eric Blake  <ebb9@byu.net>
2686
2687         Improve lseek module.
2688         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
2689         * lib/unistd_.h (lseek): Scale back link warning message.
2690         * tests/test-lseek.c: Beef up test.
2691         * tests/test-lseek.sh: Exercise more facets of lseek.
2692         Reported by Bruno Haible.
2693
2694 2007-05-28  Bruno Haible  <bruno@clisp.org>
2695
2696         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
2697         to define.
2698
2699 2007-05-27  Bruno Haible  <bruno@clisp.org>
2700
2701         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
2702
2703 2007-05-27  Bruno Haible  <bruno@clisp.org>
2704
2705         * modules/openmp: New file.
2706         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
2707         Noah Misch.
2708
2709 2007-05-26  Bruno Haible  <bruno@clisp.org>
2710
2711         * modules/chdir-long (Depends-on): Add fchdir.
2712         * modules/chdir-safer (Depends-on): Likewise.
2713         * modules/fts (Depends-on): Likewise.
2714         * modules/fts-lgpl (Depends-on): Likewise.
2715         * modules/openat (Depends-on): Likewise.
2716         * modules/savewd (Depends-on): Likewise.
2717
2718 2007-05-24  Eric Blake  <ebb9@byu.net>
2719
2720         Fix lseek on mingw.
2721         * modules/lseek: New module.
2722         * m4/lseek.m4: New file.
2723         * lib/lseek.c: New file.
2724         * modules/lseek-tests: New file.
2725         * tests/test-lseek.c: New file.
2726         * tests/test-lseek.sh: New file.
2727         * MODULES.html.sh: Document lseek module.
2728         * modules/fflush (Depends-on): Add lseek, fseeko.
2729         * modules/fseeko (Depends-on): Likewise.
2730         * modules/ftello (Depends-on): Likewise.
2731         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
2732         broken.
2733         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
2734         broken.
2735         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
2736         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
2737         * lib/ftello.c (rpl_ftello): Likewise.
2738         * tests/test-fseeko.c (main): Test this.
2739         * tests/test-fseeko.sh: Likewise.
2740         * tests/test-ftello.c (main): Likewise.
2741         * tests/test-ftello.sh: Likewise.
2742         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
2743         implies replacing fseek.
2744         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
2745         HAVE_FTELLO.
2746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
2747         * modules/unistd (Makefile.am): Likewise.
2748         * lib/unistd_.h (lseek): Declare a replacement.
2749         * doc/functions/lseek.texi (lseek): Document this fix.
2750         * doc/functions/fseek.texi (fseek): Likewise.
2751         * doc/functions/ftell.texi (ftell): Likewise.
2752
2753 2007-05-24  Bruno Haible  <bruno@clisp.org>
2754
2755         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
2756         in the printed representation of a NaN.
2757         * tests/test-vasprintf-posix.c (test_function): Likewise.
2758         * tests/test-snprintf-posix.h (test_function): Likewise.
2759         * tests/test-sprintf-posix.h (test_function): Likewise.
2760         Reported by Eric Blake.
2761
2762 2007-05-23  Eric Blake  <ebb9@byu.net>
2763
2764         Fix fseeko/ftello on cygwin 1.5.24.
2765         * doc/functions/fseeko.texi (fseeko): Document the fix.
2766         * doc/functions/ftello.texi (ftello): Document the fix.
2767         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
2768         * doc/functions/stdout.text (stdout): New file.
2769         * doc/functions/stderr.text (stderr): New file.
2770         * doc/gnulib.texi (Function Substitutes): Use new files.
2771         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
2772         prior to 1.7.0.
2773         * tests/test-ftello.c (main): Likewise for ftello.
2774         * tests/test-fseeko.sh: New file.
2775         * tests/test-ftello.sh: New file.
2776         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
2777         with seekable stdin.
2778         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
2779         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
2780         (gl_REPLACE_FSEEKO): New macro.
2781         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
2782         * modules/fseeko (Files): Distribute fseeko.c.
2783         * modules/ftello (Files): Distribute ftello.c.
2784         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
2785         mode.
2786         * lib/ftello.c (rpl_ftello): New file.
2787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
2788         fseeko, ftello.
2789         (gl_STDIN_LARGE_OFFSET): New macro.
2790         * modules/stdio (Makefile.am): Perform the replacement.
2791         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
2792
2793 2007-05-23  Bruno Haible  <bruno@clisp.org>
2794
2795         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
2796         GNULIB_POSIXCHECK is defined.
2797
2798 2007-05-21  Bruno Haible  <bruno@clisp.org>
2799
2800         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
2801         Check also the output for NaN arguments. When cross-compiling, guess
2802         no on IRIX.
2803         * lib/vasnprintf.c: Update comments.
2804         * tests/test-vasnprintf-posix.c (strisnan): New function.
2805         (test_function): Use it.
2806         * tests/test-vasprintf-posix.c (strisnan): New function.
2807         (test_function): Use it.
2808         * tests/test-snprintf-posix.h (strisnan): New function.
2809         (test_function): Use it.
2810         * tests/test-sprintf-posix.h (strisnan): New function.
2811         (test_function): Use it.
2812         Reported by Eric Blake.
2813
2814 2007-05-20  Bruno Haible  <bruno@clisp.org>
2815
2816         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
2817         numbers that fails on BeOS.
2818         * doc/functions/frexpl.texi: Update.
2819
2820 2007-05-20  Jim Meyering  <jim@meyering.net>
2821
2822         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
2823         forced upon us by glibc-2.6.
2824
2825 2007-05-20  Bruno Haible  <bruno@clisp.org>
2826
2827         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
2828         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
2829         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
2830         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
2831         NEED_PRINTF_INFINITE.
2832         (is_infinitel): New function.
2833         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
2834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
2835         gl_PREREQ_VASNPRINTF_INFINITE.
2836         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
2837         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2838         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
2839         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
2840         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
2841         gl_PREREQ_VASNPRINTF_INFINITE.
2842         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2843         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2844         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2845         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2846         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2847         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2848         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2849         * doc/functions/fprintf.texi: Update.
2850         * doc/functions/printf.texi: Update.
2851         * doc/functions/snprintf.texi: Update.
2852         * doc/functions/sprintf.texi: Update.
2853         * doc/functions/vfprintf.texi: Update.
2854         * doc/functions/vprintf.texi: Update.
2855         * doc/functions/vsnprintf.texi: Update.
2856         * doc/functions/vsprintf.texi: Update.
2857
2858 2007-05-20  Bruno Haible  <bruno@clisp.org>
2859
2860         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
2861         was not found in libc.
2862         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2863
2864 2007-05-20  Bruno Haible  <bruno@clisp.org>
2865
2866         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2867         printed as "-nan" instead of "nan".
2868         * tests/test-vasprintf-posix.c (test_function): Likewise.
2869         * tests/test-snprintf-posix.h (test_function): Likewise.
2870         * tests/test-sprintf-posix.h (test_function): Likewise.
2871         Needed for HP-UX 11.
2872
2873 2007-05-20  Jim Meyering  <jim@meyering.net>
2874
2875         Fix buggy test for the fchownat-deref bug.
2876         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
2877         symlink required for the run-test.  Without it, this test would
2878         always declare that fchownat doesn't work, and client code would
2879         unnecessarily use the replacement function with fixed libc.
2880         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
2881         Reported by Greg Schafer.
2882
2883 2007-05-19  Bruno Haible  <bruno@clisp.org>
2884
2885         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
2886         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
2887         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
2888         Needed for IRIX 6.5 and Solaris 2.5.1.
2889
2890 2007-05-19  Bruno Haible  <bruno@clisp.org>
2891
2892         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
2893         (test_function): Skip tests involving -0.0 on platforms where
2894         -0.0 = 0.0.
2895         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
2896         (test_function): Skip tests involving -0.0 on platforms where
2897         -0.0 = 0.0.
2898         * tests/test-snprintf-posix.h (have_minus_zero): New function.
2899         (test_function): Skip tests involving -0.0 on platforms where
2900         -0.0 = 0.0.
2901         * tests/test-sprintf-posix.h (have_minus_zero): New function.
2902         (test_function): Skip tests involving -0.0 on platforms where
2903         -0.0 = 0.0.
2904         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
2905         tests.
2906         * tests/test-printf-posix.h (test_function): Likewise.
2907         * tests/test-printf-posix.output: Remove all -0.0 related results.
2908         Needed for IRIX 6.5.
2909
2910 2007-05-19  Bruno Haible  <bruno@clisp.org>
2911
2912         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2913         printed as "nan0x7fffffff" instead of "nan".
2914         * tests/test-vasprintf-posix.c (test_function): Likewise.
2915         * tests/test-snprintf-posix.h (test_function): Likewise.
2916         * tests/test-sprintf-posix.h (test_function): Likewise.
2917         * tests/test-fprintf-posix.h (NaN): Remove macro.
2918         (test_function): Remove all NaN related tests.
2919         * tests/test-printf-posix.h (NaN): Remove macro.
2920         (test_function): Remove all NaN related tests.
2921         * tests/test-printf-posix.output: Remove all NaN related results.
2922         Needed for IRIX 6.5.
2923
2924 2007-05-19  Bruno Haible  <bruno@clisp.org>
2925
2926         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
2927         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2928
2929 2007-05-19  Bruno Haible  <bruno@clisp.org>
2930
2931         * lib/float_.h: New file.
2932         * m4/float_h.m4: New file.
2933         * modules/float: New file.
2934         * modules/isnanl (Dependencies): Add float.
2935         * modules/isnanl-nolibm (Dependencies): Likewise.
2936         * modules/mathl (Dependencies): Likewise.
2937         * modules/printf-frexpl (Dependencies): Likewise.
2938         * modules/signbit (Dependencies): Likewise.
2939         * modules/vasnprintf (Dependencies): Likewise.
2940         * doc/headers/float.texi: Update.
2941
2942 2007-05-19  Jim Meyering  <jim@meyering.net>
2943
2944         * lib/utimens.c (gl_futimens): Rename from futimens,
2945         now that glibc-2.6 declares futimens.
2946         * lib/utimens.h: Likewise.
2947
2948 2007-05-19  Bruno Haible  <bruno@clisp.org>
2949
2950         Avoid test failures on mingw.
2951         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
2952         * tests/test-printf-posix.sh: Likewise.
2953         * tests/test-vfprintf-posix.sh: Likewise.
2954         * tests/test-vprintf-posix.sh: Likewise.
2955
2956 2007-05-19  Bruno Haible  <bruno@clisp.org>
2957
2958         Fix *printf result for NaN, Inf, -0.0 on mingw.
2959         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
2960         * lib/vasnprintf.c: Include math.h and isnan.h.
2961         (is_infinite_or_zero): New function.
2962         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
2963         values in the %f, %F, %e, %E, %g, %G directives.
2964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
2965         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2966         gl_PRINTF_INFINITE and test its result. Invoke
2967         gl_PREREQ_VASNPRINTF_INFINITE.
2968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2969         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2970         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2971         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2972         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2974         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2975         * doc/functions/fprintf.texi: Update.
2976         * doc/functions/printf.texi: Update.
2977         * doc/functions/snprintf.texi: Update.
2978         * doc/functions/sprintf.texi: Update.
2979         * doc/functions/vfprintf.texi: Update.
2980         * doc/functions/vprintf.texi: Update.
2981         * doc/functions/vsnprintf.texi: Update.
2982         * doc/functions/vsprintf.texi: Update.
2983
2984 2007-05-19  Bruno Haible  <bruno@clisp.org>
2985
2986         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
2987         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
2988         Instead of multiplying with 10^k, set extra_zeroes to k.
2989         (scale10_round_long_double): Remove function.
2990
2991 2007-05-18  Bruno Haible  <bruno@clisp.org>
2992
2993         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
2994         introduced on 2007-05-06.
2995
2996 2007-05-18  Bruno Haible  <bruno@clisp.org>
2997
2998         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
2999         %g directives.
3000         * tests/test-vasprintf-posix.c (test_function): Likewise.
3001         * tests/test-snprintf-posix.h (test_function): Likewise.
3002         * tests/test-sprintf-posix.h (test_function): Likewise.
3003
3004 2007-05-18  Bruno Haible  <bruno@clisp.org>
3005
3006         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
3007         (strmatch): New function.
3008         (test_function): Test the %f directive on numbers of various exponents.
3009         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
3010         (strmatch): New function.
3011         (test_function): Test the %f directive on numbers of various exponents.
3012         * tests/test-snprintf-posix.h (strmatch): New function.
3013         (test_function): Test the %f directive on numbers of various exponents.
3014         * tests/test-sprintf-posix.h (strmatch): New function.
3015         (test_function): Test the %f directive on numbers of various exponents.
3016         * tests/test-snprintf-posix.c (SIZEOF): New macro.
3017         * tests/test-sprintf-posix.c (SIZEOF): New macro.
3018         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
3019         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
3020
3021 2007-05-18  Bruno Haible  <bruno@clisp.org>
3022
3023         Add support for 'long double' number output.
3024         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
3025         * lib/vasnprintf.c: Include math.h and float+.h.
3026         (mp_limb_t): New type.
3027         (GMP_LIMB_BITS): New macro.
3028         (mp_twolimb_t): New type.
3029         (GMP_TWOLIMB_BITS): New macro.
3030         (mpn_t): New type.
3031         (multiply, divide, convert_to_decimal, decode_long_double,
3032         scale10_round_long_double, scale10_round_decimal_long_double,
3033         floorlog10l): New functions.
3034         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
3035         for the %f, %F, %e, %E, %g, %G directives.
3036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
3037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3038         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
3039         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
3040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3047         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
3048         * modules/snprintf-posix (Depends-on): Likewise.
3049         * modules/sprintf-posix (Depends-on): Likewise.
3050         * modules/vasnprintf-posix (Depends-on): Likewise.
3051         * modules/vasprintf-posix (Depends-on): Likewise.
3052         * modules/vfprintf-posix (Depends-on): Likewise.
3053         * modules/vsnprintf-posix (Depends-on): Likewise.
3054         * modules/vsprintf-posix (Depends-on): Likewise.
3055         * modules/vasnprintf (Files): Add lib/float+.h.
3056         * doc/functions/fprintf.texi: Update.
3057         * doc/functions/printf.texi: Update.
3058         * doc/functions/snprintf.texi: Update.
3059         * doc/functions/sprintf.texi: Update.
3060         * doc/functions/vfprintf.texi: Update.
3061         * doc/functions/vprintf.texi: Update.
3062         * doc/functions/vsnprintf.texi: Update.
3063         * doc/functions/vsprintf.texi: Update.
3064
3065 2007-05-18  Bruno Haible  <bruno@clisp.org>
3066
3067         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
3068
3069 2007-05-18  Bruno Haible  <bruno@clisp.org>
3070
3071         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
3072         for printing 64-bit integers. Needed for mingw.
3073
3074 2007-05-18  Bruno Haible  <bruno@clisp.org>
3075
3076         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
3077         gl_FUNC_FREXPL_WORKS.
3078         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
3079
3080 2007-05-18  Bruno Haible  <bruno@clisp.org>
3081
3082         * modules/frexpl-nolibm-tests: New file.
3083
3084         * modules/frexpl-nolibm: New file.
3085         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
3086
3087 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3088
3089         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
3090         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
3091         GCC 4.2, which otherwise issues a lot of warnings.
3092         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
3093         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
3094         Likewise.
3095         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
3096         * modules/iconv_open (iconv.h): Likewise.
3097         * modules/locale (locale.h): Likewise.
3098         * modules/netinet_in (netinet/in.h): Likewise.
3099         * modules/sys_select (sys_select.h): Likewise.
3100         * modules/sys_socket (sys/socket.h): Likewise.
3101         * modules/sys_stat (sys/stat.h): Likewise.
3102         * modules/sysexits (sysexits.h): Likewise.
3103         * modules/unistd (unistd.h): Likewise.
3104
3105 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3106
3107         * modules/closein-tests (Makefile.am): Distribute
3108         `test-closein.sh'.
3109
3110 2007-05-17  Bruno Haible  <bruno@clisp.org>
3111
3112         * tests/test-printf-posix.output: Renamed from
3113         tests/test-fprintf-posix.out.
3114         * modules/fprintf-posix-tests: Update.
3115         * modules/printf-posix-tests: Update.
3116         * modules/vfprintf-posix-tests: Update.
3117         * modules/vprintf-posix-tests: Update.
3118         * tests/test-fprintf-posix.sh: Update.
3119         * tests/test-printf-posix.sh: Update.
3120         * tests/test-vfprintf-posix.sh: Update.
3121         * tests/test-vprintf-posix.sh: Update.
3122         Reported by Ralf Wildenhues.
3123
3124 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3125
3126         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
3127         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
3128         GCC 4.2, which otherwise issues a lot of warnings.
3129         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
3130         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
3131         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
3132         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
3133         it should no longer be needed.
3134         * lib/string_.h: Likewise.
3135         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
3136         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
3137         * modules/inttypes (inttypes.h): Likewise.
3138         * modules/math (math.h): Likewise.
3139         * modules/search (search.h): Likewise.
3140         * modules/signal (signal.h): Likewise.
3141         * modules/stdint (stdint.h): Likewise.
3142         * modules/stdio (stdio.h): Likewise.
3143         * modules/stdlib (stdlib.h): Likewise.
3144         * modules/string (string.h): Likewise.
3145         * modules/sys_time (sys/time.h): Likewise.
3146         * modules/time (time.h): Likewise.
3147         * modules/wchar (wchar.h): Likewise.
3148         * modules/wctype (wtype.h): Likewise.
3149
3150 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3151
3152         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
3153
3154 2007-05-13  Bruno Haible  <bruno@clisp.org>
3155
3156         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
3157         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3158         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
3159         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3160         (gl_PREREQ_STRTOK_R): Don't require it here.
3161
3162 2007-05-13  Bruno Haible  <bruno@clisp.org>
3163
3164         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
3165         when used in C++ mode.
3166
3167 2007-05-12  Bruno Haible  <bruno@clisp.org>
3168
3169         * lib/linebuffer.h: Tweak doc.
3170         * lib/linebuffer.c: Likewise.
3171
3172 2007-05-12  James Youngman  <jay@gnu.org>
3173
3174         * lib/linebuffer.c (readlinebuffer_delim): New function,
3175         like readlinebuffer, but use a caller-specified delimiter.
3176         (readlinebuffer): Just call readlinebuffer_delim with '\n'
3177         as the delimiter.
3178         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
3179
3180 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3181
3182         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
3183         * modules/openat (Files): Remove openat-die.c.
3184         (Depends-on): Add openat-die.
3185         * modules/openat-die: New module.
3186
3187 2007-05-06  Bruno Haible  <bruno@clisp.org>
3188
3189         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
3190         Update with info about Cygwin.
3191         * doc/functions/fprintf.texi: Update.
3192         * doc/functions/printf.texi: Update.
3193         * doc/functions/snprintf.texi: Update.
3194         * doc/functions/sprintf.texi: Update.
3195         * doc/functions/vfprintf.texi: Update.
3196         * doc/functions/vprintf.texi: Update.
3197         * doc/functions/vsnprintf.texi: Update.
3198         * doc/functions/vsprintf.texi: Update.
3199         Reported by Eric Blake.
3200
3201 2007-05-06  Bruno Haible  <bruno@clisp.org>
3202
3203         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
3204         padding ourselves for the floating-point directives.
3205         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
3206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
3207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3208         gl_PRINTF_FLAG_ZERO and test its result. Invoke
3209         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
3210         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
3212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3217         * tests/test-snprintf-posix.h (test_function): Also check the width
3218         and some flags in the %f directive.
3219         * tests/test-sprintf-posix.h (test_function): Likewise.
3220         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3221         * tests/test-vasprintf-posix.c (test_function): Likewise.
3222         * doc/functions/fprintf.texi: Update.
3223         * doc/functions/printf.texi: Update.
3224         * doc/functions/snprintf.texi: Update.
3225         * doc/functions/sprintf.texi: Update.
3226         * doc/functions/vfprintf.texi: Update.
3227         * doc/functions/vprintf.texi: Update.
3228         * doc/functions/vsnprintf.texi: Update.
3229         * doc/functions/vsprintf.texi: Update.
3230
3231 2007-05-06  Bruno Haible  <bruno@clisp.org>
3232
3233         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
3234         pass the ' flag character to sprintf or snprintf.
3235         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
3236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
3237         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3238         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
3239         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
3240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
3242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3244         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3247         * tests/test-snprintf-posix.h (test_function): Also check the grouping
3248         flag.
3249         * tests/test-sprintf-posix.h (test_function): Likewise.
3250         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3251         * tests/test-vasprintf-posix.c (test_function): Likewise.
3252         * doc/functions/fprintf.texi: Update.
3253         * doc/functions/printf.texi: Update.
3254         * doc/functions/snprintf.texi: Update.
3255         * doc/functions/sprintf.texi: Update.
3256         * doc/functions/vfprintf.texi: Update.
3257         * doc/functions/vprintf.texi: Update.
3258         * doc/functions/vsnprintf.texi: Update.
3259         * doc/functions/vsprintf.texi: Update.
3260
3261 2007-05-01  Bruno Haible  <bruno@clisp.org>
3262
3263         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
3264
3265 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3266
3267         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
3268         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
3269
3270 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
3273         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
3274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
3275
3276 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
3277
3278         * lib/argp-help.c (struct hol_entry): New member `ord'.
3279         (HOL_ENTRY_PTRCMP): Use ord for comparison
3280         (hol_sort): Initialize ord.
3281
3282 2007-05-01  Bruno Haible  <bruno@clisp.org>
3283
3284         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
3285         Reported by Eric Blake.
3286         * doc/gnulib.texi (Function Substitutes): Update.
3287
3288 2007-05-01  Bruno Haible  <bruno@clisp.org>
3289
3290         * doc/functions.texi: Remove file, now redundant through
3291         doc/functions/*.texi.
3292
3293 2007-05-01  Bruno Haible  <bruno@clisp.org>
3294
3295         * modules/argp (Depends-on): Add sleep.
3296
3297 2007-05-01  Bruno Haible  <bruno@clisp.org>
3298
3299         * modules/sleep-tests: New file.
3300         * tests/test-sleep.c: New file.
3301
3302         * modules/sleep: New file.
3303         * lib/sleep.c: New file.
3304         * m4/sleep.m4: New file.
3305         * lib/unistd_.h (sleep): New declaration.
3306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
3307         HAVE_SLEEP.
3308         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
3309         * doc/functions/sleep.texi: Document the sleep module.
3310
3311 2007-05-01  Bruno Haible  <bruno@clisp.org>
3312
3313         * lib/sigprocmask.h: Remove file.
3314         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
3315         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
3316         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
3317         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
3318         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3319         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
3320         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
3321         HAVE_SIGSET_T as a shell variable.
3322         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
3323         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
3324         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
3325         (Depends-on): Add signal. Remove verify.
3326         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
3327         (Include): Mention <signal.h> instead of sigprocmask.h.
3328         * NEWS: Mention the change.
3329         * lib/fatal-signal.c: Don't include sigprocmask.h.
3330
3331 2007-05-01  Bruno Haible  <bruno@clisp.org>
3332
3333         * modules/signal: New file.
3334         * lib/signal_.h: New file.
3335         * m4/signal_h.m4: New file.
3336
3337 2007-05-01  Bruno Haible  <bruno@clisp.org>
3338
3339         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
3340         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
3341         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
3342         HAVE_WCTYPE_CTMP_BUG into wctype.h.
3343
3344 2007-05-01  Bruno Haible  <bruno@clisp.org>
3345
3346         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
3347         configure time.
3348         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
3349         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
3350         * modules/sys_stat (Makefile.am): Substitute their values into
3351         sys/stat.h.
3352
3353 2007-05-01  Bruno Haible  <bruno@clisp.org>
3354
3355         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
3356         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
3357         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
3358
3359 2007-05-01  Bruno Haible  <bruno@clisp.org>
3360
3361         * doc/header/assert.texi: Undo last change: don't mention the gnulib
3362         'assert' module here.
3363
3364 2007-05-01  Bruno Haible  <bruno@clisp.org>
3365
3366         * doc/functions/*.texi: New files.
3367         * doc/functions/google-ranking.txt: New file.
3368         * doc/gnulib.texi (Function Substitutes): New chapter.
3369         (ctime, inet_ntoa): Remove sections.
3370         * doc/ctime.texi: Remove file.
3371         * doc/inet_ntoa.texi: Remove file.
3372         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
3373         dependencies.
3374         (%.info): New rule, specifying a --reference-limit.
3375
3376 2007-05-01  Bruno Haible  <bruno@clisp.org>
3377
3378         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
3379
3380 2007-05-01  Bruno Haible  <bruno@clisp.org>
3381
3382         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
3383         the portability of 'mkdir' to mingw systems.
3384
3385 2007-05-01  Bruno Haible  <bruno@clisp.org>
3386
3387         * doc/headers/google-ranking.txt: New file.
3388
3389 2007-04-30  Eric Blake  <ebb9@byu.net>
3390
3391         Prefer fseeko to fseek.
3392         * modules/getpass (Depends-on): Add fseeko.
3393         * lib/getpass.c (getpass): Use fseeko, not fseek.
3394
3395 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
3396
3397         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
3398         assumes the sorting is stable, while most qsort implementations
3399         are not.  Use argument addresses to ensure they never compare as
3400         equal.
3401
3402         * tests/test-argp-2.sh (usage-indent test): Fix output
3403         (func_compare): Restore diff options
3404         * tests/test-argp.c: Restore #include "progname.h"
3405
3406 2007-04-29  Bruno Haible  <bruno@clisp.org>
3407
3408         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
3409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3410         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
3411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3412         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
3413         (configure.ac): Define CHECK_SNPRINTF_POSIX.
3414         (TESTS, check_PROGRAMS): Add test-snprintf.
3415         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
3416         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
3417         (TESTS, check_PROGRAMS): Add test-vsnprintf.
3418         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
3419         assertions that fail on HP-UX, OSF/1, or IRIX.
3420         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
3421
3422 2007-04-29  Bruno Haible  <bruno@clisp.org>
3423
3424         * MODULES.html.sh (posix_functions): Remove 'contents'.
3425
3426 2007-04-29  Karl Berry  <karl@gnu.org>
3427
3428         * config/srclist.txt (gendocs_template_min): new entry.
3429
3430 2007-04-29  Bruno Haible  <bruno@clisp.org>
3431
3432         Work around fpurge bug on BSD systems.
3433         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
3434         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
3435         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
3436         fpurge to rpl_fpurge if the system already has this function.
3437         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
3438         the case where the system already has this function. Correct invariants
3439         on BSD systems.
3440         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
3441         BSD systems.
3442
3443 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
3444
3445         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
3446         proposed by Sven Verdoolaege.
3447
3448         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
3449         options.
3450         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
3451         (usage and help tests): Update
3452
3453 2007-04-29  Bruno Haible  <bruno@clisp.org>
3454
3455         * tests/test-fflush.c (main): Use a file of size 17, not 10.
3456         Print more information in case of failure. Disable a test on BeOS.
3457
3458 2007-04-29  Bruno Haible  <bruno@clisp.org>
3459
3460         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
3461         This helps debugging on systems on which no gdb is available.
3462
3463 2007-04-29  Bruno Haible  <bruno@clisp.org>
3464
3465         * lib/freading.h: Improve comments.
3466         * lib/fwriting.h: Likewise.
3467         * tests/test-freading.c (main): Don't check freading immediately after
3468         repositioning. Needed for glibc.
3469
3470 2007-04-29  Bruno Haible  <bruno@clisp.org>
3471
3472         * lib/freading.c (freading): Trivial simplification.
3473
3474 2007-04-28  Bruno Haible  <bruno@clisp.org>
3475
3476         * tests/test-fwriting.c (main): Also test the interaction between
3477         fflush and fwriting.
3478         * modules/fwriting-tests (Depends-on): Add fflush.
3479
3480         * tests/test-freading.c (main): Also test the interaction between
3481         fflush and freading.
3482         * modules/freading-tests (Depends-on): Add fflush.
3483
3484 2007-04-28  Bruno Haible  <bruno@clisp.org>
3485
3486         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
3487         fseeko and ftello.
3488         Suggested by Eric Blake.
3489
3490 2007-04-28  Jim Meyering  <jim@meyering.net>
3491
3492         Avoid false-negative in gl_STDINT_H's C99 conformance test.
3493         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
3494         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
3495
3496 2007-04-27  Eric Blake  <ebb9@byu.net>
3497
3498         * doc/headers/assert.texi (assert.h): Document assert module use.
3499
3500 2007-04-27  Bruno Haible  <bruno@clisp.org>
3501
3502         * doc/headers/*.texi: New files.
3503         * doc/gnulib.texi (Header File Substitutes): New chapter.
3504         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
3505         dependencies.
3506         (standards.info ,standards.html, standards.dvi): Update dependencies.
3507         (mostlyclean, clean): New targets.
3508
3509 2007-04-27  Bruno Haible  <bruno@clisp.org>
3510
3511         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
3512         * modules/sysexits (Files, Makefile.am): Update.
3513
3514         * lib/sys_socket_.h: Renamed from lib/socket_.h.
3515         * modules/sys_socket (Files, Makefile.am): Update.
3516
3517         * lib/sys_stat_.h: Renamed from lib/stat_.h.
3518         * modules/sys_stat (Files, Makefile.am): Update.
3519
3520 2007-04-27  Eric Blake  <ebb9@byu.net>
3521
3522         * lib/freading.h: Improve comments.
3523         * lib/fwriting.h: Likewise.
3524         * lib/fflush.c: Likewise.
3525
3526         Fix closein for mingw.
3527         * modules/closein-tests: Add tests for closein.
3528         * tests/test-closein.c: New file.
3529         * tests/test-closein.sh: Likewise.
3530         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
3531         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
3532
3533 2007-04-27  Bruno Haible  <bruno@clisp.org>
3534
3535         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
3536         version is < 6.
3537         * lib/math_.h [__DECC]: Likewise.
3538         * lib/stdio_.h [__DECC]: Likewise.
3539         * lib/stdlib_.h [__DECC]: Likewise.
3540         * lib/string_.h [__DECC]: Likewise.
3541         * lib/time_.h [__DECC]: Likewise.
3542         * lib/wchar_.h [__DECC]: Likewise.
3543         * lib/wctype_.h [__DECC]: Likewise.
3544
3545 2007-04-27  Bruno Haible  <bruno@clisp.org>
3546
3547         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
3548
3549 2007-04-27  Bruno Haible  <bruno@clisp.org>
3550
3551         * lib/fflush.c: Add comments.
3552         * modules/fpurge-tests (Depends-on): Add fflush.
3553         * modules/freadable-tests (Depends-on): Likewise.
3554         * modules/fwritable-tests (Depends-on): Likewise.
3555
3556 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
3557
3558         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
3559         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
3560         Report by Bruno Haible <bruno@clisp.org>.
3561
3562 2007-04-26  Eric Blake  <ebb9@byu.net>
3563
3564         Fix fflush on mingw.
3565         * modules/fflush (Depends-on): Add freading.
3566         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
3567         but unread data.
3568
3569 2007-04-26  Eric Blake  <ebb9@byu.net>
3570         and Bruno Haible  <bruno@clisp.org>
3571
3572         Implement freading and fwriting.
3573         * lib/freading.c: New file.
3574         * lib/freading.h: Likewise.
3575         * m4/freading.m4: Likewise.
3576         * modules/freading: Likewise.
3577         * modules/freading-tests: Likewise.
3578         * tests/test-freading.c: Likewise.
3579         * lib/fwriting.c: New file.
3580         * lib/fwriting.h: Likewise.
3581         * m4/fwriting.m4: Likewise.
3582         * modules/fwriting: Likewise.
3583         * modules/fwriting-tests: Likewise.
3584         * tests/test-fwriting.c: Likewise.
3585         * MODULES.html.sh (File stream based Input/Output): Mention them.
3586
3587 2007-04-26  Bruno Haible  <bruno@clisp.org>
3588
3589         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
3590         'long' when we assume it.
3591         Suggested by Eric Blake.
3592
3593 2007-04-26  Bruno Haible  <bruno@clisp.org>
3594
3595         Ensure fseeko, ftello are declared on glibc systems.
3596         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
3597         * modules/fseeko (configure.ac-early): Likewise.
3598         * modules/ftello (configure.ac-early): Likewise.
3599         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
3600         AC_FUNC_FSEEKO for this.
3601         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
3602         (gl_CHECK_FSEEKO): Remove macro.
3603
3604 2007-04-26  Bruno Haible  <bruno@clisp.org>
3605
3606         * tests/test-fflush.c (main): Also check the ftell result after
3607         fflush and fseek/fseeko.
3608         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
3609         file descriptor position cache in the stream.
3610         * lib/fseeko.c (rpl_fseeko): Likewise.
3611
3612 2007-04-26  Bruno Haible  <bruno@clisp.org>
3613
3614         * modules/fflush-tests (Depends-on): Add fseeko.
3615
3616 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
3617             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3618
3619         * lib/argz_.h: ensure error_t definition is obtained in same
3620         mechanism system argz.h would have.
3621         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
3622         argz facilities are known bad.  Err on the side of caution if
3623         cross-compiling.
3624
3625 2007-04-25  Eric Blake  <ebb9@byu.net>
3626
3627         * lib/fpurge.c (includes): Use stdlib.h for free.
3628         * tests/test-fflush.c (main): Also test fflush-fseeko.
3629
3630 2007-04-25  Bruno Haible  <bruno@clisp.org>
3631
3632         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
3633         * lib/fseeko.c: New file.
3634         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
3635         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
3636         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
3637         gl_FUNC_FSEEKO.
3638         (gl_FUNC_FSEEKO): Invoke it.
3639         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
3640         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
3641         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
3642
3643 2007-04-25  Bruno Haible  <bruno@clisp.org>
3644
3645         * modules/fflush (Depends-on): Add ftello.
3646
3647 2007-04-25  Bruno Haible  <bruno@clisp.org>
3648
3649         * modules/ftello-tests: New file.
3650         * tests/test-ftello.c: New file.
3651
3652         * modules/ftello: New file.
3653         * m4/ftello.m4: New file.
3654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
3655         HAVE_FTELLO.
3656         * lib/stdio_.h (ftello): New declaration.
3657         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
3658         HAVE_FTELLO.
3659
3660 2007-04-25  Bruno Haible  <bruno@clisp.org>
3661
3662         * modules/fseeko-tests: New file.
3663         * tests/test-fseeko.c: New file.
3664
3665         * modules/fseeko: New file.
3666         * m4/fseeko.m4: New file.
3667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
3668         HAVE_FSEEKO.
3669         * lib/stdio_.h (fseeko): New declaration.
3670         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
3671         HAVE_FSEEKO.
3672
3673 2007-04-25  Bruno Haible  <bruno@clisp.org>
3674
3675         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
3676
3677 2007-04-25  Bruno Haible  <bruno@clisp.org>
3678
3679         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
3680         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
3681         * tests/test-unistd.c: Likewise.
3682         * tests/test-fcntl.c: Likewise.
3683
3684 2007-04-23  Eric Blake  <ebb9@byu.net>
3685
3686         * lib/fflush.c: Fix missing include.
3687         Reported by Bruno Haible.
3688
3689 2007-04-23  Bruno Haible  <bruno@clisp.org>
3690
3691         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
3692         Reported by Eric Blake.
3693
3694 2007-04-23  Bruno Haible  <bruno@clisp.org>
3695
3696         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
3697
3698 2007-04-23  Bruno Haible  <bruno@clisp.org>
3699
3700         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
3701
3702 2007-04-23  Bruno Haible  <bruno@clisp.org>
3703
3704         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
3705         Needed on HP-UX 11.
3706
3707 2007-04-16  Eric Blake  <ebb9@byu.net>
3708
3709         Make fflush rely on fpurge.
3710         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
3711         open coding all variants.
3712         * modules/fflush (Depends-on): Add fpurge and unistd.
3713         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
3714         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
3715
3716         Fix --with-tests compilation on cygwin.
3717         * modules/argmatch-tests (Makefile.am): List gnulib library first
3718         in LDADD.
3719         * modules/argp-tests (Makefile.am): Likewise.
3720         * modules/array-list-tests (Makefile.am): Likewise.
3721         * modules/array-oset-tests (Makefile.am): Likewise.
3722         * modules/avltree-list-tests (Makefile.am): Likewise.
3723         * modules/avltree-oset-tests (Makefile.am): Likewise.
3724         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3725         * modules/carray-list-tests (Makefile.am): Likewise.
3726         * modules/dirname-tests (Makefile.am): Likewise.
3727         * modules/frexp-tests (Makefile.am): Likewise.
3728         * modules/isnanl-tests (Makefile.am): Likewise.
3729         * modules/linked-list-tests (Makefile.am): Likewise.
3730         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3731         * modules/lock-tests (Makefile.am): Likewise.
3732         * modules/rbtree-list-tests (Makefile.am): Likewise.
3733         * modules/rbtree-oset-tests (Makefile.am): Likewise.
3734         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3735         * modules/tls-tests (Makefile.am): Likewise.
3736         * modules/tsearch-tests (Makefile.am): Likewise.
3737         * modules/xvasprintf-tests (Makefile.am): Likewise.
3738
3739         Fix fpurge for cygwin.
3740         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
3741         value.
3742         * modules/fpurge-tests (Depends-on): Clean up trash.
3743
3744 2007-04-16  Simon Josefsson  <simon@josefsson.org>
3745
3746         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
3747
3748         * m4/autobuild.m4: Re-indent.
3749
3750 2007-04-13  Bruno Haible  <bruno@clisp.org>
3751
3752         * modules/fpurge-tests: New file.
3753         * tests/test-fpurge.c: New file.
3754
3755         * modules/fpurge: New file.
3756         * lib/fpurge.h: New file.
3757         * lib/fpurge.c: New file.
3758         * m4/fpurge.m4: New file.
3759
3760 2007-04-13  Bruno Haible  <bruno@clisp.org>
3761
3762         * modules/fbufmode-tests: New file.
3763         * tests/test-fbufmode.c: New file.
3764
3765         * modules/fbufmode: New file.
3766         * lib/fbufmode.h: New file.
3767         * lib/fbufmode.c: New file.
3768         * m4/fbufmode.m4: New file.
3769
3770 2007-04-13  Bruno Haible  <bruno@clisp.org>
3771
3772         * modules/fwritable-tests: New file.
3773         * tests/test-fwritable.c: New file.
3774
3775         * modules/fwritable: New file.
3776         * lib/fwritable.h: New file.
3777         * lib/fwritable.c: New file.
3778         * m4/fwritable.m4: New file.
3779
3780 2007-04-13  Bruno Haible  <bruno@clisp.org>
3781
3782         * modules/freadable-tests: New file.
3783         * tests/test-freadable.c: New file.
3784
3785         * modules/freadable: New file.
3786         * lib/freadable.h: New file.
3787         * lib/freadable.c: New file.
3788         * m4/freadable.m4: New file.
3789
3790 2007-04-13  Bruno Haible  <bruno@clisp.org>
3791
3792         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
3793         MOSTLYCLEANFILES.
3794
3795 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
3796
3797         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
3798         gzip bootstrap.conf to avoid dragging in i18n machinery.
3799         (gnulib_tool_option): Use it.
3800
3801 2007-04-13  Bruno Haible  <bruno@clisp.org>
3802
3803         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
3804         %F directives.
3805         * tests/test-vasprintf-posix.c (test_function): Likewise.
3806         * tests/test-snprintf-posix.h (test_function): Likewise.
3807         * tests/test-sprintf-posix.h (test_function): Likewise.
3808         * tests/test-fprintf-posix.h (test_function): Likewise.
3809         * tests/test-printf-posix.h (test_function): Likewise.
3810         * tests/test-fprintf-posix.out: Likewise.
3811
3812 2007-04-13  Bruno Haible  <bruno@clisp.org>
3813
3814         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
3815         * modules/tls-tests (configure.ac): Likewise.
3816         Reported by Arto C. Nirkko <anirkko@insel.ch>.
3817
3818 2007-04-13  Bruno Haible  <bruno@clisp.org>
3819
3820         * lib/tls.c (glthread_tls_get): Fix return type.
3821         Patch by Arto C. Nirkko <anirkko@insel.ch>.
3822
3823 2007-04-12  Eric Blake  <ebb9@byu.net>
3824
3825         * modules/gettime (Depends-on): Remove gettime.
3826         Reported by Dmitry V. Levin.
3827
3828 2007-04-12  Bruno Haible  <bruno@clisp.org>
3829
3830         * modules/fflush (Include): Mention <stdio.h>.
3831         * modules/strtoimax (Include): Mention <inttypes.h>.
3832         * modules/strtoumax (Include): Likewise.
3833
3834 2007-04-12  Eric Blake  <ebb9@byu.net>
3835
3836         * .cvsignore: New file.
3837         * .gitignore: Likewise.
3838
3839 2007-04-12  Bruno Haible  <bruno@clisp.org>
3840
3841         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
3842         not before, since $(LDADD) often contains libgnu.a.
3843         * modules/striconv-tests (test_striconv_LDADD): Likewise.
3844         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
3845         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
3846         Needed on Cygwin.
3847
3848 2007-04-12  Eric Blake  <ebb9@byu.net>
3849
3850         Work around glibc's failure to flush stdin on fclose.
3851         * lib/closein.c (close_stdin): Flush stdin before closing.
3852
3853         Work around glibc's failure to reset seekable stdin on exit.
3854         * modules/closein: New module.
3855         * lib/closein.c: New file.
3856         * lib/closein.h: Likewise.
3857         * m4/closein.m4: Likewise.
3858         * MODULES.html.sh (File stream based Input/Output): Document it.
3859
3860 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3861
3862         * gnulib-tool: Rename generated 'autobuild' script to
3863         'do-autobuild' in --create-megatestdir output.
3864
3865         * doc/gnulib.texi (Build robot for gnulib): Fix.
3866
3867 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3868
3869         * modules/sysexits (Depends-on): Add absolute-header.
3870
3871 2007-04-12  Eric Blake  <ebb9@byu.net>
3872
3873         No need to preserve errno on success.
3874         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
3875         Reported by Bruno Haible.
3876
3877 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3878
3879         * MODULES.html.sh (Support for maintaining and releasing
3880         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
3881
3882 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3883
3884         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
3885
3886 2007-04-12  Simon Josefsson  <simon@josefsson.org>
3887
3888         * modules/autobuild: New module.
3889
3890         * m4/autobuild.m4: New file.
3891
3892 2007-04-11  Bruno Haible  <bruno@clisp.org>
3893
3894         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
3895         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
3896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
3897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
3898         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3899         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3900         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3902         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3903         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
3905         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3906         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
3908         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3909         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
3911         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3912         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
3914         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3915         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
3917         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3918         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
3920         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3921         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3922         Reported by Eric Blake.
3923
3924 2007-04-11  Bruno Haible  <bruno@clisp.org>
3925
3926         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
3927
3928 2007-04-10  Bruno Haible  <bruno@clisp.org>
3929
3930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
3931         for NaN and Infinity. Needed on FreeBSD 6.1.
3932         * tests/test-vasnprintf-posix.c (test_function): Undo last change
3933         regarding results for "%010a" of Infinity and NaN.
3934         * tests/test-vasprintf-posix.c (test_function): Likewise.
3935         * tests/test-snprintf-posix.h (test_function): Likewise.
3936         * tests/test-sprintf-posix.h (test_function): Likewise.
3937         * tests/test-fprintf-posix.h (test_function): Likewise.
3938         * tests/test-printf-posix.h (test_function): Likewise.
3939         * tests/test-fprintf-posix.out: Likewise.
3940
3941 2007-04-10  Bruno Haible  <bruno@clisp.org>
3942
3943         * modules/locale-tests: New file.
3944         * tests/test-locale.c: New file.
3945
3946         * modules/locale: New file.
3947         * lib/locale_.h: New file.
3948         * m4/locale_h.m4: New file.
3949
3950 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
3951             Bruno Haible  <bruno@clisp.org>
3952
3953         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
3954         be determined, test for availability of the copysignf, copysign,
3955         copysignl functions.
3956         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
3957         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
3958         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
3959
3960 2007-04-09  Eric Blake  <ebb9@byu.net>
3961
3962         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
3963         * modules/stdio (Makefile.am): Support fflush.
3964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3965         * modules/fflush: New file.
3966         * lib/fflush.c: Likewise.
3967         * m4/fflush.m4: Likewise.
3968         * modules/fflush-tests: New test.
3969         * tests/test-fflush.c: Likewise.
3970         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
3971
3972 2007-04-06  Bruno Haible  <bruno@clisp.org>
3973
3974         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
3975         (VASNPRINTF): Use signbit for faster determination whether to print a
3976         minus sign.
3977         * modules/vasnprintf (Files): Remove lib/float+.h.
3978         * modules/fprintf-posix (Depends-on): Add signbit.
3979         * modules/snprintf-posix (Depends-on): Likewise.
3980         * modules/sprintf-posix (Depends-on): Likewise.
3981         * modules/vasnprintf-posix (Depends-on): Likewise.
3982         * modules/vasprintf-posix (Depends-on): Likewise.
3983         * modules/vfprintf-posix (Depends-on): Likewise.
3984         * modules/vsnprintf-posix (Depends-on): Likewise.
3985         * modules/vsprintf-posix (Depends-on): Likewise.
3986
3987 2007-04-06  Bruno Haible  <bruno@clisp.org>
3988
3989         * tests/test-frexp.c (main): Test also the sign bit of zero results.
3990         * tests/test-frexpl.c (main): Likewise.
3991         * tests/test-ldexpl.c (main): Likewise.
3992         * modules/frexp-tests (Depends-on): Add signbit.
3993         * modules/frexpl-tests (Depdends-on): Likewise.
3994         * modules/ldexpl-tests (Depdends-on): Likewise.
3995
3996 2007-04-06  Bruno Haible  <bruno@clisp.org>
3997
3998         * modules/signbit-tests: New file.
3999         * tests/test-signbit.c: New file.
4000
4001         * modules/signbit: New file.
4002         * lib/signbitf.c: New file.
4003         * lib/signbitd.c: New file.
4004         * lib/signbitl.c: New file.
4005         * m4/signbit.m4: New file.
4006         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
4007         (signbit): New macro.
4008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
4009         REPLACE_SIGNBIT.
4010         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
4011         REPLACE_FREXPL into math.h.
4012
4013 2007-04-06  Bruno Haible  <bruno@clisp.org>
4014
4015         * modules/isnanf-nolibm-tests: New file.
4016         * tests/test-isnanf.c: New file.
4017
4018         * modules/isnanf-nolibm: New file.
4019         * lib/isnanf.h: New file.
4020         * lib/isnanf.c: New file.
4021         * lib/isnan.c: Consider the USE_FLOAT macro.
4022         * m4/isnanf.m4: New file.
4023
4024 2007-04-06  Bruno Haible  <bruno@clisp.org>
4025
4026         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
4027         (Link): New section.
4028
4029         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
4030
4031 2007-04-06  Bruno Haible  <bruno@clisp.org>
4032
4033         Assume the 'long double' type.
4034         * m4/longdouble.m4: Remove file.
4035         * config/srclist.txt: Don't mention longdouble.m4.
4036         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
4037         * lib/float+.h: Likewise.
4038         * lib/frexp.c: Likewise.
4039         * lib/printf-args.h: Likewise.
4040         * lib/printf-args.c: Likewise.
4041         * lib/printf-frexp.c: Likewise.
4042         * lib/printf-parse.c: Likewise.
4043         * lib/vasnprintf.c: Likewise.
4044         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
4045         * m4/intl.m4: Likewise.
4046         * m4/isnanl.m4: Likewise.
4047         * m4/printf.m4: Likewise.
4048         * m4/printf-frexpl.m4: Likewise.
4049         * m4/vasnprintf.m4: Likewise.
4050         * modules/allocsa (Files): Remove m4/longdouble.m4.
4051         * modules/gettext (Files): Likewise.
4052         * modules/relocatable-prog-wrapper (Files): Likewise.
4053         * modules/vasnprintf (Files): Likewise.
4054         * modules/isnanl (Files): Likewise.
4055         (Include): Simplify.
4056         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
4057         (Include): Simplify.
4058         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
4059         (Include): Simplify.
4060         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
4061         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4062         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
4063         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4064         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
4065         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4066         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
4067         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4068         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
4069         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4070         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
4071         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4072         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
4073         * tests/test-isnanl.c: Likewise.
4074         * tests/test-snprintf-posix.h: Likewise.
4075         * tests/test-sprintf-posix.h: Likewise.
4076         * tests/test-vasnprintf-posix.c: Likewise.
4077         * tests/test-vasnprintf-posix2.c: Likewise.
4078         * tests/test-vasprintf-posix.c: Likewise.
4079
4080 2007-04-06  Bruno Haible  <bruno@clisp.org>
4081
4082         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
4083         * lib/math_.h [__DECC]: Include the overridden include file through
4084         #include_next, outside the double-inclusion guard.
4085         * lib/stdio_.h [__DECC]: Likewise.
4086         * lib/stdlib_.h [__DECC]: Likewise.
4087         * lib/string_.h [__DECC]: Likewise.
4088         * lib/time_.h [__DECC]: Likewise.
4089         * lib/wchar_.h [__DECC]: Likewise.
4090         * lib/wctype_.h [__DECC]: Likewise.
4091         * lib/inttypes_.h [__DECC]: Likewise.
4092         Reported by Albert Chin <china@thewrittenword.com> in
4093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
4094
4095 2007-04-04  Eric Blake  <ebb9@byu.net>
4096
4097         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
4098         1.5.x.
4099
4100 2007-04-04  Bruno Haible  <bruno@clisp.org>
4101
4102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
4103         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
4104
4105 2007-04-04  Bruno Haible  <bruno@clisp.org>
4106
4107         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
4108         results for "%010a" of Infinity and NaN.
4109         * tests/test-vasprintf-posix.c (test_function): Likewise.
4110         * tests/test-snprintf-posix.h (test_function): Likewise.
4111         * tests/test-sprintf-posix.h (test_function): Likewise.
4112         * tests/test-fprintf-posix.h (test_function): Remove these tests.
4113         * tests/test-printf-posix.h (test_function): Likewise.
4114         * tests/test-fprintf-posix.out: Update.
4115         Needed for FreeBSD 6.1.
4116
4117 2007-04-04  Bruno Haible  <bruno@clisp.org>
4118
4119         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
4120         directly used by the gnulib modules nor by gnulib-tool.
4121
4122 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4123
4124         * DEPENDENCIES: Give overall description of version dependency
4125         desirability.  Use more-typical names for apps.
4126         Add shell, coreutils, diffutils, grep, tar, gzip.
4127
4128 2007-04-04  Simon Josefsson  <simon@josefsson.org>
4129
4130         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
4131
4132 2007-04-04  Karl Berry  <karl@gnu.org>
4133
4134         * MODULES.html.sh (func_module): missing '.
4135
4136 2007-04-03  Bruno Haible  <bruno@clisp.org>
4137
4138         * modules/argmatch-tests (Makefile.am): New variable
4139         test_argmatch_LDADD.
4140         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
4141         * modules/array-list-tests (Makefile.am): New variable
4142         test_array_list_LDADD.
4143         * modules/array-oset-tests (Makefile.am): New variable
4144         test_array_oset_LDADD.
4145         * modules/avltree-list-tests (Makefile.am): New variable
4146         test_avltree_list_LDADD.
4147         * modules/avltree-oset-tests (Makefile.am): New variable
4148         test_avltree_oset_LDADD.
4149         * modules/avltreehash-list-tests (Makefile.am): New variable
4150         test_avltreehash_list_LDADD.
4151         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
4152         test_canonicalize_lgpl_LDADD.
4153         * modules/carray-list-tests (Makefile.am): New variable
4154         test_carray_list_LDADD.
4155         * modules/dirname-tests (Makefile.am): New variable
4156         test_dirname_LDADD.
4157         * modules/linked-list-tests (Makefile.am): New variable
4158         test_linked_list_LDADD.
4159         * modules/linkedhash-list-tests (Makefile.am): New variable
4160         test_linkedhash_list_LDADD.
4161         * modules/rbtree-list-tests (Makefile.am): New variable
4162         test_rbtree_list_LDADD.
4163         * modules/rbtree-oset-tests (Makefile.am): New variable
4164         test_rbtree_oset_LDADD.
4165         * modules/rbtreehash-list-tests (Makefile.am): New variable
4166         test_rbtreehash_list_LDADD.
4167         * modules/xvasprintf-tests (Makefile.am): New variable
4168         test_xvasprintf_LDADD.
4169         Reported by Eric Blake.
4170
4171 2007-04-03  Eric Blake  <ebb9@byu.net>
4172
4173         * DEPENDENCIES: Weaken m4 requirements.
4174
4175 2007-04-03  Bruno Haible  <bruno@clisp.org>
4176
4177         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
4178         * modules/isnanl-tests (configure.ac): Likewise.
4179
4180 2007-04-03  Ben Pfaff  <blp@gnu.org>
4181
4182         * modules/iconv_open: Add $(srcdir)/ to source directory
4183         references in Makefile fragments that call gperf, to fix VPATH
4184         builds.
4185
4186 2007-04-03  Bruno Haible  <bruno@clisp.org>
4187
4188         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
4189         * lib/ldexpl.c: Undo last change.
4190
4191 2007-04-03  Bruno Haible  <bruno@clisp.org>
4192
4193         * modules/printf-frexpl (Depends-on): Undo last change.
4194         (Files): Add m4/ldexpl.m4.
4195
4196 2007-04-03  Bruno Haible  <bruno@clisp.org>
4197
4198         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
4199         * modules/isnanl (Link): New section.
4200
4201         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
4202         * modules/frexp (Link): New section.
4203
4204         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
4205         * modules/frexpl (Link): New section.
4206
4207         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
4208         * modules/ldexpl (Link): New section.
4209
4210 2007-04-03  Bruno Haible  <bruno@clisp.org>
4211
4212         * modules/TEMPLATE-EXTENDED: New file.
4213         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
4214
4215 2007-04-03  Bruno Haible  <bruno@clisp.org>
4216
4217         * DEPENDENCIES: New file.
4218         Suggested by Simon Josefsson.
4219
4220 2007-04-03  Bruno Haible  <bruno@clisp.org>
4221
4222         * doc/gnulib.texi: Escape @.
4223
4224 2007-04-03  James Youngman  <jay@gnu.org>
4225         and Paul Eggert  <eggert@cs.ucla.edu>
4226
4227         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
4228         birthtime on all systems that have birthtime, not just those which
4229         use st_birthtimensec rather than st_birthtim.  Putting zero in
4230         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
4231         that the birth time is not available for files on an NFS mount.
4232
4233 2007-04-03  Simon Josefsson  <simon@josefsson.org>
4234
4235         * modules/memxor: Move back from crypto/, suggested by Bruno.
4236         * modules/crypto/hmac-sha1: Fix memxor dependency.
4237
4238         * modules/crypto/gc: Moved from ../.
4239
4240 2007-04-02  Eric Blake  <ebb9@byu.net>
4241
4242         * lib/ldexpl.c (includes): Avoid libm.
4243
4244         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
4245
4246 2007-04-02  Bruno Haible  <bruno@clisp.org>
4247
4248         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
4249         on IRIX.
4250
4251 2007-04-02  Bruno Haible  <bruno@clisp.org>
4252
4253         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
4254         x86 or x86_64 platforms running MacOS X.
4255         Reported by Ryan Schmidt <@ryandesign.com>.
4256
4257 2007-04-02  Bruno Haible  <bruno@clisp.org>
4258
4259         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
4260         i386.
4261
4262 2007-04-01  Simon Josefsson  <simon@josefsson.org>
4263
4264         * modules/crypto/arcfour: Moved from ../.
4265         * modules/crypto/arcfour-tests: Moved from ../.
4266         * modules/crypto/arctwo: Moved from ../.
4267         * modules/crypto/arctwo-tests: Moved from ../.
4268         * modules/crypto/des: Moved from ../.
4269         * modules/crypto/des-tests: Moved from ../.
4270         * modules/crypto/gc-arcfour: Moved from ../.
4271         * modules/crypto/gc-arcfour-tests: Moved from ../.
4272         * modules/crypto/gc-arctwo: Moved from ../.
4273         * modules/crypto/gc-arctwo-tests: Moved from ../.
4274         * modules/crypto/gc-des: Moved from ../.
4275         * modules/crypto/gc-des-tests: Moved from ../.
4276         * modules/crypto/gc-hmac-md5: Moved from ../.
4277         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
4278         * modules/crypto/gc-hmac-sha1: Moved from ../.
4279         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
4280         * modules/crypto/gc-md2: Moved from ../.
4281         * modules/crypto/gc-md2-tests: Moved from ../.
4282         * modules/crypto/gc-md4: Moved from ../.
4283         * modules/crypto/gc-md4-tests: Moved from ../.
4284         * modules/crypto/gc-md5: Moved from ../.
4285         * modules/crypto/gc-md5-tests: Moved from ../.
4286         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
4287         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
4288         * modules/crypto/gc-random: Moved from ../.
4289         * modules/crypto/gc-rijndael: Moved from ../.
4290         * modules/crypto/gc-rijndael-tests: Moved from ../.
4291         * modules/crypto/gc-sha1: Moved from ../.
4292         * modules/crypto/gc-sha1-tests: Moved from ../.
4293         * modules/crypto/gc-tests: Moved from ../.
4294         * modules/crypto/hmac-md5: Moved from ../.
4295         * modules/crypto/hmac-md5-tests: Moved from ../.
4296         * modules/crypto/hmac-sha1: Moved from ../.
4297         * modules/crypto/hmac-sha1-tests: Moved from ../.
4298         * modules/crypto/md2: Moved from ../.
4299         * modules/crypto/md2-tests: Moved from ../.
4300         * modules/crypto/md4: Moved from ../.
4301         * modules/crypto/md4-tests: Moved from ../.
4302         * modules/crypto/md5: Moved from ../.
4303         * modules/crypto/md5-tests: Moved from ../.
4304         * modules/crypto/memxor: Moved from ../.
4305         * modules/crypto/rijndael: Moved from ../.
4306         * modules/crypto/rijndael-tests: Moved from ../.
4307         * modules/crypto/sha1: Moved from ../.
4308
4309 2007-03-30  James Youngman  <jay@gnu.org>
4310
4311         * tests/test-stat-time.c (prepare_test): use chmod() rather than
4312         rename() to change the ctime of a file (because ctime is unaffected
4313         by rename on jfs2 on AIX 5.1).
4314         (main): Start by doing cleanup, in case a previous run failed leaving
4315         test files behind.
4316
4317 2007-03-31  Bruno Haible  <bruno@clisp.org>
4318
4319         Support old proprietary implementations of iconv.
4320         * modules/iconv_open: New file.
4321         * lib/iconv_.h: New file.
4322         * m4/iconv_h.m4: New file.
4323         * lib/iconv_open.c: New file.
4324         * lib/iconv_open-aix.gperf: New file.
4325         * lib/iconv_open-hpux.gperf: New file.
4326         * lib/iconv_open-irix.gperf: New file.
4327         * lib/iconv_open-osf.gperf: New file.
4328         * m4/iconv_open.m4: New file.
4329         * modules/linebreak (Depends-on): Add iconv_open.
4330         * modules/striconv (Depends-on): Likewise.
4331         * modules/striconveh (Depends-on): Likewise.
4332         * modules/unicodeio (Depends-on): Likewise.
4333         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
4334         (iconv_t)(-1).
4335         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
4336         conversion if cd is (iconv_t)(-1).
4337         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
4338         is not possible.
4339
4340 2007-03-31  Bruno Haible  <bruno@clisp.org>
4341
4342         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4343         work on Solaris either. Protect also second use of "autodetect_jp".
4344
4345 2007-03-31  Bruno Haible  <bruno@clisp.org>
4346
4347         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
4348         the function is not present.
4349
4350 2007-03-31  Bruno Haible  <bruno@clisp.org>
4351
4352         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
4353         the function is not present.
4354
4355 2007-03-31  Bruno Haible  <bruno@clisp.org>
4356
4357         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
4358         a bug in HP-UX iconv_open().
4359
4360 2007-03-31  Bruno Haible  <bruno@clisp.org>
4361
4362         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
4363         (Mathematics <math.h>): New section, add fpieee.
4364         (Input/output <stdio.h>): Add fseterr.
4365         (Mathematics <math.h>): New section, add printf-frexp.
4366         (Container data structures): Add sublist.
4367         (Core language properties): Add fpucw, inline.
4368         (Functions for greatest-width integer types <inttypes.h>): Add
4369         imaxabs, imaxdiv, inttypes.
4370         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
4371         isnanl-nolibm, ldexp.
4372         (Mathematics <math.h>): New section, add printf-frexpl.
4373         (Support for systems lacking POSIX:2001): Add fprintf-posix,
4374         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
4375         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
4376         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
4377         (Unicode string functions): Add unistr/u*-mbtoucr.
4378         (Java): Add javacomp-script, javaexec-script.
4379         (C#): Add csharpcomp-script, csharpexec-script.
4380         (Support for building libraries and executables): Add havelib,
4381         relocatable-*.
4382         (Support for maintaining and releasing projects): Renamed from
4383         'Support for maintaining and release projects'. Add announce-gen.
4384
4385 2007-03-31  Bruno Haible  <bruno@clisp.org>
4386
4387         * README: Talk primarily about git.
4388         (git and CVS): Renamed from CVS.
4389         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
4390         gnulib is available through git.
4391         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
4392
4393 2007-03-30  Bruno Haible  <bruno@clisp.org>
4394
4395         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
4396         * lib/poll_.h: Likewise.
4397         * lib/stat_.h: Likewise.
4398         * lib/sys_time_.h: Likewise.
4399         * lib/sysexit_.h: Likewise.
4400         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
4401         * lib/stdbool_.h: Likewise.
4402         * lib/byteswap_.h: Add double-inclusion guard.
4403
4404 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
4405
4406         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
4407
4408 2007-03-30  Karl Berry  <karl@gnu.org>
4409
4410         * config/srclist-update: double space after USA in the license
4411         substitution, since that's how it's usually (?) written.
4412
4413 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4414
4415         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
4416         reported by Bruno Haible.
4417
4418 2007-03-29  Bruno Haible  <bruno@clisp.org>
4419
4420         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
4421         a bug in AIX iconv().
4422
4423 2007-03-29  Bruno Haible  <bruno@clisp.org>
4424
4425         * modules/ldexpl-tests: New file.
4426         * tests/test-ldexpl.c: New file.
4427
4428 2007-03-29  Bruno Haible  <bruno@clisp.org>
4429
4430         * lib/ldexpl.c: Include fpucw.h.
4431         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
4432         multiplication.
4433         * modules/ldexpl (Depends-on): Add fpucw.
4434
4435 2007-03-29  Bruno Haible  <bruno@clisp.org>
4436
4437         * modules/ldexpl: New file.
4438         * m4/ldexpl.m4: New file.
4439         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
4440         set.
4441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
4442         REPLACE_LDEXPL.
4443         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
4444         REPLACE_LDEXPL.
4445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
4446         gl_FUNC_LDEXPL_WORKS.
4447         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
4448         * modules/mathl (Files): Remove lib/ldexpl.c.
4449         (Depends-on): Add ldexpl.
4450
4451 2007-03-29  Bruno Haible  <bruno@clisp.org>
4452
4453         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
4454
4455 2007-03-29  Bruno Haible  <bruno@clisp.org>
4456
4457         * tests/test-striconveh.c (main): Don't assume that a direct conversion
4458         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
4459         and possibly also HP-UX.
4460         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4461         work on AIX, IRIX, HP-UX, OSF/1.
4462         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4463         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4464         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4465         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4466         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4467         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4468
4469 2007-03-29  Bruno Haible  <bruno@clisp.org>
4470
4471         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
4472
4473 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
4474
4475         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
4476         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
4477
4478 2007-03-29  Eric Blake  <ebb9@byu.net>
4479
4480         * lib/acl-internal.h: Remove redundant include.
4481         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
4482         Cygwin when a file is locked.
4483
4484 2007-03-29  Bruno Haible  <bruno@clisp.org>
4485
4486         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
4487         file.
4488         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
4489
4490 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
4491
4492         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
4493         try to remove a parent directory if the child couldn't be removed
4494         (except for the first rmdir, which could fail because the child
4495         doesn't exist).  Problem reported by Jeff Blaine in
4496         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
4497
4498 2007-03-28  Bruno Haible  <bruno@clisp.org>
4499
4500         * lib/striconveh.c (utf8conv_carefully): New function.
4501         (mem_cd_iconveh_internal): Invoke it.
4502
4503 2007-03-28  Bruno Haible  <bruno@clisp.org>
4504
4505         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
4506         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
4507         input.
4508         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
4509         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
4510         unistr/u8-uctomb.
4511
4512 2007-03-28  Bruno Haible  <bruno@clisp.org>
4513
4514         * modules/unistr/u8-mbtoucr: New file.
4515         * lib/unistr/u8-mbtoucr.c: New file.
4516         * modules/unistr/u16-mbtoucr: New file.
4517         * lib/unistr/u16-mbtoucr.c: New file.
4518         * modules/unistr/u16-mbtoucr: New file.
4519         * lib/unistr/u16-mbtoucr.c: New file.
4520         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
4521
4522 2007-03-27  Simon Josefsson  <simon@josefsson.org>
4523             Bruno Haible  <bruno@clisp.org>
4524
4525         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
4526         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
4527         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
4528
4529         * m4/stdio_h.m4: Add stubs for vasprintf too.
4530
4531         * modules/stdio: Support vasprintf in sed command.
4532
4533         * modules/vasprintf: Depend on stdio for prototypes.  Remove
4534         vasprintf.h.  Add stdio module indicator.
4535
4536         * lib/stdio_.h: Declare asprintf and vasprintf, based on
4537         vasprintf.h.
4538
4539         * lib/vasprintf.h: File removed.
4540
4541         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
4542         * lib/vasprintf.c: Ditto.
4543         * lib/xvasprintf.c: Ditto.
4544         * tests/test-vasprintf-posix.c: Ditto.
4545         * tests/test-vasprintf.c: Ditto.
4546
4547 2007-03-27  Bruno Haible  <bruno@clisp.org>
4548
4549         Make vasnprintf multithread-safe.
4550         * lib/vasnprintf.c (decimal_point_char): New function.
4551         (VASNPRINTF): Use it.
4552         Suggested by Simon Josefsson.
4553
4554 2007-03-27  Eric Blake  <ebb9@byu.net>
4555
4556         Support sub-second birthtime on cygwin.
4557         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
4558         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
4559         (get_stat_birthtime): Also work with st_birthtim.
4560
4561 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
4562
4563         * lib/stat-time.h (USE_BIRTHTIME): Remove.
4564         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
4565         (get_stat_birthtime_ns): Do not try to use "spare" fields.
4566         (get_stat_birthtime_ns): Simplify compile-time tests.
4567         (get_stat_birthtime): Change the API to look like
4568         get_stat_mtime etc., except return a negative tv_nsec on error.
4569         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
4570         Don't check for "spare" fields.
4571         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
4572         or for struct stat.st_birthtime, as these tests aren't used.
4573         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
4574
4575 2007-03-27  Bruno Haible  <bruno@clisp.org>
4576
4577         * lib/stat-time.h: Include <sys/stat.h>.
4578
4579 2007-03-27  James Youngman  <jay@gnu.org>
4580
4581         * lib/stat-time.h (get_stat_birthtime): New function for
4582           retrieving st_birthtime as provided by UFS2 (hence *BSD).
4583         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
4584           and its variants.
4585         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
4586         * modules/stat-time-test: New file.
4587         * tests/test-stat-time.c: New test, devised by Bruno Haible.
4588
4589 2007-03-26  Bruno Haible  <bruno@clisp.org>
4590
4591         Better support of signalling NaNs.
4592         * lib/atanl.c: Include isnanl.h.
4593         (atanl): Perform test for NaN at the beginning of the function and
4594         through a call to isnanl.
4595         * lib/cosl.c: Include isnanl.h.
4596         (cosl): Perform test for NaN at the beginning of the function and
4597         through a call to isnanl.
4598         * lib/ldexpl.c: Include isnanl.h.
4599         (ldexpl): Perform test for NaN through a call to isnanl.
4600         * lib/logl.c: Include isnanl.h.
4601         (logl): Perform test for NaN at the beginning of the function and
4602         through a call to isnanl.
4603         * lib/sinl.c: Include isnanl.h.
4604         (sinl): Perform test for NaN at the beginning of the function and
4605         through a call to isnanl.
4606         * lib/sqrtl.c: Include isnanl.h.
4607         (sqrtl): Perform test for NaN at the beginning of the function and
4608         through a call to isnanl.
4609         * lib/tanl.c: Include isnanl.h.
4610         (tanl): Perform test for NaN at the beginning of the function and
4611         through a call to isnanl.
4612         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
4613         * modules/mathl (Depends-on): Add isnanl.
4614
4615 2007-03-26  Eric Blake  <ebb9@byu.net>
4616
4617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
4618         regression in logic sense of previous patch.
4619
4620 2007-03-26  Bruno Haible  <bruno@clisp.org>
4621
4622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
4623         unportable shell command "if ! ...".
4624         Reported by Ralf Wildenhues.
4625
4626 2007-03-25  Bruno Haible  <bruno@clisp.org>
4627
4628         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
4629         <sysexits.h> file, and only add EX_CONFIG.
4630         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
4631         absolute file name and whether it is sufficient. Substitute also
4632         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
4633         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
4634         ABSOLUTE_SYSEXITS_H into sysexits.h.
4635
4636 2007-03-25  Bruno Haible  <bruno@clisp.org>
4637
4638         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
4639         hints is NULL.
4640
4641 2007-03-25  Bruno Haible  <bruno@clisp.org>
4642
4643         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
4644         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
4645
4646 2007-03-25  Bruno Haible  <bruno@clisp.org>
4647
4648         * lib/vasnprintf.c: Include langinfo.h.
4649         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
4650         multithread-safe.
4651         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
4652         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
4653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4657         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
4659         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4660         Reported by Simon Josefsson.
4661
4662 2007-03-25  Bruno Haible  <bruno@clisp.org>
4663
4664         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
4665         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
4666         * modules/vasnprintf (Depends-on): Add stdint.
4667
4668 2007-03-25  Bruno Haible  <bruno@clisp.org>
4669
4670         * modules/fpieee: New file.
4671         * m4/fpieee.m4: New file.
4672         * modules/isnan-nolibm (Depends-on): Add fpieee.
4673         * modules/isnanl-nolibm (Depends-on): Add fpieee.
4674         * modules/isnanl (Depends-on): Add fpieee.
4675
4676 2007-03-25  Bruno Haible  <bruno@clisp.org>
4677
4678         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
4679
4680 2007-03-25  Bruno Haible  <bruno@clisp.org>
4681
4682         Avoid test failures on IRIX 6.5.
4683         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
4684         (main): Use it.
4685         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
4686         macros.
4687         (main): Use them.
4688
4689 2007-03-25  Bruno Haible  <bruno@clisp.org>
4690
4691         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
4692         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
4693         exists but doesn't work.
4694         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
4695         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
4696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
4697         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
4698
4699 2007-03-25  Bruno Haible  <bruno@clisp.org>
4700
4701         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
4702         returns inf. Needed on IRIX 6.5.
4703
4704 2007-03-25  Bruno Haible  <bruno@clisp.org>
4705
4706         * tests/test-frexpl.c: Include isnanl-nolibm.h.
4707         (main): Use isnanl instead of x != x idiom.
4708         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
4709
4710         * tests/test-frexp.c: Include isnan.h.
4711         (main): Use isnan instead of x != x idiom.
4712         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
4713
4714 2007-03-25  Bruno Haible  <bruno@clisp.org>
4715
4716         * tests/test-frexp.c (NaN): New function/macro.
4717         (main): Use it instead of 0.0 / 0.0.
4718         * tests/test-isnan.c (NaN): New function/macro.
4719         (main): Use it instead of 0.0 / 0.0.
4720         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
4721         (test_function): Use it instead of 0.0 / 0.0.
4722         * tests/test-vasprintf-posix.c (NaN): New function/macro.
4723         (test_function): Use it instead of 0.0 / 0.0.
4724         * tests/test-snprintf-posix.h (NaN): New function/macro.
4725         (test_function): Use it instead of 0.0 / 0.0.
4726         * tests/test-sprintf-posix.h (NaN): New function/macro.
4727         (test_function): Use it instead of 0.0 / 0.0.
4728         * tests/test-fprintf-posix.h (NaN): New function/macro.
4729         (test_function): Use it instead of 0.0 / 0.0.
4730         * tests/test-printf-posix.h (NaN): New function/macro.
4731         (test_function): Use it instead of 0.0 / 0.0.
4732
4733         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
4734
4735 2007-03-25  Bruno Haible  <bruno@clisp.org>
4736
4737         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
4738
4739 2007-03-25  Bruno Haible  <bruno@clisp.org>
4740
4741         * lib/regexec.c (merge_state_with_log): Make static.
4742
4743 2007-03-25  Bruno Haible  <bruno@clisp.org>
4744
4745         * lib/trigl.c (kernel_rem_pio2): Make static.
4746
4747 2007-03-25  Bruno Haible  <bruno@clisp.org>
4748
4749         * lib/sincosl.c (sincosl_table): Make static.
4750
4751 2007-03-25  Bruno Haible  <bruno@clisp.org>
4752
4753         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
4754         if the compiler does not support C99.
4755
4756 2007-03-25  Bruno Haible  <bruno@clisp.org>
4757
4758         * modules/time (Makefile.am): Ensure all rule action lines start with a
4759         tab.
4760
4761 2007-03-24  Bruno Haible  <bruno@clisp.org>
4762
4763         * modules/tsearch-tests: New file.
4764         * tests/test-tsearch.sh: New file.
4765         * tests/test-tsearch.c: New file, mostly copied from glibc.
4766
4767         * modules/search-tests: New file.
4768         * tests/test-search.c: New file.
4769
4770         * modules/search: New file.
4771         * lib/search_.h: New file, incorporating lib/tsearch.h.
4772         * m4/search_h.m4: New file.
4773         * lib/tsearch.h: Remove file.
4774         * lib/tsearch.c: Include search.h instead of tsearch.h.
4775         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
4776         HAVE_TSEARCH.
4777         * modules/tsearch (Files): Remove lib/tsearch.h.
4778         (Depends-on): Add search.
4779         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
4780         (Include): Change tsearch.h into search.h.
4781
4782 2007-03-24  Bruno Haible  <bruno@clisp.org>
4783
4784         * modules/fpucw: New file.
4785         * lib/fpucw.h: New file.
4786         * lib/frexp.c: Include fpucw.h.
4787         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4788         (FUNC): Use them.
4789         * lib/printf-frexp.c: Include fpucw.h.
4790         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4791         (FUNC): Use them.
4792         * lib/vasnprintf.c: Include fpucw.h.
4793         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
4794         'long double' calculations.
4795         * tests/test-frexpl.c: Include fpucw.h.
4796         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4797         * tests/test-printf-frexpl.c: Include fpucw.h.
4798         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4799         * modules/frexpl (Depends-on): Add fpucw.
4800         * modules/printf-frexpl (Depends-on): Likewise.
4801         * modules/fprintf-posix (Depends-on): Likewise.
4802         * modules/snprintf-posix (Depends-on): Likewise.
4803         * modules/sprintf-posix (Depends-on): Likewise.
4804         * modules/vasnprintf-posix (Depends-on): Likewise.
4805         * modules/vasprintf-posix (Depends-on): Likewise.
4806         * modules/vfprintf-posix (Depends-on): Likewise.
4807         * modules/vsnprintf-posix (Depends-on): Likewise.
4808         * modules/vsprintf-posix (Depends-on): Likewise.
4809         * modules/frexpl-tests (Depends-on): Likewise.
4810         * modules/printf-frexpl-tests (Depends-on): Likewise.
4811
4812 2007-03-24  Bruno Haible  <bruno@clisp.org>
4813
4814         * lib/float+.h: New file.
4815         * lib/isnan.c: Include float+.h.
4816         (SIZE): New macro.
4817         (FUNC): Compare only SIZE bytes of the value.
4818         * lib/vasnprintf.c: Include float+.h.
4819         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
4820         SIZEOF_LDBL or SIZEOF_DBL bytes.
4821         * modules/isnan-nolibm (Files): Add lib/float+.h.
4822         * modules/isnanl-nolibm (Files): Add lib/float+.h.
4823         * modules/isnanl (Files): Add lib/float+.h.
4824         * modules/vasnprintf (Files): Add lib/float+.h.
4825
4826 2007-03-24  Bruno Haible  <bruno@clisp.org>
4827
4828         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
4829         include isnanl-nolibm.h.
4830
4831 2007-03-24  Bruno Haible  <bruno@clisp.org>
4832
4833         * tests/test-read-file.c (main): Don't produce spurious output for
4834         expected situations. Make the test fail if it encountered unexpected
4835         results.
4836
4837 2007-03-24  Bruno Haible  <bruno@clisp.org>
4838
4839         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
4840         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
4841
4842 2007-03-24  Bruno Haible  <bruno@clisp.org>
4843
4844         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
4845
4846 2007-03-24  Bruno Haible  <bruno@clisp.org>
4847
4848         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
4849         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
4850
4851         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
4852         * modules/utf8-ucs4: Turn into a symbolic link to module
4853         unistr/u8-mbtouc.
4854
4855         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
4856         utf8-ucs4-unsafe.
4857         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
4858         unistr/u8-mbtouc-unsafe.
4859
4860         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
4861         * modules/utf16-ucs4: Turn into a symbolic link to module
4862         unistr/u16-mbtouc.
4863
4864         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
4865         utf16-ucs4-unsafe.
4866         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
4867         unistr/u16-mbtouc-unsafe.
4868
4869         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
4870         * modules/ucs4-utf8: Turn into a symbolic link to module
4871         unistr/u8-ubtomb.
4872
4873         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
4874         * modules/ucs4-utf16: Turn into a symbolic link to module
4875         unistr/u16-ubtomb.
4876
4877 2007-03-24  Bruno Haible  <bruno@clisp.org>
4878
4879         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
4880         Enable the function only if HAVE_INLINE.
4881         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
4882         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4883         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
4884         Enable the function only if HAVE_INLINE.
4885         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
4886         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4887         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
4888         Enable the function only if HAVE_INLINE.
4889         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
4890         Enable the function only if HAVE_INLINE.
4891         * modules/utf8-ucs4: Update.
4892         * modules/utf8-ucs4-unsafe: Update.
4893         * modules/utf16-ucs4: Update.
4894         * modules/utf16-ucs4-unsafe: Update.
4895         * modules/ucs4-utf8: Update.
4896         * modules/ucs4-utf16: Update.
4897
4898 2007-03-24  Bruno Haible  <bruno@clisp.org>
4899
4900         * lib/utf8-ucs4.h: Remove file.
4901         * lib/utf8-ucs4-unsafe.h: Remove file.
4902         * lib/utf16-ucs4.h: Remove file.
4903         * lib/utf16-ucs4-unsafe.h: Remove file.
4904         * lib/ucs4-utf8.h: Remove file.
4905         * lib/ucs4-utf16.h: Remove file.
4906         * lib/unistr.h: Include their previous contents.
4907         * m4/utf-ucs4.m4: Remove file.
4908         * m4/ucs4-utf.m4: Remove file.
4909         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
4910         (Depends-on): Add unistr/base.
4911         (configure.ac): Remove gl_UTF_UCS4.
4912         (Makefile.am): Update.
4913         (Include): Change to unistr.h.
4914         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
4915         (Depends-on): Add unistr/base.
4916         (configure.ac): Remove gl_UTF_UCS4.
4917         (Makefile.am): Update.
4918         (Include): Change to unistr.h.
4919         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
4920         (Depends-on): Add unistr/base.
4921         (configure.ac): Remove gl_UTF_UCS4.
4922         (Makefile.am): Update.
4923         (Include): Change to unistr.h.
4924         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
4925         (Depends-on): Add unistr/base.
4926         (configure.ac): Remove gl_UTF_UCS4.
4927         (Makefile.am): Update.
4928         (Include): Change to unistr.h.
4929         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
4930         (Depends-on): Add unistr/base.
4931         (configure.ac): Remove gl_UCS4_UTF.
4932         (Makefile.am): Update.
4933         (Include): Change to unistr.h.
4934         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
4935         (Depends-on): Add unistr/base.
4936         (configure.ac): Remove gl_UCS4_UTF.
4937         (Makefile.am): Update.
4938         (Include): Change to unistr.h.
4939         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
4940         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
4941         utf8-ucs4-unsafe.h.
4942         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
4943         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
4944         utf16-ucs4-unsafe.h.
4945         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
4946         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
4947         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
4948         * lib/unistr/u8-strchr.c: Likewise.
4949         * lib/unistr/u8-strrchr.c: Likewise.
4950         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
4951         * lib/unistr/u16-strchr.c: Likewise.
4952         * lib/unistr/u16-strrchr.c: Likewise.
4953         * lib/striconveh.c: Update.
4954         * lib/linebreak.c: Update.
4955
4956 2007-03-24  Bruno Haible  <bruno@clisp.org>
4957
4958         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
4959         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
4960
4961 2007-03-22  Bruno Haible  <bruno@clisp.org>
4962
4963         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
4964
4965 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4966
4967         * MODULES.html.sh (File system functions): New module write-any-file.
4968         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
4969         * m4/write-any-file.m4: New files.
4970
4971 2007-03-23  Eric Blake  <ebb9@byu.net>
4972
4973         * gnulib-tool: Rearrange space-tab sequences, since some editors
4974         like to eat them.
4975
4976 2007-03-23  Eric Blake  <ebb9@byu.net>
4977
4978         * lib/version-etc.c (version_etc_va): Update license wording to
4979         be more concise.  Recommended by Richard Stallman.
4980
4981 2007-03-22  Bruno Haible  <bruno@clisp.org>
4982
4983         * lib/poll.c (MSG_PEEK): New fallback definition.
4984
4985 2007-03-22  Bruno Haible  <bruno@clisp.org>
4986
4987         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
4988         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
4989         (main): Update.
4990         Fixes a compilation error on BeOS.
4991
4992 2007-03-22  Bruno Haible  <bruno@clisp.org>
4993
4994         * modules/frexpl-tests: New file.
4995         * tests/test-frexpl.c: New file.
4996
4997         * modules/frexpl: New file.
4998         * m4/frexpl.m4: New file.
4999         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
5000         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
5001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
5002         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
5003         (Depends-on): Add frexpl. Remove isnanl-nolibm.
5004         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
5005
5006 2007-03-22  Bruno Haible  <bruno@clisp.org>
5007
5008         * lib/frexpl.c: Share code with lib/frexp.c.
5009         * modules/mathl (Files): Add lib/frexp.c.
5010         (Depends-on): Add isnanl-nolibm.
5011
5012 2007-03-22  Bruno Haible  <bruno@clisp.org>
5013
5014         * modules/printf-frexp (Files): Add m4/frexp.m4.
5015         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
5016         only if the found frexp function actually works.
5017
5018 2007-03-22  Bruno Haible  <bruno@clisp.org>
5019
5020         * lib/frexp.c: Remove older implementation that uses divisions.
5021
5022 2007-03-21  Bruno Haible  <bruno@clisp.org>
5023
5024         * modules/frexp-tests: New file.
5025         * tests/test-frexp.c: New file.
5026
5027         * modules/frexp: New file.
5028         * lib/frexp.c: New file.
5029         * m4/frexp.m4: New file.
5030         * lib/math_.h (frexp): New declaration.
5031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
5032         REPLACE_FREXP.
5033         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
5034
5035 2007-03-21  Bruno Haible  <bruno@clisp.org>
5036
5037         * modules/isnanl-tests: New file.
5038         * tests/test-isnanl.c: New file.
5039
5040         * modules/isnanl: New file.
5041         * lib/isnanl.h: New file.
5042         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
5043         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
5044         gl_FUNC_ISNANL_WORKS.
5045         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
5046         New macros.
5047
5048 2007-03-21  Bruno Haible  <bruno@clisp.org>
5049
5050         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
5051         lib/isnanl.h.
5052         (Include): Update.
5053         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
5054         * lib/vasnprintf.c: Update.
5055         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
5056         tests/test-isnanl.h, remove tests/test-isnanl.c.
5057         (Makefile.am): Update.
5058         * tests/test-isnanl-nolibm.c: New file.
5059         * tests/test-isnanl.h: New file.
5060         * tests/test-isnanl.c: Remove file.
5061
5062 2007-03-21  Jim Meyering  <jim@meyering.net>
5063
5064         When trying to open ".", treat ESTALE like EACCES.
5065         * lib/savewd.c (savewd_save): Resort to forking not just upon
5066         failure with EACCES, but also when errno is ESTALE.
5067
5068 2007-03-20  Bruno Haible  <bruno@clisp.org>
5069
5070         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
5071         Needed on AIX 5.1. Reported by Matthew Woehlke.
5072
5073 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5074
5075         Suggestions by Bruno Haible:
5076         * lib/acl-internal.h: Include "gettext.h" rather than rolling
5077         our own.
5078         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
5079         * modules/acl (Depends-on): Add gettext.
5080
5081 2007-03-19  Bruno Haible  <bruno@clisp.org>
5082
5083         * modules/iconvme: Remove file.
5084         * lib/iconvme.h: Remove file.
5085         * lib/iconvme.c: Remove file.
5086         * m4/iconvme.m4: Remove file.
5087
5088 2007-03-19  Bruno Haible  <bruno@clisp.org>
5089
5090         * doc/relocatable-maint.texi: Break long shell script line.
5091         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
5092
5093 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5094
5095         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
5096         handle file_has_acl.
5097         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
5098         * lib/acl.c: Move header inclusions and related macro defns into
5099         lib/acl-internal.h.
5100         (S_ISLNK): Remove defn, since that's now done for us.
5101         (file_has_acl): Move to lib/file-has-acl.c.
5102         Call acl_trivial if available.  This is the crucial part of the fix.
5103         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
5104         shared within the library.  Rewrite a bit, partly to make it compatible
5105         with the GNU coding style.
5106         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
5107         Remove unnecessary double-quotes.
5108         Don't test for acl_to_text; the build will catch that.
5109         Replace acl_entries if it doesn't exist and it is needed.
5110         Check for -lsec and acl_trivial (as used on Solaris 10).
5111         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
5112         lib/file-has-acl.c.
5113         (Depends-on): Add sys_stat, for S_ISLNK.
5114
5115 2007-03-19  Ben Pfaff  <blp@gnu.org>
5116
5117         * doc/gnulib.texi: Fix typos.
5118         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
5119
5120 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
5123         If size is zero here, buf must be zero.
5124
5125 2007-03-19  Simon Josefsson  <simon@josefsson.org>
5126
5127         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
5128         <bruno@clisp.org>.
5129
5130 2007-03-18  Bruno Haible  <bruno@clisp.org>
5131
5132         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
5133         Suggested by Eric Blake.
5134
5135 2007-03-18  Ben Pfaff  <blp@gnu.org>
5136
5137         * doc/relocatable.texi: Recommend using as prefix a directory
5138         that does not exist and will never be created.  Based on
5139         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
5140         and others.
5141
5142 2007-03-17  Bruno Haible  <bruno@clisp.org>
5143
5144         * lib/fchownat.c: Include lchown.h.
5145
5146 2007-03-17  Bruno Haible  <bruno@clisp.org>
5147
5148         Fix endless loop when the given allocated size was > INT_MAX.
5149         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
5150         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
5151         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
5152         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
5153         * lib/sprintf.c (sprintf): Likewise.
5154
5155 2007-03-17  Bruno Haible  <bruno@clisp.org>
5156
5157         * tests/test-argp-2.sh (func_compare): Output a context diff.
5158
5159 2007-03-17  Bruno Haible  <bruno@clisp.org>
5160
5161         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
5162         locale's decimal-point character.
5163
5164 2007-03-17  Bruno Haible  <bruno@clisp.org>
5165
5166         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
5167         before comparing it. Needed because on some platforms (e.g. x86) a
5168         'long double' occupies less bytes than sizeof (long double).
5169
5170 2007-03-17  Bruno Haible  <bruno@clisp.org>
5171
5172         * tests/test-crc.c (main): Make printf statements 64-bit clean.
5173         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
5174         * tests/test-getaddrinfo.c (simple): Likewise.
5175         * tests/test-read-file.c (main): Likewise.
5176
5177 2007-03-17  Bruno Haible  <bruno@clisp.org>
5178
5179         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
5180
5181 2007-03-17  Bruno Haible  <bruno@clisp.org>
5182
5183         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
5184         unused variable.
5185
5186 2007-03-17  Bruno Haible  <bruno@clisp.org>
5187
5188         * tests/test-c-strcasecmp.c: Include c-strcase.h.
5189         * tests/test-c-strncasecmp.c: Likewise.
5190
5191 2007-03-17  Bruno Haible  <bruno@clisp.org>
5192
5193         * modules/stdlib (Depends-on): Add unistd.
5194         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
5195         Needed for MacOS X 10.3.
5196
5197 2007-03-17  Bruno Haible  <bruno@clisp.org>
5198
5199         * lib/unistr/u-strdup.h: Include <stdlib.h>.
5200
5201 2007-03-17  Bruno Haible  <bruno@clisp.org>
5202
5203         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
5204
5205 2007-03-17  Bruno Haible  <bruno@clisp.org>
5206
5207         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
5208         to reflect files copied from gnulib (with or without modifications).
5209         Suggested by Jim Meyering.
5210
5211 2007-03-17  Eric Blake  <ebb9@byu.net>
5212
5213         * NEWS: Document stdlib change from 2007-02-18.
5214
5215 2007-03-17  Jim Meyering  <jim@meyering.net>
5216
5217         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
5218         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
5219         someone uses a name containing shell meta-characters.
5220         Reported by Alfred M. Szmidt.
5221
5222         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
5223
5224 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
5225
5226         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
5227         and copy gettext configuration files only if configure.ac contains
5228         a use of AM_GNU_GETTEXT_VERSION.
5229
5230 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
5231
5232         * build-aux/bootstrap (gnulib_name): New variable.
5233         (gnulib_tool_options): Use it.
5234
5235 2007-03-13  Simon Josefsson  <simon@josefsson.org>
5236
5237         * tests/test-des.c: Use new namespace.
5238
5239 2007-03-15  Bruno Haible  <bruno@clisp.org>
5240
5241         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
5242         Reported by James Youngman <jay@gnu.org>.
5243
5244 2007-03-15  Bruno Haible  <bruno@clisp.org>
5245
5246         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
5247         declared prototype. Needed with cc on OSF/1 5.1.
5248
5249 2007-03-15  Bruno Haible  <bruno@clisp.org>
5250
5251         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
5252         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
5253         (struct gl_list_implementation): Add dispose_fn argument to the
5254         'create_empty', 'create' methods.
5255         (struct gl_list_impl_base): Add field 'dispose_fn'.
5256         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
5257         argument.
5258         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
5259         dispose_fn argument.
5260         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
5261         dispose_fn on the dropped values.
5262         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
5263         dispose_fn argument.
5264         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
5265         dropped values.
5266         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
5267         (gl_tree_remove_node): Call dispose_fn on the dropped value.
5268         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
5269         (gl_tree_remove_node): Call dispose_fn on the dropped value.
5270         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
5271         argument.
5272         (gl_tree_list_free): Call dispose_fn on the dropped values.
5273         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
5274         the dropped values.
5275         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
5276         Add dispose_fn argument.
5277         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
5278         Call dispose_fn on the dropped values.
5279         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
5280         Add dispose_fn argument.
5281         (gl_sublist_create): Initialize the 'dispose_fn' field.
5282         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
5283         * tests/test-array_list.c (main): Update.
5284         * tests/test-carray_list.c (main): Update.
5285         * tests/test-avltree_list.c (main): Update.
5286         * tests/test-rbtree_list.c (main): Update.
5287         * tests/test-avltreehash_list.c (main): Update.
5288         * tests/test-rbtreehash_list.c (main): Update.
5289         * tests/test-linked_list.c (main): Update.
5290         * tests/test-linkedhash_list.c (main): Update.
5291         * tests/test-array_oset.c (main): Update.
5292
5293 2007-03-15  Bruno Haible  <bruno@clisp.org>
5294
5295         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
5296         (gl_oset_create_empty): Add dispose_fn argument.
5297         (struct gl_oset_implementation): Add dispose_fn argument to
5298         'create_empty' method.
5299         (struct gl_oset_impl_base): Add dispose_fn field.
5300         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
5301         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
5302         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
5303         values.
5304         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
5305         (gl_tree_oset_free): Call dispose_fn on the dropped values.
5306         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
5307         dropped value.
5308         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
5309         dropped value.
5310         * tests/test-array_oset.c (main): Update.
5311         * tests/test-avltree_oset.c (main): Update.
5312         * tests/test-rbtree_oset.c (main): Update.
5313         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
5314
5315 2007-03-13  Bruno Haible  <bruno@clisp.org>
5316
5317         * tests/test-stdbool.c (i): Update after last patch.
5318
5319 2007-03-12  Bruno Haible  <bruno@clisp.org>
5320
5321         * lib/quotearg.c: Include <wctype.h> early, before the definition of
5322         the iswprint macro. Needed on Solaris 2.5.1.
5323
5324 2007-03-12  Bruno Haible  <bruno@clisp.org>
5325
5326         * tests/test-printf-frexp.c (main): Declare x as volatile.
5327
5328 2007-03-12  Simon Josefsson  <simon@josefsson.org>
5329
5330         * doc/gnulib.texi (Build robot for gnulib): New section.
5331
5332 2007-03-12  Jim Meyering  <jim@meyering.net>
5333
5334         * build-aux/bootstrap: New file.
5335         * build-aux/bootstrap.conf: New file, from coreutils.
5336
5337 2007-03-11  Bruno Haible  <bruno@clisp.org>
5338
5339         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
5340
5341 2007-03-12  Simon Josefsson  <simon@josefsson.org>
5342
5343         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
5344         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
5345         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
5346
5347 2007-03-11  Bruno Haible  <bruno@clisp.org>
5348
5349         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
5350         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
5351
5352 2007-03-11  Bruno Haible  <bruno@clisp.org>
5353
5354         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
5355         formula. Needed for SunPRO C 5.0.
5356
5357 2007-03-11  Bruno Haible  <bruno@clisp.org>
5358
5359         * modules/long-options (Depends-on): Add getopt.
5360
5361 2007-03-11  Bruno Haible  <bruno@clisp.org>
5362
5363         * modules/modechange (Depends-on): Add stdbool.
5364
5365 2007-03-11  Bruno Haible  <bruno@clisp.org>
5366
5367         * modules/i-ring (Depends-on): Add stdbool.
5368
5369 2007-03-11  Bruno Haible  <bruno@clisp.org>
5370
5371         * modules/gc-des (Depends-on): Add stdbool.
5372
5373 2007-03-11  Bruno Haible  <bruno@clisp.org>
5374
5375         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
5376
5377 2007-03-11  Bruno Haible  <bruno@clisp.org>
5378
5379         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
5380
5381 2007-03-11  Bruno Haible  <bruno@clisp.org>
5382
5383         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
5384
5385 2007-03-11  Bruno Haible  <bruno@clisp.org>
5386
5387         * lib/vasnprintf.c (sprintf): Undefine.
5388
5389 2007-03-11  Bruno Haible  <bruno@clisp.org>
5390
5391         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
5392         initializers in SunPRO C and Compaq C compilers.
5393
5394 2007-03-11  Bruno Haible  <bruno@clisp.org>
5395
5396         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
5397         decrementing code ANSI C compliant.
5398
5399 2007-03-11  Bruno Haible  <bruno@clisp.org>
5400
5401         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
5402         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
5403
5404 2007-03-11  Bruno Haible  <bruno@clisp.org>
5405
5406         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
5407         <stdbool.h> substitute doesn't pass.
5408
5409 2007-03-11  Bruno Haible  <bruno@clisp.org>
5410
5411         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
5412
5413 2007-03-11  Bruno Haible  <bruno@clisp.org>
5414
5415         * gnulib-tool (func_create_megatestdir): Create also an autobuild
5416         script, for submission to autobuild.josefsson.org.
5417
5418 2007-03-10  Bruno Haible  <bruno@clisp.org>
5419
5420         * modules/canonicalize-lgpl-tests: New file.
5421         * tests/test-canonicalize-lgpl.sh: New file.
5422         * tests/test-canonicalize-lgpl.c: New file.
5423
5424         * modules/c-strcase-tests: New file.
5425         * tests/test-c-strcase.sh: New file.
5426         * tests/test-c-strcasecmp.c: New file.
5427         * tests/test-c-strncasecmp.c: New file.
5428
5429         * modules/atexit-tests: New file.
5430         * tests/test-atexit.sh: New file.
5431         * tests/test-atexit.c: New file.
5432
5433 2007-03-10  Bruno Haible  <bruno@clisp.org>
5434
5435         * tests/test-binary-io.sh: Use temporary filenames that are not so
5436         likely to clash with those of other tests (in a parallel make).
5437         * tests/test-binary-io.c: Likewise.
5438
5439 2007-03-10  Bruno Haible  <bruno@clisp.org>
5440
5441         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
5442         fallback; use #error instead.
5443         Suggested by Simon Josefsson.
5444
5445 2007-03-10  Bruno Haible  <bruno@clisp.org>
5446
5447         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
5448         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
5449         first and the last.
5450
5451 2007-03-10  Bruno Haible  <bruno@clisp.org>
5452
5453         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
5454
5455 2007-03-10  Bruno Haible  <bruno@clisp.org>
5456
5457         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
5458         "make distcheck".
5459         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
5460         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
5461         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
5462
5463 2007-03-10  Bruno Haible  <bruno@clisp.org>
5464
5465         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
5466         variable.
5467         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
5468         variable.
5469
5470 2007-03-09  Eric Blake  <ebb9@byu.net>
5471         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
5472
5473         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
5474         types are not being provided by gnulib.
5475         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
5476         types are supported.
5477
5478 2007-03-10  Bruno Haible  <bruno@clisp.org>
5479
5480         * lib/stdio_.h (__attribute__): New macro.
5481         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
5482         vsprintf): Specify __attribute__ __format__ for GCC.
5483         Suggested by Eric Blake.
5484
5485 2007-03-09  Bruno Haible  <bruno@clisp.org>
5486
5487         * modules/printf-posix-tests: New file.
5488         * tests/test-printf-posix.sh: New file.
5489         * tests/test-printf-posix.c: New file.
5490
5491         * modules/printf-posix: New file.
5492         * lib/printf.c: New file.
5493         * m4/printf-posix-rpl.m4: New file.
5494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
5495         REPLACE_PRINTF.
5496         * lib/stdio_.h (printf): New declaration.
5497         (format, __format__, ____printf____, ____scanf____, ____strftime____,
5498         ____strfmon____): New macros.
5499         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
5500         REPLACE_PRINTF.
5501
5502 2007-03-09  Bruno Haible  <bruno@clisp.org>
5503
5504         * tests/test-vasnprintf-posix2.sh: New file.
5505         * tests/test-vasnprintf-posix2.c: New file.
5506         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
5507         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5508         (Makefile.am): Activate test-vasnprintf-posix2.sh.
5509
5510         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
5511         a locale dependent decimal point, rather than always '.'.
5512
5513 2007-03-09  Eric Blake  <ebb9@byu.net>
5514
5515         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
5516         spite of platforms like Tandem/NSK that define it to -1.
5517
5518 2007-03-08  Bruno Haible  <bruno@clisp.org>
5519
5520         * modules/vprintf-posix-tests: New file.
5521         * tests/test-vprintf-posix.sh: New file.
5522         * tests/test-vprintf-posix.c: New file.
5523         * tests/test-printf-posix.h: New file.
5524
5525         * modules/vprintf-posix: New file.
5526         * lib/vprintf.c: New file.
5527         * m4/vprintf-posix.m4: New file.
5528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
5529         REPLACE_VPRINTF.
5530         * lib/stdio_.h (vprintf): New declaration.
5531         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
5532         REPLACE_VPRINTF.
5533
5534 2007-03-08  Bruno Haible  <bruno@clisp.org>
5535
5536         * modules/fprintf-posix-tests: New file.
5537         * tests/test-fprintf-posix.sh: New file.
5538         * tests/test-fprintf-posix.c: New file.
5539
5540         * modules/fprintf-posix: New file.
5541         * lib/fprintf.c: New file.
5542         * m4/fprintf-posix.m4: New file.
5543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
5544         REPLACE_FPRINTF.
5545         * lib/stdio_.h (fprintf): New declaration.
5546         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
5547         REPLACE_FPRINTF.
5548
5549 2007-03-08  Bruno Haible  <bruno@clisp.org>
5550
5551         * modules/vfprintf-posix-tests: New file.
5552         * tests/test-vfprintf-posix.sh: New file.
5553         * tests/test-vfprintf-posix.c: New file.
5554         * tests/test-fprintf-posix.h: New file.
5555         * tests/test-fprintf-posix.out: New file.
5556
5557         * modules/vfprintf-posix: New file.
5558         * lib/vfprintf.c: New file.
5559         * m4/vfprintf-posix.m4: New file.
5560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
5561         REPLACE_VFPRINTF.
5562         * lib/stdio_.h (vfprintf): New declaration.
5563         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
5564         REPLACE_VFPRINTF.
5565
5566 2007-03-08  Bruno Haible  <bruno@clisp.org>
5567
5568         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
5569
5570 2007-03-08  Bruno Haible  <bruno@clisp.org>
5571
5572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
5573         instead of 'expr' invocations.
5574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5579         Suggested by Paul Eggert.
5580
5581 2007-03-08  Bruno Haible  <bruno@clisp.org>
5582
5583         * modules/fseterr-tests: New file.
5584         * tests/test-fseterr.c: New file.
5585
5586         * modules/fseterr: New file.
5587         * lib/fseterr.h: New file.
5588         * lib/fseterr.c: New file.
5589
5590 2007-03-08  Bruno Haible  <bruno@clisp.org>
5591
5592         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
5593         * lib/getopt_.h: Likewise.
5594         * lib/mbswidth.h: Likewise.
5595         * lib/setenv.h: Likewise.
5596         * lib/vasnprintf.h: Likewise.
5597         * lib/vasprintf.h: Likewise.
5598         * lib/verror.h: Likewise.
5599         * lib/xsetenv.h: Likewise.
5600         * lib/xvasprintf.h: Likewise.
5601
5602 2007-03-08  Jim Meyering  <jim@meyering.net>
5603
5604         * users.txt: Add parted.
5605
5606         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
5607
5608 2007-03-07  Bruno Haible  <bruno@clisp.org>
5609
5610         * m4/printf.m4: Make the shell script snippets copy&pastable.
5611
5612 2007-03-02  Bruno Haible  <bruno@clisp.org>
5613
5614         * lib/netinet_in_.h: New file.
5615         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
5616         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
5617         * modules/netinet_in (Files): Add lib/netinet_in_.h.
5618         (Depends-on): Add absolute-header.
5619         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
5620         into netinet/in.h.
5621
5622 2007-03-03  Bruno Haible  <bruno@clisp.org>
5623
5624         * lib/sys_select_.h: New file.
5625         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
5626         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
5627         * modules/sys_select (Files): Add lib/sys_select_.h.
5628         (Depends-on): Add absolute-header.
5629         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
5630         into sys/select.h.
5631
5632 2007-03-02  Bruno Haible  <bruno@clisp.org>
5633
5634         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
5635         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
5636         values.
5637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
5638         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
5639         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
5640         * modules/sys_socket (Depends-on): Add absolute-header.
5641         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
5642         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
5643         (Include): Remove requirement of inclusion of <sys/types.h>.
5644
5645 2007-03-02  Bruno Haible  <bruno@clisp.org>
5646
5647         * lib/byteswap_.h (bswap_32): Fix formula.
5648
5649 2007-03-06  Bruno Haible  <bruno@clisp.org>
5650
5651         * modules/sprintf-posix-tests: New file.
5652         * tests/test-sprintf-posix.c: New file.
5653
5654         * modules/sprintf-posix: New file.
5655         * lib/sprintf.c: New file.
5656         * m4/sprintf-posix.m4: New file.
5657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
5658         REPLACE_SPRINTF.
5659         * lib/stdio_.h (sprintf): New declaration.
5660         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
5661         REPLACE_SPRINTF.
5662
5663 2007-03-06  Bruno Haible  <bruno@clisp.org>
5664
5665         * modules/vsprintf-posix-tests: New file.
5666         * tests/test-vsprintf-posix.c: New file.
5667         * tests/test-sprintf-posix.h: New file.
5668
5669         * modules/vsprintf-posix: New file.
5670         * lib/vsprintf.c: New file.
5671         * m4/vsprintf-posix.m4: New file.
5672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
5673         REPLACE_VSPRINTF.
5674         * lib/stdio_.h (vsprintf): New declaration.
5675         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
5676         REPLACE_VSPRINTF.
5677
5678 2007-03-06  Bruno Haible  <bruno@clisp.org>
5679
5680         * modules/vsnprintf (Depend-on): Remove minmax.
5681
5682 2007-03-06  Bruno Haible  <bruno@clisp.org>
5683
5684         * modules/snprintf-posix-tests: New file.
5685         * tests/test-snprintf-posix.c: New file.
5686
5687         * modules/snprintf-posix: New file.
5688         * m4/snprintf-posix.m4: New file.
5689         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
5690         gl_FUNC_SNPRINTF.
5691         (gl_FUNC_SNPRINTF): Invoke it.
5692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
5693         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
5694         is set.
5695         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
5696
5697 2007-03-06  Bruno Haible  <bruno@clisp.org>
5698
5699         * modules/vsnprintf-posix-tests: New file.
5700         * tests/test-vsnprintf-posix.c: New file.
5701         * tests/test-snprintf-posix.h: New file.
5702
5703         * modules/vsnprintf-posix: New file.
5704         * m4/vsnprintf-posix.m4: New file.
5705         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
5706         gl_FUNC_VSNPRINTF.
5707         (gl_FUNC_VSNPRINTF): Invoke it.
5708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
5709         * lib/stdio_.h (vsnprintf): Define as a replacement if
5710         REPLACE_VSNPRINTF is set.
5711         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
5712
5713 2007-03-06  Bruno Haible  <bruno@clisp.org>
5714
5715         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
5716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
5717
5718 2007-03-06  Bruno Haible  <bruno@clisp.org>
5719
5720         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
5721         (asinl): Declare also if HAVE_DECL_ASINL is set.
5722         (atanl): Declare also if HAVE_DECL_ATANL is set.
5723         (ceill): Declare also if HAVE_DECL_CEILL is set.
5724         (cosl): Declare also if HAVE_DECL_COSL is set.
5725         (expl): Declare also if HAVE_DECL_EXPL is set.
5726         (floorl): Declare also if HAVE_DECL_FLOORL is set.
5727         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
5728         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
5729         (logl): Declare also if HAVE_DECL_LOGL is set.
5730         (sinl): Declare also if HAVE_DECL_SINL is set.
5731         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
5732         (tanl): Declare also if HAVE_DECL_TANL is set.
5733         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
5734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
5735         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
5736         declaration of frexpl, ldexpl.
5737         * modules/printf-frexpl (Depends-on): Add math.
5738         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
5739
5740 2007-03-05  Bruno Haible  <bruno@clisp.org>
5741
5742         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
5743         frexpl and ldexpl are declared.
5744         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
5745
5746 2007-03-05  Bruno Haible  <bruno@clisp.org>
5747
5748         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
5749         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
5750
5751 2007-03-05  Bruno Haible  <bruno@clisp.org>
5752
5753         * lib/stdio_.h: Include <stddef.h>.
5754
5755 2007-03-05  Bruno Haible  <bruno@clisp.org>
5756
5757         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
5758
5759 2007-03-05  Bruno Haible  <bruno@clisp.org>
5760
5761         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
5762         NetBSD 4, from Ralf Wildenhues.
5763
5764 2007-03-04  Bruno Haible  <bruno@clisp.org>
5765
5766         * lib/vasprintf.h: Update #if logic for the case when the functions
5767         exist but are overridden.
5768
5769 2007-03-04  Bruno Haible  <bruno@clisp.org>
5770
5771         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
5772         implementations: glibc-2.4 and MacOS X 10.3.
5773         * tests/test-vasnprintf-posix.c (test_function): Test also the case
5774         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
5775         * tests/test-vasprintf-posix.c (test_function): Likewise.
5776
5777 2007-03-04  Bruno Haible  <bruno@clisp.org>
5778
5779         * modules/vasprintf-posix-tests: New file.
5780         * tests/test-vasprintf-posix.c: New file.
5781
5782         * modules/vasprintf-posix: New file.
5783         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
5784         defined.
5785         * m4/vasprintf-posix.m4: New file.
5786         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
5787         gl_FUNC_VASPRINTF.
5788         (gl_FUNC_VASPRINTF): Invoke it.
5789         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
5790         here.
5791         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
5792
5793 2007-03-04  Bruno Haible  <bruno@clisp.org>
5794
5795         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
5796         REPLACE_GETTIMEOFDAY.
5797         * modules/sys_time (Makefile.am): Likewise.
5798         * m4/sys_time_h.m4: Likewise.
5799         * m4/gettimeofday.m4: Likewise.
5800
5801 2007-03-04  Bruno Haible  <bruno@clisp.org>
5802
5803         * modules/vasnprintf-posix-tests: New file.
5804         * tests/test-vasnprintf-posix.c: New file.
5805
5806         * modules/vasnprintf-posix: New file.
5807         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
5808         printf-frexpl.h.
5809         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
5810         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
5811         REPLACE_VASNPRINTF is defined.
5812         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
5813         gl_FUNC_VASNPRINTF.
5814         (gl_FUNC_VASNPRINTF): Invoke it.
5815         * m4/vasnprintf-posix.m4: New file.
5816         * m4/printf.m4: New file.
5817
5818 2007-03-04  Bruno Haible  <bruno@clisp.org>
5819
5820         Compile progreloc.c only if --enable-relocatable is specified.
5821         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
5822         if --enable-relocatable was specified.
5823         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
5824         lib_SOURCES.
5825
5826 2007-03-04  Jim Meyering  <jim@meyering.net>
5827
5828         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
5829         Use it consistently, rather than enumerating errno constants.
5830
5831 2007-03-04  Bruno Haible  <bruno@clisp.org>
5832
5833         * modules/xvasprintf-tests: New file.
5834         * tests/test-xvasprintf.c: New file.
5835
5836         * modules/vasprintf-tests: New file.
5837         * tests/test-vasprintf.c: New file.
5838
5839         * modules/vasnprintf-tests: New file.
5840         * tests/test-vasnprintf.c: New file.
5841
5842         * modules/vsnprintf-tests: New file.
5843         * tests/test-vsnprintf.c: New file.
5844
5845         * modules/snprintf-tests: New file.
5846         * tests/test-snprintf.c: New file.
5847
5848 2007-03-04  Bruno Haible  <bruno@clisp.org>
5849
5850         Compile relocatable.c only if --enable-relocatable is specified.
5851         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
5852         gl_RELOCATABLE_LIBRARY.
5853         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
5854         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
5855         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
5856         gl_RELOCATABLE_LIBRARY.
5857         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
5858         (Makefile.am): Remove lib_SOURCES.
5859         * modules/relocatable-lib-lgpl (configure.ac): Invoke
5860         gl_RELOCATABLE_LIBRARY.
5861         (Makefile.am): Remove lib_SOURCES.
5862         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
5863         always.
5864         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5865         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
5866
5867 2007-03-04  Bruno Haible  <bruno@clisp.org>
5868
5869         * modules/argmatch-tests: New file.
5870         * tests/test-argmatch.c: New file.
5871
5872         * tests/test-allocsa.c (main): Halve the number of loop runs.
5873
5874         * modules/alloca-opt-tests: New file.
5875         * tests/test-alloca-opt.c: New file.
5876
5877 2007-03-04  Jim Meyering  <jim@meyering.net>
5878
5879         Work around difference between Linux ACLs and Solaris 10 ZFS.
5880         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
5881         for EINVAL.
5882
5883 2007-03-03  Bruno Haible  <bruno@clisp.org>
5884
5885         * modules/relocatable-prog (Depends-on): Add back progreloc's
5886         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
5887
5888 2007-03-03  Bruno Haible  <bruno@clisp.org>
5889
5890         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
5891         * modules/relocatable-lib: New file.
5892
5893 2007-03-03  Bruno Haible  <bruno@clisp.org>
5894
5895         * modules/relocatable-prog: Renamed from modules/relocatable.
5896         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
5897
5898 2007-03-03  Bruno Haible  <bruno@clisp.org>
5899
5900         * modules/relocatable-script (Files): Add doc/relocatable.texi,
5901         m4/relocatable-lib.m4.
5902         (Depends-on): Remove 'relocatable'.
5903         (configure.ac): Add gl_RELOCATABLE_NOP.
5904
5905 2007-03-03  Bruno Haible  <bruno@clisp.org>
5906
5907         * modules/relocatable-prog-wrapper: New file.
5908         * modules/relocatable (Depends-on): Add it. Remove all other
5909         dependencies except progname.
5910         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
5911
5912         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
5913         (gl_FUNC_STRERROR): Nop.
5914         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
5915
5916         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
5917         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
5918
5919         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
5920         (gl_FUNC_READLINK): Update.
5921
5922         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
5923
5924 2007-03-03  Bruno Haible  <bruno@clisp.org>
5925
5926         * lib/xreadlink.c: Include <unistd.h> unconditionally.
5927         * modules/xreadlink (Depends-on): Add unistd.
5928         * modules/xreadlink-with-size (Depends-on): Likewise.
5929
5930 2007-03-03  Bruno Haible  <bruno@clisp.org>
5931
5932         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
5933         extracted from gt_FUNC_SETENV.
5934         (gt_FUNC_SETENV): Remove macro.
5935         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
5936         remove gt_FUNC_SETENV.
5937
5938 2007-03-03  Bruno Haible  <bruno@clisp.org>
5939
5940         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
5941         ENABLE_RELOCATABLE here.
5942         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
5943
5944 2007-03-03  Bruno Haible  <bruno@clisp.org>
5945
5946         * modules/rbtreehash-list-tests (Depends-on): Add progname.
5947         * tests/test-rbtreehash_list.c: Include progname.h.
5948         (main): Call set_program_name.
5949
5950         * modules/rbtree-oset-tests (Depends-on): Add progname.
5951         * tests/test-rbtree_oset.c: Include progname.h.
5952         (main): Call set_program_name.
5953
5954         * modules/rbtree-list-tests (Depends-on): Add progname.
5955         * tests/test-rbtree_list.c: Include progname.h.
5956         (main): Call set_program_name.
5957
5958         * modules/linked-list-tests (Depends-on): Add progname.
5959         * tests/test-linked_list.c: Include progname.h.
5960         (main): Call set_program_name.
5961
5962 2007-03-03  Bruno Haible  <bruno@clisp.org>
5963
5964         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
5965         All uses of __restrict changed to _Restrict_.
5966         * lib/glob_.h (__restrict): Remove macro.
5967
5968 2007-03-02  Bruno Haible  <bruno@clisp.org>
5969
5970         * modules/gettext (configure.ac): Require gettext infrastructure
5971         from version 0.16.1.
5972
5973 2007-03-02  Bruno Haible  <bruno@clisp.org>
5974
5975         * modules/linkedhash-list-tests (Depends-on): Add progname.
5976         * tests/test-linkedhash_list.c: Include progname.h.
5977         (main): Call set_program_name.
5978
5979         * modules/carray-list-tests (Depends-on): Add progname.
5980         * tests/test-carray_list.c: Include progname.h.
5981         (main): Call set_program_name.
5982
5983         * modules/avltreehash-list-tests (Depends-on): Add progname.
5984         * tests/test-avltreehash_list.c: Include progname.h.
5985         (main): Call set_program_name.
5986
5987         * modules/avltree-oset-tests (Depends-on): Add progname.
5988         * tests/test-avltree_oset.c: Include progname.h.
5989         (main): Call set_program_name.
5990
5991         * modules/avltree-list-tests (Depends-on): Add progname.
5992         * tests/test-avltree_list.c: Include progname.h.
5993         (main): Call set_program_name.
5994
5995         * modules/array-oset-tests (Depends-on): Add progname.
5996         * tests/test-array_oset.c: Include progname.h.
5997         (main): Call set_program_name.
5998
5999         * modules/array-list-tests (Depends-on): Add progname.
6000         * tests/test-array_list.c: Include progname.h.
6001         (main): Call set_program_name.
6002
6003         * modules/argp-tests (Depends-on): Add progname.
6004         * tests/test-argp.c: Include argp.h first. Include progname.h.
6005         (main): Call set_program_name.
6006
6007 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
6008
6009         * doc/gnulib-tool.texi (Initial import): Reword description of
6010         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
6011         limited effect even if defined after the first system include.
6012
6013 2007-03-01  Bruno Haible  <bruno@clisp.org>
6014
6015         * build-aux/config.libpath: Update to libtool-1.5.22.
6016         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6017
6018 2007-03-01  Bruno Haible  <bruno@clisp.org>
6019
6020         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
6021         foo_CFLAGS.
6022         Reported by Ralf Wildenhues.
6023
6024 2007-03-01  Bruno Haible  <bruno@clisp.org>
6025
6026         * build-aux/install-reloc: Remove object files left over by some
6027         compilers.
6028         Reported by Ralf Wildenhues.
6029
6030 2007-03-01  Bruno Haible  <bruno@clisp.org>
6031
6032         * build-aux/install-reloc: Break long lines.
6033
6034 2007-03-01  Bruno Haible  <bruno@clisp.org>
6035
6036         * doc/relocatable.texi: Document that it may not work on OpenBSD.
6037         Reported by Ralf Wildenhues.
6038
6039 2007-03-01  Bruno Haible  <bruno@clisp.org>
6040
6041         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
6042         include ordering constraints.
6043
6044 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
6045
6046         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
6047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
6048         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
6049         as another example.
6050         * lib/time_.h: Fix misspelling.
6051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6052         Require gl_HEADER_TIME_H_DEFAULTS.
6053         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
6054         * m4/time_r.m4 (gl_TIME_R): Likewise.
6055         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
6056
6057 2007-03-01  Bruno Haible  <bruno@clisp.org>
6058
6059         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
6060         * m4/utimens.m4 (gl_UTIMENS): Likewise.
6061
6062 2007-03-01  Jim Meyering  <jim@meyering.net>
6063
6064         * modules/xreadlink (Maintainer): Add my name.
6065         * modules/xreadlink-with-size (Depends-on): Alphabetize.
6066
6067 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
6068             Bruno Haible  <bruno@clisp.org>
6069
6070         * build-aux/install-reloc: Compile also c-ctype.c.
6071         * build-aux/relocatable.sh.in: New file.
6072         * doc/relocatable.texi: New file.
6073         * doc/relocatable-maint.texi: New file.
6074         * doc/gnulib.texi: Include relocatable-maint.texi.
6075         * lib/progreloc.c: Include unistd.h unconditionally.
6076         * lib/relocwrapper.c: Include unistd.h unconditionally.
6077         Include c-ctype.h.
6078         (add_dotbin): Use c_tolower.
6079         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
6080         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
6081         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
6082         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
6083         to m4/relocatable-lib.m4.
6084         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
6085         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
6086         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
6087         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
6088         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
6089         * modules/relocatable: New file.
6090         * modules/relocatable-lib: New file.
6091         * modules/relocatable-script: New file.
6092
6093 2007-02-28  Bruno Haible  <bruno@clisp.org>
6094
6095         Import --enable-relocatable infrastructure.
6096         * build-aux/config.libpath: New file, from GNU gettext.
6097         * build-aux/install-reloc: New file, from GNU gettext.
6098         * build-aux/reloc-ldflags: New file, from GNU gettext.
6099         * lib/relocatable.h: New file, from GNU gettext.
6100         * lib/relocatable.c: New file, from GNU gettext.
6101         * lib/relocwrapper.c: New file, from GNU gettext.
6102         * m4/relocatable.m4: New file, from GNU gettext.
6103
6104 2007-02-28  Bruno Haible  <bruno@clisp.org>
6105
6106         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
6107
6108         * modules/xreadlink: New file, from GNU gettext with modifications.
6109         * lib/xreadlink.c: New file, from GNU gettext.
6110         * lib/xreadlink.h: Add comments.
6111         (xreadlink): New declaration.
6112
6113         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
6114         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
6115         lib/xreadlink-with-size.c.
6116         (configure.ac): Remove gl_XREADLINK invocation.
6117         (Makefile.am): Augment lib_SOURCES.
6118         * m4/xreadlink.m4: Remove file.
6119         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
6120         (xreadlink_with_size): Renamed from xreadink.
6121         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
6122         * modules/canonicalize (Depends-on): Replace xreadlink with
6123         xreadlink-with-size.
6124         * lib/canonicalize.c (canonicalize_filename_mode): Update.
6125
6126 2007-02-25  Jim Meyering  <jim@meyering.net>
6127
6128         * build-aux/announce-gen: When complaining about excess arguments,
6129         list them.
6130
6131 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6132
6133         * README: Document signed integer overflow situation more
6134         accurately.
6135
6136 2007-02-25  Bruno Haible  <bruno@clisp.org>
6137
6138         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
6139         'a' or 'A' conversion.
6140
6141 2007-02-25  Bruno Haible  <bruno@clisp.org>
6142
6143         * modules/filename: Renamed from modules/pathname.
6144         (Files): Replace lib/pathname.h with lib/filename.h. Replace
6145         lib/concatpath.c with lib/concat-filename.c.
6146         (Makefile.am): Update.
6147         (Include): Replace pathname.h with filename.h.
6148         * lib/filename.h: Renamed from lib/pathname.h.
6149         (concatenated_filename): Renamed from concatenated_pathname.
6150         * lib/concat-filename.c: Renamed from lib/concatpath.c.
6151         (concatenated_filename): Renamed from concatenated_pathname.
6152         * lib/findprog.c: Include filename.h instead of pathname.h.
6153         (find_in_path): Update.
6154         * lib/javacomp.c: Include filename.h instead of pathname.h.
6155         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
6156         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
6157         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
6158         is_oldgcj_14_13_usable, is_javac_usable): Update.
6159         * lib/javaexec.c: Include filename.h instead of pathname.h.
6160         (execute_java_class): Update.
6161         * modules/findprog: Update.
6162         * modules/javacomp: Update.
6163         * modules/javaexec: Update.
6164         * MODULES.html.sh (File system functions): Add 'filename', remove
6165         'pathname'.
6166
6167 2007-02-25  Bruno Haible  <bruno@clisp.org>
6168
6169         * modules/printf-frexpl-tests: New file.
6170         * tests/test-printf-frexpl.c: New file.
6171
6172         * modules/printf-frexpl: New file.
6173         * lib/printf-frexpl.h: New file.
6174         * lib/printf-frexpl.c: New file.
6175         * m4/printf-frexpl.m4: New file.
6176
6177 2007-02-25  Bruno Haible  <bruno@clisp.org>
6178
6179         * modules/printf-frexp-tests: New file.
6180         * tests/test-printf-frexp.c: New file.
6181
6182         * modules/printf-frexp: New file.
6183         * lib/printf-frexp.h: New file.
6184         * lib/printf-frexp.c: New file.
6185         * m4/printf-frexp.m4: New file.
6186
6187 2007-02-25  Bruno Haible  <bruno@clisp.org>
6188
6189         Assume automake >= 1.10 for the tests.
6190         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
6191         * modules/arctwo-tests: Likewise.
6192         * modules/argp-tests: Likewise.
6193         * modules/avltree-list-tests: Likewise.
6194         * modules/avltree-oset-tests: Likewise.
6195         * modules/avltreehash-list-tests: Likewise.
6196         * modules/carray-list-tests: Likewise.
6197         * modules/crc-tests: Likewise.
6198         * modules/des-tests: Likewise.
6199         * modules/gc-arcfour-tests: Likewise.
6200         * modules/gc-arctwo-tests: Likewise.
6201         * modules/gc-des-tests: Likewise.
6202         * modules/gc-hmac-md5-tests: Likewise.
6203         * modules/gc-hmac-sha1-tests: Likewise.
6204         * modules/gc-md2-tests: Likewise.
6205         * modules/gc-md4-tests: Likewise.
6206         * modules/gc-md5-tests: Likewise.
6207         * modules/gc-pbkdf2-sha1-tests: Likewise.
6208         * modules/gc-rijndael-tests: Likewise.
6209         * modules/gc-sha1-tests: Likewise.
6210         * modules/gc-tests: Likewise.
6211         * modules/getaddrinfo-tests: Likewise.
6212         * modules/hmac-md5-tests: Likewise.
6213         * modules/hmac-sha1-tests: Likewise.
6214         * modules/linked-list-tests: Likewise.
6215         * modules/linkedhash-list-tests: Likewise.
6216         * modules/lock-tests: Likewise.
6217         * modules/md2-tests: Likewise.
6218         * modules/md4-tests: Likewise.
6219         * modules/md5-tests: Likewise.
6220         * modules/rbtree-list-tests: Likewise.
6221         * modules/rbtree-oset-tests: Likewise.
6222         * modules/rbtreehash-list-tests: Likewise.
6223         * modules/read-file-tests: Likewise.
6224         * modules/rijndael-tests: Likewise.
6225         * modules/stdint-tests: Likewise.
6226         * modules/tls-tests: Likewise.
6227
6228 2007-02-24  Bruno Haible  <bruno@clisp.org>
6229
6230         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
6231         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
6232         function; instead check whether isnan with a double argument links.
6233         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
6234         function; instead check whether isnan with a 'long double' argument
6235         links.
6236         Reported by Eric Blake <ebb9@byu.net>.
6237
6238 2007-02-24  Bruno Haible  <bruno@clisp.org>
6239
6240         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
6241         defined.
6242         * lib/isnanl.c: Remove all code. Just include isnan.c.
6243         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
6244
6245 2007-02-25  Jim Meyering  <jim@meyering.net>
6246
6247         Avoid conflicting types for 'unsetenv' on FreeBSD.
6248         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
6249         conflicting with FreeBSD's (5.0 and 6.1) function declaration
6250         in stdlib.h.
6251
6252 2007-02-24  Bruno Haible  <bruno@clisp.org>
6253
6254         * modules/isnanl-nolibm-tests: New file.
6255         * tests/test-isnanl.c: New file.
6256
6257         * modules/isnanl-nolibm: New file.
6258         * lib/isnanl.h: New file.
6259         * lib/isnanl.c: New file.
6260         * m4/isnanl.m4: New file.
6261
6262 2007-02-24  Bruno Haible  <bruno@clisp.org>
6263
6264         * modules/isnan-nolibm-tests: New file.
6265         * tests/test-isnan.c: New file.
6266
6267         * modules/isnan-nolibm: New file.
6268         * lib/isnan.h: New file.
6269         * lib/isnan.c: New file.
6270         * m4/isnan.m4: New file.
6271
6272 2007-02-24  Bruno Haible  <bruno@clisp.org>
6273
6274         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
6275         assume that an exponent fits in 20 bits.
6276
6277 2007-02-24  Jim Meyering  <jim@meyering.net>
6278
6279         * m4/regex.m4: Update the description of the configure-time option,
6280         --without-included-regex, to state accurately what the defaults are,
6281         and perhaps to give people an idea why using this option is risky.
6282
6283 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6284
6285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
6286         loops on small arguments.  This attempts to avoid the problem
6287         Bruno Haible reported for AIX 4.3.2 in
6288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
6289
6290 2007-02-23  Bruno Haible  <bruno@clisp.org>
6291
6292         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
6293         Needed for help2man.
6294
6295 2007-02-23  Karl Berry  <karl@gnu.org>
6296
6297         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
6298         exists, foo.h should be cvs-ignored, not committed.
6299
6300 2007-02-23  Eric Blake  <ebb9@byu.net>
6301
6302         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
6303         * lib/stat-time.h (includes): Likewise.
6304         * lib/utimecmp.c (includes): Likewise.
6305         * lib/utimens.h (includes): Likewise.
6306         * lib/getdate.y (includes): Also include "timespec.h" for use
6307         internal to the module.
6308         * modules/utimens (Depends-on): Revert yesterday's patch.
6309         * modules/nanosleep (Depends-on): Add missing dependency.
6310
6311 2007-02-22  Bruno Haible  <bruno@clisp.org>
6312
6313         * lib/glob.c: Don't include getlogin_r.h.
6314
6315 2007-02-22  Jim Meyering  <jim@meyering.net>
6316
6317         * modules/utimens (Depends-on): Add timespec, required for
6318         utimens.h's inclusion of timespec.h.
6319
6320 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
6321
6322         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
6323         long unreadable paths in GNU/Linux.  Problem reported by Andreas
6324         Schwab in
6325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
6326         I'll try to think of a better way to fix the Solaris problem.
6327
6328         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
6329         like glibc; on Solaris 10, it fails with errno == EINVAL.
6330         POSIX says the behavior is unspecified if the first argument is NULL,
6331         so play it safe and never pass NULL to the system getcwd.
6332
6333 2007-02-21  Jim Meyering  <jim@meyering.net>
6334
6335         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
6336         of gettimeofday.  It would conflict with the one now always
6337         provided via sys_time_.h.  Reported by Matthew Woehlke, as
6338         an IRIX 6.5 build failure.
6339
6340 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6341
6342         Minor fixups to port to Solaris 10 with Sun C 5.8.
6343         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
6344         * modules/getcwd (Depends-on): Add dirfd.
6345         * lib/putenv.c (putenv): #undef it.
6346         (rpl_putenv): New decl.
6347         (malloc, free): Include <stdlib.h> rather than prototyping separately.
6348
6349 2007-02-20  Bruno Haible  <bruno@clisp.org>
6350
6351         * modules/stdio-tests: New file.
6352         * tests/test-stdio.c: New file.
6353
6354         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
6355         (Depends-on): Add stdio.
6356         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6357         (Include): Use <stdio.h> instead of vsnprintf.h.
6358         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6359         HAVE_DECL_VSNPRINTF.
6360         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
6361
6362         * modules/snprintf (Files): Remove lib/snprintf.h.
6363         (Depends-on): Add stdio.
6364         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6365         (Include): Use <stdio.h> instead of snprintf.h.
6366         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6367         HAVE_DECL_SNPRINTF.
6368         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
6369         * lib/getaddrinfo.c: Likewise.
6370
6371         * modules/stdio: New file.
6372         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
6373         * lib/snprintf.h: Remove file.
6374         * lib/vsnprintf.h: Remove file.
6375         * lib/.cppi-disable: Remove snprintf.h.
6376         * m4/stdio_h.m4: New file.
6377         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
6378
6379 2007-02-20  Jim Meyering  <jim@meyering.net>
6380
6381         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
6382         used by e.g., mingw.  From Bruno Haible.
6383
6384 2007-02-19  Bruno Haible  <bruno@clisp.org>
6385
6386         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
6387         warnings.
6388         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6389
6390 2007-02-19  Bruno Haible  <bruno@clisp.org>
6391
6392         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
6393         from mingw users.
6394
6395 2007-02-19  Bruno Haible  <bruno@clisp.org>
6396
6397         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
6398         warnings.
6399         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
6400
6401 2007-02-19  Jim Meyering  <jim@meyering.net>
6402
6403         Don't use FD after a successful "fdopendir (fd)".
6404         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
6405         Reset it by calling dirfd on the just-obtained DIR*.
6406
6407         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
6408         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
6409
6410 2007-02-18  Bruno Haible  <bruno@clisp.org>
6411
6412         * lib/readlink.c: Include <unistd.h>.
6413         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
6414         HAVE_READLINK.
6415         * modules/readlink (Depends-on): Add unistd.
6416         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6417         (Include): Add <unistd.h>.
6418
6419         * lib/getlogin_r.h: Remove file.
6420         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
6421         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
6422         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
6423         HAVE_DECL_GETLOGIN_R.
6424         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
6425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6426         (Include): Use <unistd.h> instead of getlogin_r.h.
6427
6428         * lib/getcwd.h: Remove file.
6429         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
6430         * lib/xgetcwd.c: Likewise.
6431         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
6432         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
6433         * modules/getcwd (Files): Remove lib/getcwd.h.
6434         (Depends-on): Add unistd.
6435         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6436         (Include): Use <unistd.h> instad of getcwd.h.
6437
6438         * lib/ftruncate.c: Include <unistd.h> first.
6439         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
6440         Set HAVE_FTRUNCATE.
6441         * modules/ftruncate (Depends-on): Add unistd.
6442         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6443
6444         * lib/fchdir.c: Include <unistd.h> first.
6445         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
6446         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
6447         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
6448         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6449         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
6450
6451         * lib/dup2.c: Include <unistd.h> first.
6452         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
6453         HAVE_DUP2.
6454         * modules/dup2 (Depends-on): Add unistd.
6455         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6456
6457         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
6458         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
6459         REPLACE_CHOWN. Don't define chown as a macro here.
6460         * modules/chown (Depends-on): Add unistd.
6461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6462
6463         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
6464         Add definition for GL_LINK_WARNING.
6465         (chown, dup2): New declarations.
6466         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
6467         link warning.
6468         (ftruncate): New declaration.
6469         (getcwd): New declaration, taken from old getcwd.h.
6470         (getlogin_r): New declaration, taken from old getlogin_r.h.
6471         (readlink): New declaration.
6472         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
6473         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
6474         (gl_PREREQ_UNISTD): Remove macro.
6475         (gl_UNISTD_MODULE_INDICATOR): New macro.
6476         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
6477         many new variables. Don't set UNISTD_H.
6478         * modules/unistd (Description): Change.
6479         (Depends-on): Add link-warning.
6480         (configure.ac): Update.
6481         (Makefile.am): Create unistd.h always. Substitute many new variables
6482         into it.
6483
6484 2007-02-18  Bruno Haible  <bruno@clisp.org>
6485
6486         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
6487         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
6488         HAVE_GETSUBOPT.
6489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
6490         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
6491         * lib/getsubopt.h: Remove file.
6492         * modules/getsubopt (Files): Remove lib/getsubopt.h.
6493         (Depends-on): Add stdlib.
6494         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6495         (Includes): Use <stdlib.h> instead of getsubopt.h.
6496         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
6497         Set HAVE_GETSUBOPT.
6498         * lib/getsubopt.c: Don't include getsubopt.h.
6499
6500 2007-02-18  Bruno Haible  <bruno@clisp.org>
6501
6502         * modules/fchdir (Depends-on): Add dup2.
6503
6504 2007-02-18  Bruno Haible  <bruno@clisp.org>
6505
6506         * lib/stdlib_.h: Handle glibc's special invocation convention
6507         specially.
6508
6509 2007-02-18  Bruno Haible  <bruno@clisp.org>
6510
6511         * modules/stdlib-tests: New file.
6512         * tests/test-stdlib.c: New file.
6513
6514         * modules/mkstemp (Files): Remove lib/mkstemp.h.
6515         (Depends-on): Add stdlib.
6516         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6517         (Includes): Use <stdlib.h> instead of mkstemp.h.
6518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6519         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
6520         * lib/mkstemp.c: Don't include mkstemp.h.
6521         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
6522         * lib/stdlib--.h: Don't include mkstemp.h.
6523
6524         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
6525         (Depends-on): Add stdlib.
6526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6527         (Includes): Use <stdlib.h> instead of mkdtemp.h.
6528         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6529         HAVE_MKDTEMP.
6530         * lib/mkdtemp.c: Don't include mkdtemp.h.
6531         * lib/clean-temp.c: Don't include mkdtemp.h.
6532
6533         * modules/exit (Files): Remove lib/exit.h.
6534         (Depends-on): Add stdlib.
6535         (Makefile.am): Remove lib_SOURCES.
6536         (Include): Use <stdlib.h> instead of exit.h.
6537         * lib/argmatch.c: Don't include exit.h.
6538         * lib/execute.c: Likewise.
6539         * lib/pagealign_alloc.c: Likewise.
6540         * lib/pipe.c: Likewise.
6541         * lib/wait-process.c: Likewise.
6542         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
6543         * lib/exitfail.c: Likewise.
6544         * lib/savewd.c: Likewise.
6545         * lib/xsetenv.c: Likewise.
6546
6547         * modules/stdlib: New file.
6548         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
6549         and extra comments about mkstemp().
6550         * lib/exit.h: Remove file.
6551         * lib/mkdtemp.h: Remove file.
6552         * lib/mkstemp.h: Remove file.
6553         * m4/stdlib_h.m4: New file.
6554         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
6555
6556 2007-02-18  Bruno Haible  <bruno@clisp.org>
6557
6558         * modules/math-tests: New file.
6559         * tests/test-math.c: New file.
6560
6561         * modules/math: New file.
6562         * modules/mathl (Files): Remove lib/mathl.h.
6563         (Depends-on): Add math.
6564         (Makefile.am): Don't mention mathl.h.
6565         (Include): Use <math.h> instead of mathl.h.
6566         * lib/math_.h: New file.
6567         * lib/mathl.h: Remove file.
6568         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
6569         mathl.h.
6570         * lib/asinl.c: Likewise.
6571         * lib/atanl.c: Likewise.
6572         * lib/ceill.c: Likewise.
6573         * lib/cosl.c: Likewise.
6574         * lib/expl.c: Likewise.
6575         * lib/floorl.c: Likewise.
6576         * lib/frexpl.c: Likewise.
6577         * lib/ldexpl.c: Likewise.
6578         * lib/logl.c: Likewise.
6579         * lib/sincosl.c: Likewise.
6580         * lib/sinl.c: Likewise.
6581         * lib/sqrtl.c: Likewise.
6582         * lib/tanl.c: Likewise.
6583         * lib/trigl.c: Likewise.
6584         * m4/math_h.m4: New file.
6585         * MODULES.html.sh (Mathematics): Add math.
6586
6587 2007-02-17  Bruno Haible  <bruno@clisp.org>
6588
6589         * modules/wctype-tests: New file.
6590         * tests/test-wctype.c: New file.
6591
6592         * modules/wchar-tests: New file.
6593         * tests/test-wchar.c: New file.
6594
6595         * modules/unistd-tests: New file.
6596         * tests/test-unistd.c: New file.
6597
6598         * modules/time-tests: New file.
6599         * tests/test-time.c: New file.
6600
6601         * modules/sysexits-tests: New file.
6602         * tests/test-sysexits.c: New file.
6603
6604         * modules/sys_time-tests: New file.
6605         * tests/test-sys_time.c: New file.
6606
6607         * modules/sys_stat-tests: New file.
6608         * tests/test-sys_stat.c: New file.
6609
6610         * modules/sys_socket-tests: New file.
6611         * tests/test-sys_socket.c: New file.
6612
6613         * modules/sys_select-tests: New file.
6614         * tests/test-sys_select.c: New file.
6615
6616         * modules/string-tests: New file.
6617         * tests/test-string.c: New file.
6618
6619         * modules/stdbool-tests: New file.
6620         * tests/test-stdbool.c: New file.
6621
6622         * modules/netinet_in-tests: New file.
6623         * tests/test-netinet_in.c: New file.
6624
6625         * modules/inttypes-tests: New file.
6626         * tests/test-inttypes.c: New file.
6627
6628         * modules/fcntl-tests: New file.
6629         * tests/test-fcntl.c: New file.
6630
6631         * modules/byteswap-tests: New file.
6632         * tests/test-byteswap.c: New file.
6633
6634         * modules/arpa_inet-tests: New file.
6635         * tests/test-arpa_inet.c: New file.
6636
6637 2007-02-17  Bruno Haible  <bruno@clisp.org>
6638
6639         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
6640         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
6641         if the corresponding module is not enabled. Emit link warnings if
6642         the function is used nevertheless.
6643         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
6644         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
6645         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
6646         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
6647         * modules/inttypes (Depends-on): Add link-warning.
6648         (Makefile.am): Copy the contents of build-aux/link-warning.h into
6649         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
6650         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
6651         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
6652         * modules/imaxdiv (configure.ac): Likewise.
6653         * modules/strtoimax (configure.ac): Likewise.
6654         * modules/strtoumax (configure.ac): Likewise.
6655
6656 2007-02-17  Bruno Haible  <bruno@clisp.org>
6657
6658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
6659         gl_STRING_MODULE_INDICATOR_DEFAULTS.
6660         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
6661         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
6662
6663 2007-02-17  Bruno Haible  <bruno@clisp.org>
6664
6665         * modules/link-warning: New file.
6666         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
6667         * lib/string_.h (GL_LINK_WARNING): Remove definition.
6668         * modules/string (Depends-on): Add link-warning.
6669         (Makefile.am): Copy the contents of build-aux/link-warning.h into
6670         string.h.
6671         * MODULES.html.sh (Support for building libraries and executables): Add
6672         link-warning.
6673
6674 2007-02-17  Bruno Haible  <bruno@clisp.org>
6675
6676         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
6677         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
6678         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
6679         long lines.
6680
6681 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
6682             Bruno Haible  <bruno@clisp.org>
6683
6684         * modules/tmpfile: New file.
6685         * lib/tmpfile.c: New file.
6686         * m4/tmpfile.m4: New file.
6687         * MODULES.html.sh (func_all_modules): New section "Input/output".
6688
6689 2007-02-15  Bruno Haible  <bruno@clisp.org>
6690
6691         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
6692         (supports_delete_on_close): New function.
6693         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
6694
6695 2007-02-14  Bruno Haible  <bruno@clisp.org>
6696
6697         * modules/mbspcasecmp-tests: New file.
6698         * tests/test-mbspcasecmp.sh: New file.
6699         * tests/test-mbspcasecmp.c: New file.
6700
6701         New module mbspcasecmp.
6702         * modules/mbspcasecmp: New file.
6703         * lib/mbspcasecmp.c: New file.
6704         * lib/string_.h (strncasecmp): Change warning message.
6705         (mbspcasecmp): New declaration.
6706         * m4/mbspcasecmp.m4: New file.
6707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6708         GNULIB_MBSPCASECMP.
6709         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
6710         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
6711
6712 2007-02-14  Bruno Haible  <bruno@clisp.org>
6713
6714         * modules/mbsncasecmp-tests: New file.
6715         * tests/test-mbsncasecmp.sh: New file.
6716         * tests/test-mbsncasecmp.c: New file.
6717
6718         New module mbsncasecmp.
6719         * modules/mbsncasecmp: New file.
6720         * lib/mbsncasecmp.c: New file.
6721         * lib/string_.h (mbsncasecmp): New declaration.
6722         * m4/mbsncasecmp.m4: New file.
6723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6724         GNULIB_MBSNCASECMP.
6725         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
6726         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
6727
6728 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6729
6730         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
6731         Verify that it doesn't overlap with our flags.
6732         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
6733         do not have the desired effect in multibyte locales; instead, use
6734         mbscasecmp.
6735         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
6736         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
6737         we don't require GNU fnmatch ourselves (if our users require it, they
6738         should do so explicitly).
6739
6740         Fix regex code so it doesn't rely on strcasecmp.
6741         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
6742         Otherwise, include gnulib's langinfo.h.
6743         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
6744         undesirable behavior in non-C locales.  Instead, rely on localecharset.
6745         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
6746         * modules/regex (FILES): Remove m4/codeset.m4.
6747         (Depends-on): Add localcharset.  Remove strcase.
6748
6749 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6750
6751         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
6752         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6753
6754 2007-02-13  Bruno Haible  <bruno@clisp.org>
6755
6756         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
6757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6758
6759 2007-02-12  Bruno Haible  <bruno@clisp.org>
6760
6761         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6762         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
6763         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
6764         time warning rather than a link error.
6765
6766 2007-02-12  Bruno Haible  <bruno@clisp.org>
6767
6768         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
6769         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6770         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6771
6772 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6773
6774         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
6775         args, not 2.
6776
6777 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6778
6779         New module 'time', so that apps can include <time.h> as per
6780         POSIX and GNU instead of separate include files like time_r.h
6781         and timegm.h.  This implementation tries out a simpler approach
6782         for replacing decls in standard include files (as compared to
6783         the string module), somewhat as an experiment.
6784
6785         * config/srclist.txt: Comment out mktime.c for now.
6786         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
6787         since it doesn't apply any more.  Use generic wording instead.
6788         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
6789         'time'.
6790         * lib/time_.h, m4/time_h.m4, modules/time: New files.
6791         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
6792         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
6793         Don't include <sys/types.h>; no longer needed since we assume C89.
6794         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
6795         * lib/strftime.c: Likewise.
6796         * lib/time_r.c: Likewise.
6797         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
6798         * lib/nanosleep.c: Include <time.h> first, to check interface.
6799         * lib/strptime.c: Likewise.
6800         * lib/time_r.c: Likewise.
6801         * lib/timegm.c: Likewise.
6802         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
6803         needed.
6804         * lib/timegm.c: Don't include timegm.h; no longer needed.
6805         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
6806         time.h now handles any problems in that area.
6807         (struct timespec, nanosleep): Remove; time.h now arranges for these.
6808         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
6809         that time.h defines struct timespec.
6810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
6811         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
6812         handles that.
6813         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
6814         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
6815         needed.  Set REPLACE_LOCALTIME.
6816         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
6817         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
6818         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
6819         nanosleep; time_h.m4 now does that.  Don't require
6820         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
6821         module handles this now.
6822         * modules/getdate (Depends-on): Remove timespec.  Add time.
6823         * modules/nanosleep (Depends-on): Likewise.
6824         * modules/stat-time (Depends-on): Likewise.
6825         * modules/nanosleep (Include): Include time.h, not timespec.h.
6826         * modules/strptime (Files): Remove lib/strptime.h.
6827         (Depends-on): Add extensions, time.
6828         (Include): Include time.h, not strptime.h.
6829         * modules/time_r (Files): Remove lib/time_r.h.
6830         (Depends-on): Add time.
6831         (Include): Include time.h, not time_r.h.
6832         * modules/timegm: Likewise.
6833         * modules/timespec (Description): Now does timespec-related decls
6834         of our own, instead of struct timespec itself.
6835         (Depends-on): Add time; remove extensions.
6836         (Maintainer): Add self.
6837         * modules/utimecmp (Depends-on): Add time; remove timespec.
6838         * modules/utimens (Depends-on): Likewise.
6839         * modules/xnanosleep (Depends-on): Likewise.
6840
6841 2007-02-11  Bruno Haible  <bruno@clisp.org>
6842
6843         * lib/c-strstr.c: Include allocsa.h.
6844         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6845         * lib/c-strcasestr.c: Include allocsa.h.
6846         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6847         * lib/strcasestr.c: Include allocsa.h.
6848         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6849         * lib/mbsstr.c: Include allocsa.h.
6850         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6851         allocsa/freesa instead of malloc/free.
6852         * lib/mbscasestr.c: Include allocsa.h.
6853         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6854         allocsa/freesa instead of malloc/free.
6855         * modules/c-strstr (Depends-on): Add allocsa.
6856         * modules/c-strcasestr (Depends-on): Likewise.
6857         * modules/strcasestr (Depends-on): Likewise.
6858         * modules/mbsstr (Depends-on): Likewise.
6859         * modules/mbscasestr (Depends-on): Likewise.
6860
6861 2007-02-11  Bruno Haible  <bruno@clisp.org>
6862
6863         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
6864
6865         * modules/mbsspn-tests: New file.
6866         * tests/test-mbsspn.sh: New file.
6867         * tests/test-mbsspn.c: New file.
6868
6869 2007-02-11  Bruno Haible  <bruno@clisp.org>
6870
6871         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
6872
6873         * modules/mbspbrk-tests: New file.
6874         * tests/test-mbspbrk.sh: New file.
6875         * tests/test-mbspbrk.c: New file.
6876
6877 2007-02-11  Bruno Haible  <bruno@clisp.org>
6878
6879         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
6880         unneeded cast.
6881
6882         * modules/mbscspn-tests: New file.
6883         * tests/test-mbscspn.sh: New file.
6884         * tests/test-mbscspn.c: New file.
6885
6886 2007-02-11  Bruno Haible  <bruno@clisp.org>
6887
6888         * modules/mbscasecmp-tests: New file.
6889         * tests/test-mbscasecmp.sh: New file.
6890         * tests/test-mbscasecmp.c: New file.
6891
6892 2007-02-11  Bruno Haible  <bruno@clisp.org>
6893
6894         Ensure O(n) worst-case complexity of mbscasestr.
6895         * lib/mbscasestr.c: Include stdbool.h.
6896         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6897         functions.
6898         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
6899         the bookkeeping indicates that it's worth it.
6900         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
6901
6902         * modules/mbscasestr-tests: New file.
6903         * tests/test-mbscasestr1.c: New file.
6904         * tests/test-mbscasestr2.sh: New file.
6905         * tests/test-mbscasestr2.c: New file.
6906         * tests/test-mbscasestr3.sh: New file.
6907         * tests/test-mbscasestr3.c: New file.
6908         * tests/test-mbscasestr4.sh: New file.
6909         * tests/test-mbscasestr4.c: New file.
6910         * m4/locale-tr.m4: New file.
6911
6912 2007-02-11  Bruno Haible  <bruno@clisp.org>
6913
6914         Ensure O(n) worst-case complexity of mbsstr.
6915         * lib/mbsstr.c: Include stdbool.h.
6916         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6917         functions.
6918         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
6919         bookkeeping indicates that it's worth it.
6920         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
6921
6922         * modules/mbsstr-tests: New file.
6923         * tests/test-mbsstr1.c: New file.
6924         * tests/test-mbsstr2.sh: New file.
6925         * tests/test-mbsstr2.c: New file.
6926         * tests/test-mbsstr3.sh: New file.
6927         * tests/test-mbsstr3.c: New file.
6928         * m4/locale-fr.m4: New file.
6929
6930 2007-02-11  Bruno Haible  <bruno@clisp.org>
6931
6932         * lib/mbsrchr.c (mbsrchr): Fix bug.
6933
6934         * modules/mbsrchr-tests: New file.
6935         * tests/test-mbsrchr.sh: New file.
6936         * tests/test-mbsrchr.c: New file.
6937
6938 2007-02-11  Bruno Haible  <bruno@clisp.org>
6939
6940         * lib/mbschr.c (mbschr): Fix bug.
6941
6942         * modules/mbschr-tests: New file.
6943         * tests/test-mbschr.sh: New file.
6944         * tests/test-mbschr.c: New file.
6945         * m4/locale-zh.m4: New file.
6946
6947 2007-02-11  Bruno Haible  <bruno@clisp.org>
6948
6949         Support for copying multibyte string iterators.
6950         * lib/mbiter.h: Include <string.h>.
6951         (mbiter_multi_copy): New function.
6952         (mbi_copy): New macro.
6953         * lib/mbuiter.h: Include <string.h>.
6954         (mbuiter_multi_copy): New function.
6955         (mbui_copy): New macro.
6956
6957 2007-02-11  Bruno Haible  <bruno@clisp.org>
6958
6959         New module mbslen.
6960         * modules/mbslen: New file.
6961         * lib/mbslen.c: New file.
6962         * lib/string_.h (mbslen): New declaration.
6963         * m4/mbslen.m4: New file.
6964         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6965         GNULIB_MBSLEN.
6966         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
6967         * MODULES.html.sh (Internationalization functions): Add mbslen.
6968
6969 2007-02-11  Bruno Haible  <bruno@clisp.org>
6970
6971         Ensure O(n) worst-case complexity of strcasestr substitute.
6972         * lib/strcasestr.c: Include stdbool.h.
6973         (knuth_morris_pratt): New function.
6974         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6975         bookkeeping indicates that it's worth it.
6976         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
6977
6978         * modules/strcasestr-tests: New file.
6979         * tests/test-strcasestr.c: New file.
6980
6981 2007-02-11  Bruno Haible  <bruno@clisp.org>
6982
6983         Ensure O(n) worst-case complexity of c_strcasestr.
6984         * lib/c-strcasestr.c: Include stdbool.h, string.h.
6985         (knuth_morris_pratt): New function.
6986         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
6987         the bookkeeping indicates that it's worth it.
6988         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
6989
6990         * modules/c-strcasestr-tests: New file.
6991         * tests/test-c-strcasestr.c: New file.
6992
6993 2007-02-11  Bruno Haible  <bruno@clisp.org>
6994
6995         Ensure O(n) worst-case complexity of c_strstr.
6996         * lib/c-strstr.c: Include stdbool.h, string.h.
6997         (knuth_morris_pratt): New function.
6998         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6999         bookkeeping indicates that it's worth it.
7000         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
7001
7002         * lib/c-strstr.c: Complete rewrite for maintainability.
7003
7004         * modules/c-strstr-tests: New file.
7005         * tests/test-c-strstr.c: New file.
7006
7007 2007-02-11  Bruno Haible  <bruno@clisp.org>
7008
7009         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
7010         5.2.1 and earlier, whereby \055 was treated just like the range
7011         delimiter '-'.
7012         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7013
7014 2007-02-08  Bruno Haible  <bruno@clisp.org>
7015
7016         * modules/regex (Depends-on): Add stdbool.
7017         Reported by Dalibor Topic <robilad@kaffe.org>.
7018
7019 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
7020
7021         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
7022         Prefer returning from main to exiting from it.
7023         Remove unnecessary parens after sizeof.
7024
7025 2007-02-05  Bruno Haible  <bruno@clisp.org>
7026
7027         New module mbssep.
7028         * modules/mbssep: New file.
7029         * lib/mbssep.c: New file.
7030         * lib/string_.h (strsep): Add a conditional link warning.
7031         (mbssep): New declaration.
7032         * m4/mbssep.m4: New file.
7033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7034         GNULIB_MBSSEP.
7035         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
7036         * MODULES.html.sh (Internationalization functions): Add mbssep.
7037
7038 2007-02-05  Bruno Haible  <bruno@clisp.org>
7039
7040         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
7041         Optimize search in case of 1 delimiter.
7042
7043 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
7044
7045         * lib/acl.h: Include sys/types.h before sys/acl.h.
7046
7047 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
7048
7049         Merge upstream fix for glibc bugzilla #3957:
7050
7051         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7052
7053         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7054         bit for RE_HAT_LISTS_NOT_NEWLINE.
7055         (build_charclass_op): Remove bogus comment.
7056
7057 2007-02-05  Simon Josefsson  <simon@josefsson.org>
7058
7059         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
7060
7061 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7062
7063         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
7064         * lib/memmem.c [!defined _LIBC]: Include config.h.
7065
7066 2007-02-04  Bruno Haible  <bruno@clisp.org>
7067
7068         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
7069         warning message.
7070
7071 2007-02-04  Bruno Haible  <bruno@clisp.org>
7072
7073         New module mbstok_r.
7074         * modules/mbstok_r: New file.
7075         * lib/mbstok_r.c: New file.
7076         * lib/string_.h (strtok_r): Change argument names to match the
7077         comments. Add a conditional link warning.
7078         (mbstok_r): New declaration.
7079         * m4/mbstok_r.m4: New file.
7080         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7081         GNULIB_MBSTOK_R.
7082         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
7083         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
7084
7085 2007-02-04  Bruno Haible  <bruno@clisp.org>
7086
7087         New module mbsspn.
7088         * modules/mbsspn: New file.
7089         * lib/mbsspn.c: New file.
7090         * lib/string_.h (strspn): Add a conditional link warning.
7091         (mbsspn): New declaration.
7092         * m4/mbsspn.m4: New file.
7093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7094         GNULIB_MBSSPN.
7095         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
7096         * MODULES.html.sh (Internationalization functions): Add mbsspn.
7097
7098 2007-02-04  Bruno Haible  <bruno@clisp.org>
7099
7100         New module mbspbrk.
7101         * modules/mbspbrk: New file.
7102         * lib/mbspbrk.c: New file.
7103         * lib/string_.h (strpbrk): Add a conditional link warning.
7104         (mbspbrk): New declaration.
7105         * m4/mbspbrk.m4: New file.
7106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7107         GNULIB_MBSPBRK.
7108         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
7109         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
7110
7111 2007-02-04  Bruno Haible  <bruno@clisp.org>
7112
7113         New module mbscspn.
7114         * modules/mbscspn: New file.
7115         * lib/mbscspn.c: New file.
7116         * lib/string_.h (strcspn): Add a conditional link warning.
7117         (mbscspn): New declaration.
7118         * m4/mbscspn.m4: New file.
7119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7120         GNULIB_MBSCSPN.
7121         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
7122         * MODULES.html.sh (Internationalization functions): Add mbscspn.
7123
7124 2007-02-04  Bruno Haible  <bruno@clisp.org>
7125
7126         New module mbscasestr, reduced goal of strcasestr.
7127         * modules/mbscasestr: New file.
7128         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
7129         (mbscasestr): Renamed from strcasestr.
7130         * lib/strcasestr.c: Don't include mbuiter.h.
7131         (strcasestr): Remove support for multibyte locales.
7132         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
7133         Change the conditional link warning.
7134         (mbscasestr): New declaration.
7135         * m4/mbscasestr.m4: New file.
7136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
7137         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
7138         REPLACE_STRCASESTR.
7139         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
7140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7141         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
7142         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
7143         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
7144         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
7145         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
7146         (Depends-on): Remove mbuiter.
7147         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
7148
7149 2007-02-04  Bruno Haible  <bruno@clisp.org>
7150
7151         Simplify handling of strncasecmp.
7152         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
7153         the conditional link warning.
7154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7155         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
7156         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
7157         * modules/strcase (configure.ac): Don't invoke
7158         gl_STRING_MODULE_INDICATOR.
7159         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
7160
7161 2007-02-04  Bruno Haible  <bruno@clisp.org>
7162
7163         New module mbscasecmp, reduced goal of strcasecmp.
7164         * modules/mbscasecmp: New file.
7165         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
7166         (mbscasecmp): Renamed from strcasecmp.
7167         * lib/strcasecmp.c: Don't include mbuiter.h.
7168         (strcasecmp): Remove support for multibyte locales.
7169         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
7170         Change the conditional link warning.
7171         (mbscasecmp): New declaration.
7172         * m4/mbscasecmp.m4: New file.
7173         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
7174         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
7175         REPLACE_STRCASECMP.
7176         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
7177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7178         GNULIB_MBSCASECMP.
7179         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
7180         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
7181         * modules/strcase (Files): Remove m4/mbrtowc.m4.
7182         (Depends-on): Remove mbuiter.
7183         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
7184
7185 2007-02-04  Bruno Haible  <bruno@clisp.org>
7186
7187         New module mbsstr. Remove module strstr.
7188         * modules/mbsstr: New file.
7189         * modules/strstr: Remove file.
7190         * lib/mbsstr.c: Renamed from lib/strstr.c.
7191         (mbsstr): Renamed from strstr.
7192         * lib/string_.h (strstr): Remove declaration. Change the conditional
7193         link warning.
7194         (mbsstr): New declaration.
7195         * m4/mbsstr.m4: New file.
7196         * m4/strstr.m4: Remove file.
7197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7198         REPLACE_STRSTR.
7199         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
7200         Don't initialize GNULIB_STRSTR.
7201         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
7202         substitute GNULIB_STRSTR and REPLACE_STRSTR.
7203         * MODULES.html.sh (Internationalization functions): Add mbsstr.
7204         (Support for systems lacking ANSI C 89): Remove strstr.
7205
7206 2007-02-04  Bruno Haible  <bruno@clisp.org>
7207
7208         New module mbsrchr.
7209         * modules/mbsrchr: New file.
7210         * lib/mbsrchr.c: New file.
7211         * lib/string_.h (strrchr): Add a conditional link warning.
7212         (mbsrchr): New declaration.
7213         * m4/mbsrchr.m4: New file.
7214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7215         GNULIB_MBSRCHR.
7216         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
7217         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
7218
7219 2007-02-04  Bruno Haible  <bruno@clisp.org>
7220
7221         New module mbschr.
7222         * modules/mbschr: New file.
7223         * lib/mbschr.c: New file.
7224         * lib/string_.h (strchr): Add a conditional link warning.
7225         (mbschr): New declaration.
7226         * m4/mbschr.m4: New file.
7227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7228         GNULIB_MBSCHR.
7229         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
7230         * MODULES.html.sh (Internationalization functions): Add mbschr.
7231
7232 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7233
7234         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
7235
7236         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
7237
7238 2007-02-04  Bruno Haible  <bruno@clisp.org>
7239
7240         New module description section 'configure.ac-early'.
7241         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
7242         (func_get_autoconf_early_snippet): New function.
7243         (func_import, func_create_testdir): Use it. Remove special cases for
7244         modules 'extensions' and 'lock'.
7245         * modules/extensions (configure.ac-early): Require
7246         gl_USE_SYSTEM_EXTENSIONS.
7247         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
7248
7249 2007-02-04  Bruno Haible  <bruno@clisp.org>
7250
7251         Make use of gcj-4.3's -fsource and -ftarget option.
7252         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
7253         and if so try the options -fsource and -ftarget.
7254         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
7255         source_version, ftarget_option, target_version arguments.
7256         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
7257         (is_envjavac_oldgcj_14_14_usable): Renamed from
7258         is_envjavac_gcj_14_14_usable.
7259         (is_envjavac_oldgcj_14_13_usable): Renamed from
7260         is_envjavac_gcj_14_13_usable.
7261         (is_gcj_present): Update.
7262         (is_gcj_43, is_gcj43_usable): New functions.
7263         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
7264         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
7265         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
7266         try the options -fsource and -ftarget.
7267
7268 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7269
7270         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
7271         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
7272         larger value.
7273
7274 2007-02-03  Jim Meyering  <jim@meyering.net>
7275
7276         Give tools a better chance to allocate space for very large buffers.
7277         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
7278
7279         Make pwd and readlink work also when run with an unreadable parent dir
7280         on systems with openat support.
7281         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
7282         provided getcwd function, even when we have openat support.
7283         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
7284
7285 2007-02-02  Bruno Haible  <bruno@clisp.org>
7286
7287         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
7288         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
7289         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
7290         portability problems if one of these functions is only used on specific
7291         platforms.
7292         Reported by Paul Eggert.
7293
7294 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
7295
7296         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
7297         is causing more trouble than it's curing.
7298         * lib/regex_internal.h (__mempcpy): Remove.
7299         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
7300         (and make the code a tad smaller to boot).
7301         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
7302
7303 2007-02-02  Jim Meyering  <jim@meyering.net>
7304
7305         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
7306         section, not in the Makefile.am: one.
7307
7308 2007-02-02  Eric Blake  <ebb9@byu.net>
7309
7310         * lib/strchrnul.c: Always include config.h first.
7311
7312         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
7313         gnulib strstr is not necessary here.
7314
7315 2007-02-02  Simon Josefsson  <simon@josefsson.org>
7316
7317         * m4/socklen.m4: Fix typo.
7318
7319 2007-02-02  Eric Blake  <ebb9@byu.net>
7320
7321         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
7322         * modules/netinet_in (Makefile.am): Likewise.
7323
7324 2007-02-01  Bruno Haible  <bruno@clisp.org>
7325
7326         * lib/string_.h (GL_LINK_WARNING): New macro.
7327         (strcasecmp, strstr, strcasestr): If provided by the system,
7328         conditionally define as a macro that leads to a warning instead of to
7329         an error.
7330         (strncasecmp): Conditionally define as a macro that leads to a warning.
7331
7332 2007-02-01  Karl Berry  <karl@gnu.org>
7333
7334         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
7335
7336 2007-02-01  Bruno Haible  <bruno@clisp.org>
7337
7338         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
7339         renamings.
7340
7341 2007-02-01  Eric Blake  <ebb9@byu.net>
7342
7343         * modules/regex (Depends-on): Revert dependence on mempcpy.
7344         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
7345         module's definition of mempcpy.
7346         Reported by Paul Eggert.
7347
7348 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
7349
7350         * lib/string_.h: If the gnulib module XYZ is not present, undefine
7351         the symbol XYZ before redefining it.  This fixes a problem with
7352         programs that don't use XYZ, when compiled on systems that define
7353         XYZ to something else.
7354
7355 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
7356
7357         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
7358         occurs when "mkdir -m foo" creates a setgid directory that is (1)
7359         writeable to group or other and (2) is intended to have a special
7360         mode bit that is set or cleared.  In such a case, the directory
7361         should be neither group- nor other-writeable until the special
7362         mode bits are right.
7363
7364 2007-01-31  Eric Blake  <ebb9@byu.net>
7365
7366         * modules/mountlist (Depends-on): Add strstr.
7367
7368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
7369         bug.
7370         * modules/string (Makefile.am): Remove redundant replacement.
7371         * modules/regex (Depends-on): Add mempcpy.
7372
7373 2007-01-31  Bruno Haible  <bruno@clisp.org>
7374
7375         New module description field 'Link'.
7376         * gnulib-tool (func_usage): Document --extract-link-directive.
7377         (sed_extract_prog): Recognize 'Link' directive.
7378         (func_get_link_directive): New function.
7379         (func_import): Show summary of link directives.
7380         Handle --extract-link-directive option.
7381         * modules/acl (Link): New section.
7382         * modules/clock-time (Link): New section.
7383         * modules/euidaccess (Link): New section.
7384         * modules/gettext (Link): New section.
7385         * modules/iconv (Link): New section.
7386         * modules/lock (Link): New section.
7387         * modules/nanosleep (Link): New section.
7388         * modules/readline (Link): New section.
7389
7390 2007-01-27  Bruno Haible  <bruno@clisp.org>
7391
7392         Enforce the use of gnulib modules for unportable <string.h> functions.
7393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
7394         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
7395         (gl_HEADER_STRING_H_BODY): Require it.
7396         * lib/string_.h: If the gnulib module XYZ is not present, redefine
7397         the symbol XYZ to one that gives a link error.
7398         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
7399         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
7400         * modules/mempcpy (configure.ac): Likewise.
7401         * modules/memrchr (configure.ac): Likewise.
7402         * modules/stpcpy (configure.ac): Likewise.
7403         * modules/stpncpy (configure.ac): Likewise.
7404         * modules/strcase (configure.ac): Likewise.
7405         * modules/strcasestr (configure.ac): Likewise.
7406         * modules/strchrnul (configure.ac): Likewise.
7407         * modules/strdup (configure.ac): Likewise.
7408         * modules/strndup (configure.ac): Likewise.
7409         * modules/strnlen (configure.ac): Likewise.
7410         * modules/strpbrk (configure.ac): Likewise.
7411         * modules/strsep (configure.ac): Likewise.
7412         * modules/strstr (configure.ac): Likewise.
7413         * modules/strtok_r (configure.ac): Likewise.
7414
7415 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
7416
7417         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
7418
7419 2007-01-30  Jim Meyering  <jim@meyering.net>
7420
7421         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
7422
7423 2007-01-29  Bruno Haible  <bruno@clisp.org>
7424
7425         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
7426         * lib/execute.c: Likewise.
7427         * lib/pipe.c: Likewise.
7428         * lib/printf-args.h: Likewise.
7429         * lib/printf-args.c: Likewise.
7430         * lib/printf-parse.c: Likewise.
7431         * lib/vasnprintf.c: Likewise.
7432
7433 2007-01-29  Eric Blake  <ebb9@byu.net>
7434
7435         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
7436         declaration.
7437
7438 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7439
7440         * lib/strptime.h (strptime): Use 'restrict' for args where
7441         POSIX requires this.
7442         * lib/strptime.c (strptime): Likewise.
7443         Change license notice from LGPL to GPL, since gnulib-tool will
7444         change this as needed.
7445         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
7446         defined.
7447         Include "strptime.h" first, to check interface.
7448         Do not #undef _LIBC and _NL_CURRENT.
7449         Do not include <stdlib.h>; no longer needed.
7450         Include "time_r.h" and declare ptime_locale_status
7451         only if _LIBC is not defined.
7452         (__P): Remove unused macro.
7453         (match_string): Bring back glibc version, but use it only if _LIBC
7454         is defined.
7455         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
7456         Remove unnecessary assertion and abort() call.
7457         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
7458         * m4/strptime.m4: Fix serial number comment.
7459         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
7460         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
7461         (Depends-on): Add time_r.
7462
7463 2007-01-29  Bruno Haible  <bruno@clisp.org>
7464
7465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7466         strptime.
7467         * modules/strptime (Depends-on): Add stdbool.
7468         * lib/strptime.h: Include <time.h> always. Add comments.
7469
7470 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
7471
7472         * modules/strptime: New file.
7473         * lib/strptime.h: New file.
7474         * lib/strptime.c: New file.
7475         * m4/strptime.m4: New file.
7476
7477 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7478
7479         * MODULES.html.sh: New module mpsort.
7480         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
7481
7482         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
7483         a circularity problem with HP-UX ia64 reported by Bob Proulx in
7484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
7485         All uses changed.
7486         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
7487         All uses changed.
7488         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
7489         to _Restrict_.
7490         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
7491         the parameter matches the prototype.
7492
7493 2007-01-28  Jim Meyering  <jim@meyering.net>
7494
7495         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
7496         sys/time.h here, reverting that part of the previous patch:
7497         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
7498
7499 2007-01-28  Bruno Haible  <bruno@clisp.org>
7500
7501         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
7502         value of $(SYS_TIME_H).
7503         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
7504         remove it conditionally, too. [added by Jim Meyering]
7505         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
7506         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
7508         GETTIMEOFDAY_REPLACEMENT to 1.
7509
7510 2007-01-28  Bruno Haible  <bruno@clisp.org>
7511
7512         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
7513         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
7514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
7515         Set UNISTD_H instead of UNISTD_H2.
7516         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
7517
7518 2007-01-28  Bruno Haible  <bruno@clisp.org>
7519
7520         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
7521         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
7522
7523 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7524
7525         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
7526         (func_create_testdir): Ensure C locale for `grep' and `tr'
7527         character ranges.
7528         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
7529         ACLOCAL_AMFLAGS parsing state machine.
7530
7531 2007-01-27  Bruno Haible  <bruno@clisp.org>
7532
7533         * modules/unistr/base: Update.
7534
7535 2007-01-27  Bruno Haible  <bruno@clisp.org>
7536
7537         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
7538         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
7539         * modules/unistr/u32-mbtouc-unsafe: Renamed from
7540         modules/unistr/u32-mbtouc.
7541         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
7542         * lib/unistr.h: Update.
7543         * lib/linebreak.c: Update.
7544         * modules/unistr/u32-mbtouc: Renamed from
7545         modules/unistr/u32-mbtouc-safe.
7546         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
7547         * lib/unistr.h: Update.
7548         * lib/unistr/u32-to-u8.c: Update.
7549         * lib/unistr/u32-to-u16.c: Update.
7550
7551 2007-01-27  Bruno Haible  <bruno@clisp.org>
7552
7553         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
7554         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
7555         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
7556         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
7557         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
7558         * modules/unistr/u16-mbtouc-unsafe: Renamed from
7559         modules/unistr/u16-mbtouc.
7560         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
7561         * lib/unistr.h: Update.
7562         * lib/linebreak.c: Update.
7563         * modules/linebreak: Update.
7564         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
7565         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
7566         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
7567         * modules/unistr/u16-mbtouc: Renamed from
7568         modules/unistr/u16-mbtouc-safe.
7569         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
7570         * lib/unistr.h: Update.
7571         * lib/unistr/u16-to-u8.c: Update.
7572         * modules/unistr/u16-to-u8: Update.
7573         * lib/unistr/u16-to-u32.c: Update.
7574         * modules/unistr/u16-to-u32: Update.
7575
7576 2007-01-27  Bruno Haible  <bruno@clisp.org>
7577
7578         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
7579         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
7580         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
7581         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
7582         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
7583         * modules/unistr/u8-mbtouc-unsafe: Renamed from
7584         modules/unistr/u8-mbtouc.
7585         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
7586         * lib/unistr.h: Update.
7587         * lib/striconveh.c: Update.
7588         * modules/striconveh: Update.
7589         * lib/linebreak.c: Update.
7590         * modules/linebreak: Update.
7591         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
7592         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
7593         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
7594         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
7595         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
7596         * lib/unistr.h: Update.
7597         * lib/striconveh.c: Update.
7598         * modules/striconveh: Update.
7599         * lib/unistr/u8-to-u16.c: Update.
7600         * modules/unistr/u8-to-u16: Update.
7601         * lib/unistr/u8-to-u32.c: Update.
7602         * modules/unistr/u8-to-u32: Update.
7603
7604 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7605
7606         Sync from Libtool.
7607         * lib/argz.c: Do not include strings.h nor memory.h, include
7608         string.h unconditionally.  Patch by Simon Josefsson.
7609
7610 2007-01-27  Bruno Haible  <bruno@clisp.org>
7611
7612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
7613         from gl_HEADER_STRING_H_BODY.
7614         (gl_HEADER_STRING_H_BODY): Require it.
7615         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
7616         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
7617         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
7618         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
7619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7620         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
7621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7622         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
7623         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
7624         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
7625         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
7626         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
7627         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
7628         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7629         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7630
7631 2007-01-27  Bruno Haible  <bruno@clisp.org>
7632
7633         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
7634         check_PROGRAMS into noinst_PROGRAMS.
7635         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
7636         check_PROGRAMS in this case.
7637         (func_import): Set for_test to false.
7638         (func_create_testdir): Set for_test to true.
7639
7640 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7641             Bruno Haible  <bruno@clisp.org>
7642
7643         * modules/strcasestr (Files): Remove lib/strcasestr.h.
7644         (Depends-on): Add string.
7645         (Includes): Use <string.h> instead of strcasestr.h.
7646         * modules/string (Makefile.am): Also substitute the value of
7647         REPLACE_STRCASESTR.
7648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
7649         assume strcasestr is declared in <string.h> not <strings.h>. Also
7650         set REPLACE_STRCASESTR.
7651         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
7652         REPLACE_STRCASESTR.
7653         * lib/strcasestr.h: Remove file.
7654         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
7655         * lib/string_.h (strcasestr): New declaration.
7656
7657 2007-01-27  Bruno Haible  <bruno@clisp.org>
7658
7659         * lib/string_.h: Use 'extern'.
7660
7661 2007-01-27  Jim Meyering  <jim@meyering.net>
7662
7663         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
7664         of set-but-not-used local, "q".
7665
7666         * lib/mempcpy.c: Include <config.h> before <string.h>.
7667         This fixes a compilation error on HP-UX, due to the system's
7668         "restrict"-using mempcpy prototype.
7669
7670 2007-01-26  Bruno Haible  <bruno@clisp.org>
7671
7672         Small optimization.
7673         * lib/javacomp.c: Include c-strstr.h.
7674          (is_envjavac_gcj): Use c_strstr instead of strstr.
7675         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
7676
7677 2007-01-26  Bruno Haible  <bruno@clisp.org>
7678
7679         * MODULES.html.sh (Unicode string functions): Add the new modules.
7680
7681         * modules/uniconv/u32-strconv-to-locale: New file.
7682         * lib/uniconv/u32-strconv-to-locale.c: New file.
7683
7684         * modules/uniconv/u16-strconv-to-locale: New file.
7685         * lib/uniconv/u16-strconv-to-locale.c: New file.
7686
7687         * modules/uniconv/u8-strconv-to-locale: New file.
7688         * lib/uniconv/u8-strconv-to-locale.c: New file.
7689
7690         * modules/uniconv/u32-strconv-from-locale: New file.
7691         * lib/uniconv/u32-strconv-from-locale.c: New file.
7692
7693         * modules/uniconv/u16-strconv-from-locale: New file.
7694         * lib/uniconv/u16-strconv-from-locale.c: New file.
7695
7696         * modules/uniconv/u8-strconv-from-locale: New file.
7697         * lib/uniconv/u8-strconv-from-locale.c: New file.
7698
7699         * modules/uniconv/u32-strconv-to-enc: New file.
7700         * lib/uniconv/u32-strconv-to-enc.c: New file.
7701         * modules/uniconv/u32-strconv-to-enc-tests: New file.
7702         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
7703
7704         * modules/uniconv/u16-strconv-to-enc: New file.
7705         * lib/uniconv/u16-strconv-to-enc.c: New file.
7706         * lib/uniconv/u-strconv-to-enc.h: New file.
7707         * modules/uniconv/u16-strconv-to-enc-tests: New file.
7708         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
7709
7710         * modules/uniconv/u8-strconv-to-enc: New file.
7711         * lib/uniconv/u8-strconv-to-enc.c: New file.
7712         * modules/uniconv/u8-strconv-to-enc-tests: New file.
7713         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
7714
7715         * modules/uniconv/u32-strconv-from-enc: New file.
7716         * lib/uniconv/u32-strconv-from-enc.c: New file.
7717         * modules/uniconv/u32-strconv-from-enc-tests: New file.
7718         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
7719
7720         * modules/uniconv/u16-strconv-from-enc: New file.
7721         * lib/uniconv/u16-strconv-from-enc.c: New file.
7722         * modules/uniconv/u16-strconv-from-enc-tests: New file.
7723         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
7724
7725         * modules/uniconv/u8-strconv-from-enc: New file.
7726         * lib/uniconv/u8-strconv-from-enc.c: New file.
7727         * lib/uniconv/u-strconv-from-enc.h: New file.
7728         * modules/uniconv/u8-strconv-from-enc-tests: New file.
7729         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
7730
7731         * modules/uniconv/u32-conv-from-enc: New file.
7732         * lib/uniconv/u32-conv-from-enc.c: New file.
7733         * modules/uniconv/u32-conv-from-enc-tests: New file.
7734         * tests/uniconv/test-u32-conv-from-enc.c: New file.
7735
7736         * modules/uniconv/u16-conv-from-enc: New file.
7737         * lib/uniconv/u16-conv-from-enc.c: New file.
7738         * lib/uniconv/u-conv-from-enc.h: New file.
7739         * modules/uniconv/u16-conv-from-enc-tests: New file.
7740         * tests/uniconv/test-u16-conv-from-enc.c: New file.
7741
7742         * modules/uniconv/u8-conv-from-enc: New file.
7743         * lib/uniconv/u8-conv-from-enc.c: New file.
7744         * modules/uniconv/u8-conv-from-enc-tests: New file.
7745         * tests/uniconv/test-u8-conv-from-enc.c: New file.
7746
7747         * modules/uniconv/base: New file.
7748         * lib/uniconv.h: New file.
7749
7750 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
7751
7752         * doc/gnulib-tool.texi (Initial import): Update to match current
7753         behavior with strdup module.
7754         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
7755         * lib/memmem.h: Remove; all uses removed.  This is now done
7756         by <string.h>.
7757         * lib/mempcpy.h: Likewise.
7758         * lib/memrchr.h: Likewise.
7759         * lib/stpcpy.h: Likewise.
7760         * lib/stpncpy.h: Likewise.
7761         * lib/strcase.h: Likewise.
7762         * lib/strchrnul.h: Likewise.
7763         * lib/strdup.h: Likewise.
7764         * lib/strndup.h: Likewise.
7765         * lib/strnlen.h: Likewise.
7766         * lib/strpbrk.h: Likewise.
7767         * lib/strsep.h: Likewise.
7768         * lib/strstr.h: Likewise.
7769         * lib/strtok_r.h: Likewise.
7770         * lib/string_.h: New file.
7771         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
7772         Rely on <string.h> instead.
7773         * lib/canon-host.c: Likewise.
7774         * lib/chdir-long.c: Likewise.
7775         * lib/concatpath.c: Likewise.
7776         * lib/exclude.c: Likewise.
7777         * lib/fchdir.c: Likewise.
7778         * lib/getaddrinfo.c: Likewise.
7779         * lib/getcwd.c: Likewise.
7780         * lib/getsubopt.c: Likewise.
7781         * lib/glob.c: Likewise.
7782         * lib/hard-locale.c: Likewise.
7783         * lib/iconvme.c: Likewise.
7784         * lib/javacomp.c: Likewise.
7785         * lib/mempcpy.c: Likewise.
7786         * lib/memrchr.c: Likewise.
7787         * lib/regex_internal.h: Likewise.
7788         * lib/stpncpy.c: Likewise.
7789         * lib/strcasecmp.c: Likewise.
7790         * lib/strchrnul.c: Likewise.
7791         * lib/strdup.c: Likewise.
7792         * lib/striconv.c: Likewise.
7793         * lib/striconveh.c: Likewise.
7794         * lib/striconveha.c: Likewise.
7795         * lib/strncasecmp.c: Likewise.
7796         * lib/strndup.c: Likewise.
7797         * lib/strnlen.c: Likewise.
7798         * lib/strsep.c: Likewise.
7799         * lib/strstr.c: Likewise.
7800         * lib/strtok_r.c: Likewise.
7801         * lib/userspec.c: Likewise.
7802         * lib/w32spawn.h: Likewise.
7803         * lib/xstrndup.c: Likewise.
7804         * lib/mountlist.c (strstr): Remove decl.
7805         * m4/string_h.m4: New file.
7806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
7807         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
7808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
7809         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
7810         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
7811         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
7812         Set REPLACE_STRCASECMP if necessary.
7813         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
7814         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
7815         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
7816         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
7817         HAVE_DECL_STRDUP if necessary.
7818         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
7819         since gl_FUNC_STRNDUP does that now.
7820         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
7821         Check for decl here...
7822         (gl_PREREQ_STRNLEN): ... not here.
7823         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
7824         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
7825         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
7826         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
7827         necessary.
7828         * modules/string: New file.
7829         * modules/memmem (Files): Remove special-purpose include file.
7830         (Depends-on): Add string.
7831         (Include): Include <string.h>, not the removed file.
7832         * modules/mempcpy: Likewise.
7833         * modules/memrchr: Likewise.
7834         * modules/stpcpy: Likewise.
7835         * modules/stpncpy: Likewise.
7836         * modules/strcase: Likewise.
7837         * modules/strchrnul: Likewise.
7838         * modules/strdup: Likewise.
7839         * modules/strndup: Likewise.
7840         * modules/strnlen: Likewise.
7841         * modules/strpbrk: Likewise.
7842         * modules/strsep: Likewise.
7843         * modules/strstr: Likewise.
7844         * modules/strtok_r: Likewise.
7845         * tests/test-dirname.c: Don't include "strdup.h", since
7846         <string.h> now suffices.
7847         * tests/test-memmem.c: Don't include "memmem.h", since
7848         <string.h> now suffices.
7849
7850 2007-01-25  Bruno Haible  <bruno@clisp.org>
7851
7852         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
7853         *resultp is 0.
7854
7855         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
7856         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
7857         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
7858         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
7859
7860         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
7861         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
7862         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
7863         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
7864         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
7865         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
7866
7867 2007-01-24  Bruno Haible  <bruno@clisp.org>
7868
7869         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
7870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
7871         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
7872         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
7873         gl_FUNC_FTS_CORE.
7874         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
7875         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
7876         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7877         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
7878         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
7879         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
7880         gl_FUNC_FCHOWNAT.
7881         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
7882         gl_FUNC_STRFTIME.
7883         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
7884         Reported by Ralf Wildenhues.
7885
7886 2007-01-24  Bruno Haible  <bruno@clisp.org>
7887
7888         Drop AC_REQUIRE calls that are redundant with the module dependencies.
7889         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
7890         gl_GETADDRINFO.
7891         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
7892         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
7893         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
7894
7895 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7896
7897         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
7898         Don't use 'exit'; just return from 'main'.
7899         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
7900
7901         * lib/fnmatch_.h: Readjust white space and comments to match
7902         glibc, to avoid spurious diffs.
7903
7904 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7905
7906         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
7907         2004-12-01 change by Jakub Jelinek, since this code won't compile
7908         if !LIBC.  Problem reported by Bob Proulx.
7909
7910 2007-01-23  Bruno Haible  <bruno@clisp.org>
7911
7912         * lib/striconveh.c: Include c-strcaseeq.h.
7913         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
7914         * modules/striconveh (Depends-on): Add c-strcaseeq.
7915
7916 2007-01-23  Bruno Haible  <bruno@clisp.org>
7917
7918         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
7919
7920         * modules/c-strcaseeq: New file.
7921         * lib/c-strcaseeq.h: New file.
7922
7923         * modules/streq: New file.
7924         * lib/streq.h: New file.
7925
7926 2007-01-23  Bruno Haible  <bruno@clisp.org>
7927
7928         * modules/striconveha-tests: New file.
7929         * tests/test-striconveha.c: New file.
7930
7931         * lib/striconveha.h: Include <stdbool.h>.
7932         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
7933         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
7934         (mem_iconveha_notranslit): Renamed from mem_iconveha.
7935         (mem_iconveha): New function.
7936         (str_iconveha_notranslit): Renamed from str_iconveha.
7937         (str_iconveha): New function.
7938         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
7939         c-strcase.
7940
7941 2007-01-23  Bruno Haible  <bruno@clisp.org>
7942
7943         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
7944         encodings without forgiving before trying any encoding with handler.
7945         (str_iconveha): Try all encodings without forgiving before trying any
7946         encoding with handler.
7947
7948 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7949
7950         Import the following changes from libc.
7951
7952         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
7953
7954         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
7955
7956         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
7957
7958         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
7959         normal_bracket label.
7960
7961         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7962
7963         [BZ #361]
7964         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
7965         to normal_bracket after fetching the next character.
7966
7967 2007-01-22  Bruno Haible  <bruno@clisp.org>
7968
7969         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
7970         argument.
7971         * lib/striconveh.c (iconv_carefully_1): New function.
7972         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
7973         argument.
7974         (str_cd_iconveh): Update.
7975         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
7976         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
7977         * tests/test-striconveh.c (MAGIC): New macro.
7978         (new_offsets): New function.
7979         (main): Test call with and without offsets.
7980
7981 2007-01-22  Bruno Haible  <bruno@clisp.org>
7982
7983         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
7984         * modules/sys_select (Makefile.am): Likewise.
7985         * modules/sys_socket (Makefile.am): Likewise.
7986         * modules/sys_time (Makefile.am): Likewise.
7987
7988 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
7989
7990         * modules/gettimeofday (License): Change from GPL to LGPL, since
7991         gettimeofday is a library function.
7992
7993 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7994
7995         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
7996
7997 2007-01-21  Bruno Haible  <bruno@clisp.org>
7998
7999         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
8000
8001 2007-01-21  Bruno Haible  <bruno@clisp.org>
8002
8003         * modules/striconveha: New file.
8004         * lib/striconveha.h: New file.
8005         * lib/striconveha.c: New file.
8006         * MODULES.html.sh (Internationalization functions): Add striconveha.
8007         * lib/striconv.c (str_iconv): Optimize the case of an empty input
8008         string.
8009         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
8010
8011 2007-01-21  Bruno Haible  <bruno@clisp.org>
8012
8013         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
8014         * lib/striconveh.c (str_iconveh): Likewise.
8015
8016 2007-01-21  Bruno Haible  <bruno@clisp.org>
8017
8018         * lib/striconveh.h (mem_iconveh): New declaration.
8019         * lib/striconveh.c (mem_iconveh): New function.
8020         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
8021
8022 2007-01-21  Bruno Haible  <bruno@clisp.org>
8023
8024         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
8025
8026         * lib/striconveh.h (mem_cd_iconveh): Change specification.
8027         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
8028         original result buffer.
8029         (str_cd_iconveh): Update.
8030         * tests/test-striconveh.c (main): Update.
8031
8032         * lib/striconv.h (mem_cd_iconv): Change specification.
8033         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
8034         result buffer.
8035         (str_cd_iconv): Update.
8036         * tests/test-striconv.c (main): Update.
8037
8038 2007-01-21  Bruno Haible  <bruno@clisp.org>
8039
8040         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
8041
8042 2007-01-20  Jim Meyering  <jim@meyering.net>
8043
8044         * lib/userspec.c (parse_with_separator): If a user or group string
8045         starts with "+", skip the corresponding name-to-ID look-up, since
8046         such a look-up must fail: user and group names may not include "+".
8047
8048 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8049
8050         * lib/poll.c: Include sys/time.h and time.h unconditionally,
8051         since we now assume the sys_time module.
8052         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
8053         check for sys/time.h; no longer needed.
8054         * modules/poll (Depends-on): Depend on sys_time.
8055
8056 2007-01-18  Bruno Haible  <bruno@clisp.org>
8057
8058         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
8059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
8060
8061         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
8062         gettimeofday.
8063
8064         * tests/test-gettimeofday.c: Include <time.h>.
8065         (dummy): Remove variable.
8066
8067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
8068         gl_HEADER_SYS_TIME_H.
8069         (gl_HEADER_SYS_TIME_H): New macro.
8070
8071         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
8072         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8074         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
8075         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
8077         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
8078         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8079         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
8080         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
8081         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8082
8083         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
8084         last change; it caused a compilation error when cross-compiling to
8085         Cygwin.
8086
8087 2007-01-18  Jim Meyering  <jim@meyering.net>
8088
8089         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
8090         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
8091         than the race-prone "test -d sys || mkdir sys".
8092         (configure.ac): Use AC_PROG_MKDIR_P.
8093         * modules/sys_select: Likewise.
8094         * modules/sys_socket: Likewise.
8095         * modules/sys_time: Likewise.
8096
8097 2007-01-18  Eric Blake  <ebb9@byu.net>
8098
8099         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
8100         replace gettimeofday.
8101         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
8102         name, to avoid infinite recursion.
8103
8104 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
8105
8106         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
8107         module sys_time.
8108         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
8109         assume timespec.h defines struct timeval.
8110         * lib/settime.c: Likewise.
8111         * lib/utimens.c: Likewise.
8112         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
8113         since we now assume the gettimeofday module.
8114         * lib/tempname.c (__gen_tempname): Likewise.
8115         * lib/gettimeofday.h: Remove.
8116         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
8117         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
8118         Include <time.h>, for 'time()'.
8119         (localtime_buffer_addr): Also use this workaround if
8120         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
8121         to simplify the uses.  All uses changed.
8122         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
8123         that #undef is inside {}, and 'const' follows type name consistently.
8124         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
8125         (gettimeofday): Do not use the maximum possible value for
8126         tv->tv_usec, since that might break usages other than ls.c.
8127         Instead, we'll leave ls.c alone.  This undoes today's patch
8128         by Bruno.  Add a compile-time warning for 1s-clock resolution;
8129         we've never observed the problem but might as well keep the
8130         canary.
8131         * lib/nanosleep.c: Include timespec.h first, for interface check.
8132         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
8133         now assume the sys_time module.
8134         * lib/tempname.c: Likewise.
8135         * lib/timespec.h: Likewise.
8136         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
8137         needed.
8138         * lib/strftime.c: Likewise.
8139         * lib/timespec.h: Likewise.
8140         * lib/posixtm.c: Include posixtm.h first, for interface check.
8141         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
8142         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
8143         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
8144         * lib/sys_time_.h: New file.
8145         * lib/timespec.h (struct timespec): Use long int, not long.
8146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
8147         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
8148         Remove obsolescent call to AC_HEADER_TIME.
8149         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8151         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
8152         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
8153         Likewise.
8154         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
8155         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
8156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
8157         into the sys_time module.  Check for gettimeofday just once.
8158         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
8159         for gettimeofday signature to just check the signature.  Merely
8160         compile it, since linking doesn't test signature.  Improve test for
8161         whether gettimeofday.o is actually needed.
8162         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
8163         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
8164         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
8165         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8166         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
8167         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
8168         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
8169         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
8170         than worrying about sys/time.h.
8171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
8172         Don't bother worrying about TIME_WITH_SYS_TIME.
8173         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
8174         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
8175         * m4/sys_time_h.m4: New file.
8176         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
8177         Don't include sys/time.h.  Return from main rather than exiting.
8178         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
8179         all uses changed.
8180         * modules/gethrxtime (Depends-on): Add sys_time.
8181         * modules/gettime (Depends-on): Likewise.
8182         * modules/gettimeofday (Depends-on): Likewise.
8183         * modules/nanosleep (Depends-on): Likewise.
8184         * modules/settime (Depends-on): Likewise.
8185         * modules/tempname (Depends-on): Likewise.
8186         * modules/utimens (Depends-on): Likewise.
8187         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
8188         (Include:) Change back to <sys/time.h>.
8189         (Maintainer:) Add self.
8190         * modules/sys_time: New file.
8191         * modules/tempname (Depends-on): Add gettimeofday.
8192         * tests/test-gettimeofday.c: Include <sys/time.h>
8193         rather than gettimeofday.h.
8194
8195 2007-01-17  Bruno Haible  <bruno@clisp.org>
8196
8197         * gnulib-tool (func_get_license): Revert last patch. Instead, let
8198         the license default to GPL.
8199         (func_create_testdir): Don't complain if a module is LGPL and its
8200         tests module depends on GPLed modules.
8201
8202 2007-01-17  Bruno Haible  <bruno@clisp.org>
8203
8204         * lib/gettimeofday.c (gettimeofday): Add code for the case
8205         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
8206         maximum possible value for tv->tv_usec, rather than the minimum one.
8207
8208 2005-10-08  Martin Lambers  <marlam@marlam.de>
8209 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8210 2007-01-16  Bruno Haible  <bruno@clisp.org>
8211
8212         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
8213         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
8214         gl_FUNC_GETTIMEOFDAY.
8215         (Include): Add gettimeofday.h.
8216         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
8217         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
8218         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
8219         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
8220         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
8221         * lib/gettimeofday.h: New file.
8222         * lib/gettimeofday.c: Include <sys/timeb.h>.
8223         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
8224         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8225         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
8226         fall back on time().
8227
8228         * tests/test-gettimeofday.c: New file.
8229         * modules/gettimeofday-tests: New file.
8230
8231 2007-01-16  Eric Blake  <ebb9@byu.net>
8232
8233         * modules/fnmatch (Depends-on): Depend on wchar.
8234         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
8235         * m4/fnmatch.m4: Likewise.
8236         * modules/mbchar (Makefile.am): Assume <wchar.h>.
8237         * m4/mbchar.m4: Likewise.
8238         * modules/mbswidth (Depends-on): Depend on wchar.
8239         * lib/mbswidth.c: Assume <wchar.h>.
8240         * m4/mbswidth.m4: Likewise.
8241         * modules/quotearg (Depends-on): Depend on wchar.
8242         * lib/quotearg.c: Assume <wchar.h>.
8243         * m4/quotearg.m4: Likewise.
8244         * modules/regex (Depends-on): Depend on wchar.
8245         * lib/regex_internal.h: Assume <wchar.h>.
8246         * m4/regex.m4: Likewise.
8247         * modules/stdint (Depends-on): Depend on wchar.
8248         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
8249         * m4/stdint.m4: Likewise.
8250         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
8251         * modules/strftime (Depends-on): Depend on wchar.
8252         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
8253         * modules/strtol (Depends-on): Depend on wchar.
8254         * lib/strtol.c: Assume <wchar.h>.
8255         * modules/wcwidth (Depends-on): Depend on wchar.
8256         * lib/wcwidth.h: Assume <wchar.h>.
8257         * m4/wcwidth.m4: Likewise.
8258
8259 2007-01-16  Bruno Haible  <bruno@clisp.org>
8260
8261         * modules/csharpexec-script: New, created from...
8262         * modules/csharpexec: ... this.
8263
8264 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
8265
8266         * modules/javaexec-script: New, created from...
8267         * modules/javaexec: ... this.
8268
8269 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8270
8271         * modules/poll (Dependencies): Add sys_select.
8272
8273 2007-01-15  Jim Meyering  <jim@meyering.net>
8274
8275         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
8276         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
8277         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
8278         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
8279
8280 2007-01-15  Bruno Haible  <bruno@clisp.org>
8281
8282         * modules/striconveh: New file.
8283         * lib/striconveh.h: New file.
8284         * lib/striconveh.c: New file.
8285         * MODULES.html.sh (Internationalization functions): Add striconveh.
8286
8287         * modules/striconveh-tests: New file.
8288         * tests/test-striconveh.c: New file.
8289
8290 2007-01-15  Bruno Haible  <bruno@clisp.org>
8291
8292         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
8293         not from GNU libiconv or GNU libc.
8294
8295 2007-01-15  Bruno Haible  <bruno@clisp.org>
8296
8297         * doc/gnulib-intro.texi (Copyright): Explain the different license
8298         terms for module descriptions, autoconf macros, tests, documentation.
8299
8300 2007-01-14  Bruno Haible  <bruno@clisp.org>
8301
8302         * modules/striconv-tests: New file.
8303         * tests/test-striconv.c: New file.
8304
8305 2007-01-14  Bruno Haible  <bruno@clisp.org>
8306
8307         * modules/iconv-tests: New file.
8308         * tests/test-iconv.c: New file.
8309
8310 2007-01-14  Bruno Haible  <bruno@clisp.org>
8311
8312         * gnulib-tool (func_get_license): For test modules, use the license of
8313         the main module.
8314
8315 2007-01-14  Bruno Haible  <bruno@clisp.org>
8316
8317         * modules/iconv (Include): Clarify that <iconv.h> can only be included
8318         if iconv is found to exist.
8319
8320 2007-01-14  Bruno Haible  <bruno@clisp.org>
8321
8322         * modules/c-ctype-tests: New file.
8323         * tests/test-c-ctype.c: New file.
8324
8325 2007-01-14  Bruno Haible  <bruno@clisp.org>
8326
8327         * modules/binary-io-tests: New file.
8328         * tests/test-binary-io.sh: New file.
8329         * tests/test-binary-io.c: New file.
8330
8331 2007-01-14  Bruno Haible  <bruno@clisp.org>
8332
8333         * modules/array-oset-tests: New file.
8334         * tests/test-array_oset.c: New file.
8335
8336 2007-01-14  Bruno Haible  <bruno@clisp.org>
8337
8338         * modules/array-list-tests: New file.
8339         * tests/test-array_list.c: New file.
8340
8341 2007-01-14  Bruno Haible  <bruno@clisp.org>
8342
8343         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
8344         and make.
8345         Reported by Simon Josefsson in
8346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
8347
8348 2007-01-14  Bruno Haible  <bruno@clisp.org>
8349
8350         * modules/allocsa-tests: New file.
8351         * tests/test-allocsa.c: New file.
8352
8353 2007-01-14  Bruno Haible  <bruno@clisp.org>
8354
8355         * modules/fchdir (Depends-on): Add absolute-header.
8356         * modules/unistd (Depends-on): Likewise.
8357
8358 2006-12-30  Bruno Haible  <bruno@clisp.org>
8359
8360         * modules/fchdir: New file.
8361         * modules/unistd (Files): Add lib/unistd_.h.
8362         (Makefile.am): Generate unistd.h from unistd_.h.
8363         * lib/fchdir.c: New file.
8364         * lib/dirent_.h: New file.
8365         * lib/unistd_.h: New file.
8366         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
8367         * m4/fchdir.m4: New file.
8368         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
8369         (gl_HEADER_UNISTD): Invoke it.
8370         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
8371         function.
8372         * lib/backupfile.c (opendir, closedir): Undefine.
8373         * lib/chown.c (open, close): Undefine.
8374         * lib/clean-temp.c (open, close): Undefine.
8375         * lib/copy-file.c (open, close): Undefine.
8376         * lib/execute.c (open, close): Undefine.
8377         * lib/fsusage.c (open, close): Undefine.
8378         * lib/gc-gnulib.c (open, close): Undefine.
8379         * lib/getcwd.c (opendir, closedir): Undefine.
8380         * lib/glob.c (opendir, closedir): Undefine.
8381         * lib/javacomp.c (open, close): Undefine.
8382         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
8383         * lib/openat-proc.c (open, close): Undefine.
8384         * lib/pagealign_alloc.c (open, close): Undefine.
8385         * lib/pipe.c (open, close): Undefine.
8386         * lib/progreloc.c (open, close): Undefine.
8387         * lib/savedir.c (opendir, closedir): Undefine.
8388         * lib/utime.c (open, close): Undefine.
8389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
8390
8391 2007-01-10  Bruno Haible  <bruno@clisp.org>
8392
8393         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
8394
8395 2007-01-12  Eric Blake  <ebb9@byu.net>
8396
8397         Provide a robust <wchar.h>.  Further simplifications are now
8398         possible in other modules, but not included here.
8399         * modules/wchar: New module.
8400         * m4/wchar.m4: New file.
8401         * lib/wchar_.h: Likewise.
8402         * modules/mbchar (Depends-on): Depend on wchar, as the first use
8403         of the new module.
8404         * MODULES.html.sh (Extended multibyte and wide character utilities):
8405         New section.
8406
8407 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
8408
8409         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
8410         to a reasonable default for memory allocation.
8411         (xreadlink): Don't allocate a huge buffer, to work around a buggy
8412         file system that reports garbage st_size values for symlinks.
8413         Problem reported by Liyang Hu.
8414
8415 2007-01-11  Simon Josefsson  <simon@josefsson.org>
8416
8417         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
8418         Emacs .#* auto-save files).
8419
8420 2007-01-11  Bruno Haible  <bruno@clisp.org>
8421
8422         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
8423         directory.
8424
8425 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8426
8427         Use @...@ consistently in lib/wctype_.h.
8428         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
8429         on it being set to 1 or 0.
8430         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
8431         go back to AC_SUBSTing it.
8432         * modules/wctype (Makefile.am): Undo previous change.
8433
8434 2007-01-10  Eric Blake  <ebb9@byu.net>
8435
8436         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
8437         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
8438         * modules/wctype (Makefile.am): Likewise.
8439         Reported by Chris McGuire.
8440
8441 2007-01-10  Jim Meyering  <jim@meyering.net>
8442
8443         fts.c: a small readability/maintainability improvement
8444         * lib/fts.c (fts_read): Make this code slightly more readable and
8445         maintainable by hoisting the "sp->fts_cur = p" assignments to
8446         immediately follow the statements that set P.  Derived from
8447         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
8448
8449 2007-01-10  Eric Blake  <ebb9@byu.net>
8450
8451         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
8452         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
8453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8454         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8455         Reported by Chris McGuire.
8456
8457 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8458
8459         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
8460         in sed script.
8461
8462 2007-01-09  Bruno Haible  <bruno@clisp.org>
8463
8464         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
8465         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
8466         variables.
8467         (func_module): Use them.
8468
8469 2007-01-09  Bruno Haible  <bruno@clisp.org>
8470
8471         * modules/unistr/base: New file.
8472         * lib/unistr.h: New file.
8473
8474         * modules/unistr/u8-to-u16: New file.
8475         * lib/unistr/u8-to-u16.c: New file.
8476
8477         * modules/unistr/u8-to-u32: New file.
8478         * lib/unistr/u8-to-u32.c: New file.
8479
8480         * modules/unistr/u16-to-u8: New file.
8481         * lib/unistr/u16-to-u8.c: New file.
8482
8483         * modules/unistr/u16-to-u32: New file.
8484         * lib/unistr/u16-to-u32.c: New file.
8485
8486         * modules/unistr/u32-to-u8: New file.
8487         * lib/unistr/u32-to-u8.c: New file.
8488
8489         * modules/unistr/u32-to-u16: New file.
8490         * lib/unistr/u32-to-u16.c: New file.
8491
8492         * modules/unistr/u8-check: New file.
8493         * modules/unistr/u16-check: New file.
8494         * modules/unistr/u32-check: New file.
8495         * lib/unistr/u8-check.c: New file.
8496         * lib/unistr/u16-check.c: New file.
8497         * lib/unistr/u32-check.c: New file.
8498
8499         * modules/unistr/u8-chr: New file.
8500         * modules/unistr/u16-chr: New file.
8501         * modules/unistr/u32-chr: New file.
8502         * lib/unistr/u8-chr.c: New file.
8503         * lib/unistr/u16-chr.c: New file.
8504         * lib/unistr/u32-chr.c: New file.
8505
8506         * modules/unistr/u8-cmp: New file.
8507         * modules/unistr/u16-cmp: New file.
8508         * modules/unistr/u32-cmp: New file.
8509         * lib/unistr/u8-cmp.c: New file.
8510         * lib/unistr/u16-cmp.c: New file.
8511         * lib/unistr/u32-cmp.c: New file.
8512
8513         * modules/unistr/u8-cpy: New file.
8514         * modules/unistr/u16-cpy: New file.
8515         * modules/unistr/u32-cpy: New file.
8516         * lib/unistr/u8-cpy.c: New file.
8517         * lib/unistr/u16-cpy.c: New file.
8518         * lib/unistr/u32-cpy.c: New file.
8519         * lib/unistr/u-cpy.h: New file.
8520
8521         * modules/unistr/u8-cpy-alloc: New file.
8522         * modules/unistr/u16-cpy-alloc: New file.
8523         * modules/unistr/u32-cpy-alloc: New file.
8524         * lib/unistr/u8-cpy-alloc.c: New file.
8525         * lib/unistr/u16-cpy-alloc.c: New file.
8526         * lib/unistr/u32-cpy-alloc.c: New file.
8527         * lib/unistr/u-cpy-alloc.h: New file.
8528
8529         * modules/unistr/u8-endswith: New file.
8530         * modules/unistr/u16-endswith: New file.
8531         * modules/unistr/u32-endswith: New file.
8532         * lib/unistr/u8-endswith.c: New file.
8533         * lib/unistr/u16-endswith.c: New file.
8534         * lib/unistr/u32-endswith.c: New file.
8535         * lib/unistr/u-endswith.h: New file.
8536
8537         * modules/unistr/u8-mblen: New file.
8538         * modules/unistr/u16-mblen: New file.
8539         * modules/unistr/u32-mblen: New file.
8540         * lib/unistr/u8-mblen.c: New file.
8541         * lib/unistr/u16-mblen.c: New file.
8542         * lib/unistr/u32-mblen.c: New file.
8543
8544         * modules/unistr/u8-mbtouc: New file.
8545         * modules/unistr/u16-mbtouc: New file.
8546         * modules/unistr/u32-mbtouc: New file.
8547         * lib/unistr/u8-mbtouc.c: New file.
8548         * lib/unistr/u16-mbtouc.c: New file.
8549         * lib/unistr/u32-mbtouc.c: New file.
8550
8551         * modules/unistr/u8-mbtouc-safe: New file.
8552         * modules/unistr/u16-mbtouc-safe: New file.
8553         * modules/unistr/u32-mbtouc-safe: New file.
8554         * lib/unistr/u8-mbtouc-safe.c: New file.
8555         * lib/unistr/u16-mbtouc-safe.c: New file.
8556         * lib/unistr/u32-mbtouc-safe.c: New file.
8557
8558         * modules/unistr/u8-move: New file.
8559         * modules/unistr/u16-move: New file.
8560         * modules/unistr/u32-move: New file.
8561         * lib/unistr/u8-move.c: New file.
8562         * lib/unistr/u16-move.c: New file.
8563         * lib/unistr/u32-move.c: New file.
8564         * lib/unistr/u-move.h: New file.
8565
8566         * modules/unistr/u8-next: New file.
8567         * modules/unistr/u16-next: New file.
8568         * modules/unistr/u32-next: New file.
8569         * lib/unistr/u8-next.c: New file.
8570         * lib/unistr/u16-next.c: New file.
8571         * lib/unistr/u32-next.c: New file.
8572
8573         * modules/unistr/u8-prev: New file.
8574         * modules/unistr/u16-prev: New file.
8575         * modules/unistr/u32-prev: New file.
8576         * lib/unistr/u8-prev.c: New file.
8577         * lib/unistr/u16-prev.c: New file.
8578         * lib/unistr/u32-prev.c: New file.
8579
8580         * modules/unistr/u8-set: New file.
8581         * modules/unistr/u16-set: New file.
8582         * modules/unistr/u32-set: New file.
8583         * lib/unistr/u8-set.c: New file.
8584         * lib/unistr/u16-set.c: New file.
8585         * lib/unistr/u32-set.c: New file.
8586         * lib/unistr/u-set.h: New file.
8587
8588         * modules/unistr/u8-startswith: New file.
8589         * modules/unistr/u16-startswith: New file.
8590         * modules/unistr/u32-startswith: New file.
8591         * lib/unistr/u8-startswith.c: New file.
8592         * lib/unistr/u16-startswith.c: New file.
8593         * lib/unistr/u32-startswith.c: New file.
8594         * lib/unistr/u-startswith.h: New file.
8595
8596         * modules/unistr/u8-stpcpy: New file.
8597         * modules/unistr/u16-stpcpy: New file.
8598         * modules/unistr/u32-stpcpy: New file.
8599         * lib/unistr/u8-stpcpy.c: New file.
8600         * lib/unistr/u16-stpcpy.c: New file.
8601         * lib/unistr/u32-stpcpy.c: New file.
8602         * lib/unistr/u-stpcpy.h: New file.
8603
8604         * modules/unistr/u8-stpncpy: New file.
8605         * modules/unistr/u16-stpncpy: New file.
8606         * modules/unistr/u32-stpncpy: New file.
8607         * lib/unistr/u8-stpncpy.c: New file.
8608         * lib/unistr/u16-stpncpy.c: New file.
8609         * lib/unistr/u32-stpncpy.c: New file.
8610         * lib/unistr/u-stpncpy.h: New file.
8611
8612         * modules/unistr/u8-strcat: New file.
8613         * modules/unistr/u16-strcat: New file.
8614         * modules/unistr/u32-strcat: New file.
8615         * lib/unistr/u8-strcat.c: New file.
8616         * lib/unistr/u16-strcat.c: New file.
8617         * lib/unistr/u32-strcat.c: New file.
8618         * lib/unistr/u-strcat.h: New file.
8619
8620         * modules/unistr/u8-strchr: New file.
8621         * modules/unistr/u16-strchr: New file.
8622         * modules/unistr/u32-strchr: New file.
8623         * lib/unistr/u8-strchr.c: New file.
8624         * lib/unistr/u16-strchr.c: New file.
8625         * lib/unistr/u32-strchr.c: New file.
8626
8627         * modules/unistr/u8-strcmp: New file.
8628         * modules/unistr/u16-strcmp: New file.
8629         * modules/unistr/u32-strcmp: New file.
8630         * lib/unistr/u8-strcmp.c: New file.
8631         * lib/unistr/u16-strcmp.c: New file.
8632         * lib/unistr/u32-strcmp.c: New file.
8633
8634         * modules/unistr/u8-strcpy: New file.
8635         * modules/unistr/u16-strcpy: New file.
8636         * modules/unistr/u32-strcpy: New file.
8637         * lib/unistr/u8-strcpy.c: New file.
8638         * lib/unistr/u16-strcpy.c: New file.
8639         * lib/unistr/u32-strcpy.c: New file.
8640         * lib/unistr/u-strcpy.h: New file.
8641
8642         * modules/unistr/u8-strcspn: New file.
8643         * modules/unistr/u16-strcspn: New file.
8644         * modules/unistr/u32-strcspn: New file.
8645         * lib/unistr/u8-strcspn.c: New file.
8646         * lib/unistr/u16-strcspn.c: New file.
8647         * lib/unistr/u32-strcspn.c: New file.
8648         * lib/unistr/u-strcspn.h: New file.
8649
8650         * modules/unistr/u8-strdup: New file.
8651         * modules/unistr/u16-strdup: New file.
8652         * modules/unistr/u32-strdup: New file.
8653         * lib/unistr/u8-strdup.c: New file.
8654         * lib/unistr/u16-strdup.c: New file.
8655         * lib/unistr/u32-strdup.c: New file.
8656         * lib/unistr/u-strdup.h: New file.
8657
8658         * modules/unistr/u8-strlen: New file.
8659         * modules/unistr/u16-strlen: New file.
8660         * modules/unistr/u32-strlen: New file.
8661         * lib/unistr/u8-strlen.c: New file.
8662         * lib/unistr/u16-strlen.c: New file.
8663         * lib/unistr/u32-strlen.c: New file.
8664         * lib/unistr/u-strlen.h: New file.
8665
8666         * modules/unistr/u8-strmblen: New file.
8667         * modules/unistr/u16-strmblen: New file.
8668         * modules/unistr/u32-strmblen: New file.
8669         * lib/unistr/u8-strmblen.c: New file.
8670         * lib/unistr/u16-strmblen.c: New file.
8671         * lib/unistr/u32-strmblen.c: New file.
8672
8673         * modules/unistr/u8-strmbtouc: New file.
8674         * modules/unistr/u16-strmbtouc: New file.
8675         * modules/unistr/u32-strmbtouc: New file.
8676         * lib/unistr/u8-strmbtouc.c: New file.
8677         * lib/unistr/u16-strmbtouc.c: New file.
8678         * lib/unistr/u32-strmbtouc.c: New file.
8679
8680         * modules/unistr/u8-strncat: New file.
8681         * modules/unistr/u16-strncat: New file.
8682         * modules/unistr/u32-strncat: New file.
8683         * lib/unistr/u8-strncat.c: New file.
8684         * lib/unistr/u16-strncat.c: New file.
8685         * lib/unistr/u32-strncat.c: New file.
8686         * lib/unistr/u-strncat.h: New file.
8687
8688         * modules/unistr/u8-strncmp: New file.
8689         * modules/unistr/u16-strncmp: New file.
8690         * modules/unistr/u32-strncmp: New file.
8691         * lib/unistr/u8-strncmp.c: New file.
8692         * lib/unistr/u16-strncmp.c: New file.
8693         * lib/unistr/u32-strncmp.c: New file.
8694
8695         * modules/unistr/u8-strncpy: New file.
8696         * modules/unistr/u16-strncpy: New file.
8697         * modules/unistr/u32-strncpy: New file.
8698         * lib/unistr/u8-strncpy.c: New file.
8699         * lib/unistr/u16-strncpy.c: New file.
8700         * lib/unistr/u32-strncpy.c: New file.
8701         * lib/unistr/u-strncpy.h: New file.
8702
8703         * modules/unistr/u8-strnlen: New file.
8704         * modules/unistr/u16-strnlen: New file.
8705         * modules/unistr/u32-strnlen: New file.
8706         * lib/unistr/u8-strnlen.c: New file.
8707         * lib/unistr/u16-strnlen.c: New file.
8708         * lib/unistr/u32-strnlen.c: New file.
8709         * lib/unistr/u-strnlen.h: New file.
8710
8711         * modules/unistr/u8-strpbrk: New file.
8712         * modules/unistr/u16-strpbrk: New file.
8713         * modules/unistr/u32-strpbrk: New file.
8714         * lib/unistr/u8-strpbrk.c: New file.
8715         * lib/unistr/u16-strpbrk.c: New file.
8716         * lib/unistr/u32-strpbrk.c: New file.
8717         * lib/unistr/u-strpbrk.h: New file.
8718
8719         * modules/unistr/u8-strrchr: New file.
8720         * modules/unistr/u16-strrchr: New file.
8721         * modules/unistr/u32-strrchr: New file.
8722         * lib/unistr/u8-strrchr.c: New file.
8723         * lib/unistr/u16-strrchr.c: New file.
8724         * lib/unistr/u32-strrchr.c: New file.
8725
8726         * modules/unistr/u8-strspn: New file.
8727         * modules/unistr/u16-strspn: New file.
8728         * modules/unistr/u32-strspn: New file.
8729         * lib/unistr/u8-strspn.c: New file.
8730         * lib/unistr/u16-strspn.c: New file.
8731         * lib/unistr/u32-strspn.c: New file.
8732         * lib/unistr/u-strspn.h: New file.
8733
8734         * modules/unistr/u8-strstr: New file.
8735         * modules/unistr/u16-strstr: New file.
8736         * modules/unistr/u32-strstr: New file.
8737         * lib/unistr/u8-strstr.c: New file.
8738         * lib/unistr/u16-strstr.c: New file.
8739         * lib/unistr/u32-strstr.c: New file.
8740         * lib/unistr/u-strstr.h: New file.
8741
8742         * modules/unistr/u8-strtok: New file.
8743         * modules/unistr/u16-strtok: New file.
8744         * modules/unistr/u32-strtok: New file.
8745         * lib/unistr/u8-strtok.c: New file.
8746         * lib/unistr/u16-strtok.c: New file.
8747         * lib/unistr/u32-strtok.c: New file.
8748         * lib/unistr/u-strtok.h: New file.
8749
8750         * modules/unistr/u8-uctomb: New file.
8751         * modules/unistr/u16-uctomb: New file.
8752         * modules/unistr/u32-uctomb: New file.
8753         * lib/unistr/u8-uctomb.c: New file.
8754         * lib/unistr/u16-uctomb.c: New file.
8755         * lib/unistr/u32-uctomb.c: New file.
8756
8757         * MODULES.html.sh (Unicode string functions): Add the new modules.
8758
8759 2007-01-08  Bruno Haible  <bruno@clisp.org>
8760
8761         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
8762         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
8763         subdirectories.
8764
8765 2007-01-08  Karl Berry  <karl@gnu.org>
8766
8767         * doc/error.texi: mention that main() fns must set program_name
8768         when progname is used.
8769
8770 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
8771
8772         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
8773         WCTYPE_H is empty, for the benefit of builds from non-distclean
8774         directories.  Problem reported by Eric Blake in
8775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
8776
8777 2007-01-08  Bruno Haible  <bruno@clisp.org>
8778
8779         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
8780         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
8781         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
8782         PROVIDE_CANONICALIZE_FILENAME_MODE.
8783         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
8784
8785 2007-01-08  Bruno Haible  <bruno@clisp.org>
8786
8787         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
8788         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
8789         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
8790         * lib/fts.c: Likewise.
8791         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
8792
8793 2006-12-25  Bruno Haible  <bruno@clisp.org>
8794
8795         * modules/utf8-ucs4-safe: New file.
8796         * lib/utf8-ucs4-safe.h: New file.
8797         * lib/unistr/utf8-ucs4-safe.c: New file.
8798
8799         * modules/utf16-ucs4-safe: New file.
8800         * lib/utf16-ucs4-safe.h: New file.
8801         * lib/unistr/utf16-ucs4-safe.c: New file.
8802
8803         * MODULES.html.sh (Unicode string functions): Add the new modules.
8804
8805 2007-01-08  Bruno Haible  <bruno@clisp.org>
8806
8807         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
8808         (Depends-on): Add unitypes.
8809         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8810         (u8_mbtouc_aux): Move out to separate file.
8811         (u8_mbtouc): Use ucs4_t, uint8_t types.
8812         * lib/unistr/utf8-ucs4.c: New file.
8813
8814         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
8815         (Depends-on): Add unitypes.
8816         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8817         (u16_mbtouc_aux): Move out to separate file.
8818         (u16_mbtouc): Use ucs4_t, uint16_t types.
8819         * lib/unistr/utf16-ucs4.c: New file.
8820
8821         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
8822         (Depends-on): Add unitypes.
8823         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
8824         (u8_uctomb_aux): Move out to separate file.
8825         (u8_uctomb): Use ucs4_t, uint8_t types.
8826         * lib/unistr/ucs4-utf8.c: New file.
8827
8828         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
8829         (Depends-on): Add unitypes.
8830         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
8831         (u16_uctomb_aux): Move out to separate file.
8832         (u16_uctomb): Use ucs4_t, uint16_t types.
8833         * lib/unistr/ucs4-utf16.c: New file.
8834
8835 2006-12-25  Bruno Haible  <bruno@clisp.org>
8836
8837         * modules/unitypes: New file.
8838         * lib/unitypes.h: New file.
8839         * MODULES.html.sh (func_all_modules): New section "Unicode string
8840         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
8841         this section. Add unitypes.
8842
8843 2007-01-08  Bruno Haible  <bruno@clisp.org>
8844
8845         Avoid variable names that conflict with those from libtool.
8846         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
8847         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
8848         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
8849         library_names_spec to acl_library_names_spec, hardcode_* to
8850         acl_hardcode_*.
8851         Reported by Ralf Wildenhues.
8852
8853 2007-01-08  Bruno Haible  <bruno@clisp.org>
8854
8855         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
8856         definition.
8857         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
8858         definition.
8859         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
8860         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
8861         definition.
8862         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
8863         definition.
8864         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
8865         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
8866         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
8867         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
8868         definition.
8869         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
8870         definition.
8871         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
8872         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
8873         GC_USE_<algorithm>.
8874         * lib/gc-libgcrypt.c: Likewise.
8875         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
8876         * modules/gc-arctwo (configure.ac): Likewise.
8877         * modules/gc-des (configure.ac): Likewise.
8878         * modules/gc-hmac-md5 (configure.ac): Likewise.
8879         * modules/gc-hmac-sha1 (configure.ac): Likewise.
8880         * modules/gc-md2 (configure.ac): Likewise.
8881         * modules/gc-md4 (configure.ac): Likewise.
8882         * modules/gc-md5 (configure.ac): Likewise.
8883         * modules/gc-random (configure.ac): Likewise.
8884         * modules/gc-rijndael (configure.ac): Likewise.
8885         * modules/gc-sha1 (configure.ac): Likewise.
8886
8887 2007-01-08  Bruno Haible  <bruno@clisp.org>
8888
8889         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
8890         macro definition.
8891         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
8892         definition.
8893         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
8894         definition.
8895         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
8896         * modules/fcntl-safer (configure.ac): Likewise.
8897         * modules/fopen-safer (configure.ac): Likewise.
8898         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
8899         GNULIB_FWRITEERROR macro definition.
8900
8901 2007-01-08  Bruno Haible  <bruno@clisp.org>
8902
8903         * m4/gnulib-common.m4: New file.
8904         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
8905         (func_get_filelist): Add m4/gnulib-common.m4.
8906
8907 2007-01-08  Bruno Haible  <bruno@clisp.org>
8908
8909         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
8910         command.
8911
8912 2007-01-08  Jim Meyering  <jim@meyering.net>
8913
8914         Use a more robust test for a "can't happen" condition.
8915         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
8916         narrowed the st_size value.  Presuming the "can't happen" condition
8917         is true, that narrowing could conceivably convert an invalid st_size
8918         value into a valid one.  Instead, use a change based on Matthew
8919         Woehlke's original patch.
8920
8921         Slight readability improvement: use an assert-like macro
8922         in place of literal "abort ()" uses.
8923         * lib/fts.c (fts_assert): Define.
8924         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
8925         Use this macro instead of a bare 'abort'.
8926
8927 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8928
8929         Don't worry about using IRIX 5.3's wctype.h broken definitions;
8930         simply work around them.
8931         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
8932         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
8933         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
8934         declaring.
8935         Don't bother to define as macros, since the standard doesn't require it.
8936         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
8937         longer worry about IRIX 5.3.
8938         (HAVE_WCTYPE_CTMP_BUG): Remove.
8939
8940 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8941
8942         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
8943         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
8944         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8945         Problems reported by Georg Schwarz for IRIX 5.3.
8946
8947         * gnulib-tool (autoconf_minversion): Take the maximum version number
8948         found, not the minimum.  Problem reported by James Youngman.
8949
8950 2007-01-03  Karl Berry  <karl@gnu.org>
8951
8952         * doc/error.texi: new file, explaining interaction with progname.
8953         * doc/gnulib.texi: include it.  Update copyright.
8954
8955 2007-01-03  Simon Josefsson  <simon@josefsson.org>
8956
8957         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
8958         AC_CANONICAL_HOST, to improve autobuild outputs.
8959
8960 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
8961             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8962
8963         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
8964         sockets, server sockets, and other file descriptors.  Count errors
8965         to compute the return value.  Reorder the code a bit to be easier
8966         to follow.  Don't set event bits that were not requested (except
8967         POLLERR and POLLHUP).
8968
8969 2007-01-01  Bruno Haible  <bruno@clisp.org>
8970
8971         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
8972
8973 2007-01-03  Jim Meyering  <jim@meyering.net>
8974
8975         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
8976
8977 2007-01-02  Bruno Haible  <bruno@clisp.org>
8978
8979         * modules/settime (Include): Require timespec.h.
8980         * modules/nanosleep (Include): Likewise.
8981
8982 2007-01-01  Bruno Haible  <bruno@clisp.org>
8983
8984         * gnulib-tool (func_emit_copyright_notice): Bump year.
8985         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
8986
8987 2007-01-01  Bruno Haible  <bruno@clisp.org>
8988
8989         Improve support for OpenBSD.
8990         * build-aux/config.rpath (libname_spec): Export.
8991         (library_names_spec): New variable. Export.
8992         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
8993         library_names_spec from the config.rpath output. Locate shared library
8994         through the name pattern in library_names_spec.
8995
8996 2007-01-01  Eric Blake  <ebb9@byu.net>
8997
8998         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
8999
9000 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9001
9002         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
9003         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
9004         assume the C locale, and avoid an "eval" that could cause trouble.
9005         Problem with SORT reported by Bob Proulx.
9006
9007         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
9008         Define.  Trivial patch from Henning Nielsen Lund, originally
9009         sent to bug-grep@gnu.org today.
9010
9011 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9012
9013         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
9014         struct stat.  Problem reported by Henning Nielsen Lund.
9015         * lib/acl.c: Include acl.h first, to check interface.  Don't
9016         bother to include sys/types.h and sys/stat.h again.
9017
9018 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9019
9020         Import the following change from libc; problem reported by
9021         Sven Verdoolaege.
9022
9023         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
9024
9025         [BZ #1373]
9026         * lib/argp.h: Remove __NTH for __argp_usage inline function.
9027
9028 2006-12-28  Jim Meyering  <jim@meyering.net>
9029
9030         * build-aux/announce-gen: Do not assume that the package
9031         builds any of tar.gz, tar.bz2, and .xdelta files.
9032         Suggestion from Simon Josefsson.
9033
9034 2006-12-28  Simon Josefsson  <simon@josefsson.org>
9035
9036         * modules/announce-gen: New file.
9037
9038 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9039
9040         * lib/mbchar.h: Just include <wctype.h>; the wctype module
9041         handles its gotchas now.
9042         * lib/mbswidth.c: Likewise.
9043         * lib/wcwidth.h: Likewise.
9044         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
9045         and iswcntrl; the wctype module does this stuff now.
9046         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9048         * modules/mbchar (Depends-on): Add wctype.
9049         * modules/mbswidth (Depends-on): Likewise.
9050         * modules/wcwidth (Depends-on): Likewise.
9051
9052 2006-12-27  Eric Blake  <ebb9@byu.net>
9053
9054         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
9055         module uses more than what <wctype.h> is required to provide.
9056
9057 2006-12-26  Eric Blake  <ebb9@byu.net>
9058
9059         * gnulib-tool (sed_extract_prog): Avoid space-tab.
9060
9061 2006-12-26  Eric Blake  <ebb9@byu.net>
9062
9063         * modules/absolute-header: New module.
9064         * modules/fcntl (Depends-on): Depend on it.
9065         * modules/inttypes (Depends-on): Likewise.
9066         * modules/stdint (Depends-on): Likewise.
9067         * modules/sys_stat (Depends-on): Likewise.
9068         * modules/wctype (Depends-on): Likewise.
9069         * MODULES.html.sh (Support for building libraries and
9070         executables): Document it.
9071
9072 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9073
9074         * gnulib-tool (SED): Remove, undoing previous change.
9075         The problem was that it broke coreutils on Solaris, because
9076         "sed --posix" leaked into a makefile.
9077         (sed): New alias, if 'alias' and GNU sed.
9078
9079 2006-12-24  Jim Meyering  <jim@meyering.net>
9080
9081         Work around an fchownat bug in glibc-2.4:
9082         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
9083         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
9084         in spite of the -P option.
9085         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
9086         New macros.
9087         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
9088         * modules/openat (Files): Add lib/fchownat.c.
9089         * lib/openat.c (fchownat): Don't define here.  Move to...
9090         * lib/fchownat.c: ...this new file.
9091
9092 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9093
9094         Fix bug reported by Bruno Haible in
9095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
9096         where quotearg.c didn't compile on Mac OS X 10.2 because it
9097         lacks <wchar.h> and wint_t.
9098         * lib/wctype_.h (__wctype_wint_t): New type.
9099         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
9100         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
9101         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
9102         Arg is now of type __wctype_wint_t, not wint_t.
9103         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
9104         substitute HAVE_WINT_T.
9105         * modules/wctype (Files): Add m4/wint_t.m4.
9106         (wctype.h): Substitute HAVE_WINT_T.
9107
9108 2006-12-23  Bruno Haible  <bruno@clisp.org>
9109
9110         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
9111
9112 2006-12-23  Bruno Haible  <bruno@clisp.org>
9113
9114         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
9115         S_ISLNK.
9116         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
9117         mingw.
9118
9119 2006-12-22  Bruno Haible  <bruno@clisp.org>
9120
9121         * lib/copy-file.c: Include acl.h.
9122         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
9123         Close the file descriptors only after being done with copy_acl.
9124         * modules/copy-file (Depends-on): Add acl.
9125
9126 2006-12-22  Bruno Haible  <bruno@clisp.org>
9127
9128         * gnulib-tool (SED): New variable.
9129         Use $SED instead of sed everywhere.
9130
9131 2006-12-22  Bruno Haible  <bruno@clisp.org>
9132
9133         * modules/no-c++: New file.
9134         * m4/no-c++.m4: New file.
9135         * MODULES.html.sh (Support for building libraries and executables):
9136         Add no-c++.
9137
9138 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9139
9140         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
9141         Include <limits.h>, and use its INT_MAX to rewrite the
9142         j loop so that it does not overflow 'int'.  Problem reported by
9143         Ralf Wildenhues in
9144         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
9145         Play it safe by shifting left by 1 rather than multiplying by 2,
9146         as GCC is less likely to optimize this away when the value
9147         is signed (when it assumes overflow leads to undefined behavior).
9148         Also, don't assume time_t uses two's complement.
9149
9150 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9151
9152         * MODULES.html.sh: New module wctype.
9153         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
9154         * lib/fnmatch.c: Don't bother to include <wchar.h> before
9155         <wctype.h>, since the new wctype module should fix this.
9156         * lib/quotearg.c: Include <wctype.h> unconditionally, since
9157         the wctype module should arrange for it.
9158         * lib/regex_internal.h: Likewise.
9159         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
9160         since the wctype module should handle this now.
9161         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
9162         * modules/fnmatch (Depends-on): Add wctype.
9163         * modules/quotearg (Depends-on): Likewise.
9164         * modules/regex (Depends-on): Likewise.
9165
9166 2006-12-19  Bruno Haible  <bruno@clisp.org>
9167
9168         * lib/strdup.h [C++]: Wrap definitions in extern "C".
9169         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
9170
9171 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9172
9173         * modules/savewd (Depends-on): Fix dependency on fcntl.
9174
9175 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9176
9177         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
9178         conforms to C99, rather than relying on the user's environment
9179         setting of STDINT_H.
9180
9181 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9182         and Eric Blake  <ebb9@byu.net>
9183
9184         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
9185         This is more consistent with the other defines here.
9186         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
9187         Port to z/OS.  Problem reported by Paul Gilmartin.
9188         Change local vars to use gl_ prefix rather than ac_.
9189         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
9190         with other defines.
9191         * modules/double-slash-root: New module.
9192         * modules/dirname (Files): Remove m4/double-slash-root.m4.
9193         (Depends-on): Add double-slash-root.
9194         * MODULES.html.sh (File system functions): Mention new module.
9195
9196 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
9197
9198         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
9199         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
9200         This is for the benefit of gzip, which doesn't do i18n.
9201
9202 2006-12-12  Jim Meyering  <jim@meyering.net>
9203
9204         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
9205         Reported by Andreas Schwab <schwab@suse.de>.
9206
9207 2006-12-12  Bruno Haible  <bruno@clisp.org>
9208
9209         Merge these changes.
9210         2006-09-05  Bruno Haible  <bruno@clisp.org>
9211         * lib/iconvme.c (iconv_string): No need to save and restore errno when
9212         iconv_alloc succeeded.
9213         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
9214         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
9215         test for " && dest " at the end - dest is always != NULL there. Call
9216         iconv with 4xNULL arguments initially, to reset the state. Call iconv
9217         with 2xNULL arguments, also to flush the state storage. Handle the
9218         IRIX iconv behaviour. Realloc the final result, to throw away unused
9219         memory.
9220
9221 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9222
9223         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
9224         and fchmodat unconditionally, since glibc 2.4 has them.
9225         Problem reported by Arkadiusz Miskiewicz.
9226
9227 2006-12-10  Bruno Haible  <bruno@clisp.org>
9228
9229         * gnulib-tool (func_import): Show the include files only for those
9230         modules that are copied and specified.
9231         Reported by Karl Berry.
9232
9233 2006-12-08  Jim Meyering  <jim@meyering.net>
9234
9235         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
9236         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
9237
9238         * build-aux/announce-gen: Add two new options, both optional:
9239         --bootstrap-tools=TOOL_LIST
9240               a comma-separated list of tools, e.g.,
9241               autoconf,automake,bison,gnulib
9242         --gnulib-snapshot-date=DATE
9243               if gnulib is in the bootstrap tool list,
9244               then report this as the snapshot date.
9245               If not specified, use the current date/time.
9246               If you specify a date here, be sure it's UTC.
9247
9248 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9249
9250         * tests/test-argp-2.sh: Fix test to match actual output.
9251         (func_compare): Fix sed script to be portable.
9252
9253 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
9254
9255         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
9256         workaround for this case.  It is not autoconfigured now; offhand
9257         it's hard to see how to autoconfigure it.
9258
9259 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
9260
9261         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
9262         a directory that is about to be chowned.  Such a directory's
9263         initial file permissions should permit the owner only and this
9264         should not be changed until after the chown, since the group and
9265         other bits would be incorrect if they granted permission before
9266         the chown.
9267
9268         Fix porting problem for iswctype reported by Georg Schwarz in:
9269         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
9270         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
9271         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
9272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
9273         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9274
9275 2006-12-03  Jim Meyering  <jim@meyering.net>
9276
9277         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
9278         p->fts_statp may not yet be defined.
9279         (fts_read): Instead, set it in the caller, once p->fts_statp is
9280         sure to be defined, and corresponds to a top-level directory.
9281         This bug made du -x fail.  Here's the coreutils test case:
9282         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
9283         Reported by Mike Frysinger.
9284
9285 2006-12-01  Jim Meyering  <jim@meyering.net>
9286
9287         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
9288         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
9289         Reported by Simon Josefsson.
9290
9291 2006-11-30  Jim Meyering  <jim@meyering.net>
9292
9293         * m4/warning.m4: Use the all-permissive copyright notice
9294         recommended by RMS (rather than LGPL).
9295         * m4/vararrays.m4: Likewise.
9296         * m4/flexmember.m4: Likewise.
9297
9298 2006-11-29  Bruno Haible  <bruno@clisp.org>
9299
9300         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
9301         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
9302         using +=.
9303         Reported by Simon Josefsson <simon@josefsson.org>.
9304
9305 2006-11-28  James Youngman <jay@gnu.org>
9306
9307         * README: Advise users that they might find the bug-gnulib@gnu.org
9308         and autotools-announce@gnu.org mailing lists useful.
9309
9310 2006-11-28  Bruno Haible  <bruno@clisp.org>
9311
9312         * m4/ptrdiff_max.m4: Remove file.
9313
9314 2006-11-21  Bruno Haible  <bruno@clisp.org>
9315
9316         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
9317         _AC_COMPUTE_INT.
9318         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9319         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
9320         _AC_COMPUTE_INT.
9321         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9322         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
9323         _AC_COMPUTE_INT.
9324         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9325
9326 2006-11-28  Jim Meyering  <jim@meyering.net>
9327
9328         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
9329         warning from "gcc -Wshadow" about shadowing the builtin.
9330
9331 2006-11-27  Bruno Haible  <bruno@clisp.org>
9332
9333         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
9334         _AC_COMPUTE_INT.
9335         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9336
9337 2006-11-27  Bruno Haible  <bruno@clisp.org>
9338             Paul Eggert  <eggert@cs.ucla.edu>
9339
9340         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
9341
9342 2006-11-26  Bruno Haible  <bruno@clisp.org>
9343
9344         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
9345         noinst_LTLIBRARIES.
9346
9347 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
9348             Bruno Haible  <bruno@clisp.org>
9349
9350         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
9351         if compiling with "gcc -ansi".
9352
9353 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
9354
9355         Fix some incompatibilities with gcc -ansi -pedantic.
9356         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
9357         if compiling pedantically with GCC, unless it's C99 or later.
9358         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
9359         it mishandles gcc -ansi -pedantic as well.
9360         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
9361         if gcc -pedantic.
9362         * lib/regexec.c (check_node_accept_bytes): Don't use auto
9363         initializers for struct if -pedantic, unless it's C99 or later.
9364
9365 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
9366
9367         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
9368         Don't close an fd more than once. Identical atimes indicate
9369         success, not failure.
9370
9371 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
9372
9373         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
9374
9375 2006-11-23  Jim Meyering  <jim@meyering.net>
9376
9377         * build-aux/announce-gen: New file.  From coreutils.
9378
9379 2006-11-22  Jim Meyering  <jim@meyering.net>
9380
9381         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
9382         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
9383         (fts_read): Use a temporary to narrow the overused st_size member
9384         before using it in a switch statement.  Reported by Matthew Woehlke.
9385
9386         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
9387         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9388
9389 2006-11-20  Bruno Haible  <bruno@clisp.org>
9390
9391         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
9392         changequote instead of pairs of brackets.
9393         Reported by Andreas Schwab <schwab@suse.de>.
9394
9395 2006-11-21  Jim Meyering  <jim@meyering.net>
9396
9397         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
9398         so as to remain compatible with older compilers.
9399         Patch from Michael Deutschmann.
9400
9401 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9402
9403         * MODULES.html.sh (File system functions): Add openat.
9404
9405         * lib/openat.h (rpl_fstatat): New macro, if
9406         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
9407         (fstatat): Define to rpl_fstatat under the same conditions,
9408         unless COMPILING_FSTATAT.
9409         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
9410         seems to have the bug.
9411         * lib/fstatat.c: New file.
9412         * modules/openat (Files): Add it.
9413
9414 2006-11-20  Bruno Haible  <bruno@clisp.org>
9415
9416         * Makefile: New file.
9417
9418 2006-11-20  Jim Meyering  <jim@meyering.net>
9419
9420         The beginnings of syntax-related checks for gnulib.
9421         * lib/Makefile: New file.
9422         * lib/t-idcache: New script.  Ensure that the two halves of
9423         idcache.c stay in sync.
9424
9425         * lib/idcache.c: Adjust comments in user- and group- portions to
9426         be more accurate, and to be consistent with one another.
9427
9428 2006-11-20  Jim Meyering  <jim@meyering.net>
9429
9430         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
9431         continue using the flexible array member (thus, this module performs
9432         half as many malloc calls), with the addition that...
9433         (getgroup, getuser): Consistently record a non-match via an empty
9434         "name" string, and map an empty string match to a NULL return value.
9435         * modules/idcache (Depends-on): Re-add flexmember.
9436
9437         * lib/idcache.c (getuser): Remove all uses of the register keyword.
9438         (getuidbyname, getgroup, getgidbyname): Likewise.
9439
9440         Use cleaner syntax: NULL rather than 0.
9441         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
9442
9443 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9444
9445         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
9446         It mishandled the case where the group was missing.
9447         Problem reported by Greg Schafer.
9448         * modules/idcache: Likewise.
9449
9450 2006-11-18  Jim Meyering  <jim@meyering.net>
9451
9452         * check-module (%exempt_header): Add exception for some
9453         conditionally-included headers.
9454
9455         * modules/i-ring (Depends-on): Add verify.
9456         (License): Change to LGPL.
9457
9458 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9459
9460         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
9461         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
9462         and inttostr.h.  Use snprintf rather than uinttostr, so that
9463         LGPLed code doesn't depend on GPLed.
9464
9465 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9466
9467         * modules/inline (License): Change from GPL to LGPL.
9468
9469 2006-11-17  Jim Meyering  <jim@meyering.net>
9470
9471         * modules/d-type (License): Switch to LGPL.
9472
9473 2006-11-15  Bruno Haible  <bruno@clisp.org>
9474
9475         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
9476
9477 2006-11-15  Eric Blake  <ebb9@byu.net>
9478
9479         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
9480         the module dependency.
9481
9482 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9483             Bruno Haible  <bruno@clisp.org>
9484
9485         * gnulib-tool (func_create_testdir): Add license consistency check.
9486
9487 2006-11-15  Eric Blake  <ebb9@byu.net>
9488
9489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
9490         random "(cached)" in configure output.
9491
9492 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9493
9494         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
9495         test for conforming inttypes.h is both announced and cached.
9496
9497         * MODULES.html.sh (seen_modules, seen_files): New variables.
9498         (func_module): Rewrite to use a few less gnulib-tool and sed
9499         invocations.  Avoid a couple of quadratic algorithms for ...
9500         (missed_modules, missed_files): ... these, with ...
9501         (func_append, func_tmpdir): ... these new functions, from
9502         gnulib-tool.  Analogously, install traps for cleanup.
9503
9504         * tests/test-gc.c (main): Remove unused variables.
9505         * tests/test-read-file.c: Include stdlib.h, for 'free'.
9506
9507 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
9508
9509         * modules/inttostr (License): Change to LGPL.
9510
9511 2006-11-14  Eric Blake  <ebb9@byu.net>
9512
9513         * modules/tempname (License): Change to LGPL.
9514
9515 2006-11-14  Eric Blake  <ebb9@byu.net>
9516
9517         * doc/functions.texi (Function Portability): *printf functions on
9518         Cygwin now understand all POSIX size specifiers.
9519
9520 2006-11-14  Bruno Haible  <bruno@clisp.org>
9521
9522         * modules/c-ctype (License): Change to LGPL.
9523
9524 2006-11-12  Bruno Haible  <bruno@clisp.org>
9525
9526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9527         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
9528         for GNOME libraries, for which the include files are installed in
9529         subdirectories of $prefix/include.
9530
9531 2006-11-12  Bruno Haible  <bruno@clisp.org>
9532
9533         * m4/lib-link.m4: Require at least autoconf-2.54.
9534         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
9535         name to underscores for the --with option.
9536
9537 2006-11-13  Bruno Haible  <bruno@clisp.org>
9538
9539         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
9540         the tests directory.
9541         Reported by Ralf Wildenhues.
9542
9543 2006-11-13  Bruno Haible  <bruno@clisp.org>
9544
9545         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
9546         (func_emit_initmacro_end): Undo the override here.
9547         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
9548         Works around the famous automake error in coreutils.
9549
9550 2006-11-13  Eric Blake  <ebb9@byu.net>
9551
9552         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
9553         element, not its node.
9554
9555 2006-11-12  Bruno Haible  <bruno@clisp.org>
9556
9557         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
9558         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
9559
9560 2006-11-12  Bruno Haible  <bruno@clisp.org>
9561
9562         * gnulib-tool: New option --local-symlink.
9563         (func_usage): Document it.
9564         (lsymbolic): New variable.
9565         (func_import, func_create_testdir): If --symlink was not specified,
9566         test whether --local-symlink was specified and the file comes from
9567         the local_gnulib_dir.
9568
9569 2006-11-12  Bruno Haible  <bruno@clisp.org>
9570
9571         * gnulib-tool (func_ln): New function.
9572         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
9573
9574 2006-11-12  Bruno Haible  <bruno@clisp.org>
9575
9576         Finish support for source files in subdirectories.
9577         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
9578         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
9579         AUTOMAKE_OPTIONS.
9580         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
9581
9582 2006-11-12  Bruno Haible  <bruno@clisp.org>
9583
9584         * gnulib-tool (func_get_automake_snippet): Synthesize also an
9585         EXTRA_lib_SOURCES augmentation.
9586         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
9587
9588 2006-11-12  Jim Meyering  <jim@meyering.net>
9589
9590         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
9591         file descriptors.  This also averts a failure on systems with
9592         native openat support when a traversed directory lacks "x" access.
9593         * lib/fts_.h: Include "i-ring.h"
9594         (struct FTS) [fts_fd_ring]: New member.
9595         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
9596         (FCHDIR): Add parentheses.
9597         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
9598         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
9599         When descending, rather than simply closing the previous
9600         fts_cwd_fd value, push that file descriptor onto the ring.
9601         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
9602         (fts_open): Initialize the new fd_ring member.
9603         (fts_close): Clear the ring.
9604         (fts_safe_changedir): When possible, use our new fd_ring to skip
9605         the diropen and fstat and dev/ino comparison that would normally
9606         accompany a virtual `chdir ("..")'.
9607
9608         * modules/fts (Depends-on): Add i-ring.
9609         * modules/i-ring: New module.
9610         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
9611         * m4/i-ring.m4: New file.
9612
9613 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9614
9615         * gnulib-tool (func_create_testdir): Fix replacement of
9616         `build-aux' in configure.ac.  Run autotools in gltests
9617         subdirectory.
9618         (func_create_testdir, func_create_megatestdir, test): There is
9619         no need for '--force' in most autotool invocations in a new
9620         tree.  Actually fail the whole test if any of the tools, or the
9621         configure or make stages fail.
9622
9623         Sync from Automake.
9624         * build-aux/gnupload: Revert last change.  Add pointer to upload
9625         instructions of the GNU Maintenance Instructions.
9626         Suggestion by Karl Berry.
9627
9628 2006-11-10  Jim Meyering  <jim@meyering.net>
9629
9630         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
9631
9632 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9633
9634         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
9635         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
9636         (bind_textdomain_codeset) [! ENABLE_NLS]:
9637         Evaluate all the arguments.  That way, callers get compatible behavior
9638         if the arguments have side effects.  Also, it avoids some GCC
9639         diagnostics in some cases; Joel E. Denny reported problems when Bison
9640         was configured with --enable-gcc-warnigs.
9641
9642 2006-11-10  Jim Meyering  <jim@meyering.net>
9643
9644         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
9645         relevant options in CFLAGS (like -O, -fno-inline) are taken into
9646         account.
9647
9648 2006-11-10  Jim Meyering  <jim@meyering.net>
9649
9650         * modules/inline: New file/module.
9651         * modules/xalloc (Files): Remove m4/inline.m4.
9652         (Depends-on): Add inline, instead.
9653         * modules/oset: Likewise.
9654         * modules/list: Likewise.
9655
9656 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9657
9658         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
9659         Problem reported by Matthew Woehlke.
9660
9661 2006-11-09  Bruno Haible  <bruno@clisp.org>
9662
9663         * lib/tempname.c (gen_tempname): Remove variant that invokes
9664         __gen_tempname.
9665         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
9666         __gen_tempname.
9667
9668 2006-11-08  Bruno Haible  <bruno@clisp.org>
9669
9670         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
9671         to 'yes' instead of 'cross-compiling'.
9672
9673 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9674
9675         * lib/quotearg.h (quotearg_free): New decl.
9676         * lib/quotearg.c (quotearg_free): New function.
9677         (slot0, nslots, slotvec0, slotvec):
9678         Now file-scope so that quotearg_free can get at them.
9679
9680 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9681
9682         Sync from Automake.
9683         * build-aux/gnupload: Add missing 'gnu' to example URL.
9684         Report by Karl Berry.
9685
9686 2006-11-08  Bruno Haible  <bruno@clisp.org>
9687
9688         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
9689         Suggested by Paul Eggert.
9690
9691 2006-11-08  Jim Meyering  <jim@meyering.net>
9692
9693         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
9694         It's already included if !_LIBC.
9695         (fts_safe_changedir): Add a comment.
9696
9697 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9698
9699         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9700         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9701         Matthew Woehlke.
9702
9703         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
9704         definitions up, to avoid colliding with change below.
9705         (static_inline) [HAVE_INLINE]: New macro.
9706         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
9707         Provide extern decls when !HAVE_INLINE.  Do not define unless
9708         static_inline is defined, either by us or by xmalloc.c.  Use
9709         static_inline rather than static inline.
9710         (XCALLOC): Optimize sizeof(T) = 1 case.
9711         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
9712
9713 2006-11-07  Bruno Haible  <bruno@clisp.org>
9714
9715         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
9716         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
9717         AC_C_INLINE.
9718         * modules/xalloc (Files): Add m4/inline.m4.
9719
9720 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9721
9722         * README: Fix typo.
9723         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
9724         (Miscellanous Notes): ...from this.
9725
9726 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9727
9728         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9729         Mention that offsetof should be used instead of sizeof.
9730         From Bruno Haible.
9731
9732 2006-11-07  Bruno Haible  <bruno@clisp.org>
9733
9734         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
9735
9736 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9737
9738         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9739         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
9740         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9741         (gl_tree_add_before, gl_tree_add_after):
9742         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
9743         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
9744         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9745         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
9746         (gl_linked_add_after, gl_linked_add_at): Likewise.
9747         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
9748         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9749         (gl_tree_add_before, gl_tree_add_after): Likewise.
9750         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
9751         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
9752         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
9753
9754 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9755
9756         * lib/gl_oset.h: Use C comment style, not C++ comment style.
9757
9758 2006-11-06  Bruno Haible  <bruno@clisp.org>
9759
9760         * m4/inline.m4: New file.
9761         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
9762         * modules/list (Files): Add m4/inline.m4.
9763         * modules/oset (Files): Likewise.
9764
9765 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9766
9767         * lib/idcache.c: Include <stddef.h>, for offsetof.
9768         (struct userid.name): Change from char * to a flexible array member.
9769         All uses changed.
9770         * modules/idcache (Depends-on): Add flexmember.
9771
9772         * MODULES.html.sh (Core language properties): New module flexmember.
9773         * modules/flexmember, m4/flexmember.m4: New files.
9774
9775         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
9776         inline functions that are identical with the old xnmalloc_inline,
9777         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
9778         that we can avoid some unnecessary integer multiplications and
9779         divisions in the common case where the element size is known at
9780         compile time.
9781         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
9782         needed.
9783         (xnboundedmalloc): Remove.
9784         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
9785         arguments, for consistency with rest of this header.
9786         (xcharalloc): Rewrite using XNMALLOC.
9787         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
9788         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
9789         versions have been moved to lib/xalloc.h and renamed to be the
9790         non-*_inline versions.
9791         (xmalloc, xrealloc): Implement without reference to the xnmalloc
9792         and xnrealloc functions, since those functions are now inline and
9793         now call us.
9794         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
9795         renaming described above.
9796         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
9797         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
9798         captures the dependency in AC_C_INLINE.
9799
9800         New module canonicalize-lgpl, proposed by Charles Wilson in
9801         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
9802         with a few small changes afterwards.
9803         * MODULES.html.sh (File system functions): New module
9804         canonicalize-lgpl.
9805         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
9806         and canonicalize_file_name.
9807         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
9808         * modules/canonicalize-lgpl: New files.
9809
9810 2006-11-05  Bruno Haible  <bruno@clisp.org>
9811
9812         * gnulib-tool (func_import, func_create_testdir): Create directories
9813         also for files in subdirectories of lib/.
9814
9815 2006-11-05  Bruno Haible  <bruno@clisp.org>
9816
9817         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
9818         ANSI C compliant.
9819
9820 2006-11-03  Bruno Haible  <bruno@clisp.org>
9821
9822         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9823         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
9824         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
9825         (xnboundedmalloc): New inline function.
9826         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
9827         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
9828         xmalloc.
9829         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
9830         xmalloc.
9831         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
9832         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
9833         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
9834         xmalloc.
9835         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9836         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
9837         xmalloc.
9838         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
9839         gl_tree_add_after): Use XMALLOC instead of xmalloc.
9840         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
9841         xmalloc.
9842         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9843         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
9844         gl_tree_add_after): Use XMALLOC instead of xmalloc.
9845         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
9846         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
9847         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
9848         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
9849
9850 2006-11-03  Bruno Haible  <bruno@clisp.org>
9851
9852         * lib/c-ctype.h [C++]: Define functions without name mangling.
9853         * lib/fwriteerror.h [C++]: Likewise.
9854         * lib/gcd.h [C++]: Likewise.
9855         * lib/linebreak.h [C++]: Likewise.
9856
9857 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
9858
9859         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
9860         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
9861         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
9862         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9863         Check for functions and headers just once.
9864         Check for declaration of canonicalize_file_name.
9865         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
9866
9867 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
9868
9869         * gnulib-tool (func_import): Fix typo in actioncmd.
9870
9871 2006-11-02  Bruno Haible  <bruno@clisp.org>
9872
9873         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
9874         newline sequence in the Makefile.am snippet as a space, like "make"
9875         does.
9876         Reported by Roger Persson <perrog@gmail.com>.
9877
9878 2006-11-01  Bruno Haible  <bruno@clisp.org>
9879
9880         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
9881         already declared in <string.h>.
9882         * lib/strcase.h (strncasecmp): Don't declare it if yes.
9883
9884 2006-11-01  Bruno Haible  <bruno@clisp.org>
9885
9886         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
9887         * lib/strcase.h: Include <string.h>.
9888         (strcasecmp): Define to rpl_strcasecmp here.
9889
9890 2006-11-01  Bruno Haible  <bruno@clisp.org>
9891
9892         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
9893
9894 2006-11-01  Eric Blake  <ebb9@byu.net>
9895
9896         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
9897
9898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
9899
9900 2006-10-29  Bruno Haible  <bruno@clisp.org>
9901
9902         Make it compile in C++ mode.
9903         * lib/full-write.c (full_rw): Add a cast.
9904
9905 2006-11-01  Bruno Haible  <bruno@clisp.org>
9906
9907         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
9908         be POSIX compliant.
9909         Reported by Roger Persson <perrog@gmail.com>.
9910
9911 2006-11-01  Eric Blake  <ebb9@byu.net>
9912
9913         * lib/getopt_.h: Fix comments.
9914
9915 2006-10-31  Eric Blake  <ebb9@byu.net>
9916
9917         * modules/tmpdir (Depends-on): Add sys_stat.
9918         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
9919         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
9920         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
9921         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
9922         tempname.
9923
9924 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9925
9926         Avoid some C++ diagnostics reported by Bruno Haible.
9927         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
9928         xmalloc.
9929         (quotearg_alloc): Use xcharalloc rather than xmalloc.
9930         (struct slotvec): Move to top level.
9931         (quotearg_n_options): Rewrite to avoid xmalloc.
9932         * lib/xalloc.h (xcharalloc): New function.
9933         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
9934         [defined __cplusplus]: Add function template that provides result
9935         type propagation.  This part of the change is from Bruno Haible.
9936
9937 2006-10-29  Bruno Haible  <bruno@clisp.org>
9938
9939         Make it compile in C++ mode.
9940         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
9941         * lib/strnlen1.c (strnlen1): Cast memchr result.
9942         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
9943         * lib/clean-temp.c (string_equals, string_hash): Add casts.
9944         (create_temp_dir): Rename local variable 'template'.
9945         (compile_csharp_using_sscli): Add cast.
9946         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
9947         * lib/findprog.c (find_in_path): Likewise.
9948         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
9949         * lib/wait-process.c (register_slave_subprocess): Likewise.
9950
9951 2006-10-22  Bruno Haible  <bruno@clisp.org>
9952
9953         * modules/tsearch: New file.
9954         * lib/tsearch.h: New file.
9955         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
9956         * m4/tsearch.m4: New file.
9957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
9958
9959 2006-10-29  Eric Blake  <ebb9@byu.net>
9960
9961         * lib/arcfour.c: Assume config.h.
9962         * lib/arctwo.c: Likewise.
9963         * lib/base64.c: Likewise.
9964         * lib/check-version.c: Likewise.
9965         * lib/crc.c: Likewise.
9966         * lib/des.c: Likewise.
9967         * lib/gc-gnulib.c: Likewise.
9968         * lib/gc-libgcrypt.c: Likewise.
9969         * lib/gc-pbkdf2-sha1.c: Likewise.
9970         * lib/getaddrinfo.c: Likewise.
9971         * lib/getdelim.c: Likewise.
9972         * lib/getline.c: Likewise.
9973         * lib/hmac-md5.c: Likewise.
9974         * lib/hmac-sha1.c: Likewise.
9975         * lib/iconvme.c: Likewise.
9976         * lib/md2.c: Likewise.
9977         * lib/md4.c: Likewise.
9978         * lib/memxor.c: Likewise.
9979         * lib/read-file.c: Likewise.
9980         * lib/readline.c: Likewise.
9981         * lib/rijndael-alg-fst.c: Likewise.
9982         * lib/rijndael-api-fst.c: Likewise.
9983         * lib/xgetdomainname.c: Likewise.
9984
9985 2006-10-28  Eric Blake  <ebb9@byu.net>
9986
9987         * lib/xstrndup.c: Assume config.h.
9988
9989 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9990
9991         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
9992         stat-macros.h is now for our own macros, whereas stat_h is for
9993         macros in the <sys/stat.h> name space.
9994         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
9995         (STAT_MACROS_H): Remove.
9996         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9997         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
9998         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
9999         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
10000         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
10001         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
10002         Move these macros to ...
10003         * lib/stat_.h: here.  Don't include stat-macros.h.
10004         * lib/canonicalize.c: Don't include stat-macros.h.
10005         * lib/chown.c: Likewise.
10006         * lib/euidaccess.c: Likewise.
10007         * lib/file-type.c: Likewise.
10008         * lib/filemode.c: Likewise.
10009         * lib/glob.c: Likewise.
10010         * lib/isapipe.c: Likewise.
10011         * lib/lchown.c: Likewise.
10012         * lib/lstat.c: Likewise.
10013         * lib/mkdir-p.c: Likewise.
10014         * lib/rmdir.c: Likewise.
10015         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
10016         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
10017         unless mkdir isn't declared, to speed up 'configure'.
10018         Always create sys/stat.h, since it's unlikely any real sys/stat.h
10019         would define all the S_* symbols.
10020         * modules/canonicalize (Depends-on):
10021         Depend on sys_stat, not stat-macros.
10022         * modules/chown: Likewise.
10023         * modules/euidaccess: Likewise.
10024         * modules/filemode: Likewise.
10025         * modules/file-type: Likewise.
10026         * modules/glob: Likewise.
10027         * modules/isapipe: Likewise.
10028         * modules/lchown: Likewise.
10029         * modules/lstat: Likewise.
10030         * modules/mkancesdirs: Likewise.
10031         * modules/rmdir: Likewise.
10032         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
10033         * modules/modechange: Likewise.
10034         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
10035         (configure.ac): Remove gl_STAT_MACROS.
10036         * modules/sys_stat (Depends-on): Remove stat-macros.
10037
10038 2006-10-27  Bruno Haible  <bruno@clisp.org>
10039
10040         * m4/signed.m4: Remove file.
10041         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
10042         invocation.
10043         * modules/vasnprintf (Files): Remove m4/signed.m4.
10044
10045 2006-10-27  Bruno Haible  <bruno@clisp.org>
10046
10047         Update to GNU gettext 0.16.
10048         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
10049         m4/inttypes-h.m4, m4/signed.m4.
10050         * m4/gettext.m4: Update to GNU gettext 0.16.
10051         * m4/intl.m4: New file, from GNU gettext.
10052         * m4/intldir.m4: New file, from GNU gettext.
10053         * config/srclist.txt: Update
10054
10055 2006-10-27  Eric Blake  <ebb9@byu.net>
10056
10057         * MODULES.html.sh: Document tempname.
10058         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
10059         dependencies.
10060         (Files): Move lib/tempname.c...
10061         * modules/tempname: ...to this new module.
10062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
10063         (gl_PREREQ_TEMPNAME): Move...
10064         * m4/tempname.m4: ...to this new file.
10065         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
10066         * modules/sys_stat (Depends-on): Add stat-macros.
10067         * lib/stat_.h (includes): Pick up stat macros.
10068         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
10069         if stat macros are broken.
10070         * lib/tempname.c (includes): No need to include "stat-macros.h".
10071         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
10072         (direxists, __path_search) [!_LIBC]: Don't compile these in
10073         gnulib; the tmpdir module covers that.
10074         * lib/tempname.h: New file.
10075
10076 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10077
10078         * COPYING: Explain how gnulib-tool converts licence headers.
10079         Almost all wording by Eric Blake.
10080
10081 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10082
10083         * lib/mbchar.h (is_basic_table): Make read-only.
10084         * lib/mbchar.c (is_basic_table): Likewise.
10085         Reported by John Darrington.
10086
10087 2006-10-25  Bruno Haible  <bruno@clisp.org>
10088
10089         * lib/progname.h (set_program_name): Undefine before defining.
10090
10091 2006-10-25  Bruno Haible  <bruno@clisp.org>
10092
10093         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
10094         false for non-gcc C++ compilers.
10095         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10096
10097 2006-10-24  Bruno Haible  <bruno@clisp.org>
10098
10099         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
10100         iconv implementations like Irix iconv.
10101
10102 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10103
10104         * modules/vararrays: New file.
10105         * m4/vararrays.m4: New file, taken from diffutils.
10106         * MODULES.html.sh: New module vararrays.
10107
10108 2006-10-24  Karl Berry  <karl@gnu.org>
10109
10110         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
10111         Don't call GNU Unix.
10112
10113 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10114
10115         * users.txt: Add Libtool.
10116
10117         Sync from Libtool:
10118
10119         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10120
10121         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
10122         to gnulib's policy of including config.h unconditionally.
10123
10124 2006-10-24  Bruno Haible  <bruno@clisp.org>
10125
10126         * modules/wcwidth (Files): Add m4/wint_t.m4.
10127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
10128         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
10129
10130 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10131
10132         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
10133         to pacify GCC with some -W flags enabled.  Problem reported by
10134         Bruno Haible.
10135
10136 2006-10-24  Jim Meyering  <jim@meyering.net>
10137
10138         * MODULES.html.sh: Remove uinttostr.  It's not a module.
10139         Reported by Karl Berry.
10140
10141 2006-10-23  Bruno Haible  <bruno@clisp.org>
10142
10143         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
10144
10145 2006-10-24  Bruno Haible  <bruno@clisp.org>
10146
10147         * lib/gl_list.h: Use C comment style, not C++ comment style.
10148
10149 2006-10-23  Eric Blake  <ebb9@byu.net>
10150
10151         * lib/getaddrinfo.c (includes): Add missing include.
10152
10153 2006-10-23  Bruno Haible  <bruno@clisp.org>
10154             Paul Eggert  <eggert@cs.ucla.edu>
10155
10156         Ability to rename obstack_free.
10157         * lib/obstack.h (__obstack_free): New macro. Declare instead of
10158         obstack_free.
10159         (obstack_free): Invoke the __obstack_free macro.
10160         * lib/obstack.c (obstack_free): Use __obstack_free macro.
10161
10162 2006-10-23  Bruno Haible  <bruno@clisp.org>
10163             Paul Eggert  <eggert@cs.ucla.edu>
10164
10165         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
10166         __argc, __argv from the declaration. (They are defined as macros on
10167         mingw.)
10168
10169 2006-10-22  Bruno Haible  <bruno@clisp.org>
10170
10171         * doc/gnulib-intro.texi: New file.
10172         * doc/gnulib.texi: Include it.
10173
10174 2006-10-21  Bruno Haible  <bruno@clisp.org>
10175
10176         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
10177         "Introduction", "Miscellanous Notes", "Particular Modules".
10178
10179 2006-10-21  Bruno Haible  <bruno@clisp.org>
10180
10181         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10182         Change mostlyclean-local rule to avoid sh syntax error from bash
10183         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
10184
10185 2006-10-23  Jim Meyering  <jim@meyering.net>
10186
10187         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
10188         in place of snprintf.
10189
10190         * modules/inttostr (Files): Add lib/uinttostr.c.
10191         * lib/uinttostr.c (inttostr): New file/function.
10192         * lib/inttostr.h (uinttostr): Declare.
10193         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
10194         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
10195         Add uinttostr.
10196         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
10197
10198 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
10199
10200         * lib/canonicalize.c (ELOOP): Define if not already defined.
10201         Problem reported by Bruno Haible in
10202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
10203
10204 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
10205
10206         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
10207         Problem reported by Perry Smith and Ville Laurikari.
10208
10209         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
10210         uses.
10211
10212 2006-10-19  Bruno Haible  <bruno@clisp.org>
10213
10214         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
10215         for mingw.
10216
10217 2006-10-19  Bruno Haible  <bruno@clisp.org>
10218
10219         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
10220         Needed for mingw.
10221
10222 2006-10-19  Bruno Haible  <bruno@clisp.org>
10223
10224         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
10225
10226 2006-10-19  Bruno Haible  <bruno@clisp.org>
10227
10228         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
10229         it.
10230
10231 2006-10-19  Bruno Haible  <bruno@clisp.org>
10232
10233         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
10234         invocation.
10235
10236 2006-10-19  Bruno Haible  <bruno@clisp.org>
10237
10238         * gnulib-tool (func_create_testdir): Don't include ftruncate and
10239         mountlist by default.
10240
10241 2006-10-16  Bruno Haible  <bruno@clisp.org>
10242
10243         * lib/c-strstr.c: Include c-strstr.h.
10244
10245 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
10246
10247         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
10248         in a slash.
10249
10250 2006-10-18  Bruno Haible  <bruno@clisp.org>
10251
10252         * lib/lock.h [C++]: Wrap definitions in extern "C".
10253
10254 2006-10-18  Bruno Haible  <bruno@clisp.org>
10255
10256         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
10257         gl_LIBOBJS list.
10258
10259 2006-10-18  Bruno Haible  <bruno@clisp.org>
10260
10261         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
10262
10263 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
10264
10265         * lib/xstrtol.h: Include gettext.h.
10266         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
10267         Problem reported by Eric Blake.
10268         * modules/xstrtol (Depends-on): Add gettext-h.
10269
10270 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
10271
10272         * lib/strftime.c (advance): New macro.
10273         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
10274         incomplete type, so you can't add 0 to it.  Problem and patch
10275         reported by Eelco Dolstra for dietlibc.
10276
10277 2006-10-18  Jim Meyering  <jim@meyering.net>
10278
10279         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
10280         type for a local, and rename it: s/up/user_proc/.
10281
10282 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
10283
10284         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
10285         READ_UTMP_USER_PROCESS.
10286         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
10287
10288 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
10289
10290         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
10291         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
10292
10293 2006-10-17  Eric Blake  <ebb9@byu.net>
10294
10295         * lib/sigprocmask.c (sigprocmask): Fix typo.
10296
10297         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
10298
10299         * modules/clean-temp (Makefile.am): Don't add to make output...
10300         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
10301         config.h.
10302
10303 2006-10-17  Bruno Haible  <bruno@clisp.org>
10304
10305         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
10306         differently if DEFAULT_TEXT_DOMAIN is set.
10307
10308 2006-10-16  Bruno Haible  <bruno@clisp.org>
10309
10310         * lib/clean-temp.c: Include fwriteerror.h.
10311
10312 2006-10-16  Bruno Haible  <bruno@clisp.org>
10313
10314         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
10315
10316 2006-10-16  Bruno Haible  <bruno@clisp.org>
10317
10318         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
10319         * lib/sigprocmask.h: Include <sys/types.h>.
10320         (sigset_t): Use the system's definition if present.
10321
10322 2006-10-17  Eric Blake  <ebb9@byu.net>
10323
10324         * lib/xvasprintf.c (includes): Assume config.h.
10325         * lib/xasprintf.c (includes): Likewise.
10326
10327 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10328
10329         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
10330         at least as wide as intmax_t.
10331
10332 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
10333
10334         (Imported from Automake.)
10335         * build-aux/gnupload: Update to version 1.1 of directive file.
10336
10337 2006-10-16  Eric Blake  <ebb9@byu.net>
10338
10339         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
10340         match Automake 1.10a.
10341
10342 2006-10-14  Bruno Haible  <bruno@clisp.org>
10343
10344         * modules/sigprocmask: New file.
10345         * lib/sigprocmask.h: New file.
10346         * lib/sigprocmask.c: New file.
10347         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
10348         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
10349         request sigprocmask.o.
10350         (gl_PREREQ_SIGPROCMASK): New macro.
10351         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
10352         (Depends-on): Add sigprocmask.
10353         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
10354         gt_SIGNALBLOCKING. Test for 'raise' only once.
10355         * lib/fatal-signal.c: Include sigprocmask.h.
10356         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
10357         unblock_fatal_signals): Define always.
10358         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10359         sigprocmask.
10360
10361 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10362
10363         Sync from Automake.
10364         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
10365         which incorrectly sets the mode of an existing destination
10366         directory.  In some cases the unpatched install-sh could do the
10367         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
10368         system.  We hope this is rare in practice, but it's clearly worth
10369         fixing.  Problem reported by Alex Unleashed in
10370         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
10371         Also, don't bother to check for -m bugs unless we're using -m;
10372         suggested by Stepan Kasal.
10373
10374 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10375
10376         Sync from Automake.
10377         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
10378         `-c' flag, so they appear at the same position as in %FASTDEP%
10379         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
10380         which ignores unknown options only after the first non-option.
10381         Bug report against M4 by Nelson H. F. Beebe.
10382
10383 2006-10-13  Jim Meyering  <jim@meyering.net>
10384
10385         Fix a bug in yesterday's change.
10386         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
10387         p->fts_statp->st_dev would be used uninitialized.
10388         Ensures that we always call fts_stat on the very first entry.
10389         Miklos Szeredi reported that find -xdev stopped working.
10390
10391 2006-10-12  Bruno Haible  <bruno@clisp.org>
10392
10393         * gnulib-tool (func_get_automake_snippet): Append an automatically
10394         computed EXTRA_DIST augmentation.
10395         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
10396         * modules/alloca-opt (Makefile.am): Likewise.
10397         * modules/allocsa (Makefile.am): Likewise.
10398         * modules/arcfour (Makefile.am): Likewise.
10399         * modules/arctwo (Makefile.am): Likewise.
10400         * modules/argmatch (Makefile.am): Likewise.
10401         * modules/argz (Makefile.am): Likewise.
10402         * modules/atexit (Makefile.am): Likewise.
10403         * modules/backupfile (Makefile.am): Likewise.
10404         * modules/byteswap (Makefile.am): Likewise.
10405         * modules/c-strtod (Makefile.am): Likewise.
10406         * modules/c-strtold (Makefile.am): Likewise.
10407         * modules/calloc (Makefile.am): Likewise.
10408         * modules/canon-host (Makefile.am): Likewise.
10409         * modules/canonicalize (Makefile.am): Likewise.
10410         * modules/chdir-long (Makefile.am): Likewise.
10411         * modules/chdir-safer (Makefile.am): Likewise.
10412         * modules/check-version (Makefile.am): Likewise.
10413         * modules/chown (Makefile.am): Likewise.
10414         * modules/cloexec (Makefile.am): Likewise.
10415         * modules/close-stream (Makefile.am): Likewise.
10416         * modules/closeout (Makefile.am): Likewise.
10417         * modules/crc (Makefile.am): Likewise.
10418         * modules/csharpexec (Makefile.am): Likewise.
10419         * modules/cycle-check (Makefile.am): Likewise.
10420         * modules/des (Makefile.am): Likewise.
10421         * modules/dev-ino (Makefile.am): Likewise.
10422         * modules/dirfd (Makefile.am): Likewise.
10423         * modules/dirname (Makefile.am): Likewise.
10424         * modules/dup2 (Makefile.am): Likewise.
10425         * modules/eealloc (Makefile.am): Likewise.
10426         * modules/error (Makefile.am): Likewise.
10427         * modules/euidaccess (Makefile.am): Likewise.
10428         * modules/exclude (Makefile.am): Likewise.
10429         * modules/exitfail (Makefile.am): Likewise.
10430         * modules/fcntl-safer (Makefile.am): Likewise.
10431         * modules/fcntl (Makefile.am): Likewise.
10432         * modules/file-type (Makefile.am): Likewise.
10433         * modules/fileblocks (Makefile.am): Likewise.
10434         * modules/filemode (Makefile.am): Likewise.
10435         * modules/filenamecat (Makefile.am): Likewise.
10436         * modules/fnmatch (Makefile.am): Likewise.
10437         * modules/fopen-safer (Makefile.am): Likewise.
10438         * modules/fpending (Makefile.am): Likewise.
10439         * modules/fprintftime (Makefile.am): Likewise.
10440         * modules/free (Makefile.am): Likewise.
10441         * modules/fsusage (Makefile.am): Likewise.
10442         * modules/ftruncate (Makefile.am): Likewise.
10443         * modules/fts (Makefile.am): Likewise.
10444         * modules/gc-arcfour (Makefile.am): Likewise.
10445         * modules/gc-des (Makefile.am): Likewise.
10446         * modules/gc-hmac-md5 (Makefile.am): Likewise.
10447         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
10448         * modules/gc-md4 (Makefile.am): Likewise.
10449         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10450         * modules/gc-sha1 (Makefile.am): Likewise.
10451         * modules/gc (Makefile.am): Likewise.
10452         * modules/getaddrinfo (Makefile.am): Likewise.
10453         * modules/getcwd (Makefile.am): Likewise.
10454         * modules/getdelim (Makefile.am): Likewise.
10455         * modules/getdomainname (Makefile.am): Likewise.
10456         * modules/getgroups (Makefile.am): Likewise.
10457         * modules/gethostname (Makefile.am): Likewise.
10458         * modules/gethrxtime (Makefile.am): Likewise.
10459         * modules/getline (Makefile.am): Likewise.
10460         * modules/getloadavg (Makefile.am): Likewise.
10461         * modules/getlogin_r (Makefile.am): Likewise.
10462         * modules/getndelim2 (Makefile.am): Likewise.
10463         * modules/getopt (Makefile.am): Likewise.
10464         * modules/getpagesize (Makefile.am): Likewise.
10465         * modules/getpass-gnu (Makefile.am): Likewise.
10466         * modules/getpass (Makefile.am): Likewise.
10467         * modules/getsubopt (Makefile.am): Likewise.
10468         * modules/gettime (Makefile.am): Likewise.
10469         * modules/gettimeofday (Makefile.am): Likewise.
10470         * modules/getugroups (Makefile.am): Likewise.
10471         * modules/getusershell (Makefile.am): Likewise.
10472         * modules/glob (Makefile.am): Likewise.
10473         * modules/group-member (Makefile.am): Likewise.
10474         * modules/hard-locale (Makefile.am): Likewise.
10475         * modules/hash (Makefile.am): Likewise.
10476         * modules/hmac-md5 (Makefile.am): Likewise.
10477         * modules/hmac-sha1 (Makefile.am): Likewise.
10478         * modules/human (Makefile.am): Likewise.
10479         * modules/idcache (Makefile.am): Likewise.
10480         * modules/imaxabs (Makefile.am): Likewise.
10481         * modules/imaxdiv (Makefile.am): Likewise.
10482         * modules/inet_ntop (Makefile.am): Likewise.
10483         * modules/inet_pton (Makefile.am): Likewise.
10484         * modules/intprops (Makefile.am): Likewise.
10485         * modules/inttostr (Makefile.am): Likewise.
10486         * modules/inttypes (Makefile.am): Likewise.
10487         * modules/isapipe (Makefile.am): Likewise.
10488         * modules/javaversion (Makefile.am): Likewise.
10489         * modules/lchmod (Makefile.am): Likewise.
10490         * modules/lchown (Makefile.am): Likewise.
10491         * modules/localcharset (Makefile.am): Likewise.
10492         * modules/long-options (Makefile.am): Likewise.
10493         * modules/lstat (Makefile.am): Likewise.
10494         * modules/malloc (Makefile.am): Likewise.
10495         * modules/mathl (Makefile.am): Likewise.
10496         * modules/mbchar (Makefile.am): Likewise.
10497         * modules/md2 (Makefile.am): Likewise.
10498         * modules/md4 (Makefile.am): Likewise.
10499         * modules/md5 (Makefile.am): Likewise.
10500         * modules/memcasecmp (Makefile.am): Likewise.
10501         * modules/memchr (Makefile.am): Likewise.
10502         * modules/memcmp (Makefile.am): Likewise.
10503         * modules/memcoll (Makefile.am): Likewise.
10504         * modules/memcpy (Makefile.am): Likewise.
10505         * modules/memmem (Makefile.am): Likewise.
10506         * modules/memmove (Makefile.am): Likewise.
10507         * modules/mempcpy (Makefile.am): Likewise.
10508         * modules/memrchr (Makefile.am): Likewise.
10509         * modules/memset (Makefile.am): Likewise.
10510         * modules/memxor (Makefile.am): Likewise.
10511         * modules/mkancesdirs (Makefile.am): Likewise.
10512         * modules/mkdir-p (Makefile.am): Likewise.
10513         * modules/mkdir (Makefile.am): Likewise.
10514         * modules/mkdtemp (Makefile.am): Likewise.
10515         * modules/mkstemp (Makefile.am): Likewise.
10516         * modules/mktime (Makefile.am): Likewise.
10517         * modules/modechange (Makefile.am): Likewise.
10518         * modules/mountlist (Makefile.am): Likewise.
10519         * modules/nanosleep (Makefile.am): Likewise.
10520         * modules/obstack (Makefile.am): Likewise.
10521         * modules/openat (Makefile.am): Likewise.
10522         * modules/pagealign_alloc (Makefile.am): Likewise.
10523         * modules/pathmax (Makefile.am): Likewise.
10524         * modules/physmem (Makefile.am): Likewise.
10525         * modules/poll (Makefile.am): Likewise.
10526         * modules/posixtm (Makefile.am): Likewise.
10527         * modules/posixver (Makefile.am): Likewise.
10528         * modules/putenv (Makefile.am): Likewise.
10529         * modules/quote (Makefile.am): Likewise.
10530         * modules/quotearg (Makefile.am): Likewise.
10531         * modules/raise (Makefile.am): Likewise.
10532         * modules/read-file (Makefile.am): Likewise.
10533         * modules/readline (Makefile.am): Likewise.
10534         * modules/readlink (Makefile.am): Likewise.
10535         * modules/readtokens (Makefile.am): Likewise.
10536         * modules/readutmp (Makefile.am): Likewise.
10537         * modules/realloc (Makefile.am): Likewise.
10538         * modules/regex (Makefile.am): Likewise.
10539         * modules/rename-dest-slash (Makefile.am): Likewise.
10540         * modules/rename (Makefile.am): Likewise.
10541         * modules/rijndael (Makefile.am): Likewise.
10542         * modules/rmdir (Makefile.am): Likewise.
10543         * modules/rpmatch (Makefile.am): Likewise.
10544         * modules/safe-read (Makefile.am): Likewise.
10545         * modules/safe-write (Makefile.am): Likewise.
10546         * modules/same-inode (Makefile.am): Likewise.
10547         * modules/same (Makefile.am): Likewise.
10548         * modules/save-cwd (Makefile.am): Likewise.
10549         * modules/savedir (Makefile.am): Likewise.
10550         * modules/setenv (Makefile.am): Likewise.
10551         * modules/settime (Makefile.am): Likewise.
10552         * modules/sha1 (Makefile.am): Likewise.
10553         * modules/sig2str (Makefile.am): Likewise.
10554         * modules/snprintf (Makefile.am): Likewise.
10555         * modules/stat-macros (Makefile.am): Likewise.
10556         * modules/stat-time (Makefile.am): Likewise.
10557         * modules/stdbool (Makefile.am): Likewise.
10558         * modules/stdint (Makefile.am): Likewise.
10559         * modules/stdlib-safer (Makefile.am): Likewise.
10560         * modules/stpcpy (Makefile.am): Likewise.
10561         * modules/stpncpy (Makefile.am): Likewise.
10562         * modules/strcase (Makefile.am): Likewise.
10563         * modules/strcasestr (Makefile.am): Likewise.
10564         * modules/strchrnul (Makefile.am): Likewise.
10565         * modules/strcspn (Makefile.am): Likewise.
10566         * modules/strdup (Makefile.am): Likewise.
10567         * modules/strerror (Makefile.am): Likewise.
10568         * modules/strftime (Makefile.am): Likewise.
10569         * modules/strndup (Makefile.am): Likewise.
10570         * modules/strnlen (Makefile.am): Likewise.
10571         * modules/strpbrk (Makefile.am): Likewise.
10572         * modules/strsep (Makefile.am): Likewise.
10573         * modules/strstr (Makefile.am): Likewise.
10574         * modules/strtod (Makefile.am): Likewise.
10575         * modules/strtoimax (Makefile.am): Likewise.
10576         * modules/strtok_r (Makefile.am): Likewise.
10577         * modules/strtol (Makefile.am): Likewise.
10578         * modules/strtoll (Makefile.am): Likewise.
10579         * modules/strtoul (Makefile.am): Likewise.
10580         * modules/strtoull (Makefile.am): Likewise.
10581         * modules/strtoumax (Makefile.am): Likewise.
10582         * modules/strverscmp (Makefile.am): Likewise.
10583         * modules/sys_socket (Makefile.am): Likewise.
10584         * modules/sys_stat (Makefile.am): Likewise.
10585         * modules/sysexits (Makefile.am): Likewise.
10586         * modules/time_r (Makefile.am): Likewise.
10587         * modules/timegm (Makefile.am): Likewise.
10588         * modules/timespec (Makefile.am): Likewise.
10589         * modules/tmpfile-safer (Makefile.am): Likewise.
10590         * modules/trim (Makefile.am): Likewise.
10591         * modules/unistd-safer (Makefile.am): Likewise.
10592         * modules/unlinkdir (Makefile.am): Likewise.
10593         * modules/unlocked-io (Makefile.am): Likewise.
10594         * modules/userspec (Makefile.am): Likewise.
10595         * modules/utime (Makefile.am): Likewise.
10596         * modules/utimecmp (Makefile.am): Likewise.
10597         * modules/utimens (Makefile.am): Likewise.
10598         * modules/vasnprintf (Makefile.am): Likewise.
10599         * modules/vasprintf (Makefile.am): Likewise.
10600         * modules/vsnprintf (Makefile.am): Likewise.
10601         * modules/xalloc (Makefile.am): Likewise.
10602         * modules/xgetcwd (Makefile.am): Likewise.
10603         * modules/xnanosleep (Makefile.am): Likewise.
10604         * modules/xreadlink (Makefile.am): Likewise.
10605         * modules/xstrtod (Makefile.am): Likewise.
10606         * modules/xstrtol (Makefile.am): Likewise.
10607         * modules/xstrtold (Makefile.am): Likewise.
10608         * modules/yesno (Makefile.am): Likewise.
10609         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
10610
10611 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10612
10613         * modules/error (Makefile.am): Distribute files through
10614         EXTRA_DIST, not lib_SOURCES.
10615
10616 2006-10-12  Eric Blake  <ebb9@byu.net>
10617
10618         * modules/error (Makefile.am): Distribute files in /lib.
10619         * modules/obstack (Makefile.am): Likewise.
10620
10621 2006-10-12  Bruno Haible  <bruno@clisp.org>
10622
10623         * modules/acl (Makefile.am): Distribute all files in lib/ through
10624         EXTRA_DIST.
10625         * modules/arcfour (Makefile.am): Likewise.
10626         * modules/arctwo (Makefile.am): Likewise.
10627         * modules/argmatch (Makefile.am): Likewise.
10628         * modules/argz (Makefile.am): Likewise.
10629         * modules/atexit (Makefile.am): Likewise.
10630         * modules/backupfile (Makefile.am): Likewise.
10631         * modules/c-strtod (Makefile.am): Likewise.
10632         * modules/c-strtold (Makefile.am): Likewise.
10633         * modules/calloc (Makefile.am): Likewise.
10634         * modules/canon-host (Makefile.am): Likewise.
10635         * modules/canonicalize (Makefile.am): Likewise.
10636         * modules/chdir-long (Makefile.am): Likewise.
10637         * modules/chdir-safer (Makefile.am): Likewise.
10638         * modules/check-version (Makefile.am): Likewise.
10639         * modules/chown (Makefile.am): Likewise.
10640         * modules/cloexec (Makefile.am): Likewise.
10641         * modules/close-stream (Makefile.am): Likewise.
10642         * modules/closeout (Makefile.am): Likewise.
10643         * modules/crc (Makefile.am): Likewise.
10644         * modules/cycle-check (Makefile.am): Likewise.
10645         * modules/des (Makefile.am): Likewise.
10646         * modules/dirfd (Makefile.am): Likewise.
10647         * modules/dirname (Makefile.am): Likewise.
10648         * modules/dup2 (Makefile.am): Likewise.
10649         * modules/euidaccess (Makefile.am): Likewise.
10650         * modules/exclude (Makefile.am): Likewise.
10651         * modules/exitfail (Makefile.am): Likewise.
10652         * modules/fcntl-safer (Makefile.am): Likewise.
10653         * modules/file-type (Makefile.am): Likewise.
10654         * modules/fileblocks (Makefile.am): Likewise.
10655         * modules/filemode (Makefile.am): Likewise.
10656         * modules/filenamecat (Makefile.am): Likewise.
10657         * modules/fnmatch (Makefile.am): Likewise.
10658         * modules/fopen-safer (Makefile.am): Likewise.
10659         * modules/fpending (Makefile.am): Likewise.
10660         * modules/fprintftime (Makefile.am): Likewise.
10661         * modules/free (Makefile.am): Likewise.
10662         * modules/fsusage (Makefile.am): Likewise.
10663         * modules/ftruncate (Makefile.am): Likewise.
10664         * modules/fts (Makefile.am): Likewise.
10665         * modules/gc (Makefile.am): Likewise.
10666         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10667         * modules/getaddrinfo (Makefile.am): Likewise.
10668         * modules/getcwd (Makefile.am): Likewise.
10669         * modules/getdelim (Makefile.am): Likewise.
10670         * modules/getdomainname (Makefile.am): Likewise.
10671         * modules/getgroups (Makefile.am): Likewise.
10672         * modules/gethostname (Makefile.am): Likewise.
10673         * modules/gethrxtime (Makefile.am): Likewise.
10674         * modules/getline (Makefile.am): Likewise.
10675         * modules/getloadavg (Makefile.am): Likewise.
10676         * modules/getlogin_r (Makefile.am): Likewise.
10677         * modules/getopt (Makefile.am): Likewise.
10678         * modules/getpass (Makefile.am): Likewise.
10679         * modules/getpass-gnu (Makefile.am): Likewise.
10680         * modules/getsubopt (Makefile.am): Likewise.
10681         * modules/gettime (Makefile.am): Likewise.
10682         * modules/gettimeofday (Makefile.am): Likewise.
10683         * modules/getugroups (Makefile.am): Likewise.
10684         * modules/getusershell (Makefile.am): Likewise.
10685         * modules/glob (Makefile.am): Likewise.
10686         * modules/group-member (Makefile.am): Likewise.
10687         * modules/hard-locale (Makefile.am): Likewise.
10688         * modules/hash (Makefile.am): Likewise.
10689         * modules/hmac-md5 (Makefile.am): Likewise.
10690         * modules/hmac-sha1 (Makefile.am): Likewise.
10691         * modules/human (Makefile.am): Likewise.
10692         * modules/idcache (Makefile.am): Likewise.
10693         * modules/imaxabs (Makefile.am): Likewise.
10694         * modules/imaxdiv (Makefile.am): Likewise.
10695         * modules/inet_ntop (Makefile.am): Likewise.
10696         * modules/inet_pton (Makefile.am): Likewise.
10697         * modules/inttostr (Makefile.am): Likewise.
10698         * modules/isapipe (Makefile.am): Likewise.
10699         * modules/lchown (Makefile.am): Likewise.
10700         * modules/long-options (Makefile.am): Likewise.
10701         * modules/lstat (Makefile.am): Likewise.
10702         * modules/malloc (Makefile.am): Likewise.
10703         * modules/mathl (Makefile.am): Likewise.
10704         * modules/mbchar (Makefile.am): Likewise.
10705         * modules/md2 (Makefile.am): Likewise.
10706         * modules/md4 (Makefile.am): Likewise.
10707         * modules/md5 (Makefile.am): Likewise.
10708         * modules/memcasecmp (Makefile.am): Likewise.
10709         * modules/memchr (Makefile.am): Likewise.
10710         * modules/memcmp (Makefile.am): Likewise.
10711         * modules/memcoll (Makefile.am): Likewise.
10712         * modules/memcpy (Makefile.am): Likewise.
10713         * modules/memmem (Makefile.am): Likewise.
10714         * modules/memmove (Makefile.am): Likewise.
10715         * modules/mempcpy (Makefile.am): Likewise.
10716         * modules/memrchr (Makefile.am): Likewise.
10717         * modules/memset (Makefile.am): Likewise.
10718         * modules/memxor (Makefile.am): Likewise.
10719         * modules/mkancesdirs (Makefile.am): Likewise.
10720         * modules/mkdir (Makefile.am): Likewise.
10721         * modules/mkdir-p (Makefile.am): Likewise.
10722         * modules/mkdtemp (Makefile.am): Likewise.
10723         * modules/mkstemp (Makefile.am): Likewise.
10724         * modules/mktime (Makefile.am): Likewise.
10725         * modules/modechange (Makefile.am): Likewise.
10726         * modules/mountlist (Makefile.am): Likewise.
10727         * modules/nanosleep (Makefile.am): Likewise.
10728         * modules/openat (Makefile.am): Likewise.
10729         * modules/pagealign_alloc (Makefile.am): Likewise.
10730         * modules/physmem (Makefile.am): Likewise.
10731         * modules/poll (Makefile.am): Likewise.
10732         * modules/posixtm (Makefile.am): Likewise.
10733         * modules/posixver (Makefile.am): Likewise.
10734         * modules/putenv (Makefile.am): Likewise.
10735         * modules/quote (Makefile.am): Likewise.
10736         * modules/quotearg (Makefile.am): Likewise.
10737         * modules/raise (Makefile.am): Likewise.
10738         * modules/read-file (Makefile.am): Likewise.
10739         * modules/readline (Makefile.am): Likewise.
10740         * modules/readlink (Makefile.am): Likewise.
10741         * modules/readtokens (Makefile.am): Likewise.
10742         * modules/readutmp (Makefile.am): Likewise.
10743         * modules/realloc (Makefile.am): Likewise.
10744         * modules/regex (Makefile.am): Likewise.
10745         * modules/rename (Makefile.am): Likewise.
10746         * modules/rename-dest-slash (Makefile.am): Likewise.
10747         * modules/rijndael (Makefile.am): Likewise.
10748         * modules/rmdir (Makefile.am): Likewise.
10749         * modules/rpmatch (Makefile.am): Likewise.
10750         * modules/safe-read (Makefile.am): Likewise.
10751         * modules/safe-write (Makefile.am): Likewise.
10752         * modules/same (Makefile.am): Likewise.
10753         * modules/save-cwd (Makefile.am): Likewise.
10754         * modules/savedir (Makefile.am): Likewise.
10755         * modules/setenv (Makefile.am): Likewise.
10756         * modules/settime (Makefile.am): Likewise.
10757         * modules/sha1 (Makefile.am): Likewise.
10758         * modules/sig2str (Makefile.am): Likewise.
10759         * modules/snprintf (Makefile.am): Likewise.
10760         * modules/stdlib-safer (Makefile.am): Likewise.
10761         * modules/stpcpy (Makefile.am): Likewise.
10762         * modules/stpncpy (Makefile.am): Likewise.
10763         * modules/strcase (Makefile.am): Likewise.
10764         * modules/strcasestr (Makefile.am): Likewise.
10765         * modules/strchrnul (Makefile.am): Likewise.
10766         * modules/strcspn (Makefile.am): Likewise.
10767         * modules/strdup (Makefile.am): Likewise.
10768         * modules/strerror (Makefile.am): Likewise.
10769         * modules/strftime (Makefile.am): Likewise.
10770         * modules/strndup (Makefile.am): Likewise.
10771         * modules/strnlen (Makefile.am): Likewise.
10772         * modules/strpbrk (Makefile.am): Likewise.
10773         * modules/strsep (Makefile.am): Likewise.
10774         * modules/strstr (Makefile.am): Likewise.
10775         * modules/strtod (Makefile.am): Likewise.
10776         * modules/strtoimax (Makefile.am): Likewise.
10777         * modules/strtok_r (Makefile.am): Likewise.
10778         * modules/strtol (Makefile.am): Likewise.
10779         * modules/strtoll (Makefile.am): Likewise.
10780         * modules/strtoul (Makefile.am): Likewise.
10781         * modules/strtoull (Makefile.am): Likewise.
10782         * modules/strtoumax (Makefile.am): Likewise.
10783         * modules/strverscmp (Makefile.am): Likewise.
10784         * modules/time_r (Makefile.am): Likewise.
10785         * modules/timegm (Makefile.am): Likewise.
10786         * modules/tmpfile-safer (Makefile.am): Likewise.
10787         * modules/unistd-safer (Makefile.am): Likewise.
10788         * modules/unlinkdir (Makefile.am): Likewise.
10789         * modules/userspec (Makefile.am): Likewise.
10790         * modules/utime (Makefile.am): Likewise.
10791         * modules/utimecmp (Makefile.am): Likewise.
10792         * modules/utimens (Makefile.am): Likewise.
10793         * modules/vasnprintf (Makefile.am): Likewise.
10794         * modules/vasprintf (Makefile.am): Likewise.
10795         * modules/vsnprintf (Makefile.am): Likewise.
10796         * modules/xalloc (Makefile.am): Likewise.
10797         * modules/xgetcwd (Makefile.am): Likewise.
10798         * modules/xnanosleep (Makefile.am): Likewise.
10799         * modules/xreadlink (Makefile.am): Likewise.
10800         * modules/xstrtod (Makefile.am): Likewise.
10801         * modules/xstrtol (Makefile.am): Likewise.
10802         * modules/xstrtold (Makefile.am): Likewise.
10803         * modules/yesno (Makefile.am): Likewise.
10804
10805 2006-10-12  Jim Meyering  <jim@meyering.net>
10806
10807         * m4/getloadavg.m4: Revert the change below.
10808
10809         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
10810         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
10811         fail with a symlink, which is what coreutils' ./bootstrap now
10812         creates by default.
10813
10814 2006-10-12  Bruno Haible  <bruno@clisp.org>
10815
10816         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
10817         mingw.
10818         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
10819         MSVC and mingw explicitly.
10820
10821 2006-10-11  Simon Josefsson  <jas@extundo.com>
10822             Bruno Haible  <bruno@clisp.org>
10823
10824         Add support for multiple gnulib-tool invocations in the scope of a
10825         single configure.ac file.
10826         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
10827         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
10828         with the same contents as the _LIBADD variable.
10829         (func_emit_initmacro_start, func_emit_initmacro_end,
10830         func_emit_initmacro_done): New functions.
10831         (func_import, func_create_testdir): Invoke them. Allow the identifiers
10832         gl_LIBOBJS and gl_LTLIBOBJS.
10833
10834 2006-10-11  Bruno Haible  <bruno@clisp.org>
10835
10836         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
10837         (func_create_testdir): Don't create po/Makefile.am, don't invoke
10838         autoreconf. Instead, invoke autopoint explicitly but move back the
10839         *.m4 files from gnulib.
10840
10841 2006-10-11  Bruno Haible  <bruno@clisp.org>
10842
10843         * gnulib-tool (func_usage): Make module names after --create-testdir
10844         optional.
10845         (func_create_testdir): If no module was specified, use nearly all
10846         modules.
10847
10848 2006-10-12  Jim Meyering  <jim@meyering.net>
10849
10850         Big performance improvement for fts-based tools that use FTS_NOSTAT.
10851         Avoid spurious inode-mismatch problems on non-POSIX file systems.
10852         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
10853         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
10854         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
10855         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
10856         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
10857         (fts_set_stat_required): New function.
10858         (fts_open): Defer the calls to fts_stat, if possible or requested.
10859         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
10860         into fts_stat itself.
10861         (fts_read): Perform any required (deferred) fts_stat call.
10862         (fts_build): Likewise, for the directory we're about to open and read.
10863         In the readdir loop, carefully decide whether each entry will require
10864         an eventual call to fts_stat, using dirent.d_type info if available.
10865         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
10866         a command line argument into this function.  Update all callers.
10867         Map a return value of FTS_DOT to FTS_D for a command line argument.
10868         * modules/fts (Depends-on): Add d-type.  Alphabetize.
10869         Thanks to Miklos Szeredi for his tenacity and for the initial
10870         bug report about "find" failing on a FUSE-based file system.
10871
10872         * lib/fts.c (fts_open): Use consistent indentation.
10873
10874 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10875
10876         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
10877         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
10878         reported by Jim Meyering.  All uses of cache variables renamed
10879         to match Autoconf's.
10880         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
10881         the other one.
10882
10883         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10884         Fix misspelling in diagnostic.
10885
10886 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10887
10888         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
10889         defined.  Problem reported by Matthew Woehlke.
10890
10891         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
10892         Add support for Tandem NonStop R series.
10893         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
10894         Use new macro.
10895
10896         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
10897         (has_trailing_slash): Omit size arg; all callers changed.
10898         Omit 'inline', since it doesn't help performance and we'd
10899         need to configure it.
10900         Don't count //, ///, etc. as having a trailing slash.
10901         As a side effect, this removes a C99ism reported by Matthew Woehlke.
10902         (rpl_rename_dest_slash): On failure, use rename's errno rather
10903         than (in some cases) an incorrect or junk errno.
10904         Simplify code by removing need to compute length; this does
10905         cause it to make two passes instead of one over the file name,
10906         but it's worth it.
10907
10908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
10909         change, since Autoconf's version may no longer be appropriate now
10910         that we are using CVS Autoconf's version.  Add support for Tandem.
10911
10912 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10913             Bruno Haible  <bruno@clisp.org>
10914
10915         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
10916         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
10917         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
10918         gl_AC_TYPE_LONG_LONG.
10919
10920         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
10921         instead of HAVE_LONG_LONG.
10922         * lib/printf-args.c (printf_fetchargs): Likewise.
10923         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10924         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10925         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10926         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
10927         gl_AC_TYPE_LONG_LONG.
10928
10929 2006-10-11  Bruno Haible  <bruno@clisp.org>
10930
10931         * m4/longlong.m4: Add comments.
10932         * m4/ulonglong.m4: Likewise.
10933
10934 2006-10-10  Bruno Haible  <bruno@clisp.org>
10935
10936         Make it possible to #define stpcpy, strdup to aliases.
10937         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
10938         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
10939
10940 2006-10-10  Bruno Haible  <bruno@clisp.org>
10941
10942         Make it possible to #define gcd to an alias.
10943         * lib/gcd.c: Include config.h.
10944
10945 2006-10-10  Bruno Haible  <bruno@clisp.org>
10946
10947         Make it possible to #define c_isascii to an alias.
10948         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
10949         defined. Undefine the macros before defining them, to avoid gcc
10950         warnings.
10951         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
10952         define NO_C_CTYPE_MACROS early.
10953
10954 2006-10-10  Bruno Haible  <bruno@clisp.org>
10955
10956         Make it possible to #define set_program_name to an alias.
10957         * lib/progname.c: Don't undefine set_program_name; instead, undefine
10958         ENABLE_RELOCATABLE early.
10959
10960 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10961
10962         Port to Tandem NSK OSS, which has 64-bit signed int but at most
10963         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
10964         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
10965         More generally, don't assume that 64-bit signed int is available
10966         if unsigned int is, and vice versa.
10967         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
10968         unsigned symbols, not on their signed counterparts.
10969         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
10970         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
10971         (UINT64_C, UINTMAX_C):
10972         Likewise.
10973         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
10974         unsigned counterparts.
10975         (Have_long_long, Unsigned): New macros.
10976         (Int): Renamed from INT.
10977         (strtoimax): Use the new macros.
10978         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
10979         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
10980         * modules/inttypes (inttypes.h): Substitute
10981         HAVE_UNSIGNED_LONG_LONG_INT.
10982         * modules/stdint (stdint.h): Likewise.
10983         (Files): Add m4/ulonglong.m4.
10984
10985 2006-10-10  Bruno Haible  <bruno@clisp.org>
10986
10987         Fix a gcc -Wshadow warning.
10988         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
10989         to 'bucket'.
10990         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
10991         gl_linked_indexof_from_to): Likewise.
10992         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10993         Likewise.
10994         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
10995         Likewise.
10996         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
10997         Reported by Eric Blake.
10998
10999 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11000
11001         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
11002         for NetBSD.  Problem reported by Bruno Haible.
11003
11004 2006-10-09  Jim Meyering  <jim@meyering.net>
11005
11006         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
11007         Patch from Bruno Haible.
11008
11009 2006-10-09  Jim Meyering  <jim@meyering.net>
11010
11011         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
11012         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
11013         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
11014
11015 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11016
11017         Don't include <config.h> twice; this doesn't work in some cases,
11018         e.g., when config.h has "#define intmax_t long long int" and
11019         we include <config.h>, <inttypes.h>, <config.h> in that order.
11020         Problem reported by Matthew Woehlke in:
11021         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
11022         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
11023         * lib/fts-cycle.c: Don't include config.h.
11024         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
11025         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
11026         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
11027         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
11028         inttypes.h.
11029         * lib/xstrtoumax.c: Likewise.
11030         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
11031         __strtol and the like, so that this module is more like its siblings.
11032         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
11033         Remove; no longer needed now that we assume gnulib inttypes.h.
11034
11035 2006-10-08  Bruno Haible  <bruno@clisp.org>
11036
11037         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
11038         option.
11039
11040 2006-10-07  Jim Meyering  <jim@meyering.net>
11041
11042         * modules/inttypes (inttypes.h): Revert what seems to have been
11043         an inadvertent part of today's change: use "|", not "/" in the
11044         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
11045
11046 2006-10-07  Bruno Haible  <bruno@clisp.org>
11047
11048         * modules/sublist: New file.
11049
11050 2006-10-07  Bruno Haible  <bruno@clisp.org>
11051
11052         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
11053         * modules/argz (argz.h): Likewise.
11054         * modules/arpa_inet (arpa/inet.h): Likewise.
11055         * modules/byteswap (byteswap.h): Likewise.
11056         * modules/configmake (configmake.h): Likewise.
11057         * modules/fcntl (fcntl.h): Likewise.
11058         * modules/fnmatch (fnmatch.h): Likewise.
11059         * modules/getopt (getopt.h): Likewise.
11060         * modules/glob (glob.h): Likewise.
11061         * modules/inttypes (inttypes.h): Likewise.
11062         * modules/netinet_in (netinet/in.h): Likewise.
11063         * modules/poll (poll.h): Likewise.
11064         * modules/stdbool (stdbool.h): Likewise.
11065         * modules/stdint (stdint.h): Likewise.
11066         * modules/sys_select (sys/select.h): Likewise.
11067         * modules/sys_socket (sys/socket.h): Likewise.
11068         * modules/sys_stat (sys/stat.h): Likewise.
11069         * modules/sysexits (sysexits.h): Likewise.
11070         * modules/unistd (unistd.h): Likewise.
11071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11072         Add a "DO NOT EDIT" comment to the generated file.
11073         (func_import): Likewise for gnulib-comp.m4.
11074
11075 2006-10-07  Bruno Haible  <bruno@clisp.org>
11076
11077         * lib/gl_sublist.h: New file.
11078         * lib/gl_sublist.c: New file.
11079
11080 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11081
11082         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
11083         name (relative to the original working directory) and the file
11084         name component (relative to the temporary working directory).  All
11085         callers changed.
11086         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
11087         * lib/mkdir-p.c (make_dir_parents): Likewise.
11088         * lib/mkdir-p.h (make_dir_parents): Likewise.
11089
11090 2006-10-06  Eric Blake  <ebb9@byu.net>
11091
11092         Define several macros for use by the clean-temp module.
11093         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
11094         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
11095         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
11096
11097         * lib/clean-temp.h (close_stream_temp): New declaration.
11098         * lib/clean-temp.c (includes): Pull in headers according to what
11099         other modules are in use.
11100         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
11101
11102 2006-10-06  Bruno Haible  <bruno@clisp.org>
11103
11104         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
11105         instead of fopen, fwriteerror.
11106
11107 2006-10-06  Bruno Haible  <bruno@clisp.org>
11108
11109         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
11110         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
11111         int.
11112         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
11113         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
11114         Return an error indicator.
11115         Suggested by Eric Blake.
11116
11117 2006-10-06  Bruno Haible  <bruno@clisp.org>
11118
11119         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
11120         Reported by Eric Blake.
11121
11122 2006-10-06  Bruno Haible  <bruno@clisp.org>
11123
11124         * modules/closeout (Description): Mention stderr too.
11125
11126 2006-10-06  Bruno Haible  <bruno@clisp.org>
11127         and Paul Eggert  <eggert@cs.ucla.edu>
11128
11129         * lib/closeout.c (close_stdout): Also close stderr.
11130         * lib/closeout.h: Update comment.
11131
11132 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11133
11134         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
11135         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
11136         * lib/dirchownmod.c: Include lchown.h.
11137         * lib/lchown.c: Don't include files that lchown.h now includes.
11138         Don't declare chown, since lchown.h now does that.
11139         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
11140         (lchown): Define to rpl_chown if lchown is declared but
11141         does not exist.  Declare using a prototype if lchown is not
11142         declared.  Add a copyright notice.
11143         * lib/mkstemp.h: Include <unistd.h>.
11144         * lib/openat.c: Include lchown.h.
11145
11146         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
11147         we now test for that separately.
11148         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
11149         rather than O_NOFOLLOW, when testing whether it's possible to
11150         avoid a race condition reliably.
11151         * lib/savewd.c (savewd_chdir): Likewise.
11152
11153         Remove macros that are no longer needed now that stdint.h is
11154         reliable.
11155         * lib/fsusage.c (UINTMAX_MAX): Remove.
11156         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
11157         * lib/utimecmp.c (SIZE_MAX): Remove.
11158
11159         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
11160
11161         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
11162         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
11163         O_NOATIME works.
11164
11165 2006-10-05  Bruno Haible  <bruno@clisp.org>
11166
11167         * lib/gl_list.h (gl_sortedlist_search_from_to,
11168         gl_sortedlist_indexof_from_to): New declarations.
11169         (gl_list_implementation): New fields sortedlist_search_from_to,
11170         sortedlist_indexof_from_to.
11171         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
11172         inline functions.
11173         * lib/gl_list.c (gl_sortedlist_search_from_to,
11174         gl_sortedlist_indexof_from_to): New functions.
11175         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
11176         function.
11177         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
11178         (gl_array_sortedlist_search_from_to): New function.
11179         (gl_array_list_implementation): Update.
11180         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
11181         function.
11182         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
11183         (gl_carray_sortedlist_search_from_to): New function.
11184         (gl_carray_list_implementation): Update.
11185         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
11186         gl_linked_sortedlist_indexof_from_to): New functions.
11187         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
11188         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
11189         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
11190         gl_tree_sortedlist_indexof_from_to): New functions.
11191         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
11192         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
11193         Update.
11194         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
11195         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
11196         Update.
11197
11198 2006-10-05  Bruno Haible  <bruno@clisp.org>
11199
11200         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
11201         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
11202         (struct gl_list_implementation): Add fields search_from_to,
11203         indexof_from_to. Remove fields search, indexof.
11204         (gl_list_search): Use the search_from_to method.
11205         (gl_list_search_from, gl_list_search_from_to): New functions.
11206         (gl_list_indexof): Use the indexof_from_to method.
11207         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
11208         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
11209         (gl_list_search_from, gl_list_search_from_to): New functions.
11210         (gl_list_indexof): Use the indexof_from_to method.
11211         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
11212         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
11213         gl_array_indexof. Add start_index, end_index arguments.
11214         (gl_array_search_from_to): Renamed from gl_array_search. Add
11215         start_index, end_index arguments.
11216         (gl_array_remove, gl_array_list_implementation): Update.
11217         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
11218         gl_carray_indexof. Add start_index, end_index arguments.
11219         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
11220         start_index, end_index arguments.
11221         (gl_carray_remove, gl_carray_list_implementation): Update.
11222         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
11223         gl_linked_search. Add start_index, end_index arguments.
11224         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
11225         start_index, end_index arguments.
11226         (gl_linked_remove): Update.
11227         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
11228         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
11229         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
11230         field to 'size_t'.
11231         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
11232         gl_tree_search. Add start_index, end_index arguments.
11233         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
11234         start_index, end_index arguments.
11235         (gl_tree_remove): Update.
11236         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
11237         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
11238         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
11239         function.
11240         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
11241         gl_tree_search. Add start_index, end_index arguments.
11242         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
11243         start_index, end_index arguments.
11244         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
11245         Update.
11246         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
11247
11248 2006-10-05  Bruno Haible  <bruno@clisp.org>
11249
11250         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
11251
11252         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
11253         fwriteerror_temp): New declarations.
11254         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
11255         (descriptors): New variable.
11256         (cleanup): First, close the descriptors.
11257         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
11258         fclose_temp, fwriteerror_temp): New functions.
11259
11260 2006-10-04  Jim Meyering  <jim@meyering.net>
11261
11262         * lib/fts.c (fts_open): Tiny comment change.
11263
11264 2006-10-04  Bruno Haible  <bruno@clisp.org>
11265
11266         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
11267         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
11268         gl_LOCK_BODY.
11269         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
11270         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
11271         gl_LOCK_EARLY_BODY.
11272         (gl_LOCK): Require gl_LOCK_BODY.
11273
11274 2006-10-04  Bruno Haible  <bruno@clisp.org>
11275
11276         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
11277         (gl_oset_search_atleast): New declaration.
11278         (struct gl_oset_implementation): Add field 'search_atleast'.
11279         (gl_oset_search_atleast): New inline function.
11280         * lib/gl_oset.c (gl_oset_search_atleast): New function.
11281         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
11282         (gl_array_oset_implementation): Update.
11283         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
11284         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
11285         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
11286
11287 2006-10-04  Bruno Haible  <bruno@clisp.org>
11288
11289         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
11290
11291 2006-10-03  Bruno Haible  <bruno@clisp.org>
11292
11293         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
11294         from gl_avltreehash_list_implementation.
11295
11296 2006-10-03  Bruno Haible  <bruno@clisp.org>
11297
11298         * lib/gl_oset.c (gl_oset_add): Fix return type.
11299
11300 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
11301
11302         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
11303
11304 2006-10-02  Eric Blake  <ebb9@byu.net>
11305
11306         * modules/strnlen (Depends-on): Add extensions.
11307
11308 2006-10-02  Eric Blake  <ebb9@byu.net>
11309
11310         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
11311         definition in 2.60+.
11312
11313 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11314
11315         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
11316         checks.
11317
11318 2006-10-02  Bruno Haible  <bruno@clisp.org>
11319
11320         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
11321         to the AUTOMAKE_OPTIONS.
11322         Reported by Jim Meyering.
11323
11324 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
11325
11326         Work around bug in Solaris 10 /proc file system:
11327         /proc/self/fd/NNN/.. isn't the parent directory of
11328         the directory whose file descriptor is NNN.  This needs to
11329         be worked around at run time, not compile time, since a
11330         program might be built on Solaris 8, where things work, and
11331         run on Solaris 10.
11332         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
11333         to use the following interface instead:
11334         (OPENAT_BUFFER_SIZE): New macro.
11335         (openat_proc_name): New function.
11336         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
11337         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
11338         Likewise.
11339         * lib/openat-proc.c: New file.
11340         * modules/openat (Files): Add lib/openat-proc.c.
11341         (Depends-on): Add same-inode, stdbool.
11342         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
11343
11344 2006-09-29  Bruno Haible  <bruno@clisp.org>
11345
11346         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
11347         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
11348         argument. Set stdout_closed before testing for ferror, not after.
11349         (fwriteerror, fwriteerror_no_ebadf): New functions.
11350
11351 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11352
11353         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
11354
11355 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
11356
11357         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
11358         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
11359
11360 2006-09-28  Jim Meyering  <jim@meyering.net>
11361
11362         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
11363         Include <unistd.h>.
11364
11365 2006-09-28  Bruno Haible  <bruno@clisp.org>
11366
11367         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
11368         * modules/linkedhash-list (Depends-on): Likewise.
11369         * modules/rbtreehash-list (Depends-on): Likewise.
11370
11371 2006-09-28  Bruno Haible  <bruno@clisp.org>
11372
11373         * lib/strndup.h: Simplify the redefinition of strndup.
11374         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
11375         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
11376
11377 2006-09-28  Bruno Haible  <bruno@clisp.org>
11378
11379         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
11380         * lib/gl_linkedhash_list.c: Likewise.
11381         * lib/gl_rbtreehash_list.c: Likewise.
11382
11383 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
11384
11385         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
11386         getaddrinfo.
11387
11388         * lib/__fpending.h: Don't include <stdio_ext.h> unless
11389         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
11390         it causes <stdio_ext.h> to cause a compile-time error.
11391         Problem reported by Nelson H. F. Beebe.
11392         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
11393         of HAVE_DECL___PENDING.
11394
11395         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
11396         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
11397         declaration.
11398
11399 2006-09-27  Jim Meyering  <jim@meyering.net>
11400
11401         This file could end up with a definition for a function
11402         named __strndup, rather than rpl_strndup on a system with
11403         incomplete weak_alias support.
11404         * lib/strndup.c (strndup): Rename from __strndup.
11405         Remove #defines that used to map __strndup to strndup.
11406         Don't use K&R prototypes.
11407         Remove LIBC-related code, since this file is not sync'd with glibc.
11408         * lib/strndup.h: Revamp, accordingly.
11409         * m4/strndup.m4: Modernize.
11410
11411 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11412
11413         * modules/savewd (Depends-on): Add 'raise'.
11414         * lib/savewd.c: Include <signal.h>, for 'raise'.
11415
11416 2006-09-26  Jim Meyering  <jim@meyering.net>
11417
11418         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
11419         when we detect Darwin 8.7.0's acl_get_file bug.
11420         Rearrange to perform the new (below) run-test while $LIBS
11421         contains any acl-related library.  Set USE_ACL at the end.
11422         (gl_ACL_GET_FILE): New function.
11423
11424 2006-09-26  Eric Blake  <ebb9@byu.net>
11425
11426         * lib/verror.c: Include <config.h> unconditionally.
11427
11428 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11429
11430         * modules/clock-time (Maintainer): Add self.
11431         * modules/getlogin_r (Depends-on): Add extensions.
11432
11433 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11434
11435         * modules/clock-time: New module.
11436         * modules/nanosleep (Depends-on): Add clock-time.
11437         * modules/gethrxtime (Depends-on): Likewise.
11438         * modules/gettime (Depends-on): Likewise.
11439         * modules/settime (Depends-on): Likewise.
11440
11441         * modules/fts-lgpl: Depend on openat.
11442         * modules/mkancesdirs: Depend on savewd.
11443         * modules/mkdir-p: Likewise.
11444
11445 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11446
11447         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
11448
11449         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
11450         `gl_have_arbitrary_file_name_length_limit' to
11451         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
11452         actually works between configure runs.
11453
11454 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11455             Bruno Haible  <bruno@clisp.org>
11456
11457         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
11458
11459 2006-09-25  Jim Meyering  <jim@meyering.net>
11460
11461         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
11462         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
11463
11464 2006-09-25  Eric Blake  <ebb9@byu.net>
11465
11466         * gnulib-tool (func_import, func_create_testdir): Fix typos in
11467         exec's in 2006-09-18 patch when shuffling fds.
11468
11469 2006-09-25  Bruno Haible  <bruno@clisp.org>
11470
11471         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
11472         Reported by Jim Meyering.
11473
11474 2006-09-24  Jim Meyering  <jim@meyering.net>
11475
11476         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
11477         compare a pointer against a literal "0".  That caused failures with
11478         at least HP-UX's hpcc.
11479
11480 2006-09-22  Simon Josefsson  <jas@extundo.com>
11481
11482         * modules/gc-sha1:
11483         * modules/gc-md4:
11484         * modules/gc-hmac-sha1:
11485         * modules/gc-hmac-md5:
11486         * modules/gc-des:
11487         * modules/gc-arcfour: Distribute more files.
11488
11489 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11490
11491         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
11492         (gl_linked_iterator_from_to): Initialize struct completely.
11493         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
11494         (gl_tree_iterator_from_to): Likewise
11495         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
11496         * lib/gl_array_list.c [lint] (gl_array_iterator)
11497         (gl_array_iterator_from_to): Likewise.
11498         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
11499         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
11500         (gl_carray_iterator_from_to): Likewise.
11501
11502         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
11503         * lib/md4.c (md4_process_block): Remove unused variable.
11504         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
11505         parentheses for clarity.
11506
11507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11508
11509         * modules/bison-i18n (Depends-on): Add gettext.
11510
11511 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11512
11513         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
11514         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11515         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
11516         also add missing comma that caused broken test.
11517         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
11518         stdlib.h, for `abort'.
11519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
11520         variables.
11521         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
11522         include unistd.h if present, for `rmdir'.
11523         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
11524         variables.
11525         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
11526         in the process include standard headers for prototypes.
11527         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
11528         gets declared on GNU/Linux.
11529         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
11530         unistd.h, for `rmdir'.
11531         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
11532
11533         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
11534         always true.
11535         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
11536
11537         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
11538
11539 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11540
11541         * gnulib-tool (func_version): Create output all at once.  This
11542         may help avoid triggering unnecessary SIGPIPEs, and at any
11543         rate it doesn't hurt.
11544
11545 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11546             Bruno Haible  <bruno@clisp.org>
11547
11548         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
11549         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11550         * m4/signed.m4 (bh_C_SIGNED): Likewise.
11551
11552         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
11553         (gl_FUNC_VASPRINTF): Invoke it.
11554
11555 2006-09-22  Bruno Haible  <bruno@clisp.org>
11556
11557         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
11558         getloadavg.c as first argument.
11559
11560 2006-09-22  Bruno Haible  <bruno@clisp.org>
11561
11562         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
11563         at the beginning of the gl_INIT macro.
11564         * modules/getloadavg (configure.ac): Pass $gl_source_base to
11565         gl_GETLOADAVG.
11566
11567 2006-09-22  Bruno Haible  <bruno@clisp.org>
11568
11569         * gnulib-tool (func_create_megatestdir): Don't include the config-h
11570         module.
11571         Suggested by Ralf Wildenhues.
11572
11573 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11574
11575         Import this patch from libc:
11576
11577         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11578
11579         * lib/regex_internal.c (re_string_reconstruct): Handle
11580         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11581         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11582         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11583         re_string_context_at.
11584
11585         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
11586         now requires it.
11587         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
11588         gl_REGEX now does it for us.
11589         (gl_REGEX): Add test taken from
11590         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
11591
11592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
11593         Check that large offsets work.  Modernize Autoconf usages.
11594         Prefer "yes" to mean a good thing rather than a bad.
11595         Don't put "#define mkstemp" in config.h, as this might interfere
11596         with standard system headers that "#define mkstemp mkstemp64".
11597
11598         * modules/mkstemp (Depends-on): Add extensions, so that
11599         mkstemp is visible on some platforms.
11600         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
11601         (Include): Change to "mkstemp.h" from <stdlib.h>.
11602         (Files): Add mkstemp.h.
11603
11604         * lib/mkstemp.h: New file, since some standard headers
11605         #define mkstemp.
11606         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
11607         Include "mkstemp.h".
11608         Make the _LIBC code resemble glibc original more,
11609         e.g., use K&R style.
11610         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
11611         (mkstemp): Remove, since mkstemp.h does this for us.
11612         * lib/stdlib--.h: Include mkstemp.h.
11613
11614         Import this patch from libc:
11615
11616         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
11617
11618         * lib/tempname.c (__gen_tempname): Change attempts_min
11619         into a macro.  Use preprocessor to decide how to initialize
11620         attempts [Coverity CID 67].
11621
11622 2006-09-20  Bruno Haible  <bruno@clisp.org>
11623
11624         * lib/mkdtemp.c: Import from libc.
11625         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
11626                 * sysdeps/posix/tempname.c (__gen_tempname): Change
11627                 attempts_min into a macro.  Use preprocessor to decide how to
11628                 initialize attempts [Coverity CID 67].
11629         2001-11-27  Paul Eggert  <eggert@twinsun.com>
11630                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11631                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11632
11633 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11634
11635         * gnulib-tool (func_exit): New function, to allow to pass the
11636         exit status portably through the trap.  Use everywhere.
11637         (--help, --version): Signal a write error.
11638         (trap): catch SIGPIPE, for write errors.
11639         Exit at the end of the trap, with the correct exit status.
11640
11641 2006-09-19  Karl Berry  <karl@gnu.org>
11642
11643         * doc/gnulib.texi: note about the license texinfo files.
11644
11645 2006-09-19  Eric Blake  <ebb9@byu.net>
11646
11647         * gnulib-tool: Avoid space-tab.
11648
11649 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11650
11651         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
11652         that prevented coreutils 6.1 from building.  Problem reported
11653         by Petter Reinholdtsen.
11654
11655 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11656
11657         * gnulib-tool (avoidlist): Fix typo that broke options like
11658         --avoid=lock that are used by coreutils bootstrap.
11659
11660 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
11661
11662         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
11663         more systematically.
11664
11665 2006-09-18  Jim Meyering  <jim@meyering.net>
11666
11667         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
11668
11669 2006-09-18  Bruno Haible  <bruno@clisp.org>
11670
11671         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
11672
11673 2006-09-18  Bruno Haible  <bruno@clisp.org>
11674
11675         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
11676         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
11677         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
11678         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
11679         * m4/gettext.m4: Require autoconf >= 2.52.
11680         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
11681         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
11682         of gl_cv_header_inttypes_h.
11683
11684 2006-09-18  Bruno Haible  <bruno@clisp.org>
11685
11686         * lib/javaversion.c: Include configmake.h.
11687
11688 2006-09-18  Bruno Haible  <bruno@clisp.org>
11689
11690         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
11691         avoid that the while loops be executed in a subshell.
11692
11693 2006-09-18  Bruno Haible  <bruno@clisp.org>
11694
11695         * MODULES.html.sh (func_module): Break long lines.
11696         Suggested by Bruce Korb <bkorb@gnu.org>.
11697
11698 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11699
11700         Speed up by a factor of 1.12.
11701         * gnulib-tool (nl): New variable.
11702         (func_import): Rewrite include directive extraction to only read each
11703         directive once.
11704
11705 2006-09-17  Bruno Haible  <bruno@clisp.org>
11706
11707         * modules/javaversion (Makefile.am): Remove DEFS setting.
11708         (Depends-on): Add configmake, for PKGDATADIR definition.
11709
11710 2006-09-17  Bruno Haible  <bruno@clisp.org>
11711
11712         * gnulib-tool (func_create_testdir): Rewrite all files at once.
11713
11714 2006-09-17  Bruno Haible  <bruno@clisp.org>
11715
11716         * gnulib-tool (func_append): New function, stolen from libtool.m4.
11717         (func_modules_transitive_closure, func_modules_add_dummy,
11718         func_modules_to_filelist, func_import, func_create_testdir,
11719         func_create_megatestdir, ...): Use it wherever possible.
11720         Suggested by Ralf Wildenhues.
11721
11722 2006-09-16  Karl Berry  <karl@gnu.org>
11723
11724         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
11725         to avoid sectioning errors.
11726         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
11727         [ifinfo]: blank line after @center-ed titles.
11728         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
11729         Spell FSF address consistently with others.
11730         (These changes approved by rms.)
11731
11732 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11733
11734         Speed up by a factor of 1.61.
11735         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
11736         already checked module names again.
11737
11738 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11739
11740         Speed up by a factor of 1.13.
11741         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
11742         for new_files, and the input to func_add_or_update.
11743
11744 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11745
11746         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
11747         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
11748
11749 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11750
11751         * modules/mkancesdirs (Depends-on): Add fcntl.
11752         * modules/savewd: New file.
11753         * MODULES.html.sh (File system functions): Add savewd.
11754
11755         * modules/configmake (Makefile.am): Add support for the
11756         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
11757
11758 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11759
11760         * m4/savewd.m4: New file.
11761
11762 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11763
11764         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
11765         (dirchownmod): New arg FD.  All callers changed.
11766         Use FD rather than opening the directory ourself, as opening is
11767         now the caller's responsibility.
11768         * lib/dirchownmod.h: Likewise.
11769         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
11770         hosts that require <sys/types.h> before <sys/stat.h>.  Include
11771         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
11772         (test_dir): Remove.
11773         (mkancesdirs): Return length of prefix of FILE that has already
11774         been made, or -2 if there is a child doing the work.  Redo
11775         algorithm so that it is O(N) rather than O(N**2).  Optimize away
11776         ".", and treat ".." specially since it might stray back into
11777         already-created areas.  Use a subprocess if necessary.  New arg
11778         WD; all users changed.  MAKE_DIR function should now return 1
11779         if it creates a directory that is not readable.  Return -2 if
11780         a child process is spun off.
11781         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
11782         Adjust signature to match code.
11783         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
11784         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
11785         all users changed.
11786         * lib/savewd.c, lib/savewd.h: New files.
11787
11788 2006-09-15  Jim Meyering  <jim@meyering.net>
11789
11790         * modules/rename-dest-slash: New module.
11791         * MODULES.html.sh (posix_compat): Add it here.
11792
11793         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
11794
11795 2006-09-15  Jim Meyering  <jim@meyering.net>
11796
11797         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
11798         file.
11799
11800         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
11801
11802 2006-09-15  Jim Meyering  <jim@meyering.net>
11803
11804         * lib/rename-dest-slash.c (has_trailing_slash): Use
11805         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
11806         (rpl_rename_dest_slash): Perform the cheaper trailing slash
11807         test before testing whether SRC is a directory.
11808         Suggestions from Bruno Haible.
11809
11810         Avoid a warning about an unused variable.
11811         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
11812         into the #ifdef block where it's used.
11813
11814         * lib/rename-dest-slash.c: New file.
11815
11816 2006-09-14  Bruno Haible  <bruno@clisp.org>
11817
11818         * lib/allocsa.c: Include <config.h> unconditionally.
11819         * lib/asnprintf.c: Likewise.
11820         * lib/asprintf.c: Likewise.
11821         * lib/c-strcasecmp.c: Likewise.
11822         * lib/c-strcasestr.c: Likewise.
11823         * lib/c-strncasecmp.c: Likewise.
11824         * lib/c-strstr.c: Likewise.
11825         * lib/classpath.c: Likewise.
11826         * lib/clean-temp.c: Likewise.
11827         * lib/concatpath.c: Likewise.
11828         * lib/copy-file.c: Likewise.
11829         * lib/csharpcomp.c: Likewise.
11830         * lib/csharpexec.c: Likewise.
11831         * lib/execute.c: Likewise.
11832         * lib/fatal-signal.c: Likewise.
11833         * lib/findprog.c: Likewise.
11834         * lib/fwriteerror.c: Likewise.
11835         * lib/gl_array_list.c: Likewise.
11836         * lib/gl_array_oset.c: Likewise.
11837         * lib/gl_avltree_list.c: Likewise.
11838         * lib/gl_avltree_oset.c: Likewise.
11839         * lib/gl_avltreehash_list.c: Likewise.
11840         * lib/gl_carray_list.c: Likewise.
11841         * lib/gl_linked_list.c: Likewise.
11842         * lib/gl_linkedhash_list.c: Likewise.
11843         * lib/gl_list.c: Likewise.
11844         * lib/gl_oset.c: Likewise.
11845         * lib/gl_rbtree_list.c: Likewise.
11846         * lib/gl_rbtree_oset.c: Likewise.
11847         * lib/gl_rbtreehash_list.c: Likewise.
11848         * lib/imaxabs.c: Likewise.
11849         * lib/imaxdiv.c: Likewise.
11850         * lib/javacomp.c: Likewise.
11851         * lib/javaexec.c: Likewise.
11852         * lib/javaversion.c: Likewise.
11853         * lib/linebreak.c: Likewise.
11854         * lib/localcharset.c: Likewise.
11855         * lib/lock.c: Likewise.
11856         * lib/mbchar.c: Likewise.
11857         * lib/mbswidth.c: Likewise.
11858         * lib/mkdtemp.c: Likewise.
11859         * lib/pipe.c: Likewise.
11860         * lib/printf-args.c: Likewise.
11861         * lib/printf-parse.c: Likewise.
11862         * lib/progname.c: Likewise.
11863         * lib/progreloc.c: Likewise.
11864         * lib/readlink.c: Likewise.
11865         * lib/sh-quote.c: Likewise.
11866         * lib/stpcpy.c: Likewise.
11867         * lib/stpncpy.c: Likewise.
11868         * lib/strcasecmp.c: Likewise.
11869         * lib/strcasestr.c: Likewise.
11870         * lib/strcspn.c: Likewise.
11871         * lib/striconv.c: Likewise.
11872         * lib/strncasecmp.c: Likewise.
11873         * lib/strnlen1.c: Likewise.
11874         * lib/strstr.c: Likewise.
11875         * lib/strtok_r.c: Likewise.
11876         * lib/tls.c: Likewise.
11877         * lib/tmpdir.c: Likewise.
11878         * lib/unicodeio.c: Likewise.
11879         * lib/unsetenv.c: Likewise.
11880         * lib/vasnprintf.c: Likewise.
11881         * lib/vasprintf.c: Likewise.
11882         * lib/wait-process.c: Likewise.
11883         * lib/xallocsa.c: Likewise.
11884         * lib/xsetenv.c: Likewise.
11885         * lib/xstriconv.c: Likewise.
11886
11887 2006-09-13  Simon Josefsson  <jas@extundo.com>
11888
11889         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
11890         that internally, suggested by Ralf Wildenhues
11891         <Ralf.Wildenhues@gmx.de>.
11892
11893 2006-09-13  Simon Josefsson  <jas@extundo.com>
11894
11895         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
11896         @LIBOBJS@.
11897         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11898
11899 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11900
11901         * lib/_fpending.c: Include <config.h> unconditionally, since we no
11902         longer worry about uses that don't define HAVE_CONFIG_H.
11903         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
11904         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
11905         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
11906         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
11907         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
11908         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
11909         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
11910         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
11911         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
11912         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
11913         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
11914         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
11915         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
11916         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
11917         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
11918         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
11919         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
11920         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
11921         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
11922         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
11923         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
11924         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
11925         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
11926         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
11927         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
11928         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
11929         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
11930         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
11931         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
11932         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
11933         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
11934         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
11935         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
11936         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
11937         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
11938         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
11939         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
11940         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
11941         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
11942         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
11943         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
11944         Likewise.
11945
11946 2006-09-13  Eric Blake  <ebb9@byu.net>
11947
11948         * lib/getopt.c: Fix typo in last commit.
11949
11950 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11951
11952         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
11953         dgettext.
11954
11955 2006-09-12  Jim Meyering  <jim@meyering.net>
11956
11957         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
11958         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
11959         Reported by Nelson H. F. Beebe.
11960
11961 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11962
11963         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
11964         program_invocation_name and program_invocation_short_name are
11965         initialized.
11966         * lib/argp-namefrob.h: Move declarations of program_invocation_name
11967         and program_invocation_short_name to argp.h, so they are visible
11968         to user programs.
11969         * lib/argp.h: Likewise
11970
11971 2006-09-10  Bruno Haible  <bruno@clisp.org>
11972
11973         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11974         m4/inttypes_h.m4, m4/uintmax_t.m4.
11975
11976 2006-09-10  Bruno Haible  <bruno@clisp.org>
11977
11978         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
11979         gl_AC_TYPE_UINTMAX_T.
11980
11981 2006-09-10  Bruno Haible  <bruno@clisp.org>
11982
11983         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
11984
11985 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11986
11987         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
11988         convention.  Text proposed by Bruno Haible.
11989         (struct argp_option): Document the use of N_() wrappers.
11990
11991         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
11992         '\v', and translate the two parts separately, instead of feeding
11993         the whole string to gettext.  This allows to exclude
11994         '\v' from the strings visible to the translator by writing doc
11995         strings as N_("..") "\v" N_("..").
11996
11997 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
11998
11999         * config/srclist.txt: Undo latest change; the bug was fixed.
12000
12001 2006-09-09  Bruno Haible  <bruno@clisp.org>
12002
12003         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
12004         assignments if building a library without libtool.
12005         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
12006         in func_emit_lib_Makefile_am.
12007         (func_import): When building a static library libfoo.a, arrange to
12008         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
12009         (func_create_testdir): Likewise.
12010         * modules/gc (configure.ac, Makefile.am): If building statically,
12011         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
12012         * modules/iconvme (configure.ac, Makefile.am): Likewise.
12013         * modules/striconv (configure.ac, Makefile.am): Likewise.
12014         Based on a suggestion by Ralf Wildenhues.
12015
12016 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
12017
12018         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
12019         Check for unistd.h too, since Autoconf doesn't assume POSIX.
12020         Also:
12021
12022         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
12023         Add year_2050_test to catch glibc bug 2821
12024         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
12025
12026         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12027         Prefer #ifdef to #if.
12028
12029         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12030         Return from 'main' instead of calling 'exit'.
12031
12032 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
12033
12034         * lib/mktime.c (guess_time_tm): Fix bug where mktime
12035         returned the maximum time_t value rather than (time_t) -1.
12036         Problem originally reported by William Bardwell
12037         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
12038
12039         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
12040         Moved to here ...
12041         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
12042         ... from here.
12043
12044 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
12045
12046         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
12047         2821 is fixed.
12048
12049 2006-09-08  Jim Meyering  <jim@meyering.net>
12050
12051         Don't make generated files read-only.  That would bother too many
12052         people.  However, do retain the ability to work when targets are
12053         read-only: remove the destination and temporary files before writing
12054         them (when generated via sed or echo), or by using the -f option for
12055         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
12056         * modules/alloca-opt, modules/argz, modules/arpa_inet:
12057         * modules/byteswap, modules/configmake, modules/fcntl:
12058         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
12059         * modules/localcharset, modules/netinet_in, modules/poll:
12060         * modules/stdbool, modules/stdint, modules/sys_select:
12061         * modules/sys_socket, modules/sys_stat, modules/sysexits:
12062
12063 2006-09-08  Jim Meyering  <jim@meyering.net>
12064
12065         Avoid new build failure on FreeBSD 6.0.
12066         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
12067         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
12068         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
12069
12070 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12071
12072         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
12073
12074 2006-09-07  Jim Meyering  <jim@meyering.net>
12075
12076         Fix global typo in last change: use chmod u-w, not chmod u-x.
12077         Spotted by Paul Eggert and Bruce Korb.
12078         * modules/alloca-opt, modules/argz, modules/arpa_inet:
12079         * modules/byteswap, modules/configmake, modules/fcntl:
12080         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
12081         * modules/localcharset, modules/netinet_in, modules/poll:
12082         * modules/stdbool, modules/stdint, modules/sys_select:
12083         * modules/sys_socket, modules/sys_stat, modules/sysexits:
12084
12085 2006-09-06  Jim Meyering  <jim@meyering.net>
12086
12087         Make generated files be read-only.
12088         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
12089         Ensure that each generated file is now read-only.
12090         * modules/argz: Likewise.
12091         * modules/arpa_inet: Likewise.
12092         * modules/byteswap: Likewise.
12093         * modules/configmake: Likewise.
12094         * modules/fcntl: Likewise.
12095         * modules/fnmatch: Likewise.
12096         * modules/getopt: Likewise.
12097         * modules/glob: Likewise.
12098         * modules/inttypes: Likewise.
12099         * modules/netinet_in: Likewise.
12100         * modules/poll: Likewise.
12101         * modules/stdbool: Likewise.
12102         * modules/stdint: Likewise.
12103         * modules/sys_select: Likewise.
12104         * modules/sys_socket: Likewise.
12105         * modules/sys_stat: Likewise.
12106         * modules/sysexits: Likewise.
12107         * modules/localcharset: Same as above, but continue using temporary
12108         file named "t-$@" (why different?) rather than the "$@-t" used
12109         everywhere else.
12110
12111         * modules/sysexits (Makefile.am): Replace literal occurrences
12112         of "sysexit.h" more readable, and more consistent, "$@".
12113
12114 2006-09-06  Bruno Haible  <bruno@clisp.org>
12115
12116         * modules/striconv: New file.
12117         * modules/xstriconv: New file.
12118         * MODULES.html.sh (Internationalization functions): Add striconv,
12119         xstriconv.
12120
12121 2006-09-06  Bruno Haible  <bruno@clisp.org>
12122
12123         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
12124         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
12125         not using libtool correctly.
12126
12127 2006-09-06  Bruno Haible  <bruno@clisp.org>
12128
12129         * lib/striconv.h: New file.
12130         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
12131         iconvstring.c.
12132         * lib/xstriconv.h: New file.
12133         * lib/xstriconv.c: New file.
12134
12135 2006-09-06  Bruno Haible  <bruno@clisp.org>
12136
12137         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
12138         lib_..._LDFLAGS.
12139
12140 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12141
12142         * lib/argz_.h: Sync from Libtool.
12143
12144         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
12145                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12146
12147         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
12148
12149 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
12150
12151         * modules/trim: New file.
12152
12153 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
12154
12155         * lib/trim.h: New file.
12156         * lib/trim.c: New file.
12157
12158 2006-09-05  Bruno Haible  <bruno@clisp.org>
12159
12160         * MODULES.html.sh (String handling): Add trim.
12161
12162 2006-09-04  Karl Berry  <karl@gnu.org>
12163
12164         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
12165         until next release.
12166
12167 2006-09-03  Bruno Haible  <bruno@clisp.org>
12168
12169         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
12170         correctly.
12171
12172 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12173
12174         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
12175         not gl_GETLOADAVG.  Omit unneeded semicolons.
12176         Problems reported by Ralf Wildenhues in
12177         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
12178         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
12179         at the end, which is the usual gnulib style.
12180
12181         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
12182         of doing all the work ourselves.
12183         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
12184         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
12185
12186 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12187
12188         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
12189         Problem reported by Ralf Wildenhues in
12190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
12191
12192         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
12193         HAVE_STRUCT_STATFS_F_FSTYPENAME.
12194
12195 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12196
12197         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
12198         yesterday's patch by changing test -n to test -z.
12199
12200 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12201
12202         * modules/getloadavg (Files): Add m4/getloadavg.m4.
12203         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
12204         the former is now obsolescent.
12205
12206         * modules/chdir-long (Depends-on): Add fcntl.
12207
12208 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12209
12210         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
12211         obsolescent, and programs should use gnulib instead.
12212         * m4/getloadavg.m4: New file, with contents taken from Autoconf
12213         but with prefixes changed.
12214
12215 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12216
12217         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
12218         or stdbool.h, because they might not exist while configuring.
12219
12220         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
12221         Don't include unistd.h or limits.h; not needed, since chdir-long.h
12222         does that for us.
12223         (O_DIRECTORY): Remove.
12224
12225 2006-08-31  Eric Blake  <ebb9@byu.net>
12226
12227         * gnulib-tool: Don't let emacs change spaces to TAB.
12228
12229 2006-08-31  Bruno Haible  <bruno@clisp.org>
12230
12231         * gnulib-tool: When calling func_import more than once, do it in a
12232         subshell.
12233         Reported by Eric Blake <ebb9@byu.net>.
12234
12235 2006-08-31  Bruno Haible  <bruno@clisp.org>
12236
12237         * gnulib-tool (nl): Remove variable.
12238         (sed_transform_lib_file): Use more robust test for config-h module.
12239         (func_import): Fix typo in 2006-08-25 patch.
12240
12241 2006-08-31  Bruno Haible  <bruno@clisp.org>
12242
12243         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
12244         specified, augment Makefile.am variables instead of assigning them.
12245
12246 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12247
12248         Work around a bug in both the Linux and SunOS 64-bit kernels:
12249         nanosleep mishandles sleeps for longer than 2**31 seconds.
12250         Problem reported by Frank v Waveren in
12251         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
12252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
12253         Check for nanosleep bug.
12254         (LIB_NANOSLEEP): Append clock_gettime library if needed.
12255
12256 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12257
12258         Work around a bug in both the Linux and SunOS 64-bit kernels:
12259         nanosleep mishandles sleeps for longer than 2**31 seconds.
12260         Problem reported by Frank v Waveren in
12261         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
12262         * lib/nanosleep.c (BILLION): New constant.
12263         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
12264         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
12265         implementation.
12266
12267 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12268
12269         * modules/nanosleep (Depends-on): Add gettime.
12270
12271 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12272         and Simon Josefsson  <jas@extundo.com>
12273         and Oskar Liljeblad  <oskar@osk.mine.nu>
12274
12275         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
12276         * gnulib-tool (func_import): New license type 'unmodifiable license
12277         text'.
12278         * modules/fdl: Use it.  Longer description.
12279         * module/gpl, module/lgpl: New files.
12280
12281 2006-08-30  Jim Meyering  <jim@meyering.net>
12282
12283         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
12284         shadowing the parameter.
12285
12286 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12287
12288         Sync from Libtool:
12289
12290         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12291
12292         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
12293         sharing with gnulib.  Report by Eric Blake.
12294
12295 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12296
12297         * modules/isapipe: New file.
12298         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
12299
12300 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12301
12302         * modules/configmake (Makefile.am): Add a comment, and omit
12303         the CONFIGMAKE_ prefix from generated macro names.  Suggested
12304         by Bruno Haible.
12305
12306 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12307
12308         * m4/isapipe.m4: New file.
12309
12310 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12311
12312         * lib/isapipe.c, lib/isapipe.h: New files.
12313
12314 2006-08-29  Jim Meyering  <jim@meyering.net>
12315
12316         * modules/configmake (Makefile.am): Make configmake.h depend on
12317         Makefile.  Otherwise, a stale configmake.h could hang around.
12318
12319 2006-08-29  Eric Blake  <ebb9@byu.net>
12320
12321         * lib/error.c (error_at_line, print_errno_message): Match libc, after
12322         resolution of upstream bug 3044.
12323
12324 2006-08-29  Bruno Haible  <bruno@clisp.org>
12325
12326         * modules/localcharset (Depends-on): Add configmake.
12327         (Makefile.am): Remove setting of LIBDIR through DEFS.
12328
12329 2006-08-29  Bruno Haible  <bruno@clisp.org>
12330
12331         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
12332         defined.
12333
12334 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12335
12336         * modules/fcntl: New file.
12337         * modules/chdir-safer (Depends-on): Add fcntl.
12338         * modules/fts: Likewise.
12339         * modules/mkdir-p: Likewise.
12340
12341         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
12342         This undoes the most recent change, since we're now addressing the
12343         problem in a different way.
12344
12345         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
12346         into output, since the output might be called Makefile.am even
12347         if $makefile_name is something different.
12348         (func_import): Use $makefile_am rather than
12349         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
12350         empty.
12351
12352         * modules/inttypes (Files): Add m4/inttypes-h.m4.
12353
12354 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12355
12356         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
12357         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
12358         recent change to stdint.m4, since we're now addressing the problem in a
12359         different way.
12360
12361 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12362
12363         * m4/fcntl_h.m4: New file.
12364
12365 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12366
12367         * lib/fcntl_.h: New file.
12368         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
12369         the fcntl module.
12370         * lib/dirchownmod.c: Likewise.
12371         * lib/fts.c: Likewise.
12372
12373         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
12374         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
12375         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
12376         just before including <inttypes.h>, to avoid circular inclusion.
12377
12378 2006-08-28  Jim Meyering  <jim@meyering.net>
12379
12380         * doc/visibility.texi: Actually read and correct the grammar of the
12381         sentence affected by yesterday's change.
12382
12383 2006-08-28  Eric Blake  <ebb9@byu.net>
12384
12385         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
12386         needs wrapper.
12387
12388 2006-08-28  Eric Blake  <ebb9@byu.net>
12389
12390         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
12391
12392 2006-08-28  Eric Blake  <ebb9@byu.net>
12393
12394         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
12395
12396 2006-08-28  Bruno Haible  <bruno@clisp.org>
12397
12398         * modules/c-strstr: New file, from GNU gettext.
12399         * MODULES.html.sh (String handling): Add c-strstr.
12400
12401 2006-08-28  Bruno Haible  <bruno@clisp.org>
12402
12403         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
12404         macros.
12405         Reported by Eric Blake.
12406
12407 2006-08-28  Bruno Haible  <bruno@clisp.org>
12408
12409         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
12410         (VASNPRINTF): Return a string of length > INT_MAX without failing.
12411         * lib/vasprintf.c: Include errno.h, limits.h.
12412         (EOVERFLOW): New fallback definition.
12413         (vasprintf): Test here whether the string length is > INT_MAX.
12414         * lib/vsnprintf.c: Include errno.h, limits.h.
12415         (EOVERFLOW): New fallback definition.
12416         (vsnprintf): Fix bug when generated string was too long for the buffer.
12417         Test here whether the string length is > INT_MAX.
12418
12419 2006-08-28  Bruno Haible  <bruno@clisp.org>
12420
12421         * lib/inttypes_.h (SCNX*): Remove definitions.
12422         Reported by Eric Blake.
12423
12424 2006-08-28  Bruno Haible  <bruno@clisp.org>
12425
12426         * lib/c-strstr.h: New file, from GNU gettext.
12427         * lib/c-strstr.c: New file, from GNU gettext.
12428
12429 2006-08-28  Bruno Haible  <bruno@clisp.org>
12430
12431         * gnulib-tool: Reorder some statements.
12432
12433 2006-08-28  Bruno Haible  <bruno@clisp.org>
12434
12435         * gnulib-tool: New option --makefile-name.
12436         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
12437         $makefile_name.
12438         (func_import): Write $makefile_name to the cache file, and read it from
12439         there unless explicitly specified. Use $makefile_name as file name
12440         instead of Makefile.am. Adjust the recommendations accordingly.
12441
12442 2006-08-28  Bruno Haible  <bruno@clisp.org>
12443
12444         * gnulib-tool (func_verify_module): Check against misapplying patch.
12445
12446 2006-08-28  Bruno Haible  <bruno@clisp.org>
12447
12448         * gnulib-tool (func_relativize, func_relconcat): New functions.
12449         Give an error if --local-dir is given with --update.
12450         Remove trailing slashes from $local_gnulib_dir.
12451         (func_import): Store the relativized $local_gnulib_dir in
12452         gnulib-cache.m4, and read it from there if not specified explicitly.
12453
12454 2006-08-28  Bruno Haible  <bruno@clisp.org>
12455
12456         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
12457         is the current directory. Respect also $local_gnulib_dir.
12458
12459 2006-08-28  Bruno Haible  <bruno@clisp.org>
12460             Simon Josefsson  <jas@extundo.com>
12461
12462         BeOS portability.
12463         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
12464
12465 2006-08-27  Jim Meyering  <jim@meyering.net>
12466
12467         * doc/visibility.texi: Remove duplicate word: "pointer".
12468
12469 2006-08-26  Bruno Haible  <bruno@clisp.org>
12470
12471         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
12472         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
12473         (Makefile.am): Create inttypes.h from inttypes_.h.
12474         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
12475
12476         * modules/imaxabs: New file.
12477
12478         * modules/imaxdiv: New file.
12479
12480 2006-08-26  Bruno Haible  <bruno@clisp.org>
12481
12482         * m4/inttypes.m4: New file.
12483         * m4/_inttypes_h.m4: Remove file.
12484         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
12485         PRI_MACROS_BROKEN.
12486         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
12487
12488         * m4/imaxabs.m4: New file.
12489
12490         * m4/imaxdiv.m4: New file.
12491
12492 2006-08-26  Bruno Haible  <bruno@clisp.org>
12493
12494         * lib/inttypes_.h: New file.
12495         * lib/inttypes.h: Remove file.
12496         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
12497
12498         * lib/imaxabs.c: New file.
12499
12500         * lib/imaxdiv.c: New file.
12501
12502 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12503
12504         New config-h module, so that "make" output needn't be cluttered
12505         by -DHAVE_CONFIG_H.
12506         * MODULES.html.sh (Support for building libraries and executables):
12507         Add config-h.
12508         * modules/config-h: New file.
12509         * gnulib-tool (nl, sed_transform_lib_file): New vars.
12510         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
12511         the config-h module is used.
12512
12513         New configmake module, so that "make" output needn't be cluttered
12514         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
12515         * MODULES.html.sh (Support for building libraries and executables):
12516         Add configmake.
12517         * modules/configmake: New file.
12518
12519 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12520
12521         * m4/config-h.m4: New file.
12522
12523 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12524
12525         * config/srclist.txt: Add elisp-comp.
12526
12527 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12528
12529         * MODULES.html.sh (Support for building libraries and executables):
12530         Add elisp-comp.
12531         * build-aux/elisp-comp: New file.
12532         * modules/elisp-comp: New file.
12533
12534 2006-08-24  Bruno Haible  <bruno@clisp.org>
12535
12536         * gnulib-tool (func_create_testdir): Use non-default values of
12537         sourcebase and m4base.
12538
12539 2006-08-24  Bruno Haible  <bruno@clisp.org>
12540
12541         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
12542         HTML structure.
12543
12544 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         * modules/openat (Depends-on): Add lchown.
12547
12548 2006-08-23  Bruno Haible  <bruno@clisp.org>
12549
12550         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
12551         of gl_LOCK_EARLY instead of gl_LOCK.
12552
12553 2006-08-23  Bruno Haible  <bruno@clisp.org>
12554
12555         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
12556         on OSF/1 to no.
12557         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
12558
12559 2006-08-23  Bruno Haible  <bruno@clisp.org>
12560
12561         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
12562         as unusable.
12563
12564         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
12565         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
12566         (gl_LOCK): New macro.
12567
12568 2006-08-22  Simon Josefsson  <jas@extundo.com>
12569
12570         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
12571         to md5 module.
12572
12573 2006-08-22  Simon Josefsson  <jas@extundo.com>
12574
12575         * MODULES.html.sh: Add "Support for maintaining and release
12576         projects".
12577
12578         * build-aux/gnupload: New file, from coreutils.
12579
12580 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12581
12582         Avoid the need for AC_LIBSOURCES in m4 macros.
12583         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
12584         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
12585         * modules/check-version (EXTRA_DIST): Add check-version.h.
12586         * modules/crc (EXTRA_DIST): Add crc.h.
12587         * modules/des (EXTRA_DIST): Add des.h.
12588         * modules/gc (EXTRA_DIST): Add gc.h.
12589         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
12590         * modules/getline (EXTRA_DIST): Add getline.h.
12591         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
12592         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
12593         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
12594         * modules/md2 (EXTRA_DIST): Add md2.h.
12595         * modules/md4 (EXTRA_DIST): Add md4.h.
12596         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
12597         * modules/read-file (EXTRA_DIST): Add read-file.h.
12598         * modules/readline (EXTRA_DIST): Add readline.h.
12599         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
12600         rijndael-api-fst.h.
12601
12602 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12603
12604         * m4/rijndael.m4 (gl_ARCFOUR):
12605         * m4/arctwo.m4 (gl_ARCTWO):
12606         * m4/check-version.m4 (gl_CHECK_VERSION):
12607         * m4/crc.m4 (gl_CRC):
12608         * m4/des.m4 (gl_DES):
12609         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
12610         * m4/gc.m4 (gl_GC):
12611         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12612         * m4/getline.m4 (gl_FUNC_GETLINE):
12613         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
12614         * m4/hmac-md5.m4 (gl_HMAC_MD5):
12615         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
12616         * m4/md2.m4 (gl_MD2):
12617         * m4/md4.m4 (gl_MD4):
12618         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
12619         * m4/read-file.m4 (gl_FUNC_READ_FILE):
12620         * m4/readline.m4 (gl_FUNC_READLINE):
12621         * m4/rijndael.m4 (gl_RIJNDAEL):
12622         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12623         to get the necessary .h files and whatnot.
12624
12625 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12626
12627         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
12628         gnulib rather than the other way around.
12629         * config/srclistvars.sh (COREUTILS): Remove.
12630
12631 2006-08-22  Jim Meyering  <jim@meyering.net>
12632
12633         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
12634
12635         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
12636
12637 2006-08-22  Eric Blake  <ebb9@byu.net>
12638
12639         * modules/regexprops-generic: New file.
12640         * MODULES.html.sh (Support for building documentation): List it.
12641
12642 2006-08-22  Eric Blake  <ebb9@byu.net>
12643
12644         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
12645         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12646         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
12647         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12648
12649 2006-08-22  Bruno Haible  <bruno@clisp.org>
12650
12651         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
12652         and lib_LTLIBRARIES like the other lib_* variables.
12653
12654 2006-08-22  Bruno Haible  <bruno@clisp.org>
12655
12656         * build-aux/x-to-1.in: New file, from GNU gettext.
12657
12658 2006-08-22  Bruno Haible  <bruno@clisp.org>
12659
12660         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
12661         <utmpx.h> exists.
12662
12663 2006-08-22  Bruno Haible  <bruno@clisp.org>
12664
12665         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
12666         <utmpx.h> exists.
12667
12668 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12669
12670         BeOS portability.
12671         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
12672         exist.
12673         Problem reported by Bruno Haible.
12674
12675 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12676
12677         Avoid the need for AC_LIBSOURCES in m4 macros.
12678         * modules/acl (EXTRA_DIST): Add acl.h.
12679         * modules/argmatch (Files): Add m4/argmatch.m4.
12680         (configure.ac): Add gl_ARGMATCH.
12681         (EXTRA_DIST): Renamed from lib_SOURCES, for
12682         consistency with the other modules.  Remove argmatch.c.
12683         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
12684         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
12685         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
12686         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
12687         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
12688         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
12689         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
12690         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
12691         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
12692         * modules/closeout (EXTRA_DIST): Add closeout.h.
12693         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
12694         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
12695         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
12696         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
12697         dirname.h; remove basename.c and stripslash.c.
12698         * modules/exclude (EXTRA_DIST): Add exclude.h.
12699         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
12700         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
12701         * modules/file-type (EXTRA_DIST): Add file-type.h.
12702         * modules/filemode (EXTRA_DIST): Add filemode.h.
12703         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
12704         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12705         * modules/fpending (EXTRA_DIST): Add __fpending.h.
12706         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
12707         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
12708         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
12709         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
12710         * modules/getdate (EXTRA_DIST): Add getdate.c.
12711         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
12712         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
12713         * modules/getpass (EXTRA_DIST): Add getpass.h.
12714         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
12715         * modules/group-member (EXTRA_DIST): Add group-member.h.
12716         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
12717         * modules/hash (EXTRA_DIST): Add hash.h.
12718         * modules/human (EXTRA_DIST): Add human.h.
12719         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
12720         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
12721         * modules/lchown (EXTRA_DIST): Add lchown.h.
12722         * modules/long-options (EXTRA_DIST): Add long-options.h.
12723         * modules/lstat (EXTRA_DIST): Add lstat.h.
12724         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
12725         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
12726         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
12727         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
12728         * modules/memxor (EXTRA_DIST): Add memxor.h.
12729         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
12730         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
12731         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
12732         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
12733         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
12734         * modules/physmem (EXTRA_DIST): Add physmem.h.
12735         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
12736         * modules/posixver (EXTRA_DIST): Add posixver.h.
12737         * modules/quote (EXTRA_DIST): Add quote.h.
12738         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
12739         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
12740         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
12741         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
12742         regex_internal.h regexec.c.
12743         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
12744         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
12745         * modules/same (EXTRA_DIST): Add same.h.
12746         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
12747         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
12748         * modules/savedir (EXTRA_DIST): Add savedir.h.
12749         * modules/sha1 (EXTRA_DIST): Add sha1.h.
12750         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
12751         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
12752         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
12753         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
12754         * modules/strdup (EXTRA_DIST): Add strdup.h.
12755         * modules/strftime (EXTRA_DIST): Add strftime.h.
12756         * modules/strndup (EXTRA_DIST): Add strndup.h.
12757         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
12758         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
12759         * modules/time_r (EXTRA_DIST): Add time_r.h.
12760         * modules/timespec (EXTRA_DIST): Add timespec.h.
12761         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12762         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
12763         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
12764         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
12765         * modules/userspec (EXTRA_DIST): Add userspec.h.
12766         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
12767         * modules/utimens (EXTRA_DIST): Add utimens.h.
12768         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
12769         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
12770         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
12771         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
12772         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
12773         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
12774         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
12775         * modules/yesno (EXTRA_DIST): Add yesno.h.
12776
12777 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12778
12779         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
12780
12781         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
12782         * m4/dev-ino.m4, same-inode.m4: Remove.
12783
12784         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
12785         * m4/acl.m4 (AC_FUNC_ACL):
12786         * m4/backupfile.m4 (gl_BACKUPFILE):
12787         * m4/c-strtod.m4 (gl_C99_STRTOLD):
12788         * m4/canon-host.m4 (gl_CANON_HOST):
12789         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
12790         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
12791         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
12792         * m4/cloexec.m4 (gl_CLOEXEC):
12793         * m4/close-stream.m4 (gl_CLOSE_STREAM):
12794         * m4/closeout.m4 (gl_CLOSEOUT):
12795         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12796         * m4/dirname.m4 (gl_DIRNAME):
12797         * m4/exclude.m4 (gl_EXCLUDE):
12798         * m4/exitfail.m4 (gl_EXITFAIL):
12799         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
12800         * m4/file-type.m4 (gl_FILE_TYPE):
12801         * m4/filemode.m4 (gl_FILEMODE):
12802         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
12803         * m4/fpending.m4 (gl_FUNC_FPENDING):
12804         * m4/fprintftime.m4 (gl_FPRINTFTIME):
12805         * m4/fts.m4 (gl_FUNC_FTS):
12806         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12807         * m4/getdate.m4 (gl_GETDATE):
12808         * m4/gethrxtime.m4 (gl_GETHRXTIME):
12809         * m4/getpagesize.m4 (gl_GETPAGESIZE):
12810         * m4/getpass.m4 (gl_FUNC_GETPASS):
12811         * m4/gettime.m4 (gl_GETTIME):
12812         * m4/getugroups.m4 (gl_GETUGROUPS):
12813         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
12814         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
12815         * m4/hard-locale.m4 (gl_HARD_LOCALE):
12816         * m4/hash.m4 (gl_HASH):
12817         * m4/idcache.m4 (gl_IDCACHE):
12818         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
12819         * m4/lchown.m4 (gl_FUNC_LCHOWN):
12820         * m4/long-options.m4 (gl_LONG_OPTIONS):
12821         * m4/lstat.m4 (gl_FUNC_LSTAT):
12822         * m4/md5.m4 (gl_MD5):
12823         * m4/memcasecmp.m4 (gl_MEMCASECMP):
12824         * m4/memcoll.m4 (gl_MEMCOLL):
12825         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
12826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
12827         * m4/memxor.m4 (gl_MEMXOR):
12828         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
12829         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
12830         * m4/modechange.m4 (gl_MODECHANGE):
12831         * m4/mountlist.m4 (gl_MOUNTLIST):
12832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12833         * m4/openat.m4 (gl_FUNC_OPENAT):
12834         * m4/pathmax.m4 (gl_PATHMAX):
12835         * m4/physmem.m4 (gl_PHYSMEM):
12836         * m4/posixtm.m4 (gl_POSIXTM):
12837         * m4/posixver.m4 (gl_POSIXVER):
12838         * m4/quote.m4 (gl_QUOTE):
12839         * m4/quotearg.m4 (gl_QUOTEARG):
12840         * m4/readtokens.m4 (gl_READTOKENS):
12841         * m4/readutmp.m4 (gl_READUTMP):
12842         * m4/regex.m4 (gl_REGEX):
12843         * m4/safe-read.m4 (gl_SAFE_READ):
12844         * m4/safe-write.m4 (gl_SAFE_WRITE):
12845         * m4/same.m4 (gl_SAME):
12846         * m4/save-cwd.m4 (gl_SAVE_CWD):
12847         * m4/savedir.m4 (gl_SAVEDIR):
12848         * m4/settime.m4 (gl_SETTIME):
12849         * m4/sha1.m4 (gl_SHA1):
12850         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
12851         * m4/stat-macros.m4 (gl_STAT_MACROS):
12852         * m4/stat-time.m4 (gl_STAT_TIME):
12853         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
12854         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
12855         * m4/strdup.m4 (gl_FUNC_STRDUP):
12856         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
12857         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12858         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
12859         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
12860         * m4/time_r.m4 (gl_TIME_R):
12861         * m4/timespec.m4 (gl_TIMESPEC):
12862         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
12863         * m4/unlinkdir.m4 (gl_UNLINKDIR):
12864         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
12865         * m4/userspec.m4 (gl_USERSPEC):
12866         * m4/utimecmp.m4 (gl_UTIMECMP):
12867         * m4/utimens.m4 (gl_UTIMENS):
12868         * m4/xalloc.m4 (gl_XALLOC):
12869         * m4/xgetcwd.m4 (gl_XGETCWD):
12870         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
12871         * m4/xreadlink.m4 (gl_XREADLINK):
12872         * m4/xstrtod.m4 (gl_XSTRTOD):
12873         * m4/yesno.m4 (gl_YESNO):
12874         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12875         to get the necessary .h files and whatnot.
12876
12877 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
12878             Bruno Haible  <bruno@clisp.org>
12879
12880         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
12881         /bin/sh understanding of '!' conditional negation.
12882
12883 2006-08-21  Jim Meyering  <jim@meyering.net>
12884
12885         * modules/openat (Depends-on): Really alphabetize.
12886
12887         * modules/acl (Depends-on): Add error and quote.
12888
12889         * check-module (find_included_lib_files): Add at-func.c to the
12890         ok-to-include-more-than-once white list.
12891
12892         * modules/openat (Depends-on): Add lstat.  Alphabetize.
12893
12894 2006-08-21  Bruno Haible  <bruno@clisp.org>
12895
12896         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12897         Emit a pkgdata_DATA variable only if some snippets add contents to it.
12898         Reported by Martin Lambers <marlam@marlam.de>.
12899
12900 2006-08-21  Bruno Haible  <bruno@clisp.org>
12901
12902         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
12903         specify an installation location, don't emit a noinst_LIBRARIES or
12904         noinst_LTLIBRARIES assignment.
12905
12906 2006-08-21  Bruno Haible  <bruno@clisp.org>
12907
12908         BeOS portability.
12909         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
12910         BeOS has mbrtowc() but no <wctype.h>.
12911
12912 2006-08-21  Bruno Haible  <bruno@clisp.org>
12913
12914         BeOS portability.
12915         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
12916         exist.
12917
12918 2006-08-21  Bruno Haible  <bruno@clisp.org>
12919
12920         BeOS portability.
12921         * lib/mbchar.h: Include <wctype.h> only if it exists.
12922
12923 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12924
12925         Remove files that are no longer needed by their respective modules.
12926         * m4/obstack.m4: Remove.
12927         * m4/strerror_r.m4: Remove.
12928         * m4/uint32_t.m4: Remove.
12929         * m4/uintptr_t.m4: Remove.
12930         * m4/ullong_max.m4: Remove.
12931         * m4/xstrtoimax.m4: Remove.
12932         * m4/xstrtoumax.m4: Remove.
12933
12934         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
12935         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
12936         dependencies now capture this.
12937
12938         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12939         Do not use AC_LIBSOURCES, since gnulib modules now do this.
12940         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
12941         * m4/human.m4 (gl_HUMAN): Likewise.
12942         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
12943         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
12944
12945         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
12946
12947         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
12948         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
12949         stdint.
12950         * m4/human.m4 (gl_HUMAN): Likewise.
12951         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
12952         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
12953         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12954         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12955         * m4/xstrtol (gl_XSTRTOL): Likewise.
12956
12957         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
12958         AC_TYPE_LONG_LONG_INT.
12959         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12960         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
12961         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
12962         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12963
12964         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
12965         on stdbool.
12966
12967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
12968         (gl_PREREQ_XSTRTOUL): Remove.
12969
12970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
12971
12972         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
12973         mode.
12974
12975 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12976
12977         Add and change modules to make it easier for coreutils to use
12978         gnulib-tool.
12979         * modules/backupfile (Files): Remove m4/d-ino.m4.
12980         (Depends-on): Add d-ino.
12981         * modules/cycle-check (Depends-on): Add stdint.
12982         (lib_SOURCES): Add cycle-check.h.
12983         * modules/d-ino: New module.
12984         * modules/d-type: New module.
12985         * modules/error (Files): Remove m4/strerror_r.m4.
12986         * modules/filemode (Files): Add m4/st_dm_mode.m4.
12987         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12988         m4/inttypes_h.m4, m4/uintmax_t.m4.
12989         (Depends-on): Add stdint.
12990         (lib_SOURCES): Add fsusage.h.
12991         * modules/getcwd (Files): Remove d-ino.m4.
12992         (Depends-on): Add d-ino.
12993         * modules/getndelim2 (Depends-on): Add stdint.
12994         * modules/glob (Files): Remove m4/d-type.m4.
12995         (Depends-on): Add d-type.
12996         * modules/host-os: New module.
12997         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
12998         m4/inttypes_h.m4, m4/uintmax_t.m4.
12999         * Depends-on: Add stdint.
13000         (lib_SOURCES): Add human.h.
13001         * modules/inttostr (Files): Remove m4/intmax_t.m4,
13002         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
13003         m4/uintmax_t.m4, m4/ulonglong.m4.
13004         (Depends-on): Add stdint.
13005         (EXTRA_DIST): Add inttostr.h.
13006         * modules/lchmod: New module.
13007         * modules/link-follow: New module.
13008         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
13009         (Depends-on): Add lchmod.
13010         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
13011         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
13012         (Depends-on): Add stdint.
13013         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
13014         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
13015         (Depends-on): Add stdint.
13016         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
13017         * modules/perl: New module.
13018         * modules/regex (Depends-on): Add stdint.
13019         * modules/rmdir-errno: New module.
13020         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
13021         m4/intmax_t.m4.
13022         (Depends-on): Add stdint.
13023         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
13024         m4/uintmax_t.m4.
13025         (Depends-on): Add stdint.
13026         * modules/unlink-busy: New module.
13027         * modules/utimecmp (Depends-on): Add stdint.
13028         * modules/uptime: New module.
13029         * modules/winsz-ioctl: New module.
13030         * modules/winsz-termios: New module.
13031         * modules/xnanosleep (Depends-on): Add nanosleep.
13032         * modules/ullong_max: Remove.
13033         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
13034         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
13035         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
13036         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
13037         (Depends-on): Add inttypes.
13038         (lib_SOURCES): Add xstrtol.h.
13039         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
13040         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
13041         * MODULES.html.sh: Move 'assert' into the assert section.
13042         Move 'dummy' into the linking section.
13043         Remove ullong_max.
13044         Add section for compatibility checks for POSIX:2001 functions,
13045         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
13046         winsz-ioctl, and winsz-termios into it.
13047         Add lchmod.
13048         Add top-level Misc section and put host-os, perl, and uptime
13049         into it.
13050
13051 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13052
13053         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
13054         now assume the stdint module.  Do not include inttypes.h.
13055         * lib/fsusage.h: Likewise.
13056         * lib/getndelim2.c: Likewise.
13057         * lib/human.h: Likewise.
13058         * lib/inttostr.h: Likewise.
13059         * lib/obstack.c: Likewise.
13060         * lib/regex_internal.h: Likewise.
13061         * lib/tempname.c: Likewise.
13062         * lib/utimecmp.c: Likewise.
13063         * lib/xstrtol.h: Likewise.
13064
13065         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
13066
13067         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
13068         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
13069         * lib/xtime.h: Likewise.
13070
13071 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13072
13073         * modules/openat (Files): Add lib/fchmodat.c.
13074         Fixes problem reported by Jay Youngman.
13075
13076 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13077
13078         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
13079         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
13080
13081 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13082             Bruno Haible  <bruno@clisp.org>
13083
13084         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
13085         and is a script that invokes bison. Tighten the code. Add comments.
13086
13087 2006-08-18  Jim Meyering  <jim@meyering.net>
13088
13089         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
13090         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
13091         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
13092         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
13093
13094 2006-08-18  Bruno Haible  <bruno@clisp.org>
13095
13096         * modules/bison-i18n: New file.
13097         * MODULES.html.sh (Internationalization functions): Add it.
13098
13099 2006-08-18  Bruno Haible  <bruno@clisp.org>
13100
13101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
13102         sys/statvfs.h. When getmntinfo was found, check its declaration and
13103         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
13104
13105 2006-08-18  Bruno Haible  <bruno@clisp.org>
13106
13107         * m4/bison-i18n.m4: New file, from bison.
13108
13109 2006-08-18  Bruno Haible  <bruno@clisp.org>
13110
13111         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
13112         (ME_DUMMY): Treat "kernfs" as a dummy.
13113         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
13114
13115 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13116
13117         Update from coreutils.
13118
13119         2006-08-15  Jim Meyering  <jim@meyering.net>
13120
13121         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
13122
13123         2006-01-17  Jim Meyering  <jim@meyering.net>
13124
13125         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
13126
13127         2006-01-11  Jim Meyering  <jim@meyering.net>
13128
13129         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
13130         Check for the lchmod function.
13131
13132 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13133
13134         Update from coreutils.
13135
13136         * lib/__fpending.h: Add copyright notice.
13137         * lib/fprintftime.h: Likewise.
13138         * lib/savedir.c: Use (C) in copyright notice.
13139         * lib/savedir.h: Likewise.
13140
13141         2006-08-15  Jim Meyering  <jim@meyering.net>
13142
13143         * lib/at-func.c: New file, with the logic of all emulated at-functions.
13144         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
13145         in support of the EXPECTED_ERRNO macro.
13146         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
13147         definitions.  Instead, define the appropriate symbols and include
13148         "at-func.c".
13149         * lib/mkdirat.c (mkdirat): Likewise.
13150         * lib/fchmodat.c (fchmodat): Likewise.
13151         (ENOSYS): Remove definition.
13152         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
13153         it.  Don't include "unistd--.h" -- it wasn't ever used.
13154
13155         2006-01-17  Jim Meyering  <jim@meyering.net>
13156
13157         Rewrite fts.c not to change the current working directory,
13158         by using openat, fstatat, fdopendir, etc..
13159
13160         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
13161         (HAVE_OPENAT_SUPPORT): Define.
13162         [_LIBC] (fchdir): Don't undef or define; no longer used.
13163         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
13164         Now, this `function' always succeeds, and consumes its file descriptor
13165         parameter -- so callers must not close such FDs.  Update callers.
13166         (diropen_fd, opendirat, cwd_advance_fd): New functions.
13167         (diropen): Add parameter, SP.  Adjust all callers.
13168         Implement using diropen_fd, rather than open.
13169         (fts_open): Initialize new member, fts_cwd_fd.
13170         Remove fts_rft-setting code.
13171         (fts_close): Close fts_cwd_fd, if necessary.
13172         (__opendir2): Define in terms of opendir or opendirat,
13173         depending on whether the FST_NOCHDIR flag is set.
13174         (fts_build): Since fts_safe_changedir consumes its FD, and since
13175         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
13176         and close the dup'd file descriptor upon failure.
13177         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
13178         (fts_safe_changedir): Tweak semantics to reflect that this function
13179         now calls cwd_advance_fd and hence consumes its FD argument.
13180         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
13181         [struct FTS] (fts_rft): Remove now-unused member.
13182         [struct FTS] (fts_cycle.state): Improve comment.
13183
13184         * lib/openat.c (openat_needs_fchdir): New function.
13185         * lib/openat.h (openat_needs_fchdir): Declare it.
13186
13187 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
13188
13189         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
13190         Problem and fix reported by PĆ”draig Brady in
13191         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
13192
13193 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13194
13195         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
13196
13197 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13198
13199         * lib/memcoll.c (memcoll): Optimize for the common case where the
13200         arguments are bytewise equal.
13201
13202 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13203
13204         * doc/regexprops-generic.texi: Add a copyright notice.
13205
13206 2006-08-15  Bruno Haible  <bruno@clisp.org>
13207
13208         * modules/tmpdir (License): Change to LGPL.
13209
13210 2006-08-15  Bruno Haible  <bruno@clisp.org>
13211
13212         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
13213         module.
13214
13215 2006-08-14  Simon Josefsson  <jas@extundo.com>
13216
13217         * config/srclist.txt: Add gnupload.
13218
13219 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13220
13221         Change copyright notice from LGPL 2 to GPL 2, since that's the
13222         standard form used in the gnulib repository.
13223         * tests/test-lock.c: Likewise.
13224         * tests/test-stdint.c: Likewise.
13225         * tests/test-tls.c: Likewise.
13226
13227         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
13228         prelude-manager.  User shorter URLs for GNU projects, without '?'.
13229         Add copyright notice.
13230
13231         * check-module: Add copyright notice.  Output a copyright
13232         notice if "--version" is specified.
13233         * modules/COPYING: New file.
13234         * tests/test-getaddrinfo.c: Add copyright notice.
13235         * tests/test-verify.c: Likewise.
13236
13237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13238
13239         Change copyright notice from LGPL 2 to GPL 2, since that's the
13240         standard form used in the gnulib repository.
13241         * lib/lock.c: LGPL -> GPL.
13242         * lib/lock.h: Likewise.
13243         * lib/strnlen1.c: Likewise.
13244         * lib/strnlen1.h: Likewise.
13245         * lib/tls.c: Likewise.
13246         * lib/tls.h: Likewise.
13247         * lib/tmpdir.c: Likewise.
13248
13249         * lib/TODO: Remove; this belongs only in coreutils.
13250
13251 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13252
13253         Add copyright notices to long-enough files that lack them, since
13254         otherwise the files aren't clearly free.  Use the same notice that
13255         getdate.texi already uses.
13256         * doc/alloca-opt.texi: Add copyright notice.
13257         * doc/alloca.texi: Likewise.
13258         * doc/ctime.texi: Likewise.
13259         * doc/functions.texi: Likewise.
13260         * doc/gcd.texi: Likewise.
13261         * doc/gnulib-tool.texi: Likewise.
13262         * doc/inet_ntoa.texi: Likewise.
13263         * doc/visibility.texi: Likewise.
13264
13265         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
13266         * doc/quote.texi: Add copyright notice.
13267
13268         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
13269         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
13270         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
13271         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
13272         is now obsolete, and give a pointer to the Sun list.
13273         Add copyright notice.
13274
13275 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13276
13277         * config/srclistvars.sh: Add copyright notice.
13278
13279 2006-08-14  Eric Blake  <ebb9@byu.net>
13280
13281         Import the following change from libc:
13282
13283         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13284
13285         Upstream bug 2997.
13286         * lib/misc/error.c: Add space between program name and message if file
13287         name is missing.
13288
13289 2006-08-12  Karl Berry  <karl@gnu.org>
13290
13291         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
13292         remove, these originate in gnulib now.
13293
13294 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13295
13296         * doc/Makefile (standards.info standards.html standards.dvi):
13297         Also depend on make-stds.texi.
13298
13299 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13300
13301         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
13302         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
13303
13304         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
13305         in wchar_t.  Problem reported by Eric Blake.
13306
13307         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
13308         LEN is smaller than SIZE.  Suggested by Bruno Haible.
13309         Also, help the compiler to keep LEN in a register.
13310
13311 2006-08-11  Eric Blake  <ebb9@byu.net>
13312
13313         * users.txt: Sort.  Add tar.
13314
13315 2006-08-11  Bruno Haible  <bruno@clisp.org>
13316
13317         * users.txt: New file.
13318
13319 2006-08-11  Bruno Haible  <bruno@clisp.org>
13320
13321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
13322         before <wchar.h>. Needed for OSF/1 and BSD/OS.
13323
13324 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13325
13326         * modules/snprintf (Depends-on): Remove minmax.
13327         (Maintainer): Add self and Bruno.
13328
13329 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13330
13331         * lib/.cppi-disable: Add snprintf.h, socket_.h.
13332         * lib/snprintf.c: Include <errno.h> and <limits.h>.
13333         (EOVERFLOW): Define if the system does not.
13334         Do not include "minmax.h"; it wasn't used.
13335         (snprintf): Don't assume size_t promotes to an unsigned type.
13336         Fix bug when generated string was too long for the buffer: the
13337         buffer's contents are supposed to be the initial prefix of the
13338         output.  Don't assume vasnprintf returns EOVERFLOW if the size
13339         exceeds INT_MAX; do the check ourselves.
13340
13341         Import the following changes from libc:
13342
13343         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13344
13345         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
13346         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
13347         set wc to the byte which couldn't be converted.
13348         (re_string_reconstruct): Don't clear valid_raw_len before calling
13349         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13350         tip_context using re_string_context_at.
13351
13352         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
13353
13354         * lib/posix/regex.h: g++ still cannot handled [restrict].
13355
13356         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
13357
13358         * lib/posix/regex.h: Remove special handling for VMS.
13359
13360 2006-08-10  Jim Meyering  <jim@meyering.net>
13361
13362         * modules/same-inode: New module.
13363         * modules/dev-ino: New module.
13364         * modules/cycle-check: Depend on these modules, rather than simply
13365         including their .h files.
13366         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
13367         required via m4/cycle-check.m4.
13368         * modules/same: Depend on new same-inode module, rather than
13369         including same-inode.h.
13370         * modules/chdir-safer: New file.
13371
13372         * modules/chown (Depends-on): Add stat-macros.
13373
13374 2006-08-10  Jim Meyering  <jim@meyering.net>
13375
13376         * m4/cycle-check.m4: New file.
13377         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
13378         * m4/dev-ino.m4, m4/same-inode.m4: New files.
13379
13380 2006-08-10  Eric Blake  <ebb9@byu.net>
13381
13382         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
13383         in from original proposal.
13384
13385 2006-08-10  Eric Blake  <ebb9@byu.net>
13386         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13387
13388         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
13389         namespace.
13390
13391 2006-08-10  Bruno Haible  <bruno@clisp.org>
13392
13393         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
13394         as well.
13395
13396 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13397
13398         Sync from coreutils.
13399
13400         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
13401
13402         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
13403         Reported by Toralf Fƶrster in <http://bugs.gentoo.org/141012>.
13404
13405 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13406
13407         * modules/restrict: Remove; no longer needed now that we assume
13408         Autoconf 2.59 or later.
13409         * MODULES.html.sh: Remove 'restrict'.
13410         * modules/argp (Depends-on): Remove 'restrict'.
13411         * modules/base64 (Depends-on): Likewise.
13412         * modules/gc (Depends-on): Likewise.
13413         * modules/getaddrinfo (Depends-on): Likewise.
13414         * modules/glob (Depends-on): Likewise.
13415         * modules/inet_ntop (Depends-on): Likewise.
13416         * modules/inet_pton (Depends-on): Likewise.
13417         * modules/memxor (Depends-on): Likewise.
13418         * modules/regex (Depends-on): Likewise.
13419         * modules/strtok_r (Depends-on): Likewise.
13420         * modules/time_r (Depends-on): Likewise.
13421
13422 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13423
13424         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
13425         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
13426         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13427         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
13428         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13429         * m4/memxor.m4 (gl_MEMXOR): Likewise.
13430         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
13431         gl_C_RESTRICT replaced by AC_C_RESTRICT.
13432
13433         Merge from coreutils.
13434         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
13435         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
13436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13437         * m4/time_r.m4 (gl_TIME_R): Likewise.
13438
13439 2006-08-09  Karl Berry  <karl@gnu.org>
13440
13441         * config/srclist.txt: no more gettext-tools, per Bruno.
13442
13443 2006-08-08  Eric Blake  <ebb9@byu.net>
13444
13445         * modules/verror: New module.
13446         * MODULES.html.sh: Document it.
13447
13448 2006-08-08  Eric Blake  <ebb9@byu.net>
13449
13450         * lib/verror.h, lib/verror.c: New files.
13451
13452 2006-08-08  Eric Blake  <ebb9@byu.net>
13453
13454         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
13455         verror_at_line output complies with GNU Coding Standards even when
13456         file is NULL.
13457
13458 2006-08-07  Bruno Haible  <bruno@clisp.org>
13459
13460         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
13461         versions of AIX.
13462         Reported by Ralf Wildenhues.
13463
13464 2006-08-07  Bruno Haible  <bruno@clisp.org>
13465
13466         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
13467         in an AC_DEFUN. Needed so that the autoconf snippets can use
13468         AC_REQUIRE.
13469
13470 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13471
13472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13473         Initialize pkgdata_DATA.
13474         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
13475         overriding it.
13476
13477 2006-08-06  Eric Blake  <ebb9@byu.net>
13478
13479         * lib/error.h: Fold in some upstream changes from glibc.
13480         * lib/error.c: Likewise.
13481
13482 2006-08-04  Bruno Haible  <bruno@clisp.org>
13483
13484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13485         Make the mostlyclean-local rule depend on mostlyclean-generic.
13486         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
13487
13488 2006-07-31  Bruno Haible  <bruno@clisp.org>
13489
13490         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
13491         <stdlib.h>, <string.h>.
13492
13493 2006-07-30  Bruno Haible  <bruno@clisp.org>
13494
13495         * modules/readlink (License): Change to LGPL.
13496
13497 2006-07-30  Bruno Haible  <bruno@clisp.org>
13498
13499         * modules/javaversion (Makefile.am): Distribute javaversion.java and
13500         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
13501         set PKGDATADIR to point to it.
13502
13503 2006-07-30  Bruno Haible  <bruno@clisp.org>
13504
13505         * modules/csharpexec (configure.ac): Comment out macro invocation.
13506         * modules/javaexec (configure.ac): Likewise.
13507         * modules/javacomp-script (configure.ac): Likewise.
13508
13509         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
13510
13511 2006-07-30  Bruno Haible  <bruno@clisp.org>
13512
13513         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
13514         linked-list.
13515
13516 2006-07-30  Bruno Haible  <bruno@clisp.org>
13517
13518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
13519
13520 2006-07-30  Bruno Haible  <bruno@clisp.org>
13521
13522         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13523         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
13524         get removed.
13525
13526 2006-07-29  Bruno Haible  <bruno@clisp.org>
13527
13528         Make it possible for gnulib-tool to work with locally modified or
13529         augmented gnulib repositories.
13530         * gnulib-tool (func_usage): Document --local-dir option.
13531         (local_gnulib_dir): New variable.
13532         Handle --local-dir option.
13533         (func_lookup_file): New function.
13534         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
13535         (func_get_description, func_get_filelist, func_get_description,
13536         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
13537         func_get_automake_snippet, func_get_include_directive,
13538         func_get_license, func_get_maintainer): Use func_lookup_file.
13539         (func_import, func_create_testdir): Use func_lookup_file.
13540
13541 2006-07-29  Bruno Haible  <bruno@clisp.org>
13542
13543         * modules/setenv (Depends-on): Add unistd.
13544
13545 2006-07-29  Bruno Haible  <bruno@clisp.org>
13546
13547         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
13548
13549 2006-07-29  Bruno Haible  <bruno@clisp.org>
13550
13551         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
13552
13553 2006-07-29  Bruno Haible  <bruno@clisp.org>
13554
13555         * gnulib-tool (import, update): If there is no Makefile.am, look at
13556         aclocal.m4, instead of bailing out.
13557
13558 2006-07-29  Bruno Haible  <bruno@clisp.org>
13559
13560         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
13561         Categorize the options by when they are useful.
13562
13563 2006-07-29  Bruno Haible  <bruno@clisp.org>
13564
13565         * gnulib-tool (func_usage): Document option --no-libtool.
13566         Handle option --no-libtool.
13567         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
13568         for changed semantics of $libtool variable.
13569         (func_import): Likewise. If libtool is not used, show this through
13570         an option --no-libtool.
13571         (func_create_testdir): Update.
13572
13573 2006-07-29  Bruno Haible  <bruno@clisp.org>
13574
13575         * gnulib-tool (func_import): Extend error message about missing
13576         --doc-base.
13577
13578 2006-07-29  Bruno Haible  <bruno@clisp.org>
13579
13580         * gnulib-tool (func_import): Don't create the $docbase directory if
13581         there is no file to store there.
13582
13583 2006-07-29  Bruno Haible  <bruno@clisp.org>
13584
13585         * gnulib-tool (autoconf_minversion): If a --dir option is given and
13586         relevant, look for configure.ac there, not in the current directory.
13587         Also use a simple search for AC_PREREQ, not "autoconf --trace".
13588
13589 2006-07-29  Bruno Haible  <bruno@clisp.org>
13590
13591         * gnulib-tool (SORT): New variable.
13592         (func_usage): Undocument --assume-autoconf option.
13593         Remove --assume-autoconf option handling.
13594         (autoconf_minversion): Determine from the contents of configure.ac.
13595         (func_import): Remove autoconf_minversion handling.
13596         Suggested by Eric Blake.
13597
13598 2006-07-29  Bruno Haible  <bruno@clisp.org>
13599
13600         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
13601
13602 2006-07-29  Bruno Haible  <bruno@clisp.org>
13603
13604         * config/srclist.txt (*setenv.[ch]): Remove rules.
13605
13606 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13607
13608         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
13609
13610 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13611
13612         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
13613         arpa/inet.h.
13614
13615 2006-07-28  Simon Josefsson  <jas@extundo.com>
13616
13617         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
13618         * modules/inet_pton (Depends-on): Likewise.
13619
13620 2006-07-28  Simon Josefsson  <jas@extundo.com>
13621
13622         * m4/netinet_in_h.m4: New file.
13623
13624 2006-07-28  Simon Josefsson  <jas@extundo.com>
13625
13626         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
13627         #include's.
13628
13629 2006-07-28  Simon Josefsson  <jas@extundo.com>
13630
13631         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
13632         #include's.
13633
13634 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
13635
13636         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
13637         setgid on directories only if they set these bits.
13638         * lib/modechange.h: Remove obsolete comment about masks.
13639
13640 2006-07-28  Eric Blake  <ebb9@byu.net>
13641
13642         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
13643         macro expansion.
13644
13645 2006-07-28  Bruno Haible  <bruno@clisp.org>
13646
13647         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
13648
13649 2006-07-28  Bruno Haible  <bruno@clisp.org>
13650
13651         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
13652
13653 2006-07-28  Bruno Haible  <bruno@clisp.org>
13654
13655         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13656         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13657         Define fallbacks.
13658         Avoids link error on FreeBSD 4.x.
13659         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13660
13661         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
13662         encoding.
13663         * lib/mbswidth.c (iswcntrl): Likewise.
13664
13665 2006-07-27  Bruno Haible  <bruno@clisp.org>
13666
13667         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
13668         test.
13669
13670 2006-07-27  Bruno Haible  <bruno@clisp.org>
13671
13672         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
13673         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
13674         defined.
13675
13676 2006-07-26  Eric Blake  <ebb9@byu.net>
13677
13678         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
13679
13680 2006-07-26  Eric Blake  <ebb9@byu.net>
13681
13682         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
13683         like mingw that lack mkstemp.
13684         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
13685         avoid compilation warning on mingw.
13686
13687 2006-07-26  Bruno Haible  <bruno@clisp.org>
13688
13689         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
13690         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
13691         INT_FAST*_MIN, INTPTR_MIN.
13692
13693 2006-07-25  Bruno Haible  <bruno@clisp.org>
13694
13695         * modules/version-etc (Depends-on): Add stdarg.
13696
13697 2006-07-25  Bruno Haible  <bruno@clisp.org>
13698
13699         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
13700         complex commands.
13701
13702 2006-07-25  Bruno Haible  <bruno@clisp.org>
13703
13704         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
13705         defined in <stdarg.h> or config.h.
13706
13707 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13708
13709         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
13710         (gl_STDIO_SAFER): Remove.
13711
13712 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13713
13714         * MODULES.html.sh (File stream based Input/Output):
13715         Add fopen-safer, tmpfile-safer; remove stdio-safer.
13716         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
13717         * modules/fopen-safer, modules/tmpfile-safer: New files.
13718         * modules/stdio-safer: Remove.
13719
13720 2006-07-24  Bruno Haible  <bruno@clisp.org>
13721
13722         * modules/tmpdir: New file.
13723         * MODULES.html.sh (File system functions): Add it.
13724
13725 2006-07-24  Bruno Haible  <bruno@clisp.org>
13726
13727         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
13728         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
13729
13730 2006-07-24  Bruno Haible  <bruno@clisp.org>
13731
13732         * modules/clean-temp: New file.
13733
13734 2006-07-24  Bruno Haible  <bruno@clisp.org>
13735
13736         * m4/tmpdir.m4: New file, from GNU gettext.
13737
13738 2006-07-24  Bruno Haible  <bruno@clisp.org>
13739
13740         * lib/tmpdir.h: New file, from GNU gettext.
13741         * lib/tmpdir.c: New file, from GNU gettext.
13742
13743 2006-07-24  Bruno Haible  <bruno@clisp.org>
13744
13745         * lib/clean-temp.h: New file, from GNU gettext.
13746         * lib/clean-temp.c: New file, from GNU gettext.
13747
13748 2006-07-23  Eric Blake  <ebb9@byu.net>
13749
13750         * modules/stdio-safer (Files): Add tmpfile-safer.c.
13751         (Depends-on): Add binary-io.
13752
13753 2006-07-23  Eric Blake  <ebb9@byu.net>
13754
13755         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
13756
13757 2006-07-23  Eric Blake  <ebb9@byu.net>
13758
13759         * lib/tmpfile-safer.c: New file.
13760         * lib/stdio-safer.h (fopen_safer): Add prototype.
13761         * lib/stdio--.h (tmpfile): Make safer.
13762
13763 2006-07-23  Bruno Haible  <bruno@clisp.org>
13764
13765         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
13766         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
13767         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
13768         gl_linked_remove_at): Use it.
13769
13770 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13771         and Simon Josefsson <jas@extundo.com>
13772
13773         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
13774
13775         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
13776
13777 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13778
13779         * modules/close-stream: New file.
13780         * modules/closeout (Description): Make it clear that it exits
13781         with a diagnostic on error.
13782         (Depends-on): Add close-stream.  Remove fpending, stdbool.
13783         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
13784
13785 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13786
13787         * m4/close-stream.m4: New file.
13788
13789 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13790
13791         * lib/close-stream.c, lib/close-stream.h: New files.
13792
13793 2006-07-22  Bruno Haible  <bruno@clisp.org>
13794
13795         Merge from GNU gettext 0.15.
13796
13797         2006-05-01  Bruno Haible  <bruno@clisp.org>
13798
13799                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
13800
13801         2006-07-22  Bruno Haible  <bruno@clisp.org>
13802
13803                 * modules/javaversion: New file.
13804                 * MODULES.html.sh (Java): Add javaversion.
13805
13806         2006-03-12  Bruno Haible  <bruno@clisp.org>
13807
13808                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
13809
13810         2005-12-04  Bruno Haible  <bruno@clisp.org>
13811
13812                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
13813                 (untested).
13814
13815         2006-06-21  Bruno Haible  <bruno@clisp.org>
13816
13817                 Avoid warnings from recent versions of mcs.
13818                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
13819                 -o, -L, -r any more. Use options documented since mcs-1.0
13820                 instead. Similarly for -g.
13821
13822         2005-12-04  Bruno Haible  <bruno@clisp.org>
13823
13824                 * build-aux/csharpcomp.sh.in: Suffix for resources is
13825                 .resources, not .resource.
13826
13827         2005-07-09  Bruno Haible  <bruno@clisp.org>
13828
13829                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
13830                 add a .dll suffix.
13831                 Reported by Mark Junker <mjscod@gmx.de>.
13832
13833         2006-07-22  Bruno Haible  <bruno@clisp.org>
13834
13835                 * modules/gettext: Upgrade to gettext-0.15.
13836                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
13837                 m4/visibility.m4.
13838                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
13839
13840 2006-07-22  Bruno Haible  <bruno@clisp.org>
13841
13842         Merge from GNU gettext 0.15.
13843
13844         2006-03-25  Bruno Haible  <bruno@clisp.org>
13845
13846                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
13847
13848         2006-07-21  Bruno Haible  <bruno@clisp.org>
13849
13850                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
13851                 "1.1".
13852
13853         2006-05-09  Bruno Haible  <bruno@clisp.org>
13854
13855                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
13856                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
13857                 for the conftestver execution.
13858
13859         2006-05-01  Bruno Haible  <bruno@clisp.org>
13860
13861                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
13862                 optional target-version argument. Verify that the compiler
13863                 groks source of the specified source-version, or add -source
13864                 option as necessary. Verify that the compiler produces
13865                 bytecode in the specified target-version, or add -target and
13866                 -source options as necessary. Make the result of the test
13867                 available as variable CONF_JAVAC. Also log error output in
13868                 config.log.
13869
13870         2006-03-11  Bruno Haible  <bruno@clisp.org>
13871
13872                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
13873
13874         2006-05-09  Bruno Haible  <bruno@clisp.org>
13875
13876                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
13877                 CLASSPATH_SEPARATOR to a semicolon.
13878
13879         2006-03-12  Bruno Haible  <bruno@clisp.org>
13880
13881                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
13882                 available as variable CONF_JAVA, for subsequent autoconf
13883                 tests. Also log error output in config.log.
13884
13885         2006-07-19  Bruno Haible  <bruno@clisp.org>
13886
13887                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
13888                 that getline works on glibc2 systems. Needed to avoid trouble
13889                 in relocatable.c.
13890                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
13891
13892         2005-12-04  Bruno Haible  <bruno@clisp.org>
13893
13894                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
13895                 launcher (untested).
13896
13897         2005-12-04  Bruno Haible  <bruno@clisp.org>
13898
13899                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
13900
13901         2006-07-22  Bruno Haible  <bruno@clisp.org>
13902
13903                 * gettext.m4: Update from GNU gettext-0.15.
13904                 * nls.m4: Likewise.
13905                 * po.m4: Likewise.
13906                 * inttypes-pri.m4: Likewise.
13907                 * inttypes-h.m4: Renamed from inttypes.m4.
13908                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
13909
13910 2006-07-22  Bruno Haible  <bruno@clisp.org>
13911
13912         Merge from GNU gettext 0.15.
13913
13914         2005-07-05  Bruno Haible  <bruno@clisp.org>
13915
13916                 * printf-args.c (printf_fetchargs): Work around broken
13917                 definition of wint_t on mingw.
13918
13919         2005-02-12  Bruno Haible  <bruno@clisp.org>
13920
13921                 * xallocsa.h: Add extern "C" for C++.
13922
13923         2006-05-17  Bruno Haible  <bruno@clisp.org>
13924
13925                 Cygwin portability.
13926                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
13927
13928         2006-04-30  Bruno Haible  <bruno@clisp.org>
13929
13930                 * progreloc.c: Include <mach-o/dyld.h> if available.
13931                 (find_executable): Use _NSGetExecutablePath when possible.
13932
13933         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
13934
13935                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
13936                 function.
13937
13938         2005-12-29  Bruno Haible  <bruno@clisp.org>
13939
13940                 * progreloc.c (set_program_name_and_installdir): Fix
13941                 compilation error.
13942
13943         2005-12-04  Bruno Haible  <bruno@clisp.org>
13944
13945                 Cygwin portability.
13946                 * progreloc.c: Include <windows.h> also on Cygwin.
13947                 (find_executable): Add support for Cygwin.
13948                 (set_program_name_and_installdir): Handle also platforms with
13949                 nonempty EXEEXT.
13950
13951         2006-07-11  Bruno Haible  <bruno@clisp.org>
13952
13953                 * javacomp.c: Fix a comment.
13954                 Reported by Jim Meyering.
13955
13956         2006-04-30  Bruno Haible  <bruno@clisp.org>
13957
13958                 * javacomp.h (compile_java_class): Add source_version,
13959                 target_version arguments.
13960                 * javacomp.c: Rewritten to choose only a compiler that
13961                 respects the specified source_version and target_version.
13962
13963         2006-06-27  Bruno Haible  <bruno@clisp.org>
13964
13965                 Assume correct S_ISDIR macro.
13966                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
13967
13968         2006-07-22  Bruno Haible  <bruno@clisp.org>
13969
13970                 * javaversion.h: New file, from GNU gettext.
13971                 * javaversion.c: New file, from GNU gettext.
13972                 * javaversion.java: New file, from GNU gettext.
13973                 * javaversion.class: New file, from GNU gettext.
13974
13975         2006-05-17  Bruno Haible  <bruno@clisp.org>
13976
13977                 Cygwin portability.
13978                 * javaexec.c (execute_java_class): Test for jview program
13979                 also on Cygwin.
13980
13981         2006-04-09  Bruno Haible  <bruno@clisp.org>
13982
13983                 * fatal-signal.c: Don't include string.h.
13984                 (at_fatal_signal): Use a copying loop instead of memcpy.
13985
13986         2005-12-04  Bruno Haible  <bruno@clisp.org>
13987
13988                 * csharpexec.c: Add support for 'clix' launcher (untested).
13989                 (execute_csharp_using_sscli): New function.
13990                 (execute_csharp_program): Call it.
13991
13992         2006-06-21  Bruno Haible  <bruno@clisp.org>
13993
13994                 Avoid warnings from recent versions of mcs.
13995                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
13996                 -o, -L, -r any more. Use options documented since mcs-1.0
13997                 instead. Similarly for -g.
13998
13999         2005-07-09  Bruno Haible  <bruno@clisp.org>
14000
14001                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
14002                 add a .dll suffix.
14003                 Reported by Mark Junker <mjscod@gmx.de>.
14004
14005         2006-06-17  Bruno Haible  <bruno@clisp.org>
14006
14007                 * config.charset: Update for NetBSD 3.0.
14008
14009         2006-05-17  Bruno Haible  <bruno@clisp.org>
14010
14011                 Cygwin portability.
14012                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
14013
14014         2006-05-16  Bruno Haible  <bruno@clisp.org>
14015
14016                 * localcharset.c [CYGWIN]: Include <windows.h>.
14017                 (get_charset_aliases): For Cygwin, return the same CPxxx
14018                 aliases list as under WIN32.
14019                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
14020                 the environment variables. Fall back to GetACP().
14021
14022         2006-04-05  Bruno Haible  <bruno@clisp.org>
14023
14024                 * config.charset: Update Juan Manuel Guerrero's address.
14025
14026         2005-02-12  Bruno Haible  <bruno@clisp.org>
14027
14028                 * allocsa.h: Add extern "C" for C++.
14029
14030         2005-02-10  Bruno Haible  <bruno@clisp.org>
14031
14032                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
14033                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
14034
14035         2006-07-22  Bruno Haible  <bruno@clisp.org>
14036
14037                 * gettext.h: Update to GNU gettext-0.15.
14038
14039 2006-07-22  Bruno Haible  <bruno@clisp.org>
14040
14041         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
14042         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
14043         lib-prefix.m4, longdouble.m4, ssize_t.m4.
14044
14045 2006-07-21  Eric Blake  <ebb9@byu.net>
14046
14047         * modules/stdlib-safer: New file.
14048         * MODULES.html.sh (File stream based Input/Output): Add
14049         stdlib-safer.
14050
14051 2006-07-21  Eric Blake  <ebb9@byu.net>
14052
14053         * lib/stdlib-safer.h: New file from coreutils, required by
14054         stdlib--.h.
14055
14056 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
14057
14058         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
14059
14060 2006-07-20  Bruno Haible  <bruno@clisp.org>
14061
14062         * gnulib-tool: Recognize new option --assume-autoconf.
14063         (autoconf_minversion): New variable.
14064         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
14065
14066 2006-07-20  Bruno Haible  <bruno@clisp.org>
14067
14068         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
14069
14070 2006-07-19  Derek R. Price  <derek@ximbiot.com>
14071
14072         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
14073         Reindent and repaginate.
14074
14075 2006-07-19  Derek Price  <derek@ximbiot.com>
14076
14077         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
14078         Correct grammar.
14079
14080 2006-07-17  Bruno Haible  <bruno@clisp.org>
14081
14082         * modules/list: New file.
14083         * modules/array-list: New file.
14084         * modules/carray-list, modules/carray-list-tests: New files.
14085         * modules/linked-list, modules/linked-list-tests: New files.
14086         * modules/avltree-list, modules/avltree-list-tests: New files.
14087         * modules/rbtree-list, modules/rbtree-list-tests: New files.
14088         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
14089         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
14090         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
14091         * modules/oset: New file.
14092         * modules/array-oset: New file.
14093         * modules/avltree-oset, modules/avltree-oset-tests: New files.
14094         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
14095         * tests/test-carray_list.c: New file.
14096         * tests/test-linked_list.c: New file.
14097         * tests/test-avltree_list.c: New file.
14098         * tests/test-rbtree_list.c: New file.
14099         * tests/test-linkedhash_list.c: New file.
14100         * tests/test-avltreehash_list.c: New file.
14101         * tests/test-rbtreehash_list.c: New file.
14102         * tests/test-avltree_oset.c: New file.
14103         * tests/test-rbtree_oset.c: New file.
14104         * MODULES.html.sh (Container data structures): New section.
14105
14106 2006-07-17  Bruno Haible  <bruno@clisp.org>
14107
14108         * m4/gl_list.m4: New file.
14109
14110 2006-07-17  Bruno Haible  <bruno@clisp.org>
14111
14112         * lib/gl_list.h: New file.
14113         * lib/gl_list.c: New file.
14114         * lib/gl_array_list.h: New file.
14115         * lib/gl_array_list.c: New file.
14116         * lib/gl_carray_list.h: New file.
14117         * lib/gl_carray_list.c: New file.
14118         * lib/gl_linked_list.h: New file.
14119         * lib/gl_linked_list.c: New file.
14120         * lib/gl_anylinked_list1.h: New file.
14121         * lib/gl_anylinked_list2.h: New file.
14122         * lib/gl_avltree_list.h: New file.
14123         * lib/gl_avltree_list.c: New file.
14124         * lib/gl_anyavltree_list1.h: New file.
14125         * lib/gl_anyavltree_list2.h: New file.
14126         * lib/gl_rbtree_list.h: New file.
14127         * lib/gl_rbtree_list.c: New file.
14128         * lib/gl_anyrbtree_list1.h: New file.
14129         * lib/gl_anyrbtree_list2.h: New file.
14130         * lib/gl_anytree_list1.h: New file.
14131         * lib/gl_anytree_list2.h: New file.
14132         * lib/gl_linkedhash_list.h: New file.
14133         * lib/gl_linkedhash_list.c: New file.
14134         * lib/gl_anyhash_list1.h: New file.
14135         * lib/gl_anyhash_list2.h: New file.
14136         * lib/gl_avltreehash_list.h: New file.
14137         * lib/gl_avltreehash_list.c: New file.
14138         * lib/gl_rbtreehash_list.h: New file.
14139         * lib/gl_rbtreehash_list.c: New file.
14140         * lib/gl_anytreehash_list1.h: New file.
14141         * lib/gl_anytreehash_list2.h: New file.
14142
14143         * lib/gl_oset.h: New file.
14144         * lib/gl_oset.c: New file.
14145         * lib/gl_array_oset.h: New file.
14146         * lib/gl_array_oset.c: New file.
14147         * lib/gl_avltree_oset.h: New file.
14148         * lib/gl_avltree_oset.c: New file.
14149         * lib/gl_rbtree_oset.h: New file.
14150         * lib/gl_rbtree_oset.c: New file.
14151         * lib/gl_anytree_oset.h: New file.
14152
14153 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14154
14155         * m4/mkancesdirs.m4: New file.
14156         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
14157         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
14158         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
14159         it.
14160
14161 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14162
14163         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
14164         * lib/mkancesdirs.h: New files.
14165         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
14166         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
14167         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
14168         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
14169         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
14170         callers changed.  Revamp internals significantly, by not
14171         attempting to create directories that are temporarily more
14172         permissive than the final results.  Do not attempt to use
14173         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
14174         This removes some race conditions, fixes some bugs, and simplifies
14175         things.  Use new dirchownmod function to do owner and mode changes.
14176         * lib/mkdir-p.h: Likewise.
14177         * lib/modechange.c (octal_to_mode): New function.
14178         (struct mode_change): New member mentioned.
14179         (make_node_op_equals): New arg mentioned.  All callers changed.
14180         (mode_compile): Keep track of which mode bits the user has explicitly
14181         mentioned.
14182         (mode_adjust): New arg DIR, so that we implement the X op correctly.
14183         New arg PMODE_BITS, to keep track of which mode bits the user
14184         mentioned; it treats S_ISUID and S_ISGID speciall.
14185         All callers changed.
14186         * lib/modechange.h: Likewise.
14187
14188 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14189
14190         * MODULES.html.sh: Add mkancestors.
14191         * modules/mkancesdirs: New module.
14192         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
14193         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
14194         The chdir-safer and afs files are now orphans; I'll remove them
14195         unless someone speaks up.
14196         Add lib/dirchownmod.c, lib/dirchownmod.h.
14197         (Depends-on): Remove alloca, chown, save-cwd, dirname.
14198         Add lchown, mkancesdirs.
14199         (Maintainer): Add self.
14200
14201 2006-07-15  Karl Berry  <karl@gnu.org>
14202
14203         * gnulib-tool: help message wording/arrangement.
14204
14205 2006-07-14  Simon Josefsson  <jas@extundo.com>
14206
14207         * doc/gnulib.texi (Libtool and Windows): New section.
14208
14209 2006-07-12  Simon Josefsson  <jas@extundo.com>
14210
14211         * modules/gendocs (License): Fix license, approved by Karl.
14212
14213 2006-07-12  Eric Blake  <ebb9@byu.net>
14214
14215         * MODULES.html.sh: Add gendocs.
14216
14217 2006-07-11  Eric Blake  <ebb9@byu.net>
14218
14219         * modules/fdl: New module, to install doc/fdl.texi.
14220         * MODULES.html.sh: Add new section for documentation modules.
14221         * gnulib-tool: Avoid space-tab.
14222         (--doc-base): New option, to manage files from doc.
14223
14224 2006-07-11  Eric Blake  <ebb9@byu.net>
14225
14226         * m4/absolute-header.m4: Fix comments to match recent change.
14227
14228 2006-07-11  Eric Blake  <ebb9@byu.net>
14229
14230         * gnulib-tool: List --doc-base before --tests-base.
14231
14232 2006-07-11  Derek R. Price  <derek@ximbiot.com>
14233
14234         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
14235
14236 2006-07-11  Bruno Haible  <bruno@clisp.org>
14237
14238         * README: Mention where to put documentation.
14239
14240 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14241
14242         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
14243
14244 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
14245
14246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
14247         to stdint.m4.
14248
14249 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
14250
14251         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
14252         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
14253         "no/such/file/stdint.h" when there is no such file, so that
14254         the resulting C code can be parsed by dodgy compilers.
14255         Problems reported by Bob Proulx.
14256
14257 2006-07-10  Derek R. Price  <derek@ximbiot.com>
14258
14259         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
14260         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
14261         macros into the GNU _D_EXACT_NAMLEN.
14262         * lib/savedir.c:  Likewise.
14263         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
14264
14265 2006-07-10  Derek R. Price  <derek@ximbiot.com>
14266         and Paul Eggert  <eggert@cs.ucla.edu>
14267
14268         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
14269         * m4/savedir.m4:
14270         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
14271         macros into the GNU _D_EXACT_NAMLEN.
14272
14273 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14274
14275         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
14276         around the absolute name, to work around a problem with the HP-UX
14277         11.23 native C compiler, reported by Bob Proulx.
14278
14279 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14280
14281         * doc/maintain.texi, make-stds.texi: Sync from
14282         <http://savannah.gnu.org/projects/gnustandards>.
14283
14284 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14285
14286         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
14287
14288 2006-07-09  Jim Meyering  <jim@meyering.net>
14289
14290         * m4/glob.m4: Remove a doubled word in a comment.
14291
14292 2006-07-09  Jim Meyering  <jim@meyering.net>
14293
14294         * lib/argp-pv.c: Remove a doubled word in a comment.
14295         * lib/check-version.c (check_version): Likewise.
14296         * lib/javacomp.c (compile_java_class): Likewise.
14297
14298 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14299
14300         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
14301         for the benefit of people using Autoconf 2.60.  If you want to
14302         support older Autoconf versions you can copy m4/onceonly_2_57.m4
14303         (or m4/onceonly.m4, if pre-2.57) manually.
14304
14305 2006-07-08  Jim Meyering  <jim@meyering.net>
14306
14307         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
14308         comment.
14309         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
14310         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
14311         comment.
14312
14313 2006-07-08  Jim Meyering  <jim@meyering.net>
14314
14315         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
14316
14317 2006-07-07  Simon Josefsson  <jas@extundo.com>
14318
14319         * tests/test-crc.c: Change expected crc value, the test vector
14320         were probably computed using the old broken crc.c?
14321
14322 2006-07-06  Simon Josefsson  <jas@extundo.com>
14323
14324         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
14325         now the canonical place for the M4 file).
14326
14327         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
14328         from the sys_socket dependency now.
14329
14330         * modules/inet_pton (Files): Ditto.
14331
14332         * modules/inet_ntop (Files): Ditto.
14333
14334 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
14335
14336         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
14337         not gl_PREREQ_GETUSERSHELL.
14338
14339 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14340
14341         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
14342         with only one argument, for Autoconf 2.60.
14343         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
14344         expand to nothing, so add a shell command to avoid syntax error.
14345         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14346
14347 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14348
14349         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
14350
14351 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14352
14353         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
14354         no longer needed.  Check for isblank decl.
14355         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
14356         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
14357         of existence.
14358
14359 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14360
14361         * lib/getloadavg.c: Use __VMS, not VMS.
14362         * lib/getopt.c: Likewise.
14363         * lib/getpagesize.h: Likewise.
14364         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
14365         and probably does not work.
14366
14367 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14368
14369         * lib/.cppi-disable: Add wcwidth.
14370         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
14371         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
14372         (ISGRAPH): Remove.  All uses changed to isgraph.
14373         (FOLD) [!defined _LIBC]: Remove special case.
14374         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
14375         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
14376         HAVE_ISBLANK.
14377         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
14378         case.
14379
14380 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
14381
14382         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
14383         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
14384         brackets.  Other minor changes to suppress some compiler
14385         warnings.
14386
14387 2006-07-06  Derek R. Price  <derek@ximbiot.com>
14388         and Paul Eggert  <eggert@cs.ucla.edu>
14389
14390         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
14391         of invoking obsolescent AC_HEADER_DIRENT macro.
14392         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14393         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
14394         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14396         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
14397         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14398         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
14399         * m4/readdir.m4: Remove; no longer needed.
14400
14401 2006-07-06  Derek R. Price  <derek@ximbiot.com>
14402         and Paul Eggert  <eggert@cs.ucla.edu>
14403
14404         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
14405         Don't worry about this obsolete case any more.
14406         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
14407         directories.
14408         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
14409         worry about this obsolete case any more.
14410         * lib/fts.c: Likewise.
14411         * lib/getcwd.c: Likewise.
14412         * lib/glob.h: Likewise.
14413         * lib/savedir.c: Likewise.
14414
14415 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14416
14417         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
14418         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
14419         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
14420         needed.
14421         All uses removed.
14422         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14423         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14424         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
14425         needed.
14426         * m4/getdate.m4 (gl_GETDATE): Likewise.
14427         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14428         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14429         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14430         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14431         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14432         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14433         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
14434         needed.
14435
14436 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14437
14438         * lib/memcasecmp.c: Include <limits.h>.
14439         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
14440         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
14441         Don't assume isdigit succeeds only on '0' through '9'.
14442
14443 2006-07-05  Eric Blake  <ebb9@byu.net>
14444
14445         * modules/getaddrinfo (Depends-on): Add snprintf.
14446
14447 2006-07-05  Eric Blake  <ebb9@byu.net>
14448
14449         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
14450         to avoid 'header present but could not be compiled' on cygwin.
14451
14452 2006-07-05  Eric Blake  <ebb9@byu.net>
14453
14454         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
14455         missing from netdb.h.
14456         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
14457
14458 2006-07-05  Derek R. Price  <derek@ximbiot.com>
14459
14460         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
14461         no longer needed.
14462         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
14463         * m4/getdate.m4 (gl_GETDATE): Likewise.
14464         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14465         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14466         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14467         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14468         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14469
14470 2006-07-05  Derek R. Price  <derek@ximbiot.com>
14471
14472         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
14473         All uses of is_space replaced by isspace.
14474         * lib/exit.h: Don't talk about STDC_HEADERS.
14475         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
14476         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
14477         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
14478         replaced by isprint etc.
14479         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
14480         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14481         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
14482         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
14483         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
14484         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14485
14486 2006-07-05  Bruno Haible  <bruno@clisp.org>
14487
14488         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
14489         the function exists, before testing against AIX.
14490         Reported by Martin Lambers <marlam@marlam.de>.
14491
14492 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14493
14494         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
14495         From Mark D. Baushke.
14496
14497 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14498
14499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
14500         to the absolute name, not just one, to bypass Sun C 5.8's
14501         "warning: #include of /usr/include/... may be non-portable".
14502
14503 2006-07-04  Eric Blake  <ebb9@byu.net>
14504
14505         * modules/dirname-tests: New test module.
14506         * tests/test-dirname.c: New file, replacing dirname.c
14507         TEST_DIRNAME section that was recently deleted.
14508
14509 2006-07-04  Bruno Haible  <bruno@clisp.org>
14510
14511         Assume ANSI C header files and <ctype.h> functions.
14512         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
14513         (mbsnwidth): Use isprint, iscntrl instead.
14514
14515 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14516
14517         Merge from coreutils.
14518         * MODULES.html.sh: Add xstrtold.
14519         * modules/xstrtold: New file.
14520         * modules/cycle-check (Files): Add lib/same-inode.h.
14521         * modules/dirname (Files): Add m4/double-slash-root.m4.
14522         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
14523         * modules/mkdir-p (Files): Add lib/same-inode.h.
14524         * modules/same (Files): Add lib/same-inode.h.
14525
14526 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14527
14528         * m4/absolute-header.m4: Renamed from full-header-path.m4.
14529         This is to keep the terminology clean; POSIX talks about
14530         "absolute pathnames", not "full pathnames", but the GNU
14531         Coding Standards say to use "path" for something else;
14532         so use "absolute" to keep both sides happy.
14533         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
14534         Set gl_absolute_header, not gl_full_header_path.
14535         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
14536         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
14537         All uses changed.
14538
14539         Merge from coreutils.
14540
14541         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14542
14543         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
14544         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
14545         want to require the building of c-strtod.o.
14546         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
14547         needs -lm directly.
14548         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
14549
14550         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
14551
14552         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
14553         --as-needed option if available.  Problem reported by Albert Chin in
14554         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
14555         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
14556         cc merely issues a bunch of annoying warnings for --as-needed
14557         (this problem was reported by Bob Proulx).  Also, try linking with
14558         -lm to detect a bug in binutils 2.16 (this problem was reported
14559         by Ralf Wildenhues).
14560
14561         2006-06-18  Jim Meyering  <jim@meyering.net>
14562
14563         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
14564         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
14565         macro.
14566         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
14567         also check for glibc-2.4's abort-inducing bug.
14568
14569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
14570         Low-probability clean-up should be to use rmdir to get rid of
14571         the just-created directory, not unlink.
14572
14573         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
14574         configure fail, and request a bug report to inform us about it.
14575         Add a comment that, barring reports to the contrary, in 2007 we'll
14576         assume ftruncate is universally available.
14577
14578         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14579
14580         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
14581
14582         2006-03-12  Jim Meyering  <jim@meyering.net>
14583
14584         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
14585         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
14586         * m4/same.m4 (gl_SAME): Likewise.
14587         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
14588
14589         2006-03-11  Eric Blake  <ebb9@byu.net>
14590
14591         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
14592         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
14593         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
14594         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
14595
14596 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14597
14598         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
14599         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
14600         reported by Mark D. Baushke, one in
14601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
14602
14603         Merge from coreutils.
14604
14605         * lib/.cppi-disable: Add stdint_.h.
14606         * lib/.cvsignore: Add stdint.h.
14607
14608         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14609
14610         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
14611         both double and long double versions.
14612         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
14613         * lib/xstrtold.c: New file.
14614         * lib/xstrtod.h (xstrtold): New decl.
14615
14616         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14617
14618         * lib/filemode.c (setst): Remove.
14619         (strmode): Rewrite to avoid setst.  This makes the code shorter,
14620         (arguably) clearer, and the generated code is a bit smaller on my
14621         Debian GNU/Linux stable x86 host.
14622
14623         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14624
14625         * lib/filemode.c: Include "filemode.h" first, to test the interface.
14626         Assume that filemode.h includes sys/types.h and sys/stat.h.
14627         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
14628         (ftypelet): Reorder to put common cases first, for efficiency.
14629         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
14630         to do 'M'.
14631         (strmode): Renamed from mode_string, and now stores 12 bytes instead
14632         of 10, for compatibility with FreeBSD.  All callers changed.
14633         (filemodestring): Now stores 12 bytes instead of 10, and sets file
14634         types that can't be deduced solely from st_mode.  First arg is now a
14635         const pointer.
14636         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
14637         (strmode): Renamed from mode_string.
14638         (filemodestring): New decl.
14639         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
14640         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
14641         needed.
14642         (S_ISPORT, S_ISWHT): New macros, if not already defined.
14643
14644         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14645
14646         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
14647         fsusage.h now does that.  Include fsusage.h first, to test interface.
14648         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
14649         at most one method (the old code could have generated decls that
14650         didn't conform to C89, not that this was ever exercised).
14651         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
14652
14653         2006-03-19  Jim Meyering  <jim@meyering.net>
14654
14655         Work even in a chroot where d_ino values for entries in "/"
14656         don't match the stat.st_ino values for the same names.
14657         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
14658         number, iterate through all entries again, using lstat instead.
14659         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
14660         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
14661
14662         * lib/getcwd.c (__getcwd): Clarify a comment.
14663         Use memcpy in place of a call to strcpy.
14664
14665         2006-03-12  Jim Meyering  <jim@meyering.net>
14666
14667         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
14668         matches that of the current directory (which we're about to chdir ".."
14669         out of), then save the dev-ino of the parent, instead.
14670
14671         * lib/same-inode.h (SAME_INODE): New file/macro.
14672         * lib/chdir-safer.c (SAME_INODE): Remove definition.
14673         Include "same-inode.h", instead.
14674         * lib/same.c: Likewise.
14675         * lib/cycle-check.h: Include "same-inode.h".
14676         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
14677         * lib/cycle-check.c (SAME_INODE): Remove definition.
14678         * lib/root-dev-ino.h: Include "same-inode.h".
14679
14680         2006-03-11  Eric Blake  <ebb9@byu.net>
14681
14682         * lib/same.c (same_name): s/base_name/last_component/
14683         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
14684         * lib/filenamecat.c (file_name_concat): Likewise.
14685
14686         2006-03-11  Eric Blake  <ebb9@byu.net>,
14687                     Paul Eggert  <eggert@cs.ucla.edu>
14688
14689         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
14690         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
14691         drive prefix.
14692         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
14693         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
14694         (last_component): New method.
14695         * lib/dirname.c (dir_len): Determine when drive letters need a
14696         subsequent slash.  Preserve // when it is special.
14697         (dir_name): Don't append dot when drive letter is absolute.
14698         [TEST_DIRNAME]: Move into a full-blown gnulib test.
14699         * lib/basename.c (base_name): New semantics - malloc the result.
14700         Preserve // when it is special.  Preserve relative files that look
14701         like drive letters.
14702         (base_len): Preserve // when it is special.
14703         (last_component): New method, similar to old base_name semantics.
14704         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
14705         base_name.  Strip redundant slashes from ///.
14706
14707 2006-07-03  Jim Meyering  <jim@meyering.net>
14708
14709         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
14710         macro is used before the first cycle_check call.
14711
14712 2006-07-03  Eric Blake  <ebb9@byu.net>
14713
14714         * modules/dirname (Depends-on): Add xstrndup.
14715
14716 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14717
14718         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
14719         test cases, so that config.log is a bit easier to follow.
14720
14721 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14722
14723         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
14724         both are 64 bits, since this seems to be the tradition, and this
14725         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
14726         we ever run into a host that prefers long long to long in this
14727         case, we'll need another configure-time test.  Problem reported by
14728         Jim Meyering.
14729
14730 2006-07-02  Eric Blake  <ebb9@byu.net>
14731
14732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
14733
14734 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14735
14736         * modules/inttypes (Depends-on): No longer depends on stdint.
14737         * modules/stdint (Description): Say more about assumptions.
14738         Say that the fast types might differ.  Say macros are used.
14739         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
14740         (Makefile.am): Revise list of substituted symbols to match
14741         new stdint.m4.
14742         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
14743         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
14744         * tests/test-stdint.c (verify_same_types)
14745         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
14746         the code conforms to C99/C89.
14747         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
14748         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
14749
14750 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14751
14752         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
14753         but fix a bug, by requiring at least 64 bits.
14754         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
14755         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
14756         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
14757         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
14758
14759         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
14760         changes.  Make 2.59 a prerequisite.  Check and substitute for
14761         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
14762         inttypes.h.  Do not use special include files; just use the
14763         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
14764         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
14765         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
14766         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
14767         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
14768         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
14769         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
14770         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
14771         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
14772         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
14773         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
14774         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
14775         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
14776         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
14777         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
14778         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
14779         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
14780         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
14781         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
14782         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
14783         WINT_MAX.  Check for C99 conformance more strictly, by detecting
14784         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
14785         not check for things that C99 does not require, e.g., int8_t.  If
14786         a test isn't needed unless <stdint.h> isn't working, and is
14787         unlikely to be needed for any other reason, then don't do it
14788         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
14789         size_t, since we assume C89 freestanding at least.  Do not check
14790         for sig_atomic_t, wchar_t, or wint_t, since the code now does
14791         the right thing even if the types are not defined.  Instead use:
14792         (gl_STDINT_TYPE_PROPERTIES): New macro.
14793         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
14794         testing whether <sys/types.h> clashes, as Autoconf does this for
14795         us now.  All uses removed.
14796         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
14797         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
14798         (gl_CHECK_TYPE_SAME):
14799         Remove; no longer needed.
14800         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
14801         exists, since we'll return 0 anyway in that case.
14802         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
14803
14804 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14805
14806         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
14807         possible collision with system files.
14808         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
14809         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
14810         WCHAR_MIN and WCHAR_MAX in this case.
14811         (<stddef.h>): Do not include; no longer needed.
14812         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
14813         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
14814         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
14815         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
14816         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
14817         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
14818         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
14819         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
14820         !defined(__c99))]: Include in this case too, since it's harmless
14821         now.
14822         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
14823         dangerous to do so.
14824         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
14825         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
14826         (_STDINT_MIN, _STDINT_MAX): New macros.
14827         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
14828         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
14829         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
14830         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
14831         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
14832         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
14833         macros, not typedefs; this simplifies things quite a bit.
14834         Use long int for all types narrower than int64_t.
14835         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
14836         Define in terms of long long int or int64_t or long int,
14837         not int64_t or int32_t.  This saves some compile-time testing.
14838         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
14839         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
14840         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
14841         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
14842         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
14843         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
14844         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
14845         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
14846         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
14847         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
14848         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14849         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14850         undef any previous version and define our own version, for
14851         simplicity and consistency with the new macros for types.
14852         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14853         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14854         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
14855         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
14856         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
14857         @WINT_T_SUFFIX@ to keep things simple here.
14858         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
14859         Simplify by assuming typical 8/16/32/64 host, since we're
14860         already doing that elsewhere anyway.
14861         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
14862         and assume long long int is 64 bits if available.  This
14863         speeds up 'configure'.
14864
14865 2006-07-01  Eric Blake  <ebb9@byu.net>
14866
14867         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
14868         Reported by Andreas Buening.
14869
14870 2006-07-01  Eric Blake  <ebb9@byu.net>
14871
14872         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
14873
14874 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
14875
14876         * lib/getaddrinfo.c: fixed typo
14877
14878 2006-06-29  Jim Meyering  <jim@meyering.net>
14879
14880         * modules/strftime (Maintainer): Add my name, since with the
14881         FPRINTFTIME changes strftime.c has forked from glibc.
14882
14883 2006-06-29  Eric Blake  <ebb9@byu.net>
14884
14885         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
14886
14887 2006-06-29  Eric Blake  <ebb9@byu.net>
14888
14889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
14890
14891 2006-06-29  Eric Blake  <ebb9@byu.net>
14892
14893         * lib/stat_.h: New file.
14894
14895 2006-06-29  Eric Blake  <ebb9@byu.net>
14896
14897         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
14898         unused static function.
14899
14900 2006-06-29  Eric Blake  <ebb9@byu.net>
14901
14902         * doc/functions.texi (Function Portability): Document missing lstat
14903         on mingw.
14904
14905 2006-06-29  Eric Blake  <ebb9@byu.net>
14906
14907         * MODULES.html.sh: Add sys_stat.
14908         * modules/sys_stat: New module.
14909         * modules/mkstemp (Depends-on): Add sys_stat.
14910
14911 2006-06-29  Derek R. Price  <derek@ximbiot.com>
14912
14913         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
14914
14915 2006-06-29  Derek R. Price  <derek@ximbiot.com>
14916
14917         * m4/c-bs-a.m4: Removed.
14918
14919 2006-06-29  Derek R. Price  <derek@ximbiot.com>
14920
14921         * lib/strftime.c: Assume strftime() exists.
14922
14923 2006-06-29  Derek Price  <derek@ximbiot.com>
14924
14925         * modules/c-bs-a: Removed - \a is C89.
14926         * MODULES.html.sh: Remove c-bs-a.
14927
14928 2006-06-29  Bruno Haible  <bruno@clisp.org>
14929
14930         * modules/wcwidth (License): Change to LGPL.
14931
14932 2006-06-28  Simon Josefsson  <jas@extundo.com>
14933
14934         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
14935         on _WIN32.
14936
14937         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
14938         getnameinfo.
14939
14940 2006-06-28  Simon Josefsson  <jas@extundo.com>
14941
14942         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
14943
14944 2006-06-28  Simon Josefsson  <jas@extundo.com>
14945
14946         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
14947         functions there.  It will succeed on Windows XP, but on Windows
14948         2000 and (presumably) earlier, it will fail, and use the internal
14949         re-implementation.
14950         (use_win32_p): New function.
14951         (getaddrinfo): Use strtoul on servname, to support numeric ports.
14952         Support AI_NUMERICSERV to disable getservbyname.
14953         (getnameinfo): New function, only supports
14954         NI_NUMERICHOST|NI_NUMERICSERV for now.
14955
14956         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
14957         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
14958         getnameinfo.
14959
14960 2006-06-28  Eric Blake  <ebb9@byu.net>
14961
14962         * modules/wcwidth: New file.
14963         * modules/mbchar (Depends-on): Add wcwidth.
14964         * modules/mbswidth (Depends-on): Add wcwidth.
14965         * MODULES.html.sh: Add wcwidth.
14966
14967 2006-06-28  Eric Blake  <ebb9@byu.net>
14968
14969         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
14970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
14971
14972 2006-06-28  Eric Blake  <ebb9@byu.net>
14973
14974         * lib/xvasprintf.h: Fix comments.
14975
14976 2006-06-28  Eric Blake  <ebb9@byu.net>
14977
14978         * lib/mbchar.h (wcwidth): Include wcwidth.h.
14979         * lib/mbswidth.c (wcwidth): Move from here...
14980         * lib/wcwidth.h: ...to this new file.
14981
14982 2006-06-28  Derek R. Price  <derek@ximbiot.com>
14983
14984         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
14985
14986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
14987         it's obsolete.
14988         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
14989
14990 2006-06-28  Derek R. Price  <derek@ximbiot.com>
14991
14992         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
14993         Autoconf 2.60 says this stuff was obsolete.
14994
14995 2006-06-28  Bruno Haible  <bruno@clisp.org>
14996
14997         * modules/wcwidth (Files): Add m4/wchar_t.m4.
14998
14999 2006-06-28  Bruno Haible  <bruno@clisp.org>
15000
15001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
15002         gt_TYPE_WCHAR_T.
15003
15004 2006-06-28  Bruno Haible  <bruno@clisp.org>
15005
15006         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
15007         declaration for wcwidth.
15008         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
15009
15010 2006-06-28  Bruno Haible  <bruno@clisp.org>
15011
15012         * lib/mkdtemp.c [MINGW]: Include <io.h>.
15013         (mkdir): Define using _mkdir.
15014
15015 2006-06-28  Bruno Haible  <bruno@clisp.org>
15016
15017         * lib/getaddrinfo.h: Fix POSIX URL.
15018         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
15019         _WIN32.
15020         (use_win32_p): Make static.
15021         (getaddrinfo): Reject service name if it is empty or does not consist
15022         solely of decimal digits, or if its value is > 65535.
15023         (getnameinfo): Remove useless casts.
15024
15025 2006-06-27  Simon Josefsson  <jas@extundo.com>
15026
15027         * modules/sys_select: New file, suggested by Bruno Haible, Paul
15028         Eggert and Martin Lambers.
15029
15030 2006-06-27  Simon Josefsson  <jas@extundo.com>
15031
15032         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
15033         Eggert and Martin Lambers.
15034
15035 2006-06-27  Bruno Haible  <bruno@clisp.org>
15036
15037         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
15038         result to 0, not to empty.
15039         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
15040
15041 2006-06-27  Bruno Haible  <bruno@clisp.org>
15042
15043         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
15044
15045 2006-06-26  Simon Josefsson  <jas@extundo.com>
15046
15047         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
15048         present.
15049
15050 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
15051
15052         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
15053         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
15054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
15055
15056 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
15057
15058         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
15059
15060 2006-06-26  Bruno Haible  <bruno@clisp.org>
15061
15062         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
15063
15064 2006-06-26  Bruno Haible  <bruno@clisp.org>
15065
15066         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
15067
15068 2006-06-26  Bruno Haible  <bruno@clisp.org>
15069
15070         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
15071         SGI C compiler in pre-C99 mode.
15072         Suggested by Mark D. Baushke and Larry Jones.
15073
15074 2006-06-26  Bruno Haible  <bruno@clisp.org>
15075
15076         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
15077         WCHAR_MAX.
15078         Reported by Mark D. Baushke and Larry Jones.
15079
15080 2006-06-26  Bruno Haible  <bruno@clisp.org>
15081
15082         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
15083         in pre-C99 mode.
15084         Suggested by Mark D. Baushke and Larry Jones.
15085
15086 2006-06-23  Simon Josefsson  <jas@extundo.com>
15087             Bruno Haible  <bruno@clisp.org>
15088
15089         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
15090         Emit mostlyclean-local rule.
15091         (func_emit_tests_Makefile_am): Likewise.
15092         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
15093
15094 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
15095
15096         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
15097
15098 2006-06-23  Bruno Haible  <bruno@clisp.org>
15099
15100         * tests/test-stdint.c: Update to match ISO C 99 Technical
15101         Corrigendum 1.
15102
15103 2006-06-23  Bruno Haible  <bruno@clisp.org>
15104
15105         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
15106
15107 2006-06-23  Bruno Haible  <bruno@clisp.org>
15108
15109         * lib/stdint_.h: Treat IRIX like OpenBSD.
15110
15111 2006-06-23  Bruno Haible  <bruno@clisp.org>
15112
15113         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
15114         ISO C 99 Technical Corrigendum 1.
15115
15116 2006-06-22  Simon Josefsson  <jas@extundo.com>
15117
15118         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
15119         MinGW.
15120
15121 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
15122
15123         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
15124         needed.  Some compiler complained about some of them.  Problem reported
15125         by Larry Jones in
15126         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
15127
15128 2006-06-21  Simon Josefsson  <jas@extundo.com>
15129
15130         * tests/test-getaddrinfo.c: New file.
15131
15132         * modules/getaddrinfo-tests: New file.
15133
15134         * MODULES.html.sh: Add inet_pton.
15135
15136         * modules/inet_pton: New file.
15137
15138 2006-06-21  Simon Josefsson  <jas@extundo.com>
15139
15140         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
15141         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
15142         of using the (limited) gnulib implementation on Windows XP.
15143
15144         * m4/inet_pton.m4: New file.
15145
15146 2006-06-21  Simon Josefsson  <jas@extundo.com>
15147
15148         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
15149         variable.
15150
15151         * lib/socket_.h: Don't define WINVER.
15152
15153         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
15154         slightly modified to work in gnulib.
15155
15156 2006-06-21  Simon Josefsson  <jas@extundo.com>
15157
15158         * doc/gnulib.texi (Windows sockets): Add.
15159
15160 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15161
15162         * lib/read-file.c (fread_file): Start with buffer allocation of
15163         0 bytes rather than 1 byte; this simplifies the code.
15164         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
15165         code to free buffer and save/restore errno.
15166         (internal_read_file): Remove unused local.
15167
15168 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15169
15170         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
15171         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
15172         Problem reported by Denis Excoffier in
15173         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
15174
15175 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15176
15177         * modules/sys_socket, modules/socklen: Include sys/types since
15178         FreeBSD 4.x's sys/socket.h needs it.
15179
15180 2006-06-19  Simon Josefsson  <jas@extundo.com>
15181
15182         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
15183
15184 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
15185
15186         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
15187
15188 2006-06-19  Bruno Haible  <bruno@clisp.org>
15189
15190         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
15191         and FULL_PATH_INTTYPES_H in angle brackets.
15192         Reported by Mark D. Baushke <mdb@gnu.org>.
15193
15194 2006-06-17  Eric Blake  <ebb9@byu.net>
15195
15196         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
15197         errno.
15198
15199 2006-06-17  Bruno Haible  <bruno@clisp.org>
15200
15201         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
15202         <sys/inttypes.h>.
15203
15204 2006-06-17  Bruno Haible  <bruno@clisp.org>
15205
15206         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
15207         whether errno is declared. Assume <errno.h> declares errno.
15208
15209 2006-06-17  Bruno Haible  <bruno@clisp.org>
15210
15211         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
15212
15213 2006-06-17  Bruno Haible  <bruno@clisp.org>
15214
15215         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
15216         problem on Solaris 2.5.1.
15217
15218 2006-06-16  Eric Blake  <ebb9@byu.net>
15219
15220         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
15221         * lib/unicodeio.c [!defined errno]: Likewise.
15222         * lib/strtol.c [!defined errno]: Likewise.
15223         * lib/strtod.c [!defined errno]: Likewise.
15224
15225 2006-06-15  Eric Blake  <ebb9@byu.net>
15226
15227         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
15228
15229 2006-06-15  Eric Blake  <ebb9@byu.net>
15230
15231         * config/srclist.txt (ssize_t.m4): Lose sync.
15232
15233 2006-06-15  Bruno Haible  <bruno@clisp.org>
15234
15235         * modules/stdint (Files): Include m4/full-header-path.m4,
15236         m4/size_max.m4, m4/wchar_t.m4.
15237         (Makefile.am): Many more substitutions.
15238         * modules/stdint-tests: New file.
15239         * tests/test-stdint.c: New file.
15240
15241 2006-06-15  Bruno Haible  <bruno@clisp.org>
15242
15243         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
15244         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
15245         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
15246         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
15247         gl_CHECK_TYPE_SAME): New macros.
15248
15249 2006-06-15  Bruno Haible  <bruno@clisp.org>
15250
15251         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
15252
15253 2006-06-15  Bruno Haible  <bruno@clisp.org>
15254
15255         * lib/stdint_.h: Rewritten to be fully auto-configured.
15256         Fixes bug on HP-UX/IA64.
15257
15258 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
15259
15260         * lib/getdate.y (__attribute__): Don't define if already defined.
15261         Problem reported by Larry Jones.
15262         * lib/utimens.c (__attribute__): Likewise.
15263
15264 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
15265
15266         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
15267         reported by Andreas Schwab.
15268
15269 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15270             Bruno Haible  <bruno@clisp.org>
15271
15272         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
15273         check for the declaration of strnlen and a run test that exposes the
15274         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
15275         rpl_strndup.
15276
15277 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15278             Bruno Haible  <bruno@clisp.org>
15279
15280         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
15281
15282 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15283
15284         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
15285         compile test, for Tru64 4.0D.
15286
15287 2006-05-28  Karl Berry  <karl@gnu.org>
15288
15289         * config/srclist.txt (printf-args.c): lose sync.
15290
15291 2006-05-26  Martin Lambers  <marlam@marlam.de>
15292
15293         * lib/getpass.c: Updates the test for the native W32 API, and adds
15294         missing includes, thus fixing compilation warnings.
15295
15296 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
15297
15298         * lib/exclude.c (exclude_fnmatch): New function.
15299         (excluded_file_name): Call exclude_fnmatch.
15300         * lib/exclude.h (excluded_file_name): New prototype
15301
15302 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
15303
15304         * lib/tempname.c (small_open, large_open): New macros.
15305         (__open, __open64) [!_LIBC]: Remove.
15306         (__gen_tempname): Use small_open and large_open instead of __open
15307         and __open64.  This fixes a portability bug on HP-UX 11.11i
15308         reported by Simon Wing-Tang in
15309         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
15310
15311 2006-05-24  Bruno Haible  <bruno@clisp.org>
15312
15313         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
15314         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
15315         Reported by Thorsten Maerz <torte@netztorte.de> via
15316         Aaron Stone <aaron@serendipity.cx>.
15317
15318 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15319
15320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
15321         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
15322         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
15323         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
15324         not really conditional on the cache.
15325         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
15326
15327 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15328
15329         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
15330         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
15331         (my_usleep): Don't mishandle maximum value.
15332
15333 2006-05-19  Jim Meyering  <jim@meyering.net>
15334
15335         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
15336
15337 2006-05-17  Bruno Haible  <bruno@clisp.org>
15338
15339         Cygwin portability.
15340         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
15341
15342 2006-05-17  Bruno Haible  <bruno@clisp.org>
15343
15344         * lib/stdint_.h: Fix recognition of Cygwin.
15345
15346 2006-05-15  Bruno Haible  <bruno@clisp.org>
15347
15348         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
15349         on libtool patch by Ralf Wildenhues.
15350
15351 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15352
15353         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
15354         test for C99 conformance; (bool) 0.5 is an integer constant
15355         expression, but (bool) -0.5 is not.  Problem reported by Fedor
15356         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
15357
15358 2006-05-11  Simon Josefsson  <jas@extundo.com>
15359
15360         * m4/xvasprintf.m4: Fix obvious typo.
15361
15362 2006-05-11  Jim Meyering  <jim@meyering.net>
15363
15364         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
15365         James Lemley.
15366
15367 2006-05-10  Simon Josefsson  <jas@extundo.com>
15368
15369         * lib/md4.c: Typo fix, update copyright years.
15370         (K1, K2): Don't use L because it turn computations into 64-bit on
15371         64-bit platforms.
15372
15373 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15374
15375         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
15376         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
15377         unwanted sign propagation, e.g., on hosts with 64-bit int.
15378         There still are some problems with reeelly weird theoretical hosts
15379         (e.g., 33-bit int) but it's not worth worrying about now.
15380         * lib/sha1.c (rol): Likewise.
15381         (K1, K2, K3, K4): Remove unnecessary L suffix.
15382
15383 2006-05-10  Bruno Haible  <bruno@clisp.org>
15384
15385         * lib/des.c: Cast to avoid warnings.
15386
15387 2006-05-09  Bruno Haible  <bruno@clisp.org>
15388
15389         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
15390         (Depends-on): Depend also on xsize, stdarg.
15391         (configure.ac): Add gl_XVASPRINTF.
15392
15393 2006-05-09  Bruno Haible  <bruno@clisp.org>
15394
15395         * m4/xvasprintf.m4: New file.
15396
15397 2006-05-09  Bruno Haible  <bruno@clisp.org>
15398
15399         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
15400         (EOVERFLOW): Define fallback value.
15401         (xstrcat): New function.
15402         (xvasprintf): Recognize the special case of a string concatenation.
15403
15404 2006-05-08  Eric Blake  <ebb9@byu.net>
15405
15406         * gnulib-tool (func_version): Base copyright year on CVS date.
15407         (func_emit_copyright_notice): New function.
15408         (func_emit_lib_Makefile_am): Use it.
15409         (func_emit_tests_Makefile_am): Likewise.
15410         (func_import): Likewise.
15411
15412 2006-05-08  Bruno Haible  <bruno@clisp.org>
15413
15414         * modules/stdarg: New file.
15415         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
15416
15417 2006-05-08  Bruno Haible  <bruno@clisp.org>
15418
15419         * m4/stdarg.m4: New file, from GNU gettext.
15420
15421 2006-05-08  Bruno Haible  <bruno@clisp.org>
15422
15423         * config/srclist.txt (build-aux/config.rpath): different from latest
15424         release.
15425
15426 2006-05-08  Bruno Haible  <bruno@clisp.org>
15427
15428         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
15429
15430 2006-05-05  Jim Meyering  <jim@meyering.net>
15431
15432         * m4/warning.m4: New file, derived from bison's file by the same name.
15433
15434 2006-05-03  Bruno Haible  <bruno@clisp.org>
15435
15436         * lib/stdint_.h: Shorter URL.
15437         * lib/inttypes.h: Likewise.
15438
15439 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15440
15441         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
15442
15443 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15444
15445         * lib/verify.h: Document the internals better.  Most of this change
15446         was written by Bruno Haible.
15447
15448 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15449
15450         * doc/verify.texi: New file, partly based on a proposal by
15451         Bruno Haible.
15452
15453 2006-05-02  Bruno Haible  <bruno@clisp.org>
15454
15455         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
15456         test from here...
15457         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
15458
15459 2006-04-29  Bruno Haible  <bruno@clisp.org>
15460
15461         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
15462         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
15463
15464 2006-04-29  Bruno Haible  <bruno@clisp.org>
15465
15466         * gnulib-tool: Make --update option actually work.
15467
15468 2006-04-29  Bruno Haible  <bruno@clisp.org>
15469
15470         * doc/gcd.texi: New file.
15471         * doc/gnulib.texi: Include it.
15472
15473 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15474
15475         * lib/getdate.y (get_date): When adding relative date, start with the
15476         initial time, not with the result of the first mktime call.
15477
15478 2006-04-25  Bruno Haible  <bruno@clisp.org>
15479
15480         * gnulib-tool (func_import): Output the include directives in three
15481         blocks, sorted separately.
15482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15483
15484 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15485
15486         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
15487         to define main with arguments, for C++.  Reported by Eric Blake.
15488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15489         Prefer 'int main ()' to 'int main (void)', for C++.
15490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15491         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
15492         for 'main', for C99 and C++.
15493
15494 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15495
15496         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
15497         Don't assume that exit status -1 is valid.
15498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15499         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15500         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15501         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
15502         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
15503         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
15504         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
15505         functions can be used without declaring them, or that you can
15506         exit with status -1.
15507         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15508
15509 2006-04-24  Karl Berry  <karl@gnu.org>
15510
15511         * config/srclist.txt (longdouble.m4): sync lost.
15512
15513 2006-04-24  Eric Blake  <ebb9@byu.net>
15514
15515         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
15516
15517 2006-04-24  Bruno Haible  <bruno@clisp.org>
15518
15519         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
15520         poll() implementation in AIX.
15521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15522
15523 2006-04-24  Bruno Haible  <bruno@clisp.org>
15524
15525         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
15526         assigned exactly once.
15527
15528 2006-04-23  Claudio Fontana  <claudio@gnu.org>
15529             Bruno Haible  <bruno@clisp.org>
15530
15531         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
15532         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
15533         for AM_CPPFLAGS.
15534
15535 2006-04-23  Bruno Haible  <bruno@clisp.org>
15536
15537         * modules/copy-file: Depend on unistd.
15538         * modules/execute: Likewise.
15539         * modules/fatal-signal: Likewise.
15540         * modules/findprog: Likewise.
15541         * modules/mkdtemp : Likewise.
15542         * modules/pipe: Likewise.
15543         * modules/wait-process: Likewise.
15544
15545 2006-04-23  Bruno Haible  <bruno@clisp.org>
15546
15547         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
15548         condition was already detected.
15549         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15550
15551 2006-04-23  Bruno Haible  <bruno@clisp.org>
15552
15553         * lib/copy-file.c: Include <unistd.h> unconditionally.
15554         * lib/execute.c: Likewise.
15555         * lib/fatal-signal.c: Likewise.
15556         * lib/findprog.c: Likewise.
15557         * lib/mkdtemp.c: Likewise.
15558         * lib/pipe.h: Likewise.
15559         * lib/pipe.c: Likewise.
15560         * lib/wait-process.h: Likewise.
15561
15562 2006-04-23  Bruno Haible  <bruno@clisp.org>
15563
15564         * gnulib-tool (func_usage): Fix --import description. Document
15565         --update.
15566         (func_import): Create temporary file in a temporary directory, if
15567         --dry-run is specified. Silence errors from 'grep' when there are no
15568         m4 files in $m4dir.
15569         (func_create_testdir): Silence errors from 'grep' when there are no
15570         m4 files in $m4dir.
15571         Reported by Karl Berry <karl@freefriends.org>.
15572
15573 2006-04-20  Bruno Haible  <bruno@clisp.org>
15574
15575         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
15576         one argument, so that the code will be portable to Autoconf 2.60.
15577         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
15578         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15579         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
15580
15581 2006-04-19  Derek Price  <derek@ximbiot.com>
15582             Eric Blake  <ebb9@byu.net>
15583
15584         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
15585         rather than "/full/path.h".  Update comment to match.  Shorten &
15586         generalize m4_translit call via AS_TR_CPP.
15587
15588 2006-04-19  Derek Price  <derek@ximbiot.com>
15589             Eric Blake  <ebb9@byu.net>
15590
15591         * lib/inttypes.h: Correct grammar in comment.
15592
15593 2006-04-18  Derek Price  <derek@ximbiot.com>
15594             Paul Eggert  <eggert@cs.ucla.edu>
15595
15596         * modules/inttypes: New file.
15597         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
15598
15599 2006-04-18  Derek Price  <derek@ximbiot.com>
15600             Paul Eggert  <eggert@cs.ucla.edu>
15601
15602         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
15603         New files.
15604
15605 2006-04-18  Derek Price  <derek@ximbiot.com>
15606             Paul Eggert  <eggert@cs.ucla.edu>
15607
15608         * lib/inttypes.h: New file.
15609         * lib/strtoimax.c: Assume <inttypes.h>.
15610
15611 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
15612
15613         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
15614         isn't mounted.  Problem reported by Kir Kolyshkin.
15615
15616 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15617
15618         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
15619         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
15620         Derek R. Price.
15621         * lib/regex.h (RE_DUP_MAX): Update comment to match current
15622         implementation.
15623
15624 2006-04-12  Eric Blake  <ebb9@byu.net>
15625
15626         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
15627         is now done automatically by the corresponding Autoconf macro.
15628
15629 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15630
15631         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
15632         time_r.h.
15633
15634 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15635
15636         Merge regex changes from libc, removing some of our
15637         POSIX-conformance changes that were rejected and redoing them in a
15638         less-intrusive way.
15639
15640         * lib/regcomp.c (re_compile_internal, init_dfa):
15641         Length arg is now size_t, not Idx.  All uses changed.
15642         (peek_token): Forward decl now says internal_function.
15643         (__re_error_msgid, __re_error_msgid_idx):
15644         Now static rather than extern with attribute_hidden.
15645         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
15646         For some reason libc prefers K&R style defns for external functions.
15647         (regerror) [!defined _LIBC]: Likewise.
15648         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
15649         (seek_collating_symbol_entry, lookup_collation_sequence_value):
15650         (build_range_exp, build_collating_symbol):
15651         Use K&R-style defn.
15652         (re_compile_fastmap): Use '\0' to memset, not 0.
15653         (utf8_sb_map): Make the calculations more obvious.
15654         (init_dfa, parse_bracket_exp, build_charclass_op):
15655         Call calloc and cast result, as glibc does.
15656         (init_word_char, fetch_token, peek_token, peek_token_bracket):
15657         (build_range_exp, build_collating_symbol):
15658         Now internal functions.
15659
15660         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
15661
15662         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
15663         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
15664         Don't depend on VMS; depend on __VMS instead, for POSIX
15665         namespace cleanness.
15666         (regoff_t): Define to ssize_t, not long int.
15667
15668         Remove the REG_ macros named below.  Instead, make the old names
15669         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
15670         __USE_GNU_REGEX.
15671         (REG_BACKSLASH_ESCAPE_IN_LISTS):
15672         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
15673         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
15674         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
15675         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
15676         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
15677         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
15678         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
15679         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
15680         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
15681         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
15682         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
15683         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
15684         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
15685         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
15686         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
15687         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
15688         (REG_NREGS):
15689         Remove.  All uses replaced by the old RE_* names.
15690         (RE_BACKSLASH_ESCAPE_IN_LISTS):
15691         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
15692         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
15693         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
15694         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
15695         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
15696         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
15697         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
15698         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
15699         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
15700         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
15701         Don't bother having these macros be independent of each others'
15702         values, since they no longer exist in the POSIX name space.
15703
15704         Rename the following member names back to their old names,
15705         unless !__USE_GNU_REGEX.  All uses changed back.
15706         (buffer): Renamed from re_buffer.
15707         (allocated): Renamed from re_allocated.
15708         (used): Renamed from re_used.
15709         (syntax): Renamed from re_syntax.
15710         (fastmap): Renamed from re_fastmap.
15711         (translate): Renamed from re_translate.
15712         (can_be_null): Renamed from re_can_be_null.
15713         (regs_allocated): Renamed from re_regs_allocated.
15714         (fastmap_accurate): Renamed from re_fastmap_accurate.
15715         (no_sub): Renamed from re_no_sub.
15716         (not_bol): Renamed from re_not_bol.
15717         (not_eol): Renamed from re_not_eol.
15718         (newline_anchor): Renamed from re_newline_anchor.
15719         (num_regs): Renamed from rm_num_regs.
15720         (start): Renamed from rm_start.
15721         (end): Renamed from rm_end.
15722
15723         (free_state): Move up a bit.
15724
15725         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
15726         #define to be empty.
15727         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
15728         when that is what is intended.
15729         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
15730         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
15731         (MAX): New macro.
15732         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
15733         All uses changed back to re_malloc, etc.  It's now the caller's
15734         responsibility to check for overflow; all callers changed.
15735         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
15736         (re_x2nrealloc): Remove.
15737         (free_state): Remove decl.
15738
15739         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
15740         (re_set_registers, re_exec):
15741         Use K&R-style defn.
15742
15743         2006-01-31  Roland McGrath  <roland@redhat.com>
15744
15745         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
15746         Reported by Mike Frysinger <vapier@gentoo.org>.
15747
15748         2006-01-15  Andreas Jaeger  <aj@suse.de>
15749
15750         [BZ #1950]
15751         * lib/regex_internal.c (re_string_reconstruct): Adjust for
15752         build_wcs_upper_buffer change.
15753         (build_wcs_upper_buffer): Change return type.
15754
15755         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
15756
15757         * lib/regex_internal.h: Include <stdint.h> if available.
15758
15759         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
15760
15761         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
15762
15763         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
15764
15765         * lib/regcomp.c: Adjust for changed secondary hash function.
15766
15767         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
15768
15769         * lib/regex.h: Pretty printing.
15770         Clean up namespace a bit.
15771
15772         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
15773
15774         * lib/regexec.c (update_cur_sifted_state, check_arrival,
15775         check_arrival_add_next_nodes): Avoid using uninitialized variable.
15776
15777         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
15778                     Ulrich Drepper  <drepper@redhat.com>
15779
15780         [BZ #1302]
15781         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
15782         changed.
15783         (bitset_word_t): Renamed from bitset_word.  All uses changed.
15784
15785         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
15786
15787         [BZ #281]
15788         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
15789         * lib/regcomp.c: Remove unnecessary uses of
15790         unsigned RE_TRANSLATE_TYPE.
15791         * lib/regex_internal.h: Likewise.
15792         * lib/regex_internal.c: Likewise.
15793         * lib/regexec.c: Likewise.
15794         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
15795
15796         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
15797
15798         * lib/regexec.c (find_recover_state): Remove unnecessary
15799         initialization.
15800         (transit_state_bkref): Make DFA a const pointer.
15801         (get_subexp): Likewise.
15802         (check_arrival): Likewise.
15803         (update_cur_sifted_state): Likewise.
15804         (re_search_internal): Likewise.
15805         (prune_impossible_nodes): Likewise.
15806         (acquire_init_state_context): Likewise.
15807         (proceed_next_node): Likewise.
15808         (set_regs): Likewise.
15809         (free_fail_stack_return): Likewise.
15810         (check_arrival_expand_ecl): Mark DFA parameter as const.
15811         (check_arrival_expand_ecl_sub): Likewise.
15812         (check_subexp_limits): Likewise.
15813         (sub_epsilon_src_nodes):  Likewise.
15814         (add_epsilon_src_nodes):  Likewise.
15815         (merge_state_array): Likewise.
15816         (update_regs): Likewise.
15817         (build_trtable): Likewise.
15818         (sift_states_backward): Mark MCTX parameter as const.
15819         (build_sifted_states): Likewise.
15820         (update_cur_sifted_state): Likewise.
15821         (sift_states_mkref): Likewise.
15822         (check_arrival_expand_ecl): Mark eclosure as const.
15823         (check_dst_limits_calc_pos_1): Likewise.
15824         * lib/regex_internal.h (re_match_context_t): Make dfa a const
15825         pointer.
15826
15827         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
15828
15829         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
15830         (transit_state_sb): Likewise.
15831         (transit_state_mb): Likewise.
15832         (sift_states_iter_mb): Likewise.
15833         (check_arrival_add_next_nodes): Likewise.
15834         (check_node_accept_bytes): Change first parameter to pointer-to-const.
15835         [_LIBC] (re_search_2_stub): Use mempcpy.
15836
15837         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
15838         mbrtowc for very simple UTF-8 case.
15839
15840         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
15841         a pointer-to-const.
15842         (re_acquire_state_context): Likewise.
15843         * lib/regex_internal.h: Adjust prototypes.
15844
15845         * lib/regex.c: Prevent using C++ compilers.
15846
15847         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
15848         (re_acquire_state_context): Likewise.
15849
15850 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15851
15852         * modules/regex (Depends-on): Add ssize_t.
15853
15854 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15855
15856         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
15857         translation table.
15858
15859 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15860
15861         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
15862
15863 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
15864             Bruno Haible  <bruno@clisp.org>
15865
15866         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
15867         <sys/types.h> and <inttypes.h>.
15868
15869 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15870
15871         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
15872         `__error_t_defined', so argp.h will not typedef the former.
15873
15874 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15875
15876         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
15877         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
15878         glibc names.  Even if glibc is changed to conform to POSIX, the
15879         traditional names will be available anyway, since regex depends on
15880         the extensions module.  Also, fix a longstanding typo in the
15881         implementation of Spencer ERE test #75 from grep 2.3.  Problems
15882         reported by Emanuele Giaquinta.  Also, change sense of cached
15883         variable, so that the message makes sense.
15884
15885 2006-03-24  Simon Josefsson  <jas@extundo.com>
15886
15887         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
15888         including some doc fixes.
15889         (base64_encode_alloc): Fix +1 bug on allocation failures.
15890
15891 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15892
15893         * lib/base64.c (base64_encode): Do not read past end of array with
15894         unsanitized input on systems with CHAR_BIT > 8.
15895
15896 2006-03-24  Eric Blake  <ebb9@byu.net>
15897
15898         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
15899
15900 2006-03-22  Karl Berry  <karl@gnu.org>
15901
15902         * config/srclist.txt (*setenv.[ch]): get from coreutils.
15903         * config/srclistvars.sh (COREUTILS): new var.
15904
15905 2006-03-17  Jim Meyering  <jim@meyering.net>
15906
15907         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
15908         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
15909
15910 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
15911
15912         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
15913         no longer needs it.  Instead, check that regoff_t is as least
15914         as wide as ptrdiff_t.
15915
15916         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
15917         so that our regex.h stays compatible with the installed regex.
15918         This is helpful for installers who configure --without-included-regex.
15919         Problem reported by Emanuele Giaquinta.
15920
15921 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
15922
15923         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
15924         Typedef to long int, not to off_, as POSIX will likely change
15925         in that direction.
15926
15927 2006-03-15  Eric Blake  <ebb9@byu.net>
15928
15929         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
15930
15931 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
15932
15933         * lib/argp-help.c (validate_uparams): Fix typo
15934         * lib/argp-parse.c (argp_default_options): Consistently begin help
15935         messages with a lowercase letter.
15936
15937 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15938
15939         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
15940         overrun buffers and shouldn't be used (much as gets shouldn't be
15941         used).
15942         * lib/time_r.c (asctime_r, ctime_r): Likewise.
15943
15944 2006-03-08  Simon Josefsson  <jas@extundo.com>
15945
15946         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
15947         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15948
15949 2006-03-08  Simon Josefsson  <jas@extundo.com>
15950
15951         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
15952         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15953
15954 2006-03-08  Simon Josefsson  <jas@extundo.com>
15955
15956         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
15957         signal that configure disabled the device.
15958
15959 2006-03-08  Simon Josefsson  <jas@extundo.com>
15960
15961         * build-aux/maint.mk: Fix refresh-po, to handle no translated
15962         languages.
15963
15964 2006-03-07  Simon Josefsson  <jas@extundo.com>
15965
15966         * modules/getopt (Depends-on): Add unistd.
15967
15968         * modules/unistd: New file.
15969
15970 2006-03-07  Simon Josefsson  <jas@extundo.com>
15971
15972         * modules/gc-random: New file.
15973
15974 2006-03-07  Simon Josefsson  <jas@extundo.com>
15975
15976         * m4/unistd_h.m4: New file.
15977
15978 2006-03-07  Simon Josefsson  <jas@extundo.com>
15979
15980         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
15981         test to be side-effect free by storing the result in the cache
15982         variable gl_cv_lib_readline, and moving the assignment of
15983         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
15984         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15985
15986 2006-03-07  Simon Josefsson  <jas@extundo.com>
15987
15988         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
15989         error on missing devices (the functions will return an error).
15990
15991         * m4/gc.m4: Move random stuff to gc-random.m4
15992
15993 2006-03-07  Simon Josefsson  <jas@extundo.com>
15994
15995         * lib/unistd_.h: New file.
15996
15997 2006-03-07  Simon Josefsson  <jas@extundo.com>
15998
15999         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
16000
16001 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16002
16003         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
16004         Problem reported by Juan Manuel Guerrero.
16005
16006 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16007
16008         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
16009         the unistd module.
16010         * lib/getlogin_r.c: Likewise.
16011         * lib/getlogin_r.h: Likewise.
16012         * lib/glob.c: Likewise.
16013         * lib/pagealign_alloc.c: Likewise.
16014         * lib/unistd_.h: Remove; no longer needed.
16015
16016 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16017
16018         * MODULES.html.sh (Support for systems lacking POSIX:2001):
16019         Add unistd.
16020         * modules/c-stack (Depends-on): Add unistd.
16021         * modules/getlogin_r: Likewise.
16022         * modules/glob: Likewise.
16023         * modules/pagealign_alloc: Likewise.
16024         * modules/unistd (Files): Remove lib/unistd_.h.
16025         (EXTRA_DIST): Remove.
16026         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
16027         need unistd_.h.
16028         (MOSTLYCLEANFILES): Remove unistd.h-t.
16029
16030 2006-03-03  Simon Josefsson  <jas@extundo.com>
16031
16032         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
16033
16034 2006-03-03  Simon Josefsson  <jas@extundo.com>
16035
16036         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
16037         libidn and bison.
16038
16039 2006-03-03  Simon Josefsson  <jas@extundo.com>
16040
16041         * build-aux/maint.mk: Add indent target.
16042
16043 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
16044
16045         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
16046         our replacement poll.h in any case, to avoid a differing
16047         declaration from a system header.  Seen on AIX.
16048
16049 2006-03-01  Simon Josefsson  <jas@extundo.com>
16050
16051         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
16052         <kasal@ucw.cz>.
16053
16054 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16055
16056         * modules/gettime (Depends-on): Add extensions module.
16057         * modules/nanosleep (Depends-on): Likewise.
16058         * modules/settime (Depends-on): Likewise.
16059
16060 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16061
16062         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
16063         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
16064         pedantically.
16065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16066         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
16067
16068         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
16069         not "==".  Reported by Ralf Wildenhues.
16070
16071 2006-03-01  Karl Berry  <karl@gnu.org>
16072
16073         * doc/Copyright/request-*: new files, synced from gnuorg.
16074
16075 2006-03-01  Karl Berry  <karl@gnu.org>
16076
16077         * config/srclist.txt (Copyright/*): new entries.
16078
16079 2006-02-28  Simon Josefsson  <jas@extundo.com>
16080
16081         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
16082
16083 2006-02-27  Simon Josefsson  <jas@extundo.com>
16084
16085         * lib/base64.h: Indent #define's.  From Jim Meyering
16086         <jim@meyering.net>.
16087
16088 2006-02-27  Jim Meyering  <jim@meyering.net>
16089
16090         Revert the change of 2006-02-24, so these files can continue
16091         to be sync'd from gettext.
16092         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
16093         of `config.h'.
16094
16095 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
16096
16097         * modules/intprops: New file.
16098         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
16099         Add intprops.
16100         * modules/getloadavg (Files): Remove lib/intprops.h.
16101         (Depends-on): Add intprops.
16102         * modules/human: Likewise.
16103         * modules/inttostr: Likewise.
16104         * modules/openat: Likewise.
16105         * modules/sig2str: Likewise.
16106         * modules/userspec: Likewise.
16107         * modules/utimecmp: Likewise.
16108         * modules/xnanosleep: Likewise.
16109         * modules/xstrtol: Likewise.
16110
16111 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
16112
16113         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
16114         * modules/lock-tests (TESTS): Use $(EXEEXT).
16115         * modules/tls-tests: Likewise.
16116         * modules/argp-tests: Likewise.
16117         (check_PROGRAMS): New var, replacing...
16118         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
16119
16120 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16121
16122         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
16123         `config.h'.
16124
16125 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16126
16127         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
16128
16129 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16130
16131         Sync from coreutils.
16132         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
16133         gl_CHDIR_SAFER.
16134
16135 2006-02-22  Jim Meyering  <jim@meyering.net>
16136
16137         Sync from coreutils.
16138         * m4/chdir-safer.m4: New file.
16139
16140 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16141
16142         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
16143         AT_FDCWD exceeds INT_MAX.
16144         * lib/openat.h (AT_FDCWD): Likewise.
16145
16146 2006-02-17  Eric Blake  <address@hidden>
16147
16148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
16149
16150 2006-02-16  Simon Josefsson  <jas@extundo.com>
16151
16152         * modules/getaddrinfo (Depends-on): Add sys_socket.
16153
16154 2006-02-15  Simon Josefsson  <jas@extundo.com>
16155
16156         * build-aux/maint.mk: Add dsyntax-check rule.
16157
16158 2006-02-15  Eric Blake  <ebb9@byu.net>
16159
16160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
16161         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
16162         'present but cannot compile' warnings on cygwin.
16163         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
16164         use ws2tcpip.h if sys/socket.h works.
16165         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
16166         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
16167
16168 2006-02-14  Simon Josefsson  <jas@extundo.com>
16169
16170         * modules/maintainer-makefile (Files): Rename.
16171
16172         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
16173         and (the local) Makefile.cfg to maint-cfg.mk.
16174
16175         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
16176         to the latter.
16177
16178         * modules/maintainer-makefile: New module.
16179
16180         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
16181         severaly stripped to make it possible to build it up from scratch
16182         with reliable tests.
16183
16184         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
16185         fixes to permit overriding the default actions when configure and
16186         makefile are not available.
16187
16188 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16189
16190         Sync from coreutils.
16191         * modules/lstat (Depends-on): Don't depend on xalloc.
16192         (License): Change from GPL to LGPL, since this is now simply a
16193         replacement for a libc function.
16194
16195 2006-02-14  Jim Meyering  <jim@meyering.net>
16196
16197         Sync from coreutils.
16198
16199         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
16200         failure on deficient systems, and simplify gnulib lgpl dependencies.
16201         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
16202         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
16203
16204         * lib/xalloc-die.c: Remove unused definition of N_.
16205
16206 2006-02-14  Jim Meyering  <jim@meyering.net>
16207
16208         Sync from coreutils.
16209         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
16210         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
16211         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
16212         double-quote uses of that variable, to accommodate the rare case in
16213         which getmntent is available in none of the libraries checked.  This
16214         happens at least on FreeBSD 5.0.
16215
16216 2006-02-13  Simon Josefsson  <jas@extundo.com>
16217
16218         * gnulib-tool (Usage): Fix --import, from
16219         karl@freefriends.org (Karl Berry).
16220
16221 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
16222
16223         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
16224
16225 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
16226
16227         * lib/argp-namefrob.h: Restore changes accidentally lost during the
16228         "autoupdate" on 2005-12-12.
16229
16230 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
16231
16232         * modules/closeout (Depends-on): Remove atexit.
16233
16234 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
16235
16236         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
16237         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
16238
16239 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16240
16241         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
16242         __EXTENSIONS__ if this causes compilation to fail.  Problem
16243         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
16244         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
16245
16246 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
16247
16248         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
16249         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
16250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
16251         All uses changed.
16252
16253 2006-01-26  Simon Josefsson  <jas@extundo.com>
16254
16255         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
16256         prototype is visible on mingw32.
16257
16258         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
16259         for mingw32.
16260
16261         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
16262         mingw32).
16263
16264 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16265
16266         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
16267         attempt to open for write; this always fails, at least on POSIX
16268         hosts.  This reinstates the 2006-01-09 change, which was
16269         inadvertently removed.
16270
16271 2006-01-26  Bruno Haible  <bruno@clisp.org>
16272
16273         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
16274         Reported by Paul Eggert.
16275
16276 2006-01-26  Bruno Haible  <bruno@clisp.org>
16277             Paul Eggert  <eggert@cs.ucla.edu>
16278
16279         * lib/stdbool_.h (_Bool)
16280         [(! (defined __cplusplus || defined __BEOS__)
16281           && !defined __GNUC__
16282           && !(defined __HP_cc || defined __xlc__
16283                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
16284                || defined __sgi))]:
16285         #define to signed char in these cases too; this simplifies
16286         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
16287         etc., separately) and makes it more conservative.
16288
16289 2006-01-25  Simon Josefsson  <jas@extundo.com>
16290
16291         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
16292         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
16293         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
16294
16295 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16296
16297         * lib/argp-namefrob.h: Bugfix. Remove stray #
16298
16299 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
16300
16301         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
16302         so that we test the test.
16303         Check for yet another HP-UX cc bug involving *bool |= bool.
16304
16305 2006-01-25  Karl Berry  <karl@gnu.org>
16306
16307         * config/srclist.txt (vasnprintf.c): sync lost.
16308
16309 2006-01-25  Jim Meyering  <jim@meyering.net>
16310
16311         Sync from the stable (b5) branch of coreutils:
16312
16313         * lib/fts.c (fts_children): Don't let close() clobber errno from
16314         failed fchdir().
16315
16316         * lib/fts.c (fts_stat): When following a symlink-to-directory,
16317         don't necessarily interpret stat-fails+lstat-succeeds as indicating
16318         a dangling symlink.  That can also happen at least for ELOOP.
16319         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
16320         FYI, this bug predates the inclusion of fts.c in coreutils.
16321
16322         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
16323         in their own block, so pre-c99 compilers don't object.
16324
16325         Avoid the double-free (first in fts_read, second in fts_close) that
16326         would occur when an `active' directory is made inaccessible (e.g.,
16327         via chmod a-x) during a traversal.
16328         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16329         before returning.  Reproduce this failure by
16330         mkdir -p a/b; cd a; chmod a-x . b
16331         Reported by Stavros Passas.
16332
16333 2006-01-25  Jim Meyering  <jim@meyering.net>
16334
16335         * lib/fileblocks.c: Remove more useless parentheses.
16336         * lib/readutmp.h: Likewise.
16337
16338 2006-01-25  Bruno Haible  <bruno@clisp.org>
16339
16340         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
16341         warnings.
16342         Reported by Paul Eggert.
16343
16344 2006-01-25  Bruno Haible  <bruno@clisp.org>
16345
16346         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
16347         rid of a trap command. For Solaris sh.
16348         Reported by Mark D. Baushke <mdb@gnu.org>.
16349
16350 2006-01-24  Simon Josefsson  <jas@extundo.com>
16351
16352         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
16353         Bruno.
16354
16355 2006-01-24  Karl Berry  <karl@gnu.org>
16356
16357         * config/srclist.txt (argp-namefrob.h): sync lost.
16358
16359 2006-01-24  Jim Meyering  <jim@meyering.net>
16360
16361         * modules/openat (Files): Add lib/intprops.h.
16362         From Mark D. Baushke.
16363
16364 2006-01-24  Jim Meyering  <jim@meyering.net>
16365
16366         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
16367         Reported by Mark D. Baushke.
16368
16369 2006-01-24  Jim Meyering  <jim@meyering.net>
16370
16371         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
16372
16373 2006-01-24  Bruno Haible  <bruno@clisp.org>
16374
16375         * modules/strnlen (Maintainer): Change from glibc to all.
16376
16377 2006-01-24  Bruno Haible  <bruno@clisp.org>
16378
16379         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
16380         Patch by Paul Eggert.
16381
16382 2006-01-24  Bruno Haible  <bruno@clisp.org>
16383
16384         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
16385         already has it.
16386         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
16387         2005-11-26.
16388
16389         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
16390         'signed char' to avoid problems with the built-in _Bool type.
16391         Reported by Paul Eggert on 2005-11-26.
16392
16393 2006-01-24  Bruno Haible  <bruno@clisp.org>
16394
16395         * gnulib-tool (func_import): Avoid constructing complicated sed
16396         expressions inside backquote.
16397         Report and solution by Mark D. Baushke <mdb@gnu.org>.
16398
16399 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
16400
16401         These changes imported from libc.
16402         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
16403         test and two separate function calls.
16404         * lib/strndup.c (__strndup): Add libc_hidden_def.
16405
16406 2006-01-23  Simon Josefsson  <jas@extundo.com>
16407
16408         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
16409         Remove the test_*_SOURCES variable: automake infers it by default.
16410         * modules/tls-tests: Likewise.
16411
16412 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16413
16414         Work around porting bugs reported by Dieter in
16415         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
16416         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
16417         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
16418         Include "getopt.h" first, to check interface.
16419         (getenv): Declare only if defined HAVE_DECL_GETENV &&
16420         !HAVE_DECL_GETENV.
16421         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
16422         (__strndup): Revert to K&R-style function dfns, the glibc style.
16423         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
16424         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
16425         Include strnlen.h first, to get prototype properly.
16426         (strnlen): Renamed from __strnlen.
16427         Remove weak alias.
16428
16429 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16430
16431         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
16432
16433 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16434
16435         * config/srclist.txt: Adjust to reflect glibc reorganization.
16436         This affects only comments.
16437
16438 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16439
16440          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
16441          Reported by Bruce Korb <bkorb@gnu.org>.
16442
16443 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16444
16445         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
16446         to pacify gcc -Wswitch-default.
16447
16448 2006-01-22  Bruno Haible  <bruno@clisp.org>
16449
16450         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
16451         temporary buffer for sprintf, take into account the precision also
16452         for 'd', 'i', 'u', 'o', 'x', 'X'.
16453
16454 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
16455
16456         * modules/argp-tests: New module
16457         * tests/test-argp.c: New file
16458         * tests/test-argp-2.sh: New file
16459
16460 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
16461
16462         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
16463         (__argp_base_name): Removed
16464         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
16465         typo.
16466         (__argp_base_name): Provide macro definition or extern declaration
16467         depending on the configuration
16468
16469 2006-01-20  Simon Josefsson  <jas@extundo.com>
16470
16471         * modules/inet_ntop (Depends-on): Depend on sys_socket.
16472
16473 2006-01-20  Simon Josefsson  <jas@extundo.com>
16474
16475         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
16476
16477 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
16478
16479         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
16480         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
16481         Suggested by Bruno Haible.
16482
16483 2006-01-20  Karl Berry  <karl@gnu.org>
16484
16485         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
16486         until changes propagate, I guess.
16487
16488 2006-01-19  Simon Josefsson  <jas@extundo.com>
16489
16490         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
16491
16492 2006-01-19  Simon Josefsson  <jas@extundo.com>
16493
16494         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
16495
16496 2006-01-19  Simon Josefsson  <jas@extundo.com>
16497
16498         * gnulib-tool: Set check_PROGRAMS.
16499
16500         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16501         modules/des-tests, modules/gc-arcfour-tests,
16502         modules/gc-arctwo-tests, modules/gc-des-tests,
16503         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16504         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16505         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16506         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16507         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16508         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
16509         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
16510         test_*_SOURCES.
16511
16512 2006-01-18  Simon Josefsson  <jas@extundo.com>
16513
16514         * modules/socklen (Depends-on): Depend on sys_socket.
16515
16516 2006-01-18  Simon Josefsson  <jas@extundo.com>
16517
16518         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16519         modules/des-tests, modules/gc-arcfour-tests,
16520         modules/gc-arctwo-tests, modules/gc-des-tests,
16521         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16522         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16523         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16524         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16525         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16526         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
16527         $(EXEEXT) to automake TESTS variable, for mingw32.
16528
16529 2006-01-17  Simon Josefsson  <jas@extundo.com>
16530
16531         * modules/socklen (Include): Need sys/socket.h.
16532
16533 2006-01-17  Bruno Haible  <bruno@clisp.org>
16534
16535         * modules/ssize_t (Include): Add <sys/types.h>.
16536
16537 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16538
16539         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
16540         it's not portable and it doesn't work with cross-compiles.
16541         Problem reported by Bruno Haible.  Fix missing-$ typo in
16542         'test "gl_cv_ignore_unused_libraries" ...' that prevented
16543         -zignore from being used with Sun's C compiler.
16544
16545 2006-01-12  Simon Josefsson  <jas@extundo.com>
16546
16547         * lib/base64.c: Fix warning, reported by Bruno Haible
16548         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
16549
16550 2006-01-12  Bruno Haible  <bruno@clisp.org>
16551
16552         * modules/ldd: New file.
16553         * build-aux/ldd.sh.in: New file.
16554         * MODULES.html.sh (Support for building libraries and executables): Add
16555         ldd.
16556
16557 2006-01-12  Bruno Haible  <bruno@clisp.org>
16558
16559         * m4/ldd.m4: New file.
16560
16561 2006-01-12  Bruno Haible  <bruno@clisp.org>
16562
16563         * gnulib-tool (func_import, func_create_testdir): Don't go into an
16564         endless loop while replacing $auxdir with build-aux.
16565
16566 2006-01-11  Simon Josefsson  <jas@extundo.com>
16567
16568         * lib/stdint_.h (SIZE_MAX): Add missing (.
16569
16570 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16571
16572         Sync from coreutils.
16573         * lib/md5.c: Fix commentary typos.
16574         (alignof, UNALIGNED_P): No need for a GCC-specific version.
16575         * lib/md5.h (__attribute__): Remove; unused.
16576         * lib/sha1.c: Fix commentary to match md5 better.
16577         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
16578         so that we don't need to worry about alignment.  All uses changed.
16579         This merges the 2005-10-28 md5 change into sha1.
16580
16581 2006-01-11  Jim Meyering  <jim@meyering.net>
16582
16583         Sync from coreutils.
16584         * lib/md5.c (OP): Fix spacing.
16585
16586 2006-01-11  Bruno Haible  <bruno@clisp.org>
16587
16588         Ensure automatic ordering between gl_LOCK and gl_ARGP.
16589         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
16590         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
16591
16592 2006-01-11  Bruno Haible  <bruno@clisp.org>
16593
16594         Ensure automatic ordering between gl_LOCK and gl_ARGP.
16595         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
16596         the "early" section as well.
16597
16598 2006-01-11  Bruno Haible  <bruno@clisp.org>
16599
16600         Avoid "ar: no archive members specified" error on MacOS X.
16601         * gnulib-tool (func_modules_add_dummy): New function.
16602         (func_import, func_create_testdir): Invoke it.
16603
16604 2006-01-11  Bruno Haible  <bruno@clisp.org>
16605
16606         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
16607         with $auxdir in AC_CONFIG_FILES statements.
16608
16609 2006-01-11  Bruno Haible  <bruno@clisp.org>
16610
16611         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16612         Initialize also noinst_HEADERS to empty.
16613
16614 2006-01-11  Bruno Haible  <bruno@clisp.org>
16615
16616         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
16617         variables.
16618         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
16619         autoreconf.
16620
16621 2006-01-11  Bruno Haible  <bruno@clisp.org>
16622
16623         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
16624         overridable by the user.
16625         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16626
16627 2006-01-10  Simon Josefsson  <jas@extundo.com>
16628
16629         * modules/sys_socket: New file.
16630
16631 2006-01-10  Simon Josefsson  <jas@extundo.com>
16632
16633         * m4/sys_socket_h.m4: New file.
16634
16635 2006-01-10  Simon Josefsson  <jas@extundo.com>
16636
16637         * lib/socket_.h: New file.
16638
16639 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16640
16641         * modules/readutmp (Maintainer): Add myself.
16642
16643 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16644
16645         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
16646         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
16647         People who are still concerned with buggy memcmp implementations
16648         can invoke gl_FUNC_MEMCMP themselves.
16649
16650 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16651
16652         * lib/regex_internal.h (BITSET_WORD_BITS):
16653         Work around a bug in 64-bit PGC (before version 6.1-2), where the
16654         preprocessor mishandles large unsigned values as if they were signed.
16655         Problem reported by Claudio Fontana in
16656         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
16657
16658 2006-01-10  Jim Meyering  <jim@meyering.net>
16659
16660         Avoid the double-free (first in fts_read, second in fts_close) that
16661         would occur when an `active' directory is made inaccessible (e.g.,
16662         via chmod a-x) during a traversal.
16663         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16664         before returning.  Reproduce this failure by
16665         mkdir -p a/b; cd a; chmod a-x . b
16666         Reported by Stavros Passas.
16667
16668         Sync from coreutils.
16669         * lib/sha1.c: Tweak grammar in a comment.
16670
16671 2006-01-10  Jim Meyering  <jim@meyering.net>
16672
16673         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
16674         Patch by Joerg Sonnenberger.
16675
16676 2006-01-10  Bruno Haible  <bruno@clisp.org>
16677
16678         * modules/readutmp: Depend on module free.
16679         * modules/strtok_r: Depend on module restrict.
16680
16681 2006-01-10  Bruno Haible  <bruno@clisp.org>
16682
16683         * modules/gettext (configure.ac): Add an invocation of
16684         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
16685
16686 2006-01-10  Bruno Haible  <bruno@clisp.org>
16687
16688         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
16689         Reported by Werner Lemberg <wl@gnu.org>.
16690
16691 2006-01-10  Bruno Haible  <bruno@clisp.org>
16692
16693         * lib/localcharset.c: Update from GNU gettext.
16694
16695 2006-01-10  Bruno Haible  <bruno@clisp.org>
16696
16697         * lib/argp.h (__const): Remove macro. Use const instead.
16698         * lib/argp-fmtstream.h (__const): Likewise.
16699         * lib/glob_.h (__const): Remove macro.
16700         * lib/glob-libc.h: Use const instead of __const.
16701
16702 2006-01-10  Bruno Haible  <bruno@clisp.org>
16703
16704         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
16705         variable.
16706         Needed to avoid an automake error regarding the 'gettext' module.
16707
16708 2006-01-09  Simon Josefsson  <jas@extundo.com>
16709
16710         * modules/inet_ntop (Depends-on): Add restrict.
16711
16712 2006-01-09  Simon Josefsson  <jas@extundo.com>
16713
16714         * modules/gc-rijndael-tests (License): Put under LGPL.
16715
16716         * modules/gc-des-tests (License): Likewise.
16717
16718         * modules/gc-arcfour-tests (License): Likewise.
16719
16720         * modules/gc-arctwo-tests (License): Likewise.
16721
16722         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
16723
16724         * modules/gc-hmac-sha1-tests (Files): Likewise.
16725
16726         * modules/gc-hmac-md5-tests (License): Likewise.
16727
16728         * modules/gc-sha1-tests (License): Likewise.
16729
16730         * modules/gc-md5-tests (License): Likewise.
16731
16732         * modules/gc-md4-tests (License): Likewise.
16733
16734         * modules/gc-md2-tests (License): Likewise.
16735
16736         * modules/gc-tests (License): Likewise.
16737
16738         * modules/des-tests (License): Likewise.
16739
16740         * modules/md4-tests (License): Likewise.
16741
16742         * modules/md2-tests (License): Likewise.
16743
16744 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16745
16746         Sync from coreutils:
16747
16748         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
16749         * modules/lib-ignore: New file.
16750         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
16751         chdir-safer.m4, lchmod.m4.
16752         * modules/openat: Add mkdirat.c, openat-priv.h.
16753
16754 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16755
16756         Sync from coreutils.
16757         * m4/lib-ignore.m4: New file.
16758         * m4/lchmod.m4: New file.
16759
16760 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16761
16762         Sync from coreutils.
16763         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
16764         for write access: POSIX says that must fail.
16765         * lib/fts.c (diropen): Likewise.
16766         * lib/save-cwd.c (save_cwd): Likewise.
16767         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
16768         well, for minor improvements on hosts that lack O_DIRECTORY.
16769         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
16770         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
16771         Fall back on chown if open failed with EACCES.
16772
16773         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
16774         Report an error at compile-time if only a 1-second nominal clock
16775         resolution is found.
16776
16777         * lib/lchmod.h: New file.
16778         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
16779         (make_dir_parents): Use lchown rather than chown, and
16780         lchmod rather than chmod.
16781
16782         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
16783         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
16784         "proc" reported by n0dalus.
16785
16786         * lib/mountlist.c: Include <limits.h>.
16787         (dev_from_mount_options)
16788         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
16789         New function.  It no longer assumes "dev=" has the System V meaning
16790         on Linux (since it doesn't).  It also parses "dev=" more carefully.
16791         (read_file_system_list)
16792         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
16793         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
16794         dev= in that case.
16795
16796         * lib/posixtm.h (PDS_PRE_2000): New macro.
16797         * lib/posixtm.c (year): Arg is now syntax_bits rather than
16798         allow_century.  All usages changed.  Reject dates outside the range
16799         1969-1999 if PDS_PRE_2000 is used.
16800
16801 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16802
16803         Sync from coreutils.
16804         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
16805         (Time of day items): Mention the possibility of leap seconds.
16806         Problem reported by Dr. David Alan Gilbert.
16807
16808 2006-01-09  Jim Meyering  <jim@meyering.net>
16809
16810         Sync from coreutils.
16811
16812         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
16813
16814         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
16815
16816         * lib/modechange.c (mode_compile): Reject an invalid mode string
16817         that starts with an octal digit.  From Andreas Gruenbacher.
16818
16819         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
16820         and dup to open_safer and dup_safer, respectively.
16821         (openat_permissive): Fix typo in comment.
16822
16823         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
16824         "gettext.h"; either no longer needed or are guaranteed by openat.h.
16825         (_): Remove; no longer needed.
16826         (openat): Renamed from rpl_openat; no need for rpl_openat
16827         since openat.h renames openat for us.
16828         Replace most of the body with a call to openat_permissive,
16829         to avoid duplicate code.
16830         Port to (probably hypothetical) environments were mode_t is
16831         wider than int.
16832         (openat_permissive): Require mode arg, so that we can check
16833         types better.  Put it just after flags.  Change cwd failure
16834         indicator from pointer-to-bool to pointer-to-errno-value.
16835         All callers changed.
16836         Invoke openat_save_fail and/or openat_restore_fail if
16837         cwd_errno is null, so that openat can call us.
16838         (openat_permissive, fdopendir, fstatat, unlinkat):
16839         Simplify errno handling to avoid some duplicate code,
16840         as it's OK to set errno on success.
16841         * lib/openat.h: Revamp code so that function macros depend on
16842         __OPENAT_PREFIX only, not also on AT_FDCWD.
16843         (openat_ro): Remove.  Caller changed to use openat_permissive.
16844         (openat_permissive): Now a macro, if not a function.
16845         (openat_restore_fail, openat_save_fail): Now always functions,
16846         since mkdirat needs them even if __OPENAT_PREFIX is defined.
16847
16848         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
16849         and openat.c.
16850         * lib/mkdirat.c: Include openat-priv.h.
16851         Remove definitions of macros defined therein.
16852         * lib/openat.c: Likewise.
16853
16854         * lib/mkdirat.c (mkdirat): New file and function.
16855         * lib/openat.h (mkdirat): Declare.
16856
16857         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
16858
16859         * lib/openat.h (openat_permissive): Declare.
16860         (openat_ro): Define.
16861
16862         * lib/openat.c (EXPECTED_ERRNO): New macro.
16863         (openat_permissive): New function -- used in remove.c rewrite.
16864         (all functions): Set errno just before returning, only if there
16865         was an actual failure.
16866         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
16867
16868         Emulate openat-family functions using Linux's procfs, if possible.
16869         Idea and some code based on Ulrich Drepper's glibc changes.
16870
16871         * lib/openat.c: (BUILD_PROC_NAME): New macro.
16872         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
16873         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
16874         before falling back on save_cwd and restore_cwd.
16875         (fdopendir, fstatat, unlinkat): Likewise.
16876
16877         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
16878         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
16879
16880         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
16881         as second argument to va_arg.  Otherwise, some versions of gcc
16882         warn that `if this code is reached, the program will abort'.
16883
16884 2006-01-09  Jim Meyering  <jim@meyering.net>
16885
16886         Sync from coreutils.
16887         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
16888         Require openat-priv.h.
16889
16890 2006-01-09  Bruno Haible  <bruno@clisp.org>
16891
16892         * modules/strnlen (Include): Use strnlen.h.
16893
16894 2006-01-09  Bruno Haible  <bruno@clisp.org>
16895
16896         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
16897
16898 2006-01-09  Bruno Haible  <bruno@clisp.org>
16899
16900         * lib/sysexit_.h (EX_OK): New macro.
16901         Suggested by Martin Lambers <marlam@marlam.de>.
16902
16903 2006-01-09  Bruno Haible  <bruno@clisp.org>
16904
16905         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
16906         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
16907
16908 2006-01-09  Bruno Haible  <bruno@clisp.org>
16909
16910         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
16911         numbers.
16912
16913 2006-01-09  Bruno Haible  <bruno@clisp.org>
16914
16915         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
16916         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
16917         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
16918         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
16919
16920 2006-01-09  Bruno Haible  <bruno@clisp.org>
16921
16922         * build-aux/javacomp.sh.in: New file, moved from lib/.
16923         * modules/javacomp-script (Files): Update.
16924         (configure.ac): Add AC_CONFIG_FILES invocation.
16925         (EXTRA_DIST): Remove variable.
16926
16927         * build-aux/javaexec.sh.in: New file, moved from lib/.
16928         * modules/javaexec (Files): Update.
16929         (configure.ac): Add AC_CONFIG_FILES invocation.
16930         (EXTRA_DIST): Remove javaexec.sh.in.
16931
16932         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
16933         * modules/csharpcomp-script (Files): Update.
16934         (configure.ac): Add AC_CONFIG_FILES invocation.
16935         (EXTRA_DIST): Remove variable.
16936
16937         * build-aux/csharpexec.sh.in: New file, moved from lib/.
16938         * modules/csharpexec (Files): Update.
16939         (configure.ac): Add AC_CONFIG_FILES invocation.
16940         (EXTRA_DIST): Remove csharpexec.sh.in.
16941
16942 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
16943
16944         Sync from coreutils.
16945
16946         Add POSIX ACL support
16947         * lib/acl.h (copy_acl, set_acl): Add declarations.
16948         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
16949         systems other than Linux.
16950         (chmod_or_fchmod): New function: use fchmod when possible,
16951         and chmod otherwise.
16952         (file_has_acl): Add a POSIX ACL implementation, with a
16953         Linux-specific subcase.
16954         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
16955         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
16956         acls are unsupported.
16957         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
16958         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
16959         are unsupported.
16960
16961 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
16962
16963         Sync from coreutils.
16964         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
16965
16966 2006-01-07  Bruno Haible  <bruno@clisp.org>
16967
16968         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
16969         gl_EARLY.
16970
16971 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16972
16973         * lib/strftime.c (tzname): Don't declare if it is already #defined.
16974         Problem reported for Mingw by Mark Junker.
16975
16976 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16977
16978         * README: Gnulib normally doesn't generate a tarball.
16979
16980 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16981
16982         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
16983         long int, not int, for nanosecond counts, so that people who are
16984         used to POSIX struct timespec won't be surprised.  Reported by Jim
16985         Meyering.
16986
16987 2005-12-28  Bruno Haible  <bruno@clisp.org>
16988
16989         * build-aux/config.rpath: Update from GNU gettext.
16990
16991 2005-12-16  Jim Meyering  <jim@meyering.net>
16992
16993         * modules/fprintftime: New module.
16994         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
16995
16996 2005-12-16  Jim Meyering  <jim@meyering.net>
16997
16998         * m4/fprintftime.m4: New file.
16999
17000 2005-12-16  Jim Meyering  <jim@meyering.net>
17001
17002         * lib/fprintftime.c, lib/fprintftime.h: New files.
17003
17004 2005-12-15  Simon Josefsson  <jas@extundo.com>
17005
17006         * modules/socklen (configure.ac): Fix M4 macro name, to align with
17007         new m4/socklen.m4.
17008
17009 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
17010
17011         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
17012         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
17013
17014 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
17015
17016         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
17017         * lib/argp-help.c (fill_in_uparams): Check if the constructed
17018         struct uparams is valid. Fall back to the default values if it is
17019         not.
17020
17021 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17022
17023         * modules/argp (Files): Add argp-pin.c
17024         (Depends-on): dirname
17025         (lib_SOURCES): Add argp-pin.c
17026
17027 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17028
17029         * m4/argp.m4:  Check if program_invocation_name and
17030         program_invocation_short_name are declared and define appropriate
17031         macros if they are not.
17032
17033 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17034
17035         * lib/argp-help.c (__argp_base_name): New function
17036         (__argp_short_program_name): Rewrite using __argp_base_name
17037         * lib/argp-namefrob.h: Define program_invocation_name and
17038         program_invocation_short_name if requested
17039         (__argp_base_name): Add prototype
17040         * lib/argp-parse.c (argp_def): Use gettext wrappers
17041         (argp_default_parser): Use __argp_base_name
17042         * lib/argp-pin.c: New file. Defines program_invocation_name and
17043         program_invocation_short_name on systems that lack them.
17044
17045 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17046
17047         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
17048         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
17049         porting problem reported by Georg Schwarz in
17050         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
17051
17052 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17053
17054         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
17055         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
17056         porting problem reported by Georg Schwarz in
17057         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
17058
17059 2005-12-05  Bruno Haible  <bruno@clisp.org>
17060
17061         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
17062         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
17063         Reported by Mark Junker <mjscod@gmx.de>.
17064
17065 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
17066
17067         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
17068         Use implementation from Albert Chin, with some
17069         comments/corrections by Stepan Kasal and myself.
17070
17071 2005-12-02  Bruno Haible  <bruno@clisp.org>
17072
17073         * gnulib-tool (func_import): Accept GPLed build tool modules when
17074         --lgpl is given.
17075         * modules/csharpcomp-script: New file.
17076         * modules/csharpcomp: Depend on it.
17077         * modules/javacomp-script: New file.
17078         * modules/javacomp: Depend on it.
17079         Suggested by Simon Josefsson.
17080
17081 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17082
17083         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
17084         statement, to work around an HP-UX 10.20 compiler bug reported by
17085         Peter O'Gorman.
17086
17087 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17088
17089         * modules/savedir (Depends-on): Add openat.
17090
17091 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17092
17093         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
17094         (uintmax_t) [defined uintmax_t]: Do not declare.
17095         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
17096         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
17097         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
17098         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
17099         sake of portability to weird hosts that C allows (though we don't
17100         know of any practical examples).
17101
17102         * lib/savedir.h (fdsavedir): New decl.
17103         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
17104         contains most of the former guts of savedir.
17105         (savedir): Use savedirstream.
17106         Include "openat.h".
17107
17108 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17109
17110         * modules/obstack (Files): Add m4/ulonglong.m4.
17111         Problem reported by Davide Angelocola.
17112
17113 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17114
17115         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
17116         coreutils no longer futzes with rounding modes.
17117
17118 2005-11-14  Jim Meyering  <jim@meyering.net>
17119
17120         * lib/mkstemp-safer.c: Include <config.h>, required for possible
17121         replacement of mkstemp.
17122
17123 2005-11-10  Simon Josefsson  <jas@extundo.com>
17124
17125         * lib/readline.c: Remove EOL.
17126
17127 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
17128
17129         * modules/gethrxtime (Depends-on): Add gettime.
17130
17131 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
17132
17133         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
17134         or gettimeofday; no longer needed.
17135
17136 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
17137
17138         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
17139         time business.
17140         (gethrxtime) [! (HAVE_NANOUPTIME
17141         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
17142         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
17143         our own approximation.
17144
17145 2005-11-08  Eric Blake  <ebb9@byu.net>
17146
17147         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
17148
17149 2005-11-08  Eric Blake  <ebb9@byu.net>
17150
17151         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
17152
17153 2005-11-04  Bruno Haible  <bruno@clisp.org>
17154
17155         * gnulib-tool: Implement --update mode.
17156
17157 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17158
17159         Fix porting problem reported by Theodoros V. Kalamatianos.
17160         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
17161         Don't assume that futimes failing means we must fail.
17162
17163 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17164
17165         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
17166         variables to suggest the intended function of the PATH_MAX check.
17167
17168 2005-10-30  Kean Johnston  <jkj@sco.com>
17169
17170         Trivial changes to support SCO systems.
17171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
17172         as PATH_MAX.
17173         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
17174         where __ptr is null when no I/O is pending.
17175
17176 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17177
17178         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
17179         leave errno alone.  Problem reported by Dmitry V. Levin.
17180
17181 2005-10-28  Simon Josefsson  <jas@extundo.com>
17182
17183         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
17184         Test more.
17185
17186         * tests/test-gc-md2.c, tests/test-md2.c: New files.
17187
17188         * modules/md2, modules/md2-tests: New files.
17189
17190 2005-10-28  Simon Josefsson  <jas@extundo.com>
17191
17192         * m4/inet_ntop.m4: More tests.
17193
17194         * m4/gc-md2.m4, md2.m4: New file.
17195
17196 2005-10-28  Simon Josefsson  <jas@extundo.com>
17197
17198         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
17199         "restrict" keywords, as per POSIX.  Protect the function
17200         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
17201         Don't use K&R prototypes.  Check the sprintf return values.
17202         Re-define EAFNOSUPPORT if not present.  Indent.
17203
17204         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
17205         suggested by Bruno Haible <bruno@clisp.org>.
17206
17207         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
17208
17209         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
17210
17211         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
17212         libgcrypt).
17213
17214         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
17215
17216         * lib/md2.h, lib/md2.c: New files.
17217
17218 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
17219
17220         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
17221         errno alone.  Problem reported by Frederic Jolliton.
17222
17223 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
17224
17225         * modules/verify (License): Change from GPL to LGPL.  This is a
17226         tiny module and there are apparently near-equivalents that are
17227         under the BSD license.
17228
17229 2005-10-24  Simon Josefsson  <jas@extundo.com>
17230
17231         * modules/sha1: Relicense to LGPL.
17232
17233 2005-10-24  Simon Josefsson  <jas@extundo.com>
17234
17235         * lib/md4.h: Shrink buffer size, now that we changed the type.
17236
17237 2005-10-23  Simon Josefsson  <jas@extundo.com>
17238
17239         * gnulib-tool (func_import): Fix --tests-base.
17240
17241 2005-10-22  Simon Josefsson  <jas@extundo.com>
17242
17243         * modules/arcfour (Depends-on): Need stdint.
17244
17245 2005-10-22  Simon Josefsson  <jas@extundo.com>
17246
17247         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
17248         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
17249
17250 2005-10-22  Simon Josefsson  <jas@extundo.com>
17251
17252         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
17253         suggested by Bruno Haible <bruno@clisp.org>.
17254
17255 2005-10-22  Simon Josefsson  <jas@extundo.com>
17256
17257         * lib/crc.h: Include stddef.h, for size_t.
17258
17259 2005-10-22  Simon Josefsson  <jas@extundo.com>
17260
17261         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
17262         arcfour_context struct (simplify test vector testing in GNU
17263         Shishi).
17264
17265 2005-10-21  Simon Josefsson  <jas@extundo.com>
17266
17267         * modules/des, modules/des-tests: New files.
17268
17269         * modules/gc-des, modules/gc-des-tests: New files.
17270
17271         * tests/test-des.c, tests/test-gc-des.c: New file.
17272
17273 2005-10-21  Simon Josefsson  <jas@extundo.com>
17274
17275         * modules/arctwo, modules/arctwo-tests: New files.
17276
17277         * tests/test-arctwo.c: New file.
17278
17279         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
17280
17281         * tests/test-gc-arctwo.c: New file.
17282
17283 2005-10-21  Simon Josefsson  <jas@extundo.com>
17284
17285         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
17286         Bruno Haible <bruno@clisp.org>.
17287
17288         * m4/gc-des.m4: New file.
17289
17290 2005-10-21  Simon Josefsson  <jas@extundo.com>
17291
17292         * m4/arctwo.m4: New file.
17293
17294         * m4/gc-arctwo.m4: New file.
17295
17296 2005-10-21  Simon Josefsson  <jas@extundo.com>
17297
17298         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
17299         block.
17300
17301 2005-10-21  Simon Josefsson  <jas@extundo.com>
17302
17303         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
17304         <bruno@clisp.org>.
17305
17306         * lib/hmac-sha1.c (hmac_sha1): Likewise.
17307
17308         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
17309         Bruno Haible <bruno@clisp.org>.
17310
17311         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
17312         <bruno@clisp.org>.
17313
17314 2005-10-21  Simon Josefsson  <jas@extundo.com>
17315
17316         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
17317
17318 2005-10-21  Simon Josefsson  <jas@extundo.com>
17319
17320         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
17321
17322 2005-10-21  Simon Josefsson  <jas@extundo.com>
17323
17324         * lib/des.h, lib/des.c: New files.
17325
17326         * lib/gc-gnulib.c: Support DES.c
17327
17328 2005-10-21  Simon Josefsson  <jas@extundo.com>
17329
17330         * lib/arctwo.h, lib/arctwo.c: New files.
17331
17332         * lib/gc-gnulib.c: Support ARCTWO.
17333
17334 2005-10-21  Simon Josefsson  <jas@extundo.com>
17335
17336         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
17337         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17338
17339 2005-10-21  Simon Josefsson  <jas@extundo.com>
17340
17341         * gnulib-tool (func_import, func_create_testdir): Define automake
17342         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
17343         Makefile.am snippet),
17344         suggested by Bruno Haible <bruno@clisp.org>.
17345
17346         * modules/gc (Makefile.am): Use it.
17347
17348 2005-10-21  Bruno Haible  <bruno@clisp.org>
17349
17350         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
17351         patch.
17352
17353 2005-10-19  Simon Josefsson  <jas@extundo.com>
17354
17355         * tests/test-gc-rijndael.c: New file.
17356
17357         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
17358
17359 2005-10-19  Simon Josefsson  <jas@extundo.com>
17360
17361         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
17362         interface too.
17363
17364 2005-10-19  Simon Josefsson  <jas@extundo.com>
17365
17366         * tests/test-gc-arcfour.c: New file.
17367
17368         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
17369
17370 2005-10-19  Simon Josefsson  <jas@extundo.com>
17371
17372         * modules/gc-md4, modules/gc-md4-tests: New file.
17373
17374         * tests/test-gc-md4.c: New file.
17375
17376 2005-10-19  Simon Josefsson  <jas@extundo.com>
17377
17378         * m4/gc-md4.m4: New file.
17379
17380 2005-10-19  Simon Josefsson  <jas@extundo.com>
17381
17382         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
17383         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
17384         <kasal@ucw.cz>.
17385
17386 2005-10-19  Simon Josefsson  <jas@extundo.com>
17387
17388         * m4/gc-arcfour.m4: New file.
17389
17390         * m4/gc-rijndael.m4: New file.
17391
17392 2005-10-19  Simon Josefsson  <jas@extundo.com>
17393
17394         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
17395
17396 2005-10-19  Simon Josefsson  <jas@extundo.com>
17397
17398         * lib/gc-gnulib.c: Support ARCFOUR.
17399
17400 2005-10-19  Simon Josefsson  <jas@extundo.com>
17401
17402         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
17403         support.
17404
17405         * lib/gc.h: Add ECB enum type.
17406
17407         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
17408
17409 2005-10-18  Simon Josefsson  <jas@extundo.com>
17410
17411         * tests/test-md5.c: New file.
17412
17413         * modules/md5-tests: New file.
17414
17415 2005-10-18  Simon Josefsson  <jas@extundo.com>
17416
17417         * tests/test-md4.c: New file.
17418
17419         * modules/md4, modules/md4-tests: New files.
17420
17421 2005-10-18  Simon Josefsson  <jas@extundo.com>
17422
17423         * m4/md4.m4: New file.
17424
17425 2005-10-18  Simon Josefsson  <jas@extundo.com>
17426
17427         * lib/md4.h, lib/md4.c: New files, based on md5.?.
17428
17429 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
17430
17431         * gnulib-tool (func_create_testdir): Omit the second check whether
17432         BUILT_SOURCES in nonempty.
17433
17434 2005-10-17  Simon Josefsson  <jas@extundo.com>
17435
17436         * tests/test-rijndael.c: New file.
17437
17438 2005-10-17  Simon Josefsson  <jas@extundo.com>
17439
17440         * modules/sha1: Depend on stdint instead of md5.
17441
17442         * modules/md5: Depend on stdint, remove uint32_t.
17443
17444 2005-10-17  Simon Josefsson  <jas@extundo.com>
17445
17446         * modules/gc-sha1-tests: New file.
17447
17448         * tests/test-gc-sha1.c: New file.
17449
17450 2005-10-17  Simon Josefsson  <jas@extundo.com>
17451
17452         * m4/md5.m4: Remove call to uint32_t.m4.
17453
17454 2005-10-17  Simon Josefsson  <jas@extundo.com>
17455
17456         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
17457
17458         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
17459         md5.h.
17460
17461         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
17462
17463         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
17464
17465 2005-10-17  Simon Josefsson  <jas@extundo.com>
17466
17467         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
17468
17469 2005-10-17  Simon Josefsson  <jas@extundo.com>
17470
17471         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
17472
17473 2005-10-17  Simon Josefsson  <jas@extundo.com>
17474
17475         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
17476
17477         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
17478
17479 2005-10-17  Bruno Haible  <bruno@clisp.org>
17480
17481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
17482         that it can also be used in a test.
17483
17484 2005-10-16  Bruno Haible  <bruno@clisp.org>
17485
17486         * gnulib-tool (func_emit_tests_Makefile_am): Also define
17487         TESTS_ENVIRONMENT, so that individual tests can augment it.
17488
17489         * gnulib-tool (func_create_testdir): Use an intermediate target for
17490         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
17491         macros, like $(ALLOCA_H), which cannot be passed through the command
17492         line.
17493
17494 2005-10-15  Simon Josefsson  <jas@extundo.com>
17495
17496         * modules/rijndael-tests: New file.
17497
17498         * modules/rijndael: New file.
17499
17500 2005-10-15  Simon Josefsson  <jas@extundo.com>
17501
17502         * m4/rijndael.m4: New file.
17503
17504 2005-10-15  Simon Josefsson  <jas@extundo.com>
17505
17506         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
17507
17508         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
17509
17510 2005-10-14  Simon Josefsson  <jas@extundo.com>
17511
17512         * tests/test-arcfour.c: New file.
17513
17514         * modules/arcfour, modules/arcfour-tests: New files.
17515
17516 2005-10-14  Simon Josefsson  <jas@extundo.com>
17517
17518         * m4/arcfour.m4: New file.
17519
17520 2005-10-14  Simon Josefsson  <jas@extundo.com>
17521
17522         * lib/arcfour.h, lib/arcfour.c: New files.
17523
17524 2005-10-14  Roland McGrath  <roland@redhat.com>
17525
17526         Import from libc.  [BZ #1331]
17527         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
17528         macro argument.
17529         Reported by Matej Vela <vela@debian.org>.
17530
17531 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17532
17533         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
17534         include <wchar.h>; no longer needed.
17535
17536 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17537
17538         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
17539
17540 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
17541         and  Ulrich Drepper  <drepper@redhat.com>
17542
17543         Import from libc.
17544         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
17545         instead of inline stream orientation test and two separate
17546         function calls.  Pay no attention to USE_IN_LIBIO.
17547
17548 2005-10-13  Simon Josefsson  <jas@extundo.com>
17549
17550         * modules/gc-hmac-md5-tests: New file.
17551
17552         * tests/test-gc-hmac-sha1.c: New file.
17553
17554         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
17555
17556         * modules/gc-hmac-md5-tests: New file.
17557
17558         * tests/test-gc-md5.c: New file.
17559
17560         * modules/gc-md5-tests: New file.
17561
17562 2005-10-13  Simon Josefsson  <jas@extundo.com>
17563
17564         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
17565         Move memory allocation outside of loop.
17566
17567 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17568
17569         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
17570         intermediate directory is in a read-only file system.  Problem
17571         reported by Eric Blake.
17572
17573 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
17574
17575         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
17576
17577 2005-10-12  Simon Josefsson  <jas@extundo.com>
17578
17579         * tests/test-hmac-sha1.c: New file.
17580
17581         * modules/hmac-sha1-tests: New file.
17582
17583         * modules/hmac-sha1: New file.
17584
17585 2005-10-12  Simon Josefsson  <jas@extundo.com>
17586
17587         * modules/gc-sha1: New file.
17588
17589 2005-10-12  Simon Josefsson  <jas@extundo.com>
17590
17591         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
17592
17593         * tests/test-gc-pbkdf2-sha1.c: New file.
17594
17595 2005-10-12  Simon Josefsson  <jas@extundo.com>
17596
17597         * modules/gc-md5, modules/gc-hmac-md5: New files.
17598
17599         * modules/gc (Files): Remove md5, memxor and hmac files.
17600
17601 2005-10-12  Simon Josefsson  <jas@extundo.com>
17602
17603         * m4/gc-pbkdf2-sha1.m4: New file.
17604
17605         * m4/gc-hmac-sha1.m4: New file.
17606
17607         * m4/gc-sha1: New file.
17608
17609         * m4/hmac-sha1.m4: New file.
17610
17611 2005-10-12  Simon Josefsson  <jas@extundo.com>
17612
17613         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
17614
17615         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
17616
17617 2005-10-12  Simon Josefsson  <jas@extundo.com>
17618
17619         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
17620         suggested by Bruno Haible <bruno@clisp.org>.
17621
17622 2005-10-12  Simon Josefsson  <jas@extundo.com>
17623
17624         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
17625
17626 2005-10-12  Simon Josefsson  <jas@extundo.com>
17627
17628         * lib/gc-pbkdf2-sha1.c: New file.
17629
17630         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
17631
17632 2005-10-12  Simon Josefsson  <jas@extundo.com>
17633
17634         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
17635
17636         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
17637
17638 2005-10-12  Simon Josefsson  <jas@extundo.com>
17639
17640         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
17641         GC_USE_HMAC_MD5, respectively.
17642
17643         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
17644         (gc_md5): Fix typo.
17645
17646         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
17647
17648         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
17649
17650         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
17651
17652 2005-10-12  Bruno Haible  <bruno@clisp.org>
17653
17654         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
17655         Reported by Stepan Kasal <kasal@ucw.cz>.
17656
17657 2005-10-11  Simon Josefsson  <jas@extundo.com>
17658
17659         * tests/test-crc.c: New file.
17660
17661         * modules/crc, modules/crc-tests: New files.
17662
17663 2005-10-11  Simon Josefsson  <jas@extundo.com>
17664
17665         * m4/crc.m4: New file.
17666
17667 2005-10-11  Simon Josefsson  <jas@extundo.com>
17668
17669         * lib/gc.h: Add gc_hash and gc_hash_buffer.
17670
17671         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
17672
17673         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
17674
17675 2005-10-11  Simon Josefsson  <jas@extundo.com>
17676
17677         * lib/crc.h, lib/crc.c: New files.
17678
17679         * lib/gc.h (gc_hash_buffer): Add doc.
17680
17681 2005-10-11  Bruno Haible  <bruno@clisp.org>
17682
17683         * modules/c-strcasestr: New file.
17684         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
17685
17686 2005-10-11  Bruno Haible  <bruno@clisp.org>
17687
17688         * modules/c-strcase: New file.
17689         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
17690
17691 2005-10-11  Bruno Haible  <bruno@clisp.org>
17692
17693         * lib/strcasecmp.c: Include limits.h.
17694         (strcasecmp): Avoid integer overflow on exotic platforms.
17695         * lib/strncasecmp.c: Include limits.h.
17696         (strncasecmp): Avoid integer overflow on exotic platforms.
17697         Reported by Paul Eggert.
17698
17699 2005-10-11  Bruno Haible  <bruno@clisp.org>
17700
17701         * lib/c-strcasestr.h: New file, from GNU gettext.
17702         * lib/c-strcasestr.c: New file, from GNU gettext.
17703
17704 2005-10-11  Bruno Haible  <bruno@clisp.org>
17705
17706         * lib/c-strcase.h: New file, from GNU gettext.
17707         * lib/c-strcasecmp.c: New file, from GNU gettext.
17708         * lib/c-strncasecmp.c: New file, from GNU gettext.
17709
17710 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17711
17712         * modules/mempcpy (License): GPL -> LGPL.
17713         * modules/strchrnul (License): Likewise.
17714         * modules/sysexits (License): Likewise.
17715
17716 2005-10-08  Simon Josefsson  <jas@extundo.com>
17717
17718         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
17719
17720 2005-10-07  Simon Josefsson  <jas@extundo.com>
17721
17722         * m4/memxor.m4: Remove gl_C_RESTRICT call.
17723
17724 2005-10-06  Simon Josefsson  <jas@extundo.com>
17725
17726         * tests/test-hmac-md5.c: New file.
17727
17728         * modules/hmac-md5-tests: New file.
17729
17730         * modules/hmac-md5: New file.
17731
17732 2005-10-06  Simon Josefsson  <jas@extundo.com>
17733
17734         * m4/hmac-md5.m4: New file.
17735
17736         * m4/memxor.m4: Require gl_C_RESTRICT.
17737
17738 2005-10-06  Simon Josefsson  <jas@extundo.com>
17739
17740         * lib/memxor.c (memxor): Avoid casts and warnings.
17741
17742 2005-10-06  Simon Josefsson  <jas@extundo.com>
17743
17744         * lib/hmac-md5.c: New file.
17745
17746         * lib/hmac.h: New file.
17747
17748 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17749
17750         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
17751         promotes to int, not unsigned int, to catch the AIX 5.3
17752         compiler bug.
17753
17754 2005-10-05  Simon Josefsson  <jas@extundo.com>
17755
17756         * modules/memxor: New file.
17757
17758         * modules/iconv (Files): Move config.rpath to havelib, it is used
17759         there.
17760
17761         * modules/havelib (Files): Add config.rpath.
17762
17763 2005-10-05  Simon Josefsson  <jas@extundo.com>
17764
17765         * m4/memxor.m4: New file.
17766
17767 2005-10-05  Simon Josefsson  <jas@extundo.com>
17768
17769         * lib/memxor.c (memxor): Fix compiler error.
17770
17771         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
17772         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
17773
17774         * lib/memxor.h, lib/memxor.c: New files.
17775
17776         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
17777         we assume all systems have it, suggested by Jim Meyering
17778         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
17779         any systems lack sys/socket.h; mingw32 is known to lack it, but we
17780         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
17781         same reasons.
17782
17783 2005-10-05  Simon Josefsson  <jas@extundo.com>
17784
17785         * config/srclist.txt: Add glibc bug 1423 for md5.h.
17786
17787 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17788
17789         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
17790         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
17791         needed, since the source code now assumes these .h files.
17792
17793 2005-10-05  Derek Price  <derek@ximbiot.com>
17794
17795         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
17796
17797 2005-10-05  Bruno Haible  <bruno@clisp.org>
17798
17799         * modules/stdint (License): Change to LGPL.
17800
17801 2005-10-04  Simon Josefsson  <jas@extundo.com>
17802
17803         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
17804         D. Baushke" <mdb@gnu.org>.
17805
17806 2005-10-04  Bruno Haible  <bruno@clisp.org>
17807
17808         * lib/verify.h (verify_true): Provide alternative definition for C++.
17809
17810 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17811
17812         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
17813         (SSIZE_MAX): New macro, if not already defined.
17814         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
17815         than 2 GiB.
17816
17817 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17818
17819         Sync from coreutils.
17820         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
17821         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
17822         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
17823         ULLONG_MAX doesn't work with 2.7.2.1.
17824
17825 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17826
17827         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
17828         From Ben Pfaff.
17829
17830         * modules/exclude (Depends-on): Depend on verify.
17831         * modules/strtoimax (Depends-on): Likewise.
17832         * modules/utimecmp (Depends-on): Likewise.
17833
17834 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17835
17836         * lib/exclude.c: Include verify.h.
17837         (verify): Remove.  All callers changed to use verify.h's version.
17838         * lib/strtoimax.c: Likewise.
17839         * lib/utimecmp.c: Likewis.e
17840
17841         Sync from coreutils.
17842         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
17843         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
17844         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
17845         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
17846         bother returning ENOSYS if settimeofday or stime fails; just let
17847         them return whatever errno they want to return.
17848         * lib/utimens.c: Include unistd.h, for dup2.
17849         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
17850         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
17851
17852 2005-10-02  Jim Meyering  <jim@meyering.net>
17853
17854         Sync from coreutils.
17855         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
17856         from glibc-2.2.5 that fails for read-only files.
17857
17858 2005-10-02  Jim Meyering  <jim@meyering.net>
17859
17860         Sync from coreutils.
17861         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
17862         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
17863         `#if HAVE_CONFIG_H'.
17864         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
17865         Remove AT_FDCWD test.
17866         Do not consume the fd unless successful.
17867         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
17868         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
17869         block, so that we don't even try to compile it if settimeofday is
17870         available.  This works around a compilation failure on OSF1 V5.1,
17871         due to stime requiring a `long int*' while tv_sec is `int'.
17872
17873 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
17874
17875         Sync from coreutils.
17876         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
17877         against `yes', rather than just testing for nonempty.
17878
17879 2005-10-01  Simon Josefsson  <jas@extundo.com>
17880
17881         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
17882         and Darwin.
17883
17884         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
17885         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
17886         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
17887         freeaddrinfo and gai_strerror are declared by the POSIX headers.
17888         Check if struct addrinfo is declared.
17889
17890 2005-10-01  Simon Josefsson  <jas@extundo.com>
17891
17892         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
17893         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
17894         AI_* and EAI_* definitions.  Protect function declarations.
17895
17896 2005-10-01  Jim Meyering  <jim@meyering.net>
17897
17898         Sync from coreutils.
17899
17900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
17901         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
17902         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
17903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17904         in the inet and nsl libraries.  Required on Solaris 5.7.
17905
17906 2005-10-01  Jim Meyering  <jim@meyering.net>
17907
17908         Sync from coreutils.
17909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17910         in the inet and nsl libraries.  Required on Solaris 5.7.
17911
17912 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
17913
17914         * lib/getdelim.c (getdelim): Remove unused variables.
17915
17916 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
17917
17918         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
17919         so that the code works even with ancient cpp.  Portability problem
17920         with GCC 2.7.2.1 reported by Thomas M.Ott.
17921
17922 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
17923
17924         * modules/regex (Depends-on): Add strcase.
17925
17926         * modules/gethostname (Licence): Change from GPL to LGPL, since
17927         gethostname.c is a trivial implementation of a standard library
17928         function.
17929         * modules/poll (License): Change from GPL to LGPL, since it's
17930         derived from LGPL code.
17931
17932 2005-09-27  Jim Meyering  <jim@meyering.net>
17933
17934         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
17935         HAVE_CONFIG_H.
17936
17937         * lib/intprops.h (signed_type_or_expr__): Define.
17938         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
17939         for unsigned types.
17940
17941 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17942
17943         * lib/verify.h (verify_expr): Remove, replacing with:
17944         (verify_true): New macro that returns true instead of void.
17945         (verify_type__): Remove.
17946         (verify): Use verify_true rather than verify_type__.
17947
17948 2005-09-26  Bruno Haible  <bruno@clisp.org>
17949
17950         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
17951         is necessary.
17952         (lib_SOURCES): Remove mbchar.c.
17953         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
17954         (Files): Add m4/mbrtowc.m4.
17955         * modules/mbiter: Likewise.
17956         * modules/mbuiter: Likewise.
17957
17958 2005-09-26  Bruno Haible  <bruno@clisp.org>
17959
17960         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
17961         compile mbchar.c if they are not both present.
17962         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
17963         * m4/mbiter.m4 (gl_MBITER): Likewise.
17964         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
17965         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
17966         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
17967
17968 2005-09-25  Jim Meyering  <jim@meyering.net>
17969
17970         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
17971         also uses socklen_t.
17972
17973 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17974
17975         * lib/utimens.c (ENOSYS): Define if not already defined.
17976         (futimens): Support having a null PATH if the file descriptor
17977         is nonnegative.
17978
17979         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
17980         Remove.
17981         (__attribute): Define to empty unless GCC 3.1 or later.
17982         This works around a core dump on OpenBSD 3.4, which has GCC
17983         2.95.3, which dumps core when given __attribute__(()).  It also
17984         simplifies other tests, since we really don't want to bother with
17985         worrying about which ancient version of GCC supported what.
17986         Original problem reported by Yoann Vandoorselaere, with part of
17987         the fix suggested by Derek Price.
17988
17989 2005-09-24  Jim Meyering  <jim@meyering.net>
17990
17991         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
17992         so we can once again use a positive bitfield width of 1 -- now we
17993         don't have to explain why we were using a bitfield width of 2.
17994
17995 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
17996
17997         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
17998         and similarly for the other external symbols.  Problem reported
17999         by James Gallager.
18000
18001         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
18002         bug reported by Jim Meyering.
18003
18004         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
18005         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
18006         not needed, since socklen is a prerequisite module.
18007
18008 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18009
18010         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
18011         Problem reported by Eric Blake.
18012         (getaddrinfo): Initialize se so that it's not garbage.
18013         Redo internal storage allocation so that it doesn't make unportable
18014         assumptions about alignment.
18015         Fix a memory leak.
18016
18017         * lib/utimens.c (futimens): Use futimesat if available.
18018         Prefer it to futimes since it doesn't have the futimes bug.
18019
18020         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
18021         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
18022         Instead, declare a function that returns a pointer to an array,
18023         and use verify_type__ to declare the size of the array.
18024         Problem and germ of a solution reported by Bruno Haible.
18025         (verify_type__): Use 2, not 1, for bitfield size, to avoid
18026         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
18027
18028 2005-09-23  Jim Meyering  <jim@meyering.net>
18029
18030         Sync from coreutils.
18031         Correct build failure (socklen_t not defined) on at least
18032         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
18033         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
18034
18035 2005-09-23  Jim Meyering  <jim@meyering.net>
18036
18037         * modules/getaddrinfo (Depends-on): Add socklen.
18038
18039 2005-09-23  Bruno Haible  <bruno@clisp.org>
18040
18041         * tests/test-verify.c: New file.
18042
18043 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18044
18045         Sync from coreutils.
18046
18047         * modules/argmatch (Depends-on): Add verify.
18048         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
18049         unistd-safer.
18050         * modules/save-cwd (Depends-on): Likewise.
18051
18052         * modules/openat (Files): Add lib/openat-die.c.
18053         (Depends-on): Remove error, exitfail.
18054         Add dirname.
18055
18056         * modules/verify: New file.
18057         * MODULES.html.sh (Diagnostics <assert.h>): New section,
18058         with "verify" module.
18059
18060 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18061
18062         Sync from coreutils.
18063
18064         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
18065         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
18066         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
18067         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
18068         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
18069         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
18070         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
18071         Don't bother checking for string.h, stdlib.h, unistd.h.
18072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
18073         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
18074         module's job.
18075         * m4/jm-macros.m4 (gl_MACROS): Likewise.
18076         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
18077
18078         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
18079         (gl_GETDATE): Use it.
18080
18081         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
18082
18083 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18084
18085         Sync from coreutils.
18086
18087         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
18088         stat-time.h.
18089         * lib/argmatch.h: Include verify.h
18090         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
18091         (ARGMATCH_ASSERT): Remove; unused.
18092         * lib/canonicalize.c: Assume STDC_HEADERS.
18093         * lib/exclude.c: Include "strcase.h".
18094         * lib/regex_internal.h [!defined _LIBC]: Likewise.
18095         * lib/getusershell.c: Include stdio--.h rather than stdio.h
18096         and stdio-safer.h.
18097         (getusershell): Call fopen, not fopen_safer.
18098         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
18099         Do not include unistd-safer.h.
18100         (save_cwd): Don't call fd_safer; no longer needed
18101         now that we include fcntl--.h.
18102
18103         * lib/getdate.y (relative_time): New type.
18104         (RELATIVE_TIME_0): New constant.
18105         (parser_control): Use relative_time instead of doing it ourselves.
18106         (%union): Add new relative_time rel member.
18107         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
18108         Now typeless.
18109         (relunit, relunit_snumber): Now of type rel.
18110         (zone, rel, relunit, get_date): Adjust to above changes.
18111
18112         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
18113         Do not include unistd-safer.h.
18114         (getloadavg): Don't call fd_safer; no longer needed
18115         now that we include fcntl--.h.
18116
18117         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
18118         (make_dir_parents): Treat ENOSYS like EEXIST.
18119
18120         Improve quality of diagnostics on restore_cwd failure.
18121         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
18122         (make_dir_parents): Last arg is now int * (for errno), not bool *.
18123         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
18124         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
18125         each time through the loop.  Do not diagnose restore_cwd failure;
18126         that is the caller's job (and perhaps the caller does not care).
18127
18128         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
18129         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
18130         If the file already exists but is not a directory, don't bother
18131         to try to make its parents.
18132         Close potential file descriptor leak if we can't chdir("/") (!).
18133         Don't always return true if chdir($PWD) fails; return true only
18134         if the requested action was done successfully (except for the
18135         chdir($PWD)).
18136         Don't log final directory unless we actually made it.
18137         Refactor to avoid duplicate code to fix up permissions.
18138         Don't attempt to fix up parent permissions if chdir($PWD) fails.
18139
18140         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
18141         to make it a bit faster and (I hope) clearer.
18142         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
18143         Fix bug in formats like %2N.
18144
18145         * lib/verify.h: New file.
18146
18147 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18148
18149         Sync from coreutils.
18150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
18151
18152 2005-09-22  Jim Meyering  <jim@meyering.net>
18153
18154         Sync from coreutils.
18155
18156         * m4/lstat.m4 (gl_FUNC_LSTAT):
18157         Use AC_LIBSOURCES to require lstat.c and lstat.h.
18158         Remove obsolete comment.
18159         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
18160         * m4/xstrtod.m4: Likewise.
18161
18162         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
18163
18164 2005-09-22  Jim Meyering  <jim@meyering.net>
18165
18166         Sync from coreutils.
18167
18168         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
18169
18170         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
18171         the .tm_year member, since otherwise gcc-4.0 would now warn about
18172         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
18173
18174         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
18175         order to avoid an unsuppressible warning from gcc on 64-bit systems.
18176
18177         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
18178         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
18179         when run in a time zone for which daylight savings time is in effect
18180         for the starting date.
18181
18182         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
18183         stop us from restricting permissions of just-created absolute-named
18184         directories.
18185         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
18186         to restore initial working directory.
18187         * lib/mkdir-p.c (make_dir_parents): New parameter:
18188         different_working_dir, to tell caller if/when we change the working
18189         directory and are unable to return to the initial one.
18190         * lib/mkdir-p.h (make_dir_parents): Update prototype.
18191         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
18192         `return false'.  This fixes a bug introduced on 2004-07-30.
18193
18194         * lib/openat.c (fdopendir): Be sure to close the supplied
18195         file descriptor before returning.  This makes our replacement
18196         implementation a little closer to Solaris's, where fdopendir
18197         ties the file descriptor to the returned DIR* pointer.
18198         * lib/openat.c (unlinkat): New function.
18199         * lib/openat.h (unlinkat): Add prototype.
18200         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
18201         (openat_restore_fail): Rename from openat_restore_die.
18202         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
18203
18204         Provide an alternative to exiting immediately upon save_cwd or
18205         restore_cwd failure.  Now, an application can arrange e.g.,
18206         to perform a longjump in that case.
18207         * lib/openat.c: Include dirname.h.
18208         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
18209         (rpl_openat, fdopendir, fstatat): Call openat_save_die
18210         and openat_restore_die rather than calling error directly.
18211         Don't include "error.h" or "exitfail.h"; they're no longer needed.
18212
18213         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
18214         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
18215         define.
18216
18217         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
18218         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
18219                             int utc, int nanoseconds);
18220         Background:
18221         date should not have to allocate a megabyte of virtual memory to
18222         handle a format argument like +%1048575T.  When implemented with
18223         strftime, it must allocate such a buffer, use strftime to fill it
18224         in, print it, then free it.
18225         With fprintftime, it simply prints everything and exits.
18226         With no need for memory allocation, that's one fewer way to fail.
18227         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
18228         optional field width, not before, so we accept %9:z, not %:9z.
18229         (my_strftime): Be sure to use L_('x') for literals.
18230
18231         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
18232         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
18233         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
18234         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
18235         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
18236         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
18237         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
18238         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
18239         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
18240         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
18241         * lib/xgethostname.c, lib/xreadlink.c:
18242         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
18243
18244         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
18245         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
18246         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
18247         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18248         and don't include <sys/file.h>).
18249
18250 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
18251
18252         Sync from coreutils.
18253
18254         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
18255         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
18256         [!LDAV_DONE]: Avoid unused variable warning.
18257
18258 2005-09-21  Bruno Haible  <bruno@clisp.org>
18259
18260         * lib/unicodeio.h (unicode_to_mb): New declaration.
18261
18262 2005-09-20  Derek Price  <derek@ximbiot.com>
18263
18264         * lib/getaddrinfo.c: Don't include <netdb.h> included from
18265         getaddrinfo.h.
18266
18267 2005-09-20  Bruno Haible  <bruno@clisp.org>
18268
18269         * gnulib-tool: Remove trailing slashes from the values specified for
18270         --source-base, --m4-base, --tests-base, --aux-dir.
18271         Suggested by Simon Josefsson <jas@extundo.com>.
18272
18273 2005-09-20  Bruno Haible  <bruno@clisp.org>
18274
18275         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
18276         func_modules_to_filelist, func_import, func_create_testdir): Make all
18277         sorting results locale-independent, so that gnulib-cache.m4 doesn't
18278         change when gnulib-tool is invoked in a different locale.
18279
18280 2005-09-19  Simon Josefsson  <jas@extundo.com>
18281
18282         * m4/socklen.m4: Fix typo.
18283
18284 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18285
18286         Use a consistent style for including <config.h>.
18287         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
18288         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
18289         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
18290         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
18291         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
18292         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
18293         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
18294         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
18295         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
18296         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
18297         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
18298         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
18299         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
18300         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
18301         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
18302         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
18303         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
18304         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
18305         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
18306         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
18307         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
18308         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
18309         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
18310         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
18311         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
18312         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
18313         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
18314         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
18315         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
18316         lib/xstrtoumax.c, lib/yesno.c:
18317         Standardize inclusion of config.h.
18318         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
18319         lib/inttostr.h:  Removed inclusion of config.h from header files.
18320         * lib/inttostr.c:  Adjusted in-tree users.
18321         * lib/timespec.h: Remove superfluous warning to include config.h.
18322         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
18323         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
18324         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
18325         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
18326         config.h with HAVE_CONFIG_H.
18327
18328 2005-09-19  Jim Meyering  <jim@meyering.net>
18329
18330         * modules/pathmax (License): Change to LGPL.
18331
18332 2005-09-19  Derek Price  <derek@ximbiot.com>
18333
18334         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
18335
18336 2005-09-19  Bruno Haible  <bruno@clisp.org>
18337
18338         * gnulib-tool (import): Provide default for --tests-base.
18339
18340 2005-09-19  Bruno Haible  <bruno@clisp.org>
18341
18342         * doc/quote.texi: New file, extracted from gnulib.texi.
18343         * doc/ctime.texi: New file, extracted from gnulib.texi.
18344         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
18345         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
18346         * doc/gnulib.texi: Include them.
18347
18348 2005-09-18  Bruno Haible  <bruno@clisp.org>
18349
18350         Portability fix.
18351         * gnulib-tool (func_readlink): New function.
18352         (func_ln_if_changed): Use it.
18353
18354 2005-09-18  Bruno Haible  <bruno@clisp.org>
18355
18356         * gnulib-tool: Support --with-tests also with --import.
18357         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
18358         (func_import): Use variables $testsbase and $inctests. Emit a
18359         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
18360         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
18361         SUBDIRS += $testsdir.
18362         (func_create_testdir): Update.
18363
18364 2005-09-18  Bruno Haible  <bruno@clisp.org>
18365
18366         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
18367         instead of $dry_run.
18368         (func_cp_if_changed, func_mv_if_changed): Remove functions.
18369         (func_ln_if_changed): Don't handle dry-run here.
18370         (func_import): In dry-run mode, detect more precisely which actions
18371         would be performed, and don't use "...ing" verbs.
18372
18373 2005-09-18  Bruno Haible  <bruno@clisp.org>
18374
18375         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
18376         (func_import): Use join on two temporary files instead of three nested
18377         loops, in order to determine which files are new or old.
18378
18379 2005-09-18  Bruno Haible  <bruno@clisp.org>
18380
18381         * gnulib-tool (func_import): Comment out code that spits out the
18382         new files with --dry-run.
18383
18384 2005-09-18  Bruno Haible  <bruno@clisp.org>
18385
18386         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
18387
18388 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18389
18390         * lib/stat-time.h: New file.
18391         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
18392         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
18393         in a different way.
18394         (timespec_cmp): New function.
18395         * lib/utimecmp.c: Include stat-time.h.
18396         (SYSCALL_RESOLUTION): Depend on whether various struct stat
18397         members exist, not on the obsolescent ST_MTIM_NSEC.
18398         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
18399
18400 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18401
18402         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
18403
18404 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18405
18406         * MODULES.html.sh (File system functions): Add stat-time.
18407         * modules/stat-time: New file.
18408         * modules/timespec (Files): Remove m4/st_mtim.m4; this
18409         is now done in a different way, by the stat-time module.
18410         * modules/utimecmp (Depends-on): Add stat-time.
18411
18412 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18413
18414         * m4/st_mtim.m4: Remove.  Superseded by...
18415         * m4/stat-time.m4: New file.
18416         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
18417         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
18418
18419 2005-09-15  Derek Price  <derek@ximbiot.com>
18420
18421         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
18422
18423 2005-09-15  Derek Price  <derek@ximbiot.com>
18424
18425         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
18426         * lib/regex_internal.c: Ditto, using this...
18427         (__GNUC_PREREQ): ...new macro.
18428         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
18429         using...
18430         (__GNUC_PREREQ): ...this new macro.
18431
18432         * lib/strstr.h: Include string.h. Define strstr as a macro here.
18433
18434 2005-09-15  Derek Price  <derek@ximbiot.com>
18435             Paul Eggert  <eggert@cs.ucla.edu>
18436
18437         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
18438         changes, consolidating in...
18439         * lib/regex_internal.h: ...this file.
18440
18441 2005-09-13  Jim Meyering  <jim@meyering.net>
18442
18443         * lib/canon-host.c: Filter through gnu indent and reword comments
18444         slightly.
18445         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
18446
18447 2005-09-13  Derek Price  <derek@ximbiot.com>
18448
18449         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
18450         failure.
18451         Reported by Jim Meyering  <jim@meyering.net>.
18452
18453 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18454
18455         * lib/base64.c: Typo.
18456         (base64_encode): Put b64str in initialized data section.
18457
18458 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18459
18460         Merge glibc and coreutils changes into gnulib, plus a few
18461         extra fixes.
18462         * lib/md5.c: Use #error rather than a string.
18463         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
18464         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
18465         (__attribute__): Define to empty for non recent-GCC.
18466         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
18467         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
18468         Renamed from their non-__ counterparts, with new macros replacing
18469         them if not _LIBC.  Add __THROW attribute.
18470         (rol): Remove.
18471         (struct md5_ctx): Align buffer if using GCC.
18472         * lib/sha1.h (struct sha1_ctx): Likewise.
18473         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
18474         The old name was backwards.
18475         (NOTSWAP): Remove; not used.
18476         (rol): New macro, moved here from md5.h.
18477         (sha1_process_block): Remove a FIXME that doesn't make sense.
18478
18479 2005-09-12  Derek Price  <derek@ximbiot.com>
18480
18481         Return usable errors from canon-host.
18482         * lib/canon-host.h: New file.
18483         * lib/canon-host.c (canon_host): Wrap...
18484         (canon_host_r): ...this new function, which now relies exclusively on
18485         getaddrinfo.
18486         (ch_strerror): New function.
18487         (last_cherror): New global.
18488         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
18489         interface.
18490         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
18491         void *.
18492         (freeaddrinfo): Free ai->ai_canonname when set.
18493
18494 2005-09-12  Derek Price  <derek@ximbiot.com>
18495
18496         Make canon-host require getaddrinfo.
18497         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
18498         AC_LIBSOURCE canon-host.h.  Call...
18499         (gl_PREREQ_CANON_HOST): ...this new function, which requires
18500         gl_GETADDRINFO.
18501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
18502
18503 2005-09-12  Derek Price  <derek@ximbiot.com>
18504
18505         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
18506         LGPL.
18507         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
18508
18509 2005-09-12  Derek Price  <derek@ximbiot.com>
18510
18511         * lib/gai_strerror.c: Include config.h when available.  Include
18512         getaddrinfo.h before other headers to test interface.
18513         Reported by Larry Jones <lawrence.jones@ugs.com>.
18514
18515 2005-09-12  Derek Price  <derek@ximbiot.com>
18516             Paul Eggert  <eggert@cs.ucla.edu>
18517
18518         * modules/glob (Files): Add glob-libc.h.
18519
18520 2005-09-12  Derek Price  <derek@ximbiot.com>
18521             Paul Eggert  <eggert@cs.ucla.edu>
18522
18523         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
18524         glob_.h, glob-libc.h.
18525         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
18526
18527 2005-09-12  Derek Price  <derek@ximbiot.com>
18528             Paul Eggert  <eggert@cs.ucla.edu>
18529
18530         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
18531         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
18532         protecting things that should be done only in gnulib contexts.
18533         * lib/glob_.h: New file, containing only the glob things needed for
18534         gnulib.
18535         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
18536         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
18537         (glob, globfree, glob_pattern_p): Now defined simply in terms of
18538         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
18539         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
18540         and to respect the namespace rules better.
18541
18542 2005-09-08  Simon Josefsson  <jas@extundo.com>
18543
18544         * modules/socklen: New file.
18545
18546 2005-09-08  Simon Josefsson  <jas@extundo.com>
18547
18548         * m4/socklen.m4: New file.
18549
18550 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18551
18552         * modules/utimens (Files): Add m4/utimbuf.m4, since
18553         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
18554         Reported by Sergey Poznyakoff.
18555
18556 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18557
18558         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
18559         definitions, since that's the preferred style in glibc.
18560         Fix a minor spacing issue, and update copyright notice to match
18561         glibc's.
18562
18563 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18564
18565         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
18566
18567 2005-09-06  Simon Josefsson  <jas@extundo.com>
18568
18569         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
18570         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
18571
18572 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18573
18574         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
18575         warning.
18576
18577 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18578
18579         * config/srclist.txt: Add glibc bug 1302.
18580
18581 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18582
18583         Change bitset word type from unsigned int to unsigned long int,
18584         as this has better performance on typical 64-bit hosts.
18585         Port bitset code to hosts with unusual word sizes.
18586         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
18587         (build_collating_symbol):
18588         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
18589         argument is a bitset.  This is merely a style issue, but it makes
18590         it clearer that an entire array is expected.
18591         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
18592         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
18593         Port to the case where bitset_word is not the same as unsigned int.
18594         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18595         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
18596         Likewise.
18597         * lib/regexec.c (check_dst_limits_calc_pos_1,
18598         check_subexp_matching_top):
18599         (build_trtable, group_nodes_into_DFAstates):
18600         Likewise.
18601         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
18602         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
18603         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
18604         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
18605         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
18606         * lib/regcomp.c (optimize_subexps, lower_subexp):
18607         Work even if bitset_word has holes in its bitwise representation.
18608         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
18609         * lib/regexec.c (check_dst_limits_calc_pos_1,
18610         check_subexp_matching_top):
18611         Likewise.
18612         * lib/regex_internal.c (re_string_reconstruct):
18613         Don't assume UCHAR_MAX == 255.
18614         * lib/regex_internal.h (bitset_set_all): Likewise.
18615         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
18616         All uses changed.
18617         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
18618         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
18619         All uses changed.
18620         (BITSET_WORD_MAX): New macro.
18621         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
18622         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
18623         (bitset_empty, bitset_copy):
18624         Prefer sizeof (bitset) to multiplying it out ourselves.
18625         (bitset_not_merge): Remove; unused.
18626         (bitset_contain): Return bool, not unsigned int with one bit on.
18627         All callers changed.
18628         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
18629         alignment than re_node_set; do this by defining a new internal
18630         type struct dests_alloc and using it to allocate memory.
18631
18632 2005-09-05  Bruno Haible  <bruno@clisp.org>
18633
18634         * gnulib-tool (func_import): Fix comparison in handling of symbolic
18635         links.
18636
18637 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
18638
18639         * modules/size_max (Makefile.am): Add size_max.h
18640
18641 2005-09-04  Derek Price  <derek@ximbiot.com>
18642
18643         * gnulib-tool (func_import): Fix reversed $symbolic logic.
18644
18645 2005-09-03  Simon Josefsson  <jas@extundo.com>
18646
18647         * gnulib-tool: Fix typo.
18648
18649 2005-09-03  Simon Josefsson  <jas@extundo.com>
18650
18651         * config/srclist.txt: Add glibc bug 1293.
18652
18653 2005-09-03  Derek Price  <derek@ximbiot.com>
18654
18655         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
18656         From Larry Jones <lawrence.jones@ugs.com>.
18657
18658 2005-09-02  Simon Josefsson  <jas@extundo.com>
18659
18660         * modules/socklen: New file.
18661
18662 2005-09-02  Simon Josefsson  <jas@extundo.com>
18663
18664         * modules/havelib: New module.
18665
18666         * modules/gettext, modules/iconv, modules/lock, modules/readline:
18667         Use havelib.
18668
18669 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18670
18671         Check for arithmetic overflow when calculating sizes, to prevent
18672         some buffer-overflow issues.  These patches are conservative, in the
18673         sense that when I couldn't determine whether an overflow was possible,
18674         I inserted a run-time check.
18675         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
18676         macros.
18677         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
18678         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
18679         (re_xnrealloc, re_x2nrealloc): New inline functions.
18680         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
18681         parse_bracket_exp):
18682         (build_equiv_class, build_charclass): Check for arithmetic overflow
18683         in size expression calculations.
18684         * lib/regex_internal.c (re_string_realloc_buffers):
18685         (build_wcs_upper_buffer, re_node_set_add_intersect):
18686         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
18687         (re_dfa_add_node, register_state): Likewise.
18688         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
18689         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
18690         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
18691         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
18692
18693 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18694
18695         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
18696         m4/ulonglong.m4.  Problem reported by Martin Lambers.
18697
18698 2005-09-02  Bruno Haible  <bruno@clisp.org>
18699
18700         Support for lib vs. lib64 distinction on biarch platforms.
18701         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
18702         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
18703         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
18704
18705 2005-09-02  Bruno Haible  <bruno@clisp.org>
18706
18707         * gnulib-tool (import): In the other first-use case, provide defaults
18708         as well.
18709
18710 2005-09-02  Bruno Haible  <bruno@clisp.org>
18711
18712         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
18713         patches not yet found in the latest gettext release.
18714
18715 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18716
18717         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
18718         to avoid a collision with bits/local_lim.h in glibc.
18719         All uses changed.  Problem reported by Dmitry V. Levin in
18720         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
18721
18722         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
18723         bugs in int versus size_t comparisons.
18724         (re_string_context_at): Fix bug where the code assumed that
18725         Idx is signed.
18726
18727         Use bool where appropriate.
18728         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
18729         All callers changed.
18730         (calc_eclosure_iter): Likewise, for ROOT arg.
18731         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
18732         (build_charclass_op): Likewise, for NON_MATCH arg.
18733         * lib/regex_internal.c (re_string_allocate, re_string_construct):
18734         (re_string_construct_common): Likewise, for ICASE arg.
18735         * lib/regexec.c (re_search_2_stub, re_search_stub):
18736         Likewise, for RET_LEN arg.
18737         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
18738         (set_regs): Likewise, for FL_BACKTRACK arg.
18739         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
18740         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
18741         (calc_eclosure_iter, parse_bracket_exp):
18742         Use bool for internal variables that are booleans.
18743         * lib/regexec.c (re_search_internal, check_matching,
18744         proceed_next_node):
18745         (set_regs, build_sifted_states, sift_states_bkref):
18746         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
18747         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18748         (find_collation_sequence_value):
18749         Likewise.
18750         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
18751         (re_node_set_compare):
18752         Return bool, not int. All callers changed.
18753         * lib/regexec.c (check_halt_node_context, check_dst_limits):
18754         (build_trtable, check_node_accept): Likewise.
18755         * lib/regex_internal.h: Include stdbool.h.
18756
18757         Fix bugs uncovered when converting to bool.
18758         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
18759         failure instead of charging ahead blindly.
18760         * lib/regex_internal.c (register_state): Likewise.
18761         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
18762         for freeing internal storage.
18763         (group_nodes_into_DFA_states): Use unsigned int, not int, for
18764         bitset pieces used as boolean, to avoid undefined behavior
18765         on hosts that do int overflow checking.
18766
18767 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18768
18769         * config/srclist.txt: Add glibc bugs 1285-1287.
18770
18771 2005-09-01  Jim Meyering  <jim@meyering.net>
18772
18773         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
18774         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
18775         Require gl_STAT_MACROS, too.
18776
18777 2005-09-01  Bruno Haible  <bruno@clisp.org>
18778
18779         * gnulib-tool (import): In the first-use case, provide defaults.
18780
18781 2005-09-01  Bruno Haible  <bruno@clisp.org>
18782
18783         * gnulib-tool (func_import): Remove the .tmp files.
18784
18785 2005-09-01  Bruno Haible  <bruno@clisp.org>
18786
18787         * gnulib-tool (func_import): Fix handling of symbolic links.
18788
18789 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18790
18791         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
18792         old glibc regex code mishandles strings longer than 2**31 bytes.
18793         This patch fixes this when the regex code is used in gnulib
18794         (i.e., outside glibc).
18795
18796         This patch should not affect the use of the regex code inside
18797         glibc.  No doubt this problem also needs to be handled for glibc
18798         as well, but the result will be an incompatible change to the
18799         glibc ABI, and the old ABI will have to be supported too.  That
18800         can be the the subject for another patch.
18801
18802         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
18803         governing whether the rest of this patch is active.  By default,
18804         the macro is disabled and the patch has no effect.
18805         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
18806         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
18807         (struct re_pattern_buffer, re_search, re_search_2, re_match):
18808         (re_match_2, re_set_registers): Use the new types.
18809         * lib/regex_internal.h (Idx, re_hashval_t): New types.
18810         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
18811         New macros.
18812         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
18813         (re_string_context_at, bin_tree_t, re_dfastate_t):
18814         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
18815         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
18816         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
18817         (re_string_char_size_at, re_string_wchar_at):
18818         (re_string_elem_size_at):
18819         Use the new types and macros to port to 64-bit hosts.
18820         Use unsigned types for internal values, so that the code
18821         mostly works even for arrays larger than SSIZE_MAX.
18822         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
18823         (search_duplicated_node, calc_eclosure_iter, fetch_number):
18824         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18825         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
18826         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
18827         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
18828         (calc_inveclosure, parse_dup_op, build_range_exp):
18829         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
18830         (fetch_number, create_token_tree, mark_opt_subexp):
18831         Likewise.
18832         * lib/regex_internal.c (re_string_construct_common,
18833         create_ci_newstate):
18834         (create_cd_newstate, re_string_allocate, re_string_construct):
18835         (re_string_realloc_buffers, build_wcs_upper_buffer):
18836         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18837         (re_string_reconstruct, re_string_peek_byte_case):
18838         (re_string_fetch_byte_case, re_string_context_at):
18839         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18840         (re_node_set_init_copy, re_node_set_add_intersect):
18841         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18842         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18843         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18844         (re_acquire_state, re_acquire_state_context, register_state):
18845         Likewise.
18846         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
18847         search_cur_bkref_entry):
18848         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
18849         (re_search_internal, re_search_2_stub, re_search_stub)
18850         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
18851         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
18852         (update_cur_sifted_state, check_dst_limits):
18853         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18854         (check_subexp_limits, sift_states_bkref, merge_state_array):
18855         (check_subexp_matching_top, get_subexp, get_subexp_sub):
18856         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
18857         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18858         (expand_bkref_cache, check_node_accept_bytes):
18859         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
18860         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
18861         (acquire_init_state_context, check_halt_node_context):
18862         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
18863         (sift_states_backward, clean_state_log_if_needed):
18864         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
18865         (find_recover_state, transit_state_sb, transit_state_mb):
18866         (transit_state_bkref, build_trtable, match_ctx_clean):
18867         Likewise.
18868         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
18869         to work around an assumption that REG_MISSING is negative.
18870
18871         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
18872         (seek_collating_symbol_entry) [defined _LIBC]:
18873         (lookup_collation_sequence_value) [defined _LIBC]:
18874         (build_range_exp, build_collating_symbol) [defined _LIBC]:
18875         Use prototypes rather than old-style function definitions.
18876         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
18877         (transit_state_sb) [0]:
18878         (find_collation_sequence_value) [defined _LIBC]: Likewise.
18879
18880         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
18881         rm_eo.
18882
18883         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
18884         (optimize_subexps, lower_subexp):
18885         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
18886         since the signed shift might overflow.  Use 1u<<31 instead.
18887         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18888         Likewise.
18889         * lib/regexec.c (check_dst_limits_calc_pos_1,
18890         check_subexp_matching_top): Likewise.
18891
18892         * lib/regcomp.c (optimize_subexps, lower_subexp):
18893         Use CHAR_BIT rather than 8, for clarity.
18894         * lib/regexec.c (check_dst_limits_calc_pos_1):
18895         (check_subexp_matching_top): Likewise.
18896         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
18897         have to worry about portability issues when shifting it left.
18898         Remove no-longer-needed test for table_size > 0.
18899         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
18900         in a word, as the resulting behavior is undefined.
18901         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
18902         in one case, a <= should have been an <, and in another case the
18903         whole test was missing.
18904         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
18905         the standard name CHAR_BIT.
18906         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
18907         this is not true on one's complement and signed-magnitude hosts.
18908
18909         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
18910         next_last_offset.
18911         (struct re_dfa_t): Remove unused member states_alloc.
18912         * lib/regcomp.c (init_dfa): Don't initialize unused members.
18913
18914 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18915
18916         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
18917         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
18918         and large-file glibc and in 32-bit large-file Solaris.
18919
18920 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18921
18922         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
18923         lengths fit in regoff_t; this isn't true if regoff_t is the same
18924         width as size_t.
18925         * lib/regex.c (re_search_internal): 5th arg is LAST_START
18926         (= START + RANGE) instead of RANGE.  This avoids overflow
18927         problems when regoff_t is the same width as size_t.
18928         All callers changed.
18929         (re_search_2_stub): Check for overflow when adding the
18930         sizes of the two strings.
18931         (re_search_stub): Check for overflow when adding START
18932         to RANGE; if it occurs, substitute the extreme value.
18933
18934 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18935
18936         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
18937
18938 2005-08-31  Jim Meyering  <jim@meyering.net>
18939
18940         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
18941         a pointer-to-const.
18942         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
18943         (register_state): Likewise.
18944         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
18945         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18946         (group_nodes_into_DFAstates): Likewise.
18947
18948 2005-08-31  Jim Meyering  <jim@meyering.net>
18949
18950         * check-module: Add a FIXME comment.
18951
18952 2005-08-31  Eric Blake  <ebb9@byu.net>
18953
18954         * modules/unistd-safer (Files): Add unistd--.h.
18955         * modules/stdio-safer (Files): Add stdio--.h.
18956
18957 2005-08-31  Derek Price  <derek@ximbiot.com>
18958
18959         * lib/getdelim.c (getdelim): Return EOF on EOF.
18960         Reported by Larry Jones <lawrence.jones@ugs.com>.
18961
18962 2005-08-31  Bruno Haible  <bruno@clisp.org>
18963
18964         Avoid unnecessary diffs in the generated lib/Makefile.am.
18965         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
18966         the generated files.
18967         (func_import): Don't set cmd.
18968
18969 2005-08-31  Bruno Haible  <bruno@clisp.org>
18970
18971         * lib/strstr.c: Include <stddef.h>, for NULL.
18972         * lib/strcasestr.c: Likewise.
18973         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18974
18975 2005-08-31  Bruno Haible  <bruno@clisp.org>
18976
18977         * gnulib-tool: New option --macro-prefix.
18978         (func_import): Use macro_prefix.
18979         (import): Handle option --macro-prefix.
18980
18981 2005-08-31  Bruno Haible  <bruno@clisp.org>
18982
18983         * gnulib-tool (import): Rename most ac_* variables to cached_*.
18984         Also use new variables cached_lgpl, cached_libtool.
18985
18986 2005-08-31  Bruno Haible  <bruno@clisp.org>
18987
18988         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
18989         always instantiating them.
18990
18991 2005-08-31  Bruno Haible  <bruno@clisp.org>
18992
18993         * gnulib-tool (func_import): Read the previous cached settings
18994         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
18995         earlier added by gnulib but are now dropped. Warn when a gnulib file
18996         overwrites a non-gnulib file.
18997
18998 2005-08-31  Bruno Haible  <bruno@clisp.org>
18999
19000         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
19001         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
19002         projects that don't keep autogenerated files in CVS. Put into
19003         actioncmd only the specified modules, not the transitive closure.
19004
19005 2005-08-31  Bruno Haible  <bruno@clisp.org>
19006
19007         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
19008         Create directories that shall be filled.
19009         (import): Don't look for gl_* macros in configure.ac. Recurse across
19010         all directories containing a gnulib-cache.m4 files, if meaningful.
19011
19012 2005-08-31  Bruno Haible  <bruno@clisp.org>
19013
19014         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
19015         (import): Set seen_libtool when we see gl_LIBTOOL.
19016
19017 2005-08-31  Bruno Haible  <bruno@clisp.org>
19018
19019         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
19020         declaration macro definitions from generated gnulib.m4.
19021
19022 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
19023
19024         * lib/iconvme.h: Add prototype for iconv_alloc.
19025
19026 2005-08-29  Simon Josefsson  <jas@extundo.com>
19027
19028         * lib/iconvme.c: Fix errno.
19029
19030 2005-08-29  Bruno Haible  <bruno@clisp.org>
19031
19032         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
19033         that it works when the directory contains spaces.
19034
19035 2005-08-29  Bruno Haible  <bruno@clisp.org>
19036
19037         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
19038
19039 2005-08-29  Bruno Haible  <bruno@clisp.org>
19040
19041         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
19042         Emit more advice.
19043
19044 2005-08-29  Bruno Haible  <bruno@clisp.org>
19045         and Stepan Kasal  <kasal@ucw.cz>
19046
19047         * check-module: If more parameters are given, check each of them
19048         separately; add more exceptions, as noted by Jim Meyering.
19049         (check_module): New procedure.
19050         (%exempt_header): Now contains all exceptions.
19051
19052 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
19053
19054         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
19055
19056 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
19057
19058         * lib/iconvme.c: Split iconv_string into iconv_alloc.
19059
19060 2005-08-28  Bruno Haible  <bruno@clisp.org>
19061
19062         * m4/gnulib-tool.m4: New file.
19063
19064 2005-08-27  Jim Meyering  <jim@meyering.net>
19065
19066         * modules/unistd-safer (Files): Add pipe-safer.c.
19067         * modules/fcntl-safer (Files): Add creat-safer.c.
19068
19069 2005-08-27  Jim Meyering  <jim@meyering.net>
19070
19071         * m4/stdlib-safer.m4: New file.  From coreutils.
19072         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
19073         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
19074         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
19075         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
19076         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
19077
19078 2005-08-27  Jim Meyering  <jim@meyering.net>
19079
19080         * lib/fopen-safer.c: Merge minor changes from coreutils.
19081         * lib/dup-safer.c: Likewise.
19082         * lib/fd-safer.c: Likewise.
19083
19084         Merge from coreutils.
19085         * lib/stdio--.h: New file.
19086         * lib/stdlib--.h: New file.
19087         * lib/mkstemp-safer.c: New file.
19088
19089         GNU tar needs these.
19090         * lib/pipe-safer.c: New file.
19091         * lib/creat-safer.c: New file.
19092         * lib/fcntl--.h (creat): Define to creat_safer.
19093         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
19094         * lib/unistd--.h (pipe): Define to pipe_safer.
19095         * lib/unistd-safer.h: Declare pipe_safer.
19096
19097 2005-08-26  Simon Josefsson  <jas@extundo.com>
19098
19099         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
19100         Haible <bruno@clisp.org>.
19101
19102 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
19103
19104         * lib/regex_internal.h: Remove all references to
19105         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
19106         or better.
19107         (bitset_not, bitset_merge, bitset_not_merge):
19108         (bitset_mask, re_string_allocate, re_string_construct):
19109         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
19110         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
19111         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
19112         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
19113         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19114         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19115         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
19116         (re_acquire_state_context):
19117         Remove unnecessary forward decls.
19118         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
19119         Put __attribute at function definition,
19120         now that the function decl has been removed.
19121         * lib/regex_internal.c (re_string_peek_byte_case):
19122         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
19123         Likewise.
19124
19125 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
19126
19127         * m4/regex.m4: Add AC_PREREQ(2.50).
19128         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
19129
19130 2005-08-25  Simon Josefsson  <jas@extundo.com>
19131
19132         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
19133         __fsetlocking.
19134
19135 2005-08-25  Simon Josefsson  <jas@extundo.com>
19136
19137         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
19138         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
19139         GLIBC specific code.
19140
19141 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19142
19143         Make regex safe for g++.  This fixes one real bug (an "err"
19144         that should have been "*err").  g++ problem reported by
19145         Sam Steingold.
19146         * lib/regex_internal.h (re_calloc): New macro, consistent with
19147         re_malloc etc.  All callers of calloc changed to use re_calloc.
19148         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
19149         not int.  All callers changed.
19150         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
19151         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
19152         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
19153         (find_recover_state): Change "err" to "*err"; this fixes what
19154         appears to be a real bug.
19155         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
19156         versus int.
19157
19158 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19159
19160         * modules/regex (Depends-on): Add malloc, since the code
19161         assumes that !malloc(0) means failure.
19162
19163 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19164
19165         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
19166
19167         alloca modernization/simplification for regex.
19168         * lib/regex.c: Remove portability cruft for alloca.  This no longer
19169         needs to be at the start of the file, and can be moved into
19170         regex_internal.h and simplified.
19171         * lib/regex_internal.h: Include <alloca.h>.
19172         (__libc_use_alloca) [!defined _LIBC]: New macro.
19173         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
19174         now works outside glibc.
19175
19176 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19177
19178         * config/srclist.txt: Add glibc bugs 1241, 1245.
19179
19180 2005-08-25  Jim Meyering  <jim@meyering.net>
19181
19182         * lib/open-safer.c: Include <config.h>.
19183         Otherwise, we'd lose LARGEFILE support in any file using
19184         e.g. "fcntl--.h"
19185
19186 2005-08-25  Bruno Haible  <bruno@clisp.org>
19187
19188         * m4/minmax.m4: Require autoconf 2.52.
19189         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
19190         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
19191         alternatives of translit over the alphabet.
19192         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
19193
19194 2005-08-24  Simon Josefsson  <jas@extundo.com>
19195
19196         * tests/test-getpass.c: New file.
19197
19198 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19199
19200         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
19201         for GNU regex features.
19202
19203 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19204
19205         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
19206         * lib/regex.h (regerror): Likewise.
19207
19208         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
19209         requires this.  (The code never needed it.)
19210
19211         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
19212         All uses of recently-renamed identifiers changed to use the new,
19213         POSIX-compliant names.  The code will build and run just fine
19214         without these changes, but it's better to eat our own dog food
19215         and use the standard-conforming names.
19216
19217         * lib/regex.h: Fix a multitude of POSIX name space violations.
19218         These changes have an effect only for programs that define
19219         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
19220         do not change anything for programs compiled in the normal way.
19221         Also, there is no effect on the ABI.
19222
19223         (_REGEX_SOURCE): New macro.
19224         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
19225         defined and _GNU_SOURCE is not; this fixes a name space violation.
19226
19227         Rename the following macros to obey POSIX requirements.
19228         The old names are still visible as macros if _REGEX_SOURCE is defined.
19229         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
19230         RE_BACKSLASH_ESCAPE_IN_LISTS.
19231         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
19232         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
19233         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
19234         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
19235         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
19236         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
19237         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
19238         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
19239         (REG_INTERVALS): renamed from RE_INTERVALS.
19240         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
19241         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
19242         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
19243         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
19244         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
19245         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
19246         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
19247         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
19248         RE_UNMATCHED_RIGHT_PAREN_ORD.
19249         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
19250         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
19251         (REG_DEBUG): renamed from RE_DEBUG.
19252         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
19253         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
19254         unusual, since we can't clash with the POSIX REG_ICASE.
19255         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
19256         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
19257         (REG_NO_SUB): renamed from RE_NO_SUB.
19258         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
19259         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
19260         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
19261         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
19262         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
19263         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
19264         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
19265         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
19266         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
19267         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
19268         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
19269         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
19270         RE_SYNTAX_POSIX_MINIMAL_BASIC.
19271         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
19272         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
19273         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
19274         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
19275         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
19276         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
19277         (REG_FIXED): Renamed from REGS_FIXED.
19278         (REG_NREGS): Renamed from RE_NREGS.
19279
19280         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
19281         of other REG_* macros, since POSIX says the user is allowed to
19282         #undef these macros selectively.
19283
19284         (reg_errcode_t): Update comment stating what other tables need
19285         to be consistent.
19286
19287         Rename the following enum values to obey POSIX requirements.
19288         The old names are still visible as macros.
19289         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
19290         is not defined, since GNU is supposed to be a superset of POSIX as
19291         much as possible, and since we want reg_errcode_t to be a signed
19292         type for implementation consistency.
19293         (_REG_NOERROR): Renamed from REG_NOERROR.
19294         (_REG_NOMATCH): Renamed from REG_NOMATCH.
19295         (_REG_BADPAT): Renamed from REG_BADPAT.
19296         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
19297         (_REG_ECTYPE): Renamed from REG_ECTYPE.
19298         (_REG_EESCAPE): Renamed from REG_EESCAPE.
19299         (_REG_ESUBREG): Renamed from REG_ESUBREG.
19300         (_REG_EBRACK): Renamed from REG_EBRACK.
19301         (_REG_EPAREN): Renamed from REG_EPAREN.
19302         (_REG_EBRACE): Renamed from REG_EBRACE.
19303         (_REG_BADBR): Renamed from REG_BADBR.
19304         (_REG_ERANGE): Renamed from REG_ERANGE.
19305         (_REG_ESPACE): Renamed from REG_ESPACE.
19306         (_REG_BADRPT): Renamed from REG_BADRPT.
19307         (_REG_EEND): Renamed from REG_EEND.
19308         (_REG_ESIZE): Renamed from REG_ESIZE.
19309         (_REG_ERPAREN): Renamed from REG_ERPAREN.
19310         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
19311         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
19312         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
19313         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
19314
19315         (_REG_RE_NAME, _REG_RM_NAME): New macros.
19316         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
19317         changed.  But support the old name if the new one is not defined
19318         and if _REGEX_SOURCE.
19319
19320         Change the following member names in struct re_pattern_buffer.
19321         The old names are still supported if !_REGEX_SOURCE.
19322         The new names are always supported, regardless of _REGEX_SOURCE.
19323         (re_buffer): Renamed from buffer.
19324         (re_allocated): Renamed from allocated.
19325         (re_used): Renamed from used.
19326         (re_syntax): Renamed from syntax.
19327         (re_fastmap): Renamed from fastmap.
19328         (re_translate): Renamed from translate.
19329         (re_can_be_null): Renamed from can_be_null.
19330         (re_regs_allocated): Renamed from regs_allocated.
19331         (re_fastmap_accurate): Renamed from fastmap_accurate.
19332         (re_no_sub): Renamed from no_sub.
19333         (re_not_bol): Renamed from not_bol.
19334         (re_not_eol): Renamed from not_eol.
19335         (re_newline_anchor): Renamed from newline_anchor.
19336
19337         Change the following member names in struct re_registers.
19338         The old names are still supported if !_REGEX_SOURCE.
19339         The new names are always supported, regardless of _REGEX_SOURCE.
19340         (rm_num_regs): Renamed from num_regs.
19341         (rm_start): Renamed from start.
19342         (rm_end): Renamed from end.
19343
19344         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
19345         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
19346         Prepend __ to parameter names.
19347
19348         Undo yesterday's changes.
19349
19350 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19351
19352         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
19353         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
19354         lib/regex.c.
19355
19356 2005-08-24  Jim Meyering  <jim@meyering.net>
19357
19358         Sync from coreutils.
19359         * m4/fcntl-safer.m4: New file.
19360
19361         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
19362         and object files for this module.
19363
19364 2005-08-24  Jim Meyering  <jim@meyering.net>
19365
19366         Sync from coreutils.
19367         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
19368
19369 2005-08-24  Jim Meyering  <jim@meyering.net>
19370
19371         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
19372         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
19373
19374 2005-08-24  Jim Meyering  <jim@meyering.net>
19375
19376         * modules/fcntl-safer: New module.
19377         * modules/fts (Depends-on): Add fcntl-safer.
19378         * MODULES.html.sh (File descriptor based Input/Output):
19379         Add fcntl-safer.
19380
19381 2005-08-24  Bruno Haible  <bruno@clisp.org>
19382
19383         Support for unit test modules.
19384         * modules/README: Mention tests modules.
19385         * modules/TEMPLATE-TESTS: New file.
19386         * gnulib-tool: New options --extract-tests-module, --with-tests and
19387         --tests-base (unused for the moment).
19388         (testsbase, inctests): New variables.
19389         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
19390         (func_verify_module): Exclude TEMPLATE-TESTS.
19391         (func_verify_nontests_module, func_verify_tests_module): New functions.
19392         (func_get_dependencies): Add implicit dependency for tests modules.
19393         (func_get_tests_module): New function.
19394         (func_modules_transitive_closure): When --with-tests was specified,
19395         include the unit tests as well, unless explicitly avoided.
19396         (func_emit_lib_Makefile_am): Ignore the tests modules here.
19397         (func_emit_tests_Makefile_am): New function.
19398         (func_create_testdir): When --with-tests was specified, emit a
19399         tests/ directory.
19400         * MODULES.html.sh (Future developments): Update.
19401
19402 2005-08-24  Bruno Haible  <bruno@clisp.org>
19403
19404         * modules/tls-tests: New file.
19405         * tests/test-tls.c: New file, from GNU gettext.
19406
19407 2005-08-24  Bruno Haible  <bruno@clisp.org>
19408
19409         * modules/lock-tests: New file.
19410         * tests/test-lock.c: New file, from GNU gettext.
19411
19412 2005-08-24  Bruno Haible  <bruno@clisp.org>
19413
19414         * lib/lock.h: Add multiple inclusion guard.
19415         * lib/tls.h: Add multiple inclusion guard.
19416
19417 2005-08-24  Bruno Haible  <bruno@clisp.org>
19418
19419         * gnulib-tool: Add support for the --aux-dir option to
19420         --create-testdir, --create-megatestdir, --test, --megatest.
19421         (func_create_testdir, func_create_megatestdir): Optionally emit a
19422         AC_CONFIG_AUX_DIR directive.
19423         (create-testdir, create-megatestdir, test, megatest): Provide a
19424         default value for $auxdir.
19425
19426 2005-08-24  Bruno Haible  <bruno@clisp.org>
19427
19428         * gnulib-tool (import): Use compound statement instead of subshell
19429         where possible.
19430
19431 2005-08-24  Bruno Haible  <bruno@clisp.org>
19432
19433         * gnulib-tool (import): Change --aux-dir default to "build-aux".
19434
19435 2005-08-24  Bruno Haible  <bruno@clisp.org>
19436
19437         * gnulib-tool (func_version): Update.
19438
19439 2005-08-24  Bruno Haible  <bruno@clisp.org>
19440
19441         * gnulib-tool (func_import, func_create_testdir,
19442         func_create_megatestdir): Quote all autoconf macro arguments.
19443
19444 2005-08-24  Bruno Haible  <bruno@clisp.org>
19445
19446         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
19447         option --force, because --force causes the aclocal.m4 of each
19448         subdirectory to be newer than the corresponding config.h.in.
19449
19450 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19451
19452         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
19453         All contents moved to gl_REGEX.
19454         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
19455         assume that it does.
19456
19457 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19458
19459         * lib/regex.h (REG_NOSYS)
19460         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
19461         Define, since POSIX requires it as of 2001.
19462         (_REG_ENOSYS)
19463         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
19464         New private symbol, used to keep the enum signed in all cases.
19465         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
19466         Youngman in
19467         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
19468
19469         * lib/regex_internal.c (re_string_skip_chars, register_state):
19470         (calc_state_hash):
19471         Remove forward decls; no longer needed now that we use prototypes.
19472         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
19473         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
19474         (clean_state_log_if_needed): Likewise.
19475
19476 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19477
19478         * config/srclist.txt: Add glibc bugs 1231-1233.
19479
19480 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19481
19482         Fix problems reported by Sam Steingold in
19483         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
19484         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
19485         assumed that reg_errcode_t is a signed type, which is not
19486         necessarily true if _XOPEN_SOURCE is not defined.
19487         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
19488         since some compilers warn about it otherwise.
19489
19490 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19491
19492         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
19493         (init_word_char, create_initial_state, duplicate_node_closure):
19494         (fetch_token, peek_token_bracket, build_range_exp):
19495         (build_collating_symbol): Remove forward decls; no longer needed
19496         now that we use prototypes.
19497
19498         * lib/regcomp.c:
19499         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
19500         (re_compile_fastmap_iter, regcomp, regerror, regfree):
19501         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
19502         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
19503         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
19504         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
19505         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
19506         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
19507         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
19508         (build_range_exp, build_collating_symbol, parse_bracket_exp):
19509         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
19510         (build_charclass, build_charclass_op, fetch_number, create_tree):
19511         (create_token_tree, mark_opt_subexp, duplicate_tree):
19512         Use prototypes rather than old-style definitions.
19513
19514         * lib/regex_internal.c:
19515         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
19516         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
19517         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19518         (re_string_reconstruct, re_string_peek_byte_case):
19519         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
19520         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19521         (re_node_set_init_copy, re_node_set_add_intersect):
19522         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19523         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19524         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19525         (re_acquire_state, re_acquire_state_context, register_state):
19526         (create_ci_newstate, create_cd_newstate, free_state):
19527         Likewise.
19528         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
19529         re_search_2):
19530         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
19531         (re_search_internal, prune_impossible_nodes):
19532         (acquire_init_state_context, check_matching, static):
19533         (check_halt_node_context, check_halt_state_context, proceed_next_node):
19534         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
19535         (update_regs, sift_states_backward, build_sifted_states):
19536         (clean_state_log_if_needed, merge_state_array):
19537         (update_cur_sifted_state, add_epsilon_src_nodes):
19538         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
19539         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
19540         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
19541         (find_recover_state, check_subexp_matching_top, transit_state_mb):
19542         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
19543         (check_arrival, check_arrival_add_next_nodes):
19544         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19545         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19546         (check_node_accept_bytes, check_node_accept, extend_buffers):
19547         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
19548         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
19549         (sift_ctx_init):
19550         Likewise.
19551
19552         * lib/regex_internal.h:
19553         (re_string_allocate, re_string_construct, re_string_reconstruct):
19554         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
19555         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
19556         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
19557         (re_string_context_at, re_string_peek_byte_case):
19558         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
19559         is defined, since we now use prototypes always.
19560
19561         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
19562         C89 or better.  All uses removed.
19563
19564 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19565
19566         * config/srclist.txt: Add glibc bugs 1220-1227.
19567
19568 2005-08-20  Jim Meyering  <jim@meyering.net>
19569
19570         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
19571         of unused local, dfa.
19572
19573 2005-08-20  Bruno Haible  <bruno@clisp.org>
19574
19575         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
19576
19577 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19578
19579         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
19580         (re_node_set_insert_last, re_dfa_add_node):
19581         Rename local variables to avoid GCC shadowing warnings.
19582
19583 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19584
19585         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
19586         [defined lint]: Suppress bogus uninitialized-variable warnings.
19587
19588         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
19589         and let the caller return REG_ESPACE if out of space.  This
19590         removes an uninitialied-variable warning with GCC 4.0.1, and also
19591         avoids taking the address of a local variable.  All callers
19592         changed.
19593
19594 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19595
19596         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
19597         $LIBCSRC/posix/regexec.c.
19598         Add glibc bug 1217 for regcomp.c.
19599
19600 2005-08-19  Jim Meyering  <jim@meyering.net>
19601
19602         * lib/regexec.c (proceed_next_node): Redo local variables to
19603         avoid GCC shadowing warnings.
19604
19605 2005-08-18  Bruno Haible  <bruno@clisp.org>
19606
19607         * lib/strstr.c (strstr): Fix return value in multibyte case.
19608         * lib/strcasestr.c (strcasestr): Likewise.
19609
19610 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19611
19612         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
19613
19614 2005-08-17  Jim Meyering  <jim@meyering.net>
19615
19616         Make the %s format (seconds since the epoch) work for a negative
19617         number and when used with a zero-padded field width, e.g. %015s.
19618
19619         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
19620         label so that it precedes the code to set `digits'.  Otherwise,
19621         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
19622         print `00-22'.  Now, it prints `-0022', as it should.
19623
19624 2005-08-17  Bruno Haible  <bruno@clisp.org>
19625
19626         * modules/strstr (Files): Add m4/mbrtowc.m4.
19627         (Depends-on): Add mbuiter.
19628
19629 2005-08-17  Bruno Haible  <bruno@clisp.org>
19630
19631         * modules/strcasestr: New file.
19632         * MODULES.html.sh (String handling, based on ANSI C 89): Add
19633         strcasestr.
19634
19635 2005-08-17  Bruno Haible  <bruno@clisp.org>
19636
19637         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
19638
19639 2005-08-17  Bruno Haible  <bruno@clisp.org>
19640
19641         * modules/mbuiter: New file.
19642         * MODULES.html.sh (Extended multibyte and wide character utilities):
19643         Add mbuiter.
19644
19645 2005-08-17  Bruno Haible  <bruno@clisp.org>
19646
19647         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
19648         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
19649
19650 2005-08-17  Bruno Haible  <bruno@clisp.org>
19651
19652         * m4/strcasestr.m4: New file.
19653
19654 2005-08-17  Bruno Haible  <bruno@clisp.org>
19655
19656         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
19657         * lib/strstr.c: Completely rewritten, with multibyte locale support.
19658
19659 2005-08-17  Bruno Haible  <bruno@clisp.org>
19660
19661         * lib/strcasestr.h: New file.
19662         * lib/strcasestr.c: New file.
19663
19664 2005-08-17  Bruno Haible  <bruno@clisp.org>
19665
19666         * lib/strcasecmp.c: Use mbuiter.h.
19667
19668 2005-08-17  Bruno Haible  <bruno@clisp.org>
19669
19670         * lib/mbuiter.h: New file.
19671
19672 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19673
19674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
19675         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
19676         and gl_GETOPT are both invoked via different paths (as happens
19677         with GNU tar CVS because it uses both argp and getopt), the former
19678         wins.
19679
19680 2005-08-16  Bruno Haible  <bruno@clisp.org>
19681
19682         * modules/tls: New file.
19683         * MODULES.html.sh (Multithreading): Add tls.
19684
19685 2005-08-16  Bruno Haible  <bruno@clisp.org>
19686
19687         * modules/strnlen1: New file.
19688         * MODULES.html.sh (String handling): Add strnlen1.
19689
19690 2005-08-16  Bruno Haible  <bruno@clisp.org>
19691
19692         * modules/strcase (Files): Add m4/mbrtowc.m4.
19693         (Depends-on): Add strnlen1, mbchar.
19694
19695 2005-08-16  Bruno Haible  <bruno@clisp.org>
19696
19697         * modules/mbiter: New file.
19698         * MODULES.html.sh (Extended multibyte and wide character utilities):
19699         Add mbiter.
19700
19701 2005-08-16  Bruno Haible  <bruno@clisp.org>
19702
19703         * modules/mbfile: New file.
19704         * MODULES.html.sh (Extended multibyte and wide character utilities):
19705         Add mbfile.
19706
19707 2005-08-16  Bruno Haible  <bruno@clisp.org>
19708
19709         * modules/mbchar: New file.
19710         * MODULES.html.sh (Extended multibyte and wide character utilities):
19711         New section.
19712
19713 2005-08-16  Bruno Haible  <bruno@clisp.org>
19714
19715         * m4/tls.m4: New file, from GNU gettext.
19716
19717 2005-08-16  Bruno Haible  <bruno@clisp.org>
19718
19719         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
19720         always.
19721         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
19722
19723 2005-08-16  Bruno Haible  <bruno@clisp.org>
19724
19725         * m4/mbiter.m4: New file.
19726
19727 2005-08-16  Bruno Haible  <bruno@clisp.org>
19728
19729         * m4/mbfile.m4: New file.
19730
19731 2005-08-16  Bruno Haible  <bruno@clisp.org>
19732
19733         * m4/mbchar.m4: New file.
19734
19735 2005-08-16  Bruno Haible  <bruno@clisp.org>
19736
19737         * lib/tls.h: New file, from GNU gettext.
19738         * lib/tls.c: New file, from GNU gettext.
19739
19740 2005-08-16  Bruno Haible  <bruno@clisp.org>
19741
19742         * lib/strnlen1.h: New file.
19743         * lib/strnlen1.c: New file.
19744
19745 2005-08-16  Bruno Haible  <bruno@clisp.org>
19746
19747         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
19748         (mbi_init): Update.
19749         (mbi_avail, mbi_advance): Let the iteration end before the terminating
19750         NUL byte, not after it.
19751
19752 2005-08-16  Bruno Haible  <bruno@clisp.org>
19753
19754         * lib/strcase.h (strcasecmp): Add note in comments.
19755         * lib/strncasecmp.c: Use code from strcasecmp.c.
19756         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
19757         (strcasecmp): Work correctly in multibyte locales.
19758
19759 2005-08-16  Bruno Haible  <bruno@clisp.org>
19760
19761         * lib/mbiter.h: New file.
19762
19763 2005-08-16  Bruno Haible  <bruno@clisp.org>
19764
19765         * lib/mbfile.h: New file.
19766
19767 2005-08-16  Bruno Haible  <bruno@clisp.org>
19768
19769         * lib/mbchar.h: New file.
19770         * lib/mbchar.c: New file.
19771
19772 2005-08-16  Bruno Haible  <bruno@clisp.org>
19773
19774         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
19775         the valid ones. Makes the comparison operations transitive:
19776         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
19777         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
19778
19779 2005-08-15  Simon Josefsson  <jas@extundo.com>
19780
19781         * modules/ssize_t (License): Change to 'unlimited'.
19782
19783         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
19784
19785 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
19788         Add comments for each pending glibc patch.
19789
19790 2005-08-15  Bruno Haible  <bruno@clisp.org>
19791
19792         * lib/regex.h (__restrict_arr): Don't define to __restrict if
19793         __cplusplus is defined.
19794
19795 2005-08-14  Jim Meyering  <jim@meyering.net>
19796
19797         Sync from coreutils.
19798
19799         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
19800         Use the hash-table-based cycle-detection code not just when
19801         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
19802         Reported by James Youngman in
19803         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
19804         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
19805         FTS_TIGHT_CYCLE_CHECK.
19806         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
19807         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
19808         once again.
19809         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
19810         * lib/fts.c (fd_safer): Remove decl.
19811         Include fcntl--.h rather than unistd-safer.h
19812         (fts_safe_changedir): Don't call fd_safer; no longer needed
19813         now that we include fcntl--.h.
19814
19815 2005-08-12  Simon Josefsson  <jas@extundo.com>
19816
19817         * modules/getndelim2: Use ssize_t module.
19818         * modules/getnline: Likewise.
19819         * modules/safe-read: Likewise.
19820         * modules/xreadlink: Likewise.
19821
19822         * modules/ssize_t: New file.
19823
19824 2005-08-12  Simon Josefsson  <jas@extundo.com>
19825
19826         * m4/readline.m4: Look for termcap, curses or ncurses if required.
19827
19828 2005-08-12  Simon Josefsson  <jas@extundo.com>
19829
19830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19831         ssize_t.
19832
19833 2005-08-12  Simon Josefsson  <jas@extundo.com>
19834
19835         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
19836         readline, getdelim and check_version.
19837         (Support for systems lacking ISO C 99: Sizes of integer types):
19838         Add size_max.
19839
19840 2005-08-12  Bruno Haible  <bruno@clisp.org>
19841
19842         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
19843
19844 2005-08-11  Simon Josefsson  <jas@extundo.com>
19845
19846         * modules/readline: New file.
19847
19848         * modules/strnlen (Files): Add strnlen.h.
19849
19850 2005-08-11  Simon Josefsson  <jas@extundo.com>
19851
19852         * m4/readline.m4: New file.
19853
19854 2005-08-11  Simon Josefsson  <jas@extundo.com>
19855
19856         * lib/readline.h, readline.c: New file.
19857
19858 2005-08-11  Simon Josefsson  <jas@extundo.com>
19859
19860         * doc/gnulib.texi (Initial import, Finishing touches): Mention
19861         gl_AVOID.
19862
19863 2005-08-11  Bruno Haible  <bruno@clisp.org>
19864
19865         * lib/strnlen.h (strnlen): Change parameter name to match comment.
19866
19867 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
19868
19869         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
19870
19871 2005-08-10  Simon Josefsson  <jas@extundo.com>
19872
19873         * tests/test-iconvme.c: New file.
19874
19875 2005-08-10  Simon Josefsson  <jas@extundo.com>
19876
19877         * m4/strnlen.m4: New file.
19878
19879         * m4/strndup.m4: Don't check for strnlen declaration, done in
19880         strnlen.m4.
19881
19882 2005-08-10  Simon Josefsson  <jas@extundo.com>
19883
19884         * lib/strndup.c: Use strnlen.h.
19885
19886         * lib/strnlen.h: New file.
19887
19888 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
19889
19890         * README: Typos.
19891
19892 2005-08-02  Simon Josefsson  <jas@extundo.com>
19893
19894         * modules/readline: New file.
19895
19896 2005-08-02  Simon Josefsson  <jas@extundo.com>
19897
19898         * modules/getdelim: New file.
19899
19900         * modules/getline: Rewrite, don't use getndelim2.
19901
19902 2005-08-02  Simon Josefsson  <jas@extundo.com>
19903
19904         * m4/getline.m4: Separate out getdelim stuff into separate module.
19905
19906         * m4/getdelim.m4: New file.
19907
19908 2005-08-02  Simon Josefsson  <jas@extundo.com>
19909
19910         * lib/getline.h, getline.c: Rewrite.
19911
19912         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
19913
19914 2005-07-31  Bruno Haible  <bruno@clisp.org>
19915
19916         * lib/lock.h (gl_lock_initializer): New macro.
19917         (gl_lock_define_initialized): Use it.
19918         (gl_rwlock_initializer): New macro.
19919         (gl_rwlock_define_initialized): Use it.
19920         (gl_recursive_lock_initializer): New macro.
19921         (gl_recursive_lock_define_initialized): Use it.
19922
19923 2005-07-30  Karl Berry  <karl@gnu.org>
19924
19925         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
19926         Report from Ben Pfaff, regarding getopt.
19927
19928 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19929
19930         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
19931         normal way.
19932         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
19933         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
19934         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
19935         (gl_GETOPT): Use the new macros.  Most of the implementation
19936         is moved to the new macros.  This is for programs like Emacs
19937         that don't want all the functionality of gl_GETOPT.
19938
19939 2005-07-26  Bruno Haible  <bruno@clisp.org>
19940
19941         * m4/lock.m4: Update from GNU gettext.
19942
19943 2005-07-26  Bruno Haible  <bruno@clisp.org>
19944
19945         * lib/lock.h: Update from GNU gettext.
19946         * lib/lock.c: Update from GNU gettext.
19947
19948 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
19949
19950         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
19951         obsolescent AC_TRY_RUN.  Include the default includes files, for
19952         'exit'.
19953
19954 2005-07-24  Bruno Haible  <bruno@clisp.org>
19955
19956         * modules/visibility: New file.
19957         * MODULES.html.sh (Misc): Add visibility.
19958
19959 2005-07-24  Bruno Haible  <bruno@clisp.org>
19960
19961         * m4/visibility.m4: New file.
19962
19963 2005-07-24  Bruno Haible  <bruno@clisp.org>
19964
19965         * doc/visibility.texi: New file.
19966
19967 2005-07-22  Bruno Haible  <bruno@clisp.org>
19968
19969         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
19970         $(ALLOCA_H), redundant through BUILT_SOURCES.
19971         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
19972         redundant through BUILT_SOURCES.
19973         * modules/byteswap (Makefile.am): Remove explicit dependency on
19974         $(BYTESWAP_H), redundant through BUILT_SOURCES.
19975         * modules/fnmatch (Makefile.am): Remove explicit dependency on
19976         $(FNMATCH_H), redundant through BUILT_SOURCES.
19977         * modules/getopt (Makefile.am): Remove explicit dependency on
19978         $(GETOPT_H), redundant through BUILT_SOURCES.
19979         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
19980         redundant through BUILT_SOURCES.
19981         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
19982         redundant through BUILT_SOURCES.
19983         * modules/stdbool (Makefile.am): Remove explicit dependency on
19984         $(STDBOOL_H), redundant through BUILT_SOURCES.
19985         * modules/stdint (Makefile.am): Remove explicit dependency on
19986         $(STDINT_H), redundant through BUILT_SOURCES.
19987         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
19988         Remove explicit dependency on $(SYSEXITS_H).
19989         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
19990
19991 2005-07-18  Simon Josefsson  <jas@extundo.com>
19992
19993         * lib/check-version.c (check_version): Accept identical versions too.
19994
19995 2005-07-18  Bruno Haible  <bruno@clisp.org>
19996
19997         * modules/lock: New file.
19998         * MODULES.html.sh (Multithreading): New section.
19999
20000 2005-07-18  Bruno Haible  <bruno@clisp.org>
20001
20002         * m4/lock.m4: New file, from GNU gettext.
20003
20004 2005-07-18  Bruno Haible  <bruno@clisp.org>
20005
20006         * lib/lock.h: New file, from GNU gettext.
20007         * lib/lock.c: New file, from GNU gettext.
20008
20009 2005-07-18  Bruno Haible  <bruno@clisp.org>
20010
20011         * lib/lock.h (gl_once_t): New type.
20012         (gl_once_define, gl_once): New macros.
20013         * lib/lock.c (fresh_once): New variable.
20014         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
20015         functions.
20016
20017 2005-07-16  Simon Josefsson  <jas@extundo.com>
20018
20019         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
20020         workaround, suggested by Bruno.
20021
20022 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
20023
20024         * modules/xalloc (Depends-on): Add xalloc-die.
20025         * modules/xvasprintf (Depends-on): Add xalloc-die.
20026
20027 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
20028
20029         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
20030         with a minor change.
20031
20032 2005-07-15  Bruno Haible  <bruno@clisp.org>
20033
20034         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
20035         When using lib/poll.c, define poll as rpl_poll.
20036
20037 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
20038
20039         * modules/argp (Depends-on): Remove unlocked-io.
20040
20041 2005-07-14  Derek Price  <derek@ximbiot.com>
20042
20043         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
20044         for glob symlink bug.
20045
20046 2005-07-14  Bruno Haible  <bruno@clisp.org>
20047
20048         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
20049         Instead, test for *_unlocked function declarations directly.
20050
20051 2005-07-11  Simon Josefsson  <jas@extundo.com>
20052
20053         * modules/size_max: New file.
20054
20055         * modules/xsize: Depend on size_max module for size_max.m4.
20056
20057 2005-07-11  Simon Josefsson  <jas@extundo.com>
20058
20059         * lib/size_max.h: New file.
20060
20061 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
20062
20063         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
20064         copyright symbol and the year.
20065         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
20066         (version_etc_va): Use parameterized copyright notice.
20067         Reword to conform to the current GNU coding standards.
20068
20069 2005-07-11  Karl Berry  <karl@gnu.org>
20070
20071         * doc/gnulib.texi (Quoting): new node.
20072         (Initial import): more info, from Patrice.
20073
20074 2005-07-11  Bruno Haible  <bruno@clisp.org>
20075
20076         * gnulib-tool (func_usage): Document option --avoid.
20077         (Command line options): Handle --avoid.
20078         (func_acceptable): New function.
20079         (func_modules_transitive_closure): Use it.
20080
20081 2005-07-11  Bruno Haible  <bruno@clisp.org>
20082
20083         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
20084         Reported by Jim Meyering.
20085
20086 2005-07-10  Bruno Haible  <bruno@clisp.org>
20087
20088         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
20089         Needed when size_t is smaller than 'unsigned int'.
20090         Reported by Paul Eggert.
20091
20092 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20093
20094         * modules/argp (Depends-on): Add unlocked-io
20095
20096 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20097
20098         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
20099         block of defines.
20100
20101 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20102
20103         * config/srclist.txt: Comment out regcomp.c, since we have a porting
20104         fix now.
20105
20106 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
20107         and Paul Eggert  <eggert@cs.ucla.edu>
20108
20109         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
20110         in wint_t, not wchar_t.  Remove now-unnecessary cast.
20111
20112 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20113
20114         * modules/regex (Files): Add lib/regex_internal.c,
20115         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
20116         (Depends-on): Add extensions.
20117         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
20118
20119 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20120
20121         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
20122         pathconf.
20123         * m4/same.m4 (gl_SAME): Likewise.
20124         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
20125
20126         * m4/regex.m4: Adjust to new libc regex implementation.
20127         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
20128         all the .c and .h parts of (the new) regex.
20129         Quote the m4 stuff better.
20130         Check for RE_ICASE bug of old gnulib.
20131         Check for REG_STARTEND of recent libc.
20132         Rename local variables from jm_* to gl_*.
20133         Quote operand of "test -f".
20134         Say "recent enough" version of libc, not "version 2".
20135         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
20136         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
20137         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
20138         Remove check for btowc, isascii.
20139         Require AM_LANGINFO_CODESET.
20140
20141 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20142
20143         * lib/regex.c, regex.h: Sync from libc.
20144         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
20145         * lib/regexec.c:
20146         New files, synced from libc, except that regex_internal.h
20147         currently has a small porting fix.
20148
20149 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20150
20151         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
20152         regex_internal.c, regexec.c.
20153         Add regex_internal.h too, but as a comment, since the libc version
20154         is currently broken in gnulib mode.
20155
20156 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20157
20158         Support programs like Emacs that use gnulib but not gettext.
20159         * MODULES.html.sh (Internationalization functions): Add gettext-h.
20160         * modules/gettext-h: New file.
20161         * modules/gettext (Files): Remove lib/gettext.h.
20162         (Depends-on): Add gettext-h.
20163         (Makefile.am): Remove lib_SOURCES.
20164         * modules/argmatch, modules/c-stack, modules/closeout:
20165         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
20166         * modules/execute, modules/file-type, modules/getaddrinfo:
20167         * modules/getopt, modules/human, modules/javacomp:
20168         * modules/javaexec, modules/mkdir-p, modules/obstack:
20169         * modules/openat, modules/pagealign_alloc, modules/pipe:
20170         * modules/quotearg, modules/regex, modules/rpmatch:
20171         * modules/unicodeio, modules/userspec, modules/version-etc:
20172         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
20173         * modules/xsetenv:
20174         Depend on gettext-h, not gettext.
20175
20176 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20177
20178         * gnulib-tool (func_import): Add support for 'public domain' license.
20179         * modules/alloca, modules/atexit, modules/memmove:
20180         Now public domain, not GPL.
20181         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
20182         * modules/realloc, modules/strerror, modules/strtod:
20183         Now LGPL, not GPL.
20184
20185 2005-07-05  Bruno Haible  <bruno@clisp.org>
20186
20187         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
20188         autoconf CVS. Needed for mingw.
20189
20190 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20191
20192         Remove the dependency of the strftime module on the tzset module.
20193         * modules/strftime (Depends-on): Remove dependency on tzset.
20194
20195 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20196
20197         Remove the dependency of the strftime module on the tzset module.
20198         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
20199         gl_FUNC_TZSET_CLOBBER.
20200
20201 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20202
20203         Remove the dependency of the strftime module on the tzset module.
20204         * lib/strftime.c (my_strftime)
20205         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
20206         Copy the input structure, to work around some of the bug with
20207         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
20208         Solaris releases, you should also use the tzset module, but we won't
20209         require it as a dependency any more since we don't want LGPLed code
20210         to depend on GPLed code.
20211
20212 2005-07-02  Jim Meyering  <jim@meyering.net>
20213
20214         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
20215         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
20216         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
20217         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
20218
20219 2005-07-02  Jim Meyering  <jim@meyering.net>
20220
20221         * lib/backupfile.c (backup_args): Change a `0' to NULL.
20222
20223 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20224
20225         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
20226         declares only 'struct timespec;' (!).
20227
20228 2005-07-01  Jim Meyering  <jim@meyering.net>
20229
20230         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
20231         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
20232         * lib/save-cwd.c, tempname.c:
20233         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
20234         and don't include <sys/file.h>).
20235
20236 2005-06-29  Jim Meyering  <jim@meyering.net>
20237
20238         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
20239         type name.  Use the variable name instead.
20240         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
20241         Likewise.
20242
20243 2005-06-28  Simon Josefsson  <jas@extundo.com>
20244
20245         * modules/check-version (Files): Add check-version.m4.
20246
20247 2005-06-28  Simon Josefsson  <jas@extundo.com>
20248
20249         * m4/check-version.m4: New file, suggested by Jim Meyering
20250         <jim@meyering.net>.
20251
20252 2005-06-28  Simon Josefsson  <jas@extundo.com>
20253
20254         * lib/check-version.h, lib/check-version.c: New files.
20255
20256 2005-06-28  Simon Josefsson  <jas@extundo.com>
20257
20258         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
20259         collision with global variable.  Better indentation.  Don't
20260         increment buffer pointer beyond buffer end.  Based on comments
20261         from Paul Eggert <eggert@cs.ucla.edu>.
20262
20263         * lib/base64.h: Indent.
20264
20265 2005-06-28  Simon Josefsson  <jas@extundo.com>
20266
20267         * doc/gnulib.texi (Library version handling): New section.
20268
20269 2005-06-28  Jim Meyering  <jim@meyering.net>
20270
20271         * check-module (find_included_lib_files): Hard-code another
20272         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
20273         but modules/fts-lgpl (correctly) does not list those files.
20274
20275         * modules/canonicalize (Files): Add lib/pathmax.h.
20276
20277 2005-06-25  Simon Josefsson  <jas@extundo.com>
20278
20279         * modules/check-version: New file.
20280
20281 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
20282
20283         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
20284         initializer of struct addrinfo, as an indication that we don't
20285         care how many members the structure has.
20286
20287 2005-06-24  Derek Price  <derek@ximbiot.com>
20288         and Bruno Haible  <bruno@clisp.org>
20289
20290         Remove stat module & update lstat.
20291         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
20292         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20293         * m4/stat.m4: Remove this file.
20294
20295 2005-06-24  Derek Price  <derek@ximbiot.com>
20296         and Bruno Haible  <bruno@clisp.org>
20297
20298         Remove stat module & update lstat.
20299         * lib/stat.c: Remove this file...
20300         (slash_aware_lstat): ...moving this content and its support...
20301         * lib/lstat.c (rpl_lstat): ...into here.
20302         * lib/lstat.h: New file.
20303
20304 2005-06-24  Derek Price  <derek@ximbiot.com>
20305         and Bruno Haible  <bruno@clisp.org>
20306
20307         Remove stat module & update lstat.
20308         * config/srclist.txt (libc sources): Remove stat.
20309
20310 2005-06-24  Derek Price  <derek@ximbiot.com>
20311         and Bruno Haible  <bruno@clisp.org>
20312
20313         Remove stat module & update lstat.
20314         * MODULES.html.sh (stat): Remove.
20315         * MODULES.html: Regenerated.
20316         * modules/lstat (Description): Correct function name.
20317         (Files): Add "lstat.h".
20318         (Depends-on): Remove stat, add xalloc, stat-macros.
20319         * modules/stat: Remove this file.
20320         (Include): Add "lstat.h", remove <sys/stat.h>.
20321
20322 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
20323
20324         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
20325         (ranged_convert): Don't save conversion in a temporary struct.
20326         This causes a warning with GCC 4.0.0, and anyway in the typical
20327         case it's not worth the extra 100 bytes or so of code.
20328         (ranged_convert, __mktime_internal): When calling a function via a
20329         pointer P, use P () rather than (*P) (), as we now assume C89 or
20330         better.
20331
20332 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20333
20334         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
20335         "who -r" failed to give output.  Problem reported by Tim Waugh.
20336
20337         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
20338         (xcalloc): Use it to avoid needless tests.
20339         Problem reported by Jim Meyering.
20340
20341 2005-06-20  Derek Price  <derek@ximbiot.com>
20342
20343         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
20344         unnecessary for Autoconfs > 2.59c.
20345
20346 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20347
20348         * lib/argp.h (__option_is_short): Check upper limit of
20349         __key. Isprint() requires its argument to have the value
20350         of an unsigned char or EOF.
20351
20352 2005-06-16  Jim Meyering  <jim@meyering.net>
20353
20354         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
20355         when either N or S is zero.
20356
20357 2005-06-16  Derek Price  <derek@ximbiot.com>
20358
20359         * m4/bison.m4: Declare YACC & YFLAGS precious.
20360
20361 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
20362
20363         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
20364         multibyte string or pattern, fall back on unibyte matching.
20365         Problem reported by James Youngman.
20366
20367 2005-06-08  Bruno Haible  <bruno@clisp.org>
20368
20369         * modules/csharpcomp: New file.
20370         * MODULES.html.sh (C#): Add csharpcomp.
20371
20372 2005-06-08  Bruno Haible  <bruno@clisp.org>
20373
20374         * m4/csharpcomp.m4: New file, from GNU gettext.
20375
20376 2005-06-08  Bruno Haible  <bruno@clisp.org>
20377
20378         * lib/csharpcomp.h: New file, from GNU gettext.
20379         * lib/csharpcomp.c: New file, from GNU gettext.
20380         * lib/csharpcomp.sh.in: New file, from GNU gettext.
20381
20382 2005-06-08  Bruno Haible  <bruno@clisp.org>
20383
20384         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
20385         warning on mingw.
20386
20387 2005-06-07  Derek Price  <derek@ximbiot.com>
20388
20389         Sync from CVS.
20390         * lib/glob_.h: Indent nested #ifdef.
20391
20392 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20393
20394         Sync from coreutils.
20395         Use "file name" when talking about file names, instead of "filename"
20396         or "path", as per the GNU coding standards.
20397         * lib/mkdir-p.c: Renamed from makepath.c.
20398         (make_dir_parents): Renamed from make_path.  All callers changed.
20399         * lib/mkdir-p.h: Likewise.  All includers changed.
20400         * lib/filenamecat.c: Renamed from path-concat.c.
20401         (file_name_concat): Renamed from path_concat.  All callers changed.
20402         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
20403         * lib/filenamecat.h: Likewise.  All includers changed.
20404         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
20405         in comments or local variable names.
20406         * lib/basename.c: Likewise.
20407         * lib/canonicalize.c, canonicalize.h: Likewise.
20408         * lib/dirname.c, dirname.h: Likewise.
20409         * lib/euidaccess.c: Likewise.
20410         * lib/exclude.c: Likewise
20411         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
20412         * lib/fsusage.c, fsuage.h: Likewise.
20413         * lib/fts.c, fts_.h: Likewise.
20414         * lib/getcwd.c: Likewise.
20415         * lib/getloadavg.c: Likewise.
20416         * lib/mkstemp.c: Likewise.
20417         * lib/mountlist.c, mountlist.h: Likewise.
20418         * lib/openat.c, openat.h: Likewise.
20419         * lib/readlink-stub.c: Likewise.
20420         * lib/readutmp.c, readutmp.h: Likewise.
20421         * lib/rename.c: Likewise.
20422         * lib/rmdir.c: Likewise.
20423         * lib/same.c: Likewise.
20424         * lib/savedir.c: Likewise.
20425         * lib/stripslash.c: Likewise.
20426         * lib/tempname.c: Likewise.
20427         * lib/xreadlink.c: Likewise.
20428         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
20429         All uses changed.
20430         * lib/exclude.h: Likewise.
20431
20432         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
20433         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20434         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
20435         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20436         * lib/pathmax.h: Include <limits.h> unconditionally, since other
20437         files have been getting away with it for years (MORE/BSD 4.3
20438         is extinct now).
20439         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
20440         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20441
20442         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
20443         Define to 256, not 255, as per modern POSIX.
20444
20445 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20446
20447         Sync from coreutils.
20448         Use "file name" when talking about file names, instead of "filename"
20449         or "path", as per the GNU coding standards.
20450         * MODULES.html.sh: mkdir-p renamed from makepath.
20451         filenamecat renamed from path-concat.
20452         * modules/filenamecat: Renamed from modules/path-concat.
20453         (Files): filenamecat.h and filenamecat.c renamed from
20454         path-concat.h and path-concat.c.
20455         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
20456         (Include): filenamecat.h, not path-concat.h.
20457         * modules/mkdir-p: Renamed from modules/makepath.
20458         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
20459         makepath.c.
20460         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
20461         (Include): mkdir-p.h, not makepath.h.
20462
20463 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20464
20465         Sync from coreutils.
20466         * m4/mkdir-p.m4: Renamed from makepath.m4.
20467         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
20468         Rename files from makepath.c to mkdir-p.c, and from
20469         makepath.h to mkdir-p.h.
20470         * m4/filenamecat.m4: Renamed from path-concat.m4.
20471         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
20472         Rename files from path-concat.c to filenamecat.c,
20473         and from path-concat.h to filenamecat.h.
20474         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
20475         "file name" in local variables or comments.
20476         * m4/rename.m4: Likewise.
20477
20478 2005-06-01  Bruno Haible  <bruno@clisp.org>
20479
20480         * modules/csharpexec: New file.
20481         * MODULES.html.sh (C#): New section.
20482
20483 2005-06-01  Bruno Haible  <bruno@clisp.org>
20484
20485         * m4/csharp.m4: New file, from GNU gettext.
20486         * m4/csharpexec.m4: New file, from GNU gettext.
20487
20488 2005-06-01  Bruno Haible  <bruno@clisp.org>
20489
20490         * lib/csharpexec.h: New file, from GNU gettext.
20491         * lib/csharpexec.c: New file, from GNU gettext.
20492         * lib/csharpexec.sh.in: New file, from GNU gettext.
20493
20494 2005-05-31  Derek Price  <derek@ximbiot.com>
20495             Paul Eggert  <eggert@cs.ucla.edu>
20496
20497         Sync from cvs.
20498         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20499
20500 2005-05-31  Derek Price  <derek@ximbiot.com>
20501             Paul Eggert  <eggert@cs.ucla.edu>
20502
20503         Sync from cvs.
20504         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20505
20506 2005-05-29  Derek Price  <derek@ximbiot.com>
20507
20508         * config/srclist.txt (glob_.h, glob.c): Add these files.
20509
20510 2005-05-29  Derek Price  <derek@ximbiot.com>
20511
20512         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
20513         * modules/glob: New file.
20514         * modules/getlogin_r: Add link to POSIX spec in description.
20515
20516 2005-05-29  Derek Price  <derek@ximbiot.com>
20517             Paul Eggert  <eggert@cs.ucla.edu>
20518
20519         * m4/glob.m4: New file.
20520
20521 2005-05-29  Derek Price  <derek@ximbiot.com>
20522             Paul Eggert  <eggert@cs.ucla.edu>
20523
20524         * lib/glob_.h, lib/glob.c: New files.
20525
20526 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20527
20528         * modules/fts (Files): Remove m4/inttypes-pri.m4.
20529         * modules/fts-lgpl (Depends-on): Remove gettext.
20530
20531 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20532
20533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
20534         and don't require gt_INTTYPES_PRI.
20535
20536 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20537
20538         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
20539
20540         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
20541         the configuration hassle isn't worth it.
20542         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
20543         (LONGEST_MODIFIER, PRIuMAX): Remove.
20544
20545 2005-05-27  Bruno Haible  <bruno@clisp.org>
20546
20547         * lib/getlogin_r.h: Remove second include of <stddef.h>.
20548
20549 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
20550
20551         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
20552         _POSIX_PTHREAD_SEMANTICS for Solaris.
20553
20554 2005-05-25  Derek Price  <derek@ximbiot.com>
20555
20556         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
20557
20558 2005-05-25  Derek Price  <derek@ximbiot.com>
20559             Paul Eggert  <eggert@cs.ucla.edu>
20560
20561         * modules/getlogin_r, m4/getlogin_r.m4: New files.
20562         * lib/getlogin_r.c, getlogin_r.h: New files.
20563
20564 2005-05-25  Bruno Haible  <bruno@clisp.org>
20565             Derek Price  <derek@ximbiot.com>
20566
20567         * lib/getlogin_r.h: Simplify API documentation.
20568
20569 2005-05-23  Derek Price  <derek@ximbiot.com>
20570
20571         * modules/minmax (Files): Add m4/minmax.m4.
20572         (configure.ac): Add gl_MINMAX.
20573
20574 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20575
20576         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
20577         so that unistd-safer.h (GPL'ed code) need not be included.
20578
20579 2005-05-22  Bruno Haible  <bruno@clisp.org>
20580
20581         * m4/minmax.m4: New file.
20582         Based on a patch by Derek Price <derek@ximbiot.com>.
20583
20584 2005-05-22  Bruno Haible  <bruno@clisp.org>
20585
20586         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
20587         (INT64_MIN): Fix definition.
20588         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
20589
20590         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
20591         NEED_SIGNED_INT_TYPES.
20592
20593         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
20594         HAVE_SYSTEM_INTTYPES.
20595
20596 2005-05-22  Bruno Haible  <bruno@clisp.org>
20597
20598         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
20599         Also include <sys/param.h> if it defines MIN, MAX.
20600         Based on a patch by Derek Price <derek@ximbiot.com>.
20601
20602 2005-05-21  Jim Meyering  <jim@meyering.net>
20603
20604         * modules/fts (Files): Add m4/inttypes-pri.m4.
20605         (Depends-on): Add lstat and remove gettext.  Alphabetize.
20606
20607 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20608
20609         New fts module.
20610         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
20611         (setup_dir, free_dir): New functions.
20612         (enter_dir, leave_dir): Define trivial
20613         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
20614         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
20615         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
20616         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
20617         Move to fts-cycle.c.
20618         (fts_open): Use setup_dir.
20619         (fts_close): Use free_dir.
20620         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
20621         This adds a label and some gotos, but the alternatives were messier.
20622         Check for memory allocation failure when entering a dir.
20623         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
20624         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
20625         (FTS): New member fts_cycle, that is a union that contains the
20626         old active_dir_ht and cycle_state.  All uses changed to mention
20627         fts_cycle.ht and fts_cycle.state.
20628         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
20629         fts.c, with the following changes:
20630         (setup_dir, free_dir): New functions.
20631         (enter_dir): Now returns bool.  Return true if successful, false
20632         if memory exhausted.  All callers changed.
20633         Do not bother partly cleaning up on
20634         memory allocation failure; that is free_dir's job.
20635         However, free ad if hash_insert fails, to avoid memory leak.
20636         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
20637         fts->fts_options to see which union member to use.
20638
20639 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20640
20641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
20642         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
20643
20644 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20645
20646         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
20647
20648 2005-05-20  Jim Meyering  <jim@meyering.net>
20649
20650         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
20651         Now a macro, to pacify GCC.
20652
20653 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
20654
20655         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
20656         of -1.
20657
20658 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
20659
20660         * lib/chown.c (rpl_chown): Return -1 on failure.
20661
20662 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20663
20664         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
20665         Don't check for stddef.h.
20666         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
20667         don't use its results.
20668         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
20669         since we include them unconditionally.  Don't require
20670         AM_STDBOOL_H, since stdbool is a prerequisite.
20671         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
20672         since we assume C89 or better.
20673         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
20674         as we don't use their results.
20675         Don't check for fchdir, memmove, memset, strrchr, as we use
20676         them unconditionally.
20677         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
20678         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
20679
20680 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20681
20682         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
20683         Include <stddef.h> unconditionally, since we assume C89 now.
20684         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
20685         * lib/fts.c: Include fts_.h first, to check interface.
20686         Do not include intprops.h; no longer needed.
20687         Include cycle-check.h and hash.h, since fts_.h no longer does.
20688         Remove unnecessary casts of closedir to void.
20689         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
20690         decide whether to decrement nlinks.
20691         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
20692         (FTS): Use struct hash_table * instead of Hash_table, so that
20693         we no longer need to include hash.h here.
20694
20695 2005-05-18  Jim Meyering  <jim@meyering.net>
20696
20697         * modules/dirfd (License): Change to LGPL.  Most of the code
20698         is already in the public domain.
20699
20700 2005-05-18  Jim Meyering  <jim@meyering.net>
20701
20702         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
20703         Reported by Yoann Vandoorselaere.
20704
20705 2005-05-17  Jim Meyering  <jim@meyering.net>
20706
20707         * m4/fts.m4: New file, from coreutils.
20708
20709 2005-05-17  Jim Meyering  <jim@meyering.net>
20710
20711         * lib/fts.c, lib/fts_.h: New files, from coreutils.
20712
20713 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20714
20715         Sync from coreutils.
20716         * m4/unlinkdir.m4: New file.
20717
20718 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20719
20720         Sync from coreutils.
20721         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
20722         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
20723         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
20724         White space changes only.
20725         * lib/makepath.c (make_path): Port to hosts where leading "//" is
20726         special.
20727         * lib/yesno.c: Include getline.h, not ctype.h.
20728         (yesno): Don't remove leading white space; POSIX doesn't allow it.
20729         Use getline to remove arbitrary restriction on response length.
20730
20731 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20732
20733         * config/srclist-update: Spell out "Street" in FSF postal
20734         mail address; this is the style the FSF seems to prefer.
20735
20736         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
20737         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
20738         this updates FSF postal mail address.
20739
20740         Sync from coreutils.
20741         * modules/unlinkdir: New file.
20742         * modules/yesno (Depends-on): Add getline.
20743         * MODULES.html.sh (File system functions): Add unlinkdir.
20744
20745 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20746
20747         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
20748         lib/strsep.h:
20749         Change the initial comment to refer to GPL, not LGPL.
20750         gnulib-tool will change it to LGPL as needed.
20751
20752         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
20753         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
20754         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
20755         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
20756         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
20757         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
20758         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
20759         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
20760         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
20761         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
20762         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
20763         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
20764         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
20765         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
20766         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
20767         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
20768         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
20769         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
20770         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
20771         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
20772         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
20773         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
20774         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
20775         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
20776         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
20777         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
20778         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
20779         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
20780         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
20781         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
20782         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
20783         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
20784         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
20785         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
20786         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
20787         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
20788         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
20789         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
20790         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
20791         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
20792         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
20793         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
20794         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
20795         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
20796         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
20797         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
20798         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
20799         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
20800         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
20801         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
20802         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
20803         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
20804         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
20805         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
20806         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
20807         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
20808         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
20809         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
20810         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
20811         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
20812         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
20813         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
20814         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
20815         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
20816         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
20817         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
20818         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
20819         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
20820         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
20821         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
20822         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
20823         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
20824         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
20825         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
20826         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
20827         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
20828         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
20829         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
20830         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
20831         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
20832         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
20833         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
20834         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
20835         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
20836         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
20837         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
20838         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
20839         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
20840         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
20841         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
20842         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
20843         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
20844         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
20845         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
20846         lib/yesno.c, lib/yesno.h:
20847         Update FSF postal mail address.
20848
20849 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20850
20851         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
20852         tests/test-memmem.c, tests/test-stpncpy.c:
20853         Update FSF postal mail address.
20854
20855 2005-05-13  Bruno Haible  <bruno@clisp.org>
20856
20857         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
20858         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
20859         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
20860         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
20861         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
20862         Add support for 64-bit integers in the MSVC compiler.
20863
20864 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20865
20866         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
20867
20868 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
20869
20870         * gnulib-tool (func_import): Sort and uniquify recommended includes.
20871
20872 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20873
20874         * doc/getdate.texi (General date syntax): Don't say that date
20875         date --iso-8601=ns generates acceptable dates; it doesn't yet.
20876         Problem reported by Nic Ferrier.
20877
20878 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20879
20880         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
20881         specified in ai_socktype. Fix invalid ai_protocol
20882         check. ai_protocol is usually set to 0 or depending on
20883         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
20884         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
20885         ai_socktype / ai_protocol in the returned addrinfo structure.
20886
20887 2005-05-10  Simon Josefsson  <jas@extundo.com>
20888
20889         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
20890         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20891
20892 2005-05-10  Karl Berry  <karl@gnu.org>
20893
20894         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
20895         (from http://www.gnu.org/licenses).
20896         * doc/COPYING.LIB: also rename to COPYING.LESSER.
20897         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
20898         fdl.texi suffices.
20899
20900 2005-05-10  Karl Berry  <karl@gnu.org>
20901
20902         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
20903         (COPYING.DOC): remove.
20904
20905         * config/srclist-update: new FSF address.
20906
20907 2005-05-10  Derek Price  <derek@ximbiot.com>
20908
20909         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
20910         possible.
20911
20912 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20913             Bruno Haible  <bruno@clisp.org>
20914
20915         * modules/inet_ntop: New file.
20916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20917         inet_ntop.
20918
20919 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20920             Bruno Haible  <bruno@clisp.org>
20921
20922         * m4/inet_ntop.m4: New file.
20923
20924 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20925             Bruno Haible  <bruno@clisp.org>
20926
20927         * lib/inet_ntop.h: New file.
20928         * lib/inet_ntop.c: New file, from glibc with modifications.
20929
20930 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
20931
20932         * modules/time_r (License): Change to LGPL.
20933         * modules/extensions (License): Change to LGPL.  Actually,
20934         the license is more permissive than that, but currently gnulib-tool
20935         doesn't know how to handle more-permissive licenses.
20936
20937         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
20938         Problem reported by Dave Love.
20939
20940 2005-05-08  Jim Meyering  <jim@meyering.net>
20941
20942         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
20943         blank.
20944
20945 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20946
20947         * modules/argmatch (Depends-on): Add stdbool.
20948         * modules/backupfile (Depends-on): Likewise.
20949         * modules/chdir-long (Depends-on): Likewise.
20950         * modules/closeout (Depends-on): Likewise.
20951         * modules/cycle-check (Depends-on): Likewise.
20952         * modules/dirname (Depends-on): Likewise.
20953         * modules/fnmatch (Depends-on): Likewise.
20954         * modules/fsusage (Depends-on): Likewise.
20955         * modules/fwriteerror (Depends-on): Likewise.
20956         * modules/getcwd (Depends-on): Likewise.
20957         * modules/getloadavg (Depends-on): Likewise.
20958         * modules/hard-locale (Depends-on): Likewise.
20959         * modules/makepath (Depends-on): Likewise.
20960         * modules/mountlist (Depends-on): Likewise.
20961         * modules/nanosleep (Depends-on): Likewise.
20962         * modules/posixtm (Depends-on): Likewise.
20963         * modules/quotearg (Depends-on): Likewise.
20964         * modules/readtokens (Depends-on): Likewise.
20965         * modules/readtokens0 (Depends-on): Likewise.
20966         * modules/readutmp (Depends-on): Likewise.
20967         * modules/save-cwd (Depends-on): Likewise.
20968         * modules/strftime (Depends-on): Likewise.
20969         * modules/userspec (Depends-on): Likewise.
20970         * modules/utimecmp (Depends-on): Likewise.
20971         * modules/xgetcwd (Depends-on): Likewise.
20972         * modules/xnanosleep (Depends-on): Likewise.
20973         * modules/xstrtod (Depends-on): Likewise.
20974         * modules/yesno (Depends-on): Likewise.
20975
20976 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20977
20978         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
20979         needless checks.
20980
20981 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20982
20983         Merge from coreutils.  Among other things,
20984         add bulletproofing for cases where stdin, stdout, or stderr are closed.
20985         * lib/fd-safer.c: New file.
20986         * lib/fcntl-safer.h, open-safer.c: Remove.
20987         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
20988         * lib/dup-safer.c: Include unistd-safer.h first.
20989         Don't include errno.h.
20990         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
20991         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
20992         * lib/file-type.c: Rely on file-type.h change.
20993         * lib/getloadavg.c: Include unistd-safer.h.
20994         (getloadavg): Use safer open.
20995         * lib/getusershell.c: Include "stdio-safer.h".
20996         (getusershell): Use safer fopen.
20997         * lib/long-options.c (long_options): Use NULL rather than 0.
20998         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
20999         'free'.
21000         * lib/modechange.c: Likewise.
21001         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
21002         (MODE_DONE): New constant.
21003         (struct mode_change): Remove 'next' member.
21004         (make_node_op_equals): New function; like the old one of the
21005         same name, except it allocates an array.
21006         (mode_compile, mode_create_from_ref): Use it.
21007         (mode_compile): Allocate result as an array, not a linked list.
21008         Parse octal string ourself, so that we catch mistakes like "+0".
21009         (mode_adjust): Arg is an array, not a linked list.
21010         * lib/modechange.c: Include stat-macros.h, xalloc.h.
21011         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
21012         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
21013         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
21014         Remove.  This is now stat-macros.h's job.
21015         (talloc): Remove.  All callers replaced by xalloc, so that
21016         our invokers don't have to worry about reporting memory failures.
21017         (make_node_op_equals): Remove.
21018         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
21019         New constants.
21020         (struct mode_change): Moved here from modechange.h.
21021         (mode_append_entry): Remove.
21022         (mode_compile): Remove MASKED_OPS arg, since it encouraged
21023         apps to have incorrect behavior.  Use simpler algorithm for head
21024         and tail.  Don't futz with umask; that's now the job of mode_adjust.
21025         Detect more invalid usages rather than having somewhat-random behavior.
21026         Don't insert an "a=" action, as that leads to incorrect behavior.
21027         (mode_compile, mode_create_from_ref): Return NULL on error instead
21028         of an enum, since now there's only one way to have an error.  All
21029         callers changed.
21030         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
21031         at the correct time.  Simplify calculation of "+u" and its ilk.
21032         Don't mishandle "+X".
21033         (mode_free): Remove "register" and localize decls.
21034         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
21035         (struct mode_change): Move to modechange.c; callers don't
21036         need to see this stuff.
21037         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
21038         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
21039         (mode_change, mode_adjust): Reflect the new signatures noted above.
21040         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
21041         that might redefine system include files.
21042         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
21043         (my_usleep): Use NULL rather than (void *) 0.
21044         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
21045         Use siginterrupt to specify that system calls should be interrupted.
21046         (rpl_nanosleep): Move initialization of suspended closer to call of
21047         my_usleep.
21048         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
21049         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
21050         (desirable_utmp_entry): New function.
21051         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
21052         using x2nrealloc, to simplify logic.
21053         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
21054         size calculation.  Do not assume utmp file is a regular file.
21055         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
21056         (READ_UTMP_CHECK_PIDS): New constant.
21057         * lib/save-cwd.c: Include unistd-safer.h.
21058         (save_cwd): Use fd_safer.
21059         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
21060         [!_LIBC] Include "stat-macros.h" instead.
21061         * lib/unistd-safer.h (fd_safer): New decl.
21062
21063 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21064
21065         * modules/getloadavg (Depends-on): Add unistd-safer.
21066         * modules/getusershell (Depends-on): Add stdio-safer.
21067         * modules/lstat (Depends-on): Remove xalloc.
21068         * modules/mkstemp (Depends-on): Add stat-macros.
21069         * modules/modechange (Depends-on): Remove xstrtol.
21070         Add stat-macros, xalloc.
21071         * modules/save-cwd (Depends-on): Add unistd-safer.
21072         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
21073         * modules/unistd-safer (Files): Add lib/fd-safer.c
21074         (Makefile.am): Remove lib_SOURCES.
21075
21076         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
21077         Remove fcntl-safer; unistd-safer supersedes it.
21078
21079 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21080
21081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
21082         AC_HEADER_STAT.
21083         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
21084         (gl_PREREQ_CHOWN): Remove.
21085         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
21086         it.  Don't require AC_HEADER_STAT.
21087         (gl_PREREQ_LSTAT): Remove.
21088         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
21089         Don't require AC_HEADER_STAT.
21090         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
21091         (gl_PREREQ_RMDIR): Remove.
21092         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
21093         mention stat-macros.h or AC_HEADER_STAT, since we'll make
21094         the stat-macros module a prerequisite.
21095         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
21096         * m4/filemode.m4 (gl_FILEMODE): Likewise.
21097         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
21098         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
21099         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
21100         variable names.
21101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
21102         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
21103         variable prefixes.
21104         * m4/fcntl-safer.m4: Remove.
21105         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
21106         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
21107         Invoke gl_PREREQ_FD_SAFER.
21108         (gl_PREREQ_FD_SAFER): New macro.
21109         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
21110         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
21111         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
21112         Remove duplicate call to AC_LIBOBJ(readutmp).
21113         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
21114
21115         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
21116         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
21117
21118 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21119
21120         * MODULES.html.sh (Misc): Add byteswap.
21121
21122 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
21123
21124         * modules/getcwd (Depends-on): Add extensions.
21125         * modules/openat (Depends-on): Likewise.
21126
21127 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
21128
21129         * modules/byteswap: New file.
21130
21131 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
21132
21133         * m4/byteswap.m4: New file.
21134
21135 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
21136
21137         * lib/byteswap_.h: New file.
21138
21139 2005-04-25  Karl Berry  <karl@gnu.org>
21140
21141         * m4/gettext.m4: Update from GNU gettext 0.14.4.
21142
21143 2005-04-25  Albert Chin  <china@thewrittenword.com>
21144
21145         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
21146         Toolkit C bug.
21147
21148 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
21149
21150         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
21151         (func_ln_if_changed) Remove forcibly for no error message
21152         in case file does not exist.
21153
21154 2005-04-19  Simon Josefsson  <jas@extundo.com>
21155
21156         * gnulib-tool (Options): Make --symlink mean --symbolic.
21157
21158 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
21159
21160         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
21161
21162 2005-04-16  Simon Josefsson  <jas@extundo.com>
21163
21164         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
21165
21166 2005-04-15  Simon Josefsson  <jas@extundo.com>
21167
21168         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
21169
21170 2005-04-15  Simon Josefsson  <jas@extundo.com>
21171
21172         * gnulib-tool: Rename --symlink to --symbolic.
21173
21174 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
21175
21176         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
21177         symbolic links to files instead of copying/moving.  Add --aux-dir,
21178         specifying directory relative --dir where auxiliary build tools
21179         are placed.
21180
21181 2005-04-14  Bruno Haible  <bruno@clisp.org>
21182
21183         * modules/allocsa (License): Change to LGPL.
21184         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21185
21186 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21187
21188         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
21189         that "UTC +1 second" continues to work.  Problem reported
21190         by Dmitry V. Levin.
21191         (relunit_snumber): New rule.
21192         (relunit): Use it.
21193
21194 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         * lib/getdate.y (universal_time_zone_table): New constant.
21197         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
21198         universal_time_zone_table.
21199         (lookup_zone): Prefer universal_time_zone_table to
21200         local_time_zone_table, so that "GMT" time stamps are allowed in
21201         London during the summer.  Problem reported by Ian Abbott.
21202
21203 2005-04-12  Jim Meyering  <jim@meyering.net>
21204
21205         * lib/human.c (humblock): Set *options even when returning due to
21206         xstrtoumax conversion failure.  Thanks to a used-uninitialized
21207         warning from gcc-4.
21208
21209 2005-04-09  Jim Meyering  <jim@meyering.net>
21210
21211         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
21212         -Wuninitialized: initialize tm0.tm_year.
21213
21214 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21215
21216         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
21217         count, since there's no maximum.  All uses changed.
21218         Add member dsts_seen.
21219         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
21220         not being INT_MAX.
21221         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
21222         Use pc_rels_seen to decide whther a date is absolute.
21223
21224         * lib/getdate.y (number): Don't overwrite year.
21225         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
21226         check.
21227
21228 2005-04-02  Simon Josefsson  <jas@extundo.com>
21229
21230         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
21231         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
21232
21233 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
21234
21235         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
21236         where no absolute path name can be longer than PATH_MAX.
21237
21238 2005-03-27  Jim Meyering  <jim@meyering.net>
21239
21240         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
21241
21242 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
21243
21244         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
21245         "one's complement" -> "ones' complement" in comment, as per Knuth.
21246         "value of type" -> "type or expression" in comment.
21247         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
21248
21249 2005-03-26  Jim Meyering  <jim@meyering.net>
21250
21251         Comment nits.
21252         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
21253         Correct typos: s/or/of/.
21254
21255 2005-03-26  Jim Meyering  <jim@meyering.net>
21256
21257         * modules/check-include-files: Move to ../ and rename to...
21258         * check-module: ...this.
21259
21260 2005-03-25  Jim Meyering  <jim@meyering.net>
21261
21262         * modules/xvasprintf (Files): Add xalloc.h.
21263
21264 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
21265
21266         * modules/gettext (Files): config/config.rpath ->
21267         build-aux/config.rpath
21268         * modules/iconv (Files): Likewise.
21269         Problem reported by Oskar Liljeblad.
21270
21271 2005-03-23  Jim Meyering  <jim@meyering.net>
21272
21273         * modules/check-include-files: New script to check for
21274         missing dependencies, multiple includes, etc.
21275
21276         * modules/c-strtold (Depends-on): Add xalloc.
21277         * modules/c-strtod (Depends-on): Add xalloc.
21278         * modules/hash (Depends-on): Add xalloc.
21279         (Files): Remove lib/xalloc.h.
21280
21281         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
21282         * modules/userspec (Files): Add lib/inttostr.h.
21283
21284 2005-03-23  Jim Meyering  <jim@meyering.net>
21285
21286         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
21287
21288 2005-03-22  Jim Meyering  <jim@meyering.net>
21289
21290         * modules/stat-macros: New module.
21291         * modules/canonicalize, modules/euidaccess, modules/file-type,
21292         * modules/filemode, modules/lchown, modules/makepath,
21293         * modules/rmdir, modules/stat: Depend on new stat-macros module
21294         rather than listing lib/stat-macros.h manually.
21295         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
21296
21297 2005-03-22  Jim Meyering  <jim@meyering.net>
21298
21299         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
21300
21301 2005-03-22  Bruno Haible  <bruno@clisp.org>
21302
21303         * config/srclist.txt: Replace target directory 'config' with
21304         'build-aux'.
21305         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
21306         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
21307         ../build-aux/.
21308
21309 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
21310
21311         * modules/chdir-long (Depends-on): Add mempcpy.
21312
21313         * modules/acl, modules/backupfile, modules/c-strtod,
21314         modules/c-strtold, modules/canon-host, modules/canonicalize,
21315         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
21316         modules/exclude, modules/exitfail, modules/file-type,
21317         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
21318         modules/getdate, modules/getline, modules/getpagesize,
21319         modules/getpass, modules/getugroups, modules/group-member,
21320         modules/hard-locale, modules/hash, modules/human, modules/idcache,
21321         modules/inttostr, modules/long-options, modules/makepath,
21322         modules/md5, modules/memcasecmp, modules/memcoll,
21323         modules/modechange, modules/mountlist, modules/path-concat,
21324         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
21325         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
21326         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
21327         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
21328         modules/strftime, modules/strndup, modules/strverscmp,
21329         modules/timespec, modules/unlocked-io, modules/userspec,
21330         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
21331         modules/yesno:
21332         Remove lib_SOURCES line from Makefile.am section, as this is now
21333         done automatically by the corresponding Autoconf macro.
21334
21335 2005-03-21  Jim Meyering  <jim@meyering.net>
21336
21337         Changes imported from coreutils.
21338
21339         * lib/cycle-check.c: Don't include xalloc.h.
21340
21341         * lib/path-concat.c: Don't include assert.h.
21342         (path_concat): Remove assertion that would have triggered
21343         for ABASE starting with more than one slash.
21344         Reported by Andreas Schwab.
21345
21346         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
21347         properly when ABASE is an absolute file name.
21348         Correct the description of this function.
21349         Include <assert.h>.
21350         Add an assertion and a test driver.
21351         This fixes a bug introduced on 2004-07-02.
21352         Andreas Schwab reported the resulting failure of cp --parents:
21353         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
21354
21355 2005-03-21  Jim Meyering  <jim@meyering.net>
21356
21357         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
21358         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
21359
21360 2005-03-21  Jim Meyering  <jim@meyering.net>
21361         and  Paul Eggert  <eggert@cs.ucla.edu>
21362
21363         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
21364         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
21365         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
21366         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
21367         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
21368         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
21369         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
21370         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
21371         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
21372         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
21373         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
21374         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
21375         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
21376         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
21377         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
21378         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
21379         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
21380         for these modules.
21381
21382 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
21383
21384         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
21385         (which shouldn't happen), generate nothing instead of returning 0
21386         immediately, so that nstrftime (NULL, ...) doesn't return 0.
21387
21388 2005-03-16  Bruno Haible  <bruno@clisp.org>
21389
21390         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
21391         HAVE_LONGLONG_64BIT.
21392
21393 2005-03-16  Bruno Haible  <bruno@clisp.org>
21394
21395         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
21396         HAVE_LONGLONG_64BIT.
21397
21398 2005-03-16  Bruno Haible  <bruno@clisp.org>
21399
21400         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
21401         HAVE_LONGLONG_64BIT.
21402
21403 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
21404
21405         * lib/strftime.c (my_strftime): Prepend space to format so that we can
21406         reliably distinguish strftime failure from empty output on POSIX
21407         hosts.
21408
21409 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
21410
21411         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
21412         (iconv_string): Don't guess a size-zero buffer, as that might cause
21413         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
21414         result would be 'too large', where 'too large' is (heuristically)
21415         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
21416         overflow concerns.  This will prevent some unwanted malloc failures
21417         when the inputs are very large.
21418
21419 2005-03-15  Karl Berry  <karl@gnu.org>
21420
21421         * config/srclist.txt (config.rpath): from gettext.
21422         * config/config.rpath: update.
21423
21424 2005-03-15  Bruno Haible  <bruno@clisp.org>
21425
21426         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
21427         to 'negate'.
21428
21429         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
21430         variable.
21431
21432         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
21433         results.
21434
21435 2005-03-14  Simon Josefsson  <jas@extundo.com>
21436
21437         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
21438         <fx@gnu.org>.
21439
21440 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21441
21442         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
21443         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
21444         intprops.h.
21445         * lib/strtol.c: Likewise.
21446
21447 2005-03-14  Jim Meyering  <jim@meyering.net>
21448
21449         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
21450         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
21451         to be nonzero so that we (and caller) can detect the difference
21452         between a valid zero-length expansion and an error return, even
21453         when the underlying strftime fails before writing anything into
21454         that location.
21455
21456 2005-03-14  Bruno Haible  <bruno@clisp.org>
21457
21458         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
21459         Update from GNU gettext 0.14.3.
21460
21461 2005-03-10  Jim Meyering  <jim@meyering.net>
21462
21463         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
21464
21465 2005-03-10  Jim Meyering  <jim@meyering.net>
21466
21467         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
21468         so that this module works on systems without fchdir.
21469
21470 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
21471
21472         Factor int-properties macros into a single file, except for
21473         glibc-related files.
21474         * lib/intprops.h: New file.
21475         * lib/getloadavg.c: Include it instead of limits.h.
21476         (INT_STRLEN_BOUND): Remove.
21477         * lib/human.c: Include intprops.h.
21478         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
21479         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
21480         302/1000.
21481         * lib/inttostr.h: Include intprops.h instead of limits.h.
21482         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
21483         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
21484         for consistency with intprops.h.
21485         (time_t_is_integer, twos_complement_arithmetic): Use them.
21486         * lib/sig2str.h: Include <signal.h>, intprops.h.
21487         (INT_STRLEN_BOUND): Remove.
21488         * lib/strftime.c (TYPE_SIGNED): Remove.
21489         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
21490         * lib/strtol.c: Adjust comments to match intprops.h.
21491         * lib/userspec.c: Include intprops.h.
21492         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
21493         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
21494         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
21495         instead of rolling our own expressions.
21496         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
21497
21498         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
21499         instead of int.
21500         (my_strftime): Do not mishandle years close to INT_MAX, by doing
21501         the right thing even if adding 1900 would overflow.  Similarly
21502         for tm_mon + 1 and tm_yday + 1.
21503         Make %Y always equivalent to %C%y, and similarly for %G and %g.
21504         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
21505         (DO_SIGNED_NUMBER): New macro.
21506         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
21507
21508 2005-03-07  Bruno Haible  <bruno@clisp.org>
21509
21510         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
21511
21512 2005-03-07  Bruno Haible  <bruno@clisp.org>
21513
21514         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
21515
21516 2005-03-04  Derek R. Price  <derek@ximbiot.com>
21517
21518         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
21519         (func_import): Only replace files via --import when they have actually
21520         changed.
21521
21522 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21523
21524         * m4/mmap-anon.m4: New file.
21525         * m4/pagealign_alloc.m4: New file.
21526
21527 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21528             Bruno Haible  <bruno@clisp.org>
21529
21530         * modules/pagealign_alloc: New file.
21531         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
21532
21533 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21534             Bruno Haible  <bruno@clisp.org>
21535
21536         * lib/pagealign_alloc.h: New file.
21537         * lib/pagealign_alloc.c: New file.
21538
21539 2005-03-03  Bruno Haible  <bruno@clisp.org>
21540
21541         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
21542         Use an all-permissive copyright notice, recommended by RMS.
21543
21544 2005-03-02  Bruno Haible  <bruno@clisp.org>
21545
21546         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
21547         of AIX, the replacement has to be done only after <string.h> is
21548         included, therefore not in config.h. stpncpy.h does the replacement,
21549         and stpncpy.c uses it.
21550
21551 2005-03-02  Bruno Haible  <bruno@clisp.org>
21552
21553         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
21554         stpncpy.c uses it.
21555
21556 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21557
21558         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
21559         The workaround isn't strictly needed for POSIX conformance, and
21560         it's too much of a pain to configure and maintain.  We'll ask
21561         people to fix their kernels instead.
21562         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
21563         (NANOSLEEP_BUG_WORKAROUND): Remove.
21564         (xnanosleep): Remove the workaround.
21565
21566 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21567
21568         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
21569         Reported by Derek Price.
21570         (Include): Add "timespec.h".
21571
21572         * modules/xnanosleep (Depends-on): Remove gethrxtime.
21573
21574 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21575
21576         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
21577         to detect nanosleep bug.
21578
21579 2005-03-01  Bruno Haible  <bruno@clisp.org>
21580
21581         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
21582
21583 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21584
21585         * modules/gethrxtime: New file.
21586         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
21587         (Depends-on): Add gethrxtime.
21588         (configure.ac): Add gl_XNANOSLEEP.
21589         (Makefile.am): Remove lib_SOURCES line.
21590
21591 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21592
21593         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
21594         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
21595
21596 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21597
21598         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
21599         * lib/timespec.h (gettime): Return void, since it always
21600         succeeds now.  All uses changed.
21601         * lib/gettime.c (gettime) Likewise.
21602         [HAVE_NANOTIME]: Prefer nanotime.
21603         Assume gettimeofday succeeds, as POSIX requires.
21604         Assime time () succeeds, since other code already does.
21605         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
21606         (timespec_subtract): Remove.
21607         (NANOSLEEP_BUG_WORKAROUND): New constant.
21608         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
21609         things considerably.  Use it only on GNU/Linux hosts, since the
21610         workaround shouldn't be needed elsewhere.
21611
21612 2005-02-24  Bruno Haible  <bruno@clisp.org>
21613
21614         * modules/gettext (Files): Add m4/glibc2.m4.
21615
21616 2005-02-24  Bruno Haible  <bruno@clisp.org>
21617
21618         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
21619         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
21620         * m4/progtest.m4:
21621         Update from GNU gettext 0.14.2.
21622         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
21623
21624 2005-02-24  Bruno Haible  <bruno@clisp.org>
21625
21626         * lib/localcharset.c: Update from GNU gettext 0.14.2.
21627         * lib/config.charset: Update from GNU gettext 0.14.2.
21628
21629 2005-02-24  Bruno Haible  <bruno@clisp.org>
21630
21631         * lib/gettext.h: Update from GNU gettext 0.14.2.
21632
21633 2005-02-23  Simon Josefsson  <jas@extundo.com>
21634
21635         * m4/iconvme.m4: New file.
21636
21637 2005-02-23  Jim Meyering  <jim@meyering.net>
21638
21639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
21640         change.
21641         Thanks to Bruno Haible for catching it.
21642
21643 2005-02-22  Simon Josefsson  <jas@extundo.com>
21644
21645         * modules/iconvme: New file.
21646
21647         * MODULES.html.sh: Add iconvme.
21648
21649 2005-02-22  Simon Josefsson  <jas@extundo.com>
21650
21651         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
21652
21653 2005-02-22  Simon Josefsson  <jas@extundo.com>
21654
21655         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
21656
21657 2005-02-22  Jim Meyering  <jim@meyering.net>
21658
21659         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
21660         s/ifndef/ifdef/.
21661
21662 2005-02-20  Neil Conway  <neilc@samurai.com>
21663
21664         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
21665         returned by OSX/Darwin if the specified buffer is not large
21666         enough for the hostname.
21667
21668 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21669
21670         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
21671         pass it to _help, otherwise the latter coredumps trying to
21672         dereference state.root_argp.
21673
21674 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21675
21676         * modules/chdir-long (Depends-on): Add memrchr.
21677         * modules/memrchr (Files): Add lib/memrchr.h.
21678         (Include): "memrchr.h".
21679
21680 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21681
21682         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
21683
21684 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21685
21686         * lib/memrchr.h: New file.
21687         * lib/chdir-long.c: Include it.
21688         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
21689         Don't bother including stddef.h.
21690
21691 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
21692
21693         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
21694         inclusion.
21695         Include <sys/types.h>, for dev_t.
21696         (ME_DUMMY, ME_REMOTE): Move from here....
21697         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
21698         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
21699         Dmitry V. Levin.
21700         Include mountlist.h first, to test the interface.
21701
21702 2005-01-29  Bruno Haible  <bruno@clisp.org>
21703
21704         * lib/progname.c (program_name): Initialize.
21705         Needed when linking statically on MacOS X.
21706
21707 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21708
21709         Sync from coreutils.
21710         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
21711         (Depends-on): Add c-strtod.
21712         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
21713
21714 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21715
21716         Sync from coreutils.
21717         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
21718
21719         Remove files that are specific to coreutils.
21720         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
21721
21722 2005-01-28  Bruno Haible  <bruno@clisp.org>
21723
21724         * modules/javacomp: New file.
21725         * MODULES.html.sh (Java): Add javacomp.
21726
21727 2005-01-28  Bruno Haible  <bruno@clisp.org>
21728
21729         * m4/javacomp.m4: New file, from GNU gettext.
21730
21731 2005-01-28  Bruno Haible  <bruno@clisp.org>
21732
21733         * lib/javacomp.sh.in: New file, from GNU gettext.
21734         * lib/javacomp.h: New file, from GNU gettext.
21735         * lib/javacomp.c: New file, from GNU gettext.
21736
21737 2005-01-26  Simon Josefsson  <jas@extundo.com>
21738
21739         * lib/gai_strerror.c: Use GPL in header.
21740
21741 2005-01-26  Bruno Haible  <bruno@clisp.org>
21742
21743         * modules/javaexec: New file.
21744         * MODULES.html.sh (Java): Add javaexec.
21745
21746 2005-01-26  Bruno Haible  <bruno@clisp.org>
21747
21748         * m4/javaexec.m4: New file, from GNU gettext.
21749
21750 2005-01-26  Bruno Haible  <bruno@clisp.org>
21751
21752         * lib/javaexec.sh.in: New file, from GNU gettext.
21753         * lib/javaexec.h: New file, from GNU gettext.
21754         * lib/javaexec.c: New file, from GNU gettext.
21755
21756 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21757
21758         * modules/lchown (Depends-on): Remove lchown.h
21759
21760 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21761
21762         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
21763         must be defined if the header file was not found, in order
21764         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
21765
21766 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21767
21768         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
21769         initializers for struct pentry_state.
21770         (__argp_error): Check return value of __asprintf
21771         (__argp_failure): Translate error message
21772
21773         * lib/argp-parse.c: Removed braces around the expansion of N_()
21774
21775 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21776
21777         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
21778         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
21779         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
21780         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
21781         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
21782         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
21783         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
21784         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
21785         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
21786         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
21787         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
21788         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
21789         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
21790         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
21791         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
21792         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
21793         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
21794         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
21795         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
21796         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
21797         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
21798         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
21799         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
21800         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
21801         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
21802         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
21803         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
21804         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
21805         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
21806         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
21807         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
21808         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
21809         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
21810         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
21811         xstrtol.m4, xstrtoumax.m4, yesno.m4:
21812         Use an all-permissive copyright notice, recommended by RMS.
21813
21814 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21815
21816         * modules/chdir-long (Depends-on): Remove mempcpy.
21817
21818 2005-01-21  Jim Meyering  <jim@meyering.net>
21819
21820         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
21821         same value as for Solaris 9.
21822
21823         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
21824         component length.  This included changing the parameter to be
21825         of type `char *' rather than `char const *'.
21826         * lib/chdir-long.h (chdir_long): Update prototype.
21827
21828         * lib/openat.c (fdopendir, fstatat): New functions.
21829         * lib/openat.h: Include headers required for use of DIR and struct
21830         stat.
21831         [AT_SYMLINK_NOFOLLOW]: Define.
21832         (fdopendir, fstatat): Add prototypes.
21833
21834 2005-01-21  Bruno Haible  <bruno@clisp.org>
21835
21836         * modules/classpath: New file.
21837         * MODULES.html.sh (Java): Add classpath.
21838
21839 2005-01-21  Bruno Haible  <bruno@clisp.org>
21840
21841         * lib/classpath.h: New file, from GNU gettext.
21842         * lib/classpath.c: New file, from GNU gettext.
21843
21844 2005-01-20  Simon Josefsson  <jas@extundo.com>
21845
21846         * modules/version-etc-fsf: New file.
21847
21848 2005-01-20  Simon Josefsson  <jas@extundo.com>
21849
21850         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
21851         * lib/version-etc.c: Remove version_etc_copyright.
21852         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
21853         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
21854
21855 2005-01-20  Simon Josefsson  <jas@extundo.com>
21856
21857         * lib/base64.h (isbase64): Add.
21858
21859         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
21860         using a unsigned prototype, don't inline.
21861         (base64_decode): Use it.
21862
21863 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21864
21865         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
21866         it.
21867
21868 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21869
21870         * lib/save-cwd.c (save_cwd): Remove code to support the case
21871         where fchdir is missing or flaky.
21872
21873 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21874
21875         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
21876
21877 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21878
21879         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
21880         AC_LIBSOURCES now does this.
21881         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
21882         with new ullong_max module.
21883
21884 2005-01-19  Bruno Haible  <bruno@clisp.org>
21885
21886         * modules/sh-quote: New file.
21887         * MODULES.html.sh (Executing programs): Add sh-quote.
21888
21889 2005-01-19  Bruno Haible  <bruno@clisp.org>
21890
21891         * lib/sh-quote.h: New file, from GNU gettext.
21892         * lib/sh-quote.c: New file, from GNU gettext.
21893
21894 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21895
21896         Merge from coreutils.
21897         * m4/ullong_max.m4: New file.
21898         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
21899         (gl_MACROS): Assume localeconv exists.
21900
21901 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21902
21903         Merge changes from coreutils, as described below in several
21904         changelogs dated today.
21905
21906         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
21907         (O_DIRECTORY): Remove; not needed here, since "." must be
21908         a directory.  All uses removed.
21909         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
21910         universal on Suns, and we also need to test for IRIX.
21911         Revamp code to use 'if' rather than '#if'.
21912         Avoid unnecessary comparison of cwd->desc to 0.
21913
21914         * lib/utimens.c (futimens): Robustify the previous patch, by checking
21915         for known valid error numbers rather than observed invalid ones.
21916
21917 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21918
21919         * modules/ullong_max: New file.
21920
21921         * modules/chdir-long, modules/openat: New files.
21922         * modules/save-cwd (Depends-on): Depend on chdir-long.
21923         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
21924
21925 2005-01-18  Jim Meyering  <jim@meyering.net>
21926
21927         Merge from coreutils.
21928         * m4/chdir-long.m4, m4/openat.m4: New files.
21929         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
21930         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
21931         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
21932         is sane and DOES follow symlinks.  Besides, testing 20 different
21933         systems found no broken chown implementations.
21934         Prompted by a change in rsync's copy of this macro.
21935         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
21936
21937         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
21938
21939         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
21940         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
21941         NULL-means-set-to-current-time semantics.
21942         Remove temporary file immediately, rather than waiting
21943         for configure's at-exit trap code to do it.
21944
21945 2005-01-18  Jim Meyering  <jim@meyering.net>
21946
21947         * lib/version-etc.c (version_etc_copyright): Update copyright date.
21948
21949         * lib/utimens.c (futimens): Account for the fact that futimes
21950         can also fail with errno == ENOSYS or errno == ENOENT.
21951         Patch from Dmitry V. Levin.
21952
21953         Change the name of the robust chdir function from chdir to chdir_long.
21954         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
21955         (restore_cwd): Use chdir_long, not chdir.
21956         * lib/chdir-long.c: Renamed from chdir.c.
21957         * lib/chdir-long.h: Renamed from chdir.h.
21958         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
21959         Hurd.
21960
21961 2005-01-18  Bruno Haible  <bruno@clisp.org>
21962
21963         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
21964         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
21965         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
21966         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
21967         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
21968         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
21969         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
21970         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
21971         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
21972         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
21973         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
21974         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
21975         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
21976         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
21977         Use an all-permissive copyright notice, recommended by RMS.
21978
21979 2005-01-18  Bob Proulx  <bob@proulx.com>
21980
21981         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
21982         simplify offsetof() macro construct to avoid compile failure with
21983         native HP-UX 11.0 ANSI C compiler.
21984
21985 2005-01-17  Bruno Haible  <bruno@clisp.org>
21986
21987         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
21988         redundant because stpncpy.m4 takes care of it.
21989
21990 2005-01-17  Bruno Haible  <bruno@clisp.org>
21991
21992         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
21993
21994 2005-01-17  Bruno Haible  <bruno@clisp.org>
21995
21996         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
21997         used.
21998
21999 2005-01-17  Bruno Haible  <bruno@clisp.org>
22000
22001         * lib/fwriteerror.h (fwriteerror): Change specification to include
22002         fclose.
22003         * lib/fwriteerror.c: Include <stdbool.h>.
22004         (fwriteerror): At the end, close the file stream. Record whether
22005         stdout was already closed.
22006
22007 2005-01-17  Bruno Haible  <bruno@clisp.org>
22008
22009         * lib/execute.c (environ): Declare if needed.
22010         * lib/pipe.c (environ): Likewise.
22011         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
22012
22013 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22014
22015         * modules/argp: Depend on vsnprintf
22016
22017 2005-01-10  Jim Meyering  <jim@meyering.net>
22018
22019         * modules/closeout (Depends-on): Add atexit.
22020
22021 2005-01-06  Bruno Haible  <bruno@clisp.org>
22022
22023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
22024
22025 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22026
22027         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
22028         definitions to be after all include files, to avoid collisions.
22029         Problem reported by Bob Proulx.
22030
22031 2005-01-04  Jim Meyering  <jim@meyering.net>
22032
22033         Changes imported from coreutils.
22034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
22035         as the mkstemp template, use a temporary directory and an
22036         8.3-friendly template to avoid trouble on systems like DJGPP.
22037         Reported by Juan M. Guerrero via Stepan Kasal.
22038         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
22039         close. Remove the temporary directory right away, rather than waiting
22040         for configure's at-exit trap code to do it.
22041         Suggestion from Stepan Kasal.
22042
22043 2005-01-01  Simon Josefsson  <jas@extundo.com>
22044
22045         * gnulib-tool: Print #include directives when --import'ing.
22046
22047 2004-12-28  Simon Josefsson  <jas@extundo.com>
22048
22049         * tests/test-base64.c: Include required header files.  Remove
22050         unused variables.
22051
22052 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22053
22054         * modules/error (Depends-on): Remove gettext.
22055
22056 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22057
22058         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
22059         not needed.  This removes a dependency on the gettext module.
22060         [defined _LIBC]: Do not include <libintl.h>; not needed.
22061
22062 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
22063
22064         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
22065         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
22066
22067 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
22068
22069         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
22070         HAVE_DECL_STRTOLD.
22071
22072 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22073
22074         * modules/getdate (Depends-on): Remove alloca-opt.
22075
22076 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22077
22078         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
22079
22080 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22081
22082         * lib/argp-parse.c: Include <stddef.h>.
22083         (alignof, alignto): New macros.
22084         (parser_init): Don't assume that void * is aligned sufficiently
22085         for struct option.
22086
22087         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
22088         need to extend the stack.
22089         (YYINITDEPTH): New macro, so that the initial stack isn't overly
22090         large.
22091
22092 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22093
22094         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
22095
22096 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22097
22098         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
22099         (2004-10-24) change.  Apparently this was a false alarm.
22100
22101         * modules/getdate: Depend on alloca-opt, not alloca.
22102
22103 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22104
22105         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
22106         Remove now-obsolete comment about AIX.
22107         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
22108         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
22109         (YYMAXDEPTH): New macro.
22110
22111 2004-12-18  Simon Josefsson  <jas@extundo.com>
22112
22113         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
22114
22115 2004-12-18  Bruno Haible  <bruno@clisp.org>
22116
22117         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
22118
22119 2004-12-18  Bruno Haible  <bruno@clisp.org>
22120
22121         * lib/fatal-signal.c (fatal_signals): Make non-const.
22122         (init_fatal_signals): New function.
22123         (uninstall_handlers, install_handlers): Ignore signals that were set to
22124         SIG_IGN.
22125         (at_fatal_signal): Call init_fatal_signals.
22126         (init_fatal_signal_set): Likewise. Ignore signals that were set to
22127         SIG_IGN.
22128         Reported by Paul Eggert.
22129
22130 2004-12-18  Bruno Haible  <bruno@clisp.org>
22131
22132         * doc/alloca.texi: New file.
22133         * doc/alloca-opt.texi: New file.
22134
22135 2004-12-17  Jim Meyering  <jim@meyering.net>
22136
22137         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
22138         Otherwise, install-sh could exit with improper exit status when
22139         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
22140
22141 2004-12-16  Simon Josefsson  <jas@extundo.com>
22142
22143         * tests/test-base64.c: Add license.
22144
22145 2004-12-15  Stepan Kasal  <address@hidden>
22146
22147         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
22148
22149 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
22150
22151         * modules/getcwd (Files): Add m4/d-ino.m4.
22152         Suggested by Mark D. Baushke.
22153
22154 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
22155
22156         * lib/getdate.y (textint): New member "negative".
22157         (time_zone_hhmm): New function.
22158         Expect 14 shift-reduce conflicts, not 13.
22159         (o_colon_minutes): New rule.
22160         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
22161         (yylex): Set the "negative" member of signed numbers.
22162
22163 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
22164
22165         * doc/getdate.texi (Time of day items, Time zone items):
22166         Describe new formats +00:00, UTC+00:00.
22167
22168 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
22169
22170         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
22171         spurious "-l"s.  Problem reported by Stepan Kasal.
22172
22173 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
22174
22175         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
22176         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
22177
22178 2004-12-04  Simon Josefsson  <jas@extundo.com>
22179
22180         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
22181         Vandoorselaere <yoann@prelude-ids.org>.
22182
22183 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
22184
22185         Changes imported from coreutils.
22186         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
22187         exist.
22188         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
22189
22190 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
22191
22192         Changes imported from coreutils.
22193         * lib/hard-locale.c: Assume <locale.h> exists.
22194         Include "strdup.h".
22195         (GLIBC_VERSION): New macro.
22196         (hard_locale): Assume setlocale exists.
22197         Rewrite to avoid #ifdef.
22198         Use strdup rather than malloc + strcpy.
22199         * lib/human.c: Assume <locale.h> exists.
22200         (human_readable): Assume localeconv exists.
22201
22202 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
22203
22204         * modules/hard-locale (Depends-on): Add strdup.
22205
22206 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
22207
22208         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
22209         convert T2, not T.  (Imported from libc.)
22210
22211 2004-11-30  Simon Josefsson  <jas@extundo.com>
22212
22213         * modules/restrict (License): Change to LGPL.
22214
22215 2004-11-30  Simon Josefsson  <jas@extundo.com>
22216
22217         * m4/restrict.m4: Add copyright and copying conditions.
22218
22219 2004-11-30  Simon Josefsson  <jas@extundo.com>
22220
22221         * m4/base64.m4: New file.
22222
22223 2004-11-30  Simon Josefsson  <jas@extundo.com>
22224
22225         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
22226         base64.
22227
22228         * tests/test-base64.c: New file.
22229
22230         * modules/base64: New file.
22231
22232 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
22233
22234         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
22235         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
22236
22237         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
22238
22239 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
22240
22241         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
22242         (__getcwd.c): Don't restore errno; glibc doesn't.
22243         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
22244         first, falling back to our code only if its results look suspicious.
22245         Ensure that the resulting buffer is only as large as necessary.
22246
22247         * lib/readutmp.c: Include readutmp.h first.
22248         Include <errno.h>, since readutmp.h no longer does that.
22249         * lib/readutmp.h: Don't include <errno.h>,
22250         <sys/param.h>, <time.h>; not needed to establish interface.
22251         (errno): Remove decl.
22252         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
22253         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
22254         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
22255
22256 2004-11-28  Simon Josefsson  <jas@extundo.com>
22257
22258         * lib/base64.h, base64.c: New file.
22259
22260 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
22261
22262         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
22263
22264 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22265
22266         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
22267         (Depends-on): Remove pathmax, same.  Add mempcpy.
22268         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
22269         (Makefile.am): Append getcwd.h to lib_SOURCES.
22270         (Include): Add getcwd.h.
22271         (Maintainer): Change from Jim Meyering to "all, glibc",
22272         since getdate now uses intended-for-glibc code.
22273         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
22274         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
22275
22276 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22277
22278         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
22279         HP's ANSI C compiler.
22280         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
22281         Declaring int functions causes warnings on some modern systems and
22282         shouldn't be needed to compile on ancient ones.
22283         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
22284         defined.
22285
22286         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
22287         with the following changes.
22288         (__set_errno): Parenthesize properly.
22289         Include <stdbool.h>.
22290         (MIN, MAX, MATCHING_INO): New macros.
22291         (__getcwd): Define with prototype, not K&R form.
22292         Use heuristics to allocate default buffer on stack if possible.
22293         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
22294         behavior, and to avoid the PATH_MAX limit when computing
22295         ../../../../...
22296         Use MATCHING_INO to compare inode number to file.
22297         Check for arithmetic overflow in size calculations.
22298         Fix bug in reallocation of dot array that caused getcwd to fail
22299         on directories nested deeper than 75.
22300         Be more careful about saving errno on error.
22301         Do not use realloc; use only free+malloc, as this is a bit
22302         more flexible and avoids a needless copy operation.
22303         Do not inspect st_dev and st_ino for symbolic links; POSIX
22304         doesn't specify the latter.
22305         Check for closedir errors.
22306         Avoid needless casts.
22307         Use "#ifdef weak_alias" around weak_alias, to be like other
22308         glibc code.
22309         The following changes to getcwd.c have effect only when used in
22310         gnulib; they have no effect inside glibc proper.
22311         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
22312         as alloca isn't used.
22313         (alloca, __alloca): Likewise.
22314         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
22315         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
22316         unconditionally, as gnulib assumes C89 or better.
22317         Do not include <sys/param.h>.
22318         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
22319         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
22320         better.
22321         (NULL) [!defined NULL]: Remove; we assume C89 or better.
22322         Include <dirent.h> in a way that is compatible with modern Autoconf.
22323         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
22324         New macros, if not already defined.
22325         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
22326         Use "_LIBC", not "defined _LIBC", for consistency.
22327         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
22328         a mempcpy module.
22329         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
22330         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
22331         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
22332         credit only to Jim Meyering and adjust the copyright dates.
22333         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
22334         <stdlib.h>, <unistd.h>, "pathmax.h".
22335         Instead, include "xgetcwd.h" (first) and "getcwd.h".
22336         (INITIAL_BUFFER_SIZE): Remove.
22337         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
22338
22339 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22340
22341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
22342         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
22343         Use the _ONCE methods, for efficiency.
22344         Check for fcntl.h.  In test program, include <errno.h>
22345         and <fcntl.h> if available.  Remove old K&R cruft from
22346         test program.  Check for common errors in GNU/Linux,
22347         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
22348         don't do AC_LIBOBJ, as that's getcwd.m4's job.
22349         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
22350         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
22351         name accordingly.
22352         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
22353         accommodate new getcwd.c.
22354         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
22355         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
22356         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
22357         that's all we need now.
22358
22359 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22360
22361         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
22362         argp-parse.c depends on getopt internals, that means we should
22363         always use our getopt, to be on the safe side.
22364         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
22365         order not to spoil the result of an eventual previous invocation
22366         of gl_GETOPT_SUBSTITUTE.
22367
22368 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22369
22370         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
22371         redefinition warnings. To avoid them, include the defines
22372         in `#if !defined __need_getopt ... #endif'. The only place
22373         where __getopt_argv_const is used is in definitions
22374         of getopt_long and getopt_long_only below, which are as well
22375         protected by `#ifndef __need_getopt'.
22376         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
22377         __need_getopt after including <stdio.h> and <unistd.h> These
22378         headers might have defined it.
22379
22380 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
22381
22382         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
22383
22384 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
22385
22386         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
22387         (futimens): New function, which uses futimes if available.
22388         (futimens, utimens): Support timespec==NULL, with same semantics
22389         as utime and utimens.
22390         * lib/utimens.h (futimens): New decl.
22391
22392 2004-11-23  Jim Meyering  <jim@meyering.net>
22393
22394         * lib/getopt_.h: Remove trailing blanks.
22395
22396 2004-11-23  Jim Meyering  <jim@meyering.net>
22397
22398         * lib/__fpending.c: Add comment.
22399
22400 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
22401
22402         * modules/canonicalize (Depends-on): Add xreadlink.
22403         Problem reported by James Youngman.
22404
22405 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22406
22407         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
22408         New macros.
22409         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
22410         optopt): Use them instead of invoking ## directly; otherwise, the
22411         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
22412
22413 2004-11-19  Bruno Haible  <bruno@clisp.org>
22414
22415         * lib/strtok_r.c: Move comments from here...
22416         * lib/strtok_r.h: ... to here.
22417
22418 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22419
22420         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
22421         implementations that mishandle size_t overflow.
22422
22423 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22424
22425         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
22426         might fail.  Problem reported by Yoann Vandoorselaere.
22427         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
22428         implementations that mishandle size_t overflow.
22429
22430 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22431
22432         * modules/canon-host (Depends-on): Add strdup.
22433
22434 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22435
22436         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
22437
22438 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22439
22440         * lib/canon-host.c: Include "strdup.h".
22441         (canon_host): Use getaddrinfo if available, so that IPv6 works.
22442         Use strdup instead of malloc/strcpy to duplicate strings.
22443
22444         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
22445         (human_space_before_unit): New constant.
22446         * lib/human.c (human_readable): Support it.
22447
22448         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
22449         (xgetcwd): Set errno correctly when failing.
22450         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
22451         the failure is actually due to a PATH_MAX problem.
22452
22453         Further getopt changes to make it more likely that glibc will
22454         buy the changes back.
22455         * lib/getopt.c (POSIXLY_CORRECT): New constant.
22456         (getopt): Use it, so to preserve glibc semantic
22457         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
22458         when compiling for libc.
22459         * lib/getopt_.h (__getopt_argv_const): Bring it back.
22460         (getopt_long, getopt_long_only): Use it.
22461
22462         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22463         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
22464         (getopt): Argv is now char * const *, as per standard.
22465         (_getopt_internal_r, _getopt_internal): Argv is now char **,
22466         not char *__getopt_argv_const *.
22467         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22468         _getopt_long_only_r): Likewise.
22469         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
22470         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22471         _getopt_long_r, _getopt_long_only_r): Likewise.
22472         * lib/getopt_.h (__getopt_argv_const): Remove.
22473         (getopt): Argv is now char * const *, as per standard.
22474
22475         * lib/getdate.y (tORDINAL): New token.
22476         (day, relunit): Allow it for relative times.
22477         (relative_time_table): Use tORDINAL for ordinals.
22478
22479 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22480
22481         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
22482         Document that "second" isn't allowed as an ordinal number.
22483
22484 2004-11-16  Jim Meyering  <jim@meyering.net>
22485
22486         * modules/closeout (Depends-on): Add fpending.
22487
22488 2004-11-15  Jim Meyering  <jim@meyering.net>
22489
22490         * lib/closeout.c: Include "__fpending.h" once again.
22491         Include <stdbool.h>.
22492         (close_stdout): Don't fail just because stdout was closed initially,
22493         since some programs don't write to stdout in the normal course of
22494         operation (other than --version and --help), and we don't want this
22495         function to make e.g. `touch file >&-' fail.
22496         But do fail if it was closed and someone has tried to write to it.
22497         E.g., `printf foo >&-' must fail.
22498
22499 2004-11-13  Jim Meyering  <jim@meyering.net>
22500
22501         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
22502
22503 2004-11-12  Simon Josefsson  <jas@extundo.com>
22504
22505         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
22506         small doc fix is still pending.
22507
22508 2004-11-11  Simon Josefsson  <jas@extundo.com>
22509
22510         * modules/strtok_r: New file.
22511
22512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22513         strtok_r.
22514
22515 2004-11-11  Simon Josefsson  <jas@extundo.com>
22516
22517         * m4/strtok_r.m4: New file.
22518
22519         * m4/getopt.m4: Replace opterr.
22520
22521 2004-11-11  Simon Josefsson  <jas@extundo.com>
22522
22523         * lib/strtok_r.h, strtok_r.c: New file.
22524
22525 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22526
22527         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
22528         of replacing opterr, getopt, etc.  This should handle the
22529         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
22530
22531 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22532
22533         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
22534         we can stop lying to compilers about the constness of argv when we
22535         are compiled outside glibc.
22536         (getopt, getopt_long, getopt_long_only): Use it.
22537         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22538         _getopt_internal, getopt): Likewise.
22539         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22540         _getopt_long_only_r): Likewise.
22541         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22542         _getopt_long_r, _getopt_long_only_r): Likewise.
22543
22544         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
22545         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
22546         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
22547         the other external symbols.
22548         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
22549         declaration, since the above renaming now works around collisions.
22550
22551 2004-11-11  Jim Meyering  <jim@meyering.net>
22552
22553         * lib/linebreak.c: Remove trailing blanks.
22554         * lib/alloca_.h: Likewise.
22555         * lib/acosl.c: Likewise.
22556         * lib/euidaccess.c: Likewise.
22557         * lib/allocsa.h: Likewise.
22558
22559 2004-11-10  Simon Josefsson  <jas@extundo.com>
22560
22561         * m4/getaddrinfo.m4: New file.
22562
22563 2004-11-10  Simon Josefsson  <jas@extundo.com>
22564
22565         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
22566
22567 2004-11-10  Simon Josefsson  <jas@extundo.com>
22568
22569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22570         getaddrinfo.
22571
22572         * modules/getaddrinfo: New file.
22573
22574 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22575
22576         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
22577
22578 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22579
22580         * lib/mktime.c (SHR): New macro, which is a portable
22581         substitute for >> that should work even on Crays.
22582         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
22583         Problem reported by Mark D. Baushke in
22584         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
22585         * lib/getdate.y (SHR): Likewise.
22586         (tm_diff): Use it.
22587         * lib/strftime.c (SHR): Likewise.
22588         (tm_diff): Use it.
22589         * lib/quotearg.c (struct quoting_options): Use unsigned int for
22590         quote_these_too, so that right shifts are well defined.  All uses
22591         changed.
22592
22593 2004-11-10  Jim Meyering  <jim@meyering.net>
22594
22595         Ensure that no close failure goes unreported.
22596         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
22597         return early when it seems there's nothing to flush.
22598         Don't include __fpending.h.
22599
22600 2004-11-10  Jim Meyering  <jim@meyering.net>
22601
22602         * modules/closeout (Depends-on): Remove fpending.
22603
22604 2004-11-10  Jim Meyering  <jim@meyering.net>
22605
22606         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
22607
22608 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
22609
22610         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
22611         gl_FUNC_STRFTIME.
22612         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
22613         and AC_REQUIRE when possible, to avoid duplicate checks.
22614         Check for <wchar.h>.
22615
22616 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
22617
22618         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
22619
22620 2004-11-09  Bruno Haible  <bruno@clisp.org>
22621
22622         * m4/sockpfaf.m4: New file.
22623
22624 2004-11-05  Bruno Haible  <bruno@clisp.org>
22625
22626         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
22627         Reported by Mark D. Baushke <mdb@cvshome.org>.
22628
22629 2004-11-04  Bruno Haible  <bruno@clisp.org>
22630
22631         2004-09-11  Bruno Haible  <bruno@clisp.org>
22632                 * allocsa.valgrind: New file.
22633         2004-02-06  Bruno Haible  <bruno@clisp.org>
22634                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
22635                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
22636                 Reported by Christopher Seip <chris.seip@hp.com>.
22637
22638 2004-11-04  Bruno Haible  <bruno@clisp.org>
22639
22640         * modules/allocsa (Files): Add lib/allocsa.valgrind.
22641         (Makefile.am): Distribute it.
22642
22643 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22644
22645         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
22646         with errno == ERANGE if the buffer is too small.
22647         Problem reported by Mark D. Baushke.
22648
22649 2004-11-03  Albert Chin  <china@thewrittenword.com>
22650             Paul Eggert  <eggert@cs.ucla.edu>
22651
22652         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
22653         equivalent, substitute $ac_type for equivalent type rather than
22654         blindly using uint32_t *always* which won't work if uint32_t is not
22655         available.  Define _UINT32_T to work around typedef of uint32_t if
22656         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
22657         2.5.1.
22658
22659 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22660
22661         * m4/jm-macros.m4: Sync from coreutils.
22662         (gl_MACROS): Check for mbrlen, for pathchk.
22663         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
22664
22665 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22666
22667         * lib/xreadlink.c (MAXSIZE): New macro.
22668         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
22669         size does not exceed MAXSIZE.  Avoid cast.
22670         As suggested by Mark D. Baushke in
22671         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
22672         if readlink fails with buffer size just under MAXSIZE, try again
22673         with MAXSIZE.
22674
22675 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22676
22677         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
22678
22679 2004-11-02  Derek R. Price  <derek@ximbiot.com>
22680         and  Paul Eggert  <eggert@cs.ucla.edu>
22681
22682         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
22683         (get_date): Overparenthesize to avoid GCC warning.
22684
22685 2004-11-02  Bruno Haible  <bruno@clisp.org>
22686
22687         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
22688         returns void.
22689
22690 2004-11-02  Bruno Haible  <bruno@clisp.org>
22691
22692         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
22693         function returns void.
22694
22695 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22696
22697         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
22698         fflush_unlocked, flockfile, funlockfile, funlockfile,
22699         fputs_unlocked, putc_unlocked.
22700
22701 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22702
22703         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22704         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
22705         already declared.
22706
22707 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22708
22709         * modules/getdate (Files): Add doc/getdate.texi.
22710         (Depends-on): Add setenv, xalloc.
22711
22712 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         * lib/getdate.y: Add support for TZ="foo" within a date string.
22715         Fix some bugs near time_t boundaries.  Reject dates with
22716         out-of-range components, e.g., "Sept 31".
22717         Include <stdlib.h>, "setenv.h", "xalloc.h".
22718         (ISDIGIT_LOCALE): Remove; unused.
22719         Note that the TZ and time functions used here are not reentrant.
22720         (mktime_ok, get_tz): New functions.
22721         (TZBUFSIZE): New constant.
22722         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
22723         This requires that we sometimes generate our own TZ="XXX..." setting.
22724
22725 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22726
22727         * doc/getdate.texi: New file, from coreutils with modifications for
22728         the new TZ parsing.
22729
22730 2004-10-27  Derek R. Price  <derek@ximbiot.com>
22731
22732         * lib/mktime.c (not_equal_tm): Remove redundant check.
22733
22734 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22735
22736         * modules/regex (lib_SOURCES): Add regex.c.
22737         Reported by James Youngman in
22738         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
22739
22740 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22741
22742         * lib/getdate.y: Use Bison 1.875 features, and some minor
22743         code cleanups.  This change does not affect semantics.
22744         Don't include <stdlib.h>; no longer needed.
22745         Don't include unlocked-io.h; only the "#if TEST" code uses
22746         stdio, and performance isn't crucial there.
22747         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
22748         Bison 1.875 features as described below.
22749         All uses of "PC." replaced by "pc->".
22750         (YYSTYPE): Add a forward declaration.
22751         (yylex, yyerror): Use full prototypes in forward decls.
22752         Use "%pure-parser" rather than obsolescent "%pure_parser".
22753         Use %parse-param and %lex-param instead of obsolescent
22754         YYPARSE_PARAM and YYLEX_PARAM.
22755         (meridian_table, month_and_day_table, time_units_table,
22756         relative_time_table, time_zone_table, military_table,
22757         lookup_zone, lookup_word, get_date):
22758         Use NULL instead of 0 where appropriate.
22759         (to_hour): Avoid abort (), to avoid a dependency on
22760         stdlib.h.
22761         (yyerror, yylex): Now accepts parser_control * arg.
22762         (main) [TEST]: Use '\0' rather than 0 for char.
22763
22764 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
22765
22766         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
22767
22768 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
22769
22770         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
22771         It's now the caller's responsibility to handle the case where
22772         !HAVE_GETPAGESIZE && !defined getpagesize.
22773
22774         * lib/mktime.c (leapyear): Arg is long int, not int.
22775
22776 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
22777
22778         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
22779
22780 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22781
22782         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
22783         missing.  Problem reported by James Youngman.
22784
22785 2004-10-16  Simon Josefsson  <jas@extundo.com>
22786
22787         * gnulib-tool: Fix comments.  Fix parse problem.
22788         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
22789
22790 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
22791
22792         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
22793         implementation of getopt_long.  Problem reported by Alexander Taler in:
22794         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
22795
22796 2004-10-15  Bruno Haible  <bruno@clisp.org>
22797
22798         * gnulib-tool: Untabify. Initialize supplied_libname.
22799         (func_usage): More homogenous output.
22800         (func_modules_transitive_closure, func_modules_to_filelist,
22801         func_emit_lib_Makefile_am): New functions.
22802         (func_import): New function, extracted from big case statement. Use
22803         func_get_license, func_modules_transitive_closure,
22804         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
22805         opt_lgpl. Don't use test -a, as it's not portable.
22806         (func_create_testdir): Use func_modules_transitive_closure,
22807         func_modules_to_filelist, func_emit_lib_Makefile_am.
22808
22809 2004-10-15  Bruno Haible  <bruno@clisp.org>
22810
22811         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
22812
22813 2004-10-15  Bruno Haible  <bruno@clisp.org>
22814
22815         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
22816         the portions belonging to each module.
22817         Suggested by Derek Robert Price <derek@ximbiot.com>.
22818
22819 2004-10-12  Simon Josefsson  <jas@extundo.com>
22820
22821         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22822         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
22823         to real functions.
22824
22825 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22826
22827         * modules/vsnprintf: New file.
22828
22829 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22830
22831         * m4/vsnprintf.m4: New file.
22832
22833 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22834
22835         * lib/vsnprintf.h: New file.
22836         * lib/vsnprintf.c: New file.
22837
22838 2004-10-11  Bruno Haible  <bruno@clisp.org>
22839
22840         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
22841         vsnprintf.
22842
22843 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22844
22845         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
22846
22847 2004-10-07  Bruno Haible  <bruno@clisp.org>
22848
22849         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
22850         fits into the provided buffer.
22851
22852 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22853
22854         * lib/diacrit.c, diacrit.h: Add GPL notice.
22855
22856         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
22857         notice.
22858         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
22859         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
22860         This avoids a potential constant-folding bug.
22861
22862 2004-10-05  Bruno Haible  <bruno@clisp.org>
22863
22864         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
22865         for the declaration of strsep.
22866
22867 2004-10-05  Bruno Haible  <bruno@clisp.org>
22868
22869         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
22870
22871 2004-10-04  Simon Josefsson  <jas@extundo.com>
22872
22873         * modules/memmem: New file.
22874         * tests/test-memmem.c: New file.
22875         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
22876
22877 2004-10-04  Simon Josefsson  <jas@extundo.com>
22878
22879         * m4/memmem.m4: New file.
22880
22881 2004-10-04  Simon Josefsson  <jas@extundo.com>
22882
22883         * lib/memmem.h: New file.
22884         * lib/memmem.c: New file, taken from glibc.
22885
22886 2004-10-04  Simon Josefsson  <jas@extundo.com>
22887
22888         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
22889         '#ifdef USE_UNLOCKED_IO'.
22890
22891 2004-10-04  Simon Josefsson  <jas@extundo.com>
22892
22893         * config/srclist.txt: Add memmem from glibc.
22894
22895 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
22896
22897         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
22898
22899         * modules/argmatch, modules/argp, modules/closeout, modules/error,
22900         modules/exclude, modules/getdate, modules/getline,
22901         modules/getndelim2, modules/getpass, modules/getpass-gnu,
22902         modules/getusershell, modules/linebuffer, modules/md5,
22903         modules/mountlist, modules/posixtm, modules/readtokens,
22904         modules/readutmp, modules/regex, modules/sha1,
22905         modules/version-etc, modules/yesno:
22906         Remove dependency on unlocked-io.
22907
22908 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
22909
22910         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
22911
22912         * m4/unlocked-io.m4: Add copyright notice.
22913         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
22914
22915 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
22916
22917         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
22918         * lib/xmalloc.c (xmemdup): Likewise.
22919         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
22920         XFREE): Remove these long-obsolescent macros.
22921         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
22922         * lib/xstrdup.c: Remove.
22923
22924         * lib/regex.c (re_comp): Cast gettext return value to char *,
22925         Problem reported by Martin Neitzel via Mark D. Baushke.
22926
22927 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
22928
22929         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
22930         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
22931         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
22932         regex.c, sha1.c, version-etc.c, yesno.c:
22933         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
22934         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
22935         the includer's responsibility.
22936
22937         Sync from coreutils.
22938
22939         * lib/modechange.c (mode_compile): Don't decrement a pointer that
22940         points to the start of a string, as the C Standard says the
22941         resulting behavior is undefined.
22942
22943         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
22944         simple -> simple_backups, numbered_existing ->
22945         numbered_existing_backups, numbered -> numbered_backups
22946         to avoid shadowing problems.  All uses changed.
22947         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
22948         * lib/backupfile.c (check_extension, numbered_backup):
22949         Rename locals to avoid shadowing 'basename'.
22950         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
22951         once.
22952
22953         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
22954         * lib/.cvsignore: Add getopt.h.
22955
22956 2004-10-04  Bruno Haible  <bruno@clisp.org>
22957
22958         * modules/README: New file.
22959         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
22960         not a module.
22961
22962 2004-10-02  Jim Meyering  <jim@meyering.net>
22963
22964         * lib/dirfd.h, getpagesize.h: Add copyright notice.
22965
22966 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22967
22968         * modules/strsep: New file.
22969
22970 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22971
22972         * m4/strsep.m4: New file.
22973
22974 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22975
22976         * lib/strsep.h: New file.
22977         * lib/strsep.c: New file.
22978
22979 2004-10-01  Simon Josefsson  <jas@extundo.com>
22980
22981         * lib/snprintf.c (snprintf): Handle size==0.
22982
22983 2004-10-01  Simon Josefsson  <jas@extundo.com>
22984             Bruno Haible  <bruno@clisp.org>
22985
22986         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
22987         (snprintf): Declare 'args'.
22988
22989 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
22990
22991         * lib/snprintf.c: Remove comments as to why each header is needed.
22992
22993 2004-10-01  Bruno Haible  <bruno@clisp.org>
22994
22995         * MODULES.html.sh: Add strsep.
22996
22997 2004-09-30  Simon Josefsson  <jas@extundo.com>
22998
22999         * modules/snprintf: New file.
23000
23001 2004-09-30  Simon Josefsson  <jas@extundo.com>
23002
23003         * m4/snprintf.m4: New file.
23004
23005 2004-09-30  Simon Josefsson  <jas@extundo.com>
23006
23007         * lib/snprintf.h, lib/snprintf.c: New files.
23008
23009 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23010
23011         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
23012         (hol_entry_help): Never translate an empty string.
23013         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
23014         * lib/argp.h (OPTION_NO_TRANS): New option.
23015
23016 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
23017
23018         * modules/argp (Maintainer): Replace Simon Josefsson
23019         by Sergey Poznyakoff.
23020
23021 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
23022
23023         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
23024         changes merged back into glibc.
23025
23026 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
23027
23028         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
23029
23030 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
23031
23032         * lib/xvasprintf.c: Include xalloc.h.
23033         (xvasprintf): Use xalloc_die, not xmalloc_die.
23034
23035 2004-09-29  Bruno Haible  <bruno@clisp.org>
23036
23037         * modules/alloca-opt: New file, derived from modules/alloca.
23038         * modules/allocsa: Depend on alloca-opt instead of alloca.
23039         * modules/setenv: Likewise.
23040         * modules/vasnprintf: Likewise.
23041         * MODULES.html.sh: Add alloca-opt.
23042
23043 2004-09-28  Simon Josefsson  <jas@extundo.com>
23044
23045         * gnulib-tool: New parameter --lgpl, to asseert that modules are
23046         LGPL, and to replace license template from GPL to LGPL.
23047
23048 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
23049
23050         * modules/dummy: Change license to LGPL.
23051
23052 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
23053
23054         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
23055
23056 2004-09-24  Simon Josefsson  <jas@extundo.com>
23057
23058         * modules/minmax (License): Change from GPL to LGPL.
23059
23060 2004-09-23  Simon Josefsson  <jas@extundo.com>
23061
23062         * gnulib-tool (--import): Typo.
23063
23064 2004-09-23  Simon Josefsson  <jas@extundo.com>
23065
23066         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
23067
23068 2004-09-22  Bruno Haible  <bruno@clisp.org>
23069
23070         * modules/*: Add 'License' field.
23071         * gnulib-tool: Accept --extract-license option.
23072         (func_get_license): New function.
23073
23074 2004-09-21  Bruno Haible  <bruno@clisp.org>
23075
23076         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
23077         Reported by Simon Josefsson.
23078
23079 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23080
23081         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
23082         gl_AC_TYPE_LONG_LONG.
23083
23084 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23085
23086         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
23087
23088 2004-09-18  Simon Josefsson  <jas@extundo.com>
23089         and  Paul Eggert  <eggert@cs.ucla.edu>
23090
23091         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
23092         calls with autoreconf.  Define GL_LIB.
23093
23094 2004-09-14  Karl Berry  <karl@gnu.org>
23095
23096         * config/srclist.txt: unsync setenv.c, sigh.
23097
23098 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23099
23100         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
23101         Problem reported by Bruno Haible in:
23102         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
23103
23104 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23105
23106         * config/srclist.txt: Comment out argp-pvh.c.
23107
23108 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23109
23110         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
23111         in case some system header has #define'd it.  Problem reported by
23112         Soeren D. Schulze in
23113         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
23114
23115 2004-09-09  Karl Berry  <karl@gnu.org>
23116
23117         * regex.[ch]: delete from the root.  These were supposed to be
23118                 synced with emacs cvs, but this has not happened for about
23119                 a year, and anyway nothing else uses emacs regex.[ch].
23120                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
23121                 lib/regex[.ch] is untouched.
23122
23123 2004-09-09  Bruno Haible  <bruno@clisp.org>
23124
23125         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
23126
23127 2004-09-09  Bruno Haible  <bruno@clisp.org>
23128
23129         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
23130         modifications.
23131         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
23132
23133 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
23134
23135         * modules/xvasprintf: New file.
23136         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
23137
23138 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
23139
23140         * lib/xvasprintf.h: New file.
23141         * lib/xvasprintf.c: New file.
23142         * lib/xasprintf.c: New file.
23143
23144 2004-09-08  Bruno Haible  <bruno@clisp.org>
23145
23146         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
23147
23148 2004-09-08  Bruno Haible  <bruno@clisp.org>
23149
23150         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
23151         length is > INT_MAX.
23152         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
23153         more.
23154
23155 2004-09-08  Bruno Haible  <bruno@clisp.org>
23156
23157         * lib/stdint_.h: New file, taken from GNU clisp.
23158
23159 2004-09-08  Bruno Haible  <bruno@clisp.org>
23160             Oskar Liljeblad  <oskar@osk.mine.nu>
23161
23162         * modules/stdint: New file.
23163         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
23164
23165 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23166
23167         Import from coreutils.
23168         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
23169         strings on unbounded length.  alloca's performance benefits aren't
23170         that important here.
23171         (V_STRDUP): Remove.
23172         (parse_with_separator): New function, with most of the internals
23173         of the old parse_user_spec.  Allow user to omit both user and group,
23174         for compatibility with FreeBSD.
23175         Clone only the user name, not the entire spec.
23176         Do not set *uid, *gid unless entirely successful.
23177         Avoid memory leak in some failing cases.
23178         Fix regression for USER.GROUP reported by Dmitry V. Levin in
23179         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
23180         (parse_user_spec): Rewrite to use parse_with_separator.
23181
23182 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23183
23184         * modules/userspec: Don't depend on alloca.
23185
23186 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23187
23188         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
23189
23190 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23191
23192         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
23193         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
23194         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
23195
23196 2004-08-16  Simon Josefsson  <jas@extundo.com>
23197
23198         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
23199         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
23200         Add --dry-run for --import.
23201         Let user provided command line parameters override configure.ac
23202         settings.
23203
23204 2004-08-12  Simon Josefsson  <jas@extundo.com>
23205
23206         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
23207         as discussed with Paul Eggert in threads rooted at
23208         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
23209         and
23210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
23211         Before, the test was empty, and relied on ELIDE_CODE in source
23212         code.)
23213         (gl_PREREQ_GETOPT): New macro.
23214         (gl_GETOPT): Use them.
23215
23216 2004-08-12  Simon Josefsson  <jas@extundo.com>
23217
23218         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
23219         * lib/getopt_.h: Renamed from getopt.h.
23220
23221 2004-08-12  Simon Josefsson  <jas@extundo.com>
23222
23223         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
23224         Change default library name from libfoo to libgnu.
23225         Now, if you have a configure.ac that says:
23226                 gl_SOURCE_BASE(gl)
23227                 gl_M4_BASE(gl/m4)
23228                 gl_MODULES(error getopt etcetera)
23229                 gl_INIT
23230         you can import all you need by running:
23231                 ../gnulib/gnulib-tool --import
23232
23233         * modules/getopt (Files): Rename getopt.h to getopt_.h.
23234         (Makefile.am): Rewrite, use logic from argz.
23235         (Include): Use <getopt.h> instead of "getopt.h".
23236
23237 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23238
23239         * modules/argp (Files): Add m4/unlocked-io.m4.
23240         (Depends-on): Add extensions.
23241
23242 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23243
23244         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
23245         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
23246         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
23247         Check for program_invocation_name, program_invocation_short_name,
23248         flockfile, funlockfile, features.h, _getopt_long_only_r.
23249
23250 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23251
23252         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
23253         its complicated substitute.
23254         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
23255         and program_invocation_name.
23256         (__argp_basename) [!_LIBC]: Remove; the only use was
23257         replaced by its body.
23258         (__argp_short_program_name): Change condition from
23259         !defined __argp_short_program_name to
23260         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
23261         to match argp-namefrob.h.
23262         (__argp_failure): Don't assume strerror_r returns char *.
23263         * lib/argp-parse.c (N_): Define unconditionally.
23264         (argp_default_options): Fill out initializers with 0 to avoid
23265         gcc warnings.
23266
23267 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23268
23269         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
23270         getopt1.c.
23271
23272 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23273
23274         Merge from coreutils.
23275
23276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
23277
23278         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
23279         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
23280
23281 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23282
23283         Merge from coreutils.
23284
23285         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
23286         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
23287         for Reliant Unix 5.43.
23288
23289         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
23290         (union fooround): Use uintmax_t, not long int.
23291         The rest is a merge from libc:
23292         [defined _LIBC]: Include <shlib-compat.h>.
23293         (_obstack) [defined _LIBC]: Remove after 2.3.4.
23294
23295         * lib/settime.c (settime): Recode to avoid warning with
23296         Sun Forte C 6U2.
23297
23298         * lib/strverscmp.c: Convert to UTF-8.
23299
23300 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23301
23302         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
23303         m4/uintmax_t.m4.
23304
23305 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23306
23307         * modules/xalloc-die: New file.
23308         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
23309
23310         * modules/md5 (Files): Add m4/uint32_t.m4.
23311         * modules/sha1: Renamed from modules/sha.
23312         (Files):
23313         Rename lib/sha.h to lib/sha1.h.
23314         Rename lib/sha.c to lib/sha1.c.
23315         Rename m4/sha.m4 to m4/sha1.m4.
23316         (lib_SOURCES): Likewise.
23317         (configure.ac): Rename gl_SHA to gl_SHA1.
23318         (Include): sha.h -> sha1.h.
23319
23320 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23321
23322         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
23323         * m4/sha1.m4: Renamed from sha.m4.
23324         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
23325
23326 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23327
23328         * lib/obstack.h (obstack_empty_p):
23329         Don't assume that chunk->contents is suitably aligned.
23330         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
23331         Likewise. Problem reported by Benno in
23332         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
23333
23334         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
23335         readable.  This could be improved further but it'd take some work.
23336
23337 2004-08-08  Simon Josefsson  <jas@extundo.com>
23338
23339         * modules/xgethostname (Depends-on): Remove exit and error (not
23340         used).
23341
23342         * modules/getpass-gnu: Add getpass.h.
23343         (Depends-on): Add stdbool.
23344         * modules/getpass: Add getpass.h.
23345
23346 2004-08-08  Simon Josefsson  <jas@extundo.com>
23347
23348         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
23349         Check getpass declaration.
23350
23351 2004-08-08  Simon Josefsson  <jas@extundo.com>
23352
23353         * lib/xgethostname.c: Don't include error.h (not used).
23354
23355         * lib/getpass.h: Add.
23356         * lib/getpass.c: Include getpass.h first.
23357
23358 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
23359
23360         * lib/xalloc-die.c: New file.
23361         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
23362         All uses removed.
23363         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
23364         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
23365         xalloc-die.c.
23366         (_, N_, xalloc_die): Move to xalloc-die.c.
23367         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
23368         so that we needn't mess with xalloc_msg_memory_exhausted.
23369
23370         * lib/sha1.h: Renamed from sha.h.
23371         (SHA1_H): Renamed from _SHA_H.
23372         (sha1_ctx): Renamed from sha_ctx.
23373         (sha1_init_ctx): Renamed from sha_init_ctx.
23374         (sha1_process_block): Renamed from sha_process_block.
23375         (sha1_process_bytes): Renamed from sha_process_bytes.
23376         (sha1_finish_ctx): Renamed from sha_finish_ctx.
23377         (sha1_read_ctx): Renamed from sha_read_ctx.
23378         (sha1_stream): Renamed from sha_stream.
23379         (sha1_buffer): Renamed from sha_buffer.
23380         * lib/sha1.c: Likewise; renamed from sha.c.
23381         Do not include <sys/types.h>.
23382         Include <stddef.h> rather than <stdlib.h>.
23383
23384 2004-08-08  Bruno Haible  <bruno@clisp.org>
23385
23386         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
23387         FILESYSTEM_PREFIX_LEN.
23388         * lib/progreloc.c: Likewise.
23389         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
23390
23391 2004-08-06  Simon Josefsson  <jas@extundo.com>
23392
23393         * modules/progname (Depends-on): Don't depend on stdbool.
23394
23395 2004-08-06  Simon Josefsson  <jas@extundo.com>
23396
23397         * modules/getsubopt: New file.
23398         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23399         getsubopt.
23400
23401 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23402
23403         More merge from coreutils.
23404
23405         * m4/utimens.m4, m4/utimecmp.m4: New files.
23406         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
23407         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
23408         prereq.m4, sha.m4: Import changes from coreutils.
23409
23410 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23411
23412         More merge from coreutils.
23413         * modules/raise, modules/readtokens0, modules/utimens:
23414         * modules/utimecmp, module/xnanosleep: New files.
23415         * modules/strftime: Add lib/strftime.h.
23416         Change include from <time.h> to "strftime.h".
23417         * modules/yesno: Add lib/yesno.h.
23418         * modules/backupfile: Remove lib/addext.c.
23419         * modules/euidaccess: Add stat-macros.h.
23420         * modules/canonicalize, modules/euidaccess,
23421         modules/filemode, modules/lchown, modules/makepath,
23422         modules/rmdir, modules/stat: Likewise.
23423
23424 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23425
23426         Merge from tar.
23427         * lib/argp-help.c (make_hol, hol_append): Don't assume that
23428         SIZE_MAX is a valid preprocessor constant.
23429         (__argp_basename): Change from "#ifndef _LIBC"
23430         to "#ifndef __argp_short_program_name", so that
23431         we don't compile these functions for tar.
23432
23433         More merges from coreutils.
23434         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
23435         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
23436         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
23437         * lib/addext.c: Remove; no longer needed.
23438         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
23439         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
23440         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
23441         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
23442         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
23443         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
23444         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
23445         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
23446         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
23447         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
23448         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
23449         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
23450         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
23451         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
23452         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
23453         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
23454         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
23455         Import changes from coreutils.
23456
23457 2004-08-05  Simon Josefsson  <jas@extundo.com>
23458
23459         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
23460
23461 2004-08-05  Simon Josefsson  <jas@extundo.com>
23462
23463         * m4/getsubopt.m4: New file.
23464
23465 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         Merge from coreutils.
23468
23469         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
23470         * m4/getcwd-path-max.m4: New files.
23471
23472         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
23473         FILESYSTEM_PREFIX_LEN ->
23474         FILE_SYSTEM_PREFIX_LEN.
23475         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
23476         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
23477         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
23478         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
23479
23480         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
23481         prerequisite modules now handle the DOS stuff.
23482         Don't check for unistd.h.
23483
23484 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23485
23486         Merge from coreutils.
23487
23488         * lib/.gdb-history: Remove; this doesn't belong here.
23489
23490         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
23491         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
23492         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
23493         * lib/getcwd.c: New files.
23494
23495         * lib/dirname.h: Include <stdbool.h>.
23496         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
23497         for consistency with POSIX terminology.  All uses changed.
23498         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
23499         (strip_trailing_slashes): Use bool for booleans.
23500         * lib/stripslash.c (strip_trailing_slashes): Likewise.
23501
23502         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
23503         sometimes returns a positive errno value even when it succeeds.
23504         (print_errno_message) [!LIBC]: Fall back on strerror if
23505         __strerror_r fails.
23506
23507         * lib/path-concat.c (mempcpy): Don't define if a system header defines
23508         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
23509         (longest_relative_suffix): New function.
23510         (path_concat): Use it.  Assume first argument is not NULL.
23511         Port to DOS.  Omit redundant separators.
23512         Report an error instead of returning NULL.
23513         Use mempcpy instead of memcpy.
23514         (xpath_concat): Remove: not declared or used.
23515
23516         * lib/same.h: Include <stdbool.h>
23517         (same_name): Return bool, not int.
23518         * lib/same.c (same_name): Likewise.
23519         (errno): Don't declare; we assume C89 or better now.
23520
23521         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
23522         if not already defined.
23523
23524         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
23525         * lib/dup-safer.c (errno): Likewise.
23526
23527 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23528
23529         Merge from coreutils.
23530         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
23531         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
23532         * modules/path-concat: Don't depend on strdup.
23533
23534 2004-08-03  Simon Josefsson  <jas@extundo.com>
23535
23536         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
23537         * lib/progname.h: Don't include stdbool.h.
23538
23539 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23540
23541         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
23542         * MODULES.html.sh (func_all_modules): Remove fatal.
23543
23544 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23545
23546         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
23547
23548 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23549
23550         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
23551         working.
23552
23553 2004-08-02  Simon Josefsson  <jas@extundo.com>
23554
23555         * lib/getsubopt.h: New file, with comments from Bruno Haible.
23556         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
23557         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
23558
23559 2004-08-01  Simon Josefsson  <jas@extundo.com>
23560
23561         * lib/xgetdomainname.c: Include stdlib.h, for free().
23562
23563 2004-07-19  Bruno Haible  <bruno@clisp.org>
23564
23565         * MODULES.html.sh (func_all_modules): Add dummy.
23566
23567 2004-07-16  Simon Josefsson  <jas@extundo.com>
23568
23569         * modules/dummy: New file.
23570
23571 2004-07-16  Simon Josefsson  <jas@extundo.com>
23572
23573         * lib/dummy.c: New file.
23574
23575 2004-07-16  Bruno Haible  <bruno@clisp.org>
23576
23577         * lib/backupfile.h: Add extern "C" for C++.
23578         * lib/closeout.h: Likewise.
23579         * lib/copy-file.h: Likewise.
23580         * lib/findprog.h: Likewise.
23581         * lib/full-write.h: Likewise.
23582         * lib/pathname.h: Likewise.
23583         * lib/progname.h: Likewise.
23584         * lib/stpcpy.h: Likewise.
23585         * lib/stpncpy.h: Likewise.
23586         * lib/strcase.h: Likewise.
23587         * lib/strstr.h: Likewise.
23588         * lib/xalloc.h: Likewise.
23589
23590         * lib/mbswidth.h: Add extern "C" for C++.
23591         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
23592
23593 2004-07-13  Robert Millan  <robertmh@gnu.org>
23594
23595         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
23596
23597 2004-07-09  Simon Josefsson  <jas@extundo.com>
23598
23599         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
23600         failed without this.)
23601
23602 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23603
23604         * modules/chown (Files): Add lib/fchown-stub.c, since
23605         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
23606
23607 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23608
23609         * lib/fchown-stub.c: New file.
23610
23611 2004-06-24  Jim Meyering  <jim@meyering.net>
23612
23613         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
23614
23615 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23616
23617         * modules/argz: Omit "#include".
23618
23619         * MODULES.html.sh (func_all_modules): Add calloc, to match
23620         2004-06-01 addition of calloc module.
23621
23622 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23623
23624         * m4/argz.m4: New file, which is autoupdated from libtool.
23625
23626 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23627
23628         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
23629         libtool.
23630
23631 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23632
23633         * config/srclist-update: Don't insist on "USA." before the
23634         close-comment, as libtool omits the period and puts the */ on a
23635         separate line.
23636         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
23637         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
23638
23639 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
23640
23641         * modules/argz: New file.
23642         * MODULES.html.sh (func_all_modules): Add argz.
23643
23644 2004-06-12  Jim Meyering  <jim@meyering.net>
23645         and  Paul Eggert  <eggert@cs.ucla.edu>
23646
23647         * modules/hash (Files): Add lib/xalloc.h.
23648         * modules/pipe (Depends-on): Add wait-process.
23649         * modules/stat (Depends-on): Add xalloc.
23650         * modules/userspec (Files): Add lib/userspec.h.
23651         * modules/xstrto
23652
23653         Upgrade from gettext-0.13.
23654         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
23655         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
23656         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
23657
23658 2004-06-10  Jim Meyering  <jim@meyering.net>
23659
23660         * lib/calloc.c: New file.
23661
23662 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
23663
23664         * lib/getdate.y (yylex): Allow space between sign and number.
23665         Problem reported by Dan Jacobson.
23666
23667 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23668
23669         Merge from coreutils CVS.
23670
23671         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
23672         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
23673         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
23674         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
23675         xstrtol.m4: Fix copyright date and/or serial number.
23676
23677         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
23678         See if we need an fchown replacement.
23679         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
23680         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
23681         and use the replacement function if we detect either defect.
23682
23683         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
23684         gl_UTIMECMP.
23685
23686 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23687         and  Jim Meyering  <jim@meyering.net>
23688
23689         Merge from coreutils CVS.
23690
23691         * lib/stat-macros.h: New file, with contents from file-type.h
23692         and coreutils' system.h.
23693         * lib/file-type.c: Include "stat-macros.h".
23694         * lib/file-type.h (file_type): Move all macro definitions to new file,
23695         stat-macros.h.
23696
23697         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
23698         Wrap old code with this conditional.
23699         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
23700         function that does not dereference symlinks.
23701         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
23702
23703         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
23704         dependency problems.
23705         (xreadlink): Accept new arg SIZE, for efficiency.
23706         All decls and uses changed.
23707         * lib/xreadlink.h: Include <stddef.h>, for size_t.
23708
23709         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
23710         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
23711
23712         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
23713         sysexits.h.
23714
23715 2004-06-01  Jim Meyering  <jim@meyering.net>
23716
23717         * m4/calloc.m4: New file.
23718
23719 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
23720
23721         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
23722         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
23723         Also, fix a typo in a diagnostic.
23724
23725 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23726
23727         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
23728         or AC_FUNC_REALLOC.
23729
23730 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23731
23732         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
23733         macros to be defined.
23734         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
23735         the allocator returns NULL because the requested size is zero.
23736
23737 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
23738
23739         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
23740         var.  Add comment explaining why libc still defines it.  This
23741         merges the following patch from glibc:
23742         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
23743
23744 2004-05-20  Andreas Schwab  <schwab@suse.de>
23745
23746         * m4/free.m4: Replace free if it not known to work, not the other
23747         way round.
23748
23749 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23750
23751         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
23752         present in glibc since revision 1.1 of this file.
23753         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
23754         obstack_alignment_mask, obstack_alloc, obstack_base,
23755         obstack_blank, obstack_blank_fast, obstack_chunk_size,
23756         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
23757         obstack_grow0, obstack_init, obstack_int_grow,
23758         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
23759         obstack_next_free, obstack_object_size, obstack_ptr_grow,
23760         obstack_ptr_grow_fast, obstack_room): Remove declarations of
23761         nonexistent functions.
23762
23763 2004-05-18  Karl Berry  <karl@gnu.org>
23764
23765         * config/srclist.txt: break link for vasnprintf.c.
23766
23767 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23768
23769         Port obstack to the AS/400, where pointers are 16 bytes wide and
23770         you cannot cast an integer to a valid pointer.  This patch is
23771         currently waiting to be integrated into glibc; see
23772         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
23773
23774         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
23775         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
23776         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
23777         (struct obstack): temp member is now a union of a pointer and
23778         an integer, instead of an integer.  All integer uses changed.
23779         This does not affect the physical layout of struct obstack,
23780         except on hosts (like the AS/400) where the size or alignment of
23781         void * is greater than that of ptrdiff_t.
23782         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
23783         __STDC__)]: Store temporary in pointer member of union, not
23784         integer member.
23785         * lib/obstack.c: Include <stddef.h>, for offsetof.
23786         (struct fooalign): Remove; it doesn't need a name.
23787         (union fooround): Change double to long double, and add void *.
23788         (DEFAULT_ALIGNMENT): Use offsetof to compute.
23789         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
23790         not a macro.  Hence the values are always int; so remove all
23791         casts-to-int in uses.
23792
23793 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23794
23795         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
23796         we can get this patch merged into glibc.
23797
23798 2004-05-17  Derek R. Price  <derek@ximbiot.com>
23799             Paul Eggert  <eggert@cs.ucla.edu>
23800
23801         * m4/argp: Depend on alloca.
23802
23803 2004-05-17  Derek R. Price  <derek@ximbiot.com>
23804             Paul Eggert  <eggert@cs.ucla.edu>
23805
23806         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
23807         freecoding.
23808
23809 2004-05-17  Bruno Haible  <bruno@clisp.org>
23810
23811         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
23812         precision that consists of a '.' followed by an empty digit string.
23813         Patch by Tor Lillqvist <tml@iki.fi>.
23814
23815 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23816
23817         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
23818         for backward compatibility with older code.  We need our own
23819         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
23820         it under some other name, and our alloca.h will define it.
23821
23822 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23823             Derek Price  <derek@ximbiot.com>
23824
23825         * lib/alloca.c: Include <alloca.h>, to get our interface.
23826         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
23827         include <alloca.h> first.  Use C89 prototype for alloca; this
23828         requires including <stddef.h> for size_t.  Use extern "C" if C++.
23829         Use #elif for simplicity, since we can assume C89 now.
23830         Don't try to source the system alloca.h since it will not be found
23831         and to prevent recursively including its replacement.
23832         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
23833         * lib/regex.c: Likewise.
23834
23835 2004-05-16  Derek Price  <derek@ximbiot.com>
23836             Paul Eggert  <eggert@cs.ucla.edu>
23837
23838         getline cleanup.  This changes the getndelim2 API: both order of
23839         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
23840         no delimiter).
23841
23842         * lib/getline.c: Don't include stddef.h or stdio.h, since our
23843         interface does that.
23844         (getline): Always use getdelim, so that we don't have two
23845         copies of this code.
23846         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
23847         if available.
23848         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
23849         (GETNDELIM2_MAXIMUM): New macro.
23850         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
23851         instead of the old practice of delim2==0.  All callers changed.
23852         Return -1 on overflow, instead of returning junk.
23853         Do not set *linesize unless allocation succeeds.
23854         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
23855         that we include sys/types.h.
23856         * lib/getnline.h: Likewise.
23857         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
23858         (getndelim2): Reorder arguments.
23859         * lib/getnline.c (getnline, getndelim):
23860         Don't discard the NMAX argument.
23861         (getnline): Invoke getndelim, to avoid code duplication.
23862         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
23863         of (size_t) -1 by callers of the getnline family.
23864
23865 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
23866
23867         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
23868         Check for gettimeofday.
23869         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
23870         Check for settimeofday, stime.
23871
23872 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
23873
23874         * lib/nanosleep.c (suspended): Change its type from int to
23875         sig_atomic_t volatile.
23876         (first_call): Make it private to rpl_nanosleep, and have it
23877         be zero initially as that's a bit faster.
23878         (my_usleep): Round up fractional times instead of truncating them,
23879         as this is the usual meaning for 'sleep'.
23880
23881         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
23882         doesn't work.
23883         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
23884         (ENOSYS): Define if not defined.
23885         (settime): Fall back on stime if it exists and settimeofday fails.
23886         But don't bother with fallbacks if a method fails with errno == EPERM.
23887
23888 2004-05-11  Jim Meyering  <jim@meyering.net>
23889
23890         Prior to this change, the save_cwd caller required read access to the
23891         current directory on most systems (ones with the fchdir function).
23892
23893         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
23894         fails, try write-only, and finally, resort to using xgetcwd.
23895
23896 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23897
23898         * lib/obstack.c, obstack.h: Import changes from libc.
23899
23900 2004-04-28  Bruno Haible  <bruno@clisp.org>
23901
23902         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
23903         also implicitly appends .exe to executables.
23904         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
23905         accepts Windows pathnames.
23906         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23907         Treat Cygwin like Windows, since it now accepts Windows pathnames.
23908         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23909         Treat Cygwin like Windows, since it now accepts Windows pathnames.
23910         Reported by Derek Robert Price <derek@ximbiot.com>.
23911
23912 2004-04-21  Karl Berry  <karl@gnu.org>
23913
23914         * config/srclist.txt (localcharset.c): break sync.
23915
23916 2004-04-20  Paul Eggert  <eggert@twinsun.com>
23917
23918         * m4/host-os.m4: Add a copyright notice.
23919
23920 2004-04-20  Jim Meyering  <jim@meyering.net>
23921
23922         Change UTILS_ to gl_ in AC_DEFINE'd names.
23923         Change utils_- and jm_-prefixed variables, too.
23924         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
23925         UTILS_FUNC_MKDIR_TRAILING_SLASH.
23926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
23927
23928         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
23929         Don't emit trailing blanks.
23930         Also rename jm_-prefixed variables to have gl_ prefix.
23931
23932         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
23933         Also rename jm_-prefixed variables to have gl_ prefix.
23934
23935         * m4/jm-macros.m4: Reflect the renamings.
23936         * m4/prereq.m4: Likewise.
23937
23938 2004-04-20  Jim Meyering  <jim@meyering.net>
23939
23940         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
23941         memory.
23942
23943 2004-04-20  Jim Meyering  <jim@meyering.net>
23944             Bruno Haible  <bruno@clisp.org>
23945
23946         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
23947         memory when realloc fails.
23948
23949 2004-04-19  Jim Meyering  <jim@meyering.net>
23950
23951         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
23952         now that readutmp.c may call `free (0)'.
23953
23954 2004-04-19  Bruno Haible  <bruno@clisp.org>
23955
23956         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
23957         * m4/inttypes_h.m4: Likewise.
23958         * m4/stdint_h.m4: Likewise.
23959         * m4/intmax_t.m4: Likewise.
23960         * m4/uintmax_t.m4: Likewise.
23961
23962 2004-04-18  Jim Meyering  <jim@meyering.net>
23963
23964         * m4/prereq.m4: Don't forbid jm_ prefix.
23965
23966         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
23967         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
23968         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
23969         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
23970         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
23971         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
23972         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
23973         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
23974         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
23975         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
23976         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
23977         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
23978         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
23979         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
23980         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
23981         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
23982         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
23983         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
23984         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
23985
23986 2004-04-18  Jim Meyering  <jim@meyering.net>
23987
23988         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
23989         failure, don't leak memory and do call END_UTMP_ENT.
23990
23991 2004-04-16  Jim Meyering  <jim@meyering.net>
23992
23993         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
23994         coreutils' stat program.
23995         (gl_PREREQ): Don't require jm_PREREQ_STAT.
23996
23997 2004-04-11  Paul Eggert  <eggert@twinsun.com>
23998
23999         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
24000         C89.
24001         (CHAR_BIT): Remove, since we assume C89.
24002         Include <stdint.h> if available, as per current Autoconf CVS advice.
24003
24004 2004-03-31  Jim Meyering  <jim@meyering.net>
24005
24006         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
24007         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
24008         * m4/xalloc.m4: Likewise.
24009
24010 2004-03-30  Paul Eggert  <eggert@twinsun.com>
24011
24012         Merge from coreutils.
24013
24014         * m4/inttostr.m4: New file.
24015         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
24016         Require AM_STDBOOL_H and gl_TIMESPEC instead.
24017         Require gl_CLOCK_TIME.
24018         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
24019
24020 2004-03-30  Paul Eggert  <eggert@twinsun.com>
24021
24022         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
24023         not bool, to be more consistent with Unix conventions.
24024         Suggested by Bruno Haible.
24025
24026         Merge from coreutils.
24027
24028         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
24029         * lib/umaxtostr.c: New files.
24030
24031         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
24032         the usual <time.h> dance.
24033         (get_date): Change signature to support fractional time stamps.
24034         All callers changed.
24035         * lib/getdate.y: Include "getdate.h" first, as we can now
24036         assume C89 and don't need to worry about 'const'.
24037         Similarly, include "unlocked-io.h" near start, not in middle.
24038         Include <limits.h>.
24039         (textint.value): Use long int rather than int.
24040         (textint.digits): Use size_t rather than int.
24041         (BILLION, LOG10_BILLION): New constants.
24042         (parser_control): New member rel_ns.  Members day_ordinal,
24043         time_zone, month, day, hour, minutes, rel_year, rel_month,
24044         rel_day, rel_hour, rel_minutes, rel_seconds
24045         are now long int, not int.  Member seconds is now struct timespec,
24046         not int.  New member timespec_seen.  Members dates_seen, days_seen,
24047         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
24048         not int.
24049         (%union.intval): Now long int, not int.
24050         New member timespec.
24051         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
24052         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
24053         (spec): Now is a timespec or an item list.
24054         (timespec, items): New nonterminals.
24055         (time, rel, relunit, number, get_date):
24056         Add support for fractional seconds.
24057         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
24058         (gmtime, localtime, mktime): Remove decls; not needed with C89.
24059         (to_hour): First arg is now long int, not int.
24060         (to_year): Returns long int, not int.
24061         Don't treat year -70 like 70.
24062         (tm_diff): Returns long int, not int.
24063         (lookup_word): Use bool instead of int when appropriate.
24064         (yylex): Use size_t for count, not int.
24065         Detect overflow when parsing large integer constants.
24066         Add support for fractions.
24067         (get_date): Make pointers 'const' if possible.
24068         Use more-portable code to detect integer overflow.
24069         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
24070         Don't use ctime; it's not reliable if the year has >4 digits.
24071
24072         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
24073         This is for compatibility with BSD.
24074
24075         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
24076         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
24077         From coreutils' system.h.
24078
24079         * lib/userspec.c: Don't include "posixver.h".
24080         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
24081         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
24082         compatible extension.  Simplify code by removing a boolean int
24083         that was always nonzero if a string was nonnull.
24084
24085 2004-03-30  Jim Meyering  <jim@meyering.net>
24086
24087         Merge from coreutils.
24088
24089         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
24090         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
24091         on some systems one must include <grp.h> before it.
24092         Reported by Christian Krackowizer.
24093
24094 2004-03-30  Jim Meyering  <jim@meyering.net>
24095
24096         Merge from coreutils.
24097
24098         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
24099
24100         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
24101         an empty input stream.
24102
24103         * lib/readtokens.c: Include <stdbool.h>.
24104         (readtoken): Use `size_t' rather than int/long.
24105         All callers adjusted.
24106         Use `bool' rather than `int' where appropriate.
24107         Use memset rather than an explicit loop.
24108         Use x2nrealloc rather than xrealloc.
24109         Allow the use of `\0' as a delimiter.
24110         (readtokens): Likewise.
24111         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
24112
24113 2004-03-30  Jim Meyering  <jim@meyering.net>
24114
24115         * m4/realloc.m4: Remove file, since now it does no more than
24116         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
24117         the `configure.ac' section of module/realloc.
24118         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
24119
24120 2004-03-30  Bruno Haible  <bruno@clisp.org>
24121
24122         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
24123         nonnull.
24124
24125 2004-03-29  Paul Eggert  <eggert@twinsun.com>
24126
24127         Merge changes to getloadavg.c from coreutils and Emacs.
24128
24129         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
24130         Define to an expression, not to the empty string.
24131         Include cloexec.h and xalloc.h.
24132         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
24133         Use set_cloexec_flag rather than rolling our own.
24134         * lib/cloexec.c, lib/cloexec.h: New files.
24135
24136 2004-03-29  Paul Eggert  <eggert@twinsun.com>
24137
24138         * m4/cloexec.m4: New file.
24139
24140 2004-03-18  Paul Eggert  <eggert@twinsun.com>
24141
24142         * lib/getopt.h: Sync with libc CVS.
24143
24144 2004-03-18  Paul Eggert  <eggert@twinsun.com>
24145             Bruno Haible  <bruno@clisp.org>
24146
24147         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
24148         mbswidth.
24149
24150 2004-03-18  Paul Eggert  <eggert@twinsun.com>
24151             Bruno Haible  <bruno@clisp.org>
24152
24153         * lib/mbswidth.h: Include <wchar.h> only if
24154         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
24155         <wchar.h>.
24156         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
24157
24158 2004-03-09  Paul Eggert  <eggert@twinsun.com>
24159
24160         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
24161         Sync with libc CVS.
24162         * lib/getopt_int.h: New file, also synced from libc.
24163
24164 2004-03-09  Paul Eggert  <eggert@twinsun.com>
24165
24166         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
24167         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
24168         Bring back getopt.c, getopt.h, getopt1.c.
24169
24170 2004-03-07  Paul Eggert  <eggert@twinsun.com>
24171
24172         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
24173         All uses changed.  Check for sa_sigaction member; this fixes
24174         a bug first reported by Jason Andrade in
24175         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
24176
24177 2004-03-07  Paul Eggert  <eggert@twinsun.com>
24178
24179         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
24180         '#if' expressions.  Unlike the code it replaces, it does not
24181         depend on (defined _SC_PAGESIZE).  However, it does depend on
24182         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
24183         first reported by Jason Andrade in
24184         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
24185
24186 2004-02-25  Simon Josefsson  <jas@extundo.com>
24187
24188         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
24189
24190 2004-02-25  Simon Josefsson  <jas@extundo.com>
24191
24192         * lib/strdup.h: New file.
24193         * lib/strdup.c: Include it.
24194         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
24195         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
24196
24197 2004-02-23  Karl Berry  <karl@gnu.org>
24198
24199         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
24200         (from fencepost.gnu.org:/gd/gnuorg).
24201
24202 2004-02-23  Karl Berry  <karl@gnu.org>
24203
24204         * config/srclistvars.sh (GNUORG) [karl]: redefine.
24205         * config/srclist.txt: add maintain/standards documents.
24206
24207 2004-02-18  Bruno Haible  <bruno@clisp.org>
24208
24209         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
24210         Reported by Derek Robert Price <derek@ximbiot.com>.
24211
24212 2004-02-16  Karl Berry  <karl@gnu.org>
24213
24214         * config/mkinstalldirs, install-sh: update from automake.
24215
24216 2004-02-06  Karl Berry  <karl@gnu.org>
24217
24218         * m4/po.m4: update from gettext 0.14.1.
24219
24220 2004-02-06  Karl Berry  <karl@gnu.org>
24221
24222         * lib/config.charset: update from gettext 0.14.1.
24223
24224 2004-02-05  Paul Eggert  <eggert@twinsun.com>
24225
24226         Add comments and code, prompted by suggestions from Bruno Haible
24227         for sh-quote.
24228         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
24229         describing the enum quoting_style values.
24230         * lib/quotearg.c (quotearg_alloc): New function.
24231         (quotearg_buffer_restyled): Treat lone { and } as special.
24232         Treat = as special.  Work around bug with older shells
24233         that "see" a '\' that is really the 2nd byte of a multibyte char.
24234         Quote empty string with shell_quoting_style.
24235
24236 2004-02-03  Bruno Haible  <bruno@clisp.org>
24237
24238         * m4/pipe.m4: New file, from GNU gettext.
24239
24240 2004-02-03  Bruno Haible  <bruno@clisp.org>
24241
24242         * lib/pipe.h: New file, from GNU gettext.
24243         * lib/pipe.c: New file, from GNU gettext.
24244
24245 2004-01-27  Bruno Haible  <bruno@clisp.org>
24246
24247         * m4/execute.m4: New file, from GNU gettext.
24248
24249 2004-01-27  Bruno Haible  <bruno@clisp.org>
24250
24251         * lib/execute.h: New file, from GNU gettext.
24252         * lib/execute.c: New file, from GNU gettext.
24253         * lib/w32spawn.h: New file, from GNU gettext.
24254
24255 2004-01-24  Paul Eggert  <eggert@twinsun.com>
24256
24257         Merge from diffutils.
24258
24259         * lib/file-type.c (file_type): Add typed memory objects.
24260         * lib/file-type.h (S_TYPEISTMO): New macro.
24261
24262         * lib/c-stack.h (c_stack_action): Remove argv argument.
24263         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
24264         (die): Don't calculate message unless segv_action returns.
24265         (get_stack_location, min_address_from_argv, max_address_from_argv,
24266         volatile stack_base, volatile_stack_size): Remove.
24267         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
24268         that every segmentation violation is a stack overflow.  (Ouch!)
24269         See Debian bug 136249 (still outstanding) for more info about why
24270         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
24271
24272 2004-01-24  Paul Eggert  <eggert@twinsun.com>
24273
24274         Exit-status fix from coreutils.
24275
24276         Use exit_failure consistently in place of EXIT_FAILURE,
24277         so that program exit statuses are consistent on failure.
24278
24279         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
24280         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
24281         * lib/argmatch.h: Comment fix to match the above.
24282         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
24283         Now a macro referring to exit_failure, instead of a separate
24284         variable.  Include "exitfail.h" to get it.
24285         * lib/xstrtol.h: Include "exitfail.h".
24286         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
24287
24288         * lib/long-options.c (parse_long_options): Use prototype
24289         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
24290         for clarity.
24291
24292 2004-01-21  Jim Meyering  <jim@meyering.net>
24293
24294         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
24295         so as not to conflict with a different-sized __mktime_internal
24296         function in GNU libc.
24297         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
24298         Problem building statically-linked `ls' reported by Michael Brunnbauer.
24299
24300 2004-01-20  Karl Berry  <karl@gnu.org>
24301
24302         * config/config.guess: update from config.
24303
24304         * config/srclistvars.sh: GNUWWWLICENSES for karl.
24305
24306 2004-01-20  Bruno Haible  <bruno@clisp.org>
24307
24308         Safer stack allocation.
24309         * lib/setenv.c: Include allocsa.h.
24310         (alloca): Remove fallback definition.
24311         (freea): Remove macro.
24312         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
24313         instead of freea.
24314
24315 2004-01-20  Bruno Haible  <bruno@clisp.org>
24316
24317         * m4/eealloc.m4: New file, from GNU gettext.
24318
24319 2004-01-20  Bruno Haible  <bruno@clisp.org>
24320
24321         * m4/allocsa.m4: New file, from GNU gettext.
24322
24323 2004-01-20  Bruno Haible  <bruno@clisp.org>
24324
24325         * lib/xallocsa.h: New file, from GNU gettext.
24326         * lib/xallocsa.c: New file, from GNU gettext.
24327
24328 2004-01-20  Bruno Haible  <bruno@clisp.org>
24329
24330         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
24331
24332 2004-01-20  Bruno Haible  <bruno@clisp.org>
24333
24334         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
24335         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
24336         specially.
24337
24338 2004-01-20  Bruno Haible  <bruno@clisp.org>
24339
24340         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
24341         patch.
24342
24343 2004-01-20  Bruno Haible  <bruno@clisp.org>
24344
24345         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
24346
24347 2004-01-20  Bruno Haible  <bruno@clisp.org>
24348
24349         * lib/eealloc.h: New file.
24350
24351 2004-01-20  Bruno Haible  <bruno@clisp.org>
24352
24353         * lib/binary-io.h: Avoid warnings on Cygwin.
24354
24355 2004-01-20  Bruno Haible  <bruno@clisp.org>
24356
24357         * lib/allocsa.h: New file, from GNU gettext.
24358         * lib/allocsa.c: New file, from GNU gettext.
24359
24360 2004-01-18  Karl Berry  <karl@gnu.org>
24361
24362         * doc/gpl.texi, doc/lgpl.texi: new files.
24363
24364 2004-01-18  Karl Berry  <karl@gnu.org>
24365
24366         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
24367         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
24368
24369 2004-01-15  Paul Eggert  <eggert@twinsun.com>
24370
24371         Merge from coreutils.
24372
24373         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
24374         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
24375         (gl_DEFAULT_POSIX2_VERSION): Move
24376         the documentation from 'configure' into 'config.hin',
24377         so that 'configure --help' isn't burdened by it and
24378         we don't have to worry about its formatting there.
24379         Reword the documentation so that it's more succinct
24380         and can be run together into a single paragraph.
24381         * m4/same.m4 (gl_SAME): Check for pathconf.
24382
24383 2004-01-15  Paul Eggert  <eggert@twinsun.com>
24384
24385         Merge from coreutils.
24386
24387         * lib/posixver.c: Include posixver.h.
24388
24389         * lib/same.c: Include <stdbool.h>, <limits.h>.
24390         (_POSIX_NAME_MAX): Define if not defined.
24391         (MIN): New macro.
24392         (same_name): If file names are silently truncated, report
24393         that the file names are the same if they are the same after
24394         the silent truncation.
24395
24396         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
24397         conversion function.
24398         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
24399         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
24400         longer needed.
24401
24402 2004-01-15  Jim Meyering  <jim@meyering.net>
24403
24404         Merge from coreutils.
24405
24406         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
24407         if no library is required.
24408         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
24409         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
24410         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
24411         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
24412         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
24413         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
24414         value, $ac_cv_search_crypt, if it's "none required".
24415         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
24416         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
24417         not gl_FUNC_GETLOADAVG.
24418         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
24419         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
24420
24421 2004-01-15  Jim Meyering  <jim@meyering.net>
24422
24423         Merge from coreutils.
24424
24425         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
24426         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
24427         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
24428
24429         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
24430         optional configure-time default.
24431
24432         * lib/version-etc.c (version_etc_copyright): Update copyright date.
24433
24434         * lib/xreadlink.c (xreadlink): Correct outdated comment.
24435
24436 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
24437
24438         Merge from coreutils.
24439
24440         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
24441         value, $ac_cv_search_nanosleep, if it's "none required".
24442
24443 2004-01-14  Paul Eggert  <eggert@twinsun.com>
24444
24445         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
24446         with like-named macro in fnmatch.c.
24447         (EXT): Use an internal constant instead.
24448
24449         Merge fnmatch patches from glibc.
24450         * lib/fnmatch.c (mbsinit): Remove define.
24451         Add libc_hidden_ver (__fnmatch, fnmatch).
24452         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
24453         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
24454
24455 2004-01-14  Karl Berry  <karl@gnu.org>
24456
24457         * config/install-sh: update from automake.
24458
24459 2004-01-13  Karl Berry  <karl@gnu.org>
24460
24461         * config/install-sh: update from automake.
24462
24463 2004-01-09  Karl Berry  <karl@gnu.org>
24464
24465         * config/install-sh: update from automake.
24466
24467 2004-01-05  Karl Berry  <karl@gnu.org>
24468
24469         * config/config.{sub,guess}: update from config.
24470
24471 2003-12-31  Karl Berry  <karl@gnu.org>
24472
24473         * config/depcomp: update from automake.
24474
24475 2003-12-14  Karl Berry  <karl@gnu.org>
24476
24477         * lib/config.charset: update from gettext-runtime.
24478
24479 2003-12-03  Paul Eggert  <eggert@twinsun.com>
24480
24481         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
24482         Bug reported by Alfred M. Szmidt.
24483
24484 2003-12-03  Bruno Haible  <bruno@clisp.org>
24485
24486         * m4/gettext.m4: Upgrade from gettext-0.13.
24487         * m4/po.m4: Upgrade from gettext-0.13.
24488         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
24489         * m4/intmax.m4: New file, from gettext-0.13.
24490         * m4/printf-posix.m4: New file, from gettext-0.13.
24491
24492 2003-11-29  Karl Berry  <karl@gnu.org>
24493
24494         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
24495
24496 2003-11-25  Paul Eggert  <eggert@twinsun.com>
24497             Bruno Haible  <bruno@clisp.org>
24498
24499         * lib/printf-parse.h: Don't include sys/types.h.
24500         (ARG_NONE): New macro.
24501         (char_directive): Change type of *arg_index fields to size_t.
24502         * lib/printf-parse.c: Don't include sys/types.h.
24503         (SSIZE_MAX): Remove macro.
24504         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
24505         Remove unnecessary overflow check.
24506         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
24507         fields.
24508
24509 2003-11-25  Bruno Haible  <bruno@clisp.org>
24510
24511         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
24512
24513 2003-11-25  Bruno Haible  <bruno@clisp.org>
24514
24515         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
24516         gt_TYPE_SSIZE_T.
24517
24518 2003-11-24  Paul Eggert  <eggert@twinsun.com>
24519
24520         * modules/alloca: Remove dependency on xalloc.
24521
24522 2003-11-24  Paul Eggert  <eggert@twinsun.com>
24523
24524         * lib/alloca.c: Remove dependency on xalloc module.
24525         (xalloc_die): Remove.
24526         (memory_full) [!defined emacs]: New macro.
24527         [!defined emacs]: Don't include xalloc.h.
24528         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
24529         address arithmetic overflows.  Change datatypes a bit to avoid
24530         unnecessary casts.
24531
24532 2003-11-22  Jim Meyering  <jim@meyering.net>
24533
24534         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
24535         s/size/size_t/.
24536
24537 2003-11-21  Karl Berry  <karl@gnu.org>
24538
24539         * config/config.{sub,guess}: update from config.
24540
24541 2003-11-18  Karl Berry  <karl@gnu.org>
24542
24543         * config/config.{sub,guess}: update from config.
24544
24545         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
24546
24547 2003-11-17  Paul Eggert  <eggert@twinsun.com>
24548
24549         * README: Mention that S+T cannot overflow if S is the size of
24550         an existing object and T is sufficiently small.
24551
24552 2003-11-17  Jim Meyering  <jim@meyering.net>
24553
24554         On systems without utime and without a utimes function capable of
24555         dealing with a NULL struct utimbuf* argument, this utime replacement
24556         could -- in unusual circumstances -- leak a file descriptor.
24557         * lib/utime.c: Include <unistd.h> and <errno.h>.
24558         (utime_null): Be sure to close `fd' and to preserve errno.
24559         Reported by Geoff Collyer via Arnold Robbins.
24560
24561 2003-11-17  Bruno Haible  <bruno@clisp.org>
24562
24563         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
24564         (Depends-on): Add xsize.
24565
24566 2003-11-17  Bruno Haible  <bruno@clisp.org>
24567
24568         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
24569
24570 2003-11-17  Bruno Haible  <bruno@clisp.org>
24571
24572         * lib/vasnprintf.c (alloca): Remove fallback definition.
24573         (freea): Remove definition.
24574         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
24575         Reported by Paul Eggert.
24576
24577 2003-11-16  Paul Eggert  <eggert@twinsun.com>
24578             Bruno Haible  <bruno@clisp.org>
24579
24580         Protect against address arithmetic overflow.
24581         * lib/printf-args.h: Include stddef.h.
24582         (arguments): Change type of field 'count' to size_t.
24583         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
24584         'unsigned int' where appropriate.
24585         * lib/printf-parse.h: Include sys/types.h.
24586         (char_directive): Change type of *arg_index fields to ssize_t.
24587         (char_directives): Change type of fields 'count', max_*_length to
24588         size_t.
24589         * lib/printf-parse.c: Include sys/types.h and xsize.h.
24590         (SSIZE_MAX): Define fallback value.
24591         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
24592         instead of 'int' where appropriate. Check a_allocated, d_allocated
24593         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
24594         * lib/vasnprintf.c: Include xsize.h.
24595         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
24596         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
24597         overflow. Avoid wraparound when converting a width or precision from
24598         decimal to binary.
24599
24600 2003-11-16  Bruno Haible  <bruno@clisp.org>
24601
24602         Update from GNU gettext.
24603         * lib/printf-parse.c: Generalize to it can be compiled for wide
24604         strings.
24605         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
24606         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
24607         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
24608         SNPRINTF): New macros.
24609         Don't include <alloca.h> if the file is used inside libintl.
24610         (local_wcslen): New function, for Solaris 2.5.1.
24611         (VASNPRINTF): Use it instead of wcslen.
24612
24613 2003-11-16  Bruno Haible  <bruno@clisp.org>
24614
24615         * lib/xsize.h (xmax): New function.
24616         (xsum, xsum3, xsum4): Declare as "pure" functions.
24617
24618 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24619
24620         * modules/xalloc (Files): Undo latest change, since xalloc.h
24621         no longer needs SIZE_MAX or PTRDIFF_MAX.
24622
24623 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24624
24625         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
24626         gl_PTRDIFF_MAX.
24627
24628 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24629
24630         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
24631         "return", to pacify some unknown compiler.  Problem reported
24632         by Joerg Schilling.
24633
24634 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24635
24636         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
24637         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
24638         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
24639         heuristic is just as accurate as far as we know, and it removes a
24640         dependency on size_max.m4 and ptrdiff_max.m4.
24641
24642 2003-11-11  Bruno Haible  <bruno@clisp.org>
24643
24644         * modules/xsize (Files): Add m4/size_max.m4.
24645         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
24646
24647 2003-11-11  Bruno Haible  <bruno@clisp.org>
24648
24649         * m4/size_max.m4: New file.
24650         * m4/ptrdiff_max.m4: New file.
24651         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
24652         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
24653         (gl_XALLOC): Invoke it.
24654
24655 2003-11-11  Bruno Haible  <bruno@clisp.org>
24656
24657         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
24658         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
24659         defined.
24660
24661 2003-11-10  Paul Eggert  <eggert@twinsun.com>
24662
24663         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
24664         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
24665         rejected some allocations of exactly SIZE_MAX - 2 bytes.
24666         From Bruno Haible.
24667         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
24668         not (size_t) -1, since it's defined here.
24669
24670 2003-11-09  Karl Berry  <karl@gnu.org>
24671
24672         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
24673
24674 2003-11-06  Paul Eggert  <eggert@twinsun.com>
24675
24676         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
24677         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
24678         Reject sizes of exactly SIZE_MAX bytes.
24679         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
24680         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
24681
24682 2003-11-05  Bruno Haible  <bruno@clisp.org>
24683
24684         * lib/xsize.h: Include limits.h, to avoid a possible collision with
24685         SIZE_MAX defined in <limits.h> on Solaris.
24686
24687 2003-11-04  Jim Meyering  <jim@meyering.net>
24688
24689         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
24690         variable names, rather than @VAR@.
24691         * modules/poll: Likewise.
24692
24693 2003-11-04  Bruno Haible  <bruno@clisp.org>
24694
24695         * modules/xsize: New file.
24696         * modules/linebreak: Depend on xsize.
24697         * MODULES.html.sh (func_all_modules): Add xsize.
24698
24699 2003-11-04  Bruno Haible  <bruno@clisp.org>
24700
24701         * m4/xsize.m4: New file.
24702
24703 2003-11-04  Bruno Haible  <bruno@clisp.org>
24704
24705         * lib/xsize.h: New file.
24706         * lib/linebreak.c: Include xsize.h.
24707         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
24708         argument for overflow.
24709         Suggested by Paul Eggert.
24710
24711 2003-11-03  Karl Berry  <karl@gnu.org>
24712
24713         * config/config.{guess,sub}: update from config.
24714
24715 2003-11-03  Jim Meyering  <jim@meyering.net>
24716
24717         * modules/userspec (lib_SOURCES): Add userspec.h.
24718         (Include): Add "userspec.h".
24719         Improve description.
24720
24721 2003-11-03  Jim Meyering  <jim@meyering.net>
24722
24723         * lib/userspec.c: Include "userspec.h".
24724         * lib/userspec.h: New file.
24725
24726 2003-11-03  Bruno Haible  <bruno@clisp.org>
24727
24728         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
24729
24730 2003-11-03  Bruno Haible  <bruno@clisp.org>
24731
24732         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
24733         available, to avoid (extremely rare) race condition.
24734         Suggested by Paul Eggert.
24735
24736 2003-11-02  Karl Berry  <karl@gnu.org>
24737
24738         * config/srclist.txt (vasprintf.c): sync broken, sigh.
24739
24740 2003-10-31  Paul Eggert  <eggert@twinsun.com>
24741
24742         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
24743         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
24744         (read_filesystem_list): Set and use me_type_malloced.
24745         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
24746         whatever the type happens to be), for brevity and consistency.
24747         Check for size calculation overflow on Alphas running OSF/1.
24748
24749 2003-10-31  Jim Meyering  <jim@meyering.net>
24750
24751         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
24752
24753         * lib/linebuffer.c: Include <string.h> for declaration of memset.
24754
24755 2003-10-30  Paul Eggert  <eggert@twinsun.com>
24756             Bruno Haible  <bruno@clisp.org>
24757
24758         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
24759         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
24760
24761 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24762
24763         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
24764         netbsd*-gnu*.  Suggested by Robert Millan.
24765
24766 2003-10-29  Paul Eggert  <eggert@twinsun.com>
24767
24768         * modules/group-member: Depend on stdbool.
24769
24770 2003-10-29  Paul Eggert  <eggert@twinsun.com>
24771
24772         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
24773
24774 2003-10-29  Paul Eggert  <eggert@twinsun.com>
24775
24776         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
24777         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
24778         after the 'gnu' in these cases.  This fixes some bugs in the
24779         previous change, and is based on suggestions by Robert Millan.
24780
24781 2003-10-29  Paul Eggert  <eggert@twinsun.com>
24782
24783         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
24784         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
24785         no longer needed.
24786         * lib/quotearg.c (quotearg_n_options): Use it.
24787         * lib/group-member.c: Include <stdbool.h>.
24788         (free_group_info): Arg is now const *; don't free arg.
24789         (get_group_info): Now returns bool and accepts struct group_info *,
24790         rather than returning a malloc'ed struct group_info *.
24791         All uses changed.  Check for overflow in internal size calculation.
24792
24793         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
24794         rather than xmalloc/xrealloc.
24795         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
24796         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
24797         conformance bug: the old code used a pointer after freeing the
24798         storage that it addressed.
24799         * lib/hash.c (hash_initialize): Simplify the code by using
24800         xalloc_oversized rather than doing it by hand.
24801         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
24802         the buffer preserved.  Use free and xmalloc instead.
24803         * lib/quotearg.c (quotearg_n_options): Likewise.
24804         Use a simpler test for size overflow.  Don't use xalloc_oversized
24805         because unsigned int might be wider than size_t (!); this suggests
24806         that we should switch from unsigned int to size_t for slot numbers.
24807
24808 2003-10-28  Paul Eggert  <eggert@twinsun.com>
24809
24810         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
24811         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
24812         NetBSD kernels.  Requested by Richard Stallman.
24813
24814 2003-10-27  Paul Eggert  <eggert@twinsun.com>
24815
24816         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
24817         to allocate the returned structure.  Do not allocate a subarray,
24818         as x2nrealloc will do that.
24819         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
24820         instead of xnrealloc.
24821         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
24822
24823 2003-10-27  Bruno Haible  <bruno@clisp.org>
24824
24825         * lib/stdbool_.h: Better support for BeOS.
24826
24827 2003-10-26  Paul Eggert  <eggert@twinsun.com>
24828
24829         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
24830         now uses inline.
24831
24832 2003-10-26  Paul Eggert  <eggert@twinsun.com>
24833
24834         * lib/xalloc.h (xalloc_oversized): New static inline function, for
24835         callers that want to do their own size-overflow checking.  Include
24836         <stdbool.h>, since xalloc_oversized returns bool.
24837         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
24838         to use xalloc_oversized.
24839
24840         Add two functions x2realloc, x2nrealloc, for programs that grow
24841         arrays dynamically by doubling their sizes.
24842         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
24843         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
24844         New functions.
24845
24846         Port to C99 semantics for 'inline' of external functions.
24847         Bug reported by Bruno Haible.
24848         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
24849         with the old contents of xnmalloc.
24850         (xnmalloc, xmalloc): Use it.
24851         (xnrealloc_inline): New static inline function,
24852         with the old contents of xnrealloc.
24853         (xnrealloc, xrealloc): Use it.
24854
24855         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
24856         that.
24857
24858 2003-10-26  Karl Berry  <karl@gnu.org>
24859
24860         * config/srclist.txt (COPYING.DOC): no longer available from
24861         /gd/gnuorg; don't know where the ultimate source is.
24862
24863 2003-10-25  Paul Eggert  <eggert@twinsun.com>
24864
24865         Fix several address-calculation bugs in the hash modules,
24866         plus some minor code cleanup.
24867
24868         * lib/hash.h: Include <stdbool.h>, for bool.
24869         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
24870         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
24871         hash_get_n_entries, hash_get_max_bucket_length,
24872         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
24873         hash_rehash): Use size_t rather than unsigned.
24874         * lib/hash.c (struct hash_table, hash_get_n_buckets,
24875         hash_get_n_buckets_used, hash_get_n_entries,
24876         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
24877         hash_get_entries, hash_do_for_each, hash_string, is_prime,
24878         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
24879         Likewise.
24880         (SIZE_MAX): Define if not defined.
24881         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
24882         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
24883         hash_print):
24884         Use const * when possible.
24885         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
24886         (check_tuning): Fix bug: if tuning parameters were very close to
24887         0 or 1, rounding errors could have caused subscript violations.
24888         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
24889         (hash_initialize): Add 'fail:' label
24890         to free table and return NULL, and use it to simplify code.
24891         Use calloc rather than clearing the storage ourself.
24892         (hash_initialize, hash_rehash): Check for arithmetic overflow in
24893         buffer size calculations.
24894         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
24895         Include <stddef.h>, for size_t.
24896         * lib/hash-pjw.c (hash_pjw): Likewise.
24897         Switch to method described by Bruno Haible.
24898         Include <limits.h>, for CHAR_BIT.
24899         (SIZE_BITS): New macro.
24900
24901 2003-10-23  Paul Eggert  <eggert@twinsun.com>
24902
24903         * m4/getline.m4 (AM_FUNC_GETLINE):
24904         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
24905         hosts.  Problem reported by Derek Robert Price in
24906         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
24907         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
24908         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
24909
24910 2003-10-21  Paul Eggert  <eggert@twinsun.com>
24911
24912         * lib/getndelim2.c (getndelim2): When size calculation overflows,
24913         ceiling the allocation at NMAX bytes rather than silently
24914         discarding input bytes before NMAX is reached.  This makes
24915         a difference only if NMAX exceeds SIZE_MAX / 2.
24916
24917         * lib/obstack.c: Merge from glibc.
24918         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
24919         Add libc_hidden_def (_obstack_newchunk).
24920         (_obstack_free) [! defined _LIBC]: Remove.
24921         [defined _LIBC]: Make a strong alias from obstack_free, rather than
24922         a clone of the function body.
24923         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
24924         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
24925
24926         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
24927         glibc.
24928         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
24929         arg to memcpy.
24930
24931         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
24932         (obstack_ptr_grow_fast, obstack_int_grow_fast):
24933         Don't use lvalue casts, as GCC plans to remove support for them
24934         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
24935         was also present in the non-GCC version, indicating that this
24936         code had always been buggy and had never been widely used.
24937         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
24938         Use the fast variant of each macro, rather than copying the
24939         definiens of the fast variant; that way, we'll be more likely to
24940         catch future bugs in the fast variants.
24941
24942 2003-10-20  Bruno Haible  <bruno@clisp.org>
24943
24944         * modules/wait-process: New file.
24945         * MODULES.html.sh (func_all_modules): Add wait-process.
24946
24947 2003-10-20  Bruno Haible  <bruno@clisp.org>
24948
24949         * m4/wait-process.m4: New file.
24950
24951 2003-10-20  Bruno Haible  <bruno@clisp.org>
24952
24953         * lib/wait-process.h: New file, from GNU gettext.
24954         * lib/wait-process.c: New file, from GNU gettext.
24955
24956 2003-10-19  Jim Meyering  <jim@meyering.net>
24957
24958         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
24959         HPUX 10.20.
24960
24961 2003-10-18  Karl Berry  <karl@gnu.org>
24962
24963         * config/config.guess: update from config.
24964
24965 2003-10-16  Paul Eggert  <eggert@twinsun.com>
24966
24967         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
24968         (getgroups): First arg is int, not size_t.
24969         Don't let 'free' mangle errno.
24970
24971 2003-10-16  Paul Eggert  <eggert@twinsun.com>
24972
24973         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
24974
24975 2003-10-16  Karl Berry  <karl@gnu.org>
24976
24977         * config/config.{guess,sub}: update from config.
24978
24979 2003-10-16  Jim Meyering  <jim@meyering.net>
24980
24981         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
24982         memcpy.
24983
24984 2003-10-15  Paul Eggert  <eggert@twinsun.com>
24985
24986         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
24987         (SIZE_MAX): Remove.
24988         (new_exclude, add_exclude_file): Initial size no longer needs to
24989         be a power of 2.
24990         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
24991         our own address arithmetic overflow checking.
24992
24993         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
24994         (fnmatch): Do not alloca more than 2000 wide characters;
24995         instead, use malloc for large buffers.
24996         Check for address arithmetic overflow, and return -1
24997         with errno set to ENOMEM in that case.
24998         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
24999         (NEW_PATTERN): Do not alloca more than 8000 bytes;
25000         instead, return -1.  Check for address arithmetic overflow.
25001
25002 2003-10-14  Paul Eggert  <eggert@twinsun.com>
25003
25004         Handle invalid suffixes and overflow independently, so that
25005         callers can treat them independently as needed.  Fix some bugs in
25006         suffix handling, e.g., "100k@" was not diagnosed as an invalid
25007         suffix for a human-readable blocksize.  The major caller-visible
25008         change is the addition of a new
25009         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
25010         that both overflow and suffix chars were found.
25011
25012         * lib/human.c (humblock): Don't check separately for invalid suffix
25013         char; that is xstrtoumax's job (now that its bug is fixed).
25014         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
25015         INTMAX_MAX]: New macros.
25016         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
25017         TYPE_MAXIMUM): New macros.
25018         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
25019         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
25020         if overflow occurs, as it's what __strtol does and it's more useful
25021         in practice.
25022         (__xstrtol): If __strtol reports some error other than ERANGE,
25023         reflect it to the caller as LONGINT_INVALID.  If it reports
25024         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
25025         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
25026         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
25027         value.
25028         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
25029         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
25030         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
25031         [defined UINTMAX_MAX]: New macros.
25032
25033 2003-10-14  Bruno Haible  <bruno@clisp.org>
25034
25035         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
25036
25037 2003-10-14  Bruno Haible  <bruno@clisp.org>
25038
25039         * m4/sig_atomic_t: New file, from GNU gettext.
25040         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
25041
25042 2003-10-14  Bruno Haible  <bruno@clisp.org>
25043
25044         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
25045         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
25046         Also use volatile where needed.
25047
25048 2003-10-12  Paul Eggert  <eggert@twinsun.com>
25049
25050         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
25051         Change maintainer from Bruno Haible to 'all'.
25052
25053 2003-10-12  Paul Eggert  <eggert@twinsun.com>
25054
25055         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
25056
25057 2003-10-12  Paul Eggert  <eggert@twinsun.com>
25058
25059         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
25060         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
25061         and define in terms of the other primitives.
25062         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
25063         (SIZE_MAX): Define if not already defined.
25064         (array_size_overflow): New function.
25065         (xalloc_die): Abort instead of exiting if 'error' returns.
25066         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
25067         (xmalloc, xrealloc): Use them.
25068         (xcalloc): Check for address arithmetic overflow.
25069         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
25070         a bit faster than strcpy.
25071
25072 2003-10-10  Simon Josefsson  <jas@extundo.com>
25073
25074         * modules/argp (Depends-on): Add restrict and strcase.
25075
25076 2003-10-10  Simon Josefsson  <jas@extundo.com>
25077
25078         * m4/argp.m4: Add AC_C_INLINE.
25079
25080 2003-10-08  Paul Eggert  <eggert@twinsun.com>
25081
25082         Merge getpass from libc, plus a few fixes.
25083
25084         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
25085         Include <stdbool.h>.
25086         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
25087         __fsetlocking to empty.
25088         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
25089         do include <bits/libc-lock.h>.
25090         Do not include <fcntl.h>; not needed.
25091         [_LIBC]: Include <wchar.h>.
25092         (NOTCANCEL_MODE): New macro.
25093         (flockfile, funlockfile) [_LIBC]: New macros.
25094         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
25095         [!_LIBC]: New macros.
25096         (call_fclose): New function.
25097         (getpass): Use it.  Save tty stream separately; this simplifies the
25098         code and makes it more reliable if stdin happens to equal stdout.
25099         Invoke __fsetlocking on tty.
25100         Handle thread cancellation if needed.
25101         Namespace cleanup (use __tcgetattr, __getline).
25102         Use bool for Booleans.
25103         [USE_IN_LIBIO]: Handle wide streams.
25104         [!_LIBC]: Unconditionally do the fseek, since we don't know what
25105         stream might go where.
25106
25107         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
25108         doesn't have to include <stdio.h> before us.
25109         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
25110         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
25111         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
25112         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
25113         if not declared, so that we can use getpass.c code from libc without
25114         rewriting it.
25115         (flockfile, ftrylockfile, funlockfile): New macros.
25116
25117 2003-10-08  Paul Eggert  <eggert@twinsun.com>
25118
25119         * modules/getpass: Depend on stdbool.
25120
25121 2003-10-08  Paul Eggert  <eggert@twinsun.com>
25122
25123         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
25124
25125 2003-10-07  Karl Berry  <karl@gnu.org>
25126
25127         * config/config.{guess,sub}: update from config.
25128
25129 2003-10-06  Jim Meyering  <jim@meyering.net>
25130             Bruno Haible  <bruno@clisp.org>
25131
25132         This lets translators provide better translations for the
25133         "Written by ..." part of --version output.
25134         * lib/version-etc.h: Include stdarg.h.
25135         (version_etc_copyright): Declare as readonly.
25136         (version_etc): Make this function variadic with a NULL-terminated list
25137         of author name strings.
25138         (version_etc_va): New declaration.
25139         * lib/version-etc.c: Include stdarg.h, stdlib.h.
25140         (version_etc_copyright): Declare as readonly.
25141         (version_etc_va): New function. Provide a different translatable string
25142         for each possible number of authors < 10. Abbreviate when there are 10
25143         authors or more.
25144         (version_etc): Make this function variadic. Call version_etc_va.
25145         Suggestion from Gary V. Vaughan.
25146
25147         * lib/long-options.h (parse_long_options): Change prototype: the
25148         authors string is moved to the end and becomes variadic.
25149         * lib/long-options.c: Include stdarg.h.
25150         (parse_long_options): Make this function variadic, too.
25151         Call version_etc_va, not version_etc.
25152
25153 2003-10-06  Bruno Haible  <bruno@clisp.org>
25154
25155         * modules/version-etc-2: Remove file.
25156         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
25157
25158 2003-10-06  Bruno Haible  <bruno@clisp.org>
25159
25160         * modules/fatal-signal: New file.
25161         * MODULES.html.sh (func_all_modules): Add fatal-signal.
25162
25163 2003-10-06  Bruno Haible  <bruno@clisp.org>
25164
25165         * m4/fatal-signal.m4: New file.
25166         * m4/signalblocking.m4: New file, from GNU gettext.
25167
25168 2003-10-06  Bruno Haible  <bruno@clisp.org>
25169
25170         * lib/version-etc-2.h: Remove file.
25171         * lib/version-etc-2.c: Remove file.
25172
25173 2003-10-06  Bruno Haible  <bruno@clisp.org>
25174
25175         * lib/fatal-signal.h: New file, from GNU gettext.
25176         * lib/fatal-signal.c: New file, from GNU gettext.
25177
25178 2003-10-05  Paul Eggert  <eggert@twinsun.com>
25179
25180         * README: Rework advice for preventing empty .o files.
25181         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
25182         not <sys/types.h>.
25183
25184 2003-10-04  Karl Berry  <karl@gnu.org>
25185
25186         * lib/argp*: update from libc.
25187
25188 2003-10-04  Karl Berry  <karl@gnu.org>
25189
25190         * config/config.{guess,sub}: update from config.
25191
25192 2003-10-02  Bruno Haible  <bruno@clisp.org>
25193
25194         * modules/lchown (Include): Add lchown.h.
25195         * modules/time_r (Include): Use "..." syntax.
25196         * modules/xgetdomainname (Include): Add xgetdomainname.h.
25197
25198 2003-10-01  Simon Josefsson  <jas@extundo.com>
25199
25200         * MODULES.html.sh (func_all_modules): Move gethostname from section
25201         'based on' to section 'lacking' POSIX:2001.
25202
25203 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
25204
25205         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
25206         to output mode on the same stream.
25207
25208 2003-09-29  Paul Eggert  <eggert@twinsun.com>
25209
25210         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
25211         Fix arg typo in previous patch.
25212
25213 2003-09-28  Jim Meyering  <jim@meyering.net>
25214
25215         * lib/error.c: Correct cpp indentation.
25216
25217 2003-09-27  Paul Eggert  <eggert@twinsun.com>
25218
25219         * modules/free: New file.
25220
25221 2003-09-27  Paul Eggert  <eggert@twinsun.com>
25222
25223         * m4/free.m4: New file.
25224
25225 2003-09-27  Paul Eggert  <eggert@twinsun.com>
25226
25227         * lib/minmax.h (MIN, MAX)
25228         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
25229         Omit the special code that used __typeof__, since we worry that
25230         it could be more trouble than it's worth.  See:
25231         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
25232         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
25233
25234         * lib/free.c: New file.
25235
25236 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
25237
25238         Trivial fixes to Makefile.am parts of module listings.
25239         * modules/strstr: Append strstr.h to lib_SOURCES.
25240         * modules/strcase: Likewise, for strcase.h.
25241
25242 2003-09-27  Karl Berry  <karl@gnu.org>
25243
25244         * config/mkinstalldirs: update from automake.
25245
25246 2003-09-26  Paul Eggert  <eggert@twinsun.com>
25247
25248         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
25249         (error_tail): Do not loop, reallocating temporary buffer, since
25250         the output cannot contain more wide characters than the input
25251         contains bytes, the size must be big enough already.  This avoids
25252         one potential size overflow calculation.  Check for size overflow
25253         when calculating temporary buffer size.  Free temporary buffer
25254         when done, if it was allocated with malloc; this plugs a memory
25255         leak.  Remove casts from void * to pointers, that are no longer
25256         needed now that we're assuming C89 or better.
25257
25258         Merge error changes from glibc.
25259
25260         * lib/error.c, error.h: Update copyright notice header to match glibc.
25261         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
25262         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
25263         Disable cancellation while printing error.
25264         * lib/error.h: Prepend __ to parameter names.
25265
25266 2003-09-26  Jim Meyering  <jim@meyering.net>
25267
25268         * lib/error.c (error_tail): Move some declarations
25269         into inner scope where the local variables are used.
25270
25271 2003-09-26  Bruno Haible  <bruno@clisp.org>
25272
25273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
25274         stpncpy().
25275         Don't define stpncpy through config.h; it's now done through stpncpy.h.
25276
25277 2003-09-26  Bruno Haible  <bruno@clisp.org>
25278
25279         * lib/stpncpy.h (gnu_stpncpy): New declaration.
25280         (stpncpy): Define as alias for gnu_stpncpy.
25281         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
25282
25283 2003-09-25  Simon Josefsson  <jas@extundo.com>
25284
25285         * lib/xgetdomainname.h: New file.
25286         * lib/xgetdomainname.c: New file.
25287
25288 2003-09-25  Simon Josefsson  <jas@extundo.com>
25289             Bruno Haible  <bruno@clisp.org>
25290
25291         * modules/getdomainname: New file.
25292         * modules/xgetdomainname: New file.
25293         * MODULES.html.sh (func_all_modules): Add getdomainname,
25294         xgetdomainname.
25295
25296 2003-09-25  Simon Josefsson  <jas@extundo.com>
25297             Bruno Haible  <bruno@clisp.org>
25298
25299         * m4/getdomainname.m4: New file.
25300
25301 2003-09-25  Simon Josefsson  <jas@extundo.com>
25302             Bruno Haible  <bruno@clisp.org>
25303
25304         * lib/getdomainname.h: New file.
25305         * lib/getdomainname.c: New file.
25306
25307 2003-09-25  Karl Berry  <karl@gnu.org>
25308
25309         * lib/argp-fmtstream.c, argp-help.c: update from libc.
25310
25311 2003-09-25  Karl Berry  <karl@gnu.org>
25312
25313         * config/install-sh: update from automake.
25314
25315 2003-09-25  Bruno Haible  <bruno@clisp.org>
25316
25317         * modules/version-etc-2: New file, from modules/version-etc with
25318         modifications.
25319         * MODULES.html.sh (func_all_modules): Add version-etc-2.
25320
25321 2003-09-25  Bruno Haible  <bruno@clisp.org>
25322
25323         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
25324         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
25325
25326 2003-09-24  Simon Josefsson  <jas@extundo.com>
25327
25328         * modules/xgethostname: Add xgethostname.h.
25329
25330 2003-09-24  Paul Eggert  <eggert@twinsun.com>
25331
25332         * lib/linebuffer.c (freebuffer): Don't free the argument, just
25333         the buffer associated with the argument.  Bug reported by
25334         Simon Josefsson.
25335
25336 2003-09-24  Paul Eggert  <eggert@twinsun.com>
25337
25338         * README: Document assumptions that 'int' is at least 32 bits
25339         wide, that integer arithmetic is 2's complement without overflow,
25340         that there are no holes in integer values, that adding sizes of
25341         two nonoverlapping objects can't overflow, and that all-bits-zero
25342         yields scalar zero.  Fix spelling and capitalization typos.
25343
25344 2003-09-19  Karl Berry  <karl@gnu.org>
25345
25346         * lib/argp.h: update from libc.
25347
25348 2003-09-17  Paul Eggert  <eggert@twinsun.com>
25349
25350         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
25351         to avoid spurious warnings like "AC_RUN_IFELSE was called before
25352         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
25353
25354 2003-09-17  Paul Eggert  <eggert@twinsun.com>
25355
25356         * gnulib-tool: Use "test -h", not "test -L", for portability
25357         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
25358         (tags_regexp): Remove, since \| doesn't conform to POSIX.
25359         (sed_extract_prog): Issue s commands one-by-one, rather than
25360         using \| in one s command.
25361
25362 2003-09-16  Paul Eggert  <eggert@twinsun.com>
25363
25364         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
25365         input error, instead of returning NULL the next time we are called
25366         (and therefore losing track of errno).
25367
25368 2003-09-16  Bruno Haible  <bruno@clisp.org>
25369
25370         * gnulib-tool (func_create_testdir): Warn about duplicated
25371         dependencies.
25372
25373 2003-09-15  Paul Eggert  <eggert@twinsun.com>
25374
25375         * modules/argmatch, modules/fatal, modules/obstack,
25376         modules/xalloc, modules/xgethostname: Sort dependencies by
25377         importance, not alphabetically.
25378
25379 2003-09-15  Paul Eggert  <eggert@twinsun.com>
25380
25381         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
25382         fails, so that the caller gets the proper errno.
25383
25384         * lib/readutmp.c (read_utmp): Likewise.
25385         Check for fstat error.  Close stream and free storage
25386         when failing.
25387
25388 2003-09-14  Karl Berry  <karl@gnu.org>
25389
25390         * config/srclist.txt (strdup.c): disable for c89 changes.
25391
25392 2003-09-14  Jim Meyering  <jim@meyering.net>
25393
25394         * lib/getloadavg.c: Correct cpp indentation.
25395         * lib/strdup.c: Likewise.
25396         * lib/vasnprintf.c: Likewise.
25397
25398 2003-09-14  Bruno Haible  <bruno@clisp.org>
25399
25400         * modules/fwriteerror: New file.
25401         * MODULES.html.sh (func_all_modules): Add fwriteerror.
25402
25403 2003-09-14  Bruno Haible  <bruno@clisp.org>
25404
25405         * lib/fwriteerror.h: New file.
25406         * lib/fwriteerror.c: New file.
25407
25408 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25409
25410         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
25411         modules/xgethostname, modules/xalloc: Depend on exit.
25412
25413 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25414
25415         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
25416
25417         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
25418         and AC_MINIX, too, so that their extensions are available.
25419
25420         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
25421         This macro has been superseded by gl_BACKUPFILE.
25422
25423         More patches to assume C89 or better.
25424
25425         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
25426
25427         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
25428         unconditionally.
25429         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
25430         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
25431         Include <string.h>, <stdlib.h> unconditionally.
25432         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
25433         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
25434         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
25435         headers or for string.h.
25436         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
25437         or strtoul.
25438
25439         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
25440         headers.
25441         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
25442         * m4/userspec.m4 (gl_USERSPEC): Likewise.
25443         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
25444         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
25445         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25446         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
25447         memcpy, memset.
25448         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
25449         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
25450         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
25451         strtol.
25452         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
25453         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
25454         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
25455         strtoul.
25456
25457 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25458
25459         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
25460         * lib/obstack.c [!defined _LIBC]: Likewise.
25461         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
25462         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
25463         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
25464
25465         More changes to assume C89 or better.
25466
25467         * lib/error.c (error_tail): Assume vprintf.
25468
25469         * lib/argmatch.c (getenv): Remove decl.
25470         * lib/progreloc.c (get_full_program_name): Define via prototype.
25471         * lib/setenv.c (clearenv): Likewise.
25472         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
25473         needed.
25474         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
25475         (malloc, memcpy): Remove decls.
25476         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
25477         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
25478         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25479         (memcpy): Remove macro.
25480         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
25481         (__P): Remove.  All uses removed.
25482         (PTR): Remove.  All uses changed to void *.
25483         (CHAR_BIT, NULL): Remove.
25484         (spaces, zeros, memset_space, memset_zero)
25485         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
25486         Remove.
25487         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
25488         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
25489         Define with prototype.
25490         Remove now-unnecessary prototype decl.
25491         (extra_args_spec): Assume ANSI C.  All uses changed.
25492         (extra_args_spec_iso): Remove.
25493         (my_strftime, emacs_strftimeu): Define via prototype.
25494         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
25495         unconditionally.
25496         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
25497         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
25498         (strtoul, strtol): Remove decls.
25499         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
25500         LONG_MAX): Remove.
25501         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25502         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
25503         (LOCALE_PARAM_PROTO): New macro.
25504         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
25505         (INTERNAL (strtol), strtol): Define with a prototype.
25506         (PARAMS): Remove.  All uses removed.
25507         * lib/tempname.c: Include <string.h> unconditionally.
25508         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
25509         * lib/xgethostname.c (main): Define with a prototype.
25510         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
25511         Include <stdlib.h> unconditionally.
25512         (calloc, malloc, realloc, free): Remove decls.
25513         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
25514         Include <stdlib.h> unconditionally.  Sort include file names.
25515         (strtod): Remove.
25516         (xstrtod): Define with a prototype.
25517         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
25518         (strtol, strtoul): Remove decls.
25519
25520 2003-09-11  Paul Eggert  <eggert@twinsun.com>
25521
25522         More patches to assume C89 or better.
25523         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
25524         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
25525         string.h, memchr, STDC_HEADERS.
25526
25527 2003-09-11  Paul Eggert  <eggert@twinsun.com>
25528
25529         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
25530         Include <stdlib.h>, <string.h> unconditionally.
25531         Remove now-unnecessary cast to char *.
25532         * lib/strnlen.c: Include <string.h> unconditionally.
25533         * lib/yesno.c (yesno): Define with a prototype.
25534
25535 2003-09-11  Bruno Haible  <bruno@clisp.org>
25536
25537         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
25538
25539 2003-09-10  Jim Meyering  <jim@meyering.net>
25540
25541         * lib/error.c: Correct indentation of cpp directives.
25542
25543 2003-09-10  Bruno Haible  <bruno@clisp.org>
25544
25545         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
25546         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
25547         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
25548         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
25549         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
25550         <stdlib.h> and <string.h> checks.
25551         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
25552         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
25553
25554 2003-09-10  Bruno Haible  <bruno@clisp.org>
25555
25556         * lib/strcspn.c: Include <string.h> unconditionally.
25557         * lib/strpbrk.c: Include <string.h> unconditionally.
25558         * lib/strstr.c: Include <string.h> unconditionally.
25559         * lib/unicodeio.c: Include <string.h> unconditionally.
25560         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
25561         * lib/unsetenv.c: Likewise.
25562         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
25563         * lib/yesno.c: Include <stdlib.h> unconditionally.
25564         (rpmatch): Add prototype.
25565
25566 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25567
25568         More patches to assume C89 or better.
25569         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
25570         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
25571         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
25572         or for string.h.
25573         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
25574         stdlib.h.
25575         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
25576         C headers.
25577         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
25578         string.h.
25579         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
25580         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
25581         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
25582         or for string.h.
25583         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
25584         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
25585         C headers.
25586         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
25587         memcpy.
25588         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
25589         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
25590         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
25591         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
25592         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
25593         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
25594         string.h, free.
25595         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
25596         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
25597         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
25598         C headers, or for string.h.
25599         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
25600         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
25601         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
25602         headers, memory.h, stdlib.h, string.h, strings.h.
25603         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
25604         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
25605         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
25606         strchr.
25607         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
25608         headers, memory.h, string.h.
25609         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
25610         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
25611         free.
25612         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
25613         headers.
25614         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
25615         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
25616         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
25617         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
25618         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
25619
25620 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25621
25622         More K&R removal.
25623
25624         * lib/acosl.c (main): Use a prototype.
25625         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
25626         tanl.c: Likewise.
25627
25628         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
25629
25630         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
25631         (getopt, etopt_long, getopt_long_only, _getopt_internal)
25632         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
25633         with a prototype.
25634         * lib/getopt.c (const): Remove macro.
25635         Include <string.h> unconditionally.
25636         (my_index): Remove; all uses changed to strchr.
25637         (strlen): Remove decl.
25638         (exchange): Remove forward decl; no longer needed.
25639         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
25640         Define with prototype.
25641         * lib/getopt1.c (const): Remove macro.
25642         (getopt_long, getopt_long_only, main): Define with prototype.
25643
25644         * lib/getugroups.c: Include <string.h> unconditionally.
25645
25646         * lib/getusershell.c: Include <stdlib.h> unconditionally.
25647         (getusershell, setusershell, endusershell, readname, main):
25648         Define with prototypes.
25649
25650         * lib/group-member.c: Include group-member.h first.
25651         Include <stdlib.h> unconditionally.
25652
25653         * lib/hard-locale.c: Include hard-locale.h first.
25654         Include <stdlib.h>, <string.h> unconditionally.
25655
25656         * lib/hash.c (free, malloc): Remove decls.
25657         Include <stdlib.h> unconditionally.
25658
25659         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
25660         (getenv): Do not declare.
25661
25662         * lib/idcache.c: Include <string.h> unconditionally.
25663
25664         * lib/long-options.c: Include long-options.h first, to test interface.
25665         Include <stdlib.h> unconditionally.
25666
25667         * lib/makepath.c: Include makepath.h first, to test interface.
25668         Include <stdlib.h> and <string.h> unconditionally.
25669
25670         * lib/linebuffer.c: Include <stdlib.h>.
25671         (free): Remove decl.
25672
25673         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
25674         stddef.h. rpl_malloc returns void *, not char *.
25675         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
25676         prototype.
25677
25678         * lib/md5.h: Include <limits.h> unconditionally.
25679         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
25680         (__P): Remove; all uses removed.
25681         * lib/md5.c: Include "md5.h" first.
25682         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
25683         md5_buffer, md5_process_bytes, md5_process_block):
25684         Define with prototypes.
25685         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
25686         * lib/sha.c: Include "sha.h" first.
25687         Include <stdlib.h>, <string.h> unconditionally.
25688
25689         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
25690         * lib/memcmp.c (__ptr_t): Likewise.
25691         * lib/memrchr.c (__ptr_t): Likewise.
25692         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
25693         Include <string.h> unconditionally.
25694         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
25695         * lib/memchr.c: Include <stdlib.h> unconditionally.
25696         * lib/memchr.c (LONG_MAX): Remove.
25697         * lib/memrchr.c (LONG_MAX): Likewise.
25698         * lib/memchr.c (__memchr): Define via a prototype.
25699         * lib/memrchr.c (__memrchr): Likewise.
25700         * lib/memcmp.c (__P): Remove, and remove all uses.
25701         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
25702         Remove forward decls; no longer needed.
25703         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
25704         Use types required by C89 in prototype.
25705
25706         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
25707         * lib/savedir.c: Likewise.
25708         * lib/mkdir.c (free): Remove decl.
25709         * lib/rmdir.c (rmdir): Define with a prototype.
25710         * lib/savedir.c: Include savedir.h first, to test interface.
25711
25712         * lib/mktime.c (STDC_HEADERS): Remove.
25713         Include <stdlib.h>, <string.h> unconditionally.
25714
25715         * lib/modechange.c: Include <stdlib.h> unconditionally.
25716         (malloc): Remove decl.
25717
25718         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
25719         (free): Remove decl.
25720
25721         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
25722         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
25723         (This type really should be intptr_t, but that's a C99ism.)
25724         (_obstack_memcpy): Remove: all uses changed to memcpy.
25725         Include <string.h> unconditionally.
25726         (struct obstack): Assume __STDC__ for types of members
25727         chunkfun, freefun, extra_arg.
25728         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
25729         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
25730         obstack_begin, obstack_specify_allocation,
25731         obstack_specify_allocation_with_arg, obstack_chunkfun,
25732         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
25733         Remove unprototyped decls and the macros that use them.
25734         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
25735         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
25736         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
25737         (defined __STDC__ && __STDC__)]:
25738         Remove nonprototyped code.
25739         Include <stdlib.h> unconditionally.
25740         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
25741         _obstack_allocated_p, _obstack_free, obstack_free,
25742         _obstack_memory_used, print_and_abort):
25743         Define using prototypes.
25744         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
25745         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
25746         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
25747         obstack_next_free, obstack_object_size, obstack_room) [0]:
25748         Remove unused, unprototyped code.
25749
25750         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
25751
25752         * lib/physmem.c (physmem_total, physmem_available, main): Define
25753         with prototypes.
25754
25755         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
25756         (main): Define with a prototype.
25757
25758         * lib/posixver.c (getenv): Remove decl.
25759
25760         * lib/putenv.c (malloc): Returns void *, not char *.
25761         Include <string.h> unconditionally.
25762         (strchr, memcpy, NULL): Do not define.
25763
25764         * lib/readtokens.c: Include readtokens.h first, to test interface.
25765         Include <stdlib.h>, <string.h> unconditionally.
25766         (init_tokenbuffer): Define with a prototype.
25767
25768         * lib/regex.c (PARAMS): Remove.  All uses removed.
25769         All uses of _RE_ARGS removed, too.
25770         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
25771         unconditionally.
25772         (bzero): Assume memset exists.
25773         (memcmp, memcpy, NULL): Remove.
25774         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
25775         char, or assignments to local vars of type signed char.
25776         (init_syntax_once, PREFIX(extract_number_and_incr),
25777         PREFIX(print_partial_compiled_pattern),
25778         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
25779         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
25780         PREFIX(regex_grow_registers), PREFIX(regex_compile),
25781         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
25782         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
25783         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
25784         wcs_compile_range, byte_compile_range, truncate_wchar,
25785         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
25786         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
25787         count_mbs_length, wcs_re_match_2_internal,
25788         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
25789         PREFIX(alt_match_null_string_p),
25790         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
25791         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
25792         regfree, PREFIX(extract_number)): Define with prototype.  Remove
25793         now-unnecessary declaration, if any.
25794         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
25795         regcomp, regexec):
25796         Remove now-unnecessary casts among pointer types.
25797         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
25798
25799         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
25800         (free): Remove decl.
25801
25802         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
25803
25804         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
25805         (free): Remove decl.
25806
25807         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
25808         * lib/xgetcwd.c: Likewise.
25809
25810         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
25811         (free): Remove decl.
25812
25813         * lib/strchrnul.c (strchrnul): Define with a prototype.
25814         Fix bug: c_in was not converted to char before searching.
25815
25816         The following changes are not K&R related:
25817
25818         * lib/group-member.h: Include <sys/types.h>, so that this file is
25819         self-contained.
25820         * lib/makepath.h: Likewise.
25821
25822         * lib/getusershell.c (readname, default_index, line_size, readname):
25823         Use size_t, not int, for sizes.
25824         (readname): If the size overflows, report an error instead of
25825         looping forever.
25826
25827 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25828
25829         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
25830         libc.
25831
25832 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25833
25834         * README: New section: portability guidelines.
25835
25836 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
25837
25838         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
25839         C89 spec.
25840
25841 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
25842
25843         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
25844
25845 2003-09-08  Paul Eggert  <eggert@twinsun.com>
25846
25847         Assume C89 or better; remove K&R cruft.
25848         A few of these changes were first proposed by Derek Robert Price
25849         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
25850
25851         * lib/addext.c: Include <string.h> unconditionally.
25852         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
25853         Don't declare getenv or malloc.
25854
25855         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
25856         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
25857         (NULL): Remove.
25858         (find_stack_direction, alloca): Use prototypes.
25859
25860         * lib/atexit.c (atexit): Define using a prototype.
25861
25862         * lib/basename.c, dirname.c, stripslash.c:
25863         Include <string.h> unconditionally.
25864
25865         * lib/bcopy.c: Include <stddef.h>.
25866         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
25867
25868         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
25869
25870         * lib/error.h (error, error_at_line, error_print_progname)
25871         [! (defined (__STDC__) && __STDC__)]: Remove decls.
25872         * lib/error.c: Include error.h first, to check interface.
25873         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25874         (VA_START): Remove; all uses changeed to va_start.
25875         (exit, strerror): Remove decls.
25876         (error_print_progname): Prototype uncondionally.
25877         Don't include <errno.h>; no longer needed.
25878         (private_strerror): Remove.
25879         (error_tail): Always define.
25880         (error, error_at_line): Assume C89 or better; always use prototypes.
25881         * lib/fatal.c: Include "fatal.h" first, to test interface.
25882         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25883         (VA_START): Remove; all uses changed to va_start.
25884         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
25885         this case.
25886         (exit): Remove decl.
25887         (fatal): Prototype unconditionally.  Assume va_start works.
25888         Abort at end, to pacify gcc.
25889
25890         * lib/euidaccess.c (main): Define with a prototype.
25891
25892         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
25893
25894         * lib/exitfail.c: Include <stdlib.h> unconditionally.
25895
25896         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
25897         prototypes.
25898         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
25899         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
25900         (getenv): Remove decl.
25901         (fnmatch): Define using a prototype.
25902         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
25903         (FCT): Define using a prototype.
25904
25905         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
25906
25907         * lib/gethostname.c: Include <stddef.h>.
25908         (gethostname): Define with prototype.  Length is size_t, not int.
25909
25910 2003-09-08  Paul Eggert  <eggert@twinsun.com>
25911
25912         Assume C89 or better; remove K&R cruft.
25913         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
25914         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
25915         string.h, getenv, malloc.
25916         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
25917         headers.
25918         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
25919         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
25920         do not check for strerror.
25921         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
25922         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
25923         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
25924         do not check for doprnt or vprintf.
25925         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
25926         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
25927
25928 2003-09-08  Paul Eggert  <eggert@twinsun.com>
25929
25930         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
25931         getversion.c should have been removed then, but was accidentally
25932         preserved.
25933
25934         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
25935         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
25936
25937 2003-09-08  Karl Berry  <karl@gnu.org>
25938
25939         * config/config.sub, config.guess, srclistvars.sh: update from savannah
25940                 config, forget about prep.
25941
25942         * config/depcomp, missing: update from automake.
25943
25944 2003-09-07  Paul Eggert  <eggert@twinsun.com>
25945
25946         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
25947         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25948
25949 2003-09-07  Paul Eggert  <eggert@twinsun.com>
25950
25951         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
25952         copy_tm_result.  Bug reported by Simon Josefsson in
25953         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25954
25955 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25956
25957         * m4/time_r.m4: New file.
25958         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
25959         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
25960         is. Check for timegm declaration.
25961         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
25962         Do not check for gmtime_r.
25963         Replace mktime if __mktime_internal does not exist and if mktime
25964         hasn't been replaced already.
25965
25966 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25967
25968         * lib/time_r.c, lib/time_r.h: New files.
25969
25970         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
25971         __localtime_r.
25972         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
25973         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
25974
25975         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
25976         __gmtime_r.
25977         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
25978         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
25979         Include <time_r.h>.
25980
25981         * lib/timegm.c: Switch to glibc implementation, with the following
25982         changes:
25983         [defined HAVE_CONFIG_H]: Include <config.h>.
25984         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
25985         (__mktime_internal) [!defined _LIBC]: New decl.
25986         (__gmtime_r) [!defined _LIBC]: New macro and function.
25987         (timegm): Use a prototype, since gnulib assumes C89.
25988         Do not bother declaring tmp to be const, as it's not really usefu.
25989         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
25990         (timegm): Declare only if HAVE_DECL_TIMEGM.
25991
25992 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25993
25994         * MODULES.html.sh (func_all_modules): Add time_r.
25995         * modules/time_r: New file.
25996         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
25997         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
25998
25999 2003-09-03  Paul Eggert  <eggert@twinsun.com>
26000
26001         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
26002         Bug reported by Lute Kamstra in
26003         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
26004
26005         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
26006         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
26007         course with correspondingly smaller numbers for tomorrow and
26008         yesterday.  From Tadayoshi Funaba.  Originally installed into
26009         sh-utils on 1999-08-07, but the patch got lost (I guess during the
26010         coreutils merge?).
26011
26012 2003-08-31  Simon Josefsson  <jas@extundo.com>
26013
26014         * modules/timegm: New file.
26015         * MODULES.html.sh (func_all_modules): Add timegm.
26016
26017 2003-08-31  Simon Josefsson  <jas@extundo.com>
26018
26019         * m4/timegm.m4: New file.
26020
26021 2003-08-31  Simon Josefsson  <jas@extundo.com>
26022
26023         * lib/timegm.h: New file.
26024         * lib/timegm.c: New file.  Based on
26025         wget-1.8.2/src/http.c:mktime_from_utc.
26026
26027 2003-08-31  Karl Berry  <karl@gnu.org>
26028
26029         * lib/argp.h: update from libc.
26030
26031 2003-08-28  Bruno Haible  <bruno@clisp.org>
26032
26033         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
26034         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
26035         followed by '#define fnmatch fnmatch_posix' gives an error.
26036
26037 2003-08-28  Bruno Haible  <bruno@clisp.org>
26038
26039         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
26040         warning on QNX, which defines O_BINARY to 000000.
26041
26042 2003-08-27  Jim Meyering  <jim@meyering.net>
26043
26044         * m4/mkstemp.m4: Require that the system mkstemp be able to create
26045         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
26046         would fail after 32.  Reported by Danny Levinson.  Details here:
26047         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
26048
26049 2003-08-24  Bruno Haible  <bruno@clisp.org>
26050
26051         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
26052         MSVC7 <stdio.h> is included later.
26053
26054 2003-08-22  Simon Josefsson  <jas@extundo.com>
26055
26056         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
26057
26058 2003-08-20  Karl Berry  <karl@gnu.org>
26059
26060         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
26061
26062 2003-08-20  Bruno Haible  <bruno@clisp.org>
26063
26064         * modules/progname: New file.
26065         * MODULES.html.sh (func_all_modules): Add progname.
26066
26067 2003-08-20  Bruno Haible  <bruno@clisp.org>
26068
26069         * lib/progname.h: New file, from GNU gettext.
26070         * lib/progname.c: New file, from GNU gettext.
26071         * lib/progreloc.c: New file, from GNU gettext.
26072
26073 2003-08-19  Jim Meyering  <jim@meyering.net>
26074
26075         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
26076         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
26077
26078 2003-08-19  Bruno Haible  <bruno@clisp.org>
26079
26080         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
26081         more.
26082
26083 2003-08-19  Bruno Haible  <bruno@clisp.org>
26084
26085         * lib/xstrdup.c: Assume <string.h> exists.
26086
26087 2003-08-18  Paul Eggert  <eggert@twinsun.com>
26088
26089         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
26090         in makefile rules.
26091
26092 2003-08-18  Jim Meyering  <jim@meyering.net>
26093
26094         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
26095         * m4/lib-ld.m4: Likewise.
26096
26097 2003-08-18  Jim Meyering  <jim@meyering.net>
26098
26099         * lib/setenv.h: Indent nested cpp directive.
26100         * lib/vasnprintf.c: Remove trailing blanks.
26101
26102 2003-08-17  Simon Josefsson  <jas@extundo.com>
26103
26104         * modules/xstrndup: New file.
26105         * MODULES.html.sh (func_all_modules): Add xstrndup.
26106
26107 2003-08-17  Simon Josefsson  <jas@extundo.com>
26108
26109         * modules/argp: Fix autoconf macro name. Add more dependencies.
26110
26111 2003-08-17  Simon Josefsson  <jas@extundo.com>
26112
26113         * m4/xstrndup.m4: New file.
26114
26115 2003-08-17  Simon Josefsson  <jas@extundo.com>
26116
26117         * m4/argp.m4: New file.
26118
26119 2003-08-17  Simon Josefsson  <jas@extundo.com>
26120             Bruno Haible  <bruno@clisp.org>
26121
26122         * lib/xstrndup.h: New file.
26123         * lib/xstrndup.c: New file.
26124
26125 2003-08-17  Bruno Haible  <bruno@clisp.org>
26126
26127         * modules/strndup (Files, Include): Add lib/strndup.h.
26128
26129 2003-08-17  Bruno Haible  <bruno@clisp.org>
26130
26131         * modules/euidaccess (Files): Add lib/euidaccess.h.
26132
26133 2003-08-17  Bruno Haible  <bruno@clisp.org>
26134
26135         * lib/strndup.h: New file.
26136
26137 2003-08-17  Bruno Haible  <bruno@clisp.org>
26138
26139         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
26140         like AC_GNU_SOURCE.
26141         * modules/extensions (configure.ac): Comment out the invocation of
26142         gl_USE_SYSTEM_EXTENSIONS.
26143
26144 2003-08-16  Paul Eggert  <eggert@twinsun.com>
26145
26146         Merges from coreutils, etc.
26147         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
26148         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
26149         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
26150         fixing a typo.
26151         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
26152         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
26153
26154 2003-08-16  Paul Eggert  <eggert@twinsun.com>
26155
26156         Document merge from coreutils.
26157         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
26158         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
26159         * modules/utime: Add m4/utimes-null.m4.
26160
26161 2003-08-16  Paul Eggert  <eggert@twinsun.com>
26162
26163         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
26164         space, undoing this 2003-08-12 change:
26165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
26166
26167 2003-08-16  Paul Eggert  <eggert@twinsun.com>
26168
26169         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
26170         strtoul.c from libc, undoing this 2003-08-12 change:
26171         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
26172
26173 2003-08-16  Jim Meyering  <jim@meyering.net>
26174
26175         Merges from coreutils.
26176         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
26177         prefix.  Adjust cache variables similarly.  Create 500 rather than
26178         just 300 files, to exercise bug on Darwin6.5, too.
26179         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
26180         $missing_dir.
26181         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
26182         AM_SYS_POSIX_TERMIOS.
26183         Reported by mkc@mathdogs.com.
26184         Also change use of $am_cv_sys_posix_termios
26185         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
26186         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
26187         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
26188         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
26189         in /proc/mounts until it finds one with matching device number.  This
26190         is unnecessary when the FILE argument *is* a mount point.  No stat call
26191         is necessary in that case.  So, disable the statvfs-testing code on
26192         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
26193         as RedHat bug# 84846.
26194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
26195         to 1MB, so as not to render systems with no stack size limit (e.g.,
26196         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
26197         Include <unistd.h>.  On some systems,
26198         it is required for the definition of _SC_PAGESIZE.
26199
26200 2003-08-16  Jim Meyering  <jim@meyering.net>
26201
26202         Merge from coreutils.
26203         * lib/xstrtoimax.c: #else #if -> #elif.
26204         * lib/xstrtoumax.c: Likewise.
26205
26206 2003-08-16  Jim Meyering  <jim@meyering.net>
26207
26208         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
26209         * m4/utimes.m4: Removed.
26210         * m4/utimes-null.m4: Renamed from utimes.m4.
26211
26212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
26213         to 1MB, so as not to render systems with no stack size limit (e.g.,
26214         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
26215         Include <unistd.h>.  On some systems,
26216         it is required for the definition of _SC_PAGESIZE.
26217
26218 2003-08-16  Jim Meyering  <jim@meyering.net>
26219         and Paul Eggert  <eggert@cs.ucla.edu>
26220
26221         Merges from coreutils, etc.
26222
26223         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
26224         using the latest version from cvs.  This avoids problems with #line
26225         directives using a vendor (Sun) compiler.
26226         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
26227         Don't set GETGROUPS_LIB here; now it's
26228         done via getgroups.m4's wrapper function.
26229         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
26230         rather than just in sh-util/configure.in, so that the
26231         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
26232         same.
26233         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
26234         AC_FUNC_GETLOADAVG where to find getloadavg.c.
26235         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
26236         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
26237         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
26238         Remove code that is now done by the newly-required macros.
26239         Append $(EXEEXT) to DF_PROG.
26240         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
26241         Do not invoke or require the following here,
26242         since prereq.m4 or some gnulib .m4 now does this for us:
26243         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
26244         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
26245         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
26246         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
26247         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
26248         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
26249         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
26250         AC_FUNC_OBSTACK.
26251         Do not replace the following functions, as this is now the job
26252         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
26253         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
26254         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
26255         atexit getpass, strdup, getpagesize.
26256         Replace 'raise'.
26257         Do not check for the following functions, as this is now the job
26258         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
26259         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
26260         setregid.
26261         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
26262         Check for sys/sysctl.h.
26263         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
26264         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
26265         of checking for ssize_t ourselves.
26266
26267         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
26268         Require every macro that gnulib/modules/* suggests for us.
26269         (jm_PREREQ_ADDEXT): New macro.
26270         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
26271         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
26272
26273         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
26274         (gl_PHYSMEM): Use it.
26275         Also check for `table' function.
26276         Check for new headers and functions.
26277         Add check for sys/sysmp.h.
26278         With suggestions from Kaveh Ghazi.
26279         Ignore headers that are present but cannot be compiled.  This
26280         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
26281         C 5.4.
26282
26283 2003-08-15  Paul Eggert  <eggert@twinsun.com>
26284
26285         Document merge from coreutils.
26286         * modules/userspec: Depend on posixver.
26287         * modules/strftime: Depend on tzset.
26288
26289 2003-08-15  Paul Eggert  <eggert@twinsun.com>
26290
26291         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
26292         rather than tab, after '#' in shell-script copyright notices.
26293         Suggested by Bruno Haible.
26294
26295 2003-08-15  Paul Eggert  <eggert@twinsun.com>
26296
26297         * config/srclist-update: Use three spaces, rather than tab, after '#'
26298         in shell-script copyright notices.  Suggested by Bruno Haible.
26299         Remove unnecessary parenthesization in regular expression.
26300
26301 2003-08-15  Jim Meyering  <jim@meyering.net>
26302
26303         Merge from coreutils.
26304         * lib/xgethostname.c: Include <stdlib.h>.
26305         (xghostname): Don't exit for anything other than memory-related
26306         failure; just return NULL.
26307         * lib/userspec.c: Include "posixver.h".
26308         (parse_user_spec): Accept `.' as a separator only
26309         in pre-POSIX-200112 mode.
26310         * lib/strtoimax.c: Use #elif rather than #else #if.
26311         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
26312         Remove function, now that we can rely on a working tzset function.
26313         [!_LIBC]: Ensure that the required autoconf test has been run.
26314         [!defined _NL_CURRENT && HAVE_STRFTIME]:
26315         Use underlying_strftime for %r.
26316         * lib/sha.c: Merge in some clean-up and optimization changes from
26317         glibc.
26318         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
26319         Ensure that it is a multiple of 64.
26320         Rearrange loop exit tests so as to avoid performing an
26321         additional fread after encountering an error or EOF.
26322         * lib/realloc.c: Update copyright date.
26323
26324 2003-08-15  Jim Meyering  <jim@meyering.net>
26325         and Paul Eggert  <eggert@twinsun.com>
26326
26327         Merge from coreutils.
26328         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
26329         member but strut utmpx does not.  Needed for AIX 4.3.3.
26330         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
26331
26332 2003-08-15  Jim Meyering  <jim@meyering.net>
26333         and Paul Eggert  <eggert@cs.ucla.edu>
26334
26335         Merges from coreutils, etc.
26336         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
26337         Require gl_FUNC_TZSET_CLOBBER.
26338         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
26339         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
26340         members.
26341
26342 2003-08-14  Paul Eggert  <eggert@twinsun.com>
26343
26344         Help the merge from coreutils.
26345         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
26346         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
26347         * m4/tzset.m4: Use it too.
26348
26349 2003-08-14  Paul Eggert  <eggert@twinsun.com>
26350
26351         * modules/tzset: New file.
26352
26353 2003-08-14  Jim Meyering  <jim@meyering.net>
26354
26355         Merges from coreutils.
26356         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
26357         variable names, rather than @FNMATCH_H@.
26358         * modules/alloca: Likewise for $(ALLOCA_H).
26359
26360         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
26361         the three copies of the literal target, `fnmatch.h'.
26362         * modules/alloca (alloca.h): Likewise.
26363
26364 2003-08-14  Jim Meyering  <jim@meyering.net>
26365
26366         Merge from coreutils.
26367         * m4/tzset.m4: New file.
26368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
26369         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
26370         otherwise, AIX 5.1 systems would end up using the latter.
26371         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
26372         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
26373         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
26374         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
26375
26376 2003-08-14  Jim Meyering  <jim@meyering.net>
26377
26378         Merge from coreutils.
26379         * lib/obstack.h: Whitespace changes.
26380         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
26381         and xcalloc return values.
26382         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
26383         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
26384         hang on OSF/1 5.1 for DIR on both local and remote file systems.
26385         Reported by (and fix confirmed by) Nelson H. F. Beebe.
26386         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26387         error from mntctl.
26388         Use mntctl's return value to drive the entry-processing loop, since
26389         we can't rely on the value of the vmt_length member in the last
26390         entry.  On some systems doing so could result in exhausting
26391         virtual memory.  Based in part on a patch from Mike Jetzer.
26392
26393 2003-08-14  Jim Meyering  <jim@meyering.net>
26394         and Paul Eggert  <eggert@twinsun.com>
26395
26396         Merges from coreutils, plus other fixes.
26397         * lib/physmem.c: Merge in portability changes from gcc/libiberty
26398         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
26399         for credits and details.  Thanks to Kaveh Ghazi for helping
26400         to keep these files in sync.
26401         (ARRAY_SIZE): Define it.
26402         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
26403         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
26404         (memcasecmp): Don't assume size_t fits in unsigned int.
26405         Remove casts and duplicate code.
26406         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
26407         (memcpy): Remove definition.
26408         Merge in some clean-up and optimization changes from glibc.
26409         [BLOCKSIZE]: Move definition to top of file.
26410         Ensure that it is a multiple of 64.
26411         Rearrange loop exit tests so as to avoid performing an
26412         additional fread after encountering an error or EOF.
26413         * lib/md5.h (md5_uintptr): Define.
26414         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
26415         return to the initial working directory.  Preserve errno
26416         for caller.
26417         * lib/idcache.c: Include "xalloc.h".
26418         (xmalloc, xrealloc): Remove decls.
26419         (getuser): Remove casts no longer required in C89.
26420         * lib/human.c: Include stdio.h, for sprintf.
26421         * lib/group-member.c: Include "xalloc.h".
26422         (xmalloc, xrealloc): Remove decls.
26423         (get_group_info): Remove casts no longer required in C89.
26424         * lib/getusershell.c (readname): Remove casts no longer required in
26425         C89.
26426         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
26427         * lib/getline.c: Whitespace fix, from coreutils.
26428
26429 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26430
26431         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
26432         Check for isascii.
26433
26434         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26435         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26436         Undo previous (whitespace-only) change.
26437
26438 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26439
26440         * lib/exclude.c: Include <ctype.h>
26441         (IN_CTYPE_DOMAIN): New macro.
26442         (is_space): New fn.
26443         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
26444         and empty lines.
26445
26446         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26447         Undo previous (whitespace-only) change.
26448
26449 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26450
26451         * config/srclist-update: Change update back to the old behavior,
26452         leaving whitespace alone.  Use one 'sed' command rather than a
26453         pipeline.
26454         (fixlicense): Now a variable, not a function.
26455         (remove_trailing_blanks): Remove.
26456         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
26457         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26458         Undo previous (whitespace-only) change.
26459
26460 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26461
26462         Merge from coreutils.
26463         * modules/euidaccess: Add lib_SOURCES, include for new
26464         file euidaccess.h
26465
26466 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26467
26468         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26469         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26470         Normalize leading white space and remove trailing white space.
26471
26472         Merge from coreutils
26473         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
26474
26475         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
26476         0.12.1.  These files are now being upgraded automatically by
26477         ../config/srclist-update.
26478
26479 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26480
26481         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26482         Normalize leading white space and remove trailing white space.
26483         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
26484         notice, as per ../config/srclist-update.
26485
26486         Merge from coreutils.
26487         * lib/euidaccess.h: New file.
26488         * lib/euidaccess.c: Include it.
26489         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
26490         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
26491         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
26492
26493 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26494
26495         * config/srclist-update: Add copyright notice.
26496         (remove_id_lines, remove_trailing_blanks): New constants.
26497         (fixfile): Use them to normalize spacing a bit in copied files.
26498         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26499         Normalize leading white space and remove trailing white space.
26500
26501         * config/texinfo.tex: Sync with texinfo.
26502
26503         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
26504         strtoul.c from libc, to merge coreutils whitespace changes.
26505
26506         * config/srclist.txt: Get the following m4 files from gettext:
26507         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
26508         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
26509         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
26510         wint_t.m4.
26511
26512 2003-08-12  Karl Berry  <karl@gnu.org>
26513
26514         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
26515         been made.
26516
26517 2003-08-11  Paul Eggert  <eggert@twinsun.com>
26518
26519         * modules/gnu-source, m4/gnu-source.m4:
26520         Remove; we're assuming Autoconf 2.54 or later now.
26521         Suggested by Bruno Haible.
26522         * MODULES.html.sh (func_all_modules): Remove gnu-source.
26523
26524 2003-08-11  Bruno Haible  <bruno@clisp.org>
26525
26526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
26527
26528 2003-08-11  Bruno Haible  <bruno@clisp.org>
26529
26530         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
26531         (vasnprintf): Use it instead of wcslen.
26532
26533 2003-08-11  Bruno Haible  <bruno@clisp.org>
26534
26535         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
26536         value to ensure that _Bool promotes to int. Use #define for _Bool when
26537         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
26538
26539 2003-08-10  Karl Berry  <karl@gnu.org>
26540
26541         * lib/regex.h: update from libc (whitespace fix).
26542
26543 2003-08-09  Paul Eggert  <eggert@twinsun.com>
26544
26545         Merge some files from coreutils.  These changes were
26546         originally made by Jim Meyering.
26547         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
26548         many older Unixes require this.
26549         * lib/alloca.c (alloca): Remove cast to argument of free;
26550         no longer needed in C89.
26551         * lib/alloca_.h, regex.h: Fix white space to match
26552         what GNU indent does.
26553
26554 2003-08-09  Paul Eggert  <eggert@twinsun.com>
26555
26556         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
26557         apparently Emacs's Unicode mode got confused before my 2003-08-05
26558         checkin.
26559
26560 2003-08-08  Paul Eggert  <eggert@twinsun.com>
26561
26562         * m4/extensions.m4: New file.
26563         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
26564         Require gl_USE_SYSTEM_EXTENSIONS.
26565         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
26566         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
26567
26568 2003-08-08  Paul Eggert  <eggert@twinsun.com>
26569
26570         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
26571         * modules/extensions, modules/gnu-source: New files.
26572         * modules/timespec, modules/unlocked-io: Depend on extensions.
26573
26574 2003-08-07  Paul Eggert  <eggert@twinsun.com>
26575
26576         * modules/restrict: New file.
26577         * MODULES.html.sh (func_all_modules): Add restrict.
26578         * modules/regex: Depend on restrict.
26579
26580 2003-08-07  Paul Eggert  <eggert@twinsun.com>
26581
26582         * m4/restrict.m4: New file.
26583         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
26584
26585 2003-08-07  Bruno Haible  <bruno@clisp.org>
26586
26587         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
26588         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
26589
26590 2003-08-07  Bruno Haible  <bruno@clisp.org>
26591
26592         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
26593         makes the module 'getndelim2' compatible with the module 'getline'.
26594
26595 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26596
26597         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
26598         byte with "\201" to avoid glitches when editing that source file
26599         with multi-gnome-terminal.
26600
26601 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26602
26603         * lib/bumpalloc.h: Remove.
26604
26605 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26606
26607         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
26608         * modules/bumpalloc: Remove.
26609
26610 2003-08-04  Paul Eggert  <eggert@twinsun.com>
26611
26612         * lib/getloadavg.c: Change copyright notice and spacing to conform to
26613         GNU coding style.
26614
26615         Merge from coreutils.
26616         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
26617         1. From glibc.
26618         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
26619         from Karl Berry, implemented by Jim Meyering.
26620         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
26621         from Dmitry V. Levin.
26622         Remove anachronistic cast of xrealloc.
26623         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
26624         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
26625         type. Otherwise, it wouldn't compile with at least /bin/cc on
26626         ymp-cray-unicos9.0.2.X.
26627         Combine two mostly-identical uses of alloca into one.
26628         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
26629
26630 2003-08-04  Dave Love  <d.love@dl.ac.uk>
26631
26632         [From Emacs.]
26633
26634         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
26635         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
26636         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
26637         obsolete NLIST_NAME_UNION.
26638         [__GNU__]: Undef BSD and FSCALE.
26639         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
26640
26641 2003-08-03  Paul Eggert  <eggert@twinsun.com>
26642
26643         * lib/stdbool_.h (_Bool): Make it signed char, instead of
26644         an enum type, so that it's guaranteed to promote to int.  See:
26645         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
26646
26647 2003-08-03  Karl Berry  <karl@gnu.org>
26648
26649         * config/depcomp: update from automake.
26650
26651 2003-07-31  Paul Eggert  <eggert@twinsun.com>
26652
26653         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
26654         (strerror): Don't assume that a printable int fits in 14 bytes.
26655
26656 2003-07-31  Bruno Haible  <bruno@clisp.org>
26657
26658         * modules/getpass-gnu: New file.
26659         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
26660
26661 2003-07-31  Bruno Haible  <bruno@clisp.org>
26662
26663         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
26664
26665 2003-07-24  Karl Berry  <karl@gnu.org>
26666
26667         * config/missing: update from automake.
26668
26669 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
26670             Bruno Haible  <bruno@clisp.org>
26671
26672         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
26673         * lib/getline.c (getline, getdelim): Likewise.
26674         Remove _GNU_SOURCE define; now it's defined in config.h through
26675         m4/getline.m4.
26676
26677 2003-07-23  Karl Berry  <karl@gnu.org>
26678
26679         * config/config.sub: update from prep.
26680
26681 2003-07-22  Paul Eggert  <eggert@twinsun.com>
26682
26683         * modules/xalloc (Depends-on): Add exitfail.
26684         * modules/xmemcoll: Likewise.
26685
26686 2003-07-22  Paul Eggert  <eggert@twinsun.com>
26687
26688         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
26689         over-parenthesization in macros.
26690
26691         Sync with coreutils.
26692
26693         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
26694         required by C99.
26695
26696         Use `exit_failure' for xalloc and xmemcoll instead of their own
26697         private exit-failure variables.
26698         * lib/xalloc.h (xalloc_exit_failure): Remove.
26699         * lib/xmalloc.c: Likewise.  Include exitfail.h.
26700         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
26701         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
26702         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
26703         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
26704
26705 2003-07-20  Jim Meyering  <jim@meyering.net>
26706
26707         * modules/closeout (Depends-on): Add exitfail.
26708         Suggestion from Bruno Haible.
26709
26710 2003-07-19  Karl Berry  <karl@gnu.org>
26711
26712         * config/config.sub: update from prep.
26713
26714 2003-07-18  Paul Eggert  <eggert@twinsun.com>
26715
26716         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
26717         Remove.
26718         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
26719         to test that it can stand by itself.  Include "exitfail.h".
26720         Clients should set exit_failure instead.
26721         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
26722
26723 2003-07-18  Bruno Haible  <bruno@clisp.org>
26724
26725         * modules/getndelim2: New file.
26726         * modules/getline: Share files with module getndelim2.
26727         * modules/getnline: Depend on getndelim2 instead of sharing files with
26728         it. Add getnline.c to lib_SOURCES.
26729         * MODULES.html.sh (func_all_modules): Add getndelim2.
26730
26731 2003-07-18  Bruno Haible  <bruno@clisp.org>
26732
26733         * m4/getndelim2.m4: New file.
26734         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
26735         invoke gl_PREREQ_GETNDELIM2.
26736         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
26737         gl_PREREQ_GETNDELIM2.
26738         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
26739         gl_GETNDELIM2.
26740
26741 2003-07-18  Bruno Haible  <bruno@clisp.org>
26742
26743         * lib/getndelim2.h: New file.
26744         * lib/getndelim2.c: Make into a module of its own. Include config.h,
26745         getndelim2.h.
26746         (getndelim2): Make non-static. Change return type to ssize_t.
26747         * lib/getline.h: Change argument names.
26748         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
26749         * lib/getnline.c: Include getndelim2.h.
26750
26751 2003-07-18  Andreas Schwab  <schwab@suse.de>
26752
26753         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
26754
26755 2003-07-17  Karl Berry  <karl@gnu.org>
26756
26757         * config/config.sub: update from prep.
26758
26759 2003-07-17  Bruno Haible  <bruno@clisp.org>
26760
26761         * modules/getnline: New file.
26762         * modules/getline: Add lib/getndelim2.c to source file list.
26763         * MODULES.html.sh (func_all_modules): Add getnline.
26764
26765 2003-07-17  Bruno Haible  <bruno@clisp.org>
26766
26767         * m4/getnline.m4: New file.
26768
26769 2003-07-17  Bruno Haible  <bruno@clisp.org>
26770
26771         * m4/Makefile.am.in: Remove file.
26772         * m4/Makefile.am: Remove file.
26773         * m4/Makefile.in: Remove file.
26774
26775 2003-07-17  Bruno Haible  <bruno@clisp.org>
26776
26777         * lib/getnline.h: New file.
26778         * lib/getnline.c: New file.
26779         * lib/getndelim2.c: New file, extracted from getline.c.
26780         (getndelim2): Renamed from getdelim2, with added nmax argument.
26781         * lib/getline.c: Include getndelim2.c.
26782         (getdelim2): Moved out to getndelim2.c.
26783         (getline, getdelim): Update.
26784
26785 2003-07-17  Bruno Haible  <bruno@clisp.org>
26786
26787         * lib/Makefile.am: Remove file.
26788         * lib/Makefile.in: Remove file.
26789
26790 2003-07-17  Bruno Haible  <bruno@clisp.org>
26791
26792         * configure.in: Remove file.
26793         * Makefile.in: Remove file.
26794
26795 2003-07-17  Bruno Haible  <bruno@clisp.org>
26796
26797         * MODULES.html.sh: Put the </BODY> right before </HTML>.
26798
26799 2003-07-16  Karl Berry  <karl@gnu.org>
26800
26801         * config/srclist-update: was running fixlicense twice, which caused
26802                 texinfo.tex to be nullified for some reason.  Simplify,
26803                 $gplsrc is no longer needed as far as I can see?
26804
26805 2003-07-16  Jim Meyering  <jim@meyering.net>
26806
26807         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
26808
26809 2003-07-15  Paul Eggert  <eggert@twinsun.com>
26810
26811         * config/srclist.txt: Get the following files from gettext-runtime/intl
26812         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
26813         ref-del.sin.  From Bruno Haible.
26814         * config/srclist-update (fixfile): Change grep pattern again, since the
26815         previous fix didn't work (there was another trailing $).  Use
26816         '[$]' to escape the $s.
26817
26818 2003-07-15  Karl Berry  <karl@gnu.org>
26819
26820         * lib/vasnprintf.c: update from gettext.
26821
26822 2003-07-15  Karl Berry  <karl@gnu.org>
26823
26824         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
26825         gets expanded when surrounded by '$'.
26826
26827 2003-07-15  Jim Meyering  <jim@meyering.net>
26828
26829         * modules/save-cwd: Don't depend on error.  From Derek Price.
26830
26831 2003-07-15  Jim Meyering  <jim@meyering.net>
26832
26833         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
26834
26835 2003-07-14  Simon Josefsson  <jas@extundo.com>
26836
26837         * modules/mempcpy: New file.
26838         * MODULES.html.sh (func_all_modules): Add mempcpy.
26839
26840 2003-07-14  Simon Josefsson  <jas@extundo.com>
26841
26842         * m4/mempcpy.m4: New file.
26843
26844 2003-07-14  Simon Josefsson  <jas@extundo.com>
26845
26846         * lib/mempcpy.h: New file.
26847         * lib/mempcpy.c: New file.
26848
26849 2003-07-14  Paul Eggert  <eggert@twinsun.com>
26850
26851         * modules/getdate, modules/posixtm: Depend on mktime.
26852
26853 2003-07-14  Paul Eggert  <eggert@twinsun.com>
26854
26855         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
26856         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
26857         unicodeio.c, unicodeio.h, unlocked-io.h:
26858         Switch from LGPL to GPL.
26859
26860 2003-07-14  Paul Eggert  <eggert@twinsun.com>
26861
26862         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
26863         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
26864         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
26865         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
26866         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
26867         updated automatically by ../config/srclist-update.  This changes
26868         their license from LPGL to GPL.
26869
26870 2003-07-14  Paul Eggert  <eggert@twinsun.com>
26871
26872         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
26873         assumed to refer to the root of the most recent stable gettext version.
26874         * config/srclistvars.sh: Add defaults for eggert.
26875         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
26876         Match "This program" as well as "The program".  This is needed
26877         for gettext.
26878
26879 2003-07-14  Jim Meyering  <jim@meyering.net>
26880
26881         Don't emit diagnostics.  Let callers do that.
26882         * lib/save-cwd.c: Don't include "error.h".
26883         (save_cwd): Don't call error.  Ensure that errno is valid
26884         when returning nonzero.
26885
26886         * lib/save-cwd.h (restore_cwd): Update prototype.
26887         * lib/save-cwd.c (restore_cwd): Remove two parameters.
26888         Simplify.  Don't call error upon failure.  Let callers do that.
26889         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
26890         when auditing is enabled.  But don't bother updating the #if.
26891
26892 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
26893
26894         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
26895         it breaks C++ compilation.
26896         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
26897
26898 2003-07-10  Simon Josefsson  <jas@extundo.com>
26899
26900         * modules/strchrnul (Makefile.am): Add strchrnul.h.
26901
26902 2003-07-10  Jim Meyering  <jim@meyering.net>
26903
26904         * m4/clock_time.m4: Remove trailing blank.
26905         * m4/intmax_t.m4: Likewise.
26906
26907 2003-07-10  Jim Meyering  <jim@meyering.net>
26908
26909         * lib/vasnprintf.c: Remove trailing blanks.
26910         Make cpp indentation consistent.
26911
26912 2003-07-09  Paul Eggert  <eggert@twinsun.com>
26913
26914         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
26915         posixver.c, strftime.c, strnlen.c, strverscmp.c:
26916         Switch from LGPL to GPL.
26917
26918 2003-07-09  Paul Eggert  <eggert@twinsun.com>
26919
26920         * config/srclist.txt: Sort sublists.  Add
26921         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
26922         that differ from gnulib for one reason or another; we'd like this list
26923         to be smaller but for now let's document what we have.
26924
26925 2003-07-08  Paul Eggert  <eggert@twinsun.com>
26926
26927         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
26928         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
26929         and sweeter "eval x=$x".
26930         * config/srclist.txt: Get lib/argp* from glibc.
26931
26932 2003-07-07  Paul Eggert  <eggert@twinsun.com>
26933
26934         * lib/mktime.c: Fix some boundary cases and remove need for floating
26935         point.
26936
26937         Issue a compile-time diagnostic if time_t is floating point, or if
26938         two's complement arithmetic is not in effect, or if arithmetic
26939         right shift does not propagate the sign.  These assumptions were
26940         all in the original code but they weren't checked.
26941
26942         (TIME_T_MIDPOINT, verify): New macros.
26943         (__isleap): Remove; it has integer overflow problems.
26944         (leapyear): New function, without those problems.
26945         (ydhms_tm_diff): Remove; splitting into two parts.
26946         (ydhms_diff): New function, containing the arithmetic part of
26947         the old ydhms_tm_diff function.  Issue a compile-time
26948         diagnostic if we are not using C99 integer division.
26949         Avoid casts when possible.
26950         (guess_time_tm): New function, containing the checking part of
26951         the old ydhms_tm_diff function.  Return the new value, rather than
26952         the difference between it and the old.  Accept a new argument T
26953         so that *T specifies the old value.  Check for overflow in the result.
26954
26955         (__mktime_internal): Use a time_t offset, not a long int offset.
26956         This undoes the 2003-06-04 change, which is no longer needed now
26957         that we have better overflow checking.
26958         (localtime_offset): Likewise.
26959
26960         (__mktime_internal): Avoid harmful overflow on hosts where time_t
26961         and long are 64-bit but int is only 32-bit.
26962         (ydhms_diff): Use long int to store year1 and yday1.
26963         Issue a compile-time diagnostic if long int is not wide enough.
26964
26965         (__mktime_internal): Use long int to store adjusted year and yday.
26966         Use plain C rather than preprocessor commands, if that doesn't
26967         affect efficiency.
26968         Check for overflow (and try to repair) after each probe
26969         rather than checking only at the very end.  This avoids some bugs
26970         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
26971         does not equal GMT offset at maximum time).
26972         Use integer to check for overflow rather than floating point; this
26973         is more portable to non-IEEE hosts, and is a tad faster.
26974         When we detect that we are oscillating between two values,
26975         don't check whether tm_isdst has the requested value, since
26976         we already know the answer.  When tm_isdst has the wrong value,
26977         use a different heuristic to find the right one, based on the
26978         extreme values actually observed in practice in tz2003a,
26979         rather than the (overly optimistic) "previous 3 calendar quarters".
26980
26981         (not_equal_tm, print_tm, check_result): Use "const T" rather than
26982         "T const" to accommodate glibc style.
26983         (check_result): Use less-confusing report format.  "long" -> "long int.
26984         (main): Likewise.
26985         Don't loop if the iteration overflows time_t.
26986         Allow a negative step in the iteration.
26987
26988 2003-07-06  Karl Berry  <karl@gnu.org>
26989
26990         * config/depcomp: update from automake.
26991         * config/config.sub: update from prep.
26992
26993 2003-07-03  Karl Berry  <karl@gnu.org>
26994
26995         * config/config.guess: update from prep.
26996
26997 2003-07-01  Paul Eggert  <eggert@twinsun.com>
26998
26999         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
27000         xreadlink.c now includes it unconditionally.
27001
27002 2003-07-01  Paul Eggert  <eggert@twinsun.com>
27003
27004         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
27005         having it depend on HAVE_SYS_TYPES_H.
27006
27007 2003-07-01  Bruno Haible  <bruno@clisp.org>
27008
27009         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
27010         <sys/types.h> should be sufficient.
27011         Reported by Paul Eggert.
27012
27013 2003-06-26  Karl Berry  <karl@gnu.org>
27014
27015         * config/depcomp: update from automake.
27016
27017 2003-06-26  Bruno Haible  <bruno@clisp.org>
27018
27019         * modules/human: Depend on module stdbool.
27020
27021 2003-06-25  Bruno Haible  <bruno@clisp.org>
27022
27023         * modules/readlink: New file.
27024         * modules/xreadlink: Depend on it.
27025         * MODULES.html.sh (func_all_modules): Add readlink.
27026
27027 2003-06-25  Bruno Haible  <bruno@clisp.org>
27028
27029         * m4/readlink.m4: New file.
27030
27031 2003-06-25  Bruno Haible  <bruno@clisp.org>
27032
27033         * lib/readlink.c: New file.
27034
27035 2003-06-22  Karl Berry  <karl@gnu.org>
27036
27037         * config/srclist.txt: update mkinstalldirs from automake.
27038         * config/mkinstalldirs: update.
27039
27040 2003-06-22  Bruno Haible  <bruno@clisp.org>
27041
27042         Portability to mingw32.
27043         * m4/ssize_t.m4: New file, from GNU gettext.
27044         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
27045         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
27046
27047 2003-06-22  Bruno Haible  <bruno@clisp.org>
27048
27049         * modules/safe-read: Add m4/ssize_t.m4.
27050         * modules/xreadlink: Add m4/ssize_t.m4.
27051
27052 2003-06-20  Bruno Haible  <bruno@clisp.org>
27053
27054         Assume C89, so PARAMS isn't needed.
27055         * lib/unicodeio.h (PARAMS): Remove.
27056         * lib/unicodeio.c: Don't use PARAMS.
27057
27058 2003-06-18  Karl Berry  <karl@gnu.org>
27059
27060         * config/config.{guess,sub}: update from prep.
27061
27062 2003-06-18  Jim Meyering  <jim@meyering.net>
27063
27064         Merge changes from coreutils.
27065         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
27066         Remove explicit declarations of xmalloc and realloc.
27067         Include xalloc.h.
27068         (read_utmp): Remove anachronistic cast of xmalloc.
27069
27070 2003-06-17  Paul Eggert  <eggert@twinsun.com>
27071
27072         Assume C89, so PARAMS isn't needed.
27073         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
27074         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
27075         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
27076         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
27077         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
27078         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
27079         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
27080         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
27081         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
27082         lib/xstrtod.h, lib/xstrtol.h: Likewise.
27083         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
27084         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
27085         no longer needed. Anyway, config.h should always be included before any
27086         other file.
27087
27088 2003-06-11  Simon Josefsson  <jas@extundo.com>
27089
27090         * modules/sysexits: New file.
27091         * MODULES.html.sh (func_all_modules): Add sysexits.
27092
27093 2003-06-11  Simon Josefsson  <jas@extundo.com>
27094
27095         * lib/sysexit_.h: New file.
27096
27097 2003-06-11  Derek Price  <derek@ximbiot.com>
27098
27099         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
27100         necessary.
27101
27102 2003-06-11  Bruno Haible  <bruno@clisp.org>
27103
27104         * m4/sysexits.m4: New file.
27105
27106 2003-06-10  Simon Josefsson  <jas@extundo.com>
27107
27108         * lib/argp.h: New file, from glibc.
27109         * lib/argp-ba.c: New file, from glibc.
27110         * lib/argp-eexst.c: New file, from glibc.
27111         * lib/argp-fmtstream.c: New file, from glibc.
27112         * lib/argp-fmtstream.h: New file, from glibc.
27113         * lib/argp-fs-xinl.c: New file, from glibc.
27114         * lib/argp-help.c: New file, from glibc.
27115         * lib/argp-namefrob.h: New file, from glibc.
27116         * lib/argp-parse.c: New file, from glibc.
27117         * lib/argp-pv.c: New file, from glibc.
27118         * lib/argp-pvh.c: New file, from glibc.
27119         * lib/argp-xinl.c: New file, from glibc.
27120
27121 2003-06-10  Simon Josefsson  <jas@extundo.com>
27122
27123         * modules/strchrnul: New file.
27124
27125 2003-06-10  Simon Josefsson  <jas@extundo.com>
27126
27127         * modules/argp: New file.
27128
27129 2003-06-10  Simon Josefsson  <jas@extundo.com>
27130
27131         * m4/strchrnul.m4: New file.
27132
27133 2003-06-10  Simon Josefsson  <jas@extundo.com>
27134
27135         * lib/strchrnul.h: New file.
27136         * lib/strchrnul.c: New file.
27137
27138 2003-06-10  Bruno Haible  <bruno@clisp.org>
27139
27140         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
27141
27142 2003-06-07  Karl Berry  <karl@gnu.org>
27143
27144         * config/config.{guess,sub}: update from prep.
27145
27146 2003-06-07  Jim Meyering  <jim@meyering.net>
27147
27148         * modules/strtod: Use $(...) notation, not @...@ for
27149         AC_REPLACE'd variables.
27150         * modules/localcharset: Likewise.
27151
27152 2003-06-07  Jim Meyering  <jim@meyering.net>
27153
27154         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
27155         in place of my name in the copyright comment.
27156         Remove definition and uses of __P.
27157
27158         From coreutils.
27159         * lib/stat.c: Don't declare xmalloc explicitly.
27160         Instead, include "xalloc.h".
27161         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
27162         xrealloc, and xcalloc return values.
27163         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
27164         Improve comment.
27165         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
27166
27167 2003-06-07  Bruno Haible  <bruno@clisp.org>
27168
27169         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
27170         avoid AC_CONFIG_LINKS.
27171         * modules/fnmatch (Makefile.am): Use explicit creation rule for
27172         fnmatch.h, to avoid AC_CONFIG_LINKS.
27173         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
27174
27175 2003-06-07  Bruno Haible  <bruno@clisp.org>
27176
27177         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
27178         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
27179         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
27180         directory.
27181         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
27182         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
27183         directory.
27184
27185 2003-06-06  Jim Meyering  <jim@meyering.net>
27186
27187         Merge from coreutils.
27188         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
27189         Consolidate declarations and initializations of *_base* locals.
27190
27191         Merge from coreutils.
27192         This avoids a core dump on systems without GNU putenv,
27193         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
27194         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
27195         (unsetenv): New static function, from GNU libc.
27196         (rpl_putenv): Use it.
27197
27198         * lib/modechange.c: Remove trailing blanks.
27199
27200         Merge from coreutils.
27201         * lib/fsusage.c: Remove declaration of statfs.
27202         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
27203
27204         * lib/posixtm.c: Include <stdbool.h> unconditionally.
27205
27206 2003-06-06  Jim Meyering  <jim@meyering.net>
27207
27208         * lib/stdbool_.h: Renamed from stdbool.h.in.
27209
27210 2003-06-06  Jim Meyering  <jim@meyering.net>
27211             Bruno Haible  <bruno@clisp.org>
27212
27213         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
27214         Adjust Makefile.am snippet not to redirect directly to target.
27215         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
27216
27217 2003-06-05  Paul Eggert  <eggert@twinsun.com>
27218
27219         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
27220         mismatch, look in future quarters as well as past.  This fixes a
27221         bug when processing fall-backwards gaps immediately after a long
27222         period of daylight-saving time.
27223
27224         * lib/mktime.c: Assume freestanding C89 or better.
27225         (HAVE_LIMITS_H): Remove.  Assume it's 1.
27226         (__P): Remove; not used.
27227         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
27228         (mktime, not_equal_tm, print_tm, check_result,
27229         main): Use prototypes.  Use const * where appropriate.
27230         (main): Fix typo in testing code that uncovered by above changes.
27231         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
27232
27233 2003-06-04  Paul Eggert  <eggert@twinsun.com>
27234
27235         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
27236         locale.h, localeconv.  This merges changes from coreutils.
27237
27238         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
27239         It can be removed after the next Autoconf is released.
27240         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
27241         needed.
27242
27243 2003-06-04  Paul Eggert  <eggert@twinsun.com>
27244
27245         * lib/mktime.c: Fix Debian bug 177940
27246         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
27247         (localtime_offset): Now long int, not time_t, because we want it
27248         to be guaranteed to be signed.  All uses changed.
27249         (__mktime_internal): If overflow would occur when adding offset,
27250         don't add it.
27251
27252         Merge 'human' changes from coreutils.  Rewrite to support
27253         locale-specific notations like thousands separators.
27254         * lib/human.c: Simplify authorship notice.
27255         Include human.h immediately after config.h.
27256         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
27257         <limits.h>: Do not include, since human.h does.
27258         (SIZE_MAX, UINTMAX_MAX): New macros.
27259         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
27260         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
27261         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
27262         (power_letter): Renamed from suffixes.
27263         (generate_suffix_backwards): Remove.
27264         (adjust_value): Now takes int style (because of human.h changes)
27265         and long double value (for greater precision on some platforms).
27266         (group_number): New function.
27267         (human_readable): Use it.  Use integer options, not enum.
27268         Put the options before the sizes in the arg list.
27269         Support all the new options.
27270         The old human_readable function has been removed;
27271         use inttostr.h instead.
27272         (human_readable, default_block_size, humblock):
27273         Use uintmax_t, not int, for block sizes.
27274         (human_readable_inexact, block_size_types): Remove.
27275         (block_size_opts): New constant.
27276         (human_options): Renamed from human_block_size, with new signature
27277         that allows block sizes up to UINTMAX_MAX.  All callers changed.
27278         * lib/human.h: Add copyright and authorship notice.
27279         Include <limits.h> and <stdbool.h> unconditionally.
27280         (PARAMS): Remove.  All uses removed.
27281         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
27282         (enum human_inexact_style): Remove tag; now a nameless enum.
27283         (human_floor, human_ceiling, human_round_to_even): Now have
27284         values 2, 0, 1 rather than -1, 1, 0.
27285         (human_group_digits, human_suppress_point_zero, human_autoscale,
27286         human_base_1024, human_SI, human_B): New constants.
27287         (human_readable_inexact, human_block_size): Remove.
27288         (human_readable): Size args are now uintmax_t, not int.
27289         (human_options): New decl.
27290
27291         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
27292         unnecessary now that we assume C89 or better.  This change
27293         imported from coreutils.
27294
27295         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27296         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
27297         in the 2003-05-30 sync from glibc.
27298
27299         .h files should stand alone, but we shouldn't include <sys/types.h>
27300         if we can get away with just <stddef.h>.
27301
27302         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
27303         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
27304         rather than <sys/types.h>, as we merely need size_t.
27305         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
27306         to get size_t.
27307         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
27308         Include <stdio.h>, to get FILE.
27309         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
27310         memcasecmp.h has included <stddef.h> and all we need is size_t.
27311         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
27312         our interface, instead of including <sys/types.h>
27313
27314 2003-06-04  Paul Eggert  <eggert@twinsun.com>
27315
27316         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
27317         now, as glibc mktime is buggy on non-glibc systems.
27318
27319 2003-06-03  Karl Berry  <karl@gnu.org>
27320
27321         * config/config.sub: update from prep.
27322
27323 2003-06-02  Paul Eggert  <eggert@twinsun.com>
27324
27325         [from coreutils]
27326         Fix some minor time-related bugs with POSIX time arguments.
27327         Some valid time stamps were being rejected (notably -1, and
27328         time stamps before 1900 on 64-bit hosts).  And some invalid
27329         time stamps were being accepted, e.g. September 31.
27330
27331         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
27332         that we can return (time_t) -1 successfully.
27333         * lib/posixtm.c: Likewise.
27334         [HAVE_STDBOOL_H]: Include <stdbool.h>.
27335         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
27336         (t): Remove static var.
27337         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
27338         of static var.  All uses changed.
27339         (year): Do not reject years before 1900; they can occur with
27340         64-bit time_t.
27341         (posix_time_parse): Do not check for out-of-range components;
27342         that is now the caller's responsibility, since our checks were
27343         only approximations.
27344         (posixtime): Use mktime to check for out-of-range components,
27345         since it knows them exactly.
27346         If mktime returns (time_t) -1, check whether an error actually occurred
27347         by invoking localtime on -1.
27348         (main) [TEST_POSIXTIME]: Check for input data errors, and report
27349         posixtime failures better.
27350         Improve the test data (in comments only).
27351
27352 2003-06-02  Karl Berry  <karl@gnu.org>
27353
27354         * config/mkinstalldirs (version): new variable.
27355         (--version): new option.
27356         (usage): improve message.
27357
27358 2003-05-30  Karl Berry  <karl@gnu.org>
27359
27360         * lib/mktime.c: update from libc.
27361
27362 2003-05-30  Bruno Haible  <bruno@clisp.org>
27363
27364         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
27365         * config/config.rpath: Upgrade to gettext-0.12.1.
27366
27367 2003-05-30  Bruno Haible  <bruno@clisp.org>
27368
27369         * m4/gettext.m4: Upgrade to gettext-0.12.1.
27370         * m4/nls.m4: New file, from gettext-0.12.1.
27371         * m4/po.m4: New file, from gettext-0.12.1.
27372         * m4/progtest.m4: Upgrade to gettext-0.12.1.
27373
27374 2003-05-30  Bruno Haible  <bruno@clisp.org>
27375
27376         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
27377         * lib/localcharset.h: Likewise.
27378         * lib/localcharset.c: Likewise.
27379
27380 2003-05-29  Karl Berry  <karl@gnu.org>
27381
27382         * config/config.rpath: update from gettext.
27383
27384 2003-05-28  Paul Eggert  <eggert@twinsun.com>
27385
27386         Assume the headers required for C89 freestanding compilers.
27387         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
27388         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
27389         * m4/human.m4 (gl_HUMAN): Likewise.
27390         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
27391         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
27392         * m4/userspec.m4 (gl_USERSPEC): Likewise.
27393         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
27394         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
27395         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
27396
27397 2003-05-28  Paul Eggert  <eggert@twinsun.com>
27398
27399         Assume the headers required for C89 freestanding compilers.
27400         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
27401         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
27402         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
27403         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
27404         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
27405         define, since <limits.h> is guaranteed to do that.
27406         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
27407         * lib/exclude.c: Include <stdbool.h> unconditionally.
27408         * lib/tempname.c: Include <stddef.h> unconditionally.
27409         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
27410         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
27411         <stddef.h> does that.
27412         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
27413         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
27414         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
27415         needed.
27416         * lib/xstrtol.c: Likewise.
27417         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
27418         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
27419
27420         * lib/addext.c (addext): Use assignment rather than cast, to avoid
27421         warnings on some platforms.
27422
27423         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27424         arbitrarily.
27425
27426 2003-05-26  Jim Meyering  <jim@meyering.net>
27427
27428         Merge in a change from coreutils:
27429         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
27430         that is guaranteed to be `no'.  Use `no_such_member' to indicate
27431         that condition, rather than `-1' which is slightly misleading.
27432         Change the name of the cache variable to have the gl_ prefix.
27433         Prompted by a patch from Richard Dawe for DJGPP.
27434
27435 2003-05-24  Karl Berry  <karl@gnu.org>
27436
27437         * config/config.guess: update from prep.
27438
27439 2003-05-22  Karl Berry  <karl@gnu.org>
27440
27441         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
27442
27443 2003-05-20  Karl Berry  <karl@gnu.org>
27444
27445         * config/config.guess: update from prep.
27446
27447 2003-05-18  Karl Berry  <karl@gnu.org>
27448
27449         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
27450         might actually be set by the user.
27451
27452         * config/depcomp, install-sh, mdate-sh: update from automake.
27453
27454 2003-05-17  Bruno Haible  <bruno@clisp.org>
27455
27456         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
27457         invalid expansion for AC_EGREP_CPP.
27458         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27459         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27460         Suggested by Akim Demaille <akim@epita.fr> in
27461         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
27462
27463 2003-05-12  Jim Meyering  <jim@meyering.net>
27464
27465         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
27466         the space-padded-by-default conversion specifiers, %e, %k, %l.
27467
27468 2003-05-12  Bruno Haible  <bruno@clisp.org>
27469
27470         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
27471         the string is longer than 4 KB.
27472
27473 2003-05-11  Karl Berry  <karl@gnu.org>
27474
27475         * config/config.{guess,sub}: update from prep.
27476
27477 2003-05-09  Bruno Haible  <bruno@clisp.org>
27478
27479         * modules/error: Add m4/strerror_r.m4 to file list.
27480
27481 2003-05-03  Bruno Haible  <bruno@clisp.org>
27482
27483         Upgrade to Unicode-4.0.
27484         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
27485         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
27486         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
27487         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
27488         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
27489         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
27490         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
27491         Change width of U+E0100..U+E01EF from 1 to 0.
27492
27493 2003-04-25  Jim Meyering  <jim@meyering.net>
27494
27495         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
27496         of type size_t, not int.
27497
27498 2003-04-25  Bruno Haible  <bruno@clisp.org>
27499
27500         * lib/copy-file.c: Include <stddef.h>, for size_t.
27501
27502 2003-04-21  Paul Eggert  <eggert@twinsun.com>
27503
27504         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
27505         code which expansion is under static control.  Patch imported from
27506         Akim Demaille's patch to Bison; see
27507         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
27508
27509 2003-04-14  Bruno Haible  <bruno@clisp.org>
27510
27511         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
27512
27513 2003-04-11  Jim Meyering  <jim@meyering.net>
27514
27515         Merge changes from Coreutils.
27516
27517         2003-03-22  Jim Meyering  <jim@meyering.net>
27518
27519         * lib/strftime.c (widen): Cast alloca return value to proper type.
27520
27521         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
27522
27523         From GNU libc.
27524         * lib/strftime.c (my_strftime): Handle very large width
27525         specifications for numeric values correctly.  Improve checks for
27526         overflow.
27527
27528         2003-01-19  Jim Meyering  <jim@meyering.net>
27529
27530         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
27531         definitions.
27532         (nl_get_alt_digit) [! defined my_strftime]: Define.
27533         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
27534         _nl_get_alt_digit and _nl_get_walt_digit.
27535
27536         * lib/strftime.c (my_strftime): Merge in locale-related changes from
27537         libc. These changes have no effect outside of _LIBC.
27538
27539 2003-04-10  Bruno Haible  <bruno@clisp.org>
27540
27541         * modules/findprog: New file.
27542         * MODULES.html.sh (func_all_modules): Add it.
27543
27544 2003-04-10  Bruno Haible  <bruno@clisp.org>
27545
27546         * m4/findprog.m4: New file.
27547         * m4/eaccess.m4: New file.
27548
27549 2003-04-10  Bruno Haible  <bruno@clisp.org>
27550
27551         * lib/findprog.h: New file, from GNU gettext.
27552         * lib/findprog.c: New file, from GNU gettext.
27553
27554 2003-04-05  Jim Meyering  <jim@meyering.net>
27555
27556         Merge changes from Coreutils.
27557
27558         * lib/exclude.h (PARAMS): Remove definition and uses.
27559         * lib/exclude.c: Remove uses of `PARAMS'.
27560
27561         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
27562         Add test-cases for DOS filenames. Declare program_name.
27563         (main): Set up program_name.  Patch by Rich Dawe.
27564
27565         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
27566         error from mntctl.
27567         Use mntctl's return value to drive the entry-processing loop, since
27568         we can't rely on the value of the vmt_length member in the last
27569         entry.  On some systems doing so could result in exhausting
27570         virtual memory.  Based in part on a patch from Mike Jetzer.
27571
27572 2003-04-04  Bruno Haible  <bruno@clisp.org>
27573
27574         * modules/linebreak: New file.
27575         * MODULES.html.sh (func_all_modules): Add it.
27576
27577 2003-04-04  Bruno Haible  <bruno@clisp.org>
27578
27579         * m4/linebreak.m4: New file.
27580
27581 2003-04-04  Bruno Haible  <bruno@clisp.org>
27582
27583         * lib/linebreak.h: New file, from GNU gettext.
27584         * lib/linebreak.c: New file, from GNU gettext with slight
27585         modifications.
27586         * lib/lbrkprop.h: New file, from GNU gettext.
27587
27588 2003-04-03  Bruno Haible  <bruno@clisp.org>
27589
27590         * modules/utf8-ucs4: New file.
27591         * modules/utf16-ucs4: New file.
27592         * modules/ucs4-utf8: New file.
27593         * modules/ucs4-utf16: New file.
27594         * MODULES.html.sh (func_all_modules): Add them.
27595
27596 2003-04-03  Bruno Haible  <bruno@clisp.org>
27597
27598         * m4/utf-ucs4.m4: New file.
27599         * m4/ucs4-utf.m4: New file.
27600
27601 2003-04-03  Bruno Haible  <bruno@clisp.org>
27602
27603         * lib/utf8-ucs4.h: New file, from GNU gettext.
27604         * lib/utf16-ucs4.h: New file, from GNU gettext.
27605         * lib/ucs4-utf8.h: New file, from GNU gettext.
27606         * lib/ucs4-utf16.h: New file, from GNU gettext.
27607
27608 2003-04-02  Bruno Haible  <bruno@clisp.org>
27609
27610         * modules/binary-io: New file.
27611         * MODULES.html.sh (func_all_modules): Add it.
27612
27613 2003-04-02  Bruno Haible  <bruno@clisp.org>
27614
27615         * lib/binary-io.h: New file, from GNU gettext.
27616
27617 2003-04-01  Bruno Haible  <bruno@clisp.org>
27618
27619         * modules/pathname: New file.
27620         * MODULES.html.sh (func_all_modules): Add it.
27621
27622 2003-04-01  Bruno Haible  <bruno@clisp.org>
27623
27624         * lib/pathname.h: New file, from GNU gettext.
27625         * lib/concatpath.c: New file, from GNU gettext.
27626
27627 2003-03-30  Bruno Haible  <bruno@clisp.org>
27628
27629         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
27630
27631 2003-03-30  Bruno Haible  <bruno@clisp.org>
27632
27633         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
27634         function chown() doesn't exist.
27635
27636 2003-03-28  Bruno Haible  <bruno@clisp.org>
27637
27638         * modules/copy-file: New file.
27639         * MODULES.html.sh (func_all_modules): Add it.
27640
27641 2003-03-28  Bruno Haible  <bruno@clisp.org>
27642
27643         * m4/copy-file.m4: New file.
27644
27645 2003-03-28  Bruno Haible  <bruno@clisp.org>
27646
27647         * lib/copy-file.h: New file, from GNU gettext.
27648         * lib/copy-file.c: New file, from GNU gettext.
27649
27650 2003-03-18  Jim Meyering  <jim@meyering.net>
27651
27652         * lib/quote.c (quote_n): Fix typo in comment.
27653
27654 2003-03-18  Bruno Haible  <bruno@clisp.org>
27655
27656         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
27657         checking.
27658         * m4/onceonly_2_57.m4: Likewise.
27659
27660 2003-03-17  Bruno Haible  <bruno@clisp.org>
27661
27662         * m4/onceonly.m4: Require autoconf 2.54 or newer.
27663         (m4_quote): Remove macro.
27664         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
27665
27666 2003-03-14  Jim Meyering  <jim@meyering.net>
27667
27668         Merge changes from Coreutils.
27669         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
27670         to be const, in order to avoid warnings.
27671         (obstack_room): Likewise.
27672         (obstack_empty_p): Likewise.
27673
27674 2003-03-14  Bruno Haible  <bruno@clisp.org>
27675
27676         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
27677         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
27678
27679 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27680
27681         Merge changes from Bison.
27682         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
27683         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
27684         when compiling Bison 1.875's `bitset bset = obstack_alloc
27685         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
27686         * lib/hash.c: Include <stdbool.h> unconditionally.
27687
27688 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27689
27690         * m4/onceonly.m4 (m4_quote): New macro.
27691         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
27692         Quote AC_FOREACH variable-expansions properly.
27693
27694 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27695
27696         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
27697
27698 2003-03-09  Paul Eggert  <eggert@twinsun.com>
27699
27700         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
27701         Reported by Bruce Becker; see:
27702         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
27703
27704 2003-03-03  Paul Eggert  <eggert@twinsun.com>
27705             Bruno Haible  <bruno@clisp.org>
27706
27707         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
27708         Reported by John Hughes, see
27709         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
27710
27711 2003-02-20  Bruno Haible  <bruno@clisp.org>
27712
27713         * MODULES.html.sh (func_all_modules): Add poll.
27714
27715 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27716
27717         * modules/poll: New file.
27718
27719 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27720
27721         * lib/poll_.h: New file.
27722         * lib/poll.c: New file.
27723
27724 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27725
27726         * m4/poll.m4: New file.
27727
27728 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
27729
27730         * modules/mathl: New file.
27731
27732 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
27733
27734         * lib/mathl.h: New file.
27735         * lib/acosl.c: New file.
27736         * lib/asinl.c: New file.
27737         * lib/atanl.c: New file.
27738         * lib/ceill.c: New file.
27739         * lib/cosl.c: New file.
27740         * lib/expl.c: New file.
27741         * lib/floorl.c: New file.
27742         * lib/frexpl.c: New file.
27743         * lib/ldexpl.c: New file.
27744         * lib/logl.c: New file.
27745         * lib/sincosl.c: New file.
27746         * lib/sinl.c: New file.
27747         * lib/sqrtl.c: New file.
27748         * lib/tanl.c: New file.
27749         * lib/trigl.c: New file.
27750         * lib/trigl.h: New file.
27751
27752 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
27753
27754         * m4/mathl.m4: New file.
27755
27756 2003-02-18  Bruno Haible  <bruno@clisp.org>
27757
27758         * MODULES.html.sh (func_all_modules): Add mathl.
27759
27760 2003-02-17  Bruno Haible  <bruno@clisp.org>
27761
27762         * modules/mkdtemp: New module.
27763         * MODULES.html.sh (func_all_modules): Add it.
27764
27765 2003-02-17  Bruno Haible  <bruno@clisp.org>
27766
27767         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
27768
27769 2003-02-17  Bruno Haible  <bruno@clisp.org>
27770
27771         * lib/mkdtemp.h: New file, from GNU gettext.
27772         * lib/mkdtemp.c: New file, from GNU gettext.
27773
27774 2003-02-02  Jim Meyering  <jim@meyering.net>
27775
27776         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
27777         e.g. glibc-2.2.93.
27778
27779 2003-01-31  Bruno Haible  <bruno@clisp.org>
27780
27781         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
27782         'rpl_rename'.
27783         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
27784         'rpl_strnlen'.
27785         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
27786         'rpl_strtod'.
27787         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
27788         'rpl_utime'.
27789
27790 2003-01-31  Bruno Haible  <bruno@clisp.org>
27791
27792         * lib/rename.c: #undef rename before defining rpl_rename.
27793         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
27794
27795 2003-01-30  Bruno Haible  <bruno@clisp.org>
27796
27797         * modules/vasnprintf, modules/vasprintf: New modules.
27798         * MODULES.html.sh (func_all_modules): Add them.
27799
27800 2003-01-30  Bruno Haible  <bruno@clisp.org>
27801
27802         * m4/signed.m4: New file, from GNU gettext.
27803         * m4/longdouble.m4: New file, from GNU gettext.
27804         * m4/wchar_t.m4: New file, from GNU gettext.
27805         * m4/wint_t.m4: New file, from GNU gettext.
27806         * m4/vasnprintf.m4: New file.
27807         * m4/vasprintf.m4: New file.
27808
27809 2003-01-30  Bruno Haible  <bruno@clisp.org>
27810
27811         * lib/printf-args.h: New file, from GNU gettext.
27812         * lib/printf-args.c: New file, from GNU gettext.
27813         * lib/printf-parse.h: New file, from GNU gettext.
27814         * lib/printf-parse.c: New file, from GNU gettext.
27815         * lib/vasnprintf.h: New file, from GNU gettext.
27816         * lib/vasnprintf.c: New file, from GNU gettext.
27817         * lib/asnprintf.c: New file, from GNU gettext.
27818         * lib/vasprintf.h: New file, from GNU gettext with modifications.
27819         * lib/vasprintf.c: New file, from GNU gettext.
27820         * lib/asprintf.c: New file, from GNU gettext.
27821
27822 2003-01-29  Bruno Haible  <bruno@clisp.org>
27823
27824         * modules/stpncpy: New module.
27825         * MODULES.html.sh (func_all_modules): Add it.
27826
27827 2003-01-29  Bruno Haible  <bruno@clisp.org>
27828
27829         * m4/stpncpy.m4: New file.
27830
27831 2003-01-29  Bruno Haible  <bruno@clisp.org>
27832
27833         * lib/stpncpy.h: New file, from GNU gettext with modifications.
27834         * lib/stpncpy.c: New file, from GNU gettext with modifications.
27835
27836 2003-01-28  Bruno Haible  <bruno@clisp.org>
27837
27838         * modules/c-ctype: New module.
27839         * MODULES.html.sh (func_all_modules): Add it.
27840
27841 2003-01-28  Bruno Haible  <bruno@clisp.org>
27842
27843         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
27844         Paul Eggert.
27845         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
27846         Paul Eggert.
27847
27848 2003-01-27  Bruno Haible  <bruno@clisp.org>
27849
27850         * modules/xsetenv: New module.
27851         * MODULES.html.sh (func_all_modules): Add it.
27852
27853 2003-01-27  Bruno Haible  <bruno@clisp.org>
27854
27855         * lib/xsetenv.h: New file, from GNU gettext.
27856         * lib/xsetenv.c: New file, from GNU gettext.
27857
27858 2003-01-23  Jim Meyering  <jim@meyering.net>
27859
27860         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
27861         from working on systems without dirfd (at least Irix and OSF1/Tru64).
27862
27863 2003-01-23  Bruno Haible  <bruno@clisp.org>
27864
27865         * modules/minmax: New module.
27866         * MODULES.html.sh (func_all_modules): Add it.
27867
27868 2003-01-23  Bruno Haible  <bruno@clisp.org>
27869
27870         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
27871         Eggert.
27872
27873 2003-01-22  Bruno Haible  <bruno@clisp.org>
27874
27875         * modules/exit: New module.
27876         * MODULES.html.sh (func_all_modules): Add it.
27877
27878 2003-01-22  Bruno Haible  <bruno@clisp.org>
27879
27880         * lib/exit.h: New file, from GNU gettext.
27881
27882 2003-01-19  Bruno Haible  <bruno@clisp.org>
27883
27884         * gnulib-tool: Recognize option --extract-maintainer.
27885         (func_get_maintainer): New function.
27886         * modules/*: Add Maintainer entry.
27887
27888 2003-01-16  Jim Meyering  <jim@meyering.net>
27889
27890         * m4/regex.m4: The `regex' struct is both input and output.
27891         Initialize it before each use.  Patch by Tim Waugh.
27892
27893 2003-01-16  Bruno Haible  <bruno@clisp.org>
27894
27895         * MODULES.html.sh: Add a table of contents. Add the module name as
27896         leftmost column. Add hyperlinks.
27897
27898 2003-01-15  Bruno Haible  <bruno@clisp.org>
27899
27900         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
27901
27902 2003-01-15  Bruno Haible  <bruno@clisp.org>
27903
27904         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
27905         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
27906         suffix.
27907
27908 2003-01-15  Bruno Haible  <bruno@clisp.org>
27909
27910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
27911
27912 2003-01-15  Bruno Haible  <bruno@clisp.org>
27913
27914         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
27915         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
27916
27917 2003-01-14  Jim Meyering  <jim@meyering.net>
27918
27919         * lib/same.c (same_name): Tweak a comment.
27920
27921 2003-01-14  Bruno Haible  <bruno@clisp.org>
27922
27923         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
27924         when a string comparison is sufficient.
27925
27926 2003-01-14  Bruno Haible  <bruno@clisp.org>
27927
27928         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
27929         'unsigned int'.
27930
27931 2003-01-14  Bruno Haible  <bruno@clisp.org>
27932
27933         * lib/hash-pjw.c: Add comment about low quality of this function.
27934
27935 2003-01-13  Bruno Haible  <bruno@clisp.org>
27936
27937         * modules/stpcpy: Distribute lib/stpcpy.h.
27938         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
27939
27940 2003-01-13  Bruno Haible  <bruno@clisp.org>
27941
27942         * modules/*: Add a description.
27943         * modules/strpbrk: Fix Makefile.am snippet.
27944         * modules/strtoimax: Fix dependencies.
27945         * modules/strtoumax: Likewise.
27946
27947 2003-01-13  Bruno Haible  <bruno@clisp.org>
27948
27949         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
27950         * modules/alloca (Makefile.am): All object files depend on alloca.h.
27951         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
27952
27953 2003-01-13  Bruno Haible  <bruno@clisp.org>
27954
27955         * gnulib-tool (func_create_testdir): Store config/* files in the main
27956         directory.
27957         * config.rpath: Move to ...
27958         * config/config.rpath: ... here.
27959         * modules/gettext: Contains config/config.rpath, not config.rpath.
27960         * modules/iconv: Likewise.
27961
27962 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27963
27964         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27965         to avoid collisions with libcurses and libreadline.
27966
27967         * m4/getstr.m4: Remove.
27968         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
27969
27970 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27971
27972         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27973         to avoid collisions with libcurses and libreadline.
27974
27975         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
27976         * lib/getstr.h, getstr.c: Remove.
27977         * lib/getline.c: Include "getline.h", to check interface.
27978         Move body of old getstr.c here: this defines MIN_CHUNK and
27979         declares getdelim2, which is renamed from getstr.
27980         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
27981
27982         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
27983         All uses changed.
27984         * lib/linebuffer.h: Likewise.
27985         (readline): Remove backward-compatibility macro.
27986
27987 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27988
27989         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27990         to avoid collisions with libcurses and libreadline.
27991         * getstr: Remove.
27992         * MODULES.html.sh: Remove getstr.
27993         * modules/getline: Depend on unlocked-io, not getstr.
27994
27995 2003-01-12  Jim Meyering  <jim@meyering.net>
27996
27997         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
27998
27999 2003-01-10  Bruno Haible  <bruno@clisp.org>
28000
28001         * modules/alloca: Change Makefile.am requirements. Simplify Include
28002         requirements. Add lib/alloca_.h to file list.
28003
28004 2003-01-10  Bruno Haible  <bruno@clisp.org>
28005
28006         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
28007
28008 2003-01-10  Bruno Haible  <bruno@clisp.org>
28009
28010         * lib/alloca_.h: New file.
28011         * lib/getdate.y: Unconditionally include alloca.h.
28012         * lib/makepath.c: Likewise.
28013         * lib/setenv.c: Likewise.
28014         * lib/userspec.c: Likewise.
28015
28016 2003-01-09  Karl Berry  <karl@gnu.org>
28017
28018         * MODULES.html.sh: include `dirname $0` in PATH, to find
28019         gnulib-tool.
28020
28021 2003-01-09  Bruno Haible  <bruno@clisp.org>
28022
28023         * modules/stdbool: Change configure.ac, Makefile.am requirements.
28024         Simplify Include requirements. Add lib/stdbool.h.in to file list.
28025
28026 2003-01-09  Bruno Haible  <bruno@clisp.org>
28027
28028         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
28029
28030 2003-01-09  Bruno Haible  <bruno@clisp.org>
28031
28032         * lib/stdbool.h.in: New file.
28033
28034 2003-01-09  Bruno Haible  <bruno@clisp.org>
28035
28036         * gnulib-tool (func_all_modules): Ignore files ending in ~.
28037         * MODULES.html.sh: Likewise.
28038
28039 2003-01-08  Jim Meyering  <jim@meyering.net>
28040
28041         * lib/full-write.c: Undefine and define-away `const' after inclusion
28042         of errno.h, not before.  Suggestion from Bruno Haible.
28043
28044 2003-01-08  Bruno Haible  <bruno@clisp.org>
28045
28046         * modules/full-read: Depend on full-write.
28047
28048 2003-01-08  Bruno Haible  <bruno@clisp.org>
28049
28050         * lib/safe-read.c: Include specification header first, to ensure its
28051         selfcontainedness.
28052         * lib/full-write.c: Likewise.
28053
28054 2003-01-07  Jim Meyering  <jim@meyering.net>
28055
28056         * lib/full-write.c: Rework so that it may serve to define full_read,
28057         too.
28058         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
28059
28060 2003-01-07  Bruno Haible  <bruno@clisp.org>
28061
28062         * lib/strtoimax.c: Include <stdint.h> as an alternative to
28063         <inttypes.h>.
28064         * lib/xstrtol.h: Likewise.
28065         * lib/xstrtoimax.c: Likewise.
28066         * lib/xstrtoumax.c: Likewise.
28067         * lib/human.h: Likewise.
28068
28069         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
28070         on systems that have <inttypes.h> but not <stdint.h>.
28071
28072 2003-01-07  Bruno Haible  <bruno@clisp.org>
28073
28074         * MODULES.html.sh: Add copyright notice.
28075         (missed_files): Omit CVS directory entries.
28076         (func_module): Make it work with sed-3.02.
28077         * MODULES.txt: Remove file.
28078
28079 2003-01-06  Jim Meyering  <jim@meyering.net>
28080
28081         * lib/version-etc.c: Update year in translatable copyright string.
28082
28083 2003-01-03  Karl Berry  <karl@gnu.org>
28084
28085         * config/config.{guess,sub}: update from prep.
28086
28087 2003-01-02  Karl Berry  <karl@gnu.org>
28088
28089         * doc/COPYING.DOC: belatedly updated to 1.2.
28090
28091 2003-01-01  Karl Berry  <karl@gnu.org>
28092
28093         * gnulib-tool (func_verify_module): report module name $module in
28094         error message, not $1.
28095         * gnulib-tool (create-testdir): don't complain if destdir couldn't
28096         be created, only if it doesn't exist.
28097         * gnulib-tool (last_checkin_date): don't expand the $Date here.
28098
28099 2002-12-31  Paul Eggert  <eggert@twinsun.com>
28100
28101         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
28102
28103 2002-12-31  Paul Eggert  <eggert@twinsun.com>
28104
28105         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
28106         memcmp if strcoll doesn't work.
28107
28108 2002-12-31  Bruno Haible  <bruno@clisp.org>
28109
28110         * lib/utime.c (utime_null): No need to call ftruncate if the file was
28111         nonempty.
28112
28113 2002-12-31  Bruno Haible  <bruno@clisp.org>
28114
28115         * lib/memcoll.c (STRCOLL): New macro.
28116         (memcoll): Use it.
28117
28118 2002-12-31  Bruno Haible  <bruno@clisp.org>
28119
28120         * lib/localcharset.h: New file.
28121         * lib/localcharset.c: Include it.
28122         * lib/unicodeio.c: Likewise.
28123
28124 2002-12-31  Bruno Haible  <bruno@clisp.org>
28125
28126         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
28127         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
28128
28129 2002-12-31  Bruno Haible  <bruno@clisp.org>
28130
28131         * lib/getline.h: Include <stddef.h>, for size_t.
28132
28133         * lib/unicodeio.h: Include <stddef.h>, for size_t.
28134         * lib/unicodeio.c: Don't include <stddef.h>.
28135
28136 2002-12-31  Bruno Haible  <bruno@clisp.org>
28137
28138         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
28139         HAVE_TM_ZONE.
28140
28141 2002-12-24  Karl Berry  <karl@gnu.org>
28142
28143         * config/config.guess: update from prep.
28144
28145 2002-12-24  Bruno Haible  <bruno@clisp.org>
28146
28147         General infrasructure.
28148         * m4/README: Rewritten.
28149         * m4/onceonly.m4: New file.
28150         * m4/onceonly_2_57.m4: New file.
28151
28152         Module atexit.
28153         * m4/atexit.m4: New file.
28154
28155         Module strtod.
28156         * m4/strtod.m4: New file.
28157
28158         Module strtol.
28159         * m4/strtol.m4: New file.
28160
28161         Module strtoul.
28162         * m4/strtoul.m4: New file.
28163
28164         Module memchr.
28165         * m4/memchr.m4: New file.
28166
28167         Module memcmp.
28168         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
28169         (jm_FUNC_MEMCMP): Invoke it.
28170
28171         Module memcpy.
28172         * m4/memcpy.m4: New file.
28173
28174         Module memmove.
28175         * m4/memmove.m4: New file.
28176
28177         Module memset.
28178         * m4/memset.m4: New file.
28179
28180         Module strcspn.
28181         * m4/strcspn.m4: New file.
28182
28183         Module strpbrk.
28184         * m4/strpbrk.m4: New file.
28185
28186         Module strstr.
28187         * m4/strstr.m4: New file.
28188
28189         Module strerror.
28190         * m4/strerror.m4: New file.
28191
28192         Module mktime.
28193         * m4/mktime.m4: Renamed from jm-mktime.m4.
28194         (gl_PREREQ_MKTIME): New macro.
28195         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
28196
28197         Module malloc.
28198         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
28199         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
28200         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
28201
28202         Module realloc.
28203         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
28204         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
28205         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
28206
28207         Module strftime.
28208         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
28209         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
28210         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
28211         gl_TM_GMTOFF.
28212         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
28213
28214         Module xalloc.
28215         * m4/xalloc.m4: New file.
28216
28217         Module alloca.
28218         * m4/alloca.m4: New file.
28219
28220         Module putenv.
28221         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
28222         (jm_FUNC_PUTENV): Invoke it.
28223
28224         Module setenv.
28225         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
28226         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
28227         when invoked twice.
28228         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
28229         gt_FUNC_SETENV.
28230
28231         Module memrchr.
28232         * m4/memrchr.m4: New file.
28233
28234         Module stpcpy.
28235         * m4/stpcpy.m4: New file.
28236
28237         Module strcase.
28238         * m4/strcase.m4: New file.
28239
28240         Module strdup.
28241         * m4/strdup.m4: New file.
28242
28243         Module strnlen.
28244         * m4/strnlen.m4: New file.
28245
28246         Module strndup.
28247         * m4/strndup.m4: New file.
28248
28249         Module xstrtod.
28250         * m4/xstrtod.m4: New file.
28251
28252         Module xstrtol.
28253         * m4/xstrtol.m4: New file.
28254
28255         Module getdate.
28256         * m4/getdate.m4: New file.
28257
28258         Module unlocked-io.
28259         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
28260         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
28261         * m4/jm-glibc-io.m4n: Remove file.
28262
28263         Module long-options.
28264         * m4/long-options.m4: New file.
28265
28266         Module md5.
28267         * m4/md5.m4: New file.
28268
28269         Module sha.
28270         * m4/sha.m4: New file.
28271
28272         Module getstr.
28273         * m4/getstr.m4: New file.
28274
28275         Module getline.
28276         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
28277         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
28278         <sys/types.h>, for size_t. Use the function name gnu_getline, not
28279         simply getline. Infoke gl_PREREQ_GETLINE.
28280
28281         Module obstack.
28282         * m4/obstack.m4: New file.
28283
28284         Module hash.
28285         * m4/hash.m4: New file.
28286
28287         Module readtokens.
28288         * m4/readtokens.m4: New file.
28289
28290         Module strverscmp.
28291         * m4/strverscmp.m4: New file.
28292
28293         Module stdbool.
28294         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
28295         OSF/1.
28296
28297         Module strtoll.
28298         * m4/strtoll.m4: New file.
28299
28300         Module strtoull.
28301         * m4/strtoull.m4: New file.
28302
28303         Module strtoimax.
28304         * m4/strtoimax.m4: New file.
28305
28306         Module strtoumax.
28307         * m4/strtoumax.m4: New file.
28308
28309         Module xstrtoimax.
28310         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
28311         jm_AC_PREREQ_XSTRTOIMAX.
28312         Moved the strtol prerequisites to strtol.m4.
28313         Moved the strtoll prerequisites to strtoll.m4.
28314         Moved the strtoimax prerequisites to strtoimax.m4.
28315
28316         Module xstrtoumax.
28317         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
28318         jm_AC_PREREQ_XSTRTOUMAX.
28319         Moved the strtoul prerequisites to strtoul.m4.
28320         Moved the strtoull prerequisites to strtoull.m4.
28321         Moved the strtoumax prerequisites to strtoumax.m4.
28322
28323         Module chown.
28324         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
28325         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
28326
28327         Module dup2.
28328         * m4/dup2.m4: New file.
28329
28330         Module ftruncate.
28331         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
28332         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
28333
28334         Module getgroups.
28335         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
28336         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
28337
28338         Module gettimeofday.
28339         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
28340         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
28341         gl_PREREQ_GETTIMEOFDAY.
28342
28343         Module mkdir.
28344         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
28345         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
28346
28347         Module mkstemp.
28348         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
28349         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
28350         jm_AC_TYPE_UINTMAX_T.
28351         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
28352
28353         Module stat.
28354         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
28355         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
28356
28357         Module lstat.
28358         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
28359         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
28360
28361         Module timespec.
28362         * m4/timespec.m4 (gl_TIMESPEC): New macro.
28363         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
28364         * m4/st_mtim.m4: Indentation.
28365
28366         Module nanosleep.
28367         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
28368         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
28369         gl_PREREQ_NANOSLEEP.
28370
28371         Module regex.
28372         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
28373         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
28374         (gl_REGEX): New macro.
28375
28376         Module rename.
28377         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
28378         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
28379
28380         Module rmdir.
28381         * m4/rmdir.m4: New file.
28382
28383         Module utime.
28384         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
28385         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
28386         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
28387
28388         Module dirname.
28389         * m4/dirname.m4: New file.
28390
28391         Module getopt.
28392         * m4/getopt.m4: New file.
28393
28394         Module unistd-safer.
28395         * m4/unistd-safer.m4: New file.
28396
28397         Module fnmatch.
28398         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
28399         declaration.
28400         (gl_PREREQ_FNMATCH_EXTRA): New macro.
28401         (gl_FUNC_FNMATCH_POSIX): New macro.
28402         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
28403         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
28404         simply fnmatch.
28405
28406         Module exclude.
28407         * m4/exclude.m4: New file.
28408
28409         Module human.
28410         * m4/human.m4: New file.
28411
28412         Module acl.
28413         * m4/acl.m4: Nop.
28414
28415         Module backupfile.
28416         * m4/backupfile.m4: New file.
28417         * m4/d-ino.m4: Indentation.
28418
28419         Module fsusage.
28420         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
28421         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
28422         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
28423
28424         Module dirfd.
28425         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
28426         requirements.
28427
28428         Module euidaccess.
28429         * m4/euidaccess.m4: New file.
28430
28431         Module file-type.
28432         * m4/file-type.m4: New file.
28433
28434         Module fileblocks.
28435         * m4/fileblocks.m4: New file.
28436
28437         Module filemode.
28438         * m4/filemode.m4: New file.
28439
28440         Module isdir.
28441         * m4/isdir.m4: New file.
28442
28443         Module lchown.
28444         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
28445         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
28446
28447         Module makepath.
28448         * m4/makepath.m4: New file.
28449
28450         Module modechange.
28451         * m4/modechange.m4: New file.
28452
28453         Module mountlist.
28454         * m4/mountlist.m4: New file.
28455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
28456         Indentation.
28457
28458         Module path-concat.
28459         * m4/path-concat.m4: New file.
28460
28461         Module pathmax.
28462         * m4/pathmax.m4: New file.
28463
28464         Module same.
28465         * m4/same.m4: New file.
28466
28467         Module save-cwd.
28468         * m4/save-cwd.m4: New file.
28469
28470         Module savedir.
28471         * m4/savedir.m4: New file.
28472
28473         Module xgetcwd.
28474         * m4/xgetcwd.m4: New file.
28475         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
28476
28477         Module xreadlink.
28478         * m4/xreadlink.m4: New file.
28479
28480         Module safe-read.
28481         * m4/safe-read.m4: New file.
28482
28483         Module safe-write.
28484         * m4/safe-write.m4: New file.
28485
28486         Module closeout.
28487         * m4/closeout.m4: New file.
28488
28489         Module stdio-safer.
28490         * m4/stdio-safer.m4: New file.
28491
28492         Module getpass.
28493         * m4/getpass.m4: New file.
28494
28495         Module getugroups.
28496         * m4/getugroups.m4: New file.
28497
28498         Module group-member.
28499         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
28500         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
28501
28502         Module idcache.
28503         * m4/idcache.m4: New file.
28504
28505         Module userspec.
28506         * m4/userspec.m4: New file.
28507
28508         Module gettime.
28509         * m4/clock_time.m4: New file.
28510         * m4/gettime.m4: New file.
28511
28512         Module settime.
28513         * m4/settime.m4: New file.
28514
28515         Module posixtm.
28516         * m4/posixtm.m4: New file.
28517
28518         Module gethostname.
28519         * m4/gethostname.m4: New file.
28520
28521         Module canon-host.
28522         * m4/canon-host.m4: New file.
28523
28524         Module gettext.
28525         * m4/codeset.m4: New file, from gettext-0.11.5.
28526         * m4/gettext.m4: New file, from gettext-0.11.5.
28527         * m4/glibc21.m4: New file, from gettext-0.11.5.
28528         * m4/iconv.m4: New file, from gettext-0.11.5.
28529         * m4/intdiv0.m4: New file, from gettext-0.11.5.
28530         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
28531         * m4/inttypes.m4: New file, from gettext-0.11.5.
28532         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
28533         * m4/isc-posix.m4: New file, from gettext-0.11.5.
28534         * m4/lcmessage.m4: New file, from gettext-0.11.5.
28535         * m4/lib-ld.m4: New file, from gettext-0.11.5.
28536         * m4/lib-link.m4: New file, from gettext-0.11.5.
28537         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
28538         * m4/progtest.m4: New file, from gettext-0.11.5.
28539         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
28540         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
28541         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
28542
28543         Module localcharset.
28544         * m4/localcharset.m4: New file.
28545
28546         Module hard-locale.
28547         * m4/hard-locale.m4: New file.
28548
28549         Module mbswidth.
28550         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
28551         onceonly macros.
28552         * m4/mbrtowc.m4: Add comment.
28553
28554         Module memcasecmp.
28555         * m4/memcasecmp.m4: New file.
28556
28557         Module memcoll.
28558         * m4/memcoll.m4: New file.
28559
28560         Module unicodeio.
28561         * m4/unicodeio.m4: New file.
28562
28563         Module rpmatch.
28564         * m4/rpmatch.m4: New file.
28565
28566         Module yesno.
28567         * m4/yesno.m4: New file.
28568
28569         Module exitfail.
28570         * m4/exitfail.m4: New file.
28571
28572         Module c-stack.
28573         * m4/c-stack.m4 (gl_C_STACK): New macro.
28574         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
28575
28576         Module error.
28577         * m4/error.m4 (gl_ERROR): New macro.
28578         (jm_PREREQ_ERROR): Use onceonly macros.
28579
28580         Module fatal.
28581         * m4/fatal.m4: New file.
28582
28583         Module getloadavg.
28584         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
28585         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
28586
28587         Module getpagesize.
28588         * m4/getpagesize.m4: New file.
28589
28590         Module getusershell.
28591         * m4/getusershell.m4: New file.
28592
28593         Module physmem.
28594         * m4/physmem.m4: New file.
28595
28596         Module posixver.
28597         * m4/posixver.m4: New file.
28598
28599         Module quotearg.
28600         * m4/quotearg.m4: New file.
28601
28602         Module quote.
28603         * m4/quote.m4: New file.
28604
28605         Module readutmp.
28606         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
28607
28608         Module sig2str.
28609         * m4/sig2str.m4: New file.
28610
28611         Other.
28612         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
28613         ulonglong.m4.
28614         * m4/intmax_t.m4: New file.
28615         * m4/d-type.m4: Indentation.
28616         * m4/jm-macros.m4: Update.
28617         * m4/prereq.m4 (jm_PREREQ): Update.
28618         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
28619         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
28620         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
28621         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
28622         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
28623         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
28624         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
28625         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
28626         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
28627         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
28628         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
28629         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
28630         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
28631         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
28632         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
28633         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
28634         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
28635         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
28636         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
28637
28638 2002-12-24  Bruno Haible  <bruno@clisp.org>
28639
28640         * MODULES.txt: Update according to m4/ changes.
28641
28642         Module gettext.
28643         * config.rpath: New file, from gettext-0.11.5.
28644
28645         * modules/*: New module descriptions.
28646         * gnulib-tool: New file.
28647         * MODULES.html.sh: New file.
28648
28649 2002-12-21  Karl Berry  <karl@gnu.org>
28650
28651         * doc/fdl.texi: update to version 1.2.
28652
28653 2002-12-19  Karl Berry  <karl@gnu.org>
28654
28655         * config/config.guess: update from prep.
28656
28657 2002-12-18  Bruno Haible  <bruno@clisp.org>
28658
28659         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
28660         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
28661
28662 2002-12-17  Bruno Haible  <bruno@clisp.org>
28663
28664         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
28665         stdlib.h, string.h.
28666
28667 2002-12-17  Bruno Haible  <bruno@clisp.org>
28668
28669         * lib/canon-host.c (strdup): Remove unused declaration.
28670
28671         * lib/fsusage.c: Include full_read.h.
28672         (get_fs_usage): Use full_read instead of safe_read.
28673
28674         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
28675
28676 2002-12-12  Karl Berry  <karl@gnu.org>
28677
28678         * config/config.guess: update from prep.
28679
28680 2002-12-11  Bruno Haible  <bruno@clisp.org>
28681
28682         * m4/setenv.m4: New file, from gettext-0.11.5.
28683
28684 2002-12-11  Bruno Haible  <bruno@clisp.org>
28685
28686         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
28687         not unsetenv().
28688         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
28689         modifications:
28690
28691         2002-12-11  Bruno Haible  <bruno@clisp.org>
28692
28693                 * setenv.c (alloca): Fall back to malloc.
28694                 (freea): New macro.
28695                 (setenv): Use freea() to free memory allocated with alloca().
28696
28697         2002-11-13  Bruno Haible  <bruno@clisp.org>
28698
28699                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
28700                 function declarations.
28701                 * unsetenv.c (unsetenv): Likewise.
28702
28703         2002-03-04  Bruno Haible  <bruno@clisp.org>
28704
28705                 Portability to AIX 4.3.3.
28706                 * unsetenv.c: New file, extracted from setenv.c.
28707                 * setenv.c: Move the unsetenv() function to unsetenv.c.
28708
28709         2001-12-20  Bruno Haible  <bruno@clisp.org>
28710
28711                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
28712                 use malloc instead. For SunOS 4.
28713
28714         2001-12-11  Bruno Haible  <bruno@clisp.org>
28715
28716                 * setenv.c: Declare alloca.
28717                 (compar_fn_t): New typedef.
28718                 (KNOWN_VALUE, STORE_VALUE): Use it.
28719
28720         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
28721         setenv.h.
28722
28723 2002-12-10  Paul Eggert  <eggert@twinsun.com>
28724
28725         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
28726         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
28727         Choose values that are less likely to collide with system fnmatch
28728         options.
28729         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
28730         defined (e.g., a pure POSIX system).
28731         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
28732         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
28733
28734 2002-12-06  Paul Eggert  <eggert@twinsun.com>
28735
28736         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
28737         a pain in practice to deal with generated m4 files.  This change
28738         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
28739
28740         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
28741         and jm-glibc-io.m4, as they are no longer a special case.
28742         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
28743         kludge and the auto-generation stuff.  Check only whether the
28744         functions are declared, not whether they exist, since older hosts
28745         that don't declare the functions can't use the optimization anyway.
28746
28747 2002-12-06  Jim Meyering  <jim@meyering.net>
28748
28749         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
28750
28751         Merge in changes from libc's misc/error.c, in preparation
28752         for the merge of gnulib's changes back into libc.
28753
28754         * lib/error.c (_): Define only if not already defined.
28755         Move definition to follow all #include directives.
28756         Include unlocked-io.h only if !_LIBC.
28757         [_LIBC]: Include <libio/libioP.h>.
28758         [USE_IN_LIBIO]: Include <libio/iolibio.h>
28759         (fflush): Tweak definition to use INTUSE.
28760         (putc): Define.
28761
28762 2002-12-05  Paul Eggert  <eggert@twinsun.com>
28763
28764         * lib/alloca.c [defined emacs]: Include "lisp.h".
28765         (xalloc_die) [defined emacs]: New macro.
28766         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
28767         [! defined emacs]: Include <xalloc.h>.
28768         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
28769         (pointer): Typedef to POINTER_TYPE *.
28770         (malloc): Remove decl; we now always use xmalloc.
28771         (alloca): Use old-style definition, since Emacs needs this.
28772         Check for arithmetic overflow when computing combined size.
28773
28774 2002-12-04  Paul Eggert  <eggert@twinsun.com>
28775
28776         Do not generate unlocked-io.h automatically, since it's easier to
28777         maintain it by hand.
28778
28779         * lib/unlocked-io.h: New file, from GNU diffutils,
28780         but with proper copyright notice and attribution.
28781         * lib/gen-uio: Remove.
28782         * lib/Makefile.am: Add copyright notice.
28783         (libfetish_a_SOURCES): Add unlocked-io.h.
28784         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
28785         (DISTCLEANFILES, io_functions): Remove macros.
28786         (EXTRA_DIST): Remove gen_uio.
28787         (unlocked-io.h): Remove rule.
28788
28789 2002-12-04  Jim Meyering  <jim@meyering.net>
28790
28791         Reflect the fact that stat.c and lstat.c are no longer generated.
28792         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
28793         (DISTCLEANFILES): Likewise.
28794         (EXTRA_DIST): Likewise.
28795         (all_local): Don't depend on stat.c or lstat.c.
28796         (stat.c, lstat.c): Remove rules.
28797         (EXTRA_DIST): Remove xstat.in.
28798
28799         * lib/xstat.in: Remove file.  Contents moved into stat.c.
28800         * lib/stat.c: New file.  Contents mostly from xstat.in.
28801         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
28802         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
28803
28804         * lib/safe-read.c: Rework so that it may serve to define safe_write,
28805         too.
28806         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
28807
28808 2002-12-03  Jim Meyering  <jim@meyering.net>
28809
28810         * lib/safe-read.c, safe-write.c: Change variable names and comments,
28811         but not semantics, to minimize the differences between these two files.
28812         (safe_read): Change comment to mention SAFE_READ_ERROR.
28813
28814         * lib/safe-read.c (IS_EINTR): Define.
28815         (safe_read): Use IS_EINTR in place of in-function cpp directives.
28816
28817 2002-12-02  Jim Meyering  <jim@meyering.net>
28818
28819         * lib/safe-read.c (EINTR): Define.
28820         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
28821         (INT_MAX): Provide fallback.
28822         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
28823
28824         * lib/safe-read.h (SAFE_READ_ERROR): Define.
28825
28826 2002-12-02  Bruno Haible  <bruno@clisp.org>
28827
28828         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28829         Define, taken from safe-read.c.
28830         (INT_MAX): Provide fallback.
28831         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
28832         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
28833
28834         * lib/safe-read.c (EINTR): Remove definition.
28835         (safe_read): Don't use EINTR if it is absent.
28836
28837 2002-12-01  Jim Meyering  <jim@meyering.net>
28838
28839         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
28840         zero.
28841         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
28842
28843 2002-11-27  Paul Eggert  <eggert@twinsun.com>
28844
28845         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
28846         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
28847         with `if (! (value < limit)) abort ();', for readability.
28848
28849 2002-11-26  Karl Berry  <karl@gnu.org>
28850
28851         * lib/strdup.c: copy from libc again, with jim's ok.
28852         * lib/.cppi-disable: re-add strdup.c
28853
28854 2002-11-25  Karl Berry  <karl@gnu.org>
28855
28856         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
28857         instead of "strtol.c".
28858
28859 2002-11-25  Karl Berry  <karl@gnu.org>
28860
28861         * config/install-sh: update from automake for variable quoting, $0 in
28862         error msgs, etc.
28863
28864         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
28865         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
28866         entry.
28867
28868 2002-11-25  Jim Meyering  <jim@meyering.net>
28869
28870         * lib/mktime.c: Sync from libc, now that it has the latest fix.
28871
28872 2002-11-24  Karl Berry  <karl@gnu.org>
28873
28874         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
28875         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
28876
28877 2002-11-24  Jim Meyering  <jim@meyering.net>
28878
28879         Update from coreutils:
28880
28881         * lib/mktime.c: Merge in changes from libc.
28882
28883         Avoid a link-time failure on some Linux systems.
28884         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
28885         (otherwise).
28886         (__mon_yday): Declare with the STATIC attribute.
28887         (__mktime_internal): Likewise.
28888         Based on a report from Greg Schafer.
28889
28890 2002-11-23  Jim Meyering  <jim@meyering.net>
28891
28892         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
28893         Use `unsigned', not `int', as type of index.
28894
28895         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
28896
28897         * lib/fsusage.c: Remove unneeded parentheses around operands of
28898         `defined'.
28899
28900 2002-11-22  Paul Eggert  <eggert@twinsun.com>
28901
28902         * lib/quotearg.h: Allow multiple inclusion by surrounding with
28903         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
28904         so that we can be included first.
28905         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
28906         * lib/quotearg.c: Include quotearg.h immediately after config.h.
28907         No need to include stddef.h or sys/types.h any more.
28908         Surround local include files with "", not "<>".
28909         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
28910         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
28911         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
28912         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
28913         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
28914         (ISPRINT): Remove; no longer needed now that we assume C89.
28915
28916         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
28917         Preserve errno.
28918
28919         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
28920         quotearg_char): Use SIZE_MAX rather than
28921         (size_t) -1 when we are talking about "infinity".
28922
28923         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
28924
28925 2002-11-22  Paul Eggert  <eggert@twinsun.com>
28926
28927         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
28928         hint that one should use `if (! x) abort ();' rather than `assert
28929         (x);', and anyway it's one less thing to worry about configuring.
28930         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
28931         hash_rehash, hash_insert): Use abort rather than assert.
28932
28933 2002-11-22  Bruno Haible  <bruno@clisp.org>
28934
28935         * lib/safe-read.h: Assume C89. Add comments.
28936         (safe_read): Change return type to size_t.
28937         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
28938         byte counts > SSIZE_MAX correctly.
28939         * lib/safe-write.h: New file.
28940         * lib/safe-write.c: New file.
28941         * lib/full-read.h: New file.
28942         * lib/full-read.c: New file.
28943         * lib/full-write.h: Assume C89. Add comments.
28944         * lib/full-write.c: Include safe-write.h.
28945         (full_write): Rewritten to use safe_write.
28946         Suggested by Jim Meyering and Paul Eggert.
28947
28948 2002-11-21  Jim Meyering  <jim@meyering.net>
28949
28950         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
28951
28952         Merge in changes from the coreutils.
28953
28954         2002-09-25  Paul Eggert  <eggert@twinsun.com>
28955         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
28956         <stdint.h>.
28957         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
28958         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
28959         int.  Work more efficiently if X is the same width as uintmax_t.
28960         Do not compare X to -1, to avoid bogus compiler warning.
28961         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
28962         Don't assume that f_frsize and f_bsize are the same type.
28963
28964         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
28965         warning on FreeBSD.
28966
28967         * lib/makepath.c (make_path): Restore umask *before* creating the final
28968         component.
28969         (make_path): Minor reformatting.
28970
28971         * lib/xmalloc.c: Adjust to work with new autoconf macros,
28972         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
28973         HAVE_MALLOC/HAVE_REALLOC.
28974
28975         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
28976         dummy ones.  At least on GNU/Linux systems, `auto' means something
28977         else.
28978         From Michael Stone.
28979
28980 2002-11-21  Bruno Haible  <bruno@clisp.org>
28981
28982         Remove case insensitive option matching.
28983         * lib/argmatch.h (argcasematch): Remove declaration.
28984         (ARGCASEMATCH): Remove macro.
28985         (__xargmatch_internal): Remove case_sensitive argument.
28986         (XARGMATCH): Update.
28987         (XARGCASEMATCH): Remove macro.
28988         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
28989         case_sensitive argument.
28990         (argcasematch): Remove function.
28991         (__xargmatch_internal): Remove case_sensitive argument.
28992         (main): Use XARGMATCH instead of XARGCASEMATCH.
28993
28994         * lib/xmalloc.c: Change compile-time error message. Add comment about
28995         required autoconf version.
28996
28997 2002-11-20  Paul Eggert  <eggert@twinsun.com>
28998
28999         Merge argmatch cleanups from Bison.  Assume C89.
29000
29001         * lib/argmatch.c: Include config.h here, not in argmatch.h.
29002         Include stdlib.h, for EXIT_FAILURE.
29003         Always include <string.h>, since we assume C89.
29004         (EXIT_FAILURE): Remove pre-C89 bug workaround.
29005         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
29006         Include <stddef.h> instead, since it's all we need for size_t.
29007         (PARAMS): Remove.  All uses removed.
29008         (ARRAY_CARDINALITY): Do not bother to #undef.
29009         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
29010         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
29011         Remove unnecessary parentheses.
29012         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
29013         Insert necessary parentheses.
29014         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
29015         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
29016
29017 2002-11-19  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
29020         * lib/mbswidth.h: Include <stddef.h>, for size_t.
29021
29022         * lib/mbswidth.h (PARAMS): Remove macro.
29023         (mbswidth, mbsnwidth): Use ANSI C function declarations.
29024         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
29025
29026         * lib/gcd.h (PARAMS): Remove macro.
29027         (gcd): Use ANSI C function declarations.
29028         * lib/gcd.c (gcd): Likewise.
29029
29030 2002-11-15  Bruno Haible  <bruno@clisp.org>
29031
29032         * lib/strcspn.c: Include <stddef.h>.
29033         (strcspn): Use ANSI C function declaration. Change return type to
29034         size_t. Use NULL.
29035         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
29036         (strpbrk): Use NULL.
29037         * lib/strpbrk.h (PARAMS): Remove macro.
29038         (strpbrk): Use ANSI C function declaration.
29039         * lib/strstr.c: Don't include <sys/types.h>.
29040         * lib/strstr.h (PARAMS): Remove macro.
29041         (strstr): Use ANSI C function declarations.
29042
29043 2002-11-14  Karl Berry  <karl@gnu.org>
29044
29045         * config/mkinstalldirs: `do' on separate line, instead of
29046         `for var; do'.
29047
29048 2002-11-06  Bruno Haible  <bruno@clisp.org>
29049
29050         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
29051         * lib/gcd.c (gcd): Likewise.
29052
29053 2002-11-05  Bruno Haible  <bruno@clisp.org>
29054
29055         * lib/gcd.h: New file, from gettext-0.11.5.
29056         * lib/gcd.c: New file, from gettext-0.11.5.
29057
29058 2002-11-05  Bruno Haible  <bruno@clisp.org>
29059
29060         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
29061         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
29062         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
29063         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
29064
29065         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
29066         <libintl.h>.
29067         * lib/makepath.c: Include gettext.h instead of <locale.h> and
29068         <libintl.h>.
29069
29070         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
29071         * lib/human.c: Include gettext.h instead of <libintl.h>.
29072         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
29073         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
29074         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
29075         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
29076         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
29077         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
29078         (textdomain): Remove definition.
29079         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
29080
29081         * lib/long-options.c: Remove include of <libintl.h> and definition of
29082         _.
29083         * lib/same.c: Remove include of <libintl.h> and definition of _.
29084
29085 2002-11-04  Owen Taylor  <otaylor@redhat.com>
29086
29087         * lib/config.charset: A few additions for Solaris.
29088
29089 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
29090
29091         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
29092         * lib/localcharset.c (locale_charset): Declare as extern "C".
29093
29094 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
29095
29096         * lib/config.charset: msdos in uk_UA uses CP1125.
29097
29098 2002-11-04  Bruno Haible  <bruno@clisp.org>
29099
29100         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
29101         * lib/strcase.h: New file, from GNU gettext-0.11.5.
29102         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
29103         * lib/strstr.h: New file, from GNU gettext-0.11.5.
29104         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
29105
29106 2002-11-04  Bruno Haible  <bruno@clisp.org>
29107
29108         * lib/localcharset.c (locale_charset): Don't return an empty string.
29109
29110 2002-11-04  Bruno Haible  <bruno@clisp.org>
29111
29112         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
29113         aliases.
29114
29115 2002-11-04  Bruno Haible  <bruno@clisp.org>
29116
29117         * lib/config.charset: Update for newest glibc. Add canonical names
29118         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
29119
29120 2002-11-04  Bruno Haible  <bruno@clisp.org>
29121
29122         * lib/config.charset: Add support for NetBSD.
29123
29124 2002-11-04  Bruno Haible  <bruno@clisp.org>
29125
29126         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
29127
29128 2002-11-01  Bruno Haible  <bruno@clisp.org>
29129
29130         * configure.in: Add AC_CONFIG_AUX_DIR call.
29131         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
29132         test/Makefile.
29133         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
29134
29135 2002-09-28  Karl Berry  <karl@gnu.org>
29136
29137         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
29138         installed automake until the next release, since changes have been
29139         made.
29140
29141 2002-09-25  Karl Berry  <karl@gnu.org>
29142
29143         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
29144         * lib/getopt*: copy from libc/posix.
29145         * lib/gettext.h: copy from gettext.
29146         * lib/.cppi-disable: add strdup.c, gettext.h.
29147
29148 2002-09-25  Karl Berry  <karl@gnu.org>
29149
29150         * config/srclist.txt: enable gettext.h check.
29151         * config/config.{guess,sub}: update from prep.
29152         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
29153                 from automake 1.6.3.
29154         See srclist*.
29155
29156 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
29157
29158         * regex.c (PATFETCH): Remove the translating fetch.
29159         (PATFETCH_RAW): Rename to PATFETCH.
29160         (set_image_of_range): New fun.
29161         (SET_RANGE_TABLE_WORK_AREA): Use it.
29162         (regex_compile): Don't translate the pattern chars so eagerly.
29163         Only do it when inserting an `exactn' bytecode or when handling
29164         a char-range.
29165         (mutually_exclusive_p): Avoid empty statement.
29166
29167 2002-07-06  Jim Meyering  <meyering@lucent.com>
29168
29169         * m4/README: Don't mention Makefile.am.in.
29170         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
29171
29172 2002-07-01  Jim Meyering  <meyering@lucent.com>
29173
29174         * lib/c-stack.c: Include sys/time.h.
29175         From Volker Borchert.
29176
29177 2002-06-26  Paul Eggert  <eggert@twinsun.com>
29178
29179         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
29180
29181 2002-06-26  Paul Eggert  <eggert@twinsun.com>
29182
29183         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
29184         New macro.  Use it uniformly instead of
29185         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
29186         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
29187         reported by Vin Shelton.
29188
29189 2002-06-22  Paul Eggert  <eggert@twinsun.com>
29190
29191         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
29192         Do not assume SA_SIGINFO behavior.
29193         Bug reported by Jim Meyering on NetBSD 1.5.2.
29194
29195 2002-06-22  Jim Meyering  <meyering@lucent.com>
29196
29197         * m4/c-stack.m4: New file, from diffutils-2.8.2.
29198         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
29199
29200         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
29201         now that configure.ac uses AC_GNU_SOURCE.
29202         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
29203         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
29204
29205         Update to latest tools.  Suggestions from Paul Eggert.
29206         * m4/stdbool.m4: New file, from diffutils-2.8.2.
29207         * m4/gnu-source.m4: Update from diffutils-2.8.2.
29208         * m4/fnmatch.m4: Likewise.
29209         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
29210         to AC_HEADER_STDBOOL
29211
29212 2002-06-22  Jim Meyering  <meyering@lucent.com>
29213
29214         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
29215         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
29216
29217 2002-06-22  Jim Meyering  <meyering@lucent.com>
29218
29219         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
29220
29221         * lib/exitfail.c, exitfail.h: Likewise.
29222         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
29223
29224         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
29225         of fnmatch.h.
29226         (EXTRA_DIST): Add fnmatch_loop.c.
29227         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
29228
29229         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
29230         * lib/fnmatch.c: Update from diffutils-2.8.2.
29231         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
29232         * lib/fnmatch.h: Remove file.
29233
29234 2002-06-21  Jim Meyering  <meyering@lucent.com>
29235
29236         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
29237         * m4/mbrtowc.m4: Likewise.
29238
29239         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
29240         * m4/mbswidth.m4: Reflect name change:
29241         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
29242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
29243
29244         * m4/lib-link.m4: Update from gettext-0.11.2.
29245         * m4/gettext.m4: Likewise.
29246
29247         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
29248         From Alfred M. Szmidt.
29249
29250 2002-06-18  Paul Eggert  <eggert@twinsun.com>
29251
29252         * lib/file-type.h: Report an error if neither S_ISREG nor
29253         S_IFREG is defined, instead of using a test specific to glibc
29254         2.2.  This should be safe, since POSIX requires S_ISREG and
29255         Unix Version 7 had S_IFREG.  We don't need to check for
29256         <sys/types.h> since we don't use any symbols that it defines.
29257
29258 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
29259
29260         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
29261         $@-t, so that each temporary file name is unique and valid in the first
29262         8 characters, for operation under DOS.
29263
29264 2002-06-15  Paul Eggert  <eggert@twinsun.com>
29265
29266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
29267
29268 2002-06-15  Jim Meyering  <meyering@lucent.com>
29269
29270         Work even with DJGPP 2.03, which lacks support for symlinks.
29271         From Richard Dawe.
29272         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
29273         is defined.
29274         * lib/lchown.c (S_ISLNK): Likewise.
29275
29276 2002-06-15  Jim Meyering  <meyering@lucent.com>
29277
29278         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
29279         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
29280         have been included before this file.
29281
29282 2002-06-14  Jim Meyering  <meyering@lucent.com>
29283
29284         * lib/file-type.h: Use the version from diffutils-2.8.2.
29285         * lib/file-type.c: Likewise.
29286
29287 2002-06-07  Jim Meyering  <meyering@lucent.com>
29288
29289         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
29290         They're needed at least for NetBSD 1.5.2.
29291         ($statxfs_includes): Include those same headers.
29292         ($statxfs_includes): Include sys/vfs.h if available.
29293         ($statxfs_includes): Likewise for sys/statvfs.h.
29294         Check for the following members in both structs statfs and statvfs:
29295         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
29296
29297 2002-06-01  Jim Meyering  <meyering@lucent.com>
29298
29299         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
29300         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
29301
29302 2002-05-28  Jim Meyering  <meyering@lucent.com>
29303
29304         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
29305         Reported by Volker Borchert.
29306
29307 2002-05-27  Jim Meyering  <meyering@lucent.com>
29308
29309         Fix a problem seen only on nonconforming systems whereby ls.c's
29310         use of localtime, and then of gettimeofday would cause trouble:
29311         the localtime call used to initialize rpl_gettimeofday's save
29312         mechanism would clobber ls's current local time information so
29313         that in any long listing the first file would always be listed
29314         with date 1970-01-01.  Analysis by Volker Borchert.
29315
29316         * lib/gettimeofday.c (localtime): Undefine.
29317         (rpl_localtime): New function.
29318
29319 2002-05-27  Jim Meyering  <meyering@lucent.com>
29320
29321         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
29322         localtime.
29323
29324         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
29325         use the replacement function; it wouldn't resolve at link time.
29326         Reported by Volker Borchert.
29327
29328 2002-05-22  Jim Meyering  <meyering@lucent.com>
29329
29330         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
29331         file-type.h.
29332         * lib/file-type.h: New file.
29333         * lib/file-type.c (file_type): New file/function.  Extracted from
29334         diffutils.
29335
29336 2002-04-30  Jim Meyering  <meyering@lucent.com>
29337
29338         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
29339
29340 2002-04-29  Paul Eggert  <eggert@twinsun.com>
29341
29342         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
29343
29344 2002-04-29  Paul Eggert  <eggert@twinsun.com>
29345
29346         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
29347         Do not check for alloca.h (no longer used) or stdbool.h (was never
29348         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
29349
29350 2002-04-29  Paul Eggert  <eggert@twinsun.com>
29351
29352         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
29353
29354 2002-04-29  Jim Meyering  <meyering@lucent.com>
29355
29356         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
29357         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
29358         Use AC_FUNC_STRNLEN here instead.
29359
29360         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
29361         With autoconf-2.53a, it's part of AC_PROG_CC.
29362
29363 2002-04-28  Paul Eggert  <eggert@twinsun.com>
29364
29365         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
29366         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
29367
29368 2002-04-28  Paul Eggert  <eggert@twinsun.com>
29369
29370         * lib/sig2str.h, lib/sig2str.c: New files.
29371         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
29372
29373 2002-04-28  Paul Eggert  <eggert@twinsun.com>
29374
29375         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
29376         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
29377         of 127, since 64 is the largest conceivable number for ancient
29378         nonstandard hosts.
29379         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
29380
29381 2002-04-28  Jim Meyering  <meyering@lucent.com>
29382
29383         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
29384
29385 2002-04-24  Jim Meyering  <meyering@lucent.com>
29386
29387         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
29388         (jm_PREREQ): Use it.
29389
29390         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
29391         mach/mach.h fcntl.h.
29392         Check for this function: setlocale.
29393
29394 2002-04-24  Jim Meyering  <meyering@lucent.com>
29395
29396         * lib/gettext.h: New file, from Gettext.
29397         * lib/Makefile.am (INCLUDES): Remove -I../intl.
29398         (libfetish_a_SOURCES): Add gettext.h.
29399
29400 2002-04-16  Jim Meyering  <meyering@lucent.com>
29401
29402         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
29403         ut_pid, ut_id, ut_exit.
29404
29405 2002-04-16  Jim Meyering  <meyering@lucent.com>
29406
29407         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
29408         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
29409         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
29410
29411 2002-04-12  Jim Meyering  <meyering@lucent.com>
29412
29413         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
29414         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
29415         existence of the getmntinfo function.  Needed for Darwin 5.3.
29416
29417         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
29418         This is necessary at least on Darwin 5.3.
29419
29420         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
29421         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
29422         strnlen.o in the library, and that makes some versions of ranlib
29423         object.
29424
29425 2002-04-12  Jim Meyering  <meyering@lucent.com>
29426
29427         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
29428
29429 2002-04-09  Jim Meyering  <meyering@lucent.com>
29430
29431         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
29432         to be more precise.  Rather than saying we're checking whether the
29433         function `works', say what we're testing.
29434         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
29435         Reported by Bruno Haible.
29436
29437 2002-03-10  Jim Meyering  <meyering@lucent.com>
29438
29439         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
29440         Suggestion from Santiago Vila.
29441
29442 2002-03-08  Jim Meyering  <meyering@lucent.com>
29443
29444         * lib/rename.c: Mention that this wrapper is needed also on
29445         mips-dec-ultrix4.4 systems.
29446
29447 2002-03-02  Jim Meyering  <meyering@lucent.com>
29448
29449         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
29450         not HAVE_CLOCK_SETTIME.
29451
29452 2002-02-27  Paul Eggert  <eggert@twinsun.com>
29453
29454         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
29455         Check for clock_settime.
29456
29457 2002-02-27  Paul Eggert  <eggert@twinsun.com>
29458
29459         * lib/nanosleep.h: Rename to....
29460         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
29461
29462         * lib/gettime.c: New file.
29463         * lib/settime.c: New file.
29464         * lib/stime.c: Remove.
29465
29466         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
29467         timespec.h.  Remove nanosleep.h.
29468
29469 2002-02-25  Paul Eggert  <eggert@twinsun.com>
29470
29471         * m4/acl.m4: New file.
29472         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
29473         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
29474
29475 2002-02-25  Paul Eggert  <eggert@twinsun.com>
29476
29477         * lib/acl.c, lib/acl.h: New files.
29478         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
29479
29480 2002-02-24  Jim Meyering  <meyering@lucent.com>
29481
29482         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
29483         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
29484         cause trouble.  Reported by Nelson Beebe.
29485
29486 2002-02-23  Paul Eggert  <eggert@twinsun.com>
29487
29488         * lib/path-concat.c (xpath_concat): Reorder code to pacify
29489         compilers that don't know that xalloc_die never returns.
29490
29491 2002-02-20  Jim Meyering  <meyering@lucent.com>
29492
29493         * lib/getdate.c: Regenerate using bison-1.33.
29494
29495 2002-02-17  Jim Meyering  <meyering@lucent.com>
29496
29497         * config/config.guess (main): Don't use `head -1'; it's no longer
29498         portable. Use `sed 1q' instead.
29499
29500 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
29501
29502         * m4/codeset.m4: Upgrade to gettext-0.11.
29503         * m4/gettext.m4: Upgrade to gettext-0.11.
29504         * m4/glibc21.m4: Upgrade to gettext-0.11.
29505         * m4/iconv.m4: Upgrade to gettext-0.11.
29506         * m4/isc-posix.m4: Upgrade to gettext-0.11.
29507         * m4/lcmessage.m4: Upgrade to gettext-0.11.
29508         * m4/lib-ld.m4: New file, from gettext-0.11.
29509         * m4/lib-link.m4: New file, from gettext-0.11.
29510         * m4/lib-prefix.m4: New file, from gettext-0.11.
29511         * m4/progtest.m4: Upgrade to gettext-0.11.
29512
29513 2002-02-15  Paul Eggert  <eggert@twinsun.com>
29514
29515         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
29516         (jm_PREREQ): Use it.
29517
29518 2002-02-15  Paul Eggert  <eggert@twinsun.com>
29519
29520         * lib/posixver.c, lib/posixver.h: New files.
29521         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29522
29523 2002-02-02  Paul Eggert  <eggert@twinsun.com>
29524             Bruno Haible  <bruno@clisp.org>
29525
29526         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
29527         (fwrite_success_callback): New declaration.
29528         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
29529         print_unicode_char. Call failure callback instead of error.
29530         (fwrite_success_callback): New function.
29531         (exit_failure_callback): New function.
29532         (fallback_failure_callback): New function.
29533         (print_unicode_char): Call unicode_to_mb.
29534
29535 2002-01-26  Jim Meyering  <meyering@lucent.com>
29536
29537         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
29538         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
29539
29540 2002-01-26  Jim Meyering  <meyering@lucent.com>
29541
29542         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
29543
29544 2002-01-22  Paul Eggert  <eggert@twinsun.com>
29545
29546         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
29547
29548 2002-01-22  Jim Meyering  <meyering@lucent.com>
29549
29550         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
29551         Otherwise, some versions of automake would omit the rule that makes
29552         Makefile from Makefile.in.
29553
29554 2002-01-21  Paul Eggert  <eggert@twinsun.com>
29555
29556         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
29557         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29558         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
29559         (memcoll): Set errno to zero if there is no error.
29560
29561         * lib/quotearg.c (quotearg_buffer_restyled):
29562         Fix bug with quoting buffers containing NUL when backslashing escapes.
29563         This bug was exposed by the other changes in this patch.
29564         (quotearg_n_options): New arg ARGSIZE.
29565         All callers changed.
29566         (quoting_options_from_style): New function.
29567         (quotearg_n_style): Use it.
29568         (quotearg_n_style_mem): New function.
29569
29570         * lib/quotearg.h (quotearg_n_style_mem): New function.
29571
29572 2002-01-19  Jim Meyering  <meyering@lucent.com>
29573
29574         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
29575         Remove useless quotes: DF_PROG="df".
29576         * m4/strnlen.m4: New file.
29577
29578 2002-01-16  Paul Eggert  <eggert@twinsun.com>
29579
29580         * lib/backupfile.c (ISDIGIT): Comment fix.
29581         * lib/getdate.y (ISDIGIT): Likewise.
29582         * lib/posixtm.c (ISDIGIT, year): Likewise.
29583         * lib/strverscmp.c (ISDIGIT): Likewise.
29584         * lib/userspec.c (ISDIGIT): Likewise.
29585
29586 2002-01-16  Jim Meyering  <meyering@lucent.com>
29587
29588         * lib/getdate.y: Add three semicolons, each just before a closing
29589         brace. Bison (as of version 1.31) no longer papers over that mistake.
29590
29591 2002-01-05  Jim Meyering  <meyering@lucent.com>
29592
29593         * lib/version-etc.c (version_etc_copyright): Update copyright year.
29594
29595 2001-12-19  Paul Eggert  <eggert@twinsun.com>
29596
29597         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
29598         not silently exit merely because the output buffer happens to
29599         have nothing pending.
29600
29601 2001-12-18  Paul Eggert  <eggert@twinsun.com>
29602
29603         See the big note in ../ChangeLog.
29604         * lib/human.c (suffixes): Prefer K to k for 1024.
29605         (generate_suffix_backwards): New function.
29606         (human_readable_inexact): Use it.
29607         * lib/xstrtol.c (__xstrtol): If there is no number but there
29608         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
29609         Accept 'K' as well as 'k'.
29610
29611 2001-12-15  Jim Meyering  <meyering@lucent.com>
29612
29613         * lib/regex.h (__restrict_arr): Update from libc.
29614
29615         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
29616         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
29617         (STREQ): Define.
29618
29619 2001-12-14  Jim Meyering  <meyering@lucent.com>
29620
29621         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
29622         Suggestion from Bruno Haible.
29623
29624 2001-12-10  Jim Meyering  <meyering@lucent.com>
29625
29626         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
29627         xrealloc, Instead, include "xalloc.h".
29628         (initbuffer): Don't cast xmalloc return value to char*.
29629         (readline): Reword comment.
29630         Don't cast xrealloc return value to char*
29631         Return NULL, not 0.
29632
29633 2001-12-09  Jim Meyering  <meyering@lucent.com>
29634
29635         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
29636         about `signed and unsigned type in conditional expression'.
29637         * lib/posixtm.c (posix_time_parse): Likewise.
29638
29639         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
29640
29641         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
29642         to avoid a pedantic warning.
29643
29644         * lib/getstr.c: Don't include assert.h.
29645         (getstr): Remove warning-evoking assertions.
29646         Return -1 if offset parameter is out of bounds.
29647         Change the type of a local from int to size_t.
29648
29649         * lib/strftime.c (my_strftime_localtime_r): Include this function
29650         definition in the `#if ! HAVE_TM_GMTOFF' block.
29651
29652         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
29653         Include xalloc.h instead.
29654
29655 2001-12-02  Jim Meyering  <meyering@lucent.com>
29656
29657         * lib/tempname.c: Don't declare getenv, thus reverting the change of
29658         2001-11-18.  It's no longer necessary, now that stdlib.h is always
29659         included.
29660
29661         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
29662         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
29663
29664 2001-11-30  Akim Demaille  <akim@epita.fr>
29665
29666         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
29667         before being defined.
29668
29669 2001-11-27  Paul Eggert  <eggert@twinsun.com>
29670
29671         * lib/quotearg.h (quotearg_n, quotearg_n_style):
29672         First arg is int, not unsigned.
29673         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
29674         (SIZE_MAX, UINT_MAX): New macros.
29675         (quotearg_n_options): Abort if N is negative.
29676         Avoid overflow check on hosts where size_t is 64 bits and int
29677         is 32 bits, as overflow is impossible there.
29678         Fix off-by-one typo that caused unnecessary reallocation.
29679
29680 2001-11-27  Jim Meyering  <meyering@lucent.com>
29681
29682         * lib/tempname.c: Merge with version from libc.
29683         * lib/regex.c: Likewise.
29684
29685         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
29686         systems for which STDC_HEADERS is 0, it was not included, resulting in
29687         a warning about an integer-to-pointer conversion problem with getenv.
29688         Reported by Volker Borchert.
29689
29690 2001-11-26  Jim Meyering  <meyering@lucent.com>
29691
29692         * lib/gtod.h: Remove file.
29693         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
29694         * lib/gettimeofday.c: Don't include gtod.h.
29695         (GTOD_init): Remove function.
29696         (rpl_gettimeofday): Do its job here instead, rather than aborting.
29697         Suggestion from Volker Borchert.
29698
29699 2001-11-23  Jim Meyering  <meyering@lucent.com>
29700
29701         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
29702         it.
29703         * lib/hash.c (struct hash_table): Define it here instead.
29704
29705 2001-11-22  Jim Meyering  <meyering@lucent.com>
29706
29707         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
29708
29709 2001-11-20  Jim Meyering  <meyering@lucent.com>
29710
29711         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
29712         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
29713
29714 2001-11-19  Jim Meyering  <meyering@lucent.com>
29715
29716         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
29717         directory.  Use "conftestXXXXXX" as the template.
29718         Suggestion from Paul Eggert.
29719
29720         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
29721         immediately, so the test doesn't mistakenly hit the max-open-files
29722         limit.
29723
29724 2001-11-18  Paul Eggert  <eggert@twinsun.com>
29725
29726         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
29727         (TEMPORARIES): New macro.
29728         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
29729         removes an artificial limitation (e.g. HP-UX 10.20, where
29730         TMP_MAX is 17576).
29731
29732 2001-11-18  Jim Meyering  <meyering@lucent.com>
29733
29734         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
29735
29736 2001-11-18  Jim Meyering  <meyering@lucent.com>
29737
29738         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
29739         on SunOS 4.
29740
29741         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
29742         files will be created before anything else.
29743
29744 2001-11-17  Paul Eggert  <eggert@twinsun.com>
29745
29746         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
29747         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
29748
29749 2001-11-17  Jim Meyering  <meyering@lucent.com>
29750
29751         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
29752         Prompted by a report from Bob Proulx.
29753
29754         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
29755         Instead, require UTILS_FUNC_MKSTEMP.
29756
29757 2001-11-17  Jim Meyering  <meyering@lucent.com>
29758
29759         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
29760         Now, that's done as part of AC_FUNC_STRTOD.
29761
29762 2001-11-17  Jim Meyering  <meyering@lucent.com>
29763
29764         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
29765         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
29766         rather than group writable.  Patch by Juan F. Codagnone.
29767
29768         * lib/readtokens.c: Remove explicit declarations of xmalloc and
29769         xrealloc, Instead, include "xalloc.h".
29770
29771         * lib/mountlist.c: Include unlocked-io.h after all system headers.
29772         Remove explicit declarations of xmalloc, xrealloc,
29773         and xstrdup.  Instead, include "xalloc.h".
29774
29775         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
29776         unlocked-io.h.
29777         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
29778         Likewise.
29779         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
29780
29781         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
29782         Reported by Padraig Brady.
29783
29784         * lib/mkstemp.c: #undef mkstemp.
29785         Include config.h.
29786         (rpl_mkstemp): Rename from mkstemp.
29787         Protoize.
29788
29789 2001-11-16  Jim Meyering  <meyering@lucent.com>
29790
29791         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
29792         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
29793         determine the amount of total physical memory, use pstat_getstatic.
29794         HPUX-11 doesn't define _SC_PHYS_PAGES.
29795         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
29796         If sysconf couldn't be used to determine the amount of available
29797         physical memory, use both pstat_getstatic and pstat_getdynamic.
29798         Based on a patch from Bob Proulx.
29799
29800 2001-11-10  Jim Meyering  <meyering@lucent.com>
29801
29802         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
29803         (jm_PREREQ): Use it.
29804
29805 2001-11-09  Jim Meyering  <meyering@lucent.com>
29806
29807         * m4/jm-macros.m4: Require autoconf-2.52f.
29808         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
29809         Use these AC_-prefixed names, not the AM_-prefixed ones.
29810
29811         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
29812
29813 2001-11-05  Jim Meyering  <meyering@lucent.com>
29814
29815         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
29816
29817 2001-11-04  Jim Meyering  <meyering@lucent.com>
29818
29819         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
29820         $DEFS.
29821
29822 2001-11-03  Jim Meyering  <meyering@lucent.com>
29823
29824         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
29825         of AC_DEFUN.
29826
29827         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
29828         know the name of the variable in the macro definition.
29829
29830 2001-11-03  Jim Meyering  <meyering@lucent.com>
29831
29832         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
29833         in argmatch_to_argument call.
29834
29835         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
29836         argument.
29837
29838         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
29839         e.g., a fault due to an attempt to free a NULL pointer.
29840
29841 2001-11-01  Jim Meyering  <meyering@lucent.com>
29842
29843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
29844         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
29845
29846 2001-11-01  Jim Meyering  <meyering@lucent.com>
29847
29848         * lib/dirfd.c, lib/dirfd.h: New files.
29849         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
29850
29851         * lib/hash.c (hash_print) [TESTING]: Clean up.
29852
29853 2001-10-22  Paul Eggert  <eggert@twinsun.com>
29854
29855         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
29856         to avoid a warning if -Wall.
29857
29858 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
29859
29860         * README: New file
29861         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
29862         (per RMS's instructions, this is now the canonical source)
29863         * lgpl/, gpl/: New directories.
29864
29865 2001-10-21  Paul Eggert  <eggert@twinsun.com>
29866
29867         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
29868
29869 2001-10-21  Jim Meyering  <meyering@lucent.com>
29870
29871         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
29872         this code would end up calling gettext even in packages built
29873         with --disable-nls.
29874         * lib/getopt.c (_): Likewise.
29875         * lib/regex.c (_): Likewise.
29876
29877 2001-10-20  Paul Eggert  <eggert@twinsun.com>
29878
29879         * m4/error.m4 (jm_PREREQ_ERROR):
29880         Do not invoke AC_CHECK_FUNCS with strerror_r, as
29881         AC_FUNC_STRERROR_R does that.
29882         Check for strerror declaration.
29883
29884         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
29885         are supposed to have them these days.
29886         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
29887         Merge changes from latest Autoconf CVS.
29888         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
29889         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
29890         POSIX decided to standardize on the int flavor of strerror_r.
29891
29892 2001-10-20  Paul Eggert  <eggert@twinsun.com>
29893
29894         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
29895         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
29896         Use strerror_r that is only a macro, even if it is not a function.
29897         (strerror): Check for HAVE_DECL_STRERROR before declaring.
29898         (private_strerror): Use prototypes, not old-style function definition.
29899         (print_errno_message): New function.
29900         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
29901         char*-flavored one.
29902         (error_tail, error, error_at_line): Use it.
29903
29904 2001-10-11  Jim Meyering  <meyering@lucent.com>
29905
29906         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
29907         and quote_n (1, ... to avoid clobbering a buffer.
29908
29909 2001-10-05  Jim Meyering  <meyering@lucent.com>
29910
29911         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
29912         hash-pjw.h.
29913         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
29914         * lib/hash-pjw.h: New file.
29915
29916 2001-09-30  Jim Meyering  <meyering@lucent.com>
29917
29918         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
29919         `struct fsstat' has the `f_fstypename' member.
29920         Use that to define FS_TYPE, which is now used to make
29921         the getfsstat link test tighter.
29922
29923 2001-09-30  Jim Meyering  <meyering@lucent.com>
29924
29925         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
29926         Include <sys/ucred.h>, for Apple Darwin.
29927         Include sys/mount.h and sys/fs_types.h only if available.
29928         (FS_TYPE): Define.
29929         (read_filesystem_list): Use FS_TYPE.
29930
29931 2001-09-29  Paul Eggert  <eggert@twinsun.com>
29932
29933         * lib/exclude.c (excluded_filename): 0 -> false, since it's
29934         a boolean context.
29935
29936 2001-09-29  Jim Meyering  <meyering@lucent.com>
29937
29938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29939         [one-argument getmntent function]): Include stdio.h before mntent.h.
29940         SunOS 4.1.x needs it for the declaration of `FILE'.
29941         Patch by Volker Borchert.
29942
29943         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29944         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
29945         sys/fs_types.h, and make the link-test for getfsstat guard #include
29946         directives with appropriate #if HAVE_*_H tests so that we can
29947         detect getfsstat on Apple Darwin1.3.7 systems.
29948         Reported by Nelson Beebe.
29949         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
29950
29951 2001-09-28  Paul Eggert  <eggert@twinsun.com>
29952
29953         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29954         #defines strtoimax.  Also treat the other strto* functions
29955         like strtoimax.
29956
29957         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29958         Check for strtoul and strtoumax,
29959         as those declarations are made even in the signed case.
29960         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
29961         Likewise, for strtol and strtoimax.
29962
29963 2001-09-28  Paul Eggert  <eggert@twinsun.com>
29964
29965         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29966         #defines strtoimax.  Also treat the other strto* functions
29967         like strtoimax.
29968
29969         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
29970         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
29971         (strtoimax, strtoumax): Do not declare if already defined as a macro.
29972
29973 2001-09-26  Jim Meyering  <meyering@lucent.com>
29974
29975         Most macros in unlocked-io.h had the wrong number of arguments.
29976         * lib/gen-uio: New script.
29977         (USE_UNLOCKED_IO): Define to 1 if not already defined.
29978         * lib/unlocked-io.hin: Remove file.
29979         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
29980         rather than trying to embed it here.
29981         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
29982         Reported by Padraig Brady.
29983
29984 2001-09-25  Volker Borchert  <bt@teknon.de>
29985
29986         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
29987         `result'.
29988
29989 2001-09-24  Jim Meyering  <meyering@lucent.com>
29990
29991         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
29992
29993 2001-09-23  Jim Meyering  <meyering@lucent.com>
29994
29995         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
29996         instead of the mere test for existence of mntent.h.  The latter
29997         would get a false-positive on AIX 3.4 systems.
29998         In the outer getmntent if-block, don't die if neither of the getmntent
29999         tests succeeds.  Instead, just fall through and continue with the
30000         remaining tests.
30001
30002 2001-09-23  Jim Meyering  <meyering@lucent.com>
30003
30004         * lib/mountlist.c: Remove useless parentheses in #if directives.
30005         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
30006         the deprecated MOUNTED symbol is no longer defined in mntent.h.
30007
30008 2001-09-22  Jim Meyering  <meyering@lucent.com>
30009
30010         * m4/gettext.m4: New file.  From gettext.
30011         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
30012         * m4/progtest.m4: Likewise
30013         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
30014         * m4/glibc21.m4: Likewise.
30015
30016         * m4/libintl.m4: Remove.  No longer used.
30017
30018 2001-09-22  Jim Meyering  <meyering@lucent.com>
30019
30020         * lib/localcharset.c: Update from latest gettext.
30021         * lib/config.charset: Likewise.
30022
30023 2001-09-20  Jim Meyering  <meyering@lucent.com>
30024
30025         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
30026         strtoimax.
30027         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
30028         strtoumax.
30029
30030 2001-09-20  Jim Meyering  <meyering@lucent.com>
30031
30032         * lib/xstrtol.c (strtoimax): Guard declaration with
30033         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
30034         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
30035         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
30036         (strtoumax): Likewise, for completeness (it wasn't necessary).
30037
30038 2001-09-17  Paul Eggert  <eggert@twinsun.com>
30039
30040         * lib/strtoimax.c (HAVE_LONG_LONG):
30041         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
30042         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
30043         to work around bug in IBM C compiler.
30044
30045 2001-09-17  Jim Meyering  <meyering@lucent.com>
30046
30047         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
30048         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
30049         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
30050         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
30051         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
30052         whenever the right hand side need not be expanded by the shell.
30053
30054 2001-09-16  Paul Eggert  <eggert@twinsun.com>
30055
30056         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
30057         library.  It's not correct, as some older glibcs are buggy.
30058         fnmatch wasn't fixed until glibc 2.2.
30059
30060         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
30061         special shell magic here.
30062
30063 2001-09-16  Jim Meyering  <meyering@lucent.com>
30064
30065         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
30066         * m4/jm-macros.m4: Require it.
30067
30068 2001-09-16  Jim Meyering  <meyering@lucent.com>
30069
30070         * lib/mkdir.c: New file.
30071
30072 2001-09-15  Jim Meyering  <meyering@lucent.com>
30073
30074         * m4/jm-macros.m4: Check for help2man.
30075
30076 2001-09-11  Jim Meyering  <meyering@lucent.com>
30077
30078         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
30079         The body, by Paul Eggert, was moved here from configure.in.
30080         * m4/jm-macros.m4: Require UTILS_HOST_OS.
30081
30082 2001-09-04  Paul Eggert  <eggert@twinsun.com>
30083
30084         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
30085         (jm_PREREQ): Use it.
30086
30087 2001-09-04  Paul Eggert  <eggert@twinsun.com>
30088
30089         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
30090         Use ssize_t, not int, to store result of readlink.
30091         Check for ssize_t overflow as well as size_t overflow,
30092         as POSIX says the result of readlink is implementation-defined
30093         when ssize_t overflows.
30094         Remove unnecessary cast to char*.
30095         Use free+malloc instead of realloc, as the storage doesn't need
30096         to be preserved and it's clearer and can be more efficient that way.
30097         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
30098         * lib/xreadlink.h (xreadlink): Update prototype.
30099
30100 2001-09-04  Paul Eggert  <eggert@twinsun.com>
30101
30102         * lib/xgetcwd.c: Revert some of the previous change; intead,
30103         fix the HAVE_GETCWD_NULL code to behave more like the
30104         !HAVE_GETCWD_NULL code used to.
30105
30106         Include "xalloc.h".
30107         (xgetcwd): Do not return NULL when memory is exhausted; instead,
30108         invoke xalloc_die.
30109
30110 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30111
30112         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
30113         sys/param.h, as pathmax.h includes them.
30114
30115 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30116
30117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
30118         (jm_PREREQ_XGETCWD): New macro.
30119
30120         * m4/getcwd.m4: New file.
30121
30122 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30123
30124         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
30125         like the HAVE_GETCWD_NULL code.
30126         Include pathmax.h if not HAVE_GETCWD.
30127         Do not include xalloc.h.
30128         (INITIAL_BUFFER_SIZE): New symbol.
30129         Do not use xmalloc / xrealloc, since the caller is responsible for
30130         handling errors.  Preserve errno around `free' during failure.
30131         Do not overrun buffer when using getwd.
30132
30133 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30134
30135         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
30136         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
30137         getcwd (NULL, 0).
30138
30139 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30140
30141         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
30142         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
30143         spotted by Jim Meyering.
30144
30145 2001-09-03  Jim Meyering  <meyering@lucent.com>
30146
30147         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
30148         failure.
30149
30150 2001-09-02  Jim Meyering  <meyering@lucent.com>
30151
30152         * lib/error.c: Update from GNU libc.
30153
30154 2001-09-01  Jim Meyering  <meyering@lucent.com>
30155
30156         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
30157         Used by df.
30158
30159 2001-09-01  Jim Meyering  <meyering@lucent.com>
30160
30161         * lib/xreadlink.c: New file.
30162         * lib/xreadlink.h: New file.
30163         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
30164         xreadlink.h.
30165
30166         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
30167         doesn't conflict with sparc Solaris 7's definition in
30168         /usr/include/sys/int_types.h.
30169
30170         * lib/exclude.c: Use `""', not `<>' to #include non-system header
30171         files.
30172         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
30173         and strncasecmp as r-values.  Unixware didn't have declarations.
30174
30175 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30176
30177         * lib/xstrtol.h: Add copyright notice.
30178         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
30179         LONGINT_INVALID_SUFFIX_CHAR.
30180
30181 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30182
30183         * lib/xstrtol.c (strtoimax): New decl.
30184
30185 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30186
30187         * lib/xgetcwd.c: Don't include pathmax.h.
30188         Include stdlib.h and unistd.h if available.
30189         Include xalloc.h.
30190         (xmalloc, xstrdup, free): Remove decls.
30191         (xgetcwd): Don't assume sizes fit in unsigned.
30192         Check for overflow when computing sizes.
30193         Simplify reallocation code.
30194
30195 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30196
30197         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
30198         a directory's st_size can have an arbitrary value, so the old
30199         usage could waste an arbitrary amount of memory.  All uses
30200         changed.
30201         * lib/savedir.h: Update prototype.
30202
30203 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30204
30205         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
30206
30207         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
30208         old strtoimax.c.
30209
30210         Also, make the following further changes to make this file's
30211         configuration more similar to that of strtol.c:
30212         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
30213         (strtoumax, uintmax_t, strtoull, strtol): Remove.
30214         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
30215         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
30216         changed to signed values.
30217
30218         And make the following changes as well:
30219         Fix copyright notice, as 1999 was missing.
30220         (verify): New macro.
30221         (strtoimax): Check sizes at compile-time, not run-time.
30222         Prefer strtol to strtoll if both work.
30223         (main): Remove; it was not that useful and was a pain to maintain.
30224
30225         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
30226
30227 2001-08-31  Jim Meyering  <meyering@lucent.com>
30228
30229         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
30230         Use an initial, malloc'd, buffer of length 128 rather than
30231         a statically allocated one of length 1024.
30232
30233 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30234
30235         Simplify code, partly by assuming autoconf 2.52 semantics.
30236
30237         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
30238
30239         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
30240         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
30241         All uses removed.
30242         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
30243         Move AC_REQUIRE to next-to-top level, to avoid confusion.
30244         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
30245         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
30246         jm_AC_HEADER_INTTYPES_H.
30247         * m4/jm-macros.m4 (jm_MACROS): Likewise.
30248
30249         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
30250
30251         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
30252         Quote first arg of AC_DEFUN.
30253         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
30254         since they are needed to parse the include file even if we need
30255         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
30256         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
30257         but with opposite signedness.
30258
30259 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30260
30261         Merge 'exclude' changes from tar 1.13.22.
30262         This fixes one or two unlikely storage allocation overflow bugs,
30263         but doesn't change user-visible behavior otherwise.
30264
30265 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30266
30267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
30268         (jm_PREREQ_EXCLUDE): New macro.
30269
30270 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30271
30272         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
30273         tm to be declared.
30274
30275 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30276
30277         * lib/hash.c: Remove '2001' from copyright notice.
30278
30279 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30280
30281         * lib/full-write.h: New file.
30282         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
30283         * lib/full-write.c: Correct credits, as cccp.c no longer
30284         exists and anyway it was so heavily changed from the old cccp
30285         code as to be unrecognizable.  Include full-write.h.
30286         (full_write) Return size_t, with short writes meaning failure.
30287         All callers changed.  This fixes a bug with large buffers
30288         on 64-bit hosts.
30289         * lib/utime.c: Include full-write.h.
30290
30291 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30292
30293         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
30294         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
30295         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
30296         Include if available.
30297         (<xalloc.h>): Include
30298         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
30299         (verify): New macro.  Use it to verify that EXCLUDE macros do not
30300         collide with FNM macros.
30301         (struct patopts): New struct.
30302         (struct exclude): Use it, as exclude patterns now come with options.
30303         (new_exclude): Support above changes.
30304         (new_exclude, add_exclude_file):
30305         Initial size must now be a power of two to simplify overflow checking.
30306         (free_exclude, fnmatch_no_wildcards): New function.
30307         (excluded_filename): No longer requires options arg, as the options
30308         are determined by add_exclude.  Now returns bool, not int.
30309         (excluded_filename, add_exclude):
30310         Add support for the fancy new exclusion options.
30311         (add_exclude, add_exclude_file): Now takes int options arg.
30312         Check for arithmetic overflow when computing sizes.
30313         (add_exclude_file): xrealloc might modify errno, so don't
30314         realloc until after errno might be used.
30315
30316         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
30317         New macros.
30318         (free_exclude): New decl.
30319         (add_exclude, add_exclude_file): Now takes int options arg.
30320         (excluded_filename): No longer requires options arg, as the options
30321         are determined by add_exclude.  Now returns bool, not int.
30322
30323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30324
30325         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
30326
30327 2001-08-27  Jim Meyering  <meyering@lucent.com>
30328
30329         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
30330
30331         * lib/version-etc.c (N_): Remove definition.
30332         Revert most of last change.
30333         Instead, simply don't mark the `Copyright...' string for translation.
30334         Based on advice from Paul Eggert.
30335
30336         * lib/strtoxmax.c: Tweak comment.
30337
30338 2001-08-26  Jim Meyering  <meyering@lucent.com>
30339
30340         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
30341
30342         * m4/xstrtoimax.m4: New file.
30343         * m4/xstrtoumax.m4: Add comments explaining why we
30344         AC_REPLACE_FUNCS(strtol).
30345
30346 2001-08-26  Jim Meyering  <meyering@lucent.com>
30347
30348         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
30349         of copyright with `%s' so translators don't get an untranslated
30350         message in 2002.
30351         (COPYRIGHT_YEAR): Define.
30352         (version_etc): Use fprintf rather than fputs.
30353         Suggestion from Ulrich Drepper.
30354
30355         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
30356
30357         * lib/strtoll.c: New file, from GNU libc.
30358         * lib/xstrtoimax.c: New file.
30359
30360         * lib/xstrtol.h: Add xstrtoimax.
30361         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
30362         * lib/strtoimax.c: New file.  Likewise, but first define
30363         STRTOUXMAX_SIGNED.
30364
30365         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
30366         ...
30367         * lib/strtoxmax.c: ... then renamed to this.
30368
30369 2001-08-18  Paul Eggert  <eggert@twinsun.com>
30370
30371         * m4/inttypes.m4: Add AC_PREREQ(2.13).
30372         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
30373         (jm_AC_TYPE_INTMAX_T): New macro.
30374         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
30375
30376         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
30377
30378         * m4/longlong.m4: Renamed from ulonglong.m4.
30379         * m4/inttypes.m4: Renamed from inttypes_h.m4.
30380         * m4/uintmax_t.m4: Removed.
30381
30382 2001-08-13  Paul Eggert  <eggert@twinsun.com>
30383
30384         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
30385         Port to Solaris 8, where 'sed' requires a space after the 'r'
30386         command, and where sh dislikes "$/".  Clean up the spacing a bit.
30387         Redirect output to $tmp just once.
30388
30389 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
30390
30391         * lib/addext.c (<errno.h>): Include.
30392         (errno): Declare if not defined.
30393         (addext): Work correctly when pathconf returns -1 and leaves
30394         errno alone because there is no limit.  Also, work even if
30395         pathconf returns a value greater than SIZE_MAX.
30396
30397 2001-08-12  Jim Meyering  <meyering@lucent.com>
30398
30399         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
30400         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
30401         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
30402         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
30403         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
30404         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
30405         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
30406         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
30407         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
30408         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
30409         utime.m4, utimes.m4, xstrtoumax.m4:
30410         Quote the first argument in each use of AC_DEFUN.
30411
30412 2001-08-12  Jim Meyering  <meyering@lucent.com>
30413
30414         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
30415         Simply `return getcwd (NULL, 0);'.
30416         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
30417         Use 1300 as initial value for length, not PATH_MAX.
30418
30419         * lib/pathmax.h: Clean up cpp syntax.
30420
30421 2001-08-12  Jim Meyering  <meyering@lucent.com>
30422
30423         * lib/gettimeofday.c: New file.
30424         * lib/gtod.h: New file.
30425         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
30426
30427 2001-08-05  Jim Meyering  <meyering@lucent.com>
30428
30429         * m4/jm-macros.m4: Require autoconf-2.52.
30430
30431 2001-08-04  Jim Meyering  <meyering@lucent.com>
30432
30433         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
30434         stmt, to get in sync with glibc.
30435
30436 2001-08-03  Paul Eggert  <eggert@twinsun.com>
30437
30438         The following changes are from gettext 0.10.39 as maintained by
30439         Bruno Haible.
30440
30441         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
30442         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
30443         with inverted sense.  All uses changed.
30444
30445         * lib/mbswidth.c: Don't include <limits.h>.
30446         Include <stdlib.h> and <string.h> unconditionally.
30447         (iswcntrl, mbsinit, ISCNTRL): New macros.
30448         (mbsnwidth): Use K&R style function declarations.
30449         Don't bother checking for MB_LEN_MAX == 1, since the compiler
30450         can optimize it when MB_CUR_MAX == 1.
30451         The width of control characters is zero, not 1.
30452
30453 2001-08-03  Paul Eggert  <eggert@twinsun.com>
30454
30455         The following changes are from gettext 0.10.39 as maintained by
30456         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
30457
30458         * m4/codeset.m4: Upgrade to serial AM1.
30459         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
30460         all uses changed.  Quote first arg of AC_DEFUN.
30461         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
30462
30463         * m4/iconv.m4: Upgrade to serial AM2.
30464         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
30465         Add --with-libconv-prefix.
30466         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
30467         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
30468         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
30469         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
30470         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
30471
30472         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
30473         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
30474         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
30475         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
30476         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
30477         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
30478         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30479         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
30480         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
30481
30482         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
30483         string.h any more.
30484
30485         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
30486         not the default value.
30487
30488         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
30489         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
30490         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
30491         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
30492         Also check for iswcntrl, used for wcwidth fallback.
30493         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
30494         to Autoconf 2.13.
30495
30496 2001-08-03  Jim Meyering  <meyering@lucent.com>
30497
30498         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
30499         as it was in the original.  Reported by Paul Eggert.
30500
30501 2001-07-16  Jim Meyering  <meyering@lucent.com>
30502
30503         * m4/gettimeofday.m4: New file.
30504         Prompted by a report from Bernhard Baehr.
30505
30506 2001-07-15  Jim Meyering  <meyering@lucent.com>
30507
30508         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
30509         stuff. Now it's in ../Makefile.cfg.
30510
30511 2001-07-15  Jim Meyering  <meyering@lucent.com>
30512
30513         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
30514         (BUILT_SOURCES): Add unlocked-io.h.
30515         (io_functions): Define.
30516         (unlocked-io.h): New rule.
30517         (DISTCLEANFILES): Add unlocked-io.h.
30518         (all-local): Depend on unlocked-io.h, to ensure it is created.
30519
30520         * lib/unlocked-io.hin: New file
30521
30522         * lib/regex.c: Update from glibc.
30523
30524 2001-07-05  Jim Meyering  <meyering@lucent.com>
30525
30526         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
30527         recommendation.
30528         (libfetish_a_SOURCES): Put all .h files here instead.
30529         Remove a thus-exposed (better checks in automake) duplicate and
30530         two unnecessary .h files.
30531
30532 2001-07-04  Jim Meyering  <meyering@lucent.com>
30533
30534         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
30535         that generates jm-glibc-io.m4 so that it doesn't trigger any make
30536         distcheck failure.
30537
30538 2001-07-02  Jim Meyering  <meyering@lucent.com>
30539
30540         The following changes were prompted by suggestions from Bruno Haible.
30541
30542         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
30543         is now generated.
30544         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
30545         definition of EXTRA_DIST.
30546         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
30547         ensure that the generated file is created/updated whenever the list
30548         of $(unlocked_functions) is changed.
30549         (jm-glibc-io.m4): New rule.
30550         (unlocked-io.h): New rule -- currently unused.
30551
30552 2001-06-24  Jim Meyering  <meyering@lucent.com>
30553
30554         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
30555         unmatched right bracket, rather than kludging it with an extra,
30556         falsely-matching quote in a comment.  Patch by Akim Demaille.
30557
30558 2001-06-11  Jim Meyering  <meyering@lucent.com>
30559
30560         * lib/regex.c: Update from GNU libc.
30561
30562 2001-05-27  Jim Meyering  <meyering@lucent.com>
30563
30564         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
30565         Check for ut_type in struct utmp.
30566
30567 2001-05-27  Jim Meyering  <meyering@lucent.com>
30568
30569         * lib/readutmp.h (UT_TYPE): Define.
30570
30571 2001-05-24  Jim Meyering  <meyering@lucent.com>
30572
30573         * lib/argmatch.c: Include "quote.h".
30574         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
30575         quote function.  Reported by Gƶran Uddeborg.
30576
30577 2001-05-22  Jim Meyering  <meyering@lucent.com>
30578
30579         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
30580         now that we use the package-supplied version unconditionally.
30581         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
30582
30583 2001-05-21  Jim Meyering  <meyering@lucent.com>
30584
30585         * m4/regex.m4: Change a couple backticks to single quotes to avoid
30586         shell syntax errors.
30587
30588 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
30589
30590         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
30591
30592 2001-05-20  Paul Eggert  <eggert@twinsun.com>
30593
30594         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
30595         Don't bother to check library strftime, since
30596         we'll be using our own my_strftime function anyway.
30597         Define my_strftime instead of strftime.
30598
30599 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
30600
30601         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
30602         which is not yet declared.
30603
30604 2001-05-15  Jim Meyering  <meyering@lucent.com>
30605
30606         * m4/regex.m4: Use proper quoting so brackets appear in the test
30607         program.
30608         Reported by, and with help from, Bruno Haible.
30609
30610 2001-05-13  Jim Meyering  <meyering@lucent.com>
30611
30612         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
30613         undefined.
30614
30615 2001-05-11  Paul Eggert  <eggert@twinsun.com>
30616
30617         dirname code cleanup.  base_name now behaves more compatibly
30618         with POSIX basename when given file names that have trailing
30619         slashes, and similarly for dir_name.  Add new primitives
30620         base_len and dir_len.  Put the directory-name-related decls
30621         into dirname.h.
30622
30623         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
30624         * lib/backupfile.c (base_name): Likewise.
30625         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
30626         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
30627         * lib/makepath.c (strip_trailing_slashes): Likewise.
30628         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
30629         ISSLASH): Likewise.
30630         * lib/rename.c (strip_trailing_slashes): Likewise.
30631         * lib/same.c (base_name): Likewise.
30632         * lib/stripslash.c (ISSLASH): Likewise.
30633
30634         * lib/addext.c: Include <dirname.h> after size_t is defined.
30635         * lib/backupfile.c: Likewise.
30636
30637         * lib/addext.c (addext): Use base_len to trim redundant
30638         trailing slashes instead of doing it ourselves.
30639         But do not trim the last slash if it is not redundant.
30640
30641         * lib/backupfile.c (find_backup_file_name,
30642         max_backup_version): Use base_len instead of rolling it ourselves.
30643         Handle the case of "" and (on DOS) "C:" correctly.
30644
30645         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
30646         needed. Include <string.h>, <dirname.h>.
30647         (base_name): Allow file names ending in slashes, other than names
30648         that are all slashes.  In this case, return the basename followed
30649         by the slashes.  This is more general, and can be used in places
30650         where the original base_name purposely had an assertion failure.
30651         (base_len): New function.
30652
30653         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
30654         Do not include <assert.h>; no longer needed.
30655         Include xalloc.h.
30656         (memrchr): Remove decl.
30657         (dir_name_r): Remove.
30658         (dir_len): Renamed from dirlen.  All callers changed.
30659         Rewrite in terms of base_name, for simplicity and consistency.
30660         (dir_name): Never return NULL.  All callers changed.
30661         Do not include <stdlib.h> in test program; no longer needed.
30662         return 0; is fine for test program.
30663
30664         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
30665         New macros.
30666         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
30667
30668         * lib/path-concat.c (path_concat): Use base_len to compute
30669         base length, not strlen; this means we cannot rely on memcpy
30670         to null-terminate.
30671
30672         * lib/same.c (STREQ): Remove.
30673         (same_name): Handle the case where the basename ends in trailing '/'.
30674
30675         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
30676         a slash was stripped.  Do not strip the last slash after a
30677         file system prefix.
30678
30679 2001-05-11  Paul Eggert  <eggert@twinsun.com>
30680
30681         * lib/Makefile.am (libfetish_a_SOURCES):
30682         Add strftime.c, since we now compile it on all hosts.
30683
30684         * lib/strftime.c (my_strftime):
30685         Define to nstrftime if emacs, but only if my_strftime is not defined.
30686         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
30687         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
30688         Add one more extra argument: a nanoseconds value.
30689         All uses changed.
30690         (ns): New macro.
30691         (my_strftime function): Add %N format.
30692         (emacs_strftimeu): Renamed from emacs_strftime,
30693         with extra ut argument.
30694
30695 2001-05-09  Paul Eggert  <eggert@twinsun.com>
30696
30697         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
30698
30699 2001-04-21  Jim Meyering  <meyering@lucent.com>
30700
30701         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
30702         doesn't interfere.
30703
30704 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
30705
30706         * m4/ftruncate.m4: Check for chsize.
30707         Link with ftruncate.o unconditionally if ftruncate is missing.
30708         This was required when cross-compiling to i586-mingw32msvc.
30709
30710 2001-04-08  Jim Meyering  <meyering@lucent.com>
30711
30712         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
30713         recomputed; that's necessary when the offset spans a DST transition.
30714         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
30715
30716 2001-04-02  Jim Meyering  <meyering@lucent.com>
30717
30718         * lib/regex.h, regex.c: Update from GNU libc.
30719
30720 2001-03-24  Jim Meyering  <meyering@lucent.com>
30721
30722         * m4/jm-macros.m4: Require autoconf-2.49d.
30723
30724 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
30725
30726         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
30727
30728 2001-03-19  Paul Eggert  <eggert@twinsun.com>
30729
30730         * lib/version-etc.c (version_etc_copyright): Update to 2001.
30731
30732 2001-03-17  Jim Meyering  <meyering@lucent.com>
30733
30734         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
30735         now that the version in autoconf is equivalent.
30736         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
30737
30738         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
30739         Suggestion from Akim Demaille.
30740
30741         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
30742         (jm_PREREQ_TEMPNAME): New function.
30743
30744 2001-03-16  Paul Eggert  <eggert@twinsun.com>
30745
30746         * lib/tempname.c (uint64_t): Define to uintmax_t if
30747         not defined, and if UINT64_MAX is not defined.
30748         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
30749         Reported by John David Anglin.
30750
30751 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
30752
30753         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
30754         resolve alias if codeset is empty.
30755         * lib/config.charset (BeOS): Use wildcard syntax.
30756
30757 2001-03-13  Jim Meyering  <meyering@lucent.com>
30758
30759         * lib/path-concat.c (path_concat)
30760         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
30761         concatenating e.g., `C:' and `foo'.
30762         From Bruno Haible.
30763
30764 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
30765
30766         * lib/localcharset.c (locale_charset): Don't use
30767         setlocale(LC_CTYPE,NULL). Don't return NULL.
30768         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
30769
30770 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
30771
30772         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
30773         support for DOS/DJGPP.
30774
30775 2001-03-01  Paul Eggert  <eggert@twinsun.com>
30776
30777         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
30778         lacks mkstemp.  Compile our own tempname.c if we compile our own
30779         mkstemp.c, as mkstemp relies on tempname.
30780
30781 2001-03-01  Jim Meyering  <meyering@lucent.com>
30782
30783         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
30784         AH_VERBATIM really does output its argument verbatim.
30785
30786 2001-02-28  Paul Eggert  <eggert@twinsun.com>
30787
30788         * lib/Makefile.am (libfetish_a_SOURCES):
30789         Add dup-safer.c, fopen-safer.c.
30790         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
30791
30792         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
30793         * lib/unistd-safer.h: New files.
30794
30795 2001-02-25  Paul Eggert  <eggert@twinsun.com>
30796
30797         The mkstemp replacement is taken from glibc 2.2.2, with some
30798         portability fixes for use outside glibc, as follows:
30799
30800         * lib/tempname.c (struct_stat64): New macro.
30801         (direxists, __gen_tempname): Use it.
30802         This avoids a portability problem with Solaris 8.
30803
30804         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
30805         (<stddef.h>, <stdint.h>, <string.h>):
30806         Include only if STDC_HEADERS || _LIBC.
30807         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
30808         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
30809         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
30810         (__set_errno): Define this macro if <errno.h> doesn't.
30811         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
30812         Define these macros if <stdio.h> doesn't.
30813         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
30814         Define these macros if <sys/stat.h>
30815         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
30816         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
30817         __xstat64): Define if not _LIBC.
30818         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
30819         (__gen_tempname): Invoke gettimeofday only if
30820         HAVE_GETTIMEOFDAY || _LIBC;
30821         otherwise, fall back on plain "time".
30822         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
30823
30824         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
30825
30826         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
30827
30828 2001-02-18  Paul Eggert  <eggert@twinsun.com>
30829
30830         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
30831
30832 2001-02-17  Paul Eggert  <eggert@twinsun.com>
30833
30834         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
30835         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
30836         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
30837         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
30838
30839 2001-02-17  Paul Eggert  <eggert@twinsun.com>
30840
30841         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
30842         Remove workaround macros for hosts that have mbrtowc but not
30843         mbstate_t, as we now insist on proper declarations for both
30844         before using mbrtowc.
30845
30846 2001-02-17  Jim Meyering  <meyering@lucent.com>
30847
30848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
30849         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
30850         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
30851         UnixWare 7.1.1.
30852
30853         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
30854         rather than AC_CACHE_VAL.
30855
30856 2001-02-17  Jim Meyering  <meyering@lucent.com>
30857
30858         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
30859         around included file name.
30860
30861         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
30862
30863         * lib/strftime.c: Update from GNU libc (the only changes were to
30864         comments).
30865
30866 2001-02-17  Jim Meyering  <meyering@lucent.com>
30867
30868         * lib/regex.c: Update from libc.
30869
30870 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
30871
30872         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
30873         clash.
30874
30875 2001-02-16  Paul Eggert  <eggert@twinsun.com>
30876
30877         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
30878         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
30879         Reported by Mark Hounschell via Paul Eggert.
30880
30881 2001-02-07  Jim Meyering  <meyering@lucent.com>
30882
30883         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
30884
30885 2001-02-05  Jim Meyering  <meyering@lucent.com>
30886
30887         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
30888         it includes the patch required for `large file' support with at least
30889         HP-UX's 10.20 /bin/cc.
30890
30891 2001-02-03  Jim Meyering  <meyering@lucent.com>
30892
30893         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
30894         AS_IF, now that it works once again (mysteriously).
30895         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30896
30897 2001-01-30  Jim Meyering  <meyering@lucent.com>
30898
30899         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
30900         * m4/chown.m4: Rename conftestchown to conftest.chown.
30901         * m4/rename.m4: s/conftestdir/conftest.d1/ and
30902         s/conftestdir2/conftest.d2/.
30903         * m4/utimes.m4: s/conftestdata/conftest.data/
30904         Inspired by Pavel Roskin's change in autoconf.
30905
30906 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
30907
30908         * lib/config.charset: Update for FreeBSD 4.2.
30909
30910 2001-01-27  Jim Meyering  <meyering@lucent.com>
30911
30912         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
30913         a use of AS_IF.
30914         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30915
30916 2001-01-26  Jim Meyering  <meyering@lucent.com>
30917
30918         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
30919         quotearg.c includes it.
30920
30921 2001-01-26  Jim Meyering  <meyering@lucent.com>
30922
30923         * lib/quotearg.c: Include stddef.h.
30924         * lib/quote.c: Include stddef.h.
30925         Reported by Axel Kittenberger.
30926
30927         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
30928         line in double quotes so that it evokes a better diagnostic.
30929         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
30930         Reported by Axel Kittenberger.
30931
30932 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
30933
30934         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
30935         as if it was a `charset'.
30936
30937 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
30938
30939         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
30940         has const.
30941
30942 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
30943
30944         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
30945         to avoid a warning.  Add back 'const' to inptr.
30946
30947 2001-01-20  Jim Meyering  <meyering@lucent.com>
30948
30949         Be sure that headers are checked before used in code compiled
30950         for the type checks.
30951         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
30952         In place of that, invoke jm_CHECK_ALL_TYPES.
30953         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
30954         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
30955         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
30956         The check for ssize_t was mistakenly run before the test for unistd.h.
30957
30958         The configure-time check for stdbool.h was missing.
30959         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
30960         (jm_PREREQ_HASH): New function.
30961
30962 2001-01-17  Jim Meyering  <meyering@lucent.com>
30963
30964         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
30965         for autoconf-2.49c.
30966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
30967
30968 2001-01-16  Jim Meyering  <meyering@lucent.com>
30969
30970         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
30971         From Bruno Haible.
30972
30973 2001-01-14  Jim Meyering  <meyering@lucent.com>
30974
30975         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
30976         foo and bar.  Create conftestdir/ in the script, not in the C code.
30977         Remove directories in the script, not in the C code.
30978         Remove conftestdir{,2} before trying to create the directory.
30979         Make the entire configure script fail if the mkdir fails.
30980
30981 2001-01-14  Jim Meyering  <meyering@lucent.com>
30982
30983         * lib/rename.c: New file.  From Volker Borchert.
30984         Include stdlib.h, string.h or strings.h, and xalloc.h.
30985         Use strip_trailing_slashes rather than open-coding it.
30986
30987 2001-01-03  Paul Eggert  <eggert@twinsun.com>
30988
30989         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
30990
30991 2001-01-03  Jim Meyering  <meyering@lucent.com>
30992
30993         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
30994         of local `inptr' to avoid warning with some system declarations of
30995         iconv.
30996
30997 2001-01-02  Volker Borchert  <bt@teknon.de>
30998
30999         * m4/rename.m4: New file.
31000         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
31001
31002 2001-01-01  Jim Meyering  <meyering@lucent.com>
31003
31004         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
31005         even on systems with utmpx.h.  It's necessary for the declaration of
31006         utmp's ut_user member.  Reported by Andreas Jaeger.
31007
31008         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
31009         available. They are required for the declarations of getgrgid and
31010         getpwuid resp.
31011         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
31012         Reported by Andreas Jaeger.
31013
31014 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
31015
31016         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
31017         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
31018         so `make install' also works in VPATH builds.
31019
31020 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
31021
31022         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
31023         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
31024         can be used in subdirectories.
31025
31026 2000-12-29  Paul Eggert  <eggert@twinsun.com>
31027
31028         * lib/modechange.c: Do not assume that mode_t uses the
31029         traditional octal encoding.  E.g. "chmod 1 FOO" should set
31030         the other-execute bit of FOO even if S_IXOTH != 1.
31031
31032         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
31033         WOTH, XOTH, ALLM): New macros.
31034         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
31035          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
31036         Use them.
31037         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
31038         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
31039         (mode_compile):
31040         No need to use uintmax_t; unsigned long is long enough.
31041         Don't bother to get suffix since we don't use it.
31042
31043 2000-12-26  Jim Meyering  <meyering@lucent.com>
31044
31045         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
31046         better with autoheader.
31047
31048 2000-12-24  Jim Meyering  <meyering@lucent.com>
31049
31050         * lib/hash.c (is_prime): Return explicit boolean values.
31051         (hash_get_first): Return NULL to appease Irix5.6's 89.
31052         Reported by Nelson Beebe.
31053
31054 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
31055
31056         * lib/localcharset.c (locale_charset): Add support for Win32.
31057
31058 2000-12-18  Paul Eggert  <eggert@twinsun.com>
31059
31060         * lib/physmem.h, lib/physmem.c: New files.
31061
31062         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
31063         (noinst_HEADERS): Add physmem.h.
31064
31065         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
31066         't' for compatibility with Solaris 8 sort.
31067
31068 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
31069
31070         * lib/config.charset: Add support for BeOS.
31071
31072 2000-12-17  Jim Meyering  <meyering@lucent.com>
31073
31074         * m4/dos.m4 (jm_AC_DOS): New file and macro.
31075         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
31076
31077 2000-12-16  Jim Meyering  <meyering@lucent.com>
31078
31079         This bug had a serious impact on chown: `chown N:M FILE' (for integer
31080         N and M) would have treated it like `chown N:N FILE'.
31081
31082         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
31083
31084 2000-12-16  Jim Meyering  <meyering@lucent.com>
31085
31086         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
31087         SHELLS_FILE to a file name that's useful on djgpp systems.
31088         Include stdlib.h.
31089         (ADDITIONAL_DEFAULT_SHELLS): Define.
31090         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
31091         Based mostly on a patch from Prashant TR.
31092
31093 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
31094
31095         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
31096         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
31097         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
31098
31099 2000-12-08  Andreas Schwab  <schwab@suse.de>
31100
31101         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
31102         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
31103
31104 2000-12-07  Jim Meyering  <meyering@lucent.com>
31105
31106         * lib/stripslash.c (ISSLASH): Define.
31107         (strip_trailing_slashes): Use ISSLASH rather than comparing against
31108         `/'.
31109         From Prashant TR.
31110
31111         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
31112         (dir_name_r): Declare this function as static.
31113         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
31114         manifest itself on a name containing a mix of slashes and
31115         backslashes.
31116         Make this function work with names starting with a DOS-style
31117         drive letter and colon prefix.
31118         (dir_name): Append `.' if necessary.
31119         Based mostly on patches from Prashant TR and Eli Zaretskii.
31120
31121         * lib/dirname.h (dir_name_r): Remove prototype.
31122
31123 2000-12-06  Paul Eggert  <eggert@twinsun.com>
31124
31125         * m4/off_t-format.m4: Remove this file.
31126         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
31127
31128 2000-12-06  Jim Meyering  <meyering@lucent.com>
31129
31130         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
31131         replacement strtoull, we may well need the replacement strtoul, too.
31132         Check for declarations of strtoul and strtoull.
31133         Check for strtol.  Mainly as a cue to cause automake to include
31134         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
31135         Check for limits.h -- strtol.c needs it.
31136
31137 2000-12-05  Jim Meyering  <meyering@lucent.com>
31138
31139         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
31140
31141 2000-12-04  Jim Meyering  <meyering@lucent.com>
31142
31143         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
31144         Also include memory.h, stdlib.h, unistd.h if appropriate.
31145         Reported by Andreas Jaeger (conflicting declaration of malloc).
31146
31147 2000-12-02  Jim Meyering  <meyering@lucent.com>
31148
31149         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
31150         * m4/jm-macros.m4 (jm_MACROS): require it.
31151
31152 2000-12-02  Jim Meyering  <meyering@lucent.com>
31153
31154         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
31155
31156 2000-12-01  Paul Eggert  <eggert@twinsun.com>
31157
31158         * lib/memrchr.c: Include <config.h> before any system include file.
31159
31160 2000-11-30  Jim Meyering  <meyering@lucent.com>
31161
31162         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
31163
31164 2000-11-30  Jim Meyering  <meyering@lucent.com>
31165
31166         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
31167
31168 2000-11-29  Paul Eggert  <eggert@twinsun.com>
31169
31170         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
31171
31172 2000-11-26  Jim Meyering  <meyering@lucent.com>
31173
31174         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
31175
31176 2000-11-22  Paul Eggert  <eggert@twinsun.com>
31177
31178         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
31179         size of (size_t) -1; it's not portable.
31180
31181 2000-11-17  Jim Meyering  <meyering@lucent.com>
31182
31183         * lib/strstr.c: Update from GNU libc.
31184
31185 2000-11-17  Akim Demaille  <akim@epita.fr>
31186
31187         * lib/obstack.h: Formatting changes.
31188         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
31189         prevent type checking.
31190         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
31191         cast the value to (void *): assigning a `foo *' to a `void *'
31192         variable is valid.
31193         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
31194
31195 2000-11-16  Jim Meyering  <meyering@lucent.com>
31196
31197         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
31198
31199 2000-11-11  Jim Meyering  <meyering@lucent.com>
31200
31201         * lib/error.c: Add a couple #includes, merging from GNU libc version.
31202
31203 2000-11-10  Jim Meyering  <meyering@lucent.com>
31204
31205         * lib/obstack.h: Update from GNU libc.
31206         * lib/obstack.c: Likewise.
31207
31208 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
31209
31210         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
31211
31212 2000-11-06  Paul Eggert  <eggert@twinsun.com>
31213
31214         * lib/getusershell.c (setusershell): Use rewind rather than
31215         fseek/fseeko, to avoid configuration hassles with fseeko.
31216         Don't bother opening SHELLS_FILE if shellstream is NULL;
31217         it's not necessary.
31218
31219 2000-11-05  Jim Meyering  <meyering@lucent.com>
31220
31221         * lib/makepath.h (make_dir): Declare.
31222         * lib/makepath.c (make_dir): Remove `static' attribute.
31223         Tweak a comment.
31224
31225 2000-11-04  Jim Meyering  <meyering@lucent.com>
31226
31227         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
31228
31229 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
31230
31231         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
31232         last one in a bucket, advance to the next bucket.
31233
31234 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
31235
31236         * lib/fnmatch.c: Do not comment out all the code if we are using
31237         the GNU C library, because in some cases we are replacing buggy
31238         code in the GNU C library itself.
31239
31240 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
31241
31242         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
31243         (regex_compile): Catch bogus \(\1\).
31244
31245 2000-10-30  Paul Eggert  <eggert@twinsun.com>
31246
31247         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
31248         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
31249         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
31250
31251 2000-10-30  Paul Eggert  <eggert@twinsun.com>
31252
31253         * lib/error.h, getline.h, modechange.h:
31254         Remove "2000" from Copyright line, as the file hasn't been
31255         changed this year other than in the copyright notice.
31256
31257         * lib/xalloc.h: Add "2000" to Copyright line, as this file
31258         was changed this year.
31259
31260 2000-10-29  Jim Meyering  <meyering@lucent.com>
31261
31262         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
31263         renaming.
31264         * m4/ls-mntd-fs.m4: Likewise
31265
31266 2000-10-29  Jim Meyering  <meyering@lucent.com>
31267
31268         * lib/xstat.in: Fix grammar in comment.
31269
31270 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
31271
31272         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
31273         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
31274         doesn't define __restrict_arr.
31275
31276 2000-10-28  Jim Meyering  <meyering@lucent.com>
31277
31278         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
31279         (jm_PREREQ_MEMCHR): New function.
31280
31281 2000-10-28  Jim Meyering  <meyering@lucent.com>
31282
31283         * lib/memchr.c: Update from libc.
31284         Adjust for portability:
31285         [HAVE_STDLIB_H]: Include stdlib.h.
31286         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
31287         Undef __memchr, too.
31288         [!weak_alias]: Define __memchr to memchr.
31289
31290         * lib/regex.c: Update from libc.
31291         * lib/regex.h: Likewise.
31292         * lib/getopt1.c: Likewise.
31293         * lib/memcmp.c: Likewise.
31294
31295         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
31296         Avoid using fseek, when possible -- it's broken by design.
31297         Patch by Ulrich Drepper.
31298
31299 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
31300
31301         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
31302         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
31303         Giving in to popular pressure to shut up the compiler with casts.
31304
31305 2000-10-26  Jim Meyering  <meyering@lucent.com>
31306
31307         * lib/strftime.c: Update from libc.
31308
31309 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
31310
31311         * regex.c: More `unsigned char' -> `re_char' changes.
31312         Also change several `int' into `re_wchar_t'.
31313         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
31314         (PUSH_FAILURE_POINTER): Don't cast any more.
31315         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
31316         We want GCC to complain, since this piece of code makes
31317         re_match non-reentrant, which *should* be fixed.
31318         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
31319         (EXTEND_BUFFER): Use RETALLOC.
31320         (SET_LIST_BIT): Don't cast.
31321         (re_wchar_t): New type.
31322         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
31323         that those two functions will always properly return.
31324         (IMMEDIATE_QUIT_CHECK): Cast to void.
31325         (analyse_first): Use recursion rather than an explicit stack.
31326         (re_compile_fastmap): Can't fail anymore.
31327         (re_search_2): Don't check re_compile_fastmap for failure.
31328         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
31329         Now also sets the new value (passed in a new argument).
31330         (re_match_2_internal): Use it.
31331         Also, use a new var `reg' of type size_t when looping through regs
31332         rather than reuse the inappropriate `mcnt'.
31333
31334 2000-10-25  Jim Meyering  <meyering@lucent.com>
31335
31336         * lib/obstack.c: Update from libc.
31337
31338 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
31339
31340         * regex.c (regex_compile): Change the way of handling a range from
31341         a char less than 256 to a char not less than 256.
31342
31343 2000-10-24  Andrew Innes  <andrewi@gnu.org>
31344
31345         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
31346         NT-Emacs only.
31347         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
31348         so that re_search functions only quit when callers expect them to.
31349
31350 2000-10-23  Jim Meyering  <meyering@lucent.com>
31351
31352         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
31353         wrong.  That set_locale call must not have any side effects.
31354         From Paul Eggert.
31355
31356 2000-10-22  Jim Meyering  <meyering@lucent.com>
31357
31358         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
31359         [CYCLIC]: Remove now-unused definition.
31360
31361         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
31362         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
31363         Suggestion from Ulrich Drepper.
31364
31365 2000-10-21  Jim Meyering  <meyering@lucent.com>
31366
31367         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
31368         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
31369         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
31370
31371 2000-10-21  Jim Meyering  <meyering@lucent.com>
31372
31373         * lib/dirname.c (memrchr): Declare if necessary.
31374         (dir_name): Remove the restriction that there be no
31375         trailing slashes.  Now, this code skips past them, effectively
31376         ignoring them.
31377         [TEST_DIRNAME] (main): New unit tests.
31378
31379         * lib/memrchr.c: New file from GNU libc.
31380         Undef __memrchr, too.
31381         [!weak_alias]: Define __memrchr to memrchr.
31382         Guard weak_alias use with `#ifdef weak_alias'.
31383
31384 2000-10-21  Jim Meyering  <meyering@lucent.com>
31385
31386         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
31387         (dir_name): Use dir_name_r.
31388         * lib/dirname.h (dir_name_r): Declare it.
31389
31390 2000-10-17  Jim Meyering  <meyering@lucent.com>
31391
31392         * lib/quote.h (PARAMS): Define and use.
31393         Reported by Akim Demaille.
31394
31395         * lib/getopt.c: Update from libc.
31396
31397 2000-10-16  Jim Meyering  <meyering@lucent.com>
31398
31399         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
31400         setlocale.
31401         From Jan Fedak.
31402
31403 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
31404
31405         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
31406
31407 2000-09-25  Jim Meyering  <meyering@lucent.com>
31408
31409         * lib/md5.h (rol): Define (from GnuPG).
31410
31411         * lib/sha.c: Give credit (GnuPG) where due.
31412         (M): Use rol rather than open-coding it.
31413         Add a FIXME comment.
31414
31415 2000-09-21  Jim Meyering  <meyering@lucent.com>
31416
31417         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
31418         Reported by Michael Stone.
31419
31420 2000-09-20  Jim Meyering  <meyering@lucent.com>
31421
31422         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
31423         (noinst_HEADERS): Add sha.h.
31424         Based on code from Scott G. Miller and from GnuPG.
31425
31426 2000-09-18  Jim Meyering  <meyering@lucent.com>
31427
31428         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
31429         LIBS. Otherwise, everyone ends up linking with -lelf for some
31430         configurations.
31431         Reported by Mike Stone.
31432
31433 2000-09-15  Jim Meyering  <meyering@lucent.com>
31434
31435         * lib/regex.c: Update from libc.
31436
31437 2000-09-10  Jim Meyering  <meyering@lucent.com>
31438
31439         * lib/getopt.c (_getopt_internal): Update from glibc.
31440
31441 2000-09-09  Jim Meyering  <meyering@lucent.com>
31442
31443         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
31444         think it should be used as a general replacement for isascii.
31445         * lib/fnmatch.c: Likewise.
31446         * lib/mbswidth.c: Likewise
31447         * lib/regex.c: Likewise.
31448
31449         Don't use atoi.
31450         * lib/userspec.c: Include sys/param.h and limits.h.
31451         Include xstrtol.h.
31452         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
31453         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
31454         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
31455         UID, GID.  Check range.
31456
31457 2000-09-06  Jim Meyering  <meyering@lucent.com>
31458
31459         * lib/getopt.c (_getopt_internal): Update from glibc.
31460
31461 2000-08-30  Jim Meyering  <meyering@lucent.com>
31462
31463         * lib/strftime.c: Merge in changes from GNU libc.
31464
31465 2000-08-26  Jim Meyering  <meyering@lucent.com>
31466
31467         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
31468         * m4/fpending.m4: New file.
31469
31470 2000-08-26  Jim Meyering  <meyering@lucent.com>
31471
31472         * lib/closeout.c: Include "__fpending.h".
31473         (close_stdout_status): Return right away if there's nothing to flush.
31474
31475         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
31476         * lib/__fpending.c: New file.
31477         * lib/__fpending.h: New file.
31478
31479 2000-08-20  Jim Meyering  <meyering@lucent.com>
31480
31481         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
31482         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
31483         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
31484
31485 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
31486
31487         Improve fileutils installation on systems where running
31488         programs (like install) can't be unlinked.
31489         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
31490         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
31491
31492 2000-08-07  Paul Eggert  <eggert@twinsun.com>
31493
31494         Standardize on "memory exhausted" instead of "Memory exhausted"
31495         or "virtual memory exhausted".
31496         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
31497         "virtual memory exhausted".
31498         * lib/same.c (same_name): Invoke xalloc_die instead of printing
31499         our own message.
31500         * lib/userspec.c (parse_user_spec): Likewise.
31501         * lib/bumpalloc.h: comment fix
31502         * lib/same.c, userspec.c: Include xalloc.h.
31503
31504         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
31505         not char *const and pointing to a constant array.
31506         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
31507         (xrealloc): Comment fix.
31508
31509         * lib/userspec.c (parse_user_spec):
31510         Don't translate a message until just before returning,
31511         to avoid unnecessary translation.
31512
31513 2000-08-07  Jim Meyering  <meyering@lucent.com>
31514
31515         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
31516         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
31517         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
31518         getgroups.c, gethostname.c, getopt.h, group-member.c,
31519         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
31520         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
31521         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
31522         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
31523         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
31524         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
31525         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
31526         yesno.c: Back out Copyright date changes for each file with no change
31527         this year.  This eases coordination with other programs using the same
31528         source code modules.  From Paul Eggert.
31529
31530 2000-08-06  Paul Eggert  <eggert@twinsun.com>
31531
31532         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
31533         not char, for compatibility with glibc 2.1.3 strftime.c.
31534
31535 2000-08-03  Greg McGary  <greg@mcgary.org>
31536
31537         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
31538         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
31539         (EXTEND_BUFFER): Use them.
31540
31541 2000-08-01  Jim Meyering  <meyering@lucent.com>
31542
31543         * lib/dirname.c (ISSLASH): Define.
31544         (BACKSLASH_IS_PATH_SEPARATOR): Define.
31545         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
31546         both `\' and `/' may be use as path separators.
31547         Based on a patch from Prashant TR.
31548
31549 2000-07-31  Paul Eggert  <eggert@twinsun.com>
31550
31551         * lib/quotearg.c (quotearg_n_options): Don't make the initial
31552         slot vector a constant, since it might get modified.
31553
31554 2000-07-31  Jim Meyering  <meyering@lucent.com>
31555
31556         * lib/xmalloc.c: Use `virtual memory exhausted', not
31557         `Memory exhausted'.
31558         * lib/obstack.c (print_and_abort): Likewise.
31559
31560 2000-07-30  Paul Eggert  <eggert@twinsun.com>
31561
31562         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
31563         buffer, so that the caller can always quote one small
31564         component of a "memory exhausted" message in slot 0.
31565         From a suggestion by Jim Meyering.
31566
31567 2000-07-30  Jim Meyering  <meyering@lucent.com>
31568
31569         * lib/makepath.c (make_path): Quote the other instance, too.
31570
31571         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
31572         (STATIC_BUF_SIZE): Define.
31573         (quotearg_n_options): Use only statically allocated storage when
31574         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
31575         than STATIC_BUF_SIZE.
31576
31577 2000-07-29  Jim Meyering  <meyering@lucent.com>
31578
31579         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
31580         * lib/dirname.c (dir_name): Likewise.
31581
31582         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
31583         `/'.
31584
31585         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
31586         (dir_name): Assert that there are no trailing slashes.
31587
31588 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
31589
31590         * lib/mbswidth.h (mbswidth): Add a flags argument.
31591         (mbswidth): New declaration.
31592         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
31593         * lib/mbswidth.c (mbswidth): Add a flags argument.
31594         (mbsnwidth): New function.
31595
31596 2000-07-24  Jim Meyering  <meyering@lucent.com>
31597
31598         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
31599
31600 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31601
31602         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
31603
31604 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31605
31606         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
31607         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
31608         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
31609         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
31610         invoke multibyte primitives.
31611
31612 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31613
31614         * lib/quotearg.c:
31615         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
31616         so that mbstate_t is always defined.
31617
31618         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
31619         be 1 in at least one GCC installation, and this configuration
31620         error is likely to be common.  Ignoring MB_LEN_MAX hurts
31621         performance on hosts that have mbrtowc but have only unibyte
31622         locales, but I assume these hosts are rare.
31623
31624 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31625
31626         * lib/mbswidth.c (_XOPEN_SOURCE):
31627         Don't define; this causes problems on Solaris 7.
31628         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
31629
31630 2000-07-23  Jim Meyering  <meyering@lucent.com>
31631
31632         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
31633         too: getgrgid, getpwuid, getuid.
31634
31635 2000-07-23  Jim Meyering  <meyering@lucent.com>
31636
31637         * lib/basename.c (base_name): Add an assertion.
31638
31639 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
31640
31641         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
31642         shadow its mbsinit function.
31643
31644 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
31645
31646         * lib/mbswidth.h: New file.
31647         * lib/mbswidth.c: New file.
31648         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
31649         (noinst_HEADERS): Add mbswidth.h.
31650
31651 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
31652
31653         * lib/config.charset: Add support for FreeBSD. Improve support for
31654         HP-UX and IRIX 6.
31655
31656 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
31657
31658         * m4/mbswidth.m4: New file.
31659         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
31660
31661 2000-07-15  Jim Meyering  <meyering@lucent.com>
31662
31663         * lib/makepath.c: Include quote.h.
31664         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
31665         corresponding argument in a `quote (...)' call.
31666         Give better diagnostics.
31667
31668         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
31669         (noinst_HEADERS): Add quote.h.
31670
31671         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
31672         from tar's src/misc.c.
31673         * lib/quote.h: New file.  Prototypes for same.
31674
31675 2000-07-14  Paul Eggert  <eggert@twinsun.com>
31676
31677         From a suggestion by Bruno Haible.
31678         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
31679         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
31680         to decide whether to define the BeOS workaround macro;
31681         this adjusts to the change to AC_MBSTATE_T.
31682
31683 2000-07-14  Jim Meyering  <meyering@lucent.com>
31684
31685         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
31686         jm_AC_TYPE_UINTMAX_T.
31687
31688 2000-07-13  Paul Eggert  <eggert@twinsun.com>
31689
31690         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
31691
31692         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
31693         quotearg_buffer_restyled): Add support for
31694         clocale_quoting_style.  Undo previous change to
31695         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
31696         and "{RIGHT QUOTATION MARK}" msgids.
31697
31698 2000-07-10  Paul Eggert  <eggert@twinsun.com>
31699
31700         From a suggestion by Bruno Haible.
31701         * m4/mbstate_t.m4 (AC_MBSTATE_T):
31702         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
31703         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
31704         and mbstate_t, to a single-part test that simply defines mbstate_t.
31705         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
31706         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
31707
31708 2000-07-10  Jim Meyering  <meyering@lucent.com>
31709
31710         * m4/strerror_r.m4: Mirror the correction made in autoconf.
31711
31712         * m4/gnu-source.m4: Output to confdefs.h directly.
31713         Suggestion from Akim Demaille.
31714
31715 2000-07-09  Paul Eggert  <eggert@twinsun.com>
31716
31717         The old behavior of quoting `like this' doesn't look good with
31718         newer, ISO-style fonts.  See:
31719         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
31720
31721         Instead, quote "like this" by default.  Let the translator
31722         tailor the locale-specific quoting behavior by providing
31723         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
31724
31725         * lib/quotearg.c (N_): New macro.
31726         (gettext_default): New function.
31727         (quotearg_buffer_restyled): Use
31728         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
31729         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
31730
31731 2000-07-09  Jim Meyering  <meyering@lucent.com>
31732
31733         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
31734         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
31735
31736         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
31737         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
31738
31739 2000-07-09  Jim Meyering  <meyering@lucent.com>
31740
31741         * lib/Most files: Update copyright dates to include 2000.
31742
31743 2000-07-08  Jim Meyering  <meyering@lucent.com>
31744
31745         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
31746         if not defined.
31747         (xgethostname): Remove now-unnecessary #ifdef.
31748         Move declaration of `err' into loop where it's used.
31749
31750 2000-07-05  Paul Eggert  <eggert@twinsun.com>
31751         and Bruno Haible  <haible@clisp.cons.org>
31752
31753         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
31754         only if the test for an object-type mbstate_t fails.  This
31755         prevents us from mistakenly reporting that mbstate_t is a
31756         system object type after we "#define mbstate_t int" to work
31757         around its lack.
31758
31759 2000-07-05  Paul Eggert  <eggert@twinsun.com>
31760         and Bruno Haible  <haible@clisp.cons.org>
31761
31762         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
31763
31764 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
31765
31766         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
31767         to strerror_r.
31768         Include <ctype.h> for use of isalpha.
31769
31770 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
31771
31772         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
31773         by allocating a larger buffer. Test the gethostname return value for
31774         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
31775         returns an error and ENAMETOOLONG isn't defined.
31776
31777 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
31778
31779         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
31780         dimension.
31781
31782 2000-07-04  Jim Meyering  <meyering@lucent.com>
31783
31784         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
31785         of the deprecated AC_CHECKING.
31786
31787 2000-07-04  Jim Meyering  <meyering@lucent.com>
31788
31789         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
31790         Reported by Bruno Haible.
31791
31792 2000-07-04  Jim Meyering  <meyering@lucent.com>
31793
31794         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
31795         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
31796         lacks mbrtowc.
31797
31798 2000-07-03  Paul Eggert  <eggert@twinsun.com>
31799
31800         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
31801         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
31802
31803 2000-07-03  Paul Eggert  <eggert@twinsun.com>
31804         and Bruno Haible  <haible@clisp.cons.org>
31805
31806         * lib/quotearg.c (mbrtowc):
31807         Assign to *pwc, and return 1 only if result is nonzero.
31808         (iswprint): Use ISPRINT when substituting our own mbrtowc.
31809
31810 2000-07-03  Jim Meyering  <meyering@lucent.com>
31811
31812         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
31813
31814 2000-07-03  Jim Meyering  <meyering@lucent.com>
31815
31816         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
31817         This is necessary to get a definition of e.g., UTMP_FILE on
31818         HP-UX 10.20.
31819         From Bob Proulx.
31820
31821 2000-07-02  Jim Meyering  <meyering@lucent.com>
31822
31823         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
31824
31825         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
31826         AC_LIBOBJ(function_name).
31827         * m4/chown.m4: Likewise.
31828         * m4/fnmatch.m4: Likewise.
31829         * m4/ftruncate.m4: Likewise.
31830         * m4/getgroups.m4: Likewise.
31831         * m4/getline.m4: Likewise.
31832         * m4/group-member.m4: Likewise.
31833         * m4/jm-macros.m4: Likewise.
31834         * m4/lstat.m4: Likewise.
31835         * m4/malloc.m4: Likewise.
31836         * m4/memcmp.m4: Likewise.
31837         * m4/nanosleep.m4: Likewise.
31838         * m4/putenv.m4: Likewise.
31839         * m4/realloc.m4: Likewise.
31840         * m4/regex.m4: Likewise.
31841         * m4/stat.m4: Likewise.
31842         * m4/strftime.m4: Likewise.
31843
31844 2000-07-02  Jim Meyering  <meyering@lucent.com>
31845
31846         * lib/quotearg.c (mbstate_t): Don't define here.
31847
31848 2000-07-02  Jim Meyering  <meyering@lucent.com>
31849
31850         * lib/nanosleep.c (SIGCONT): Define if not already defined.
31851
31852 2000-07-01  Jim Meyering  <meyering@lucent.com>
31853
31854         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
31855
31856 2000-07-01  Jim Meyering  <meyering@lucent.com>
31857
31858         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
31859         problem.
31860
31861 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
31862
31863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
31864         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
31865
31866 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
31867
31868         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
31869         per change in ../m4/ls-mntd-fs.m4.
31870         (read_filesystem_list): Ignore symbolic links.
31871
31872 2000-06-29  Jim Meyering  <meyering@lucent.com>
31873
31874         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
31875         for declaration of strcmp.
31876
31877         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
31878
31879         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
31880         Avoid warning by casting result to `char *' to remove `const'.
31881
31882 2000-06-28  Jim Meyering  <meyering@lucent.com>
31883
31884         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
31885         included by quotearg.c, for which we perform this test.  From
31886         Bruno Haible.
31887
31888 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
31889
31890         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
31891         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
31892         <utmpx.h> exists, put readutmp.o into LIBOBJS.
31893
31894 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
31895
31896         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
31897
31898 2000-06-26  Paul Eggert  <eggert@twinsun.com>
31899
31900         savedir now sets errno on failure and invokes xmalloc to get memory.
31901         Fix a couple of other minor bugs while we're at it.
31902
31903         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
31904         (NAMLEN): Remove macro.
31905         (malloc, realloc): Remove decls.
31906         (stpcpy): Likewise.
31907         ("xalloc.h"): Include.
31908         (NAME_SIZE_DEFAULT): New macro.
31909         (savedir): Use xmalloc / xrealloc to allocate memory.
31910         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
31911         Skip "" directory entries.
31912         Use strlen to calculate directory entry length, since the old method
31913         is rarely used these days and isn't worth supporting.
31914         Don't use a pointer after freeing it.
31915         Check for integer overflow when calculating allocation size.
31916         Use memcpy to copy entries, instead of stpcpy.
31917         Set errno properly when returning NULL.
31918         Check for readdir error.
31919
31920 2000-06-26  Jim Meyering  <meyering@lucent.com>
31921
31922         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
31923
31924 2000-06-25  Jim Meyering  <meyering@lucent.com>
31925
31926         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
31927         Linux header bug when _XOPEN_SOURCE is defined to 500.
31928
31929 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
31930
31931         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
31932         deficiency.
31933
31934 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
31935
31936         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
31937         Include xalloc.h.
31938         Don't include <stdlib.h>.  Don't declare malloc, realloc.
31939
31940 2000-06-24  Jim Meyering  <meyering@lucent.com>
31941
31942         * m4/strerror_r.m4: Revive this file -- to try out an experimental
31943         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
31944         for which strerror does return char*, but which lacks a conveniently
31945         accessible declaration of the function.  If the compile-test says
31946         strerror_r doesn't work, then resort to a `run'-test that works on
31947         BeOS and segfaults on DEC Unix.
31948
31949 2000-06-24  Jim Meyering  <meyering@lucent.com>
31950
31951         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
31952
31953 2000-06-23  Paul Eggert  <eggert@twinsun.com>
31954
31955         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
31956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
31957
31958 2000-06-23  Paul Eggert  <eggert@twinsun.com>
31959
31960         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
31961         (mbrtowc, mbstate_t): Define substitutes if
31962         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
31963         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
31964         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
31965
31966 2000-06-23  Jim Meyering  <meyering@lucent.com>
31967
31968         * m4/afs.m4: Add missing AC_MSG_RESULT.
31969         Reported by Bruno Haible.
31970
31971         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
31972         Suggestion from Bruno Haible.
31973
31974 2000-06-23  Jim Meyering  <meyering@lucent.com>
31975
31976         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
31977
31978 2000-06-21  Jim Meyering  <meyering@lucent.com>
31979
31980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
31981
31982 2000-06-21  Jim Meyering  <meyering@lucent.com>
31983
31984         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
31985         (noinst_HEADERS): Add getstr.h.
31986
31987         * lib/getline.c (getstr): Move into a separate file.
31988         * lib/getstr.c (getstr): New file, extracted from getline.c, with
31989         the following changes: new parameter, delim2; both delim[12]
31990         parameters have type `int', not `char'.  The latter would lose
31991         with 8-bit delimiters.
31992         * lib/getstr.h: New file.
31993
31994 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
31995
31996         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
31997         than 1024, return a memory chunk of least possible size, instead
31998         of size PATH_MAX + 2. In the loop, increment the size proportionally.
31999         Use free/xmalloc instead of xrealloc to avoid copying for very long
32000         paths.
32001
32002 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
32003
32004         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
32005         the empty string.
32006
32007 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
32008
32009         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
32010         address, not strdup.  Include <stdlib.h> and don't declare free().
32011
32012 2000-06-19  Jim Meyering  <meyering@lucent.com>
32013
32014         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
32015
32016 2000-06-18  Jim Meyering  <meyering@lucent.com>
32017
32018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
32019
32020         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
32021         `checking whether...' message to be consistent with that of the
32022         lstat test.
32023
32024 2000-06-18  Jim Meyering  <meyering@lucent.com>
32025
32026         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
32027         Besides, these days every porting target provides a mkdir function.
32028
32029         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
32030         needed. (this snippet comes from src/system.h).
32031
32032 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
32033
32034         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
32035
32036 2000-06-15  Paul Eggert  <eggert@twinsun.com>
32037
32038         * lib/human.c (adjust_value): New function.
32039         (human_readable_inexact): Apply rounding style even when
32040         printing approximate values.
32041
32042 2000-06-14  Paul Eggert  <eggert@twinsun.com>
32043
32044         * lib/human.c (human_readable_inexact): Allow an input block
32045         size that is not a multiple of the output block size, and vice versa.
32046         Reported by Piergiorgio Sartor.
32047
32048 2000-06-14  Paul Eggert  <eggert@twinsun.com>
32049
32050         * lib/getdate.y (get_date): Apply relative times after time
32051         zone indicator, not before.  Reported by Todd A. Jacobs.
32052
32053 2000-06-13  Jim Meyering  <meyering@lucent.com>
32054
32055         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
32056
32057         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
32058
32059 2000-06-12  Paul Eggert  <eggert@twinsun.com>
32060
32061         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
32062
32063 2000-06-12  Jim Meyering  <meyering@lucent.com>
32064
32065         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
32066         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
32067         optional argument.
32068         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
32069         the optional argument, `lib'.
32070
32071 2000-06-08  Jim Meyering  <meyering@lucent.com>
32072
32073         * m4/largefile.m4: Remove file (now that it's part of autoconf).
32074
32075 2000-06-04  Paul Eggert  <eggert@twinsun.com>
32076
32077         Rewrite largefile configuration so that we don't need to run
32078         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
32079         AC_CANONICAL_HOST in configure.in -- jmm]
32080
32081         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
32082         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
32083         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
32084         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
32085         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
32086         All uses changed.
32087         Instead of inspecting the output of getconf, try to compile the
32088         test program without and with the macro definition.
32089         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
32090         for getconf.  Instead, check for the needed flags by compiling
32091         test programs.
32092
32093 2000-06-04  Paul Eggert  <eggert@twinsun.com>
32094
32095         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
32096
32097 2000-06-04  Jim Meyering  <meyering@lucent.com>
32098
32099         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
32100         SunOS 4.1.4 for which gid_t is an unsigned type.
32101
32102 2000-06-03  Jim Meyering  <meyering@lucent.com>
32103
32104         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
32105         now that autoconf requires that.
32106
32107         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
32108         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
32109         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
32110
32111 2000-06-03  Jim Meyering  <meyering@lucent.com>
32112
32113         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
32114
32115 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
32116
32117         * m4/glibc21.m4: New file.
32118         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
32119
32120 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
32121
32122         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
32123         newer, don't install charset.alias.
32124         * lib/config.charset: Change the Linux/glibc rules so they become empty
32125         on glibc-2.1 or newer.
32126
32127 2000-06-02  Jim Meyering  <meyering@lucent.com>
32128
32129         * lib/mountlist.c: Back out last change.  Instead, do this...
32130         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
32131         me_dummy member using the same `ignore'-testing code.
32132         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
32133         fs_type strings.
32134         From Mark D. Roth.
32135
32136 2000-05-29  Jim Meyering  <meyering@lucent.com>
32137
32138         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
32139         mounts with the `ignore' attribute.  Based on a patch from
32140         Mark D. Roth.
32141
32142 2000-05-28  Jim Meyering  <meyering@lucent.com>
32143
32144         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
32145         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32146         * m4/stat.m4: Likewise.
32147         * m4/lstat.m4: Likewise.
32148         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
32149
32150         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
32151         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
32152
32153 2000-05-26  Jim Meyering  <meyering@lucent.com>
32154
32155         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
32156
32157 2000-05-24  Jim Meyering  <meyering@lucent.com>
32158
32159         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
32160         autoconf requires that.
32161         * m4/lib-check.m4: Likewise.
32162         * m4/jm-macros.m4: Likewise.
32163         * m4/strftime.m4: Likewise.
32164
32165         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
32166         AC_CHECK_DECLS, now that autoconf requires that.
32167
32168 2000-05-22  Jim Meyering  <meyering@lucent.com>
32169
32170         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32171         * m4/lstat.m4: Likewise.
32172
32173 2000-05-22  Jim Meyering  <meyering@lucent.com>
32174
32175         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
32176
32177 2000-05-20  Jim Meyering  <meyering@lucent.com>
32178
32179         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
32180         (jm_PREREQ): Use it.
32181
32182 2000-05-18  Jim Meyering  <meyering@lucent.com>
32183
32184         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
32185         back, too, since it may have been modified by allocate_entry.
32186         (hash_delete): Rewrite to use neither the assignment operator
32187         nor the comma operator in an if-expression.
32188
32189 2000-05-15  Paul Eggert  <eggert@twinsun.com>
32190
32191         * lib/closeout.c:
32192         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
32193         Remove; no longer needed.
32194         "quotearg.h": Add include.
32195         (file_name): Do not bother to explicitly initialize to NULL; it's less
32196         efficient on some hosts.
32197         (close_stdout_status): Remove test as to whether stdout was already
32198         closed; it breaks for the case "echo x | sort >&-".
32199         Quote file name colons.
32200         Do not assume that _("write error") lacks format strings.
32201
32202 2000-05-15  Jim Meyering  <meyering@lucent.com>
32203
32204         * lib/version-etc.c (version_etc_copyright): Update the copyright
32205         string used in all --version output.
32206
32207 2000-05-14  Jim Meyering  <meyering@lucent.com>
32208
32209         * lib/closeout.c (close_stdout_set_file_name): New function.
32210         (close_stdout_status): Use new file-scoped global.
32211         Return right away if fstat says the stdout file descriptor is invalid.
32212         * lib/closeout.h (close_stdout_set_file_name): Declare.
32213
32214 2000-05-10  Jim Meyering  <meyering@lucent.com>
32215
32216         * lib/closeout.c [default_exit_status]: New file-scoped variable.
32217         (close_stdout_set_status): New function.
32218         * lib/closeout.h (close_stdout_set_status): Declare.
32219
32220 2000-05-09  Jim Meyering  <meyering@lucent.com>
32221
32222         * m4/gettext.m4: Rename this...
32223         * m4/libintl.m4: ...to this.
32224
32225 2000-05-08  Jim Meyering  <meyering@lucent.com>
32226
32227         * lib/long-options.c: Don't include closeout.h.
32228         (parse_long_options): Don't call close_stdout for --version.
32229
32230 2000-05-06  Paul Eggert  <eggert@twinsun.com>
32231
32232         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
32233         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
32234         2.1.3 bug.  This avoids a clash when files like regex.c define
32235         _GNU_SOURCE.
32236
32237 2000-05-06  Jim Meyering  <meyering@lucent.com>
32238
32239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
32240         (AC_REPLACE_FUNCS): Add strnlen.
32241
32242         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
32243         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
32244
32245         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
32246         AC_SEARCH_LIBS call for nanosleep.
32247         (LIB_NANOSLEEP): Set and AC_SUBST.
32248
32249 2000-05-06  Jim Meyering  <meyering@lucent.com>
32250
32251         * lib/strnlen.c: Undefine __strnlen and strnlen.
32252         [!weak_alias]: Define __strnlen to strnlen.
32253
32254         * lib/atexit.c: New file, from libiberty.
32255
32256 2000-05-06  Jim Meyering  <meyering@lucent.com>
32257
32258         * lib/closeout.c (close_stdout_status): Also check for errors on the
32259         stderr stream.
32260
32261 2000-05-05  Jim Meyering  <meyering@lucent.com>
32262
32263         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
32264         AC_SEARCH_LIBS call for clock_gettime.
32265         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
32266
32267         * m4/search-libs.m4: Update from autoconf.
32268
32269         su doesn't work on Solaris 2.6.
32270         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
32271         <shadow.h>.  Reported by Dragos Harabor.
32272
32273 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
32274
32275         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
32276         memcpy instead of xmalloc, xrealloc, path_concat.
32277         (locale_charset): Treat empty environment variables as absent.
32278         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
32279
32280 2000-05-04  Jim Meyering  <meyering@lucent.com>
32281
32282         * lib/getopt.c: Update from glibc.
32283         * lib/obstack.c: Likewise.
32284         * lib/obstack.h: Likewise.
32285         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
32286         file
32287
32288         * lib/regex.h: Likewise.
32289         * lib/strndup.c: Likewise.
32290         * lib/strnlen.c: New file, from glibc.
32291
32292 2000-05-03  Jim Meyering  <meyering@lucent.com>
32293
32294         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
32295
32296 2000-05-02  Paul Eggert  <eggert@twinsun.com>
32297
32298         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
32299         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
32300         compile-time test, rather than inspecting host and OS, to
32301         decide whether to define _LARGEFILE_SOURCE.
32302
32303 2000-05-01  Jim Meyering  <meyering@lucent.com>
32304
32305         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
32306
32307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
32308         Based on a patch from Bruno Haible.
32309
32310 2000-05-01  Jim Meyering  <meyering@lucent.com>
32311
32312         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
32313
32314 2000-04-29  Jim Meyering  <meyering@lucent.com>
32315
32316         * lib/path-concat.c: Declare strdup only if it's not defined.
32317         * lib/canon-host.c: Likewise.
32318
32319 2000-04-28  Jim Meyering  <meyering@lucent.com>
32320
32321         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
32322         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
32323         is included first, then limits.h is included by locale.h by libintl.h.
32324         From John David Anglin.
32325
32326 2000-04-25  Jim Meyering  <meyering@lucent.com>
32327
32328         * lib/makepath.c (S_IRWXUGO): Define.
32329         (make_path): Always perform explicit chmod if MODE specifies any
32330         of the `special' permission bits.  Prompted by a bug report against
32331         install from Mate Wierdl and Joost van Baal.
32332
32333 2000-04-18  Jim Meyering  <meyering@lucent.com>
32334
32335         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
32336         (jm_PREREQ): Use it.
32337
32338 2000-04-18  Jim Meyering  <meyering@lucent.com>
32339
32340         * lib/README: New file.
32341
32342         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
32343         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
32344
32345 2000-04-17  Jim Meyering  <meyering@lucent.com>
32346
32347         Get it right :-)
32348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
32349         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
32350         Suggestion from Akim Demaille.
32351
32352 2000-04-17  Jim Meyering  <meyering@lucent.com>
32353
32354         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
32355         the definition of it to rpl_strftime also defined-away the system's
32356         declaration.
32357
32358 2000-04-15  Jim Meyering  <meyering@lucent.com>
32359
32360         Use `C' to denote so-called `contiguous' files, the same way
32361         that tar does.
32362         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
32363         (ftypelet): Use S_ISCTG.
32364         From Michael Deutschmann.
32365
32366 2000-04-14  Jim Meyering  <meyering@lucent.com>
32367
32368         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
32369         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
32370         clobbered.
32371
32372 2000-04-14  Jim Meyering  <meyering@lucent.com>
32373
32374         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
32375
32376 2000-04-13  Jim Meyering  <meyering@lucent.com>
32377
32378         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
32379         AH_VERBATIM to insert required #ifndef into config.h.in.
32380         Suggestion from Akim Demaille.
32381
32382 2000-04-12  Jim Meyering  <meyering@lucent.com>
32383
32384         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
32385         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
32386         Christian Krackowizer.
32387
32388         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
32389         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
32390         (AC_SYS_LARGEFILE): Require.
32391         (AM_C_PROTOTYPES): Require.
32392
32393 2000-04-08  Jim Meyering  <meyering@lucent.com>
32394
32395         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
32396         names don't conflict.  Reported by Eli Zaretskii.
32397
32398 2000-04-07  Jim Meyering  <meyering@lucent.com>
32399
32400         * lib/putenv.c: Move inclusion of errno.h so it follows that of
32401         sys/types.h, to work around system header problems on AIX 3.2.5.
32402         From Bruno Haible.
32403
32404 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
32405
32406         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
32407         bug.  Deal with the different error behavior of Irix iconv.
32408
32409 2000-04-05  Paul Eggert  <eggert@twinsun.com>
32410
32411         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
32412         IRIX if the installer said otherwise.
32413
32414 2000-04-05  Jim Meyering  <meyering@lucent.com>
32415
32416         Portability tweaks required for ultrix4.3.
32417         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
32418         (jm_CHECK_DECLS): Add getutent to the list of functions.
32419         (_jm_DECL_HEADERS): Add utmpx.h.
32420         From John David Anglin.
32421
32422         * m4/strftime.m4: Back out the 2000-04-02 change.
32423         Instead of that change, simply undefine putenv in the test program.
32424
32425 2000-04-05  Jim Meyering  <meyering@lucent.com>
32426
32427         Portability tweaks required for ultrix4.3.
32428         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
32429         getutent.
32430         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
32431         * lib/canon-host.c: Declare strdup.
32432         * lib/path-concat.c: Likewise.
32433         From John David Anglin.
32434
32435 2000-04-04  Jim Meyering  <meyering@lucent.com>
32436
32437         Be more DOS 8.3-friendly.
32438         * lib/ref-add.sin: Renamed from ref-add.sed.in.
32439         * lib/ref-del.sin: Renamed from ref-del.sed.in.
32440         * lib/Makefile.am: Reflect renaming.
32441         Reported by Eli Zaretskii.
32442
32443         Use a temporary file name that won't clash with `charset.alias'
32444         in the DOS 8.3 name space.
32445         * lib/Makefile.am (charset_tmp): Define.
32446         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
32447         (uninstall-local): Likewise.
32448         Reported by Eli Zaretskii.
32449
32450 2000-04-03  Jim Meyering  <meyering@lucent.com>
32451
32452         * m4/gettext.m4: Fix typo in comment.
32453
32454         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
32455         textutils/configure.in).  Suggestion from Paul Eggert.
32456         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
32457
32458 2000-04-02  Paul Eggert  <eggert@twinsun.com>
32459
32460         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
32461         variable in the shell rather than using putenv, which isn't
32462         portable.  This avoids the configure-time inter-test dependency
32463         on the potentially-renamed putenv function.
32464
32465 2000-03-30  Paul Eggert  <eggert@twinsun.com>
32466
32467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
32468         before checking struct stat.st_blksize, so that
32469         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
32470
32471 2000-03-29  Paul Eggert  <eggert@twinsun.com>
32472
32473         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
32474         since strftime.c uses HAVE_STRFTIME to decide whether to use
32475         the underlying strftime.
32476
32477 2000-03-29  Paul Eggert  <eggert@twinsun.com>
32478
32479         * lib/time/strftime.c (my_strftime): Make sure we call the system
32480         strftime, not ourselves, when invoking the underlying strftime.
32481
32482 2000-03-24  Jim Meyering  <meyering@lucent.com>
32483
32484         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
32485         (charset_alias): Define.
32486         (install-exec-local): Factor out common code.
32487         (uninstall-local): Split lines longer than 80.
32488         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
32489         (SUFFIXES): Define.
32490         (.sed.in.sed): New rule.  Don't redirect directly to $@.
32491         (CLEANFILES): Add ref-add.sed and ref-del.sed.
32492
32493 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
32494
32495         * lib/config.charset: Output a line containing "Packages using this
32496         file".
32497         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
32498         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
32499         ref-del.sed): New rules.
32500
32501 2000-03-17  Jim Meyering  <meyering@lucent.com>
32502
32503         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
32504         Otherwise, include <strings.h>
32505
32506 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
32507
32508         * lib/unicodeio.c (utf8_wctomb): New function.
32509         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
32510         format instead of in UCS-4 with platform dependent endianness.
32511
32512 2000-03-10  Jim Meyering  <meyering@lucent.com>
32513
32514         * m4/lib-check.m4: Look for getspnam in -lgen, too.
32515         From Marco Franzen.
32516
32517 2000-03-07  Paul Eggert  <eggert@twinsun.com>
32518
32519         * lib/savedir.c (savedir): Work even if directory size is
32520         negative; this can happen with some screwy NFS configurations.
32521
32522 2000-03-06  Jim Meyering  <meyering@lucent.com>
32523
32524         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
32525         if it's NULL (because we ran out of memory).  From Bruno Haible.
32526
32527 2000-03-05  Jim Meyering  <meyering@lucent.com>
32528
32529         * lib/localcharset.c ("path-concat.h"): Include.
32530         (get_charset_aliases): Use path_concat instead of ANSI string
32531         concatenation.
32532
32533         * lib/unicodeio.h (PARAMS): Define.
32534         Use it to guard prototype.
32535
32536 2000-03-04  Jim Meyering  <meyering@lucent.com>
32537
32538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
32539         for lib/localcharset.c.
32540
32541 2000-03-04  Jim Meyering  <meyering@lucent.com>
32542
32543         * lib/Makefile.am (install-exec-local): Create $(libdir) before
32544         installing into it.
32545         (uninstall-local): Uncomment this rule so `make distcheck' works
32546         once again.
32547
32548         * lib/unicodeio.c (<errno.h>): Include it.
32549         (errno): Declare if not defined.
32550
32551         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
32552
32553         * lib/config.charset: New version, incorporating remarks from a linux
32554         i18n mailing list.  From Bruno Haible.
32555
32556 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
32557
32558         * m4/codeset.m4: New file.
32559         * m4/iconv.m4: New file.
32560         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
32561
32562 2000-03-03  Jim Meyering  <meyering@lucent.com>
32563
32564         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
32565
32566 2000-03-02  Jim Meyering  <meyering@lucent.com>
32567
32568         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
32569         the messages come out on separate lines.
32570
32571         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
32572         rather than jm_CHECK_DECLARATIONS.
32573         * m4/decl.m4: Remove now-unused file.
32574
32575         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
32576         geteuid.
32577
32578 2000-03-02  Jim Meyering  <meyering@lucent.com>
32579
32580         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
32581
32582 2000-03-01  Jim Meyering  <meyering@lucent.com>
32583
32584         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
32585         * lib/unicodeio.c: Likewise.
32586
32587 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
32588
32589         * lib/config.charset: New file.
32590         * lib/localcharset.c: New file.
32591         * lib/unicodeio.h, lib/unicodeio.c: New files.
32592         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
32593         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
32594         (noinst_HEADERS): Add unicodeio.h.
32595         (all-local, install-exec-local, charset.alias): New targets.
32596
32597 2000-02-28  Paul Eggert  <eggert@twinsun.com>
32598
32599         * lib/quotearg.c (ALERT_CHAR): New macro.
32600         (quotearg_buffer_restyled): Use it.
32601
32602 2000-02-27  Jim Meyering  <meyering@lucent.com>
32603
32604         * m4/check-decl.m4: Add getenv to the list.
32605
32606 2000-02-27  Jim Meyering  <meyering@lucent.com>
32607
32608         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
32609         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
32610
32611         * lib/backupfile.c: Guard inclusion of stdlib.h with
32612         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
32613         Declare malloc if needed.
32614
32615         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
32616         `#ifndef HAVE_DECL..'
32617         now that autoconf always defines the HAVE_DECL_ symbols.
32618         * lib/human.c: Likewise.
32619         * lib/same.c: Likewise.
32620         * lib/strtoumax.c: Likewise.
32621
32622         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
32623         declaration check was not run.
32624         * lib/hash.c: Likewise.
32625         * lib/human.c: Likewise.
32626         * lib/same.c: Likewise.
32627         * lib/strtoumax.c: Likewise.
32628
32629         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
32630         `.', then first look up the entire `.'-containing string as a login
32631         name.
32632
32633 2000-02-23  Jim Meyering  <meyering@lucent.com>
32634
32635         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
32636         in place of my hack.
32637
32638 2000-02-18  Paul Eggert  <eggert@twinsun.com>
32639
32640         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
32641         (textint): New typedef.
32642         (parser_control): Member year changed from int to textint.
32643         All uses changed.
32644         (YYSTYPE): Removed; replaced by %union with int and textint members.
32645         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
32646         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
32647         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
32648         (tSNUMBER, tUNUMBER): Now of type <textintval>.
32649         (date, number, to_year): Use width of number in digits, not its value,
32650         to determine whether it's a 2-digit year, or a 2-digit time.
32651         (yylex): Store number of digits of numeric tokens.
32652         Reported by John Kendall.
32653
32654         (parser_control): Changed from struct parser_control to typedef (for
32655         consistency).  All uses changed.
32656
32657         (tID): Removed; not used.
32658         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
32659
32660 2000-02-14  Paul Eggert  <eggert@twinsun.com>
32661
32662         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
32663         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
32664
32665 2000-02-12  Jim Meyering  <meyering@lucent.com>
32666
32667         * lib/userspec.c (ISDIGIT): Define it.
32668         (isdigit): Remove definition.
32669         (is_number): Use ISDIGIT, not isdigit.
32670         <libintl.h>: Include.
32671         (_ and N_): Define.
32672         (parse_user_spec): Mark translatable strings.
32673
32674 2000-02-10  Jim Meyering  <meyering@lucent.com>
32675
32676         With these changes, nanosleep.[ch] are finally enough like the other
32677         lib/* replacement files to compile on a few more losing systems.
32678
32679         * lib/nanosleep.h: Don't include config.h.
32680         Remove prototype from declaration of nanosleep.
32681         (PARAMS): Remove now-unneeded definition.
32682         * lib/nanosleep.c: #undef nanosleep.
32683         (rpl_nanosleep): Rename from nanosleep.
32684
32685 2000-02-10  Jim Meyering  <meyering@lucent.com>
32686
32687         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
32688         gnu_nanosleep to rpl_nanosleep.
32689
32690 2000-02-09  Jim Meyering  <meyering@lucent.com>
32691
32692         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
32693         struct spwd, rather than in struct passwd.  Reported by GaĆ«l QuĆ©ri.
32694
32695 2000-02-08  Akim Demaille  <akim@epita.fr>
32696
32697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
32698         `[' and `]' and remove uses of `changequote'.
32699         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
32700         (AC_SYS_LARGEFILE): Likewise.
32701         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32702         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
32703         of changequote.
32704         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
32705         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
32706         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
32707         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
32708
32709 2000-02-05  Jim Meyering  <meyering@lucent.com>
32710
32711         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
32712         Remove explicit use of AC_HEADER_TIME.  It is required by
32713         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
32714         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
32715         in autoconf whereby the expansion of the latter ended up preceding
32716         the expansion of its prerequisite, AC_HEADER_TIME.
32717         Reported by Volker Borchert.
32718
32719 2000-02-03  Jim Meyering  <meyering@lucent.com>
32720
32721         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
32722
32723 2000-02-03  Jim Meyering  <meyering@lucent.com>
32724
32725         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
32726         rather than with `#if HAVE_UTMPNAME'.
32727
32728 2000-02-02  Jim Meyering  <meyering@lucent.com>
32729
32730         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
32731         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
32732         Reported by Eli Zaretskii.
32733
32734 2000-02-01  Jim Meyering  <meyering@lucent.com>
32735
32736         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
32737
32738 2000-01-31  Jim Meyering  <meyering@lucent.com>
32739
32740         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
32741         functions.  Add the time.h and sys/time.h headers along with the
32742         AC_REQUIRE'ment of AC_HEADER_TIME.
32743
32744 2000-01-31  Jim Meyering  <meyering@lucent.com>
32745
32746         * lib/nanosleep.h (nanosleep): Guard declaration with
32747         `#if ! HAVE_DECL_NANOSLEEP'.
32748         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
32749         the declaration in that vendor's sys/timers.h.
32750         Reported by Christian Krackowizer.
32751
32752         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
32753         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
32754         (ISPRINT): Likewise.
32755         Reported by Tom Tromey.
32756
32757 2000-01-30  Jim Meyering  <meyering@lucent.com>
32758
32759         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
32760
32761         * m4/prereq.m4 (utmp_includes): Define.
32762         Check for ut_user and ut_name members in both struct utmpx
32763         and struct utmp.
32764
32765 2000-01-30  Jim Meyering  <meyering@lucent.com>
32766
32767         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
32768         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
32769         header files where only utmpx.ut_user is declared.
32770
32771         * lib/readutmp.h (UT_USER): Define.
32772
32773 2000-01-29  Jim Meyering  <meyering@lucent.com>
32774
32775         * m4/lib-check.m4: New file containing library-related checks from
32776         fileutils and sh-utils (textutils had none).
32777
32778 2000-01-28  Jim Meyering  <meyering@lucent.com>
32779
32780         * m4/perl.m4: Change format of warning message to look more like that
32781         from the missing script.  Suggestion from FranƧois Pinard.
32782
32783 2000-01-25  Jim Meyering  <meyering@lucent.com>
32784
32785         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
32786         well as time.h in the compile check.
32787         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
32788         Fix typo in cross-compiling case: s/yes/no/.
32789
32790 2000-01-23  Jim Meyering  <meyering@lucent.com>
32791
32792         * m4/jm-macros.m4: Move df-related tests here from
32793         fileutils/configure.in
32794
32795         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
32796         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
32797
32798         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
32799         s/space/ac_fsusage_space/.
32800         (jm_FILE_SYSTEM_USAGE): Take two parameters.
32801
32802         * m4/ftruncate.m4: New file (derived from part of
32803         fileutils/configure.in).
32804         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
32805         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
32806
32807         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
32808         AC_SUBST these here, rather than just in sh-util/configure.in, so
32809         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
32810         all the same.
32811         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
32812         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
32813         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
32814         (AC_SUBST(POW_LIBM)): Likewise.
32815         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
32816
32817 2000-01-23  Jim Meyering  <meyering@lucent.com>
32818
32819         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
32820         obstack.c.
32821
32822 2000-01-22  Jim Meyering  <meyering@lucent.com>
32823
32824         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
32825
32826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
32827
32828         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
32829         configure.in
32830         (AC_CHECK_HEADERS): Likewise for sh-utils.
32831         (AC_CHECK_HEADERS): Likewise for textutils.
32832         Merge the three lists of headers.
32833
32834         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
32835         from fileutils' configure.in.
32836
32837         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
32838         code. Moved tests into their own function (_jm_DECL_HEADERS) in
32839         check-decl.m4.
32840
32841         * m4/check-decl.m4: Use #if rather than #ifdef.
32842         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
32843         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
32844         (_jm_DECL_HEADERS): Define new function.
32845         (jm_CHECK_DECLARATIONS): Require it.
32846
32847 2000-01-22  Jim Meyering  <meyering@lucent.com>
32848
32849         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
32850         [! HAVE_DECL_STRTOULL]: Declare strtoull.
32851         Required for some AIX systems.  Reported by Christian Krackowizer.
32852         [TESTING] (main): New function.
32853
32854         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
32855         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
32856         letters.
32857
32858         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
32859         iswprint.
32860
32861         * lib/strverscmp.c (ISDIGIT): Define.
32862         (strverscmp): Use ISDIGIT, not isdigit.
32863
32864 2000-01-19  Jim Meyering  <meyering@lucent.com>
32865
32866         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
32867         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
32868         defines `struct timespec' in <sys/time.h>
32869
32870         * m4/c-bs-a.m4: Remove uses of changequote altogether.
32871         Thanks to Akim for explaining.
32872
32873 2000-01-17  Paul Eggert  <eggert@twinsun.com>
32874
32875         * lib/nanosleep.c (nanosleep):
32876         Don't use SA_INTERRUPT to decide whether to call sigaction, as
32877         POSIX.1 doesn't require SA_INTERRUPT and some systems
32878         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
32879         it's been part of POSIX.1 since day 1 (in 1988).
32880
32881 2000-01-17  Jim Meyering  <meyering@lucent.com>
32882
32883         * lib/interlock: Remove unused file.  Reported by FranƧois Pinard.
32884
32885 2000-01-16  Paul Eggert  <eggert@twinsun.com>
32886
32887         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
32888         alert, backslash, formfeed, and vertical tab unnecessarily in
32889         shell quoting style.
32890
32891 2000-01-16  Jim Meyering  <meyering@lucent.com>
32892
32893         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
32894         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
32895         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
32896         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
32897
32898 2000-01-16  Jim Meyering  <meyering@lucent.com>
32899
32900         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
32901         because the latter didn't work.
32902
32903 2000-01-15  Jim Meyering  <meyering@lucent.com>
32904
32905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
32906         (AC_REPLACE_FUNCS): Add memcpy and memset.
32907         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
32908         Add strpbrk.
32909         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
32910
32911 2000-01-12  Jim Meyering  <meyering@lucent.com>
32912
32913         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
32914         (jm_PREREQ): Use it.
32915         (jm_PREREQ_READUTMP): New macro.
32916         (jm_PREREQ): Use it.
32917
32918 2000-01-11  Paul Eggert  <eggert@twinsun.com>
32919
32920         Quote multibyte characters correctly.
32921         * m4/c-bs-a.m4: New file.
32922         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
32923         (jm_PREREQ): Use it.
32924
32925 2000-01-11  Paul Eggert  <eggert@twinsun.com>
32926
32927         * m4/uintmax_t.m4: Port to autoconf 2.13.
32928
32929 2000-01-08  Jim Meyering  <meyering@ascend.com>
32930
32931         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
32932         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
32933
32934 2000-01-04  Jim Meyering  <meyering@ascend.com>
32935
32936         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
32937         jm_STRUCT_DIRENT_D_TYPE.
32938         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
32939         jm_STRUCT_DIRENT_D_INO.
32940         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
32941         jm_STRUCT_UTIMBUF.
32942         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
32943         renamings.
32944         * m4/utime.m4: Likewise.
32945
32946         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
32947         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
32948
32949 2000-01-03  Paul Eggert  <eggert@twinsun.com>
32950
32951         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
32952         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
32953
32954 2000-01-02  Jim Meyering  <meyering@ascend.com>
32955
32956         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
32957         remember if this is necessary.
32958
32959 1999-12-26  Jim Meyering  <meyering@ascend.com>
32960
32961         * m4/jm-macros.m4: Use it here.
32962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
32963
32964 1999-12-23  Jim Meyering  <meyering@ascend.com>
32965
32966         * m4/jm-macros.m4: Check for clock_gettime (moved from
32967         fileutils/configure.in)
32968         Check for gettimeofday.
32969
32970 1999-12-20  Jim Meyering  <meyering@ascend.com>
32971
32972         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
32973         autoconf-2.14a-1999-12-20.
32974
32975 1999-12-19  Jim Meyering  <meyering@ascend.com>
32976
32977         * m4/lstat-slash.m4: New file.
32978         * m4/jm-macros.m4: Use the new macro:
32979         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32980
32981 1999-12-07  Jim Meyering  <meyering@ascend.com>
32982
32983         * m4/perl.m4: Require that File::Compare be available, too.
32984         Too many systems seem to lack it.
32985
32986         * m4/strftime.m4: Add checks for most of the cpp macros tested in
32987         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
32988
32989 1999-11-18  Paul Eggert  <eggert@twinsun.com>
32990
32991         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
32992         problem with the QNX 4.25 shell, which doesn't propagate exit
32993         status of failed commands inside shell assignments.
32994
32995 1999-11-17  Jim Meyering  <meyering@ascend.com>
32996
32997         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
32998
32999 1999-11-07  Jim Meyering  <meyering@ascend.com>
33000
33001         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
33002
33003 1999-11-06  Jim Meyering  <meyering@ascend.com>
33004
33005         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
33006         * m4/jm-macros.m4 (jm_MACROS): Use it here.
33007
33008 1999-11-05  Jim Meyering  <meyering@ascend.com>
33009
33010         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
33011         configure.in of textutils, fileutils, and sh-utils into this one
33012         (shared between those packages) file.
33013         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
33014         AC_STRUCT_ST_BLKSIZE.
33015
33016 1999-11-03  Jim Meyering  <meyering@ascend.com>
33017
33018         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
33019         of AC_CHECK_TYPE checks includes unistd.h.
33020         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
33021         Suggestion from Akim Demaille.
33022
33023 1999-10-30  Jim Meyering  <meyering@ascend.com>
33024
33025         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
33026         m4-quoted string.
33027         * m4/ls-mntd-fs.m4: Likewise.
33028         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
33029         * m4/jm-winsz1.m4: Likewise.
33030
33031         * m4/const.m4: Remove file, since the fix made it into the experimental
33032         version of autoconf.
33033         * m4/mktime.m4: Likewise.
33034
33035         * m4/check-type.m4: Remove file, now that the latest version of
33036         AC_CHECK_TYPE takes a third arg to specify additional #includes.
33037
33038         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
33039         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
33040         AC_CHECK_TYPE.
33041
33042 1999-10-04  Jim Meyering  <meyering@ascend.com>
33043
33044         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
33045
33046 1999-09-22  Paul Eggert  <eggert@twinsun.com>
33047
33048         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
33049         2.95.1 bug with HP-UX 10.20.
33050
33051 1999-09-17  Jim Meyering  <meyering@ascend.com>
33052
33053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
33054         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
33055         due to missing strdup (against sh-utils-2.0).
33056
33057 1999-08-29  Jim Meyering  <meyering@ascend.com>
33058
33059         * m4/jm-macros.m4: Require jm_BISON.
33060         * m4/bison.m4: New file.
33061
33062 1999-08-17  Paul Eggert  <eggert@twinsun.com>
33063
33064         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
33065         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
33066
33067 1999-08-05  Jim Meyering  <meyering@ascend.com>
33068
33069         * m4/getline.m4: Rename test file from conftestdata to conftest.data
33070         to avoid conflicts with `conftest' on 8+3 filesystems.
33071         Suggestion from Eli Zaretskii.
33072
33073 1999-08-04  Jim Meyering  <meyering@ascend.com>
33074
33075         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
33076         fileutils and sh-utils (textutils's getline test was inadequate).
33077         (AM_FUNC_GETLINE): Run this test.
33078         (AC_CHECK_FUNCS): Check for getdelim.
33079         Reported by Bob Proulx.
33080
33081 1999-08-02  Jim Meyering  <meyering@ascend.com>
33082
33083         * m4/jm-macros.m4: Add a comment.
33084
33085 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33086
33087         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
33088         <inttypes.h> defines strtoumax as a macro (and not as a
33089         function).
33090
33091 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33092
33093         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
33094         that we can shift, multiply and divide unsigned long long
33095         values; Ultrix cc can't do it.
33096
33097 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33098
33099         * m4/mktime.m4: New file, which is a preview of what should appear
33100         in the next public autoconf release.
33101
33102 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33103
33104         * m4/lfs.m4: Remove this file.
33105         * m4/largefile.m4: New file.  It contains the old contents of
33106         lfs.m4, except that all names with prefix AC_LFS have been
33107         changed to use the prefix AC_SYS_LARGEFILE instead, to be
33108         compatible with future autoconf versions.  Also, some minor m4
33109         quoting problems have been fixed.
33110
33111 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33112
33113         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
33114         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
33115         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
33116         and simplify the shell code.
33117
33118 1999-08-01  Jim Meyering  <meyering@ascend.com>
33119
33120         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
33121         m4.
33122
33123 1999-07-20  Jim Meyering  <meyering@ascend.com>
33124
33125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
33126
33127 1999-07-15  Jim Meyering  <meyering@ascend.com>
33128
33129         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
33130
33131 1999-05-22  Jim Meyering  <meyering@ascend.com>
33132
33133         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
33134
33135 1999-05-20  Jim Meyering  <meyering@ascend.com>
33136
33137         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
33138         Add a colon after each `then' in case $4 is empty.
33139
33140 1999-05-16  Jim Meyering  <meyering@ascend.com>
33141
33142         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
33143
33144 1999-05-10  Jim Meyering  <meyering@ascend.com>
33145
33146         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
33147
33148         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
33149         AC_FUNC_MKTIME.
33150
33151 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
33152
33153         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
33154
33155 1999-05-04  Paul Eggert  <eggert@twinsun.com>
33156
33157         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
33158         not CPPFLAGS, so that linking works correctly in IRIX.
33159
33160 1999-04-30  Paul Eggert  <eggert@twinsun.com>
33161
33162         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
33163
33164 1999-04-20  Paul Eggert  <eggert@twinsun.com>
33165
33166         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
33167         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
33168         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
33169         jm_AC_TYPE_UNSIGNED_LONG_LONG.
33170         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
33171
33172         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
33173
33174 1999-04-20  Jim Meyering  <meyering@ascend.com>
33175
33176         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
33177         AC_REPLACE xstroull if necessary.  From Paul Eggert.
33178         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
33179
33180 1999-04-18  Jim Meyering  <meyering@ascend.com>
33181
33182         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
33183         * m4/jm-macros.m4: Use it.
33184
33185 1999-04-06  Jim Meyering  <meyering@ascend.com>
33186
33187         * m4/strftime.m4: Remove test for %f.
33188
33189 1999-03-29  Jim Meyering  <meyering@ascend.com>
33190
33191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
33192         superset of the AC_TYPE_* checks in the textutils, fileutils,
33193         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
33194         AC_TYPE_PID_T.
33195
33196 1999-03-28  Jim Meyering  <meyering@ascend.com>
33197
33198         * m4/jm-macros.m4: Define GNU_PACKAGE here.
33199         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
33200         replaced e.g., in the *.sh files of the sh-utils.
33201
33202 1999-03-20  Jim Meyering  <meyering@ascend.com>
33203
33204         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
33205         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
33206         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
33207
33208 1999-03-19  Jim Meyering  <meyering@ascend.com>
33209
33210         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
33211
33212 1999-03-12  Jim Meyering  <meyering@ascend.com>
33213
33214         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
33215
33216 1999-03-07  Jim Meyering  <meyering@ascend.com>
33217
33218         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
33219         declared.
33220
33221 1999-02-17  Jim Meyering  <meyering@ascend.com>
33222
33223         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
33224         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
33225
33226 1999-02-07  Jim Meyering  <meyering@ascend.com>
33227
33228         * m4/group-member.m4: New file -- extracted from sh-utils'
33229         configure.in.
33230
33231         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
33232         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
33233
33234 1999-02-06  Jim Meyering  <meyering@ascend.com>
33235
33236         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
33237         * m4/fnmatch.m4: Likewise.
33238         * m4/getgroups.m4: Likewise.
33239         * m4/lstat.m4: Likewise.
33240         * m4/malloc.m4: Likewise.
33241         * m4/putenv.m4: Likewise.
33242         * m4/realloc.m4: Likewise.
33243         * m4/regex.m4: Likewise.
33244         * m4/stat.m4: Likewise.
33245         * m4/strftime.m4: Likewise.
33246         Suggestion from Alain Magloire.
33247
33248         * m4/chown.m4: Use `.$ac_objext', not `.o'.
33249         * m4/fnmatch.m4: Likewise.
33250         * m4/getgroups.m4: Likewise.
33251         * m4/getline.m4: Likewise.
33252         * m4/lstat.m4: Likewise.
33253         * m4/malloc.m4: Likewise.
33254         * m4/memcmp.m4: Likewise.
33255         * m4/putenv.m4: Likewise.
33256         * m4/realloc.m4: Likewise.
33257         * m4/regex.m4: Likewise.
33258         * m4/stat.m4: Likewise.
33259         * m4/strftime.m4: Likewise.
33260         Suggestion from Alain Magloire.
33261
33262         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
33263         an argument.
33264
33265         * m4/regex.m4: Add a run-time Test for proper operation of
33266         re_compile_pattern.
33267
33268 1999-01-31  Jim Meyering  <meyering@ascend.com>
33269
33270         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
33271
33272 1999-01-30  Jim Meyering  <meyering@ascend.com>
33273
33274         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
33275
33276         * m4/jm-mktime.m4: Make this a wrapper around the official
33277         AM_FUNC_MKTIME rather than my private copy, now that the official one
33278         is up to date.
33279         * m4/mktime.m4: Remove file.
33280
33281         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
33282         * m4/uptime.m4: Likewise.
33283         * m4/uintmax_t.m4: Likewise.
33284
33285 1999-01-28  Jim Meyering  <meyering@ascend.com>
33286
33287         * m4/jm-macros.m4: Use jm_AFS.
33288         * m4/afs.m4: New file (from fileutils' configure.in).
33289
33290         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
33291         * m4/chown.m4: Likewise.
33292         * m4/d-ino.m4: Likewise.
33293         * m4/d-type.m4: Likewise.
33294         * m4/fnmatch.m4: Likewise.
33295         * m4/getgroups.m4: Likewise.
33296         * m4/gettext.m4: Likewise.
33297         * m4/jm-mktime.m4: Likewise.
33298         * m4/jm-winsz2.m4: Likewise.
33299         * m4/lcmessage.m4: Likewise.
33300         * m4/ls-mntd-fs.m4: Likewise.
33301         * m4/malloc.m4: Likewise.
33302         * m4/memcmp.m4: Likewise.
33303         * m4/putenv.m4: Likewise.
33304         * m4/realloc.m4: Likewise.
33305         * m4/st_mtim.m4: Likewise.
33306         * m4/strftime.m4: Likewise.
33307
33308 1999-01-16  Jim Meyering  <meyering@ascend.com>
33309
33310         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
33311         (ARGMATCH_DIE_DECL): Define.
33312
33313 1999-01-12  Jim Meyering  <meyering@ascend.com>
33314
33315         * m4/Makefile.am.in: Rewrite to avoid using fmt.
33316         Reported by Lars Hecking.
33317
33318 1999-01-10  Jim Meyering  <meyering@ascend.com>
33319
33320         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
33321         gross kludge.
33322         * m4/inttypes_h.m4: Likewise.
33323         * m4/lstat.m4: Likewise.
33324         * m4/malloc.m4: Likewise.
33325         * m4/readdir.m4: Likewise.
33326         * m4/realloc.m4: Likewise.
33327         * m4/st_dm_mode.m4: Likewise.
33328         * m4/stat.m4: Likewise.
33329         * m4/utimbuf.m4: Likewise.
33330         * m4/utimes.m4: Likewise.
33331
33332         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
33333         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
33334         comments in config.h.in are meaningful.
33335
33336         * m4/jm-macros.m4: Require autoconf-2.13 here.
33337
33338         * m4/regex.m4: By default, don't use the included regex.c on systems
33339         with glibc 2.  Suggestion from Uli Drepper.
33340
33341 1999-01-02  Jim Meyering  <meyering@ascend.com>
33342
33343         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
33344
33345 1998-12-18  Jim Meyering  <meyering@ascend.com>
33346
33347         * m4/Makefile.am.in (Makefile.am): Simplify rule.
33348         Based on a suggestion from Lars Hecking.
33349
33350 1998-11-16  Paul Eggert  <eggert@twinsun.com>
33351
33352         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
33353
33354 1998-11-16  Jim Meyering  <meyering@ascend.com>
33355
33356         * m4/lfs.m4: Double-quote the `uname...` expression.
33357
33358 1998-11-14  Jim Meyering  <meyering@ascend.com>
33359
33360         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
33361         * m4/stat.m4: Likewise.
33362
33363 1998-11-03  Jim Meyering  <meyering@ascend.com>
33364
33365         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
33366         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
33367
33368 1998-10-18  Jim Meyering  <meyering@ascend.com>
33369
33370         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
33371
33372 1998-10-17  Jim Meyering  <meyering@ascend.com>
33373
33374         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
33375         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
33376         calls for those previously hard-coded headers.  Instead, take a new
33377         parameter.
33378         (jm_CHECK_DECLARATIONS): Reflect interface change.
33379         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
33380         (jm_CHECK_DECL_LOCALTIME_R): New macro.
33381
33382         * m4/mktime.m4: Test for spring-forward gap before long-running test.
33383
33384 1998-10-14  Jim Meyering  <meyering@ascend.com>
33385
33386         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
33387         instead of "TZ=America/Vancouver".  From Paul Eggert.
33388
33389 1998-10-11  Jim Meyering  <meyering@ascend.com>
33390
33391         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
33392         This adds a test for a recently added compatibility fix for mktime.c.
33393         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
33394
33395 1998-09-27  Jim Meyering  <meyering@ascend.com>
33396
33397         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
33398
33399         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
33400         ../configure.in, including a change from Gordon Matzigkeit to allow
33401         cross-compiling for the Hurd.
33402
33403         * m4/glibc.m4: New file/macro to test for the GNU C Library
33404         versions 1 and 2.  From Gordon Matzigkeit.
33405         Indent.
33406
33407 1998-09-21  Jim Meyering  <meyering@ascend.com>
33408
33409         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
33410
33411 1998-08-18  Paul Eggert  <eggert@twinsun.com>
33412
33413         Port nanosecond-resolution times to UnixWare 2.1.2 and
33414         pedantic Solaris 2.6.
33415
33416         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
33417         AC_STRUCT_ST_MTIM.
33418         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
33419         Generate name of ns member, instead of just 1 or undef.
33420         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
33421
33422 1998-08-15  Jim Meyering  <meyering@ascend.com>
33423
33424         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
33425         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
33426         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
33427         instead of jm_TYPE_SSIZE_T.
33428
33429 1998-08-12  Jim Meyering  <meyering@ascend.com>
33430
33431         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
33432
33433 1998-08-02  Jim Meyering  <meyering@ascend.com>
33434
33435         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
33436         in acconfig.h manually.
33437
33438 1998-07-31  Paul Eggert  <eggert@twinsun.com>
33439
33440         * m4/st_mtim.m4: New file.
33441
33442 1998-07-28  Jim Meyering  <meyering@ascend.com>
33443
33444         * m4/utimes.m4: Undef stat.
33445
33446 1998-07-25  Jim Meyering  <meyering@ascend.com>
33447
33448         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
33449         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
33450
33451 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
33452
33453         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
33454         uid and gid actually remain unchanged.
33455
33456 1998-07-07  Jim Meyering  <meyering@ascend.com>
33457
33458         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
33459
33460 1998-07-04  Jim Meyering  <meyering@ascend.com>
33461
33462         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
33463         to prove that this macro can be used in packages without regex.c.
33464
33465 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
33466
33467         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
33468         is to be used.
33469
33470 1998-07-03  Jim Meyering  <meyering@ascend.com>
33471
33472         * m4/gettext.m4: Add -lintl if it's found to be necessary.
33473
33474         * m4/gettext.m4: New file -- from gettext-0.10.35.
33475         * m4/lcmessage.m4: Likewise.
33476         * m4/progtest.m4: Likewise.
33477
33478         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
33479         * m4/jm-macros.m4: Require the new macro.
33480
33481 1998-06-29  Jim Meyering  <meyering@ascend.com>
33482
33483         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
33484         for the definition of NGROUPS (used in a system header included
33485         by sys/mount.h).
33486
33487 1998-06-28  Jim Meyering  <meyering@ascend.com>
33488
33489         * m4/ls-mntd-fs.m4: New file.
33490         * m4/fstypename.m4: New file.
33491
33492         * m4/jm-macros.m4: Require the new macro.
33493         * m4/jm-glibc-io.m4: New file.
33494
33495 1998-05-19  Jim Meyering  <meyering@ascend.com>
33496
33497         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
33498         * m4/lchown.m4: New file.
33499
33500         * m4/Makefile.am.in: New file.
33501         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
33502
33503 1998-05-14  Jim Meyering  <meyering@ascend.com>
33504
33505         * m4/Makefile.am (EXTRA_DIST): Add them.
33506         * m4/jm-macros.m4: New file.
33507         * m4/utimbuf.m4: New file.
33508
33509 1998-05-12  Jim Meyering  <meyering@ascend.com>
33510
33511         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
33512
33513 1998-05-11  Jim Meyering  <meyering@ascend.com>
33514
33515         * m4/isc-posix.m4: New file.
33516
33517 1998-05-10  Jim Meyering  <meyering@ascend.com>
33518
33519         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
33520
33521 1998-05-09  Jim Meyering  <meyering@ascend.com>
33522
33523         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
33524         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
33525         with automake.
33526
33527         * m4/ssize_t.m4: New file.
33528         * m4/mktime.m4: Remove file -- the new automake has this now.
33529
33530 1998-04-26  Jim Meyering  <meyering@ascend.com>
33531
33532         * m4/assert.m4: New file.
33533         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
33534
33535 1998-04-05  Jim Meyering  <meyering@ascend.com>
33536
33537         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
33538         (jm_PREREQ): Use it here.
33539
33540 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
33541
33542         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
33543         in acconfig.h.
33544
33545 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
33546
33547         * m4/prereq.m4: New file.
33548         * m4/error.m4: New file.
33549         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
33550
33551 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
33552
33553         * m4/getline.m4: Don't set am_cv_func_working_getline before the
33554         cache-check for the same variable -- that defeated the purpose of
33555         the test; the test program was never run.  This was a problem only
33556         on systems with losing getline functions -- HP-UX 10.20 is one.
33557         Reported by Bjorn Helgaas.
33558
33559 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
33560
33561         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
33562
33563 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
33564
33565         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
33566
33567         * m4/const.m4: New file.  Use an initializer in this declaration
33568         typedef int charset[2]; const charset x;
33569         Reported by Bob Glickstein.
33570
33571 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
33572
33573         * m4/chown.m4: Fix reversed types on -1 args to chown.
33574         From Kaveh Ghazi.
33575
33576 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
33577
33578         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
33579         Add lseek and memchr.
33580
33581         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
33582         T.E.Dickey <dickey@clark.net> said that some older preprocessors
33583         have a 20-character limit on names.
33584
33585 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
33586
33587         * m4/inttypes_h.m4: New file.
33588         * m4/uintmax_t.m4: New file.
33589         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
33590
33591 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
33592   Free Software Foundation, Inc.
33593 Copying and distribution of this file, with or without modification,
33594 are permitted provided the copyright notice and this notice are preserved.