2007-01-18 Bruno Haible <bruno@clisp.org>
[gnulib.git] / ChangeLog
1 2007-01-18  Bruno Haible  <bruno@clisp.org>
2
3         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
4         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
5
6         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
7         gettimeofday.
8
9         * tests/test-gettimeofday.c: Include <time.h>.
10         (dummy): Remove variable.
11
12         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
13         gl_HEADER_SYS_TIME_H.
14         (gl_HEADER_SYS_TIME_H): New macro.
15
16         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
20         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
21         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
22         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
23         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
25         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
26         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27
28         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
29         last change; it caused a compilation error when cross-compiling to
30         Cygwin.
31
32 2007-01-18  Jim Meyering  <jim@meyering.net>
33
34         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
35         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36         than the race-prone "test -d sys || mkdir sys".
37         (configure.ac): Use AC_PROG_MKDIR_P.
38         * modules/sys_select: Likewise.
39         * modules/sys_socket: Likewise.
40         * modules/sys_time: Likewise.
41
42 2007-01-18  Eric Blake  <ebb9@byu.net>
43
44         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
45         replace gettimeofday.
46         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47         name, to avoid infinite recursion.
48
49 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
50
51         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52         module sys_time.
53         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54         assume timespec.h defines struct timeval.
55         * lib/settime.c: Likewise.
56         * lib/utimens.c: Likewise.
57         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58         since we now assume the gettimeofday module.
59         * lib/tempname.c (__gen_tempname): Likewise.
60         * lib/gettimeofday.h: Remove.
61         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63         Include <time.h>, for 'time()'.
64         (localtime_buffer_addr): Also use this workaround if
65         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66         to simplify the uses.  All uses changed.
67         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
68         that #undef is inside {}, and 'const' follows type name consistently.
69         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70         (gettimeofday): Do not use the maximum possible value for
71         tv->tv_usec, since that might break usages other than ls.c.
72         Instead, we'll leave ls.c alone.  This undoes today's patch
73         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74         we've never observed the problem but might as well keep the
75         canary.
76         * lib/nanosleep.c: Include timespec.h first, for interface check.
77         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
78         now assume the sys_time module.
79         * lib/tempname.c: Likewise.
80         * lib/timespec.h: Likewise.
81         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
82         needed.
83         * lib/strftime.c: Likewise.
84         * lib/timespec.h: Likewise.
85         * lib/posixtm.c: Include posixtm.h first, for interface check.
86         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
87         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
88         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
89         * lib/sys_time_.h: New file.
90         * lib/timespec.h (struct timespec): Use long int, not long.
91         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93         Remove obsolescent call to AC_HEADER_TIME.
94         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
95         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
96         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
97         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
98         Likewise.
99         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
100         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
102         into the sys_time module.  Check for gettimeofday just once.
103         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
104         for gettimeofday signature to just check the signature.  Merely
105         compile it, since linking doesn't test signature.  Improve test for
106         whether gettimeofday.o is actually needed.
107         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
109         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
110         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
111         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
112         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
113         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
114         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
115         than worrying about sys/time.h.
116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
117         Don't bother worrying about TIME_WITH_SYS_TIME.
118         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
119         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
120         * m4/sys_time_h.m4: New file.
121         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
122         Don't include sys/time.h.  Return from main rather than exiting.
123         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
124         all uses changed.
125         * modules/gethrxtime (Depends-on): Add sys_time.
126         * modules/gettime (Depends-on): Likewise.
127         * modules/gettimeofday (Depends-on): Likewise.
128         * modules/nanosleep (Depends-on): Likewise.
129         * modules/settime (Depends-on): Likewise.
130         * modules/tempname (Depends-on): Likewise.
131         * modules/utimens (Depends-on): Likewise.
132         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
133         (Include:) Change back to <sys/time.h>.
134         (Maintainer:) Add self.
135         * modules/sys_time: New file.
136         * modules/tempname (Depends-on): Add gettimeofday.
137         * tests/test-gettimeofday.c: Include <sys/time.h>
138         rather than gettimeofday.h.
139
140 2007-01-17  Bruno Haible  <bruno@clisp.org>
141
142         * gnulib-tool (func_get_license): Revert last patch. Instead, let
143         the license default to GPL.
144         (func_create_testdir): Don't complain if a module is LGPL and its
145         tests module depends on GPLed modules.
146
147 2007-01-17  Bruno Haible  <bruno@clisp.org>
148
149         * lib/gettimeofday.c (gettimeofday): Add code for the case
150         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
151         maximum possible value for tv->tv_usec, rather than the minimum one.
152
153 2005-10-08  Martin Lambers  <marlam@marlam.de>
154 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
155 2007-01-16  Bruno Haible  <bruno@clisp.org>
156
157         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
158         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
159         gl_FUNC_GETTIMEOFDAY.
160         (Include): Add gettimeofday.h.
161         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
162         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
163         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
164         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
165         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
166         * lib/gettimeofday.h: New file.
167         * lib/gettimeofday.c: Include <sys/timeb.h>.
168         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
169         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
170         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
171         fall back on time().
172
173         * tests/test-gettimeofday.c: New file.
174         * modules/gettimeofday-tests: New file.
175
176 2007-01-16  Eric Blake  <ebb9@byu.net>
177
178         * modules/fnmatch (Depends-on): Depend on wchar.
179         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
180         * m4/fnmatch.m4: Likewise.
181         * modules/mbchar (Makefile.am): Assume <wchar.h>.
182         * m4/mbchar.m4: Likewise.
183         * modules/mbswidth (Depends-on): Depend on wchar.
184         * lib/mbswidth.c: Assume <wchar.h>.
185         * m4/mbswidth.m4: Likewise.
186         * modules/quotearg (Depends-on): Depend on wchar.
187         * lib/quotearg.c: Assume <wchar.h>.
188         * m4/quotearg.m4: Likewise.
189         * modules/regex (Depends-on): Depend on wchar.
190         * lib/regex_internal.h: Assume <wchar.h>.
191         * m4/regex.m4: Likewise.
192         * modules/stdint (Depends-on): Depend on wchar.
193         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
194         * m4/stdint.m4: Likewise.
195         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
196         * modules/strftime (Depends-on): Depend on wchar.
197         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
198         * modules/strtol (Depends-on): Depend on wchar.
199         * lib/strtol.c: Assume <wchar.h>.
200         * modules/wcwidth (Depends-on): Depend on wchar.
201         * lib/wcwidth.h: Assume <wchar.h>.
202         * m4/wcwidth.m4: Likewise.
203
204 2007-01-16  Bruno Haible  <bruno@clisp.org>
205
206         * modules/csharpexec-script: New, created from...
207         * modules/csharpexec: ... this.
208
209 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
210
211         * modules/javaexec-script: New, created from...
212         * modules/javaexec: ... this.
213
214 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
215
216         * modules/poll (Dependencies): Add sys_select.
217
218 2007-01-15  Jim Meyering  <jim@meyering.net>
219
220         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
221         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
222         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
223         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
224
225 2007-01-15  Bruno Haible  <bruno@clisp.org>
226
227         * modules/striconveh: New file.
228         * lib/striconveh.h: New file.
229         * lib/striconveh.c: New file.
230         * MODULES.html.sh (Internationalization functions): Add striconveh.
231
232         * modules/striconveh-tests: New file.
233         * tests/test-striconveh.c: New file.
234
235 2007-01-15  Bruno Haible  <bruno@clisp.org>
236
237         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
238         not from GNU libiconv or GNU libc.
239
240 2007-01-15  Bruno Haible  <bruno@clisp.org>
241
242         * doc/gnulib-intro.texi (Copyright): Explain the different license
243         terms for module descriptions, autoconf macros, tests, documentation.
244
245 2007-01-14  Bruno Haible  <bruno@clisp.org>
246
247         * modules/striconv-tests: New file.
248         * tests/test-striconv.c: New file.
249
250 2007-01-14  Bruno Haible  <bruno@clisp.org>
251
252         * modules/iconv-tests: New file.
253         * tests/test-iconv.c: New file.
254
255 2007-01-14  Bruno Haible  <bruno@clisp.org>
256
257         * gnulib-tool (func_get_license): For test modules, use the license of
258         the main module.
259
260 2007-01-14  Bruno Haible  <bruno@clisp.org>
261
262         * modules/iconv (Include): Clarify that <iconv.h> can only be included
263         if iconv is found to exist.
264
265 2007-01-14  Bruno Haible  <bruno@clisp.org>
266
267         * modules/c-ctype-tests: New file.
268         * tests/test-c-ctype.c: New file.
269
270 2007-01-14  Bruno Haible  <bruno@clisp.org>
271
272         * modules/binary-io-tests: New file.
273         * tests/test-binary-io.sh: New file.
274         * tests/test-binary-io.c: New file.
275
276 2007-01-14  Bruno Haible  <bruno@clisp.org>
277
278         * modules/array-oset-tests: New file.
279         * tests/test-array_oset.c: New file.
280
281 2007-01-14  Bruno Haible  <bruno@clisp.org>
282
283         * modules/array-list-tests: New file.
284         * tests/test-array_list.c: New file.
285
286 2007-01-14  Bruno Haible  <bruno@clisp.org>
287
288         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
289         and make.
290         Reported by Simon Josefsson in
291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
292
293 2007-01-14  Bruno Haible  <bruno@clisp.org>
294
295         * modules/allocsa-tests: New file.
296         * tests/test-allocsa.c: New file.
297
298 2007-01-14  Bruno Haible  <bruno@clisp.org>
299
300         * modules/fchdir (Depends-on): Add absolute-header.
301         * modules/unistd (Depends-on): Likewise.
302
303 2006-12-30  Bruno Haible  <bruno@clisp.org>
304
305         * modules/fchdir: New file.
306         * modules/unistd (Files): Add lib/unistd_.h.
307         (Makefile.am): Generate unistd.h from unistd_.h.
308         * lib/fchdir.c: New file.
309         * lib/dirent_.h: New file.
310         * lib/unistd_.h: New file.
311         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
312         * m4/fchdir.m4: New file.
313         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
314         (gl_HEADER_UNISTD): Invoke it.
315         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
316         function.
317         * lib/backupfile.c (opendir, closedir): Undefine.
318         * lib/chown.c (open, close): Undefine.
319         * lib/clean-temp.c (open, close): Undefine.
320         * lib/copy-file.c (open, close): Undefine.
321         * lib/execute.c (open, close): Undefine.
322         * lib/fsusage.c (open, close): Undefine.
323         * lib/gc-gnulib.c (open, close): Undefine.
324         * lib/getcwd.c (opendir, closedir): Undefine.
325         * lib/glob.c (opendir, closedir): Undefine.
326         * lib/javacomp.c (open, close): Undefine.
327         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
328         * lib/openat-proc.c (open, close): Undefine.
329         * lib/pagealign_alloc.c (open, close): Undefine.
330         * lib/pipe.c (open, close): Undefine.
331         * lib/progreloc.c (open, close): Undefine.
332         * lib/savedir.c (opendir, closedir): Undefine.
333         * lib/utime.c (open, close): Undefine.
334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
335
336 2007-01-10  Bruno Haible  <bruno@clisp.org>
337
338         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
339
340 2007-01-12  Eric Blake  <ebb9@byu.net>
341
342         Provide a robust <wchar.h>.  Further simplifications are now
343         possible in other modules, but not included here.
344         * modules/wchar: New module.
345         * m4/wchar.m4: New file.
346         * lib/wchar_.h: Likewise.
347         * modules/mbchar (Depends-on): Depend on wchar, as the first use
348         of the new module.
349         * MODULES.html.sh (Extended multibyte and wide character utilities):
350         New section.
351
352 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
353
354         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
355         to a reasonable default for memory allocation.
356         (xreadlink): Don't allocate a huge buffer, to work around a buggy
357         file system that reports garbage st_size values for symlinks.
358         Problem reported by Liyang Hu.
359
360 2007-01-11  Simon Josefsson  <simon@josefsson.org>
361
362         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
363         Emacs .#* auto-save files).
364
365 2007-01-11  Bruno Haible  <bruno@clisp.org>
366
367         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
368         directory.
369
370 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
371
372         Use @...@ consistently in lib/wctype_.h.
373         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
374         on it being set to 1 or 0.
375         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
376         go back to AC_SUBSTing it.
377         * modules/wctype (Makefile.am): Undo previous change.
378
379 2007-01-10  Eric Blake  <ebb9@byu.net>
380
381         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
382         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
383         * modules/wctype (Makefile.am): Likewise.
384         Reported by Chris McGuire.
385
386 2007-01-10  Jim Meyering  <jim@meyering.net>
387
388         fts.c: a small readability/maintainability improvement
389         * lib/fts.c (fts_read): Make this code slightly more readable and
390         maintainable by hoisting the "sp->fts_cur = p" assignments to
391         immediately follow the statements that set P.  Derived from
392         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
393
394 2007-01-10  Eric Blake  <ebb9@byu.net>
395
396         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
397         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
399         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
400         Reported by Chris McGuire.
401
402 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
403
404         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
405         in sed script.
406
407 2007-01-09  Bruno Haible  <bruno@clisp.org>
408
409         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
410         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
411         variables.
412         (func_module): Use them.
413
414 2007-01-09  Bruno Haible  <bruno@clisp.org>
415
416         * modules/unistr/base: New file.
417         * lib/unistr.h: New file.
418
419         * modules/unistr/u8-to-u16: New file.
420         * lib/unistr/u8-to-u16.c: New file.
421
422         * modules/unistr/u8-to-u32: New file.
423         * lib/unistr/u8-to-u32.c: New file.
424
425         * modules/unistr/u16-to-u8: New file.
426         * lib/unistr/u16-to-u8.c: New file.
427
428         * modules/unistr/u16-to-u32: New file.
429         * lib/unistr/u16-to-u32.c: New file.
430
431         * modules/unistr/u32-to-u8: New file.
432         * lib/unistr/u32-to-u8.c: New file.
433
434         * modules/unistr/u32-to-u16: New file.
435         * lib/unistr/u32-to-u16.c: New file.
436
437         * modules/unistr/u8-check: New file.
438         * modules/unistr/u16-check: New file.
439         * modules/unistr/u32-check: New file.
440         * lib/unistr/u8-check.c: New file.
441         * lib/unistr/u16-check.c: New file.
442         * lib/unistr/u32-check.c: New file.
443
444         * modules/unistr/u8-chr: New file.
445         * modules/unistr/u16-chr: New file.
446         * modules/unistr/u32-chr: New file.
447         * lib/unistr/u8-chr.c: New file.
448         * lib/unistr/u16-chr.c: New file.
449         * lib/unistr/u32-chr.c: New file.
450
451         * modules/unistr/u8-cmp: New file.
452         * modules/unistr/u16-cmp: New file.
453         * modules/unistr/u32-cmp: New file.
454         * lib/unistr/u8-cmp.c: New file.
455         * lib/unistr/u16-cmp.c: New file.
456         * lib/unistr/u32-cmp.c: New file.
457
458         * modules/unistr/u8-cpy: New file.
459         * modules/unistr/u16-cpy: New file.
460         * modules/unistr/u32-cpy: New file.
461         * lib/unistr/u8-cpy.c: New file.
462         * lib/unistr/u16-cpy.c: New file.
463         * lib/unistr/u32-cpy.c: New file.
464         * lib/unistr/u-cpy.h: New file.
465
466         * modules/unistr/u8-cpy-alloc: New file.
467         * modules/unistr/u16-cpy-alloc: New file.
468         * modules/unistr/u32-cpy-alloc: New file.
469         * lib/unistr/u8-cpy-alloc.c: New file.
470         * lib/unistr/u16-cpy-alloc.c: New file.
471         * lib/unistr/u32-cpy-alloc.c: New file.
472         * lib/unistr/u-cpy-alloc.h: New file.
473
474         * modules/unistr/u8-endswith: New file.
475         * modules/unistr/u16-endswith: New file.
476         * modules/unistr/u32-endswith: New file.
477         * lib/unistr/u8-endswith.c: New file.
478         * lib/unistr/u16-endswith.c: New file.
479         * lib/unistr/u32-endswith.c: New file.
480         * lib/unistr/u-endswith.h: New file.
481
482         * modules/unistr/u8-mblen: New file.
483         * modules/unistr/u16-mblen: New file.
484         * modules/unistr/u32-mblen: New file.
485         * lib/unistr/u8-mblen.c: New file.
486         * lib/unistr/u16-mblen.c: New file.
487         * lib/unistr/u32-mblen.c: New file.
488
489         * modules/unistr/u8-mbtouc: New file.
490         * modules/unistr/u16-mbtouc: New file.
491         * modules/unistr/u32-mbtouc: New file.
492         * lib/unistr/u8-mbtouc.c: New file.
493         * lib/unistr/u16-mbtouc.c: New file.
494         * lib/unistr/u32-mbtouc.c: New file.
495
496         * modules/unistr/u8-mbtouc-safe: New file.
497         * modules/unistr/u16-mbtouc-safe: New file.
498         * modules/unistr/u32-mbtouc-safe: New file.
499         * lib/unistr/u8-mbtouc-safe.c: New file.
500         * lib/unistr/u16-mbtouc-safe.c: New file.
501         * lib/unistr/u32-mbtouc-safe.c: New file.
502
503         * modules/unistr/u8-move: New file.
504         * modules/unistr/u16-move: New file.
505         * modules/unistr/u32-move: New file.
506         * lib/unistr/u8-move.c: New file.
507         * lib/unistr/u16-move.c: New file.
508         * lib/unistr/u32-move.c: New file.
509         * lib/unistr/u-move.h: New file.
510
511         * modules/unistr/u8-next: New file.
512         * modules/unistr/u16-next: New file.
513         * modules/unistr/u32-next: New file.
514         * lib/unistr/u8-next.c: New file.
515         * lib/unistr/u16-next.c: New file.
516         * lib/unistr/u32-next.c: New file.
517
518         * modules/unistr/u8-prev: New file.
519         * modules/unistr/u16-prev: New file.
520         * modules/unistr/u32-prev: New file.
521         * lib/unistr/u8-prev.c: New file.
522         * lib/unistr/u16-prev.c: New file.
523         * lib/unistr/u32-prev.c: New file.
524
525         * modules/unistr/u8-set: New file.
526         * modules/unistr/u16-set: New file.
527         * modules/unistr/u32-set: New file.
528         * lib/unistr/u8-set.c: New file.
529         * lib/unistr/u16-set.c: New file.
530         * lib/unistr/u32-set.c: New file.
531         * lib/unistr/u-set.h: New file.
532
533         * modules/unistr/u8-startswith: New file.
534         * modules/unistr/u16-startswith: New file.
535         * modules/unistr/u32-startswith: New file.
536         * lib/unistr/u8-startswith.c: New file.
537         * lib/unistr/u16-startswith.c: New file.
538         * lib/unistr/u32-startswith.c: New file.
539         * lib/unistr/u-startswith.h: New file.
540
541         * modules/unistr/u8-stpcpy: New file.
542         * modules/unistr/u16-stpcpy: New file.
543         * modules/unistr/u32-stpcpy: New file.
544         * lib/unistr/u8-stpcpy.c: New file.
545         * lib/unistr/u16-stpcpy.c: New file.
546         * lib/unistr/u32-stpcpy.c: New file.
547         * lib/unistr/u-stpcpy.h: New file.
548
549         * modules/unistr/u8-stpncpy: New file.
550         * modules/unistr/u16-stpncpy: New file.
551         * modules/unistr/u32-stpncpy: New file.
552         * lib/unistr/u8-stpncpy.c: New file.
553         * lib/unistr/u16-stpncpy.c: New file.
554         * lib/unistr/u32-stpncpy.c: New file.
555         * lib/unistr/u-stpncpy.h: New file.
556
557         * modules/unistr/u8-strcat: New file.
558         * modules/unistr/u16-strcat: New file.
559         * modules/unistr/u32-strcat: New file.
560         * lib/unistr/u8-strcat.c: New file.
561         * lib/unistr/u16-strcat.c: New file.
562         * lib/unistr/u32-strcat.c: New file.
563         * lib/unistr/u-strcat.h: New file.
564
565         * modules/unistr/u8-strchr: New file.
566         * modules/unistr/u16-strchr: New file.
567         * modules/unistr/u32-strchr: New file.
568         * lib/unistr/u8-strchr.c: New file.
569         * lib/unistr/u16-strchr.c: New file.
570         * lib/unistr/u32-strchr.c: New file.
571
572         * modules/unistr/u8-strcmp: New file.
573         * modules/unistr/u16-strcmp: New file.
574         * modules/unistr/u32-strcmp: New file.
575         * lib/unistr/u8-strcmp.c: New file.
576         * lib/unistr/u16-strcmp.c: New file.
577         * lib/unistr/u32-strcmp.c: New file.
578
579         * modules/unistr/u8-strcpy: New file.
580         * modules/unistr/u16-strcpy: New file.
581         * modules/unistr/u32-strcpy: New file.
582         * lib/unistr/u8-strcpy.c: New file.
583         * lib/unistr/u16-strcpy.c: New file.
584         * lib/unistr/u32-strcpy.c: New file.
585         * lib/unistr/u-strcpy.h: New file.
586
587         * modules/unistr/u8-strcspn: New file.
588         * modules/unistr/u16-strcspn: New file.
589         * modules/unistr/u32-strcspn: New file.
590         * lib/unistr/u8-strcspn.c: New file.
591         * lib/unistr/u16-strcspn.c: New file.
592         * lib/unistr/u32-strcspn.c: New file.
593         * lib/unistr/u-strcspn.h: New file.
594
595         * modules/unistr/u8-strdup: New file.
596         * modules/unistr/u16-strdup: New file.
597         * modules/unistr/u32-strdup: New file.
598         * lib/unistr/u8-strdup.c: New file.
599         * lib/unistr/u16-strdup.c: New file.
600         * lib/unistr/u32-strdup.c: New file.
601         * lib/unistr/u-strdup.h: New file.
602
603         * modules/unistr/u8-strlen: New file.
604         * modules/unistr/u16-strlen: New file.
605         * modules/unistr/u32-strlen: New file.
606         * lib/unistr/u8-strlen.c: New file.
607         * lib/unistr/u16-strlen.c: New file.
608         * lib/unistr/u32-strlen.c: New file.
609         * lib/unistr/u-strlen.h: New file.
610
611         * modules/unistr/u8-strmblen: New file.
612         * modules/unistr/u16-strmblen: New file.
613         * modules/unistr/u32-strmblen: New file.
614         * lib/unistr/u8-strmblen.c: New file.
615         * lib/unistr/u16-strmblen.c: New file.
616         * lib/unistr/u32-strmblen.c: New file.
617
618         * modules/unistr/u8-strmbtouc: New file.
619         * modules/unistr/u16-strmbtouc: New file.
620         * modules/unistr/u32-strmbtouc: New file.
621         * lib/unistr/u8-strmbtouc.c: New file.
622         * lib/unistr/u16-strmbtouc.c: New file.
623         * lib/unistr/u32-strmbtouc.c: New file.
624
625         * modules/unistr/u8-strncat: New file.
626         * modules/unistr/u16-strncat: New file.
627         * modules/unistr/u32-strncat: New file.
628         * lib/unistr/u8-strncat.c: New file.
629         * lib/unistr/u16-strncat.c: New file.
630         * lib/unistr/u32-strncat.c: New file.
631         * lib/unistr/u-strncat.h: New file.
632
633         * modules/unistr/u8-strncmp: New file.
634         * modules/unistr/u16-strncmp: New file.
635         * modules/unistr/u32-strncmp: New file.
636         * lib/unistr/u8-strncmp.c: New file.
637         * lib/unistr/u16-strncmp.c: New file.
638         * lib/unistr/u32-strncmp.c: New file.
639
640         * modules/unistr/u8-strncpy: New file.
641         * modules/unistr/u16-strncpy: New file.
642         * modules/unistr/u32-strncpy: New file.
643         * lib/unistr/u8-strncpy.c: New file.
644         * lib/unistr/u16-strncpy.c: New file.
645         * lib/unistr/u32-strncpy.c: New file.
646         * lib/unistr/u-strncpy.h: New file.
647
648         * modules/unistr/u8-strnlen: New file.
649         * modules/unistr/u16-strnlen: New file.
650         * modules/unistr/u32-strnlen: New file.
651         * lib/unistr/u8-strnlen.c: New file.
652         * lib/unistr/u16-strnlen.c: New file.
653         * lib/unistr/u32-strnlen.c: New file.
654         * lib/unistr/u-strnlen.h: New file.
655
656         * modules/unistr/u8-strpbrk: New file.
657         * modules/unistr/u16-strpbrk: New file.
658         * modules/unistr/u32-strpbrk: New file.
659         * lib/unistr/u8-strpbrk.c: New file.
660         * lib/unistr/u16-strpbrk.c: New file.
661         * lib/unistr/u32-strpbrk.c: New file.
662         * lib/unistr/u-strpbrk.h: New file.
663
664         * modules/unistr/u8-strrchr: New file.
665         * modules/unistr/u16-strrchr: New file.
666         * modules/unistr/u32-strrchr: New file.
667         * lib/unistr/u8-strrchr.c: New file.
668         * lib/unistr/u16-strrchr.c: New file.
669         * lib/unistr/u32-strrchr.c: New file.
670
671         * modules/unistr/u8-strspn: New file.
672         * modules/unistr/u16-strspn: New file.
673         * modules/unistr/u32-strspn: New file.
674         * lib/unistr/u8-strspn.c: New file.
675         * lib/unistr/u16-strspn.c: New file.
676         * lib/unistr/u32-strspn.c: New file.
677         * lib/unistr/u-strspn.h: New file.
678
679         * modules/unistr/u8-strstr: New file.
680         * modules/unistr/u16-strstr: New file.
681         * modules/unistr/u32-strstr: New file.
682         * lib/unistr/u8-strstr.c: New file.
683         * lib/unistr/u16-strstr.c: New file.
684         * lib/unistr/u32-strstr.c: New file.
685         * lib/unistr/u-strstr.h: New file.
686
687         * modules/unistr/u8-strtok: New file.
688         * modules/unistr/u16-strtok: New file.
689         * modules/unistr/u32-strtok: New file.
690         * lib/unistr/u8-strtok.c: New file.
691         * lib/unistr/u16-strtok.c: New file.
692         * lib/unistr/u32-strtok.c: New file.
693         * lib/unistr/u-strtok.h: New file.
694
695         * modules/unistr/u8-uctomb: New file.
696         * modules/unistr/u16-uctomb: New file.
697         * modules/unistr/u32-uctomb: New file.
698         * lib/unistr/u8-uctomb.c: New file.
699         * lib/unistr/u16-uctomb.c: New file.
700         * lib/unistr/u32-uctomb.c: New file.
701
702         * MODULES.html.sh (Unicode string functions): Add the new modules.
703
704 2007-01-08  Bruno Haible  <bruno@clisp.org>
705
706         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
707         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
708         subdirectories.
709
710 2007-01-08  Karl Berry  <karl@gnu.org>
711
712         * doc/error.texi: mention that main() fns must set program_name
713         when progname is used.
714
715 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
716
717         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
718         WCTYPE_H is empty, for the benefit of builds from non-distclean
719         directories.  Problem reported by Eric Blake in
720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
721
722 2007-01-08  Bruno Haible  <bruno@clisp.org>
723
724         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
725         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
726         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
727         PROVIDE_CANONICALIZE_FILENAME_MODE.
728         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
729
730 2007-01-08  Bruno Haible  <bruno@clisp.org>
731
732         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
733         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
734         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
735         * lib/fts.c: Likewise.
736         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
737
738 2006-12-25  Bruno Haible  <bruno@clisp.org>
739
740         * modules/utf8-ucs4-safe: New file.
741         * lib/utf8-ucs4-safe.h: New file.
742         * lib/unistr/utf8-ucs4-safe.c: New file.
743
744         * modules/utf16-ucs4-safe: New file.
745         * lib/utf16-ucs4-safe.h: New file.
746         * lib/unistr/utf16-ucs4-safe.c: New file.
747
748         * MODULES.html.sh (Unicode string functions): Add the new modules.
749
750 2007-01-08  Bruno Haible  <bruno@clisp.org>
751
752         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
753         (Depends-on): Add unitypes.
754         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
755         (u8_mbtouc_aux): Move out to separate file.
756         (u8_mbtouc): Use ucs4_t, uint8_t types.
757         * lib/unistr/utf8-ucs4.c: New file.
758
759         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
760         (Depends-on): Add unitypes.
761         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
762         (u16_mbtouc_aux): Move out to separate file.
763         (u16_mbtouc): Use ucs4_t, uint16_t types.
764         * lib/unistr/utf16-ucs4.c: New file.
765
766         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
767         (Depends-on): Add unitypes.
768         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
769         (u8_uctomb_aux): Move out to separate file.
770         (u8_uctomb): Use ucs4_t, uint8_t types.
771         * lib/unistr/ucs4-utf8.c: New file.
772
773         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
774         (Depends-on): Add unitypes.
775         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
776         (u16_uctomb_aux): Move out to separate file.
777         (u16_uctomb): Use ucs4_t, uint16_t types.
778         * lib/unistr/ucs4-utf16.c: New file.
779
780 2006-12-25  Bruno Haible  <bruno@clisp.org>
781
782         * modules/unitypes: New file.
783         * lib/unitypes.h: New file.
784         * MODULES.html.sh (func_all_modules): New section "Unicode string
785         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
786         this section. Add unitypes.
787
788 2007-01-08  Bruno Haible  <bruno@clisp.org>
789
790         Avoid variable names that conflict with those from libtool.
791         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
792         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
793         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
794         library_names_spec to acl_library_names_spec, hardcode_* to
795         acl_hardcode_*.
796         Reported by Ralf Wildenhues.
797
798 2007-01-08  Bruno Haible  <bruno@clisp.org>
799
800         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
801         definition.
802         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
803         definition.
804         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
805         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
806         definition.
807         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
808         definition.
809         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
810         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
811         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
812         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
813         definition.
814         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
815         definition.
816         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
817         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
818         GC_USE_<algorithm>.
819         * lib/gc-libgcrypt.c: Likewise.
820         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
821         * modules/gc-arctwo (configure.ac): Likewise.
822         * modules/gc-des (configure.ac): Likewise.
823         * modules/gc-hmac-md5 (configure.ac): Likewise.
824         * modules/gc-hmac-sha1 (configure.ac): Likewise.
825         * modules/gc-md2 (configure.ac): Likewise.
826         * modules/gc-md4 (configure.ac): Likewise.
827         * modules/gc-md5 (configure.ac): Likewise.
828         * modules/gc-random (configure.ac): Likewise.
829         * modules/gc-rijndael (configure.ac): Likewise.
830         * modules/gc-sha1 (configure.ac): Likewise.
831
832 2007-01-08  Bruno Haible  <bruno@clisp.org>
833
834         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
835         macro definition.
836         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
837         definition.
838         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
839         definition.
840         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
841         * modules/fcntl-safer (configure.ac): Likewise.
842         * modules/fopen-safer (configure.ac): Likewise.
843         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
844         GNULIB_FWRITEERROR macro definition.
845
846 2007-01-08  Bruno Haible  <bruno@clisp.org>
847
848         * m4/gnulib-common.m4: New file.
849         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
850         (func_get_filelist): Add m4/gnulib-common.m4.
851
852 2007-01-08  Bruno Haible  <bruno@clisp.org>
853
854         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
855         command.
856
857 2007-01-08  Jim Meyering  <jim@meyering.net>
858
859         Use a more robust test for a "can't happen" condition.
860         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
861         narrowed the st_size value.  Presuming the "can't happen" condition
862         is true, that narrowing could conceivably convert an invalid st_size
863         value into a valid one.  Instead, use a change based on Matthew
864         Woehlke's original patch.
865
866         Slight readability improvement: use an assert-like macro
867         in place of literal "abort ()" uses.
868         * lib/fts.c (fts_assert): Define.
869         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
870         Use this macro instead of a bare 'abort'.
871
872 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
873
874         Don't worry about using IRIX 5.3's wctype.h broken definitions;
875         simply work around them.
876         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
877         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
878         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
879         Don't bother to define as macros, since the standard doesn't require it.
880         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
881         longer worry about IRIX 5.3.
882         (HAVE_WCTYPE_CTMP_BUG): Remove.
883
884 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
885
886         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
887         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
888         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
889         Problems reported by Georg Schwarz for IRIX 5.3.
890
891         * gnulib-tool (autoconf_minversion): Take the maximum version number
892         found, not the minimum.  Problem reported by James Youngman.
893
894 2007-01-03  Karl Berry  <karl@gnu.org>
895
896         * doc/error.texi: new file, explaining interaction with progname.
897         * doc/gnulib.texi: include it.  Update copyright.
898
899 2007-01-03  Simon Josefsson  <simon@josefsson.org>
900
901         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
902         AC_CANONICAL_HOST, to improve autobuild outputs.
903
904 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
905             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
906
907         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
908         sockets, server sockets, and other file descriptors.  Count errors
909         to compute the return value.  Reorder the code a bit to be easier
910         to follow.  Don't set event bits that were not requested (except
911         POLLERR and POLLHUP).
912
913 2007-01-01  Bruno Haible  <bruno@clisp.org>
914
915         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
916
917 2007-01-03  Jim Meyering  <jim@meyering.net>
918
919         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
920
921 2007-01-02  Bruno Haible  <bruno@clisp.org>
922
923         * modules/settime (Include): Require timespec.h.
924         * modules/nanosleep (Include): Likewise.
925
926 2007-01-01  Bruno Haible  <bruno@clisp.org>
927
928         * gnulib-tool (func_emit_copyright_notice): Bump year.
929         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
930
931 2007-01-01  Bruno Haible  <bruno@clisp.org>
932
933         Improve support for OpenBSD.
934         * build-aux/config.rpath (libname_spec): Export.
935         (library_names_spec): New variable. Export.
936         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
937         library_names_spec from the config.rpath output. Locate shared library
938         through the name pattern in library_names_spec.
939
940 2007-01-01  Eric Blake  <ebb9@byu.net>
941
942         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
943
944 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
945
946         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
947         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
948         assume the C locale, and avoid an "eval" that could cause trouble.
949         Problem with SORT reported by Bob Proulx.
950
951         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
952         Define.  Trivial patch from Henning Nielsen Lund, originally
953         sent to bug-grep@gnu.org today.
954
955 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
956
957         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
958         struct stat.  Problem reported by Henning Nielsen Lund.
959         * lib/acl.c: Include acl.h first, to check interface.  Don't
960         bother to include sys/types.h and sys/stat.h again.
961
962 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
963
964         Import the following change from libc; problem reported by
965         Sven Verdoolaege.
966
967         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
968
969         [BZ #1373]
970         * lib/argp.h: Remove __NTH for __argp_usage inline function.
971
972 2006-12-28  Jim Meyering  <jim@meyering.net>
973
974         * build-aux/announce-gen: Do not assume that the package
975         builds any of tar.gz, tar.bz2, and .xdelta files.
976         Suggestion from Simon Josefsson.
977
978 2006-12-28  Simon Josefsson  <simon@josefsson.org>
979
980         * modules/announce-gen: New file.
981
982 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
983
984         * lib/mbchar.h: Just include <wctype.h>; the wctype module
985         handles its gotchas now.
986         * lib/mbswidth.c: Likewise.
987         * lib/wcwidth.h: Likewise.
988         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
989         and iswcntrl; the wctype module does this stuff now.
990         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
992         * modules/mbchar (Depends-on): Add wctype.
993         * modules/mbswidth (Depends-on): Likewise.
994         * modules/wcwidth (Depends-on): Likewise.
995
996 2006-12-27  Eric Blake  <ebb9@byu.net>
997
998         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
999         module uses more than what <wctype.h> is required to provide.
1000
1001 2006-12-26  Eric Blake  <ebb9@byu.net>
1002
1003         * gnulib-tool (sed_extract_prog): Avoid space-tab.
1004
1005 2006-12-26  Eric Blake  <ebb9@byu.net>
1006
1007         * modules/absolute-header: New module.
1008         * modules/fcntl (Depends-on): Depend on it.
1009         * modules/inttypes (Depends-on): Likewise.
1010         * modules/stdint (Depends-on): Likewise.
1011         * modules/sys_stat (Depends-on): Likewise.
1012         * modules/wctype (Depends-on): Likewise.
1013         * MODULES.html.sh (Support for building libraries and
1014         executables): Document it.
1015
1016 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1017
1018         * gnulib-tool (SED): Remove, undoing previous change.
1019         The problem was that it broke coreutils on Solaris, because
1020         "sed --posix" leaked into a makefile.
1021         (sed): New alias, if 'alias' and GNU sed.
1022
1023 2006-12-24  Jim Meyering  <jim@meyering.net>
1024
1025         Work around an fchownat bug in glibc-2.4:
1026         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
1027         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
1028         in spite of the -P option.
1029         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
1030         New macros.
1031         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
1032         * modules/openat (Files): Add lib/fchownat.c.
1033         * lib/openat.c (fchownat): Don't define here.  Move to...
1034         * lib/fchownat.c: ...this new file.
1035
1036 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1037
1038         Fix bug reported by Bruno Haible in
1039         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
1040         where quotearg.c didn't compile on Mac OS X 10.2 because it
1041         lacks <wchar.h> and wint_t.
1042         * lib/wctype_.h (__wctype_wint_t): New type.
1043         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
1044         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
1045         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
1046         Arg is now of type __wctype_wint_t, not wint_t.
1047         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
1048         substitute HAVE_WINT_T.
1049         * modules/wctype (Files): Add m4/wint_t.m4.
1050         (wctype.h): Substitute HAVE_WINT_T.
1051
1052 2006-12-23  Bruno Haible  <bruno@clisp.org>
1053
1054         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
1055
1056 2006-12-23  Bruno Haible  <bruno@clisp.org>
1057
1058         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
1059         S_ISLNK.
1060         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
1061         mingw.
1062
1063 2006-12-22  Bruno Haible  <bruno@clisp.org>
1064
1065         * lib/copy-file.c: Include acl.h.
1066         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
1067         Close the file descriptors only after being done with copy_acl.
1068         * modules/copy-file (Depends-on): Add acl.
1069
1070 2006-12-22  Bruno Haible  <bruno@clisp.org>
1071
1072         * gnulib-tool (SED): New variable.
1073         Use $SED instead of sed everywhere.
1074
1075 2006-12-22  Bruno Haible  <bruno@clisp.org>
1076
1077         * modules/no-c++: New file.
1078         * m4/no-c++.m4: New file.
1079         * MODULES.html.sh (Support for building libraries and executables):
1080         Add no-c++.
1081
1082 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1085         Include <limits.h>, and use its INT_MAX to rewrite the
1086         j loop so that it does not overflow 'int'.  Problem reported by
1087         Ralf Wildenhues in
1088         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
1089         Play it safe by shifting left by 1 rather than multiplying by 2,
1090         as GCC is less likely to optimize this away when the value
1091         is signed (when it assumes overflow leads to undefined behavior).
1092         Also, don't assume time_t uses two's complement.
1093
1094 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1095
1096         * MODULES.html.sh: New module wctype.
1097         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
1098         * lib/fnmatch.c: Don't bother to include <wchar.h> before
1099         <wctype.h>, since the new wctype module should fix this.
1100         * lib/quotearg.c: Include <wctype.h> unconditionally, since
1101         the wctype module should arrange for it.
1102         * lib/regex_internal.h: Likewise.
1103         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
1104         since the wctype module should handle this now.
1105         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
1106         * modules/fnmatch (Depends-on): Add wctype.
1107         * modules/quotearg (Depends-on): Likewise.
1108         * modules/regex (Depends-on): Likewise.
1109
1110 2006-12-19  Bruno Haible  <bruno@clisp.org>
1111
1112         * lib/strdup.h [C++]: Wrap definitions in extern "C".
1113         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
1114
1115 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1116
1117         * modules/savewd (Depends-on): Fix dependency on fcntl.
1118
1119 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1120
1121         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
1122         conforms to C99, rather than relying on the user's environment
1123         setting of STDINT_H.
1124
1125 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1126         and Eric Blake  <ebb9@byu.net>
1127
1128         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
1129         This is more consistent with the other defines here.
1130         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
1131         Port to z/OS.  Problem reported by Paul Gilmartin.
1132         Change local vars to use gl_ prefix rather than ac_.
1133         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
1134         with other defines.
1135         * modules/double-slash-root: New module.
1136         * modules/dirname (Files): Remove m4/double-slash-root.m4.
1137         (Depends-on): Add double-slash-root.
1138         * MODULES.html.sh (File system functions): Mention new module.
1139
1140 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
1141
1142         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
1143         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
1144         This is for the benefit of gzip, which doesn't do i18n.
1145
1146 2006-12-12  Jim Meyering  <jim@meyering.net>
1147
1148         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
1149         Reported by Andreas Schwab <schwab@suse.de>.
1150
1151 2006-12-12  Bruno Haible  <bruno@clisp.org>
1152
1153         Merge these changes.
1154         2006-09-05  Bruno Haible  <bruno@clisp.org>
1155         * lib/iconvme.c (iconv_string): No need to save and restore errno when
1156         iconv_alloc succeeded.
1157         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
1158         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
1159         test for " && dest " at the end - dest is always != NULL there. Call
1160         iconv with 4xNULL arguments initially, to reset the state. Call iconv
1161         with 2xNULL arguments, also to flush the state storage. Handle the
1162         IRIX iconv behaviour. Realloc the final result, to throw away unused
1163         memory.
1164
1165 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1166
1167         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
1168         and fchmodat unconditionally, since glibc 2.4 has them.
1169         Problem reported by Arkadiusz Miskiewicz.
1170
1171 2006-12-10  Bruno Haible  <bruno@clisp.org>
1172
1173         * gnulib-tool (func_import): Show the include files only for those
1174         modules that are copied and specified.
1175         Reported by Karl Berry.
1176
1177 2006-12-08  Jim Meyering  <jim@meyering.net>
1178
1179         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
1180         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
1181
1182         * build-aux/announce-gen: Add two new options, both optional:
1183         --bootstrap-tools=TOOL_LIST
1184               a comma-separated list of tools, e.g.,
1185               autoconf,automake,bison,gnulib
1186         --gnulib-snapshot-date=DATE
1187               if gnulib is in the bootstrap tool list,
1188               then report this as the snapshot date.
1189               If not specified, use the current date/time.
1190               If you specify a date here, be sure it's UTC.
1191
1192 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1193
1194         * tests/test-argp-2.sh: Fix test to match actual output.
1195         (func_compare): Fix sed script to be portable.
1196
1197 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1198
1199         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
1200         workaround for this case.  It is not autoconfigured now; offhand
1201         it's hard to see how to autoconfigure it.
1202
1203 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
1204
1205         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
1206         a directory that is about to be chowned.  Such a directory's
1207         initial file permissions should permit the owner only and this
1208         should not be changed until after the chown, since the group and
1209         other bits would be incorrect if they granted permission before
1210         the chown.
1211
1212         Fix porting problem for iswctype reported by Georg Schwarz in:
1213         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
1214         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
1215         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
1216         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
1217         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1218
1219 2006-12-03  Jim Meyering  <jim@meyering.net>
1220
1221         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
1222         p->fts_statp may not yet be defined.
1223         (fts_read): Instead, set it in the caller, once p->fts_statp is
1224         sure to be defined, and corresponds to a top-level directory.
1225         This bug made du -x fail.  Here's the coreutils test case:
1226         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
1227         Reported by Mike Frysinger.
1228
1229 2006-12-01  Jim Meyering  <jim@meyering.net>
1230
1231         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
1232         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
1233         Reported by Simon Josefsson.
1234
1235 2006-11-30  Jim Meyering  <jim@meyering.net>
1236
1237         * m4/warning.m4: Use the all-permissive copyright notice
1238         recommended by RMS (rather than LGPL).
1239         * m4/vararrays.m4: Likewise.
1240         * m4/flexmember.m4: Likewise.
1241
1242 2006-11-29  Bruno Haible  <bruno@clisp.org>
1243
1244         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1245         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
1246         using +=.
1247         Reported by Simon Josefsson <simon@josefsson.org>.
1248
1249 2006-11-28  James Youngman <jay@gnu.org>
1250
1251         * README: Advise users that they might find the bug-gnulib@gnu.org
1252         and autotools-announce@gnu.org mailing lists useful.
1253
1254 2006-11-28  Bruno Haible  <bruno@clisp.org>
1255
1256         * m4/ptrdiff_max.m4: Remove file.
1257
1258 2006-11-21  Bruno Haible  <bruno@clisp.org>
1259
1260         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
1261         _AC_COMPUTE_INT.
1262         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1263         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
1264         _AC_COMPUTE_INT.
1265         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1266         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
1267         _AC_COMPUTE_INT.
1268         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1269
1270 2006-11-28  Jim Meyering  <jim@meyering.net>
1271
1272         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
1273         warning from "gcc -Wshadow" about shadowing the builtin.
1274
1275 2006-11-27  Bruno Haible  <bruno@clisp.org>
1276
1277         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
1278         _AC_COMPUTE_INT.
1279         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1280
1281 2006-11-27  Bruno Haible  <bruno@clisp.org>
1282             Paul Eggert  <eggert@cs.ucla.edu>
1283
1284         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
1285
1286 2006-11-26  Bruno Haible  <bruno@clisp.org>
1287
1288         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1289         noinst_LTLIBRARIES.
1290
1291 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
1292             Bruno Haible  <bruno@clisp.org>
1293
1294         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
1295         if compiling with "gcc -ansi".
1296
1297 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
1298
1299         Fix some incompatibilities with gcc -ansi -pedantic.
1300         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
1301         if compiling pedantically with GCC, unless it's C99 or later.
1302         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
1303         it mishandles gcc -ansi -pedantic as well.
1304         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
1305         if gcc -pedantic.
1306         * lib/regexec.c (check_node_accept_bytes): Don't use auto
1307         initializers for struct if -pedantic, unless it's C99 or later.
1308
1309 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
1310
1311         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
1312         Don't close an fd more than once. Identical atimes indicate
1313         success, not failure.
1314
1315 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
1316
1317         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
1318
1319 2006-11-23  Jim Meyering  <jim@meyering.net>
1320
1321         * build-aux/announce-gen: New file.  From coreutils.
1322
1323 2006-11-22  Jim Meyering  <jim@meyering.net>
1324
1325         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
1326         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
1327         (fts_read): Use a temporary to narrow the overused st_size member
1328         before using it in a switch statement.  Reported by Matthew Woehlke.
1329
1330         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
1331         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
1332
1333 2006-11-20  Bruno Haible  <bruno@clisp.org>
1334
1335         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
1336         changequote instead of pairs of brackets.
1337         Reported by Andreas Schwab <schwab@suse.de>.
1338
1339 2006-11-21  Jim Meyering  <jim@meyering.net>
1340
1341         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
1342         so as to remain compatible with older compilers.
1343         Patch from Michael Deutschmann.
1344
1345 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1346
1347         * MODULES.html.sh (File system functions): Add openat.
1348
1349         * lib/openat.h (rpl_fstatat): New macro, if
1350         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
1351         (fstatat): Define to rpl_fstatat under the same conditions,
1352         unless COMPILING_FSTATAT.
1353         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
1354         seems to have the bug.
1355         * lib/fstatat.c: New file.
1356         * modules/openat (Files): Add it.
1357
1358 2006-11-20  Bruno Haible  <bruno@clisp.org>
1359
1360         * Makefile: New file.
1361
1362 2006-11-20  Jim Meyering  <jim@meyering.net>
1363
1364         The beginnings of syntax-related checks for gnulib.
1365         * lib/Makefile: New file.
1366         * lib/t-idcache: New script.  Ensure that the two halves of
1367         idcache.c stay in sync.
1368
1369         * lib/idcache.c: Adjust comments in user- and group- portions to
1370         be more accurate, and to be consistent with one another.
1371
1372 2006-11-20  Jim Meyering  <jim@meyering.net>
1373
1374         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
1375         continue using the flexible array member (thus, this module performs
1376         half as many malloc calls), with the addition that...
1377         (getgroup, getuser): Consistently record a non-match via an empty
1378         "name" string, and map an empty string match to a NULL return value.
1379         * modules/idcache (Depends-on): Re-add flexmember.
1380
1381         * lib/idcache.c (getuser): Remove all uses of the register keyword.
1382         (getuidbyname, getgroup, getgidbyname): Likewise.
1383
1384         Use cleaner syntax: NULL rather than 0.
1385         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
1386
1387 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1388
1389         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
1390         It mishandled the case where the group was missing.
1391         Problem reported by Greg Schafer.
1392         * modules/idcache: Likewise.
1393
1394 2006-11-18  Jim Meyering  <jim@meyering.net>
1395
1396         * check-module (%exempt_header): Add exception for some
1397         conditionally-included headers.
1398
1399         * modules/i-ring (Depends-on): Add verify.
1400         (License): Change to LGPL.
1401
1402 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1403
1404         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
1405         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
1406         and inttostr.h.  Use snprintf rather than uinttostr, so that
1407         LGPLed code doesn't depend on GPLed.
1408
1409 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1410
1411         * modules/inline (License): Change from GPL to LGPL.
1412
1413 2006-11-17  Jim Meyering  <jim@meyering.net>
1414
1415         * modules/d-type (License): Switch to LGPL.
1416
1417 2006-11-15  Bruno Haible  <bruno@clisp.org>
1418
1419         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
1420
1421 2006-11-15  Eric Blake  <ebb9@byu.net>
1422
1423         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
1424         the module dependency.
1425
1426 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1427             Bruno Haible  <bruno@clisp.org>
1428
1429         * gnulib-tool (func_create_testdir): Add license consistency check.
1430
1431 2006-11-15  Eric Blake  <ebb9@byu.net>
1432
1433         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
1434         random "(cached)" in configure output.
1435
1436 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1437
1438         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
1439         test for conforming inttypes.h is both announced and cached.
1440
1441         * MODULES.html.sh (seen_modules, seen_files): New variables.
1442         (func_module): Rewrite to use a few less gnulib-tool and sed
1443         invocations.  Avoid a couple of quadratic algorithms for ...
1444         (missed_modules, missed_files): ... these, with ...
1445         (func_append, func_tmpdir): ... these new functions, from
1446         gnulib-tool.  Analogously, install traps for cleanup.
1447
1448         * tests/test-gc.c (main): Remove unused variables.
1449         * tests/test-read-file.c: Include stdlib.h, for 'free'.
1450
1451 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1452
1453         * modules/inttostr (License): Change to LGPL.
1454
1455 2006-11-14  Eric Blake  <ebb9@byu.net>
1456
1457         * modules/tempname (License): Change to LGPL.
1458
1459 2006-11-14  Eric Blake  <ebb9@byu.net>
1460
1461         * doc/functions.texi (Function Portability): *printf functions on
1462         Cygwin now understand all POSIX size specifiers.
1463
1464 2006-11-14  Bruno Haible  <bruno@clisp.org>
1465
1466         * modules/c-ctype (License): Change to LGPL.
1467
1468 2006-11-12  Bruno Haible  <bruno@clisp.org>
1469
1470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1471         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
1472         for GNOME libraries, for which the include files are installed in
1473         subdirectories of $prefix/include.
1474
1475 2006-11-12  Bruno Haible  <bruno@clisp.org>
1476
1477         * m4/lib-link.m4: Require at least autoconf-2.54.
1478         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
1479         name to underscores for the --with option.
1480
1481 2006-11-13  Bruno Haible  <bruno@clisp.org>
1482
1483         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
1484         the tests directory.
1485         Reported by Ralf Wildenhues.
1486
1487 2006-11-13  Bruno Haible  <bruno@clisp.org>
1488
1489         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
1490         (func_emit_initmacro_end): Undo the override here.
1491         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
1492         Works around the famous automake error in coreutils.
1493
1494 2006-11-13  Eric Blake  <ebb9@byu.net>
1495
1496         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
1497         element, not its node.
1498
1499 2006-11-12  Bruno Haible  <bruno@clisp.org>
1500
1501         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
1502         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
1503
1504 2006-11-12  Bruno Haible  <bruno@clisp.org>
1505
1506         * gnulib-tool: New option --local-symlink.
1507         (func_usage): Document it.
1508         (lsymbolic): New variable.
1509         (func_import, func_create_testdir): If --symlink was not specified,
1510         test whether --local-symlink was specified and the file comes from
1511         the local_gnulib_dir.
1512
1513 2006-11-12  Bruno Haible  <bruno@clisp.org>
1514
1515         * gnulib-tool (func_ln): New function.
1516         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
1517
1518 2006-11-12  Bruno Haible  <bruno@clisp.org>
1519
1520         Finish support for source files in subdirectories.
1521         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
1522         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
1523         AUTOMAKE_OPTIONS.
1524         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
1525
1526 2006-11-12  Bruno Haible  <bruno@clisp.org>
1527
1528         * gnulib-tool (func_get_automake_snippet): Synthesize also an
1529         EXTRA_lib_SOURCES augmentation.
1530         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
1531
1532 2006-11-12  Jim Meyering  <jim@meyering.net>
1533
1534         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
1535         file descriptors.  This also averts a failure on systems with
1536         native openat support when a traversed directory lacks "x" access.
1537         * lib/fts_.h: Include "i-ring.h"
1538         (struct FTS) [fts_fd_ring]: New member.
1539         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
1540         (FCHDIR): Add parentheses.
1541         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
1542         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
1543         When descending, rather than simply closing the previous
1544         fts_cwd_fd value, push that file descriptor onto the ring.
1545         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
1546         (fts_open): Initialize the new fd_ring member.
1547         (fts_close): Clear the ring.
1548         (fts_safe_changedir): When possible, use our new fd_ring to skip
1549         the diropen and fstat and dev/ino comparison that would normally
1550         accompany a virtual `chdir ("..")'.
1551
1552         * modules/fts (Depends-on): Add i-ring.
1553         * modules/i-ring: New module.
1554         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
1555         * m4/i-ring.m4: New file.
1556
1557 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1558
1559         * gnulib-tool (func_create_testdir): Fix replacement of
1560         `build-aux' in configure.ac.  Run autotools in gltests
1561         subdirectory.
1562         (func_create_testdir, func_create_megatestdir, test): There is
1563         no need for '--force' in most autotool invocations in a new
1564         tree.  Actually fail the whole test if any of the tools, or the
1565         configure or make stages fail.
1566
1567         Sync from Automake.
1568         * build-aux/gnupload: Revert last change.  Add pointer to upload
1569         instructions of the GNU Maintenance Instructions.
1570         Suggestion by Karl Berry.
1571
1572 2006-11-10  Jim Meyering  <jim@meyering.net>
1573
1574         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
1575
1576 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1577
1578         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
1579         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
1580         (bind_textdomain_codeset) [! ENABLE_NLS]:
1581         Evaluate all the arguments.  That way, callers get compatible behavior
1582         if the arguments have side effects.  Also, it avoids some GCC
1583         diagnostics in some cases; Joel E. Denny reported problems when Bison
1584         was configured with --enable-gcc-warnigs.
1585
1586 2006-11-10  Jim Meyering  <jim@meyering.net>
1587
1588         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
1589         relevant options in CFLAGS (like -O, -fno-inline) are taken into
1590         account.
1591
1592 2006-11-10  Jim Meyering  <jim@meyering.net>
1593
1594         * modules/inline: New file/module.
1595         * modules/xalloc (Files): Remove m4/inline.m4.
1596         (Depends-on): Add inline, instead.
1597         * modules/oset: Likewise.
1598         * modules/list: Likewise.
1599
1600 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1601
1602         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
1603         Problem reported by Matthew Woehlke.
1604
1605 2006-11-09  Bruno Haible  <bruno@clisp.org>
1606
1607         * lib/tempname.c (gen_tempname): Remove variant that invokes
1608         __gen_tempname.
1609         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
1610         __gen_tempname.
1611
1612 2006-11-08  Bruno Haible  <bruno@clisp.org>
1613
1614         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
1615         to 'yes' instead of 'cross-compiling'.
1616
1617 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1618
1619         * lib/quotearg.h (quotearg_free): New decl.
1620         * lib/quotearg.c (quotearg_free): New function.
1621         (slot0, nslots, slotvec0, slotvec):
1622         Now file-scope so that quotearg_free can get at them.
1623
1624 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1625
1626         Sync from Automake.
1627         * build-aux/gnupload: Add missing 'gnu' to example URL.
1628         Report by Karl Berry.
1629
1630 2006-11-08  Bruno Haible  <bruno@clisp.org>
1631
1632         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
1633         Suggested by Paul Eggert.
1634
1635 2006-11-08  Jim Meyering  <jim@meyering.net>
1636
1637         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
1638         It's already included if !_LIBC.
1639         (fts_safe_changedir): Add a comment.
1640
1641 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1642
1643         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
1644         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
1645         Matthew Woehlke.
1646
1647         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
1648         definitions up, to avoid colliding with change below.
1649         (static_inline) [HAVE_INLINE]: New macro.
1650         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1651         Provide extern decls when !HAVE_INLINE.  Do not define unless
1652         static_inline is defined, either by us or by xmalloc.c.  Use
1653         static_inline rather than static inline.
1654         (XCALLOC): Optimize sizeof(T) = 1 case.
1655         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
1656
1657 2006-11-07  Bruno Haible  <bruno@clisp.org>
1658
1659         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
1660         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
1661         AC_C_INLINE.
1662         * modules/xalloc (Files): Add m4/inline.m4.
1663
1664 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1665
1666         * README: Fix typo.
1667         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
1668         (Miscellanous Notes): ...from this.
1669
1670 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1671
1672         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1673         Mention that offsetof should be used instead of sizeof.
1674         From Bruno Haible.
1675
1676 2006-11-07  Bruno Haible  <bruno@clisp.org>
1677
1678         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
1679
1680 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1681
1682         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
1683         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
1684         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
1685         (gl_tree_add_before, gl_tree_add_after):
1686         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
1687         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
1688         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
1689         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
1690         (gl_linked_add_after, gl_linked_add_at): Likewise.
1691         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
1692         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
1693         (gl_tree_add_before, gl_tree_add_after): Likewise.
1694         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
1695         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
1696         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
1697
1698 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1699
1700         * lib/gl_oset.h: Use C comment style, not C++ comment style.
1701
1702 2006-11-06  Bruno Haible  <bruno@clisp.org>
1703
1704         * m4/inline.m4: New file.
1705         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
1706         * modules/list (Files): Add m4/inline.m4.
1707         * modules/oset (Files): Likewise.
1708
1709 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1710
1711         * lib/idcache.c: Include <stddef.h>, for offsetof.
1712         (struct userid.name): Change from char * to a flexible array member.
1713         All uses changed.
1714         * modules/idcache (Depends-on): Add flexmember.
1715
1716         * MODULES.html.sh (Core language properties): New module flexmember.
1717         * modules/flexmember, m4/flexmember.m4: New files.
1718
1719         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
1720         inline functions that are identical with the old xnmalloc_inline,
1721         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
1722         that we can avoid some unnecessary integer multiplications and
1723         divisions in the common case where the element size is known at
1724         compile time.
1725         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
1726         needed.
1727         (xnboundedmalloc): Remove.
1728         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
1729         arguments, for consistency with rest of this header.
1730         (xcharalloc): Rewrite using XNMALLOC.
1731         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
1732         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
1733         versions have been moved to lib/xalloc.h and renamed to be the
1734         non-*_inline versions.
1735         (xmalloc, xrealloc): Implement without reference to the xnmalloc
1736         and xnrealloc functions, since those functions are now inline and
1737         now call us.
1738         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
1739         renaming described above.
1740         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
1741         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
1742         captures the dependency in AC_C_INLINE.
1743
1744         New module canonicalize-lgpl, proposed by Charles Wilson in
1745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
1746         with a few small changes afterwards.
1747         * MODULES.html.sh (File system functions): New module
1748         canonicalize-lgpl.
1749         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
1750         and canonicalize_file_name.
1751         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
1752         * modules/canonicalize-lgpl: New files.
1753
1754 2006-11-05  Bruno Haible  <bruno@clisp.org>
1755
1756         * gnulib-tool (func_import, func_create_testdir): Create directories
1757         also for files in subdirectories of lib/.
1758
1759 2006-11-05  Bruno Haible  <bruno@clisp.org>
1760
1761         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
1762         ANSI C compliant.
1763
1764 2006-11-03  Bruno Haible  <bruno@clisp.org>
1765
1766         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
1767         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
1768         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
1769         (xnboundedmalloc): New inline function.
1770         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
1771         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
1772         xmalloc.
1773         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
1774         xmalloc.
1775         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
1776         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
1777         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
1778         xmalloc.
1779         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
1780         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
1781         xmalloc.
1782         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
1783         gl_tree_add_after): Use XMALLOC instead of xmalloc.
1784         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
1785         xmalloc.
1786         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
1787         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
1788         gl_tree_add_after): Use XMALLOC instead of xmalloc.
1789         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
1790         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
1791         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
1792         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
1793
1794 2006-11-03  Bruno Haible  <bruno@clisp.org>
1795
1796         * lib/c-ctype.h [C++]: Define functions without name mangling.
1797         * lib/fwriteerror.h [C++]: Likewise.
1798         * lib/gcd.h [C++]: Likewise.
1799         * lib/linebreak.h [C++]: Likewise.
1800
1801 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
1802
1803         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
1804         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
1805         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
1806         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
1807         Check for functions and headers just once.
1808         Check for declaration of canonicalize_file_name.
1809         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
1810
1811 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1812
1813         * gnulib-tool (func_import): Fix typo in actioncmd.
1814
1815 2006-11-02  Bruno Haible  <bruno@clisp.org>
1816
1817         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
1818         newline sequence in the Makefile.am snippet as a space, like "make"
1819         does.
1820         Reported by Roger Persson <perrog@gmail.com>.
1821
1822 2006-11-01  Bruno Haible  <bruno@clisp.org>
1823
1824         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
1825         already declared in <string.h>.
1826         * lib/strcase.h (strncasecmp): Don't declare it if yes.
1827
1828 2006-11-01  Bruno Haible  <bruno@clisp.org>
1829
1830         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
1831         * lib/strcase.h: Include <string.h>.
1832         (strcasecmp): Define to rpl_strcasecmp here.
1833
1834 2006-11-01  Bruno Haible  <bruno@clisp.org>
1835
1836         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
1837
1838 2006-11-01  Eric Blake  <ebb9@byu.net>
1839
1840         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
1841
1842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
1843
1844 2006-10-29  Bruno Haible  <bruno@clisp.org>
1845
1846         Make it compile in C++ mode.
1847         * lib/full-write.c (full_rw): Add a cast.
1848
1849 2006-11-01  Bruno Haible  <bruno@clisp.org>
1850
1851         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
1852         be POSIX compliant.
1853         Reported by Roger Persson <perrog@gmail.com>.
1854
1855 2006-11-01  Eric Blake  <ebb9@byu.net>
1856
1857         * lib/getopt_.h: Fix comments.
1858
1859 2006-10-31  Eric Blake  <ebb9@byu.net>
1860
1861         * modules/tmpdir (Depends-on): Add sys_stat.
1862         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
1863         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
1864         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
1865         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
1866         tempname.
1867
1868 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         Avoid some C++ diagnostics reported by Bruno Haible.
1871         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
1872         xmalloc.
1873         (quotearg_alloc): Use xcharalloc rather than xmalloc.
1874         (struct slotvec): Move to top level.
1875         (quotearg_n_options): Rewrite to avoid xmalloc.
1876         * lib/xalloc.h (xcharalloc): New function.
1877         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
1878         [defined __cplusplus]: Add function template that provides result
1879         type propagation.  This part of the change is from Bruno Haible.
1880
1881 2006-10-29  Bruno Haible  <bruno@clisp.org>
1882
1883         Make it compile in C++ mode.
1884         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
1885         * lib/strnlen1.c (strnlen1): Cast memchr result.
1886         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
1887         * lib/clean-temp.c (string_equals, string_hash): Add casts.
1888         (create_temp_dir): Rename local variable 'template'.
1889         (compile_csharp_using_sscli): Add cast.
1890         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
1891         * lib/findprog.c (find_in_path): Likewise.
1892         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
1893         * lib/wait-process.c (register_slave_subprocess): Likewise.
1894
1895 2006-10-22  Bruno Haible  <bruno@clisp.org>
1896
1897         * modules/tsearch: New file.
1898         * lib/tsearch.h: New file.
1899         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
1900         * m4/tsearch.m4: New file.
1901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
1902
1903 2006-10-29  Eric Blake  <ebb9@byu.net>
1904
1905         * lib/arcfour.c: Assume config.h.
1906         * lib/arctwo.c: Likewise.
1907         * lib/base64.c: Likewise.
1908         * lib/check-version.c: Likewise.
1909         * lib/crc.c: Likewise.
1910         * lib/des.c: Likewise.
1911         * lib/gc-gnulib.c: Likewise.
1912         * lib/gc-libgcrypt.c: Likewise.
1913         * lib/gc-pbkdf2-sha1.c: Likewise.
1914         * lib/getaddrinfo.c: Likewise.
1915         * lib/getdelim.c: Likewise.
1916         * lib/getline.c: Likewise.
1917         * lib/hmac-md5.c: Likewise.
1918         * lib/hmac-sha1.c: Likewise.
1919         * lib/iconvme.c: Likewise.
1920         * lib/md2.c: Likewise.
1921         * lib/md4.c: Likewise.
1922         * lib/memxor.c: Likewise.
1923         * lib/read-file.c: Likewise.
1924         * lib/readline.c: Likewise.
1925         * lib/rijndael-alg-fst.c: Likewise.
1926         * lib/rijndael-api-fst.c: Likewise.
1927         * lib/xgetdomainname.c: Likewise.
1928
1929 2006-10-28  Eric Blake  <ebb9@byu.net>
1930
1931         * lib/xstrndup.c: Assume config.h.
1932
1933 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1934
1935         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
1936         stat-macros.h is now for our own macros, whereas stat_h is for
1937         macros in the <sys/stat.h> name space.
1938         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
1939         (STAT_MACROS_H): Remove.
1940         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
1941         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
1942         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
1943         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
1944         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
1945         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
1946         Move these macros to ...
1947         * lib/stat_.h: here.  Don't include stat-macros.h.
1948         * lib/canonicalize.c: Don't include stat-macros.h.
1949         * lib/chown.c: Likewise.
1950         * lib/euidaccess.c: Likewise.
1951         * lib/file-type.c: Likewise.
1952         * lib/filemode.c: Likewise.
1953         * lib/glob.c: Likewise.
1954         * lib/isapipe.c: Likewise.
1955         * lib/lchown.c: Likewise.
1956         * lib/lstat.c: Likewise.
1957         * lib/mkdir-p.c: Likewise.
1958         * lib/rmdir.c: Likewise.
1959         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
1960         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
1961         unless mkdir isn't declared, to speed up 'configure'.
1962         Always create sys/stat.h, since it's unlikely any real sys/stat.h
1963         would define all the S_* symbols.
1964         * modules/canonicalize (Depends-on):
1965         Depend on sys_stat, not stat-macros.
1966         * modules/chown: Likewise.
1967         * modules/euidaccess: Likewise.
1968         * modules/filemode: Likewise.
1969         * modules/file-type: Likewise.
1970         * modules/glob: Likewise.
1971         * modules/isapipe: Likewise.
1972         * modules/lchown: Likewise.
1973         * modules/lstat: Likewise.
1974         * modules/mkancesdirs: Likewise.
1975         * modules/rmdir: Likewise.
1976         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
1977         * modules/modechange: Likewise.
1978         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
1979         (configure.ac): Remove gl_STAT_MACROS.
1980         * modules/sys_stat (Depends-on): Remove stat-macros.
1981
1982 2006-10-27  Bruno Haible  <bruno@clisp.org>
1983
1984         * m4/signed.m4: Remove file.
1985         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
1986         invocation.
1987         * modules/vasnprintf (Files): Remove m4/signed.m4.
1988
1989 2006-10-27  Bruno Haible  <bruno@clisp.org>
1990
1991         Update to GNU gettext 0.16.
1992         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
1993         m4/inttypes-h.m4, m4/signed.m4.
1994         * m4/gettext.m4: Update to GNU gettext 0.16.
1995         * m4/intl.m4: New file, from GNU gettext.
1996         * m4/intldir.m4: New file, from GNU gettext.
1997         * config/srclist.txt: Update
1998
1999 2006-10-27  Eric Blake  <ebb9@byu.net>
2000
2001         * MODULES.html.sh: Document tempname.
2002         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
2003         dependencies.
2004         (Files): Move lib/tempname.c...
2005         * modules/tempname: ...to this new module.
2006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
2007         (gl_PREREQ_TEMPNAME): Move...
2008         * m4/tempname.m4: ...to this new file.
2009         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
2010         * modules/sys_stat (Depends-on): Add stat-macros.
2011         * lib/stat_.h (includes): Pick up stat macros.
2012         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
2013         if stat macros are broken.
2014         * lib/tempname.c (includes): No need to include "stat-macros.h".
2015         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
2016         (direxists, __path_search) [!_LIBC]: Don't compile these in
2017         gnulib; the tmpdir module covers that.
2018         * lib/tempname.h: New file.
2019
2020 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2021
2022         * COPYING: Explain how gnulib-tool converts licence headers.
2023         Almost all wording by Eric Blake.
2024
2025 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2026
2027         * lib/mbchar.h (is_basic_table): Make read-only.
2028         * lib/mbchar.c (is_basic_table): Likewise.
2029         Reported by John Darrington.
2030
2031 2006-10-25  Bruno Haible  <bruno@clisp.org>
2032
2033         * lib/progname.h (set_program_name): Undefine before defining.
2034
2035 2006-10-25  Bruno Haible  <bruno@clisp.org>
2036
2037         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2038         false for non-gcc C++ compilers.
2039         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2040
2041 2006-10-24  Bruno Haible  <bruno@clisp.org>
2042
2043         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
2044         iconv implementations like Irix iconv.
2045
2046 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2047
2048         * modules/vararrays: New file.
2049         * m4/vararrays.m4: New file, taken from diffutils.
2050         * MODULES.html.sh: New module vararrays.
2051
2052 2006-10-24  Karl Berry  <karl@gnu.org>
2053
2054         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
2055         Don't call GNU Unix.
2056
2057 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2058
2059         * users.txt: Add Libtool.
2060
2061         Sync from Libtool:
2062
2063         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2064
2065         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
2066         to gnulib's policy of including config.h unconditionally.
2067
2068 2006-10-24  Bruno Haible  <bruno@clisp.org>
2069
2070         * modules/wcwidth (Files): Add m4/wint_t.m4.
2071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
2072         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
2073
2074 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2075
2076         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
2077         to pacify GCC with some -W flags enabled.  Problem reported by
2078         Bruno Haible.
2079
2080 2006-10-24  Jim Meyering  <jim@meyering.net>
2081
2082         * MODULES.html.sh: Remove uinttostr.  It's not a module.
2083         Reported by Karl Berry.
2084
2085 2006-10-23  Bruno Haible  <bruno@clisp.org>
2086
2087         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
2088
2089 2006-10-24  Bruno Haible  <bruno@clisp.org>
2090
2091         * lib/gl_list.h: Use C comment style, not C++ comment style.
2092
2093 2006-10-23  Eric Blake  <ebb9@byu.net>
2094
2095         * lib/getaddrinfo.c (includes): Add missing include.
2096
2097 2006-10-23  Bruno Haible  <bruno@clisp.org>
2098             Paul Eggert  <eggert@cs.ucla.edu>
2099
2100         Ability to rename obstack_free.
2101         * lib/obstack.h (__obstack_free): New macro. Declare instead of
2102         obstack_free.
2103         (obstack_free): Invoke the __obstack_free macro.
2104         * lib/obstack.c (obstack_free): Use __obstack_free macro.
2105
2106 2006-10-23  Bruno Haible  <bruno@clisp.org>
2107             Paul Eggert  <eggert@cs.ucla.edu>
2108
2109         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
2110         __argc, __argv from the declaration. (They are defined as macros on
2111         mingw.)
2112
2113 2006-10-22  Bruno Haible  <bruno@clisp.org>
2114
2115         * doc/gnulib-intro.texi: New file.
2116         * doc/gnulib.texi: Include it.
2117
2118 2006-10-21  Bruno Haible  <bruno@clisp.org>
2119
2120         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
2121         "Introduction", "Miscellanous Notes", "Particular Modules".
2122
2123 2006-10-21  Bruno Haible  <bruno@clisp.org>
2124
2125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2126         Change mostlyclean-local rule to avoid sh syntax error from bash
2127         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
2128
2129 2006-10-23  Jim Meyering  <jim@meyering.net>
2130
2131         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
2132         in place of snprintf.
2133
2134         * modules/inttostr (Files): Add lib/uinttostr.c.
2135         * lib/uinttostr.c (inttostr): New file/function.
2136         * lib/inttostr.h (uinttostr): Declare.
2137         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
2138         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
2139         Add uinttostr.
2140         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
2141
2142 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2143
2144         * lib/canonicalize.c (ELOOP): Define if not already defined.
2145         Problem reported by Bruno Haible in
2146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
2147
2148 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2149
2150         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
2151         Problem reported by Perry Smith and Ville Laurikari.
2152
2153         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
2154         uses.
2155
2156 2006-10-19  Bruno Haible  <bruno@clisp.org>
2157
2158         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
2159         for mingw.
2160
2161 2006-10-19  Bruno Haible  <bruno@clisp.org>
2162
2163         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
2164         Needed for mingw.
2165
2166 2006-10-19  Bruno Haible  <bruno@clisp.org>
2167
2168         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
2169
2170 2006-10-19  Bruno Haible  <bruno@clisp.org>
2171
2172         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
2173         it.
2174
2175 2006-10-19  Bruno Haible  <bruno@clisp.org>
2176
2177         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
2178         invocation.
2179
2180 2006-10-19  Bruno Haible  <bruno@clisp.org>
2181
2182         * gnulib-tool (func_create_testdir): Don't include ftruncate and
2183         mountlist by default.
2184
2185 2006-10-16  Bruno Haible  <bruno@clisp.org>
2186
2187         * lib/c-strstr.c: Include c-strstr.h.
2188
2189 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2190
2191         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
2192         in a slash.
2193
2194 2006-10-18  Bruno Haible  <bruno@clisp.org>
2195
2196         * lib/lock.h [C++]: Wrap definitions in extern "C".
2197
2198 2006-10-18  Bruno Haible  <bruno@clisp.org>
2199
2200         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
2201         gl_LIBOBJS list.
2202
2203 2006-10-18  Bruno Haible  <bruno@clisp.org>
2204
2205         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
2206
2207 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2208
2209         * lib/xstrtol.h: Include gettext.h.
2210         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
2211         Problem reported by Eric Blake.
2212         * modules/xstrtol (Depends-on): Add gettext-h.
2213
2214 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
2215
2216         * lib/strftime.c (advance): New macro.
2217         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
2218         incomplete type, so you can't add 0 to it.  Problem and patch
2219         reported by Eelco Dolstra for dietlibc.
2220
2221 2006-10-18  Jim Meyering  <jim@meyering.net>
2222
2223         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
2224         type for a local, and rename it: s/up/user_proc/.
2225
2226 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
2227
2228         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
2229         READ_UTMP_USER_PROCESS.
2230         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
2231
2232 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
2235         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
2236
2237 2006-10-17  Eric Blake  <ebb9@byu.net>
2238
2239         * lib/sigprocmask.c (sigprocmask): Fix typo.
2240
2241         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
2242
2243         * modules/clean-temp (Makefile.am): Don't add to make output...
2244         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
2245         config.h.
2246
2247 2006-10-17  Bruno Haible  <bruno@clisp.org>
2248
2249         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
2250         differently if DEFAULT_TEXT_DOMAIN is set.
2251
2252 2006-10-16  Bruno Haible  <bruno@clisp.org>
2253
2254         * lib/clean-temp.c: Include fwriteerror.h.
2255
2256 2006-10-16  Bruno Haible  <bruno@clisp.org>
2257
2258         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
2259
2260 2006-10-16  Bruno Haible  <bruno@clisp.org>
2261
2262         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
2263         * lib/sigprocmask.h: Include <sys/types.h>.
2264         (sigset_t): Use the system's definition if present.
2265
2266 2006-10-17  Eric Blake  <ebb9@byu.net>
2267
2268         * lib/xvasprintf.c (includes): Assume config.h.
2269         * lib/xasprintf.c (includes): Likewise.
2270
2271 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2272
2273         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
2274         at least as wide as intmax_t.
2275
2276 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
2277
2278         (Imported from Automake.)
2279         * build-aux/gnupload: Update to version 1.1 of directive file.
2280
2281 2006-10-16  Eric Blake  <ebb9@byu.net>
2282
2283         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
2284         match Automake 1.10a.
2285
2286 2006-10-14  Bruno Haible  <bruno@clisp.org>
2287
2288         * modules/sigprocmask: New file.
2289         * lib/sigprocmask.h: New file.
2290         * lib/sigprocmask.c: New file.
2291         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
2292         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
2293         request sigprocmask.o.
2294         (gl_PREREQ_SIGPROCMASK): New macro.
2295         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
2296         (Depends-on): Add sigprocmask.
2297         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
2298         gt_SIGNALBLOCKING. Test for 'raise' only once.
2299         * lib/fatal-signal.c: Include sigprocmask.h.
2300         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
2301         unblock_fatal_signals): Define always.
2302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2303         sigprocmask.
2304
2305 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2306
2307         Sync from Automake.
2308         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
2309         which incorrectly sets the mode of an existing destination
2310         directory.  In some cases the unpatched install-sh could do the
2311         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
2312         system.  We hope this is rare in practice, but it's clearly worth
2313         fixing.  Problem reported by Alex Unleashed in
2314         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
2315         Also, don't bother to check for -m bugs unless we're using -m;
2316         suggested by Stepan Kasal.
2317
2318 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2319
2320         Sync from Automake.
2321         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
2322         `-c' flag, so they appear at the same position as in %FASTDEP%
2323         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
2324         which ignores unknown options only after the first non-option.
2325         Bug report against M4 by Nelson H. F. Beebe.
2326
2327 2006-10-13  Jim Meyering  <jim@meyering.net>
2328
2329         Fix a bug in yesterday's change.
2330         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
2331         p->fts_statp->st_dev would be used uninitialized.
2332         Ensures that we always call fts_stat on the very first entry.
2333         Miklos Szeredi reported that find -xdev stopped working.
2334
2335 2006-10-12  Bruno Haible  <bruno@clisp.org>
2336
2337         * gnulib-tool (func_get_automake_snippet): Append an automatically
2338         computed EXTRA_DIST augmentation.
2339         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
2340         * modules/alloca-opt (Makefile.am): Likewise.
2341         * modules/allocsa (Makefile.am): Likewise.
2342         * modules/arcfour (Makefile.am): Likewise.
2343         * modules/arctwo (Makefile.am): Likewise.
2344         * modules/argmatch (Makefile.am): Likewise.
2345         * modules/argz (Makefile.am): Likewise.
2346         * modules/atexit (Makefile.am): Likewise.
2347         * modules/backupfile (Makefile.am): Likewise.
2348         * modules/byteswap (Makefile.am): Likewise.
2349         * modules/c-strtod (Makefile.am): Likewise.
2350         * modules/c-strtold (Makefile.am): Likewise.
2351         * modules/calloc (Makefile.am): Likewise.
2352         * modules/canon-host (Makefile.am): Likewise.
2353         * modules/canonicalize (Makefile.am): Likewise.
2354         * modules/chdir-long (Makefile.am): Likewise.
2355         * modules/chdir-safer (Makefile.am): Likewise.
2356         * modules/check-version (Makefile.am): Likewise.
2357         * modules/chown (Makefile.am): Likewise.
2358         * modules/cloexec (Makefile.am): Likewise.
2359         * modules/close-stream (Makefile.am): Likewise.
2360         * modules/closeout (Makefile.am): Likewise.
2361         * modules/crc (Makefile.am): Likewise.
2362         * modules/csharpexec (Makefile.am): Likewise.
2363         * modules/cycle-check (Makefile.am): Likewise.
2364         * modules/des (Makefile.am): Likewise.
2365         * modules/dev-ino (Makefile.am): Likewise.
2366         * modules/dirfd (Makefile.am): Likewise.
2367         * modules/dirname (Makefile.am): Likewise.
2368         * modules/dup2 (Makefile.am): Likewise.
2369         * modules/eealloc (Makefile.am): Likewise.
2370         * modules/error (Makefile.am): Likewise.
2371         * modules/euidaccess (Makefile.am): Likewise.
2372         * modules/exclude (Makefile.am): Likewise.
2373         * modules/exitfail (Makefile.am): Likewise.
2374         * modules/fcntl-safer (Makefile.am): Likewise.
2375         * modules/fcntl (Makefile.am): Likewise.
2376         * modules/file-type (Makefile.am): Likewise.
2377         * modules/fileblocks (Makefile.am): Likewise.
2378         * modules/filemode (Makefile.am): Likewise.
2379         * modules/filenamecat (Makefile.am): Likewise.
2380         * modules/fnmatch (Makefile.am): Likewise.
2381         * modules/fopen-safer (Makefile.am): Likewise.
2382         * modules/fpending (Makefile.am): Likewise.
2383         * modules/fprintftime (Makefile.am): Likewise.
2384         * modules/free (Makefile.am): Likewise.
2385         * modules/fsusage (Makefile.am): Likewise.
2386         * modules/ftruncate (Makefile.am): Likewise.
2387         * modules/fts (Makefile.am): Likewise.
2388         * modules/gc-arcfour (Makefile.am): Likewise.
2389         * modules/gc-des (Makefile.am): Likewise.
2390         * modules/gc-hmac-md5 (Makefile.am): Likewise.
2391         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
2392         * modules/gc-md4 (Makefile.am): Likewise.
2393         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
2394         * modules/gc-sha1 (Makefile.am): Likewise.
2395         * modules/gc (Makefile.am): Likewise.
2396         * modules/getaddrinfo (Makefile.am): Likewise.
2397         * modules/getcwd (Makefile.am): Likewise.
2398         * modules/getdelim (Makefile.am): Likewise.
2399         * modules/getdomainname (Makefile.am): Likewise.
2400         * modules/getgroups (Makefile.am): Likewise.
2401         * modules/gethostname (Makefile.am): Likewise.
2402         * modules/gethrxtime (Makefile.am): Likewise.
2403         * modules/getline (Makefile.am): Likewise.
2404         * modules/getloadavg (Makefile.am): Likewise.
2405         * modules/getlogin_r (Makefile.am): Likewise.
2406         * modules/getndelim2 (Makefile.am): Likewise.
2407         * modules/getopt (Makefile.am): Likewise.
2408         * modules/getpagesize (Makefile.am): Likewise.
2409         * modules/getpass-gnu (Makefile.am): Likewise.
2410         * modules/getpass (Makefile.am): Likewise.
2411         * modules/getsubopt (Makefile.am): Likewise.
2412         * modules/gettime (Makefile.am): Likewise.
2413         * modules/gettimeofday (Makefile.am): Likewise.
2414         * modules/getugroups (Makefile.am): Likewise.
2415         * modules/getusershell (Makefile.am): Likewise.
2416         * modules/glob (Makefile.am): Likewise.
2417         * modules/group-member (Makefile.am): Likewise.
2418         * modules/hard-locale (Makefile.am): Likewise.
2419         * modules/hash (Makefile.am): Likewise.
2420         * modules/hmac-md5 (Makefile.am): Likewise.
2421         * modules/hmac-sha1 (Makefile.am): Likewise.
2422         * modules/human (Makefile.am): Likewise.
2423         * modules/idcache (Makefile.am): Likewise.
2424         * modules/imaxabs (Makefile.am): Likewise.
2425         * modules/imaxdiv (Makefile.am): Likewise.
2426         * modules/inet_ntop (Makefile.am): Likewise.
2427         * modules/inet_pton (Makefile.am): Likewise.
2428         * modules/intprops (Makefile.am): Likewise.
2429         * modules/inttostr (Makefile.am): Likewise.
2430         * modules/inttypes (Makefile.am): Likewise.
2431         * modules/isapipe (Makefile.am): Likewise.
2432         * modules/javaversion (Makefile.am): Likewise.
2433         * modules/lchmod (Makefile.am): Likewise.
2434         * modules/lchown (Makefile.am): Likewise.
2435         * modules/localcharset (Makefile.am): Likewise.
2436         * modules/long-options (Makefile.am): Likewise.
2437         * modules/lstat (Makefile.am): Likewise.
2438         * modules/malloc (Makefile.am): Likewise.
2439         * modules/mathl (Makefile.am): Likewise.
2440         * modules/mbchar (Makefile.am): Likewise.
2441         * modules/md2 (Makefile.am): Likewise.
2442         * modules/md4 (Makefile.am): Likewise.
2443         * modules/md5 (Makefile.am): Likewise.
2444         * modules/memcasecmp (Makefile.am): Likewise.
2445         * modules/memchr (Makefile.am): Likewise.
2446         * modules/memcmp (Makefile.am): Likewise.
2447         * modules/memcoll (Makefile.am): Likewise.
2448         * modules/memcpy (Makefile.am): Likewise.
2449         * modules/memmem (Makefile.am): Likewise.
2450         * modules/memmove (Makefile.am): Likewise.
2451         * modules/mempcpy (Makefile.am): Likewise.
2452         * modules/memrchr (Makefile.am): Likewise.
2453         * modules/memset (Makefile.am): Likewise.
2454         * modules/memxor (Makefile.am): Likewise.
2455         * modules/mkancesdirs (Makefile.am): Likewise.
2456         * modules/mkdir-p (Makefile.am): Likewise.
2457         * modules/mkdir (Makefile.am): Likewise.
2458         * modules/mkdtemp (Makefile.am): Likewise.
2459         * modules/mkstemp (Makefile.am): Likewise.
2460         * modules/mktime (Makefile.am): Likewise.
2461         * modules/modechange (Makefile.am): Likewise.
2462         * modules/mountlist (Makefile.am): Likewise.
2463         * modules/nanosleep (Makefile.am): Likewise.
2464         * modules/obstack (Makefile.am): Likewise.
2465         * modules/openat (Makefile.am): Likewise.
2466         * modules/pagealign_alloc (Makefile.am): Likewise.
2467         * modules/pathmax (Makefile.am): Likewise.
2468         * modules/physmem (Makefile.am): Likewise.
2469         * modules/poll (Makefile.am): Likewise.
2470         * modules/posixtm (Makefile.am): Likewise.
2471         * modules/posixver (Makefile.am): Likewise.
2472         * modules/putenv (Makefile.am): Likewise.
2473         * modules/quote (Makefile.am): Likewise.
2474         * modules/quotearg (Makefile.am): Likewise.
2475         * modules/raise (Makefile.am): Likewise.
2476         * modules/read-file (Makefile.am): Likewise.
2477         * modules/readline (Makefile.am): Likewise.
2478         * modules/readlink (Makefile.am): Likewise.
2479         * modules/readtokens (Makefile.am): Likewise.
2480         * modules/readutmp (Makefile.am): Likewise.
2481         * modules/realloc (Makefile.am): Likewise.
2482         * modules/regex (Makefile.am): Likewise.
2483         * modules/rename-dest-slash (Makefile.am): Likewise.
2484         * modules/rename (Makefile.am): Likewise.
2485         * modules/rijndael (Makefile.am): Likewise.
2486         * modules/rmdir (Makefile.am): Likewise.
2487         * modules/rpmatch (Makefile.am): Likewise.
2488         * modules/safe-read (Makefile.am): Likewise.
2489         * modules/safe-write (Makefile.am): Likewise.
2490         * modules/same-inode (Makefile.am): Likewise.
2491         * modules/same (Makefile.am): Likewise.
2492         * modules/save-cwd (Makefile.am): Likewise.
2493         * modules/savedir (Makefile.am): Likewise.
2494         * modules/setenv (Makefile.am): Likewise.
2495         * modules/settime (Makefile.am): Likewise.
2496         * modules/sha1 (Makefile.am): Likewise.
2497         * modules/sig2str (Makefile.am): Likewise.
2498         * modules/snprintf (Makefile.am): Likewise.
2499         * modules/stat-macros (Makefile.am): Likewise.
2500         * modules/stat-time (Makefile.am): Likewise.
2501         * modules/stdbool (Makefile.am): Likewise.
2502         * modules/stdint (Makefile.am): Likewise.
2503         * modules/stdlib-safer (Makefile.am): Likewise.
2504         * modules/stpcpy (Makefile.am): Likewise.
2505         * modules/stpncpy (Makefile.am): Likewise.
2506         * modules/strcase (Makefile.am): Likewise.
2507         * modules/strcasestr (Makefile.am): Likewise.
2508         * modules/strchrnul (Makefile.am): Likewise.
2509         * modules/strcspn (Makefile.am): Likewise.
2510         * modules/strdup (Makefile.am): Likewise.
2511         * modules/strerror (Makefile.am): Likewise.
2512         * modules/strftime (Makefile.am): Likewise.
2513         * modules/strndup (Makefile.am): Likewise.
2514         * modules/strnlen (Makefile.am): Likewise.
2515         * modules/strpbrk (Makefile.am): Likewise.
2516         * modules/strsep (Makefile.am): Likewise.
2517         * modules/strstr (Makefile.am): Likewise.
2518         * modules/strtod (Makefile.am): Likewise.
2519         * modules/strtoimax (Makefile.am): Likewise.
2520         * modules/strtok_r (Makefile.am): Likewise.
2521         * modules/strtol (Makefile.am): Likewise.
2522         * modules/strtoll (Makefile.am): Likewise.
2523         * modules/strtoul (Makefile.am): Likewise.
2524         * modules/strtoull (Makefile.am): Likewise.
2525         * modules/strtoumax (Makefile.am): Likewise.
2526         * modules/strverscmp (Makefile.am): Likewise.
2527         * modules/sys_socket (Makefile.am): Likewise.
2528         * modules/sys_stat (Makefile.am): Likewise.
2529         * modules/sysexits (Makefile.am): Likewise.
2530         * modules/time_r (Makefile.am): Likewise.
2531         * modules/timegm (Makefile.am): Likewise.
2532         * modules/timespec (Makefile.am): Likewise.
2533         * modules/tmpfile-safer (Makefile.am): Likewise.
2534         * modules/trim (Makefile.am): Likewise.
2535         * modules/unistd-safer (Makefile.am): Likewise.
2536         * modules/unlinkdir (Makefile.am): Likewise.
2537         * modules/unlocked-io (Makefile.am): Likewise.
2538         * modules/userspec (Makefile.am): Likewise.
2539         * modules/utime (Makefile.am): Likewise.
2540         * modules/utimecmp (Makefile.am): Likewise.
2541         * modules/utimens (Makefile.am): Likewise.
2542         * modules/vasnprintf (Makefile.am): Likewise.
2543         * modules/vasprintf (Makefile.am): Likewise.
2544         * modules/vsnprintf (Makefile.am): Likewise.
2545         * modules/xalloc (Makefile.am): Likewise.
2546         * modules/xgetcwd (Makefile.am): Likewise.
2547         * modules/xnanosleep (Makefile.am): Likewise.
2548         * modules/xreadlink (Makefile.am): Likewise.
2549         * modules/xstrtod (Makefile.am): Likewise.
2550         * modules/xstrtol (Makefile.am): Likewise.
2551         * modules/xstrtold (Makefile.am): Likewise.
2552         * modules/yesno (Makefile.am): Likewise.
2553         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
2554
2555 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2556
2557         * modules/error (Makefile.am): Distribute files through
2558         EXTRA_DIST, not lib_SOURCES.
2559
2560 2006-10-12  Eric Blake  <ebb9@byu.net>
2561
2562         * modules/error (Makefile.am): Distribute files in /lib.
2563         * modules/obstack (Makefile.am): Likewise.
2564
2565 2006-10-12  Bruno Haible  <bruno@clisp.org>
2566
2567         * modules/acl (Makefile.am): Distribute all files in lib/ through
2568         EXTRA_DIST.
2569         * modules/arcfour (Makefile.am): Likewise.
2570         * modules/arctwo (Makefile.am): Likewise.
2571         * modules/argmatch (Makefile.am): Likewise.
2572         * modules/argz (Makefile.am): Likewise.
2573         * modules/atexit (Makefile.am): Likewise.
2574         * modules/backupfile (Makefile.am): Likewise.
2575         * modules/c-strtod (Makefile.am): Likewise.
2576         * modules/c-strtold (Makefile.am): Likewise.
2577         * modules/calloc (Makefile.am): Likewise.
2578         * modules/canon-host (Makefile.am): Likewise.
2579         * modules/canonicalize (Makefile.am): Likewise.
2580         * modules/chdir-long (Makefile.am): Likewise.
2581         * modules/chdir-safer (Makefile.am): Likewise.
2582         * modules/check-version (Makefile.am): Likewise.
2583         * modules/chown (Makefile.am): Likewise.
2584         * modules/cloexec (Makefile.am): Likewise.
2585         * modules/close-stream (Makefile.am): Likewise.
2586         * modules/closeout (Makefile.am): Likewise.
2587         * modules/crc (Makefile.am): Likewise.
2588         * modules/cycle-check (Makefile.am): Likewise.
2589         * modules/des (Makefile.am): Likewise.
2590         * modules/dirfd (Makefile.am): Likewise.
2591         * modules/dirname (Makefile.am): Likewise.
2592         * modules/dup2 (Makefile.am): Likewise.
2593         * modules/euidaccess (Makefile.am): Likewise.
2594         * modules/exclude (Makefile.am): Likewise.
2595         * modules/exitfail (Makefile.am): Likewise.
2596         * modules/fcntl-safer (Makefile.am): Likewise.
2597         * modules/file-type (Makefile.am): Likewise.
2598         * modules/fileblocks (Makefile.am): Likewise.
2599         * modules/filemode (Makefile.am): Likewise.
2600         * modules/filenamecat (Makefile.am): Likewise.
2601         * modules/fnmatch (Makefile.am): Likewise.
2602         * modules/fopen-safer (Makefile.am): Likewise.
2603         * modules/fpending (Makefile.am): Likewise.
2604         * modules/fprintftime (Makefile.am): Likewise.
2605         * modules/free (Makefile.am): Likewise.
2606         * modules/fsusage (Makefile.am): Likewise.
2607         * modules/ftruncate (Makefile.am): Likewise.
2608         * modules/fts (Makefile.am): Likewise.
2609         * modules/gc (Makefile.am): Likewise.
2610         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
2611         * modules/getaddrinfo (Makefile.am): Likewise.
2612         * modules/getcwd (Makefile.am): Likewise.
2613         * modules/getdelim (Makefile.am): Likewise.
2614         * modules/getdomainname (Makefile.am): Likewise.
2615         * modules/getgroups (Makefile.am): Likewise.
2616         * modules/gethostname (Makefile.am): Likewise.
2617         * modules/gethrxtime (Makefile.am): Likewise.
2618         * modules/getline (Makefile.am): Likewise.
2619         * modules/getloadavg (Makefile.am): Likewise.
2620         * modules/getlogin_r (Makefile.am): Likewise.
2621         * modules/getopt (Makefile.am): Likewise.
2622         * modules/getpass (Makefile.am): Likewise.
2623         * modules/getpass-gnu (Makefile.am): Likewise.
2624         * modules/getsubopt (Makefile.am): Likewise.
2625         * modules/gettime (Makefile.am): Likewise.
2626         * modules/gettimeofday (Makefile.am): Likewise.
2627         * modules/getugroups (Makefile.am): Likewise.
2628         * modules/getusershell (Makefile.am): Likewise.
2629         * modules/glob (Makefile.am): Likewise.
2630         * modules/group-member (Makefile.am): Likewise.
2631         * modules/hard-locale (Makefile.am): Likewise.
2632         * modules/hash (Makefile.am): Likewise.
2633         * modules/hmac-md5 (Makefile.am): Likewise.
2634         * modules/hmac-sha1 (Makefile.am): Likewise.
2635         * modules/human (Makefile.am): Likewise.
2636         * modules/idcache (Makefile.am): Likewise.
2637         * modules/imaxabs (Makefile.am): Likewise.
2638         * modules/imaxdiv (Makefile.am): Likewise.
2639         * modules/inet_ntop (Makefile.am): Likewise.
2640         * modules/inet_pton (Makefile.am): Likewise.
2641         * modules/inttostr (Makefile.am): Likewise.
2642         * modules/isapipe (Makefile.am): Likewise.
2643         * modules/lchown (Makefile.am): Likewise.
2644         * modules/long-options (Makefile.am): Likewise.
2645         * modules/lstat (Makefile.am): Likewise.
2646         * modules/malloc (Makefile.am): Likewise.
2647         * modules/mathl (Makefile.am): Likewise.
2648         * modules/mbchar (Makefile.am): Likewise.
2649         * modules/md2 (Makefile.am): Likewise.
2650         * modules/md4 (Makefile.am): Likewise.
2651         * modules/md5 (Makefile.am): Likewise.
2652         * modules/memcasecmp (Makefile.am): Likewise.
2653         * modules/memchr (Makefile.am): Likewise.
2654         * modules/memcmp (Makefile.am): Likewise.
2655         * modules/memcoll (Makefile.am): Likewise.
2656         * modules/memcpy (Makefile.am): Likewise.
2657         * modules/memmem (Makefile.am): Likewise.
2658         * modules/memmove (Makefile.am): Likewise.
2659         * modules/mempcpy (Makefile.am): Likewise.
2660         * modules/memrchr (Makefile.am): Likewise.
2661         * modules/memset (Makefile.am): Likewise.
2662         * modules/memxor (Makefile.am): Likewise.
2663         * modules/mkancesdirs (Makefile.am): Likewise.
2664         * modules/mkdir (Makefile.am): Likewise.
2665         * modules/mkdir-p (Makefile.am): Likewise.
2666         * modules/mkdtemp (Makefile.am): Likewise.
2667         * modules/mkstemp (Makefile.am): Likewise.
2668         * modules/mktime (Makefile.am): Likewise.
2669         * modules/modechange (Makefile.am): Likewise.
2670         * modules/mountlist (Makefile.am): Likewise.
2671         * modules/nanosleep (Makefile.am): Likewise.
2672         * modules/openat (Makefile.am): Likewise.
2673         * modules/pagealign_alloc (Makefile.am): Likewise.
2674         * modules/physmem (Makefile.am): Likewise.
2675         * modules/poll (Makefile.am): Likewise.
2676         * modules/posixtm (Makefile.am): Likewise.
2677         * modules/posixver (Makefile.am): Likewise.
2678         * modules/putenv (Makefile.am): Likewise.
2679         * modules/quote (Makefile.am): Likewise.
2680         * modules/quotearg (Makefile.am): Likewise.
2681         * modules/raise (Makefile.am): Likewise.
2682         * modules/read-file (Makefile.am): Likewise.
2683         * modules/readline (Makefile.am): Likewise.
2684         * modules/readlink (Makefile.am): Likewise.
2685         * modules/readtokens (Makefile.am): Likewise.
2686         * modules/readutmp (Makefile.am): Likewise.
2687         * modules/realloc (Makefile.am): Likewise.
2688         * modules/regex (Makefile.am): Likewise.
2689         * modules/rename (Makefile.am): Likewise.
2690         * modules/rename-dest-slash (Makefile.am): Likewise.
2691         * modules/rijndael (Makefile.am): Likewise.
2692         * modules/rmdir (Makefile.am): Likewise.
2693         * modules/rpmatch (Makefile.am): Likewise.
2694         * modules/safe-read (Makefile.am): Likewise.
2695         * modules/safe-write (Makefile.am): Likewise.
2696         * modules/same (Makefile.am): Likewise.
2697         * modules/save-cwd (Makefile.am): Likewise.
2698         * modules/savedir (Makefile.am): Likewise.
2699         * modules/setenv (Makefile.am): Likewise.
2700         * modules/settime (Makefile.am): Likewise.
2701         * modules/sha1 (Makefile.am): Likewise.
2702         * modules/sig2str (Makefile.am): Likewise.
2703         * modules/snprintf (Makefile.am): Likewise.
2704         * modules/stdlib-safer (Makefile.am): Likewise.
2705         * modules/stpcpy (Makefile.am): Likewise.
2706         * modules/stpncpy (Makefile.am): Likewise.
2707         * modules/strcase (Makefile.am): Likewise.
2708         * modules/strcasestr (Makefile.am): Likewise.
2709         * modules/strchrnul (Makefile.am): Likewise.
2710         * modules/strcspn (Makefile.am): Likewise.
2711         * modules/strdup (Makefile.am): Likewise.
2712         * modules/strerror (Makefile.am): Likewise.
2713         * modules/strftime (Makefile.am): Likewise.
2714         * modules/strndup (Makefile.am): Likewise.
2715         * modules/strnlen (Makefile.am): Likewise.
2716         * modules/strpbrk (Makefile.am): Likewise.
2717         * modules/strsep (Makefile.am): Likewise.
2718         * modules/strstr (Makefile.am): Likewise.
2719         * modules/strtod (Makefile.am): Likewise.
2720         * modules/strtoimax (Makefile.am): Likewise.
2721         * modules/strtok_r (Makefile.am): Likewise.
2722         * modules/strtol (Makefile.am): Likewise.
2723         * modules/strtoll (Makefile.am): Likewise.
2724         * modules/strtoul (Makefile.am): Likewise.
2725         * modules/strtoull (Makefile.am): Likewise.
2726         * modules/strtoumax (Makefile.am): Likewise.
2727         * modules/strverscmp (Makefile.am): Likewise.
2728         * modules/time_r (Makefile.am): Likewise.
2729         * modules/timegm (Makefile.am): Likewise.
2730         * modules/tmpfile-safer (Makefile.am): Likewise.
2731         * modules/unistd-safer (Makefile.am): Likewise.
2732         * modules/unlinkdir (Makefile.am): Likewise.
2733         * modules/userspec (Makefile.am): Likewise.
2734         * modules/utime (Makefile.am): Likewise.
2735         * modules/utimecmp (Makefile.am): Likewise.
2736         * modules/utimens (Makefile.am): Likewise.
2737         * modules/vasnprintf (Makefile.am): Likewise.
2738         * modules/vasprintf (Makefile.am): Likewise.
2739         * modules/vsnprintf (Makefile.am): Likewise.
2740         * modules/xalloc (Makefile.am): Likewise.
2741         * modules/xgetcwd (Makefile.am): Likewise.
2742         * modules/xnanosleep (Makefile.am): Likewise.
2743         * modules/xreadlink (Makefile.am): Likewise.
2744         * modules/xstrtod (Makefile.am): Likewise.
2745         * modules/xstrtol (Makefile.am): Likewise.
2746         * modules/xstrtold (Makefile.am): Likewise.
2747         * modules/yesno (Makefile.am): Likewise.
2748
2749 2006-10-12  Jim Meyering  <jim@meyering.net>
2750
2751         * m4/getloadavg.m4: Revert the change below.
2752
2753         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
2754         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
2755         fail with a symlink, which is what coreutils' ./bootstrap now
2756         creates by default.
2757
2758 2006-10-12  Bruno Haible  <bruno@clisp.org>
2759
2760         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
2761         mingw.
2762         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
2763         MSVC and mingw explicitly.
2764
2765 2006-10-11  Simon Josefsson  <jas@extundo.com>
2766             Bruno Haible  <bruno@clisp.org>
2767
2768         Add support for multiple gnulib-tool invocations in the scope of a
2769         single configure.ac file.
2770         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
2771         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
2772         with the same contents as the _LIBADD variable.
2773         (func_emit_initmacro_start, func_emit_initmacro_end,
2774         func_emit_initmacro_done): New functions.
2775         (func_import, func_create_testdir): Invoke them. Allow the identifiers
2776         gl_LIBOBJS and gl_LTLIBOBJS.
2777
2778 2006-10-11  Bruno Haible  <bruno@clisp.org>
2779
2780         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
2781         (func_create_testdir): Don't create po/Makefile.am, don't invoke
2782         autoreconf. Instead, invoke autopoint explicitly but move back the
2783         *.m4 files from gnulib.
2784
2785 2006-10-11  Bruno Haible  <bruno@clisp.org>
2786
2787         * gnulib-tool (func_usage): Make module names after --create-testdir
2788         optional.
2789         (func_create_testdir): If no module was specified, use nearly all
2790         modules.
2791
2792 2006-10-12  Jim Meyering  <jim@meyering.net>
2793
2794         Big performance improvement for fts-based tools that use FTS_NOSTAT.
2795         Avoid spurious inode-mismatch problems on non-POSIX file systems.
2796         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
2797         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
2798         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
2799         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
2800         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
2801         (fts_set_stat_required): New function.
2802         (fts_open): Defer the calls to fts_stat, if possible or requested.
2803         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
2804         into fts_stat itself.
2805         (fts_read): Perform any required (deferred) fts_stat call.
2806         (fts_build): Likewise, for the directory we're about to open and read.
2807         In the readdir loop, carefully decide whether each entry will require
2808         an eventual call to fts_stat, using dirent.d_type info if available.
2809         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
2810         a command line argument into this function.  Update all callers.
2811         Map a return value of FTS_DOT to FTS_D for a command line argument.
2812         * modules/fts (Depends-on): Add d-type.  Alphabetize.
2813         Thanks to Miklos Szeredi for his tenacity and for the initial
2814         bug report about "find" failing on a FUSE-based file system.
2815
2816         * lib/fts.c (fts_open): Use consistent indentation.
2817
2818 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
2821         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
2822         reported by Jim Meyering.  All uses of cache variables renamed
2823         to match Autoconf's.
2824         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
2825         the other one.
2826
2827         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
2828         Fix misspelling in diagnostic.
2829
2830 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2831
2832         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
2833         defined.  Problem reported by Matthew Woehlke.
2834
2835         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
2836         Add support for Tandem NonStop R series.
2837         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
2838         Use new macro.
2839
2840         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
2841         (has_trailing_slash): Omit size arg; all callers changed.
2842         Omit 'inline', since it doesn't help performance and we'd
2843         need to configure it.
2844         Don't count //, ///, etc. as having a trailing slash.
2845         As a side effect, this removes a C99ism reported by Matthew Woehlke.
2846         (rpl_rename_dest_slash): On failure, use rename's errno rather
2847         than (in some cases) an incorrect or junk errno.
2848         Simplify code by removing need to compute length; this does
2849         cause it to make two passes instead of one over the file name,
2850         but it's worth it.
2851
2852         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
2853         change, since Autoconf's version may no longer be appropriate now
2854         that we are using CVS Autoconf's version.  Add support for Tandem.
2855
2856 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2857             Bruno Haible  <bruno@clisp.org>
2858
2859         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
2860         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
2861         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
2862         gl_AC_TYPE_LONG_LONG.
2863
2864         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
2865         instead of HAVE_LONG_LONG.
2866         * lib/printf-args.c (printf_fetchargs): Likewise.
2867         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2868         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2869         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
2870         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
2871         gl_AC_TYPE_LONG_LONG.
2872
2873 2006-10-11  Bruno Haible  <bruno@clisp.org>
2874
2875         * m4/longlong.m4: Add comments.
2876         * m4/ulonglong.m4: Likewise.
2877
2878 2006-10-10  Bruno Haible  <bruno@clisp.org>
2879
2880         Make it possible to #define stpcpy, strdup to aliases.
2881         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
2882         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
2883
2884 2006-10-10  Bruno Haible  <bruno@clisp.org>
2885
2886         Make it possible to #define gcd to an alias.
2887         * lib/gcd.c: Include config.h.
2888
2889 2006-10-10  Bruno Haible  <bruno@clisp.org>
2890
2891         Make it possible to #define c_isascii to an alias.
2892         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
2893         defined. Undefine the macros before defining them, to avoid gcc
2894         warnings.
2895         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
2896         define NO_C_CTYPE_MACROS early.
2897
2898 2006-10-10  Bruno Haible  <bruno@clisp.org>
2899
2900         Make it possible to #define set_program_name to an alias.
2901         * lib/progname.c: Don't undefine set_program_name; instead, undefine
2902         ENABLE_RELOCATABLE early.
2903
2904 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2905
2906         Port to Tandem NSK OSS, which has 64-bit signed int but at most
2907         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
2908         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
2909         More generally, don't assume that 64-bit signed int is available
2910         if unsigned int is, and vice versa.
2911         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
2912         unsigned symbols, not on their signed counterparts.
2913         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
2914         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
2915         (UINT64_C, UINTMAX_C):
2916         Likewise.
2917         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
2918         unsigned counterparts.
2919         (Have_long_long, Unsigned): New macros.
2920         (Int): Renamed from INT.
2921         (strtoimax): Use the new macros.
2922         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
2923         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
2924         * modules/inttypes (inttypes.h): Substitute
2925         HAVE_UNSIGNED_LONG_LONG_INT.
2926         * modules/stdint (stdint.h): Likewise.
2927         (Files): Add m4/ulonglong.m4.
2928
2929 2006-10-10  Bruno Haible  <bruno@clisp.org>
2930
2931         Fix a gcc -Wshadow warning.
2932         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
2933         to 'bucket'.
2934         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
2935         gl_linked_indexof_from_to): Likewise.
2936         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
2937         Likewise.
2938         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
2939         Likewise.
2940         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
2941         Reported by Eric Blake.
2942
2943 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
2944
2945         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
2946         for NetBSD.  Problem reported by Bruno Haible.
2947
2948 2006-10-09  Jim Meyering  <jim@meyering.net>
2949
2950         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
2951         Patch from Bruno Haible.
2952
2953 2006-10-09  Jim Meyering  <jim@meyering.net>
2954
2955         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
2956         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
2957         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
2958
2959 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2960
2961         Don't include <config.h> twice; this doesn't work in some cases,
2962         e.g., when config.h has "#define intmax_t long long int" and
2963         we include <config.h>, <inttypes.h>, <config.h> in that order.
2964         Problem reported by Matthew Woehlke in:
2965         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
2966         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
2967         * lib/fts-cycle.c: Don't include config.h.
2968         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
2969         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
2970         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
2971         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
2972         inttypes.h.
2973         * lib/xstrtoumax.c: Likewise.
2974         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
2975         __strtol and the like, so that this module is more like its siblings.
2976         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
2977         Remove; no longer needed now that we assume gnulib inttypes.h.
2978
2979 2006-10-08  Bruno Haible  <bruno@clisp.org>
2980
2981         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
2982         option.
2983
2984 2006-10-07  Jim Meyering  <jim@meyering.net>
2985
2986         * modules/inttypes (inttypes.h): Revert what seems to have been
2987         an inadvertent part of today's change: use "|", not "/" in the
2988         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
2989
2990 2006-10-07  Bruno Haible  <bruno@clisp.org>
2991
2992         * modules/sublist: New file.
2993
2994 2006-10-07  Bruno Haible  <bruno@clisp.org>
2995
2996         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
2997         * modules/argz (argz.h): Likewise.
2998         * modules/arpa_inet (arpa/inet.h): Likewise.
2999         * modules/byteswap (byteswap.h): Likewise.
3000         * modules/configmake (configmake.h): Likewise.
3001         * modules/fcntl (fcntl.h): Likewise.
3002         * modules/fnmatch (fnmatch.h): Likewise.
3003         * modules/getopt (getopt.h): Likewise.
3004         * modules/glob (glob.h): Likewise.
3005         * modules/inttypes (inttypes.h): Likewise.
3006         * modules/netinet_in (netinet/in.h): Likewise.
3007         * modules/poll (poll.h): Likewise.
3008         * modules/stdbool (stdbool.h): Likewise.
3009         * modules/stdint (stdint.h): Likewise.
3010         * modules/sys_select (sys/select.h): Likewise.
3011         * modules/sys_socket (sys/socket.h): Likewise.
3012         * modules/sys_stat (sys/stat.h): Likewise.
3013         * modules/sysexits (sysexits.h): Likewise.
3014         * modules/unistd (unistd.h): Likewise.
3015         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3016         Add a "DO NOT EDIT" comment to the generated file.
3017         (func_import): Likewise for gnulib-comp.m4.
3018
3019 2006-10-07  Bruno Haible  <bruno@clisp.org>
3020
3021         * lib/gl_sublist.h: New file.
3022         * lib/gl_sublist.c: New file.
3023
3024 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3025
3026         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
3027         name (relative to the original working directory) and the file
3028         name component (relative to the temporary working directory).  All
3029         callers changed.
3030         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
3031         * lib/mkdir-p.c (make_dir_parents): Likewise.
3032         * lib/mkdir-p.h (make_dir_parents): Likewise.
3033
3034 2006-10-06  Eric Blake  <ebb9@byu.net>
3035
3036         Define several macros for use by the clean-temp module.
3037         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
3038         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
3039         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
3040
3041         * lib/clean-temp.h (close_stream_temp): New declaration.
3042         * lib/clean-temp.c (includes): Pull in headers according to what
3043         other modules are in use.
3044         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
3045
3046 2006-10-06  Bruno Haible  <bruno@clisp.org>
3047
3048         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
3049         instead of fopen, fwriteerror.
3050
3051 2006-10-06  Bruno Haible  <bruno@clisp.org>
3052
3053         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
3054         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
3055         int.
3056         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
3057         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
3058         Return an error indicator.
3059         Suggested by Eric Blake.
3060
3061 2006-10-06  Bruno Haible  <bruno@clisp.org>
3062
3063         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
3064         Reported by Eric Blake.
3065
3066 2006-10-06  Bruno Haible  <bruno@clisp.org>
3067
3068         * modules/closeout (Description): Mention stderr too.
3069
3070 2006-10-06  Bruno Haible  <bruno@clisp.org>
3071         and Paul Eggert  <eggert@cs.ucla.edu>
3072
3073         * lib/closeout.c (close_stdout): Also close stderr.
3074         * lib/closeout.h: Update comment.
3075
3076 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3077
3078         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
3079         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
3080         * lib/dirchownmod.c: Include lchown.h.
3081         * lib/lchown.c: Don't include files that lchown.h now includes.
3082         Don't declare chown, since lchown.h now does that.
3083         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
3084         (lchown): Define to rpl_chown if lchown is declared but
3085         does not exist.  Declare using a prototype if lchown is not
3086         declared.  Add a copyright notice.
3087         * lib/mkstemp.h: Include <unistd.h>.
3088         * lib/openat.c: Include lchown.h.
3089
3090         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
3091         we now test for that separately.
3092         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
3093         rather than O_NOFOLLOW, when testing whether it's possible to
3094         avoid a race condition reliably.
3095         * lib/savewd.c (savewd_chdir): Likewise.
3096
3097         Remove macros that are no longer needed now that stdint.h is
3098         reliable.
3099         * lib/fsusage.c (UINTMAX_MAX): Remove.
3100         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
3101         * lib/utimecmp.c (SIZE_MAX): Remove.
3102
3103         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
3104
3105         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
3106         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
3107         O_NOATIME works.
3108
3109 2006-10-05  Bruno Haible  <bruno@clisp.org>
3110
3111         * lib/gl_list.h (gl_sortedlist_search_from_to,
3112         gl_sortedlist_indexof_from_to): New declarations.
3113         (gl_list_implementation): New fields sortedlist_search_from_to,
3114         sortedlist_indexof_from_to.
3115         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
3116         inline functions.
3117         * lib/gl_list.c (gl_sortedlist_search_from_to,
3118         gl_sortedlist_indexof_from_to): New functions.
3119         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
3120         function.
3121         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
3122         (gl_array_sortedlist_search_from_to): New function.
3123         (gl_array_list_implementation): Update.
3124         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
3125         function.
3126         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
3127         (gl_carray_sortedlist_search_from_to): New function.
3128         (gl_carray_list_implementation): Update.
3129         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
3130         gl_linked_sortedlist_indexof_from_to): New functions.
3131         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3132         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3133         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
3134         gl_tree_sortedlist_indexof_from_to): New functions.
3135         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3136         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3137         Update.
3138         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3139         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
3140         Update.
3141
3142 2006-10-05  Bruno Haible  <bruno@clisp.org>
3143
3144         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
3145         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
3146         (struct gl_list_implementation): Add fields search_from_to,
3147         indexof_from_to. Remove fields search, indexof.
3148         (gl_list_search): Use the search_from_to method.
3149         (gl_list_search_from, gl_list_search_from_to): New functions.
3150         (gl_list_indexof): Use the indexof_from_to method.
3151         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3152         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
3153         (gl_list_search_from, gl_list_search_from_to): New functions.
3154         (gl_list_indexof): Use the indexof_from_to method.
3155         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3156         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
3157         gl_array_indexof. Add start_index, end_index arguments.
3158         (gl_array_search_from_to): Renamed from gl_array_search. Add
3159         start_index, end_index arguments.
3160         (gl_array_remove, gl_array_list_implementation): Update.
3161         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
3162         gl_carray_indexof. Add start_index, end_index arguments.
3163         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
3164         start_index, end_index arguments.
3165         (gl_carray_remove, gl_carray_list_implementation): Update.
3166         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
3167         gl_linked_search. Add start_index, end_index arguments.
3168         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
3169         start_index, end_index arguments.
3170         (gl_linked_remove): Update.
3171         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3172         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3173         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
3174         field to 'size_t'.
3175         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
3176         gl_tree_search. Add start_index, end_index arguments.
3177         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3178         start_index, end_index arguments.
3179         (gl_tree_remove): Update.
3180         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3181         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3182         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
3183         function.
3184         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
3185         gl_tree_search. Add start_index, end_index arguments.
3186         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3187         start_index, end_index arguments.
3188         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3189         Update.
3190         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3191
3192 2006-10-05  Bruno Haible  <bruno@clisp.org>
3193
3194         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
3195
3196         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
3197         fwriteerror_temp): New declarations.
3198         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
3199         (descriptors): New variable.
3200         (cleanup): First, close the descriptors.
3201         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
3202         fclose_temp, fwriteerror_temp): New functions.
3203
3204 2006-10-04  Jim Meyering  <jim@meyering.net>
3205
3206         * lib/fts.c (fts_open): Tiny comment change.
3207
3208 2006-10-04  Bruno Haible  <bruno@clisp.org>
3209
3210         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
3211         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
3212         gl_LOCK_BODY.
3213         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
3214         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
3215         gl_LOCK_EARLY_BODY.
3216         (gl_LOCK): Require gl_LOCK_BODY.
3217
3218 2006-10-04  Bruno Haible  <bruno@clisp.org>
3219
3220         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
3221         (gl_oset_search_atleast): New declaration.
3222         (struct gl_oset_implementation): Add field 'search_atleast'.
3223         (gl_oset_search_atleast): New inline function.
3224         * lib/gl_oset.c (gl_oset_search_atleast): New function.
3225         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
3226         (gl_array_oset_implementation): Update.
3227         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
3228         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
3229         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
3230
3231 2006-10-04  Bruno Haible  <bruno@clisp.org>
3232
3233         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
3234
3235 2006-10-03  Bruno Haible  <bruno@clisp.org>
3236
3237         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
3238         from gl_avltreehash_list_implementation.
3239
3240 2006-10-03  Bruno Haible  <bruno@clisp.org>
3241
3242         * lib/gl_oset.c (gl_oset_add): Fix return type.
3243
3244 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
3245
3246         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
3247
3248 2006-10-02  Eric Blake  <ebb9@byu.net>
3249
3250         * modules/strnlen (Depends-on): Add extensions.
3251
3252 2006-10-02  Eric Blake  <ebb9@byu.net>
3253
3254         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
3255         definition in 2.60+.
3256
3257 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3258
3259         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
3260         checks.
3261
3262 2006-10-02  Bruno Haible  <bruno@clisp.org>
3263
3264         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
3265         to the AUTOMAKE_OPTIONS.
3266         Reported by Jim Meyering.
3267
3268 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
3269
3270         Work around bug in Solaris 10 /proc file system:
3271         /proc/self/fd/NNN/.. isn't the parent directory of
3272         the directory whose file descriptor is NNN.  This needs to
3273         be worked around at run time, not compile time, since a
3274         program might be built on Solaris 8, where things work, and
3275         run on Solaris 10.
3276         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
3277         to use the following interface instead:
3278         (OPENAT_BUFFER_SIZE): New macro.
3279         (openat_proc_name): New function.
3280         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
3281         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
3282         Likewise.
3283         * lib/openat-proc.c: New file.
3284         * modules/openat (Files): Add lib/openat-proc.c.
3285         (Depends-on): Add same-inode, stdbool.
3286         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
3287
3288 2006-09-29  Bruno Haible  <bruno@clisp.org>
3289
3290         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
3291         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
3292         argument. Set stdout_closed before testing for ferror, not after.
3293         (fwriteerror, fwriteerror_no_ebadf): New functions.
3294
3295 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3296
3297         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
3298
3299 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
3300
3301         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
3302         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
3303
3304 2006-09-28  Jim Meyering  <jim@meyering.net>
3305
3306         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
3307         Include <unistd.h>.
3308
3309 2006-09-28  Bruno Haible  <bruno@clisp.org>
3310
3311         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
3312         * modules/linkedhash-list (Depends-on): Likewise.
3313         * modules/rbtreehash-list (Depends-on): Likewise.
3314
3315 2006-09-28  Bruno Haible  <bruno@clisp.org>
3316
3317         * lib/strndup.h: Simplify the redefinition of strndup.
3318         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
3319         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
3320
3321 2006-09-28  Bruno Haible  <bruno@clisp.org>
3322
3323         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
3324         * lib/gl_linkedhash_list.c: Likewise.
3325         * lib/gl_rbtreehash_list.c: Likewise.
3326
3327 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
3328
3329         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
3330         getaddrinfo.
3331
3332         * lib/__fpending.h: Don't include <stdio_ext.h> unless
3333         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
3334         it causes <stdio_ext.h> to cause a compile-time error.
3335         Problem reported by Nelson H. F. Beebe.
3336         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
3337         of HAVE_DECL___PENDING.
3338
3339         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
3340         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
3341         declaration.
3342
3343 2006-09-27  Jim Meyering  <jim@meyering.net>
3344
3345         This file could end up with a definition for a function
3346         named __strndup, rather than rpl_strndup on a system with
3347         incomplete weak_alias support.
3348         * lib/strndup.c (strndup): Rename from __strndup.
3349         Remove #defines that used to map __strndup to strndup.
3350         Don't use K&R prototypes.
3351         Remove LIBC-related code, since this file is not sync'd with glibc.
3352         * lib/strndup.h: Revamp, accordingly.
3353         * m4/strndup.m4: Modernize.
3354
3355 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3356
3357         * modules/savewd (Depends-on): Add 'raise'.
3358         * lib/savewd.c: Include <signal.h>, for 'raise'.
3359
3360 2006-09-26  Jim Meyering  <jim@meyering.net>
3361
3362         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
3363         when we detect Darwin 8.7.0's acl_get_file bug.
3364         Rearrange to perform the new (below) run-test while $LIBS
3365         contains any acl-related library.  Set USE_ACL at the end.
3366         (gl_ACL_GET_FILE): New function.
3367
3368 2006-09-26  Eric Blake  <ebb9@byu.net>
3369
3370         * lib/verror.c: Include <config.h> unconditionally.
3371
3372 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3373
3374         * modules/clock-time (Maintainer): Add self.
3375         * modules/getlogin_r (Depends-on): Add extensions.
3376
3377 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3378
3379         * modules/clock-time: New module.
3380         * modules/nanosleep (Depends-on): Add clock-time.
3381         * modules/gethrxtime (Depends-on): Likewise.
3382         * modules/gettime (Depends-on): Likewise.
3383         * modules/settime (Depends-on): Likewise.
3384
3385         * modules/fts-lgpl: Depend on openat.
3386         * modules/mkancesdirs: Depend on savewd.
3387         * modules/mkdir-p: Likewise.
3388
3389 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3390
3391         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
3392
3393         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
3394         `gl_have_arbitrary_file_name_length_limit' to
3395         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
3396         actually works between configure runs.
3397
3398 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3399             Bruno Haible  <bruno@clisp.org>
3400
3401         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
3402
3403 2006-09-25  Jim Meyering  <jim@meyering.net>
3404
3405         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
3406         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
3407
3408 2006-09-25  Eric Blake  <ebb9@byu.net>
3409
3410         * gnulib-tool (func_import, func_create_testdir): Fix typos in
3411         exec's in 2006-09-18 patch when shuffling fds.
3412
3413 2006-09-25  Bruno Haible  <bruno@clisp.org>
3414
3415         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
3416         Reported by Jim Meyering.
3417
3418 2006-09-24  Jim Meyering  <jim@meyering.net>
3419
3420         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
3421         compare a pointer against a literal "0".  That caused failures with
3422         at least HP-UX's hpcc.
3423
3424 2006-09-22  Simon Josefsson  <jas@extundo.com>
3425
3426         * modules/gc-sha1:
3427         * modules/gc-md4:
3428         * modules/gc-hmac-sha1:
3429         * modules/gc-hmac-md5:
3430         * modules/gc-des:
3431         * modules/gc-arcfour: Distribute more files.
3432
3433 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3434
3435         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
3436         (gl_linked_iterator_from_to): Initialize struct completely.
3437         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
3438         (gl_tree_iterator_from_to): Likewise
3439         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
3440         * lib/gl_array_list.c [lint] (gl_array_iterator)
3441         (gl_array_iterator_from_to): Likewise.
3442         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
3443         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
3444         (gl_carray_iterator_from_to): Likewise.
3445
3446         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
3447         * lib/md4.c (md4_process_block): Remove unused variable.
3448         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
3449         parentheses for clarity.
3450
3451 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3452
3453         * modules/bison-i18n (Depends-on): Add gettext.
3454
3455 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3456
3457         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
3458         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
3459         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
3460         also add missing comma that caused broken test.
3461         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
3462         stdlib.h, for `abort'.
3463         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
3464         variables.
3465         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
3466         include unistd.h if present, for `rmdir'.
3467         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
3468         variables.
3469         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
3470         in the process include standard headers for prototypes.
3471         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
3472         gets declared on GNU/Linux.
3473         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
3474         unistd.h, for `rmdir'.
3475         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
3476
3477         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
3478         always true.
3479         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
3480
3481         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
3482
3483 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3484
3485         * gnulib-tool (func_version): Create output all at once.  This
3486         may help avoid triggering unnecessary SIGPIPEs, and at any
3487         rate it doesn't hurt.
3488
3489 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3490             Bruno Haible  <bruno@clisp.org>
3491
3492         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
3493         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3494         * m4/signed.m4 (bh_C_SIGNED): Likewise.
3495
3496         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
3497         (gl_FUNC_VASPRINTF): Invoke it.
3498
3499 2006-09-22  Bruno Haible  <bruno@clisp.org>
3500
3501         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
3502         getloadavg.c as first argument.
3503
3504 2006-09-22  Bruno Haible  <bruno@clisp.org>
3505
3506         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
3507         at the beginning of the gl_INIT macro.
3508         * modules/getloadavg (configure.ac): Pass $gl_source_base to
3509         gl_GETLOADAVG.
3510
3511 2006-09-22  Bruno Haible  <bruno@clisp.org>
3512
3513         * gnulib-tool (func_create_megatestdir): Don't include the config-h
3514         module.
3515         Suggested by Ralf Wildenhues.
3516
3517 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3518
3519         Import this patch from libc:
3520
3521         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
3522
3523         * lib/regex_internal.c (re_string_reconstruct): Handle
3524         offset < pstr->valid_raw_len && pstr->offsets_needed case.
3525         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
3526         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
3527         re_string_context_at.
3528
3529         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
3530         now requires it.
3531         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
3532         gl_REGEX now does it for us.
3533         (gl_REGEX): Add test taken from
3534         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
3535
3536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
3537         Check that large offsets work.  Modernize Autoconf usages.
3538         Prefer "yes" to mean a good thing rather than a bad.
3539         Don't put "#define mkstemp" in config.h, as this might interfere
3540         with standard system headers that "#define mkstemp mkstemp64".
3541
3542         * modules/mkstemp (Depends-on): Add extensions, so that
3543         mkstemp is visible on some platforms.
3544         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
3545         (Include): Change to "mkstemp.h" from <stdlib.h>.
3546         (Files): Add mkstemp.h.
3547
3548         * lib/mkstemp.h: New file, since some standard headers
3549         #define mkstemp.
3550         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
3551         Include "mkstemp.h".
3552         Make the _LIBC code resemble glibc original more,
3553         e.g., use K&R style.
3554         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
3555         (mkstemp): Remove, since mkstemp.h does this for us.
3556         * lib/stdlib--.h: Include mkstemp.h.
3557
3558         Import this patch from libc:
3559
3560         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
3561
3562         * lib/tempname.c (__gen_tempname): Change attempts_min
3563         into a macro.  Use preprocessor to decide how to initialize
3564         attempts [Coverity CID 67].
3565
3566 2006-09-20  Bruno Haible  <bruno@clisp.org>
3567
3568         * lib/mkdtemp.c: Import from libc.
3569         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
3570                 * sysdeps/posix/tempname.c (__gen_tempname): Change
3571                 attempts_min into a macro.  Use preprocessor to decide how to
3572                 initialize attempts [Coverity CID 67].
3573         2001-11-27  Paul Eggert  <eggert@twinsun.com>
3574                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
3575                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
3576
3577 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3578
3579         * gnulib-tool (func_exit): New function, to allow to pass the
3580         exit status portably through the trap.  Use everywhere.
3581         (--help, --version): Signal a write error.
3582         (trap): catch SIGPIPE, for write errors.
3583         Exit at the end of the trap, with the correct exit status.
3584
3585 2006-09-19  Karl Berry  <karl@gnu.org>
3586
3587         * doc/gnulib.texi: note about the license texinfo files.
3588
3589 2006-09-19  Eric Blake  <ebb9@byu.net>
3590
3591         * gnulib-tool: Avoid space-tab.
3592
3593 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3594
3595         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
3596         that prevented coreutils 6.1 from building.  Problem reported
3597         by Petter Reinholdtsen.
3598
3599 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3600
3601         * gnulib-tool (avoidlist): Fix typo that broke options like
3602         --avoid=lock that are used by coreutils bootstrap.
3603
3604 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
3605
3606         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
3607         more systematically.
3608
3609 2006-09-18  Jim Meyering  <jim@meyering.net>
3610
3611         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
3612
3613 2006-09-18  Bruno Haible  <bruno@clisp.org>
3614
3615         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
3616
3617 2006-09-18  Bruno Haible  <bruno@clisp.org>
3618
3619         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
3620         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
3621         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
3622         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
3623         * m4/gettext.m4: Require autoconf >= 2.52.
3624         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
3625         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
3626         of gl_cv_header_inttypes_h.
3627
3628 2006-09-18  Bruno Haible  <bruno@clisp.org>
3629
3630         * lib/javaversion.c: Include configmake.h.
3631
3632 2006-09-18  Bruno Haible  <bruno@clisp.org>
3633
3634         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
3635         avoid that the while loops be executed in a subshell.
3636
3637 2006-09-18  Bruno Haible  <bruno@clisp.org>
3638
3639         * MODULES.html.sh (func_module): Break long lines.
3640         Suggested by Bruce Korb <bkorb@gnu.org>.
3641
3642 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3643
3644         Speed up by a factor of 1.12.
3645         * gnulib-tool (nl): New variable.
3646         (func_import): Rewrite include directive extraction to only read each
3647         directive once.
3648
3649 2006-09-17  Bruno Haible  <bruno@clisp.org>
3650
3651         * modules/javaversion (Makefile.am): Remove DEFS setting.
3652         (Depends-on): Add configmake, for PKGDATADIR definition.
3653
3654 2006-09-17  Bruno Haible  <bruno@clisp.org>
3655
3656         * gnulib-tool (func_create_testdir): Rewrite all files at once.
3657
3658 2006-09-17  Bruno Haible  <bruno@clisp.org>
3659
3660         * gnulib-tool (func_append): New function, stolen from libtool.m4.
3661         (func_modules_transitive_closure, func_modules_add_dummy,
3662         func_modules_to_filelist, func_import, func_create_testdir,
3663         func_create_megatestdir, ...): Use it wherever possible.
3664         Suggested by Ralf Wildenhues.
3665
3666 2006-09-16  Karl Berry  <karl@gnu.org>
3667
3668         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
3669         to avoid sectioning errors.
3670         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
3671         [ifinfo]: blank line after @center-ed titles.
3672         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
3673         Spell FSF address consistently with others.
3674         (These changes approved by rms.)
3675
3676 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3677
3678         Speed up by a factor of 1.61.
3679         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
3680         already checked module names again.
3681
3682 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3683
3684         Speed up by a factor of 1.13.
3685         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
3686         for new_files, and the input to func_add_or_update.
3687
3688 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3689
3690         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
3691         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
3692
3693 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3694
3695         * modules/mkancesdirs (Depends-on): Add fcntl.
3696         * modules/savewd: New file.
3697         * MODULES.html.sh (File system functions): Add savewd.
3698
3699         * modules/configmake (Makefile.am): Add support for the
3700         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
3701
3702 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3703
3704         * m4/savewd.m4: New file.
3705
3706 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3707
3708         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
3709         (dirchownmod): New arg FD.  All callers changed.
3710         Use FD rather than opening the directory ourself, as opening is
3711         now the caller's responsibility.
3712         * lib/dirchownmod.h: Likewise.
3713         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
3714         hosts that require <sys/types.h> before <sys/stat.h>.  Include
3715         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
3716         (test_dir): Remove.
3717         (mkancesdirs): Return length of prefix of FILE that has already
3718         been made, or -2 if there is a child doing the work.  Redo
3719         algorithm so that it is O(N) rather than O(N**2).  Optimize away
3720         ".", and treat ".." specially since it might stray back into
3721         already-created areas.  Use a subprocess if necessary.  New arg
3722         WD; all users changed.  MAKE_DIR function should now return 1
3723         if it creates a directory that is not readable.  Return -2 if
3724         a child process is spun off.
3725         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
3726         Adjust signature to match code.
3727         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
3728         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
3729         all users changed.
3730         * lib/savewd.c, lib/savewd.h: New files.
3731
3732 2006-09-15  Jim Meyering  <jim@meyering.net>
3733
3734         * modules/rename-dest-slash: New module.
3735         * MODULES.html.sh (posix_compat): Add it here.
3736
3737         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
3738
3739 2006-09-15  Jim Meyering  <jim@meyering.net>
3740
3741         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
3742         file.
3743
3744         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
3745
3746 2006-09-15  Jim Meyering  <jim@meyering.net>
3747
3748         * lib/rename-dest-slash.c (has_trailing_slash): Use
3749         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
3750         (rpl_rename_dest_slash): Perform the cheaper trailing slash
3751         test before testing whether SRC is a directory.
3752         Suggestions from Bruno Haible.
3753
3754         Avoid a warning about an unused variable.
3755         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
3756         into the #ifdef block where it's used.
3757
3758         * lib/rename-dest-slash.c: New file.
3759
3760 2006-09-14  Bruno Haible  <bruno@clisp.org>
3761
3762         * lib/allocsa.c: Include <config.h> unconditionally.
3763         * lib/asnprintf.c: Likewise.
3764         * lib/asprintf.c: Likewise.
3765         * lib/c-strcasecmp.c: Likewise.
3766         * lib/c-strcasestr.c: Likewise.
3767         * lib/c-strncasecmp.c: Likewise.
3768         * lib/c-strstr.c: Likewise.
3769         * lib/classpath.c: Likewise.
3770         * lib/clean-temp.c: Likewise.
3771         * lib/concatpath.c: Likewise.
3772         * lib/copy-file.c: Likewise.
3773         * lib/csharpcomp.c: Likewise.
3774         * lib/csharpexec.c: Likewise.
3775         * lib/execute.c: Likewise.
3776         * lib/fatal-signal.c: Likewise.
3777         * lib/findprog.c: Likewise.
3778         * lib/fwriteerror.c: Likewise.
3779         * lib/gl_array_list.c: Likewise.
3780         * lib/gl_array_oset.c: Likewise.
3781         * lib/gl_avltree_list.c: Likewise.
3782         * lib/gl_avltree_oset.c: Likewise.
3783         * lib/gl_avltreehash_list.c: Likewise.
3784         * lib/gl_carray_list.c: Likewise.
3785         * lib/gl_linked_list.c: Likewise.
3786         * lib/gl_linkedhash_list.c: Likewise.
3787         * lib/gl_list.c: Likewise.
3788         * lib/gl_oset.c: Likewise.
3789         * lib/gl_rbtree_list.c: Likewise.
3790         * lib/gl_rbtree_oset.c: Likewise.
3791         * lib/gl_rbtreehash_list.c: Likewise.
3792         * lib/imaxabs.c: Likewise.
3793         * lib/imaxdiv.c: Likewise.
3794         * lib/javacomp.c: Likewise.
3795         * lib/javaexec.c: Likewise.
3796         * lib/javaversion.c: Likewise.
3797         * lib/linebreak.c: Likewise.
3798         * lib/localcharset.c: Likewise.
3799         * lib/lock.c: Likewise.
3800         * lib/mbchar.c: Likewise.
3801         * lib/mbswidth.c: Likewise.
3802         * lib/mkdtemp.c: Likewise.
3803         * lib/pipe.c: Likewise.
3804         * lib/printf-args.c: Likewise.
3805         * lib/printf-parse.c: Likewise.
3806         * lib/progname.c: Likewise.
3807         * lib/progreloc.c: Likewise.
3808         * lib/readlink.c: Likewise.
3809         * lib/sh-quote.c: Likewise.
3810         * lib/stpcpy.c: Likewise.
3811         * lib/stpncpy.c: Likewise.
3812         * lib/strcasecmp.c: Likewise.
3813         * lib/strcasestr.c: Likewise.
3814         * lib/strcspn.c: Likewise.
3815         * lib/striconv.c: Likewise.
3816         * lib/strncasecmp.c: Likewise.
3817         * lib/strnlen1.c: Likewise.
3818         * lib/strstr.c: Likewise.
3819         * lib/strtok_r.c: Likewise.
3820         * lib/tls.c: Likewise.
3821         * lib/tmpdir.c: Likewise.
3822         * lib/unicodeio.c: Likewise.
3823         * lib/unsetenv.c: Likewise.
3824         * lib/vasnprintf.c: Likewise.
3825         * lib/vasprintf.c: Likewise.
3826         * lib/wait-process.c: Likewise.
3827         * lib/xallocsa.c: Likewise.
3828         * lib/xsetenv.c: Likewise.
3829         * lib/xstriconv.c: Likewise.
3830
3831 2006-09-13  Simon Josefsson  <jas@extundo.com>
3832
3833         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
3834         that internally, suggested by Ralf Wildenhues
3835         <Ralf.Wildenhues@gmx.de>.
3836
3837 2006-09-13  Simon Josefsson  <jas@extundo.com>
3838
3839         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
3840         @LIBOBJS@.
3841         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3842
3843 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3844
3845         * lib/_fpending.c: Include <config.h> unconditionally, since we no
3846         longer worry about uses that don't define HAVE_CONFIG_H.
3847         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
3848         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
3849         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
3850         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
3851         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
3852         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
3853         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
3854         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
3855         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
3856         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
3857         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
3858         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
3859         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
3860         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
3861         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
3862         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
3863         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
3864         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
3865         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
3866         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
3867         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
3868         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
3869         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
3870         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
3871         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
3872         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
3873         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
3874         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
3875         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
3876         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
3877         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
3878         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
3879         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
3880         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
3881         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
3882         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
3883         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
3884         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
3885         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
3886         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
3887         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
3888         Likewise.
3889
3890 2006-09-13  Eric Blake  <ebb9@byu.net>
3891
3892         * lib/getopt.c: Fix typo in last commit.
3893
3894 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3895
3896         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
3897         dgettext.
3898
3899 2006-09-12  Jim Meyering  <jim@meyering.net>
3900
3901         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
3902         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
3903         Reported by Nelson H. F. Beebe.
3904
3905 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
3906
3907         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
3908         program_invocation_name and program_invocation_short_name are
3909         initialized.
3910         * lib/argp-namefrob.h: Move declarations of program_invocation_name
3911         and program_invocation_short_name to argp.h, so they are visible
3912         to user programs.
3913         * lib/argp.h: Likewise
3914
3915 2006-09-10  Bruno Haible  <bruno@clisp.org>
3916
3917         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
3918         m4/inttypes_h.m4, m4/uintmax_t.m4.
3919
3920 2006-09-10  Bruno Haible  <bruno@clisp.org>
3921
3922         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
3923         gl_AC_TYPE_UINTMAX_T.
3924
3925 2006-09-10  Bruno Haible  <bruno@clisp.org>
3926
3927         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
3928
3929 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
3930
3931         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
3932         convention.  Text proposed by Bruno Haible.
3933         (struct argp_option): Document the use of N_() wrappers.
3934
3935         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
3936         '\v', and translate the two parts separately, instead of feeding
3937         the whole string to gettext.  This allows to exclude
3938         '\v' from the strings visible to the translator by writing doc
3939         strings as N_("..") "\v" N_("..").
3940
3941 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3942
3943         * config/srclist.txt: Undo latest change; the bug was fixed.
3944
3945 2006-09-09  Bruno Haible  <bruno@clisp.org>
3946
3947         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
3948         assignments if building a library without libtool.
3949         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
3950         in func_emit_lib_Makefile_am.
3951         (func_import): When building a static library libfoo.a, arrange to
3952         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
3953         (func_create_testdir): Likewise.
3954         * modules/gc (configure.ac, Makefile.am): If building statically,
3955         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
3956         * modules/iconvme (configure.ac, Makefile.am): Likewise.
3957         * modules/striconv (configure.ac, Makefile.am): Likewise.
3958         Based on a suggestion by Ralf Wildenhues.
3959
3960 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3961
3962         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3963         Check for unistd.h too, since Autoconf doesn't assume POSIX.
3964         Also:
3965
3966         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3967         Add year_2050_test to catch glibc bug 2821
3968         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3969
3970         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3971         Prefer #ifdef to #if.
3972
3973         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
3974         Return from 'main' instead of calling 'exit'.
3975
3976 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3977
3978         * lib/mktime.c (guess_time_tm): Fix bug where mktime
3979         returned the maximum time_t value rather than (time_t) -1.
3980         Problem originally reported by William Bardwell
3981         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3982
3983         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3984         Moved to here ...
3985         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3986         ... from here.
3987
3988 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3989
3990         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
3991         2821 is fixed.
3992
3993 2006-09-08  Jim Meyering  <jim@meyering.net>
3994
3995         Don't make generated files read-only.  That would bother too many
3996         people.  However, do retain the ability to work when targets are
3997         read-only: remove the destination and temporary files before writing
3998         them (when generated via sed or echo), or by using the -f option for
3999         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
4000         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4001         * modules/byteswap, modules/configmake, modules/fcntl:
4002         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4003         * modules/localcharset, modules/netinet_in, modules/poll:
4004         * modules/stdbool, modules/stdint, modules/sys_select:
4005         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4006
4007 2006-09-08  Jim Meyering  <jim@meyering.net>
4008
4009         Avoid new build failure on FreeBSD 6.0.
4010         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
4011         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
4012         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
4013
4014 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4015
4016         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
4017
4018 2006-09-07  Jim Meyering  <jim@meyering.net>
4019
4020         Fix global typo in last change: use chmod u-w, not chmod u-x.
4021         Spotted by Paul Eggert and Bruce Korb.
4022         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4023         * modules/byteswap, modules/configmake, modules/fcntl:
4024         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4025         * modules/localcharset, modules/netinet_in, modules/poll:
4026         * modules/stdbool, modules/stdint, modules/sys_select:
4027         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4028
4029 2006-09-06  Jim Meyering  <jim@meyering.net>
4030
4031         Make generated files be read-only.
4032         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
4033         Ensure that each generated file is now read-only.
4034         * modules/argz: Likewise.
4035         * modules/arpa_inet: Likewise.
4036         * modules/byteswap: Likewise.
4037         * modules/configmake: Likewise.
4038         * modules/fcntl: Likewise.
4039         * modules/fnmatch: Likewise.
4040         * modules/getopt: Likewise.
4041         * modules/glob: Likewise.
4042         * modules/inttypes: Likewise.
4043         * modules/netinet_in: Likewise.
4044         * modules/poll: Likewise.
4045         * modules/stdbool: Likewise.
4046         * modules/stdint: Likewise.
4047         * modules/sys_select: Likewise.
4048         * modules/sys_socket: Likewise.
4049         * modules/sys_stat: Likewise.
4050         * modules/sysexits: Likewise.
4051         * modules/localcharset: Same as above, but continue using temporary
4052         file named "t-$@" (why different?) rather than the "$@-t" used
4053         everywhere else.
4054
4055         * modules/sysexits (Makefile.am): Replace literal occurrences
4056         of "sysexit.h" more readable, and more consistent, "$@".
4057
4058 2006-09-06  Bruno Haible  <bruno@clisp.org>
4059
4060         * modules/striconv: New file.
4061         * modules/xstriconv: New file.
4062         * MODULES.html.sh (Internationalization functions): Add striconv,
4063         xstriconv.
4064
4065 2006-09-06  Bruno Haible  <bruno@clisp.org>
4066
4067         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
4068         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
4069         not using libtool correctly.
4070
4071 2006-09-06  Bruno Haible  <bruno@clisp.org>
4072
4073         * lib/striconv.h: New file.
4074         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
4075         iconvstring.c.
4076         * lib/xstriconv.h: New file.
4077         * lib/xstriconv.c: New file.
4078
4079 2006-09-06  Bruno Haible  <bruno@clisp.org>
4080
4081         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4082         lib_..._LDFLAGS.
4083
4084 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4085
4086         * lib/argz_.h: Sync from Libtool.
4087
4088         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
4089                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4090
4091         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
4092
4093 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4094
4095         * modules/trim: New file.
4096
4097 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4098
4099         * lib/trim.h: New file.
4100         * lib/trim.c: New file.
4101
4102 2006-09-05  Bruno Haible  <bruno@clisp.org>
4103
4104         * MODULES.html.sh (String handling): Add trim.
4105
4106 2006-09-04  Karl Berry  <karl@gnu.org>
4107
4108         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
4109         until next release.
4110
4111 2006-09-03  Bruno Haible  <bruno@clisp.org>
4112
4113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
4114         correctly.
4115
4116 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4117
4118         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
4119         not gl_GETLOADAVG.  Omit unneeded semicolons.
4120         Problems reported by Ralf Wildenhues in
4121         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4122         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
4123         at the end, which is the usual gnulib style.
4124
4125         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
4126         of doing all the work ourselves.
4127         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
4128         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
4129
4130 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4131
4132         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
4133         Problem reported by Ralf Wildenhues in
4134         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4135
4136         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
4137         HAVE_STRUCT_STATFS_F_FSTYPENAME.
4138
4139 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4140
4141         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
4142         yesterday's patch by changing test -n to test -z.
4143
4144 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4145
4146         * modules/getloadavg (Files): Add m4/getloadavg.m4.
4147         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
4148         the former is now obsolescent.
4149
4150         * modules/chdir-long (Depends-on): Add fcntl.
4151
4152 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4153
4154         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
4155         obsolescent, and programs should use gnulib instead.
4156         * m4/getloadavg.m4: New file, with contents taken from Autoconf
4157         but with prefixes changed.
4158
4159 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4160
4161         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
4162         or stdbool.h, because they might not exist while configuring.
4163
4164         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
4165         Don't include unistd.h or limits.h; not needed, since chdir-long.h
4166         does that for us.
4167         (O_DIRECTORY): Remove.
4168
4169 2006-08-31  Eric Blake  <ebb9@byu.net>
4170
4171         * gnulib-tool: Don't let emacs change spaces to TAB.
4172
4173 2006-08-31  Bruno Haible  <bruno@clisp.org>
4174
4175         * gnulib-tool: When calling func_import more than once, do it in a
4176         subshell.
4177         Reported by Eric Blake <ebb9@byu.net>.
4178
4179 2006-08-31  Bruno Haible  <bruno@clisp.org>
4180
4181         * gnulib-tool (nl): Remove variable.
4182         (sed_transform_lib_file): Use more robust test for config-h module.
4183         (func_import): Fix typo in 2006-08-25 patch.
4184
4185 2006-08-31  Bruno Haible  <bruno@clisp.org>
4186
4187         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
4188         specified, augment Makefile.am variables instead of assigning them.
4189
4190 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4191
4192         Work around a bug in both the Linux and SunOS 64-bit kernels:
4193         nanosleep mishandles sleeps for longer than 2**31 seconds.
4194         Problem reported by Frank v Waveren in
4195         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
4197         Check for nanosleep bug.
4198         (LIB_NANOSLEEP): Append clock_gettime library if needed.
4199
4200 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4201
4202         Work around a bug in both the Linux and SunOS 64-bit kernels:
4203         nanosleep mishandles sleeps for longer than 2**31 seconds.
4204         Problem reported by Frank v Waveren in
4205         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4206         * lib/nanosleep.c (BILLION): New constant.
4207         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
4208         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
4209         implementation.
4210
4211 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4212
4213         * modules/nanosleep (Depends-on): Add gettime.
4214
4215 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4216         and Simon Josefsson  <jas@extundo.com>
4217         and Oskar Liljeblad  <oskar@osk.mine.nu>
4218
4219         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
4220         * gnulib-tool (func_import): New license type 'unmodifiable license
4221         text'.
4222         * modules/fdl: Use it.  Longer description.
4223         * module/gpl, module/lgpl: New files.
4224
4225 2006-08-30  Jim Meyering  <jim@meyering.net>
4226
4227         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
4228         shadowing the parameter.
4229
4230 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4231
4232         Sync from Libtool:
4233
4234         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4235
4236         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
4237         sharing with gnulib.  Report by Eric Blake.
4238
4239 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4240
4241         * modules/isapipe: New file.
4242         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
4243
4244 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4245
4246         * modules/configmake (Makefile.am): Add a comment, and omit
4247         the CONFIGMAKE_ prefix from generated macro names.  Suggested
4248         by Bruno Haible.
4249
4250 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4251
4252         * m4/isapipe.m4: New file.
4253
4254 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4255
4256         * lib/isapipe.c, lib/isapipe.h: New files.
4257
4258 2006-08-29  Jim Meyering  <jim@meyering.net>
4259
4260         * modules/configmake (Makefile.am): Make configmake.h depend on
4261         Makefile.  Otherwise, a stale configmake.h could hang around.
4262
4263 2006-08-29  Eric Blake  <ebb9@byu.net>
4264
4265         * lib/error.c (error_at_line, print_errno_message): Match libc, after
4266         resolution of upstream bug 3044.
4267
4268 2006-08-29  Bruno Haible  <bruno@clisp.org>
4269
4270         * modules/localcharset (Depends-on): Add configmake.
4271         (Makefile.am): Remove setting of LIBDIR through DEFS.
4272
4273 2006-08-29  Bruno Haible  <bruno@clisp.org>
4274
4275         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
4276         defined.
4277
4278 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4279
4280         * modules/fcntl: New file.
4281         * modules/chdir-safer (Depends-on): Add fcntl.
4282         * modules/fts: Likewise.
4283         * modules/mkdir-p: Likewise.
4284
4285         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
4286         This undoes the most recent change, since we're now addressing the
4287         problem in a different way.
4288
4289         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
4290         into output, since the output might be called Makefile.am even
4291         if $makefile_name is something different.
4292         (func_import): Use $makefile_am rather than
4293         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
4294         empty.
4295
4296         * modules/inttypes (Files): Add m4/inttypes-h.m4.
4297
4298 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4299
4300         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
4301         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
4302         recent change to stdint.m4, since we're now addressing the problem in a
4303         different way.
4304
4305 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4306
4307         * m4/fcntl_h.m4: New file.
4308
4309 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4310
4311         * lib/fcntl_.h: New file.
4312         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
4313         the fcntl module.
4314         * lib/dirchownmod.c: Likewise.
4315         * lib/fts.c: Likewise.
4316
4317         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
4318         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
4319         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
4320         just before including <inttypes.h>, to avoid circular inclusion.
4321
4322 2006-08-28  Jim Meyering  <jim@meyering.net>
4323
4324         * doc/visibility.texi: Actually read and correct the grammar of the
4325         sentence affected by yesterday's change.
4326
4327 2006-08-28  Eric Blake  <ebb9@byu.net>
4328
4329         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
4330         needs wrapper.
4331
4332 2006-08-28  Eric Blake  <ebb9@byu.net>
4333
4334         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
4335
4336 2006-08-28  Eric Blake  <ebb9@byu.net>
4337
4338         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
4339
4340 2006-08-28  Bruno Haible  <bruno@clisp.org>
4341
4342         * modules/c-strstr: New file, from GNU gettext.
4343         * MODULES.html.sh (String handling): Add c-strstr.
4344
4345 2006-08-28  Bruno Haible  <bruno@clisp.org>
4346
4347         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
4348         macros.
4349         Reported by Eric Blake.
4350
4351 2006-08-28  Bruno Haible  <bruno@clisp.org>
4352
4353         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
4354         (VASNPRINTF): Return a string of length > INT_MAX without failing.
4355         * lib/vasprintf.c: Include errno.h, limits.h.
4356         (EOVERFLOW): New fallback definition.
4357         (vasprintf): Test here whether the string length is > INT_MAX.
4358         * lib/vsnprintf.c: Include errno.h, limits.h.
4359         (EOVERFLOW): New fallback definition.
4360         (vsnprintf): Fix bug when generated string was too long for the buffer.
4361         Test here whether the string length is > INT_MAX.
4362
4363 2006-08-28  Bruno Haible  <bruno@clisp.org>
4364
4365         * lib/inttypes_.h (SCNX*): Remove definitions.
4366         Reported by Eric Blake.
4367
4368 2006-08-28  Bruno Haible  <bruno@clisp.org>
4369
4370         * lib/c-strstr.h: New file, from GNU gettext.
4371         * lib/c-strstr.c: New file, from GNU gettext.
4372
4373 2006-08-28  Bruno Haible  <bruno@clisp.org>
4374
4375         * gnulib-tool: Reorder some statements.
4376
4377 2006-08-28  Bruno Haible  <bruno@clisp.org>
4378
4379         * gnulib-tool: New option --makefile-name.
4380         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
4381         $makefile_name.
4382         (func_import): Write $makefile_name to the cache file, and read it from
4383         there unless explicitly specified. Use $makefile_name as file name
4384         instead of Makefile.am. Adjust the recommendations accordingly.
4385
4386 2006-08-28  Bruno Haible  <bruno@clisp.org>
4387
4388         * gnulib-tool (func_verify_module): Check against misapplying patch.
4389
4390 2006-08-28  Bruno Haible  <bruno@clisp.org>
4391
4392         * gnulib-tool (func_relativize, func_relconcat): New functions.
4393         Give an error if --local-dir is given with --update.
4394         Remove trailing slashes from $local_gnulib_dir.
4395         (func_import): Store the relativized $local_gnulib_dir in
4396         gnulib-cache.m4, and read it from there if not specified explicitly.
4397
4398 2006-08-28  Bruno Haible  <bruno@clisp.org>
4399
4400         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
4401         is the current directory. Respect also $local_gnulib_dir.
4402
4403 2006-08-28  Bruno Haible  <bruno@clisp.org>
4404             Simon Josefsson  <jas@extundo.com>
4405
4406         BeOS portability.
4407         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
4408
4409 2006-08-27  Jim Meyering  <jim@meyering.net>
4410
4411         * doc/visibility.texi: Remove duplicate word: "pointer".
4412
4413 2006-08-26  Bruno Haible  <bruno@clisp.org>
4414
4415         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
4416         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
4417         (Makefile.am): Create inttypes.h from inttypes_.h.
4418         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
4419
4420         * modules/imaxabs: New file.
4421
4422         * modules/imaxdiv: New file.
4423
4424 2006-08-26  Bruno Haible  <bruno@clisp.org>
4425
4426         * m4/inttypes.m4: New file.
4427         * m4/_inttypes_h.m4: Remove file.
4428         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
4429         PRI_MACROS_BROKEN.
4430         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
4431
4432         * m4/imaxabs.m4: New file.
4433
4434         * m4/imaxdiv.m4: New file.
4435
4436 2006-08-26  Bruno Haible  <bruno@clisp.org>
4437
4438         * lib/inttypes_.h: New file.
4439         * lib/inttypes.h: Remove file.
4440         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
4441
4442         * lib/imaxabs.c: New file.
4443
4444         * lib/imaxdiv.c: New file.
4445
4446 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4447
4448         New config-h module, so that "make" output needn't be cluttered
4449         by -DHAVE_CONFIG_H.
4450         * MODULES.html.sh (Support for building libraries and executables):
4451         Add config-h.
4452         * modules/config-h: New file.
4453         * gnulib-tool (nl, sed_transform_lib_file): New vars.
4454         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
4455         the config-h module is used.
4456
4457         New configmake module, so that "make" output needn't be cluttered
4458         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
4459         * MODULES.html.sh (Support for building libraries and executables):
4460         Add configmake.
4461         * modules/configmake: New file.
4462
4463 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4464
4465         * m4/config-h.m4: New file.
4466
4467 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4468
4469         * config/srclist.txt: Add elisp-comp.
4470
4471 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4472
4473         * MODULES.html.sh (Support for building libraries and executables):
4474         Add elisp-comp.
4475         * build-aux/elisp-comp: New file.
4476         * modules/elisp-comp: New file.
4477
4478 2006-08-24  Bruno Haible  <bruno@clisp.org>
4479
4480         * gnulib-tool (func_create_testdir): Use non-default values of
4481         sourcebase and m4base.
4482
4483 2006-08-24  Bruno Haible  <bruno@clisp.org>
4484
4485         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
4486         HTML structure.
4487
4488 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4489
4490         * modules/openat (Depends-on): Add lchown.
4491
4492 2006-08-23  Bruno Haible  <bruno@clisp.org>
4493
4494         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
4495         of gl_LOCK_EARLY instead of gl_LOCK.
4496
4497 2006-08-23  Bruno Haible  <bruno@clisp.org>
4498
4499         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
4500         on OSF/1 to no.
4501         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
4502
4503 2006-08-23  Bruno Haible  <bruno@clisp.org>
4504
4505         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
4506         as unusable.
4507
4508         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
4509         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
4510         (gl_LOCK): New macro.
4511
4512 2006-08-22  Simon Josefsson  <jas@extundo.com>
4513
4514         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
4515         to md5 module.
4516
4517 2006-08-22  Simon Josefsson  <jas@extundo.com>
4518
4519         * MODULES.html.sh: Add "Support for maintaining and release
4520         projects".
4521
4522         * build-aux/gnupload: New file, from coreutils.
4523
4524 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
4525
4526         Avoid the need for AC_LIBSOURCES in m4 macros.
4527         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
4528         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
4529         * modules/check-version (EXTRA_DIST): Add check-version.h.
4530         * modules/crc (EXTRA_DIST): Add crc.h.
4531         * modules/des (EXTRA_DIST): Add des.h.
4532         * modules/gc (EXTRA_DIST): Add gc.h.
4533         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
4534         * modules/getline (EXTRA_DIST): Add getline.h.
4535         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
4536         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
4537         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
4538         * modules/md2 (EXTRA_DIST): Add md2.h.
4539         * modules/md4 (EXTRA_DIST): Add md4.h.
4540         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
4541         * modules/read-file (EXTRA_DIST): Add read-file.h.
4542         * modules/readline (EXTRA_DIST): Add readline.h.
4543         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
4544         rijndael-api-fst.h.
4545
4546 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
4547
4548         * m4/rijndael.m4 (gl_ARCFOUR):
4549         * m4/arctwo.m4 (gl_ARCTWO):
4550         * m4/check-version.m4 (gl_CHECK_VERSION):
4551         * m4/crc.m4 (gl_CRC):
4552         * m4/des.m4 (gl_DES):
4553         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
4554         * m4/gc.m4 (gl_GC):
4555         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
4556         * m4/getline.m4 (gl_FUNC_GETLINE):
4557         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
4558         * m4/hmac-md5.m4 (gl_HMAC_MD5):
4559         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
4560         * m4/md2.m4 (gl_MD2):
4561         * m4/md4.m4 (gl_MD4):
4562         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
4563         * m4/read-file.m4 (gl_FUNC_READ_FILE):
4564         * m4/readline.m4 (gl_FUNC_READLINE):
4565         * m4/rijndael.m4 (gl_RIJNDAEL):
4566         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
4567         to get the necessary .h files and whatnot.
4568
4569 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
4570
4571         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
4572         gnulib rather than the other way around.
4573         * config/srclistvars.sh (COREUTILS): Remove.
4574
4575 2006-08-22  Jim Meyering  <jim@meyering.net>
4576
4577         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
4578
4579         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
4580
4581 2006-08-22  Eric Blake  <ebb9@byu.net>
4582
4583         * modules/regexprops-generic: New file.
4584         * MODULES.html.sh (Support for building documentation): List it.
4585
4586 2006-08-22  Eric Blake  <ebb9@byu.net>
4587
4588         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
4589         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
4590         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4591         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
4592
4593 2006-08-22  Bruno Haible  <bruno@clisp.org>
4594
4595         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
4596         and lib_LTLIBRARIES like the other lib_* variables.
4597
4598 2006-08-22  Bruno Haible  <bruno@clisp.org>
4599
4600         * build-aux/x-to-1.in: New file, from GNU gettext.
4601
4602 2006-08-22  Bruno Haible  <bruno@clisp.org>
4603
4604         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
4605         <utmpx.h> exists.
4606
4607 2006-08-22  Bruno Haible  <bruno@clisp.org>
4608
4609         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
4610         <utmpx.h> exists.
4611
4612 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
4613
4614         BeOS portability.
4615         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
4616         exist.
4617         Problem reported by Bruno Haible.
4618
4619 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
4620
4621         Avoid the need for AC_LIBSOURCES in m4 macros.
4622         * modules/acl (EXTRA_DIST): Add acl.h.
4623         * modules/argmatch (Files): Add m4/argmatch.m4.
4624         (configure.ac): Add gl_ARGMATCH.
4625         (EXTRA_DIST): Renamed from lib_SOURCES, for
4626         consistency with the other modules.  Remove argmatch.c.
4627         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
4628         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
4629         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
4630         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
4631         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
4632         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
4633         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
4634         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
4635         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
4636         * modules/closeout (EXTRA_DIST): Add closeout.h.
4637         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
4638         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
4639         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
4640         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
4641         dirname.h; remove basename.c and stripslash.c.
4642         * modules/exclude (EXTRA_DIST): Add exclude.h.
4643         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
4644         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
4645         * modules/file-type (EXTRA_DIST): Add file-type.h.
4646         * modules/filemode (EXTRA_DIST): Add filemode.h.
4647         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
4648         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
4649         * modules/fpending (EXTRA_DIST): Add __fpending.h.
4650         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
4651         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
4652         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
4653         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
4654         * modules/getdate (EXTRA_DIST): Add getdate.c.
4655         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
4656         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
4657         * modules/getpass (EXTRA_DIST): Add getpass.h.
4658         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
4659         * modules/group-member (EXTRA_DIST): Add group-member.h.
4660         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
4661         * modules/hash (EXTRA_DIST): Add hash.h.
4662         * modules/human (EXTRA_DIST): Add human.h.
4663         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
4664         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
4665         * modules/lchown (EXTRA_DIST): Add lchown.h.
4666         * modules/long-options (EXTRA_DIST): Add long-options.h.
4667         * modules/lstat (EXTRA_DIST): Add lstat.h.
4668         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
4669         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
4670         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
4671         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
4672         * modules/memxor (EXTRA_DIST): Add memxor.h.
4673         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
4674         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
4675         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
4676         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
4677         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
4678         * modules/physmem (EXTRA_DIST): Add physmem.h.
4679         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
4680         * modules/posixver (EXTRA_DIST): Add posixver.h.
4681         * modules/quote (EXTRA_DIST): Add quote.h.
4682         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
4683         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
4684         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
4685         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
4686         regex_internal.h regexec.c.
4687         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
4688         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
4689         * modules/same (EXTRA_DIST): Add same.h.
4690         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
4691         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
4692         * modules/savedir (EXTRA_DIST): Add savedir.h.
4693         * modules/sha1 (EXTRA_DIST): Add sha1.h.
4694         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
4695         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
4696         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
4697         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
4698         * modules/strdup (EXTRA_DIST): Add strdup.h.
4699         * modules/strftime (EXTRA_DIST): Add strftime.h.
4700         * modules/strndup (EXTRA_DIST): Add strndup.h.
4701         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
4702         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
4703         * modules/time_r (EXTRA_DIST): Add time_r.h.
4704         * modules/timespec (EXTRA_DIST): Add timespec.h.
4705         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
4706         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
4707         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
4708         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
4709         * modules/userspec (EXTRA_DIST): Add userspec.h.
4710         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
4711         * modules/utimens (EXTRA_DIST): Add utimens.h.
4712         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
4713         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
4714         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
4715         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
4716         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
4717         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
4718         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
4719         * modules/yesno (EXTRA_DIST): Add yesno.h.
4720
4721 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
4722
4723         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
4724
4725         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
4726         * m4/dev-ino.m4, same-inode.m4: Remove.
4727
4728         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
4729         * m4/acl.m4 (AC_FUNC_ACL):
4730         * m4/backupfile.m4 (gl_BACKUPFILE):
4731         * m4/c-strtod.m4 (gl_C99_STRTOLD):
4732         * m4/canon-host.m4 (gl_CANON_HOST):
4733         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
4734         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
4735         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
4736         * m4/cloexec.m4 (gl_CLOEXEC):
4737         * m4/close-stream.m4 (gl_CLOSE_STREAM):
4738         * m4/closeout.m4 (gl_CLOSEOUT):
4739         * m4/dirfd.m4 (gl_FUNC_DIRFD):
4740         * m4/dirname.m4 (gl_DIRNAME):
4741         * m4/exclude.m4 (gl_EXCLUDE):
4742         * m4/exitfail.m4 (gl_EXITFAIL):
4743         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
4744         * m4/file-type.m4 (gl_FILE_TYPE):
4745         * m4/filemode.m4 (gl_FILEMODE):
4746         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
4747         * m4/fpending.m4 (gl_FUNC_FPENDING):
4748         * m4/fprintftime.m4 (gl_FPRINTFTIME):
4749         * m4/fts.m4 (gl_FUNC_FTS):
4750         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
4751         * m4/getdate.m4 (gl_GETDATE):
4752         * m4/gethrxtime.m4 (gl_GETHRXTIME):
4753         * m4/getpagesize.m4 (gl_GETPAGESIZE):
4754         * m4/getpass.m4 (gl_FUNC_GETPASS):
4755         * m4/gettime.m4 (gl_GETTIME):
4756         * m4/getugroups.m4 (gl_GETUGROUPS):
4757         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
4758         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
4759         * m4/hard-locale.m4 (gl_HARD_LOCALE):
4760         * m4/hash.m4 (gl_HASH):
4761         * m4/idcache.m4 (gl_IDCACHE):
4762         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
4763         * m4/lchown.m4 (gl_FUNC_LCHOWN):
4764         * m4/long-options.m4 (gl_LONG_OPTIONS):
4765         * m4/lstat.m4 (gl_FUNC_LSTAT):
4766         * m4/md5.m4 (gl_MD5):
4767         * m4/memcasecmp.m4 (gl_MEMCASECMP):
4768         * m4/memcoll.m4 (gl_MEMCOLL):
4769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
4770         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
4771         * m4/memxor.m4 (gl_MEMXOR):
4772         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
4773         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
4774         * m4/modechange.m4 (gl_MODECHANGE):
4775         * m4/mountlist.m4 (gl_MOUNTLIST):
4776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4777         * m4/openat.m4 (gl_FUNC_OPENAT):
4778         * m4/pathmax.m4 (gl_PATHMAX):
4779         * m4/physmem.m4 (gl_PHYSMEM):
4780         * m4/posixtm.m4 (gl_POSIXTM):
4781         * m4/posixver.m4 (gl_POSIXVER):
4782         * m4/quote.m4 (gl_QUOTE):
4783         * m4/quotearg.m4 (gl_QUOTEARG):
4784         * m4/readtokens.m4 (gl_READTOKENS):
4785         * m4/readutmp.m4 (gl_READUTMP):
4786         * m4/regex.m4 (gl_REGEX):
4787         * m4/safe-read.m4 (gl_SAFE_READ):
4788         * m4/safe-write.m4 (gl_SAFE_WRITE):
4789         * m4/same.m4 (gl_SAME):
4790         * m4/save-cwd.m4 (gl_SAVE_CWD):
4791         * m4/savedir.m4 (gl_SAVEDIR):
4792         * m4/settime.m4 (gl_SETTIME):
4793         * m4/sha1.m4 (gl_SHA1):
4794         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
4795         * m4/stat-macros.m4 (gl_STAT_MACROS):
4796         * m4/stat-time.m4 (gl_STAT_TIME):
4797         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
4798         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
4799         * m4/strdup.m4 (gl_FUNC_STRDUP):
4800         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
4801         * m4/strndup.m4 (gl_FUNC_STRNDUP):
4802         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
4803         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
4804         * m4/time_r.m4 (gl_TIME_R):
4805         * m4/timespec.m4 (gl_TIMESPEC):
4806         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
4807         * m4/unlinkdir.m4 (gl_UNLINKDIR):
4808         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
4809         * m4/userspec.m4 (gl_USERSPEC):
4810         * m4/utimecmp.m4 (gl_UTIMECMP):
4811         * m4/utimens.m4 (gl_UTIMENS):
4812         * m4/xalloc.m4 (gl_XALLOC):
4813         * m4/xgetcwd.m4 (gl_XGETCWD):
4814         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
4815         * m4/xreadlink.m4 (gl_XREADLINK):
4816         * m4/xstrtod.m4 (gl_XSTRTOD):
4817         * m4/yesno.m4 (gl_YESNO):
4818         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
4819         to get the necessary .h files and whatnot.
4820
4821 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
4822             Bruno Haible  <bruno@clisp.org>
4823
4824         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
4825         /bin/sh understanding of '!' conditional negation.
4826
4827 2006-08-21  Jim Meyering  <jim@meyering.net>
4828
4829         * modules/openat (Depends-on): Really alphabetize.
4830
4831         * modules/acl (Depends-on): Add error and quote.
4832
4833         * check-module (find_included_lib_files): Add at-func.c to the
4834         ok-to-include-more-than-once white list.
4835
4836         * modules/openat (Depends-on): Add lstat.  Alphabetize.
4837
4838 2006-08-21  Bruno Haible  <bruno@clisp.org>
4839
4840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4841         Emit a pkgdata_DATA variable only if some snippets add contents to it.
4842         Reported by Martin Lambers <marlam@marlam.de>.
4843
4844 2006-08-21  Bruno Haible  <bruno@clisp.org>
4845
4846         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
4847         specify an installation location, don't emit a noinst_LIBRARIES or
4848         noinst_LTLIBRARIES assignment.
4849
4850 2006-08-21  Bruno Haible  <bruno@clisp.org>
4851
4852         BeOS portability.
4853         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
4854         BeOS has mbrtowc() but no <wctype.h>.
4855
4856 2006-08-21  Bruno Haible  <bruno@clisp.org>
4857
4858         BeOS portability.
4859         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
4860         exist.
4861
4862 2006-08-21  Bruno Haible  <bruno@clisp.org>
4863
4864         BeOS portability.
4865         * lib/mbchar.h: Include <wctype.h> only if it exists.
4866
4867 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4868
4869         Remove files that are no longer needed by their respective modules.
4870         * m4/obstack.m4: Remove.
4871         * m4/strerror_r.m4: Remove.
4872         * m4/uint32_t.m4: Remove.
4873         * m4/uintptr_t.m4: Remove.
4874         * m4/ullong_max.m4: Remove.
4875         * m4/xstrtoimax.m4: Remove.
4876         * m4/xstrtoumax.m4: Remove.
4877
4878         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
4879         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
4880         dependencies now capture this.
4881
4882         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
4883         Do not use AC_LIBSOURCES, since gnulib modules now do this.
4884         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
4885         * m4/human.m4 (gl_HUMAN): Likewise.
4886         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
4887         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
4888
4889         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
4890
4891         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
4892         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
4893         stdint.
4894         * m4/human.m4 (gl_HUMAN): Likewise.
4895         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
4896         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
4897         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4898         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4899         * m4/xstrtol (gl_XSTRTOL): Likewise.
4900
4901         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
4902         AC_TYPE_LONG_LONG_INT.
4903         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4904         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
4905         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
4906         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4907
4908         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
4909         on stdbool.
4910
4911         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
4912         (gl_PREREQ_XSTRTOUL): Remove.
4913
4914         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
4915
4916         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
4917         mode.
4918
4919 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4920
4921         Add and change modules to make it easier for coreutils to use
4922         gnulib-tool.
4923         * modules/backupfile (Files): Remove m4/d-ino.m4.
4924         (Depends-on): Add d-ino.
4925         * modules/cycle-check (Depends-on): Add stdint.
4926         (lib_SOURCES): Add cycle-check.h.
4927         * modules/d-ino: New module.
4928         * modules/d-type: New module.
4929         * modules/error (Files): Remove m4/strerror_r.m4.
4930         * modules/filemode (Files): Add m4/st_dm_mode.m4.
4931         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4932         m4/inttypes_h.m4, m4/uintmax_t.m4.
4933         (Depends-on): Add stdint.
4934         (lib_SOURCES): Add fsusage.h.
4935         * modules/getcwd (Files): Remove d-ino.m4.
4936         (Depends-on): Add d-ino.
4937         * modules/getndelim2 (Depends-on): Add stdint.
4938         * modules/glob (Files): Remove m4/d-type.m4.
4939         (Depends-on): Add d-type.
4940         * modules/host-os: New module.
4941         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
4942         m4/inttypes_h.m4, m4/uintmax_t.m4.
4943         * Depends-on: Add stdint.
4944         (lib_SOURCES): Add human.h.
4945         * modules/inttostr (Files): Remove m4/intmax_t.m4,
4946         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
4947         m4/uintmax_t.m4, m4/ulonglong.m4.
4948         (Depends-on): Add stdint.
4949         (EXTRA_DIST): Add inttostr.h.
4950         * modules/lchmod: New module.
4951         * modules/link-follow: New module.
4952         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
4953         (Depends-on): Add lchmod.
4954         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
4955         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
4956         (Depends-on): Add stdint.
4957         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
4958         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
4959         (Depends-on): Add stdint.
4960         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
4961         * modules/perl: New module.
4962         * modules/regex (Depends-on): Add stdint.
4963         * modules/rmdir-errno: New module.
4964         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4965         m4/intmax_t.m4.
4966         (Depends-on): Add stdint.
4967         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4968         m4/uintmax_t.m4.
4969         (Depends-on): Add stdint.
4970         * modules/unlink-busy: New module.
4971         * modules/utimecmp (Depends-on): Add stdint.
4972         * modules/uptime: New module.
4973         * modules/winsz-ioctl: New module.
4974         * modules/winsz-termios: New module.
4975         * modules/xnanosleep (Depends-on): Add nanosleep.
4976         * modules/ullong_max: Remove.
4977         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
4978         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
4979         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
4980         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
4981         (Depends-on): Add inttypes.
4982         (lib_SOURCES): Add xstrtol.h.
4983         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
4984         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
4985         * MODULES.html.sh: Move 'assert' into the assert section.
4986         Move 'dummy' into the linking section.
4987         Remove ullong_max.
4988         Add section for compatibility checks for POSIX:2001 functions,
4989         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
4990         winsz-ioctl, and winsz-termios into it.
4991         Add lchmod.
4992         Add top-level Misc section and put host-os, perl, and uptime
4993         into it.
4994
4995 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4996
4997         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
4998         now assume the stdint module.  Do not include inttypes.h.
4999         * lib/fsusage.h: Likewise.
5000         * lib/getndelim2.c: Likewise.
5001         * lib/human.h: Likewise.
5002         * lib/inttostr.h: Likewise.
5003         * lib/obstack.c: Likewise.
5004         * lib/regex_internal.h: Likewise.
5005         * lib/tempname.c: Likewise.
5006         * lib/utimecmp.c: Likewise.
5007         * lib/xstrtol.h: Likewise.
5008
5009         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
5010
5011         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
5012         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
5013         * lib/xtime.h: Likewise.
5014
5015 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5016
5017         * modules/openat (Files): Add lib/fchmodat.c.
5018         Fixes problem reported by Jay Youngman.
5019
5020 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5021
5022         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
5023         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
5024
5025 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5026             Bruno Haible  <bruno@clisp.org>
5027
5028         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
5029         and is a script that invokes bison. Tighten the code. Add comments.
5030
5031 2006-08-18  Jim Meyering  <jim@meyering.net>
5032
5033         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
5034         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
5035         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
5036         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
5037
5038 2006-08-18  Bruno Haible  <bruno@clisp.org>
5039
5040         * modules/bison-i18n: New file.
5041         * MODULES.html.sh (Internationalization functions): Add it.
5042
5043 2006-08-18  Bruno Haible  <bruno@clisp.org>
5044
5045         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
5046         sys/statvfs.h. When getmntinfo was found, check its declaration and
5047         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
5048
5049 2006-08-18  Bruno Haible  <bruno@clisp.org>
5050
5051         * m4/bison-i18n.m4: New file, from bison.
5052
5053 2006-08-18  Bruno Haible  <bruno@clisp.org>
5054
5055         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
5056         (ME_DUMMY): Treat "kernfs" as a dummy.
5057         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
5058
5059 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5060
5061         Update from coreutils.
5062
5063         2006-08-15  Jim Meyering  <jim@meyering.net>
5064
5065         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
5066
5067         2006-01-17  Jim Meyering  <jim@meyering.net>
5068
5069         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
5070
5071         2006-01-11  Jim Meyering  <jim@meyering.net>
5072
5073         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
5074         Check for the lchmod function.
5075
5076 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5077
5078         Update from coreutils.
5079
5080         * lib/__fpending.h: Add copyright notice.
5081         * lib/fprintftime.h: Likewise.
5082         * lib/savedir.c: Use (C) in copyright notice.
5083         * lib/savedir.h: Likewise.
5084
5085         2006-08-15  Jim Meyering  <jim@meyering.net>
5086
5087         * lib/at-func.c: New file, with the logic of all emulated at-functions.
5088         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
5089         in support of the EXPECTED_ERRNO macro.
5090         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
5091         definitions.  Instead, define the appropriate symbols and include
5092         "at-func.c".
5093         * lib/mkdirat.c (mkdirat): Likewise.
5094         * lib/fchmodat.c (fchmodat): Likewise.
5095         (ENOSYS): Remove definition.
5096         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
5097         it.  Don't include "unistd--.h" -- it wasn't ever used.
5098
5099         2006-01-17  Jim Meyering  <jim@meyering.net>
5100
5101         Rewrite fts.c not to change the current working directory,
5102         by using openat, fstatat, fdopendir, etc..
5103
5104         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
5105         (HAVE_OPENAT_SUPPORT): Define.
5106         [_LIBC] (fchdir): Don't undef or define; no longer used.
5107         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
5108         Now, this `function' always succeeds, and consumes its file descriptor
5109         parameter -- so callers must not close such FDs.  Update callers.
5110         (diropen_fd, opendirat, cwd_advance_fd): New functions.
5111         (diropen): Add parameter, SP.  Adjust all callers.
5112         Implement using diropen_fd, rather than open.
5113         (fts_open): Initialize new member, fts_cwd_fd.
5114         Remove fts_rft-setting code.
5115         (fts_close): Close fts_cwd_fd, if necessary.
5116         (__opendir2): Define in terms of opendir or opendirat,
5117         depending on whether the FST_NOCHDIR flag is set.
5118         (fts_build): Since fts_safe_changedir consumes its FD, and since
5119         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
5120         and close the dup'd file descriptor upon failure.
5121         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
5122         (fts_safe_changedir): Tweak semantics to reflect that this function
5123         now calls cwd_advance_fd and hence consumes its FD argument.
5124         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
5125         [struct FTS] (fts_rft): Remove now-unused member.
5126         [struct FTS] (fts_cycle.state): Improve comment.
5127
5128         * lib/openat.c (openat_needs_fchdir): New function.
5129         * lib/openat.h (openat_needs_fchdir): Declare it.
5130
5131 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5132
5133         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
5134         Problem and fix reported by Pádraig Brady in
5135         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
5136
5137 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5138
5139         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
5140
5141 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5142
5143         * lib/memcoll.c (memcoll): Optimize for the common case where the
5144         arguments are bytewise equal.
5145
5146 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5147
5148         * doc/regexprops-generic.texi: Add a copyright notice.
5149
5150 2006-08-15  Bruno Haible  <bruno@clisp.org>
5151
5152         * modules/tmpdir (License): Change to LGPL.
5153
5154 2006-08-15  Bruno Haible  <bruno@clisp.org>
5155
5156         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
5157         module.
5158
5159 2006-08-14  Simon Josefsson  <jas@extundo.com>
5160
5161         * config/srclist.txt: Add gnupload.
5162
5163 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5164
5165         Change copyright notice from LGPL 2 to GPL 2, since that's the
5166         standard form used in the gnulib repository.
5167         * tests/test-lock.c: Likewise.
5168         * tests/test-stdint.c: Likewise.
5169         * tests/test-tls.c: Likewise.
5170
5171         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
5172         prelude-manager.  User shorter URLs for GNU projects, without '?'.
5173         Add copyright notice.
5174
5175         * check-module: Add copyright notice.  Output a copyright
5176         notice if "--version" is specified.
5177         * modules/COPYING: New file.
5178         * tests/test-getaddrinfo.c: Add copyright notice.
5179         * tests/test-verify.c: Likewise.
5180
5181 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5182
5183         Change copyright notice from LGPL 2 to GPL 2, since that's the
5184         standard form used in the gnulib repository.
5185         * lib/lock.c: LGPL -> GPL.
5186         * lib/lock.h: Likewise.
5187         * lib/strnlen1.c: Likewise.
5188         * lib/strnlen1.h: Likewise.
5189         * lib/tls.c: Likewise.
5190         * lib/tls.h: Likewise.
5191         * lib/tmpdir.c: Likewise.
5192
5193         * lib/TODO: Remove; this belongs only in coreutils.
5194
5195 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5196
5197         Add copyright notices to long-enough files that lack them, since
5198         otherwise the files aren't clearly free.  Use the same notice that
5199         getdate.texi already uses.
5200         * doc/alloca-opt.texi: Add copyright notice.
5201         * doc/alloca.texi: Likewise.
5202         * doc/ctime.texi: Likewise.
5203         * doc/functions.texi: Likewise.
5204         * doc/gcd.texi: Likewise.
5205         * doc/gnulib-tool.texi: Likewise.
5206         * doc/inet_ntoa.texi: Likewise.
5207         * doc/visibility.texi: Likewise.
5208
5209         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
5210         * doc/quote.texi: Add copyright notice.
5211
5212         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
5213         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
5214         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
5215         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
5216         is now obsolete, and give a pointer to the Sun list.
5217         Add copyright notice.
5218
5219 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5220
5221         * config/srclistvars.sh: Add copyright notice.
5222
5223 2006-08-14  Eric Blake  <ebb9@byu.net>
5224
5225         Import the following change from libc:
5226
5227         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
5228
5229         Upstream bug 2997.
5230         * lib/misc/error.c: Add space between program name and message if file
5231         name is missing.
5232
5233 2006-08-12  Karl Berry  <karl@gnu.org>
5234
5235         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
5236         remove, these originate in gnulib now.
5237
5238 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5239
5240         * doc/Makefile (standards.info standards.html standards.dvi):
5241         Also depend on make-stds.texi.
5242
5243 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5244
5245         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
5246         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
5247
5248         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
5249         in wchar_t.  Problem reported by Eric Blake.
5250
5251         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
5252         LEN is smaller than SIZE.  Suggested by Bruno Haible.
5253         Also, help the compiler to keep LEN in a register.
5254
5255 2006-08-11  Eric Blake  <ebb9@byu.net>
5256
5257         * users.txt: Sort.  Add tar.
5258
5259 2006-08-11  Bruno Haible  <bruno@clisp.org>
5260
5261         * users.txt: New file.
5262
5263 2006-08-11  Bruno Haible  <bruno@clisp.org>
5264
5265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
5266         before <wchar.h>. Needed for OSF/1 and BSD/OS.
5267
5268 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5269
5270         * modules/snprintf (Depends-on): Remove minmax.
5271         (Maintainer): Add self and Bruno.
5272
5273 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5274
5275         * lib/.cppi-disable: Add snprintf.h, socket_.h.
5276         * lib/snprintf.c: Include <errno.h> and <limits.h>.
5277         (EOVERFLOW): Define if the system does not.
5278         Do not include "minmax.h"; it wasn't used.
5279         (snprintf): Don't assume size_t promotes to an unsigned type.
5280         Fix bug when generated string was too long for the buffer: the
5281         buffer's contents are supposed to be the initial prefix of the
5282         output.  Don't assume vasnprintf returns EOVERFLOW if the size
5283         exceeds INT_MAX; do the check ourselves.
5284
5285         Import the following changes from libc:
5286
5287         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
5288
5289         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
5290         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
5291         set wc to the byte which couldn't be converted.
5292         (re_string_reconstruct): Don't clear valid_raw_len before calling
5293         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
5294         tip_context using re_string_context_at.
5295
5296         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
5297
5298         * lib/posix/regex.h: g++ still cannot handled [restrict].
5299
5300         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
5301
5302         * lib/posix/regex.h: Remove special handling for VMS.
5303
5304 2006-08-10  Jim Meyering  <jim@meyering.net>
5305
5306         * modules/same-inode: New module.
5307         * modules/dev-ino: New module.
5308         * modules/cycle-check: Depend on these modules, rather than simply
5309         including their .h files.
5310         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
5311         required via m4/cycle-check.m4.
5312         * modules/same: Depend on new same-inode module, rather than
5313         including same-inode.h.
5314         * modules/chdir-safer: New file.
5315
5316         * modules/chown (Depends-on): Add stat-macros.
5317
5318 2006-08-10  Jim Meyering  <jim@meyering.net>
5319
5320         * m4/cycle-check.m4: New file.
5321         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
5322         * m4/dev-ino.m4, m4/same-inode.m4: New files.
5323
5324 2006-08-10  Eric Blake  <ebb9@byu.net>
5325
5326         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
5327         in from original proposal.
5328
5329 2006-08-10  Eric Blake  <ebb9@byu.net>
5330         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5331
5332         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
5333         namespace.
5334
5335 2006-08-10  Bruno Haible  <bruno@clisp.org>
5336
5337         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
5338         as well.
5339
5340 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5341
5342         Sync from coreutils.
5343
5344         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
5345
5346         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
5347         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
5348
5349 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5350
5351         * modules/restrict: Remove; no longer needed now that we assume
5352         Autoconf 2.59 or later.
5353         * MODULES.html.sh: Remove 'restrict'.
5354         * modules/argp (Depends-on): Remove 'restrict'.
5355         * modules/base64 (Depends-on): Likewise.
5356         * modules/gc (Depends-on): Likewise.
5357         * modules/getaddrinfo (Depends-on): Likewise.
5358         * modules/glob (Depends-on): Likewise.
5359         * modules/inet_ntop (Depends-on): Likewise.
5360         * modules/inet_pton (Depends-on): Likewise.
5361         * modules/memxor (Depends-on): Likewise.
5362         * modules/regex (Depends-on): Likewise.
5363         * modules/strtok_r (Depends-on): Likewise.
5364         * modules/time_r (Depends-on): Likewise.
5365
5366 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5367
5368         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
5369         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
5370         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5371         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
5372         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5373         * m4/memxor.m4 (gl_MEMXOR): Likewise.
5374         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
5375         gl_C_RESTRICT replaced by AC_C_RESTRICT.
5376
5377         Merge from coreutils.
5378         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
5379         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
5380         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5381         * m4/time_r.m4 (gl_TIME_R): Likewise.
5382
5383 2006-08-09  Karl Berry  <karl@gnu.org>
5384
5385         * config/srclist.txt: no more gettext-tools, per Bruno.
5386
5387 2006-08-08  Eric Blake  <ebb9@byu.net>
5388
5389         * modules/verror: New module.
5390         * MODULES.html.sh: Document it.
5391
5392 2006-08-08  Eric Blake  <ebb9@byu.net>
5393
5394         * lib/verror.h, lib/verror.c: New files.
5395
5396 2006-08-08  Eric Blake  <ebb9@byu.net>
5397
5398         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
5399         verror_at_line output complies with GNU Coding Standards even when
5400         file is NULL.
5401
5402 2006-08-07  Bruno Haible  <bruno@clisp.org>
5403
5404         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
5405         versions of AIX.
5406         Reported by Ralf Wildenhues.
5407
5408 2006-08-07  Bruno Haible  <bruno@clisp.org>
5409
5410         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
5411         in an AC_DEFUN. Needed so that the autoconf snippets can use
5412         AC_REQUIRE.
5413
5414 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5415
5416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5417         Initialize pkgdata_DATA.
5418         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
5419         overriding it.
5420
5421 2006-08-06  Eric Blake  <ebb9@byu.net>
5422
5423         * lib/error.h: Fold in some upstream changes from glibc.
5424         * lib/error.c: Likewise.
5425
5426 2006-08-04  Bruno Haible  <bruno@clisp.org>
5427
5428         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5429         Make the mostlyclean-local rule depend on mostlyclean-generic.
5430         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
5431
5432 2006-07-31  Bruno Haible  <bruno@clisp.org>
5433
5434         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
5435         <stdlib.h>, <string.h>.
5436
5437 2006-07-30  Bruno Haible  <bruno@clisp.org>
5438
5439         * modules/readlink (License): Change to LGPL.
5440
5441 2006-07-30  Bruno Haible  <bruno@clisp.org>
5442
5443         * modules/javaversion (Makefile.am): Distribute javaversion.java and
5444         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
5445         set PKGDATADIR to point to it.
5446
5447 2006-07-30  Bruno Haible  <bruno@clisp.org>
5448
5449         * modules/csharpexec (configure.ac): Comment out macro invocation.
5450         * modules/javaexec (configure.ac): Likewise.
5451         * modules/javacomp-script (configure.ac): Likewise.
5452
5453         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
5454
5455 2006-07-30  Bruno Haible  <bruno@clisp.org>
5456
5457         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
5458         linked-list.
5459
5460 2006-07-30  Bruno Haible  <bruno@clisp.org>
5461
5462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
5463
5464 2006-07-30  Bruno Haible  <bruno@clisp.org>
5465
5466         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5467         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
5468         get removed.
5469
5470 2006-07-29  Bruno Haible  <bruno@clisp.org>
5471
5472         Make it possible for gnulib-tool to work with locally modified or
5473         augmented gnulib repositories.
5474         * gnulib-tool (func_usage): Document --local-dir option.
5475         (local_gnulib_dir): New variable.
5476         Handle --local-dir option.
5477         (func_lookup_file): New function.
5478         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
5479         (func_get_description, func_get_filelist, func_get_description,
5480         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
5481         func_get_automake_snippet, func_get_include_directive,
5482         func_get_license, func_get_maintainer): Use func_lookup_file.
5483         (func_import, func_create_testdir): Use func_lookup_file.
5484
5485 2006-07-29  Bruno Haible  <bruno@clisp.org>
5486
5487         * modules/setenv (Depends-on): Add unistd.
5488
5489 2006-07-29  Bruno Haible  <bruno@clisp.org>
5490
5491         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
5492
5493 2006-07-29  Bruno Haible  <bruno@clisp.org>
5494
5495         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
5496
5497 2006-07-29  Bruno Haible  <bruno@clisp.org>
5498
5499         * gnulib-tool (import, update): If there is no Makefile.am, look at
5500         aclocal.m4, instead of bailing out.
5501
5502 2006-07-29  Bruno Haible  <bruno@clisp.org>
5503
5504         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
5505         Categorize the options by when they are useful.
5506
5507 2006-07-29  Bruno Haible  <bruno@clisp.org>
5508
5509         * gnulib-tool (func_usage): Document option --no-libtool.
5510         Handle option --no-libtool.
5511         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
5512         for changed semantics of $libtool variable.
5513         (func_import): Likewise. If libtool is not used, show this through
5514         an option --no-libtool.
5515         (func_create_testdir): Update.
5516
5517 2006-07-29  Bruno Haible  <bruno@clisp.org>
5518
5519         * gnulib-tool (func_import): Extend error message about missing
5520         --doc-base.
5521
5522 2006-07-29  Bruno Haible  <bruno@clisp.org>
5523
5524         * gnulib-tool (func_import): Don't create the $docbase directory if
5525         there is no file to store there.
5526
5527 2006-07-29  Bruno Haible  <bruno@clisp.org>
5528
5529         * gnulib-tool (autoconf_minversion): If a --dir option is given and
5530         relevant, look for configure.ac there, not in the current directory.
5531         Also use a simple search for AC_PREREQ, not "autoconf --trace".
5532
5533 2006-07-29  Bruno Haible  <bruno@clisp.org>
5534
5535         * gnulib-tool (SORT): New variable.
5536         (func_usage): Undocument --assume-autoconf option.
5537         Remove --assume-autoconf option handling.
5538         (autoconf_minversion): Determine from the contents of configure.ac.
5539         (func_import): Remove autoconf_minversion handling.
5540         Suggested by Eric Blake.
5541
5542 2006-07-29  Bruno Haible  <bruno@clisp.org>
5543
5544         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
5545
5546 2006-07-29  Bruno Haible  <bruno@clisp.org>
5547
5548         * config/srclist.txt (*setenv.[ch]): Remove rules.
5549
5550 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5551
5552         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
5553
5554 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5555
5556         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
5557         arpa/inet.h.
5558
5559 2006-07-28  Simon Josefsson  <jas@extundo.com>
5560
5561         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
5562         * modules/inet_pton (Depends-on): Likewise.
5563
5564 2006-07-28  Simon Josefsson  <jas@extundo.com>
5565
5566         * m4/netinet_in_h.m4: New file.
5567
5568 2006-07-28  Simon Josefsson  <jas@extundo.com>
5569
5570         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
5571         #include's.
5572
5573 2006-07-28  Simon Josefsson  <jas@extundo.com>
5574
5575         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
5576         #include's.
5577
5578 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
5579
5580         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
5581         setgid on directories only if they set these bits.
5582         * lib/modechange.h: Remove obsolete comment about masks.
5583
5584 2006-07-28  Eric Blake  <ebb9@byu.net>
5585
5586         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
5587         macro expansion.
5588
5589 2006-07-28  Bruno Haible  <bruno@clisp.org>
5590
5591         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
5592
5593 2006-07-28  Bruno Haible  <bruno@clisp.org>
5594
5595         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
5596
5597 2006-07-28  Bruno Haible  <bruno@clisp.org>
5598
5599         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5600         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5601         Define fallbacks.
5602         Avoids link error on FreeBSD 4.x.
5603         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5604
5605         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
5606         encoding.
5607         * lib/mbswidth.c (iswcntrl): Likewise.
5608
5609 2006-07-27  Bruno Haible  <bruno@clisp.org>
5610
5611         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
5612         test.
5613
5614 2006-07-27  Bruno Haible  <bruno@clisp.org>
5615
5616         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
5617         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
5618         defined.
5619
5620 2006-07-26  Eric Blake  <ebb9@byu.net>
5621
5622         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
5623
5624 2006-07-26  Eric Blake  <ebb9@byu.net>
5625
5626         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
5627         like mingw that lack mkstemp.
5628         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
5629         avoid compilation warning on mingw.
5630
5631 2006-07-26  Bruno Haible  <bruno@clisp.org>
5632
5633         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
5634         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
5635         INT_FAST*_MIN, INTPTR_MIN.
5636
5637 2006-07-25  Bruno Haible  <bruno@clisp.org>
5638
5639         * modules/version-etc (Depends-on): Add stdarg.
5640
5641 2006-07-25  Bruno Haible  <bruno@clisp.org>
5642
5643         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
5644         complex commands.
5645
5646 2006-07-25  Bruno Haible  <bruno@clisp.org>
5647
5648         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
5649         defined in <stdarg.h> or config.h.
5650
5651 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5652
5653         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
5654         (gl_STDIO_SAFER): Remove.
5655
5656 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5657
5658         * MODULES.html.sh (File stream based Input/Output):
5659         Add fopen-safer, tmpfile-safer; remove stdio-safer.
5660         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
5661         * modules/fopen-safer, modules/tmpfile-safer: New files.
5662         * modules/stdio-safer: Remove.
5663
5664 2006-07-24  Bruno Haible  <bruno@clisp.org>
5665
5666         * modules/tmpdir: New file.
5667         * MODULES.html.sh (File system functions): Add it.
5668
5669 2006-07-24  Bruno Haible  <bruno@clisp.org>
5670
5671         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
5672         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
5673
5674 2006-07-24  Bruno Haible  <bruno@clisp.org>
5675
5676         * modules/clean-temp: New file.
5677
5678 2006-07-24  Bruno Haible  <bruno@clisp.org>
5679
5680         * m4/tmpdir.m4: New file, from GNU gettext.
5681
5682 2006-07-24  Bruno Haible  <bruno@clisp.org>
5683
5684         * lib/tmpdir.h: New file, from GNU gettext.
5685         * lib/tmpdir.c: New file, from GNU gettext.
5686
5687 2006-07-24  Bruno Haible  <bruno@clisp.org>
5688
5689         * lib/clean-temp.h: New file, from GNU gettext.
5690         * lib/clean-temp.c: New file, from GNU gettext.
5691
5692 2006-07-23  Eric Blake  <ebb9@byu.net>
5693
5694         * modules/stdio-safer (Files): Add tmpfile-safer.c.
5695         (Depends-on): Add binary-io.
5696
5697 2006-07-23  Eric Blake  <ebb9@byu.net>
5698
5699         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
5700
5701 2006-07-23  Eric Blake  <ebb9@byu.net>
5702
5703         * lib/tmpfile-safer.c: New file.
5704         * lib/stdio-safer.h (fopen_safer): Add prototype.
5705         * lib/stdio--.h (tmpfile): Make safer.
5706
5707 2006-07-23  Bruno Haible  <bruno@clisp.org>
5708
5709         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
5710         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
5711         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
5712         gl_linked_remove_at): Use it.
5713
5714 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5715         and Simon Josefsson <jas@extundo.com>
5716
5717         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
5718
5719         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
5720
5721 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5722
5723         * modules/close-stream: New file.
5724         * modules/closeout (Description): Make it clear that it exits
5725         with a diagnostic on error.
5726         (Depends-on): Add close-stream.  Remove fpending, stdbool.
5727         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
5728
5729 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5730
5731         * m4/close-stream.m4: New file.
5732
5733 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5734
5735         * lib/close-stream.c, lib/close-stream.h: New files.
5736
5737 2006-07-22  Bruno Haible  <bruno@clisp.org>
5738
5739         Merge from GNU gettext 0.15.
5740
5741         2006-05-01  Bruno Haible  <bruno@clisp.org>
5742
5743                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
5744
5745         2006-07-22  Bruno Haible  <bruno@clisp.org>
5746
5747                 * modules/javaversion: New file.
5748                 * MODULES.html.sh (Java): Add javaversion.
5749
5750         2006-03-12  Bruno Haible  <bruno@clisp.org>
5751
5752                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
5753
5754         2005-12-04  Bruno Haible  <bruno@clisp.org>
5755
5756                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
5757                 (untested).
5758
5759         2006-06-21  Bruno Haible  <bruno@clisp.org>
5760
5761                 Avoid warnings from recent versions of mcs.
5762                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
5763                 -o, -L, -r any more. Use options documented since mcs-1.0
5764                 instead. Similarly for -g.
5765
5766         2005-12-04  Bruno Haible  <bruno@clisp.org>
5767
5768                 * build-aux/csharpcomp.sh.in: Suffix for resources is
5769                 .resources, not .resource.
5770
5771         2005-07-09  Bruno Haible  <bruno@clisp.org>
5772
5773                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
5774                 add a .dll suffix.
5775                 Reported by Mark Junker <mjscod@gmx.de>.
5776
5777         2006-07-22  Bruno Haible  <bruno@clisp.org>
5778
5779                 * modules/gettext: Upgrade to gettext-0.15.
5780                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
5781                 m4/visibility.m4.
5782                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
5783
5784 2006-07-22  Bruno Haible  <bruno@clisp.org>
5785
5786         Merge from GNU gettext 0.15.
5787
5788         2006-03-25  Bruno Haible  <bruno@clisp.org>
5789
5790                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
5791
5792         2006-07-21  Bruno Haible  <bruno@clisp.org>
5793
5794                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
5795                 "1.1".
5796
5797         2006-05-09  Bruno Haible  <bruno@clisp.org>
5798
5799                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
5800                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
5801                 for the conftestver execution.
5802
5803         2006-05-01  Bruno Haible  <bruno@clisp.org>
5804
5805                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
5806                 optional target-version argument. Verify that the compiler
5807                 groks source of the specified source-version, or add -source
5808                 option as necessary. Verify that the compiler produces
5809                 bytecode in the specified target-version, or add -target and
5810                 -source options as necessary. Make the result of the test
5811                 available as variable CONF_JAVAC. Also log error output in
5812                 config.log.
5813
5814         2006-03-11  Bruno Haible  <bruno@clisp.org>
5815
5816                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
5817
5818         2006-05-09  Bruno Haible  <bruno@clisp.org>
5819
5820                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
5821                 CLASSPATH_SEPARATOR to a semicolon.
5822
5823         2006-03-12  Bruno Haible  <bruno@clisp.org>
5824
5825                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
5826                 available as variable CONF_JAVA, for subsequent autoconf
5827                 tests. Also log error output in config.log.
5828
5829         2006-07-19  Bruno Haible  <bruno@clisp.org>
5830
5831                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
5832                 that getline works on glibc2 systems. Needed to avoid trouble
5833                 in relocatable.c.
5834                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
5835
5836         2005-12-04  Bruno Haible  <bruno@clisp.org>
5837
5838                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
5839                 launcher (untested).
5840
5841         2005-12-04  Bruno Haible  <bruno@clisp.org>
5842
5843                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
5844
5845         2006-07-22  Bruno Haible  <bruno@clisp.org>
5846
5847                 * gettext.m4: Update from GNU gettext-0.15.
5848                 * nls.m4: Likewise.
5849                 * po.m4: Likewise.
5850                 * inttypes-pri.m4: Likewise.
5851                 * inttypes-h.m4: Renamed from inttypes.m4.
5852                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
5853
5854 2006-07-22  Bruno Haible  <bruno@clisp.org>
5855
5856         Merge from GNU gettext 0.15.
5857
5858         2005-07-05  Bruno Haible  <bruno@clisp.org>
5859
5860                 * printf-args.c (printf_fetchargs): Work around broken
5861                 definition of wint_t on mingw.
5862
5863         2005-02-12  Bruno Haible  <bruno@clisp.org>
5864
5865                 * xallocsa.h: Add extern "C" for C++.
5866
5867         2006-05-17  Bruno Haible  <bruno@clisp.org>
5868
5869                 Cygwin portability.
5870                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
5871
5872         2006-04-30  Bruno Haible  <bruno@clisp.org>
5873
5874                 * progreloc.c: Include <mach-o/dyld.h> if available.
5875                 (find_executable): Use _NSGetExecutablePath when possible.
5876
5877         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
5878
5879                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
5880                 function.
5881
5882         2005-12-29  Bruno Haible  <bruno@clisp.org>
5883
5884                 * progreloc.c (set_program_name_and_installdir): Fix
5885                 compilation error.
5886
5887         2005-12-04  Bruno Haible  <bruno@clisp.org>
5888
5889                 Cygwin portability.
5890                 * progreloc.c: Include <windows.h> also on Cygwin.
5891                 (find_executable): Add support for Cygwin.
5892                 (set_program_name_and_installdir): Handle also platforms with
5893                 nonempty EXEEXT.
5894
5895         2006-07-11  Bruno Haible  <bruno@clisp.org>
5896
5897                 * javacomp.c: Fix a comment.
5898                 Reported by Jim Meyering.
5899
5900         2006-04-30  Bruno Haible  <bruno@clisp.org>
5901
5902                 * javacomp.h (compile_java_class): Add source_version,
5903                 target_version arguments.
5904                 * javacomp.c: Rewritten to choose only a compiler that
5905                 respects the specified source_version and target_version.
5906
5907         2006-06-27  Bruno Haible  <bruno@clisp.org>
5908
5909                 Assume correct S_ISDIR macro.
5910                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
5911
5912         2006-07-22  Bruno Haible  <bruno@clisp.org>
5913
5914                 * javaversion.h: New file, from GNU gettext.
5915                 * javaversion.c: New file, from GNU gettext.
5916                 * javaversion.java: New file, from GNU gettext.
5917                 * javaversion.class: New file, from GNU gettext.
5918
5919         2006-05-17  Bruno Haible  <bruno@clisp.org>
5920
5921                 Cygwin portability.
5922                 * javaexec.c (execute_java_class): Test for jview program
5923                 also on Cygwin.
5924
5925         2006-04-09  Bruno Haible  <bruno@clisp.org>
5926
5927                 * fatal-signal.c: Don't include string.h.
5928                 (at_fatal_signal): Use a copying loop instead of memcpy.
5929
5930         2005-12-04  Bruno Haible  <bruno@clisp.org>
5931
5932                 * csharpexec.c: Add support for 'clix' launcher (untested).
5933                 (execute_csharp_using_sscli): New function.
5934                 (execute_csharp_program): Call it.
5935
5936         2006-06-21  Bruno Haible  <bruno@clisp.org>
5937
5938                 Avoid warnings from recent versions of mcs.
5939                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
5940                 -o, -L, -r any more. Use options documented since mcs-1.0
5941                 instead. Similarly for -g.
5942
5943         2005-07-09  Bruno Haible  <bruno@clisp.org>
5944
5945                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
5946                 add a .dll suffix.
5947                 Reported by Mark Junker <mjscod@gmx.de>.
5948
5949         2006-06-17  Bruno Haible  <bruno@clisp.org>
5950
5951                 * config.charset: Update for NetBSD 3.0.
5952
5953         2006-05-17  Bruno Haible  <bruno@clisp.org>
5954
5955                 Cygwin portability.
5956                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
5957
5958         2006-05-16  Bruno Haible  <bruno@clisp.org>
5959
5960                 * localcharset.c [CYGWIN]: Include <windows.h>.
5961                 (get_charset_aliases): For Cygwin, return the same CPxxx
5962                 aliases list as under WIN32.
5963                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
5964                 the environment variables. Fall back to GetACP().
5965
5966         2006-04-05  Bruno Haible  <bruno@clisp.org>
5967
5968                 * config.charset: Update Juan Manuel Guerrero's address.
5969
5970         2005-02-12  Bruno Haible  <bruno@clisp.org>
5971
5972                 * allocsa.h: Add extern "C" for C++.
5973
5974         2005-02-10  Bruno Haible  <bruno@clisp.org>
5975
5976                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
5977                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
5978
5979         2006-07-22  Bruno Haible  <bruno@clisp.org>
5980
5981                 * gettext.h: Update to GNU gettext-0.15.
5982
5983 2006-07-22  Bruno Haible  <bruno@clisp.org>
5984
5985         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
5986         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
5987         lib-prefix.m4, longdouble.m4, ssize_t.m4.
5988
5989 2006-07-21  Eric Blake  <ebb9@byu.net>
5990
5991         * modules/stdlib-safer: New file.
5992         * MODULES.html.sh (File stream based Input/Output): Add
5993         stdlib-safer.
5994
5995 2006-07-21  Eric Blake  <ebb9@byu.net>
5996
5997         * lib/stdlib-safer.h: New file from coreutils, required by
5998         stdlib--.h.
5999
6000 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
6001
6002         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
6003
6004 2006-07-20  Bruno Haible  <bruno@clisp.org>
6005
6006         * gnulib-tool: Recognize new option --assume-autoconf.
6007         (autoconf_minversion): New variable.
6008         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
6009
6010 2006-07-20  Bruno Haible  <bruno@clisp.org>
6011
6012         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
6013
6014 2006-07-19  Derek R. Price  <derek@ximbiot.com>
6015
6016         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
6017         Reindent and repaginate.
6018
6019 2006-07-19  Derek Price  <derek@ximbiot.com>
6020
6021         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
6022         Correct grammar.
6023
6024 2006-07-17  Bruno Haible  <bruno@clisp.org>
6025
6026         * modules/list: New file.
6027         * modules/array-list: New file.
6028         * modules/carray-list, modules/carray-list-tests: New files.
6029         * modules/linked-list, modules/linked-list-tests: New files.
6030         * modules/avltree-list, modules/avltree-list-tests: New files.
6031         * modules/rbtree-list, modules/rbtree-list-tests: New files.
6032         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
6033         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
6034         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
6035         * modules/oset: New file.
6036         * modules/array-oset: New file.
6037         * modules/avltree-oset, modules/avltree-oset-tests: New files.
6038         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
6039         * tests/test-carray_list.c: New file.
6040         * tests/test-linked_list.c: New file.
6041         * tests/test-avltree_list.c: New file.
6042         * tests/test-rbtree_list.c: New file.
6043         * tests/test-linkedhash_list.c: New file.
6044         * tests/test-avltreehash_list.c: New file.
6045         * tests/test-rbtreehash_list.c: New file.
6046         * tests/test-avltree_oset.c: New file.
6047         * tests/test-rbtree_oset.c: New file.
6048         * MODULES.html.sh (Container data structures): New section.
6049
6050 2006-07-17  Bruno Haible  <bruno@clisp.org>
6051
6052         * m4/gl_list.m4: New file.
6053
6054 2006-07-17  Bruno Haible  <bruno@clisp.org>
6055
6056         * lib/gl_list.h: New file.
6057         * lib/gl_list.c: New file.
6058         * lib/gl_array_list.h: New file.
6059         * lib/gl_array_list.c: New file.
6060         * lib/gl_carray_list.h: New file.
6061         * lib/gl_carray_list.c: New file.
6062         * lib/gl_linked_list.h: New file.
6063         * lib/gl_linked_list.c: New file.
6064         * lib/gl_anylinked_list1.h: New file.
6065         * lib/gl_anylinked_list2.h: New file.
6066         * lib/gl_avltree_list.h: New file.
6067         * lib/gl_avltree_list.c: New file.
6068         * lib/gl_anyavltree_list1.h: New file.
6069         * lib/gl_anyavltree_list2.h: New file.
6070         * lib/gl_rbtree_list.h: New file.
6071         * lib/gl_rbtree_list.c: New file.
6072         * lib/gl_anyrbtree_list1.h: New file.
6073         * lib/gl_anyrbtree_list2.h: New file.
6074         * lib/gl_anytree_list1.h: New file.
6075         * lib/gl_anytree_list2.h: New file.
6076         * lib/gl_linkedhash_list.h: New file.
6077         * lib/gl_linkedhash_list.c: New file.
6078         * lib/gl_anyhash_list1.h: New file.
6079         * lib/gl_anyhash_list2.h: New file.
6080         * lib/gl_avltreehash_list.h: New file.
6081         * lib/gl_avltreehash_list.c: New file.
6082         * lib/gl_rbtreehash_list.h: New file.
6083         * lib/gl_rbtreehash_list.c: New file.
6084         * lib/gl_anytreehash_list1.h: New file.
6085         * lib/gl_anytreehash_list2.h: New file.
6086
6087         * lib/gl_oset.h: New file.
6088         * lib/gl_oset.c: New file.
6089         * lib/gl_array_oset.h: New file.
6090         * lib/gl_array_oset.c: New file.
6091         * lib/gl_avltree_oset.h: New file.
6092         * lib/gl_avltree_oset.c: New file.
6093         * lib/gl_rbtree_oset.h: New file.
6094         * lib/gl_rbtree_oset.c: New file.
6095         * lib/gl_anytree_oset.h: New file.
6096
6097 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6098
6099         * m4/mkancesdirs.m4: New file.
6100         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
6101         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
6102         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
6103         it.
6104
6105 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6106
6107         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
6108         * lib/mkancesdirs.h: New files.
6109         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
6110         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
6111         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
6112         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
6113         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
6114         callers changed.  Revamp internals significantly, by not
6115         attempting to create directories that are temporarily more
6116         permissive than the final results.  Do not attempt to use
6117         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
6118         This removes some race conditions, fixes some bugs, and simplifies
6119         things.  Use new dirchownmod function to do owner and mode changes.
6120         * lib/mkdir-p.h: Likewise.
6121         * lib/modechange.c (octal_to_mode): New function.
6122         (struct mode_change): New member mentioned.
6123         (make_node_op_equals): New arg mentioned.  All callers changed.
6124         (mode_compile): Keep track of which mode bits the user has explicitly
6125         mentioned.
6126         (mode_adjust): New arg DIR, so that we implement the X op correctly.
6127         New arg PMODE_BITS, to keep track of which mode bits the user
6128         mentioned; it treats S_ISUID and S_ISGID speciall.
6129         All callers changed.
6130         * lib/modechange.h: Likewise.
6131
6132 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6133
6134         * MODULES.html.sh: Add mkancestors.
6135         * modules/mkancesdirs: New module.
6136         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
6137         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
6138         The chdir-safer and afs files are now orphans; I'll remove them
6139         unless someone speaks up.
6140         Add lib/dirchownmod.c, lib/dirchownmod.h.
6141         (Depends-on): Remove alloca, chown, save-cwd, dirname.
6142         Add lchown, mkancesdirs.
6143         (Maintainer): Add self.
6144
6145 2006-07-15  Karl Berry  <karl@gnu.org>
6146
6147         * gnulib-tool: help message wording/arrangement.
6148
6149 2006-07-14  Simon Josefsson  <jas@extundo.com>
6150
6151         * doc/gnulib.texi (Libtool and Windows): New section.
6152
6153 2006-07-12  Simon Josefsson  <jas@extundo.com>
6154
6155         * modules/gendocs (License): Fix license, approved by Karl.
6156
6157 2006-07-12  Eric Blake  <ebb9@byu.net>
6158
6159         * MODULES.html.sh: Add gendocs.
6160
6161 2006-07-11  Eric Blake  <ebb9@byu.net>
6162
6163         * modules/fdl: New module, to install doc/fdl.texi.
6164         * MODULES.html.sh: Add new section for documentation modules.
6165         * gnulib-tool: Avoid space-tab.
6166         (--doc-base): New option, to manage files from doc.
6167
6168 2006-07-11  Eric Blake  <ebb9@byu.net>
6169
6170         * m4/absolute-header.m4: Fix comments to match recent change.
6171
6172 2006-07-11  Eric Blake  <ebb9@byu.net>
6173
6174         * gnulib-tool: List --doc-base before --tests-base.
6175
6176 2006-07-11  Derek R. Price  <derek@ximbiot.com>
6177
6178         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
6179
6180 2006-07-11  Bruno Haible  <bruno@clisp.org>
6181
6182         * README: Mention where to put documentation.
6183
6184 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6185
6186         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
6187
6188 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6189
6190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
6191         to stdint.m4.
6192
6193 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6194
6195         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
6196         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
6197         "no/such/file/stdint.h" when there is no such file, so that
6198         the resulting C code can be parsed by dodgy compilers.
6199         Problems reported by Bob Proulx.
6200
6201 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6202
6203         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
6204         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6205         macros into the GNU _D_EXACT_NAMLEN.
6206         * lib/savedir.c:  Likewise.
6207         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
6208
6209 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6210         and Paul Eggert  <eggert@cs.ucla.edu>
6211
6212         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
6213         * m4/savedir.m4:
6214         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6215         macros into the GNU _D_EXACT_NAMLEN.
6216
6217 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6218
6219         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
6220         around the absolute name, to work around a problem with the HP-UX
6221         11.23 native C compiler, reported by Bob Proulx.
6222
6223 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6224
6225         * doc/maintain.texi, make-stds.texi: Sync from
6226         <http://savannah.gnu.org/projects/gnustandards>.
6227
6228 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6229
6230         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
6231
6232 2006-07-09  Jim Meyering  <jim@meyering.net>
6233
6234         * m4/glob.m4: Remove a doubled word in a comment.
6235
6236 2006-07-09  Jim Meyering  <jim@meyering.net>
6237
6238         * lib/argp-pv.c: Remove a doubled word in a comment.
6239         * lib/check-version.c (check_version): Likewise.
6240         * lib/javacomp.c (compile_java_class): Likewise.
6241
6242 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6243
6244         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
6245         for the benefit of people using Autoconf 2.60.  If you want to
6246         support older Autoconf versions you can copy m4/onceonly_2_57.m4
6247         (or m4/onceonly.m4, if pre-2.57) manually.
6248
6249 2006-07-08  Jim Meyering  <jim@meyering.net>
6250
6251         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
6252         comment.
6253         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
6254         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
6255         comment.
6256
6257 2006-07-08  Jim Meyering  <jim@meyering.net>
6258
6259         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
6260
6261 2006-07-07  Simon Josefsson  <jas@extundo.com>
6262
6263         * tests/test-crc.c: Change expected crc value, the test vector
6264         were probably computed using the old broken crc.c?
6265
6266 2006-07-06  Simon Josefsson  <jas@extundo.com>
6267
6268         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
6269         now the canonical place for the M4 file).
6270
6271         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
6272         from the sys_socket dependency now.
6273
6274         * modules/inet_pton (Files): Ditto.
6275
6276         * modules/inet_ntop (Files): Ditto.
6277
6278 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
6279
6280         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
6281         not gl_PREREQ_GETUSERSHELL.
6282
6283 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6284
6285         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
6286         with only one argument, for Autoconf 2.60.
6287         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
6288         expand to nothing, so add a shell command to avoid syntax error.
6289         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6290
6291 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6292
6293         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
6294
6295 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6296
6297         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
6298         no longer needed.  Check for isblank decl.
6299         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
6300         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
6301         of existence.
6302
6303 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6304
6305         * lib/getloadavg.c: Use __VMS, not VMS.
6306         * lib/getopt.c: Likewise.
6307         * lib/getpagesize.h: Likewise.
6308         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
6309         and probably does not work.
6310
6311 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6312
6313         * lib/.cppi-disable: Add wcwidth.
6314         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
6315         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
6316         (ISGRAPH): Remove.  All uses changed to isgraph.
6317         (FOLD) [!defined _LIBC]: Remove special case.
6318         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
6319         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
6320         HAVE_ISBLANK.
6321         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
6322         case.
6323
6324 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
6325
6326         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
6327         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
6328         brackets.  Other minor changes to suppress some compiler
6329         warnings.
6330
6331 2006-07-06  Derek R. Price  <derek@ximbiot.com>
6332         and Paul Eggert  <eggert@cs.ucla.edu>
6333
6334         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
6335         of invoking obsolescent AC_HEADER_DIRENT macro.
6336         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6337         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6338         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6339         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
6340         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
6341         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6342         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
6343         * m4/readdir.m4: Remove; no longer needed.
6344
6345 2006-07-06  Derek R. Price  <derek@ximbiot.com>
6346         and Paul Eggert  <eggert@cs.ucla.edu>
6347
6348         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
6349         Don't worry about this obsolete case any more.
6350         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
6351         directories.
6352         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
6353         worry about this obsolete case any more.
6354         * lib/fts.c: Likewise.
6355         * lib/getcwd.c: Likewise.
6356         * lib/glob.h: Likewise.
6357         * lib/savedir.c: Likewise.
6358
6359 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6360
6361         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
6362         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
6363         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
6364         needed.
6365         All uses removed.
6366         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6367         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6368         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
6369         needed.
6370         * m4/getdate.m4 (gl_GETDATE): Likewise.
6371         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6372         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6373         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6374         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6375         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6376         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6377         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
6378         needed.
6379
6380 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6381
6382         * lib/memcasecmp.c: Include <limits.h>.
6383         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
6384         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
6385         Don't assume isdigit succeeds only on '0' through '9'.
6386
6387 2006-07-05  Eric Blake  <ebb9@byu.net>
6388
6389         * modules/getaddrinfo (Depends-on): Add snprintf.
6390
6391 2006-07-05  Eric Blake  <ebb9@byu.net>
6392
6393         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
6394         to avoid 'header present but could not be compiled' on cygwin.
6395
6396 2006-07-05  Eric Blake  <ebb9@byu.net>
6397
6398         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
6399         missing from netdb.h.
6400         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
6401
6402 2006-07-05  Derek R. Price  <derek@ximbiot.com>
6403
6404         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
6405         no longer needed.
6406         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
6407         * m4/getdate.m4 (gl_GETDATE): Likewise.
6408         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6409         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6410         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6411         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6412         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6413
6414 2006-07-05  Derek R. Price  <derek@ximbiot.com>
6415
6416         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
6417         All uses of is_space replaced by isspace.
6418         * lib/exit.h: Don't talk about STDC_HEADERS.
6419         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
6420         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
6421         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
6422         replaced by isprint etc.
6423         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
6424         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
6425         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
6426         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
6427         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
6428         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
6429
6430 2006-07-05  Bruno Haible  <bruno@clisp.org>
6431
6432         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
6433         the function exists, before testing against AIX.
6434         Reported by Martin Lambers <marlam@marlam.de>.
6435
6436 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
6437
6438         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
6439         From Mark D. Baushke.
6440
6441 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
6442
6443         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
6444         to the absolute name, not just one, to bypass Sun C 5.8's
6445         "warning: #include of /usr/include/... may be non-portable".
6446
6447 2006-07-04  Eric Blake  <ebb9@byu.net>
6448
6449         * modules/dirname-tests: New test module.
6450         * tests/test-dirname.c: New file, replacing dirname.c
6451         TEST_DIRNAME section that was recently deleted.
6452
6453 2006-07-04  Bruno Haible  <bruno@clisp.org>
6454
6455         Assume ANSI C header files and <ctype.h> functions.
6456         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
6457         (mbsnwidth): Use isprint, iscntrl instead.
6458
6459 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
6460
6461         Merge from coreutils.
6462         * MODULES.html.sh: Add xstrtold.
6463         * modules/xstrtold: New file.
6464         * modules/cycle-check (Files): Add lib/same-inode.h.
6465         * modules/dirname (Files): Add m4/double-slash-root.m4.
6466         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
6467         * modules/mkdir-p (Files): Add lib/same-inode.h.
6468         * modules/same (Files): Add lib/same-inode.h.
6469
6470 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
6471
6472         * m4/absolute-header.m4: Renamed from full-header-path.m4.
6473         This is to keep the terminology clean; POSIX talks about
6474         "absolute pathnames", not "full pathnames", but the GNU
6475         Coding Standards say to use "path" for something else;
6476         so use "absolute" to keep both sides happy.
6477         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
6478         Set gl_absolute_header, not gl_full_header_path.
6479         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
6480         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
6481         All uses changed.
6482
6483         Merge from coreutils.
6484
6485         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6486
6487         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
6488         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
6489         want to require the building of c-strtod.o.
6490         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
6491         needs -lm directly.
6492         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
6493
6494         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
6495
6496         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
6497         --as-needed option if available.  Problem reported by Albert Chin in
6498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
6499         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
6500         cc merely issues a bunch of annoying warnings for --as-needed
6501         (this problem was reported by Bob Proulx).  Also, try linking with
6502         -lm to detect a bug in binutils 2.16 (this problem was reported
6503         by Ralf Wildenhues).
6504
6505         2006-06-18  Jim Meyering  <jim@meyering.net>
6506
6507         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
6508         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
6509         macro.
6510         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
6511         also check for glibc-2.4's abort-inducing bug.
6512
6513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
6514         Low-probability clean-up should be to use rmdir to get rid of
6515         the just-created directory, not unlink.
6516
6517         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
6518         configure fail, and request a bug report to inform us about it.
6519         Add a comment that, barring reports to the contrary, in 2007 we'll
6520         assume ftruncate is universally available.
6521
6522         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
6523
6524         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
6525
6526         2006-03-12  Jim Meyering  <jim@meyering.net>
6527
6528         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
6529         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
6530         * m4/same.m4 (gl_SAME): Likewise.
6531         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
6532
6533         2006-03-11  Eric Blake  <ebb9@byu.net>
6534
6535         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
6536         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
6537         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
6538         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
6539
6540 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
6541
6542         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
6543         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
6544         reported by Mark D. Baushke, one in
6545         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
6546
6547         Merge from coreutils.
6548
6549         * lib/.cppi-disable: Add stdint_.h.
6550         * lib/.cvsignore: Add stdint.h.
6551
6552         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6553
6554         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
6555         both double and long double versions.
6556         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
6557         * lib/xstrtold.c: New file.
6558         * lib/xstrtod.h (xstrtold): New decl.
6559
6560         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6561
6562         * lib/filemode.c (setst): Remove.
6563         (strmode): Rewrite to avoid setst.  This makes the code shorter,
6564         (arguably) clearer, and the generated code is a bit smaller on my
6565         Debian GNU/Linux stable x86 host.
6566
6567         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
6568
6569         * lib/filemode.c: Include "filemode.h" first, to test the interface.
6570         Assume that filemode.h includes sys/types.h and sys/stat.h.
6571         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
6572         (ftypelet): Reorder to put common cases first, for efficiency.
6573         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
6574         to do 'M'.
6575         (strmode): Renamed from mode_string, and now stores 12 bytes instead
6576         of 10, for compatibility with FreeBSD.  All callers changed.
6577         (filemodestring): Now stores 12 bytes instead of 10, and sets file
6578         types that can't be deduced solely from st_mode.  First arg is now a
6579         const pointer.
6580         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
6581         (strmode): Renamed from mode_string.
6582         (filemodestring): New decl.
6583         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
6584         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
6585         needed.
6586         (S_ISPORT, S_ISWHT): New macros, if not already defined.
6587
6588         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
6589
6590         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
6591         fsusage.h now does that.  Include fsusage.h first, to test interface.
6592         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
6593         at most one method (the old code could have generated decls that
6594         didn't conform to C89, not that this was ever exercised).
6595         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
6596
6597         2006-03-19  Jim Meyering  <jim@meyering.net>
6598
6599         Work even in a chroot where d_ino values for entries in "/"
6600         don't match the stat.st_ino values for the same names.
6601         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
6602         number, iterate through all entries again, using lstat instead.
6603         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
6604         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
6605
6606         * lib/getcwd.c (__getcwd): Clarify a comment.
6607         Use memcpy in place of a call to strcpy.
6608
6609         2006-03-12  Jim Meyering  <jim@meyering.net>
6610
6611         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
6612         matches that of the current directory (which we're about to chdir ".."
6613         out of), then save the dev-ino of the parent, instead.
6614
6615         * lib/same-inode.h (SAME_INODE): New file/macro.
6616         * lib/chdir-safer.c (SAME_INODE): Remove definition.
6617         Include "same-inode.h", instead.
6618         * lib/same.c: Likewise.
6619         * lib/cycle-check.h: Include "same-inode.h".
6620         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
6621         * lib/cycle-check.c (SAME_INODE): Remove definition.
6622         * lib/root-dev-ino.h: Include "same-inode.h".
6623
6624         2006-03-11  Eric Blake  <ebb9@byu.net>
6625
6626         * lib/same.c (same_name): s/base_name/last_component/
6627         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
6628         * lib/filenamecat.c (file_name_concat): Likewise.
6629
6630         2006-03-11  Eric Blake  <ebb9@byu.net>,
6631                     Paul Eggert  <eggert@cs.ucla.edu>
6632
6633         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
6634         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
6635         drive prefix.
6636         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
6637         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
6638         (last_component): New method.
6639         * lib/dirname.c (dir_len): Determine when drive letters need a
6640         subsequent slash.  Preserve // when it is special.
6641         (dir_name): Don't append dot when drive letter is absolute.
6642         [TEST_DIRNAME]: Move into a full-blown gnulib test.
6643         * lib/basename.c (base_name): New semantics - malloc the result.
6644         Preserve // when it is special.  Preserve relative files that look
6645         like drive letters.
6646         (base_len): Preserve // when it is special.
6647         (last_component): New method, similar to old base_name semantics.
6648         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
6649         base_name.  Strip redundant slashes from ///.
6650
6651 2006-07-03  Jim Meyering  <jim@meyering.net>
6652
6653         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
6654         macro is used before the first cycle_check call.
6655
6656 2006-07-03  Eric Blake  <ebb9@byu.net>
6657
6658         * modules/dirname (Depends-on): Add xstrndup.
6659
6660 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
6661
6662         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
6663         test cases, so that config.log is a bit easier to follow.
6664
6665 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
6666
6667         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
6668         both are 64 bits, since this seems to be the tradition, and this
6669         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
6670         we ever run into a host that prefers long long to long in this
6671         case, we'll need another configure-time test.  Problem reported by
6672         Jim Meyering.
6673
6674 2006-07-02  Eric Blake  <ebb9@byu.net>
6675
6676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
6677
6678 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6679
6680         * modules/inttypes (Depends-on): No longer depends on stdint.
6681         * modules/stdint (Description): Say more about assumptions.
6682         Say that the fast types might differ.  Say macros are used.
6683         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
6684         (Makefile.am): Revise list of substituted symbols to match
6685         new stdint.m4.
6686         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
6687         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
6688         * tests/test-stdint.c (verify_same_types)
6689         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
6690         the code conforms to C99/C89.
6691         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
6692         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
6693
6694 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6695
6696         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
6697         but fix a bug, by requiring at least 64 bits.
6698         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6699         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
6700         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
6701         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
6702
6703         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
6704         changes.  Make 2.59 a prerequisite.  Check and substitute for
6705         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
6706         inttypes.h.  Do not use special include files; just use the
6707         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
6708         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
6709         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
6710         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
6711         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
6712         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
6713         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
6714         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
6715         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
6716         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
6717         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
6718         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
6719         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
6720         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
6721         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
6722         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
6723         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
6724         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
6725         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
6726         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
6727         WINT_MAX.  Check for C99 conformance more strictly, by detecting
6728         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
6729         not check for things that C99 does not require, e.g., int8_t.  If
6730         a test isn't needed unless <stdint.h> isn't working, and is
6731         unlikely to be needed for any other reason, then don't do it
6732         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
6733         size_t, since we assume C89 freestanding at least.  Do not check
6734         for sig_atomic_t, wchar_t, or wint_t, since the code now does
6735         the right thing even if the types are not defined.  Instead use:
6736         (gl_STDINT_TYPE_PROPERTIES): New macro.
6737         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
6738         testing whether <sys/types.h> clashes, as Autoconf does this for
6739         us now.  All uses removed.
6740         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
6741         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
6742         (gl_CHECK_TYPE_SAME):
6743         Remove; no longer needed.
6744         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
6745         exists, since we'll return 0 anyway in that case.
6746         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
6747
6748 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6749
6750         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
6751         possible collision with system files.
6752         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
6753         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
6754         WCHAR_MIN and WCHAR_MAX in this case.
6755         (<stddef.h>): Do not include; no longer needed.
6756         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
6757         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
6758         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
6759         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
6760         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
6761         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
6762         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
6763         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
6764         !defined(__c99))]: Include in this case too, since it's harmless
6765         now.
6766         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
6767         dangerous to do so.
6768         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
6769         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
6770         (_STDINT_MIN, _STDINT_MAX): New macros.
6771         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
6772         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
6773         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
6774         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
6775         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
6776         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
6777         macros, not typedefs; this simplifies things quite a bit.
6778         Use long int for all types narrower than int64_t.
6779         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
6780         Define in terms of long long int or int64_t or long int,
6781         not int64_t or int32_t.  This saves some compile-time testing.
6782         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
6783         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
6784         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
6785         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
6786         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
6787         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
6788         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
6789         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
6790         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
6791         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
6792         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
6793         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
6794         undef any previous version and define our own version, for
6795         simplicity and consistency with the new macros for types.
6796         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
6797         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
6798         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
6799         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
6800         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
6801         @WINT_T_SUFFIX@ to keep things simple here.
6802         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
6803         Simplify by assuming typical 8/16/32/64 host, since we're
6804         already doing that elsewhere anyway.
6805         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
6806         and assume long long int is 64 bits if available.  This
6807         speeds up 'configure'.
6808
6809 2006-07-01  Eric Blake  <ebb9@byu.net>
6810
6811         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
6812         Reported by Andreas Buening.
6813
6814 2006-07-01  Eric Blake  <ebb9@byu.net>
6815
6816         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
6817
6818 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
6819
6820         * lib/getaddrinfo.c: fixed typo
6821
6822 2006-06-29  Jim Meyering  <jim@meyering.net>
6823
6824         * modules/strftime (Maintainer): Add my name, since with the
6825         FPRINTFTIME changes strftime.c has forked from glibc.
6826
6827 2006-06-29  Eric Blake  <ebb9@byu.net>
6828
6829         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
6830
6831 2006-06-29  Eric Blake  <ebb9@byu.net>
6832
6833         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
6834
6835 2006-06-29  Eric Blake  <ebb9@byu.net>
6836
6837         * lib/stat_.h: New file.
6838
6839 2006-06-29  Eric Blake  <ebb9@byu.net>
6840
6841         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
6842         unused static function.
6843
6844 2006-06-29  Eric Blake  <ebb9@byu.net>
6845
6846         * doc/functions.texi (Function Portability): Document missing lstat
6847         on mingw.
6848
6849 2006-06-29  Eric Blake  <ebb9@byu.net>
6850
6851         * MODULES.html.sh: Add sys_stat.
6852         * modules/sys_stat: New module.
6853         * modules/mkstemp (Depends-on): Add sys_stat.
6854
6855 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6856
6857         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
6858
6859 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6860
6861         * m4/c-bs-a.m4: Removed.
6862
6863 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6864
6865         * lib/strftime.c: Assume strftime() exists.
6866
6867 2006-06-29  Derek Price  <derek@ximbiot.com>
6868
6869         * modules/c-bs-a: Removed - \a is C89.
6870         * MODULES.html.sh: Remove c-bs-a.
6871
6872 2006-06-29  Bruno Haible  <bruno@clisp.org>
6873
6874         * modules/wcwidth (License): Change to LGPL.
6875
6876 2006-06-28  Simon Josefsson  <jas@extundo.com>
6877
6878         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
6879         on _WIN32.
6880
6881         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
6882         getnameinfo.
6883
6884 2006-06-28  Simon Josefsson  <jas@extundo.com>
6885
6886         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
6887
6888 2006-06-28  Simon Josefsson  <jas@extundo.com>
6889
6890         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
6891         functions there.  It will succeed on Windows XP, but on Windows
6892         2000 and (presumably) earlier, it will fail, and use the internal
6893         re-implementation.
6894         (use_win32_p): New function.
6895         (getaddrinfo): Use strtoul on servname, to support numeric ports.
6896         Support AI_NUMERICSERV to disable getservbyname.
6897         (getnameinfo): New function, only supports
6898         NI_NUMERICHOST|NI_NUMERICSERV for now.
6899
6900         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
6901         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
6902         getnameinfo.
6903
6904 2006-06-28  Eric Blake  <ebb9@byu.net>
6905
6906         * modules/wcwidth: New file.
6907         * modules/mbchar (Depends-on): Add wcwidth.
6908         * modules/mbswidth (Depends-on): Add wcwidth.
6909         * MODULES.html.sh: Add wcwidth.
6910
6911 2006-06-28  Eric Blake  <ebb9@byu.net>
6912
6913         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
6914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
6915
6916 2006-06-28  Eric Blake  <ebb9@byu.net>
6917
6918         * lib/xvasprintf.h: Fix comments.
6919
6920 2006-06-28  Eric Blake  <ebb9@byu.net>
6921
6922         * lib/mbchar.h (wcwidth): Include wcwidth.h.
6923         * lib/mbswidth.c (wcwidth): Move from here...
6924         * lib/wcwidth.h: ...to this new file.
6925
6926 2006-06-28  Derek R. Price  <derek@ximbiot.com>
6927
6928         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
6929
6930         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
6931         it's obsolete.
6932         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
6933
6934 2006-06-28  Derek R. Price  <derek@ximbiot.com>
6935
6936         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
6937         Autoconf 2.60 says this stuff was obsolete.
6938
6939 2006-06-28  Bruno Haible  <bruno@clisp.org>
6940
6941         * modules/wcwidth (Files): Add m4/wchar_t.m4.
6942
6943 2006-06-28  Bruno Haible  <bruno@clisp.org>
6944
6945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
6946         gt_TYPE_WCHAR_T.
6947
6948 2006-06-28  Bruno Haible  <bruno@clisp.org>
6949
6950         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
6951         declaration for wcwidth.
6952         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
6953
6954 2006-06-28  Bruno Haible  <bruno@clisp.org>
6955
6956         * lib/mkdtemp.c [MINGW]: Include <io.h>.
6957         (mkdir): Define using _mkdir.
6958
6959 2006-06-28  Bruno Haible  <bruno@clisp.org>
6960
6961         * lib/getaddrinfo.h: Fix POSIX URL.
6962         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
6963         _WIN32.
6964         (use_win32_p): Make static.
6965         (getaddrinfo): Reject service name if it is empty or does not consist
6966         solely of decimal digits, or if its value is > 65535.
6967         (getnameinfo): Remove useless casts.
6968
6969 2006-06-27  Simon Josefsson  <jas@extundo.com>
6970
6971         * modules/sys_select: New file, suggested by Bruno Haible, Paul
6972         Eggert and Martin Lambers.
6973
6974 2006-06-27  Simon Josefsson  <jas@extundo.com>
6975
6976         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
6977         Eggert and Martin Lambers.
6978
6979 2006-06-27  Bruno Haible  <bruno@clisp.org>
6980
6981         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
6982         result to 0, not to empty.
6983         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
6984
6985 2006-06-27  Bruno Haible  <bruno@clisp.org>
6986
6987         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
6988
6989 2006-06-26  Simon Josefsson  <jas@extundo.com>
6990
6991         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
6992         present.
6993
6994 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
6995
6996         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
6997         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
6998         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
6999
7000 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
7001
7002         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
7003
7004 2006-06-26  Bruno Haible  <bruno@clisp.org>
7005
7006         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
7007
7008 2006-06-26  Bruno Haible  <bruno@clisp.org>
7009
7010         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
7011
7012 2006-06-26  Bruno Haible  <bruno@clisp.org>
7013
7014         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
7015         SGI C compiler in pre-C99 mode.
7016         Suggested by Mark D. Baushke and Larry Jones.
7017
7018 2006-06-26  Bruno Haible  <bruno@clisp.org>
7019
7020         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
7021         WCHAR_MAX.
7022         Reported by Mark D. Baushke and Larry Jones.
7023
7024 2006-06-26  Bruno Haible  <bruno@clisp.org>
7025
7026         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
7027         in pre-C99 mode.
7028         Suggested by Mark D. Baushke and Larry Jones.
7029
7030 2006-06-23  Simon Josefsson  <jas@extundo.com>
7031             Bruno Haible  <bruno@clisp.org>
7032
7033         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
7034         Emit mostlyclean-local rule.
7035         (func_emit_tests_Makefile_am): Likewise.
7036         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
7037
7038 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
7039
7040         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
7041
7042 2006-06-23  Bruno Haible  <bruno@clisp.org>
7043
7044         * tests/test-stdint.c: Update to match ISO C 99 Technical
7045         Corrigendum 1.
7046
7047 2006-06-23  Bruno Haible  <bruno@clisp.org>
7048
7049         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
7050
7051 2006-06-23  Bruno Haible  <bruno@clisp.org>
7052
7053         * lib/stdint_.h: Treat IRIX like OpenBSD.
7054
7055 2006-06-23  Bruno Haible  <bruno@clisp.org>
7056
7057         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
7058         ISO C 99 Technical Corrigendum 1.
7059
7060 2006-06-22  Simon Josefsson  <jas@extundo.com>
7061
7062         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
7063         MinGW.
7064
7065 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7066
7067         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
7068         needed.  Some compiler complained about some of them.  Problem reported
7069         by Larry Jones in
7070         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
7071
7072 2006-06-21  Simon Josefsson  <jas@extundo.com>
7073
7074         * tests/test-getaddrinfo.c: New file.
7075
7076         * modules/getaddrinfo-tests: New file.
7077
7078         * MODULES.html.sh: Add inet_pton.
7079
7080         * modules/inet_pton: New file.
7081
7082 2006-06-21  Simon Josefsson  <jas@extundo.com>
7083
7084         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
7085         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
7086         of using the (limited) gnulib implementation on Windows XP.
7087
7088         * m4/inet_pton.m4: New file.
7089
7090 2006-06-21  Simon Josefsson  <jas@extundo.com>
7091
7092         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
7093         variable.
7094
7095         * lib/socket_.h: Don't define WINVER.
7096
7097         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
7098         slightly modified to work in gnulib.
7099
7100 2006-06-21  Simon Josefsson  <jas@extundo.com>
7101
7102         * doc/gnulib.texi (Windows sockets): Add.
7103
7104 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7105
7106         * lib/read-file.c (fread_file): Start with buffer allocation of
7107         0 bytes rather than 1 byte; this simplifies the code.
7108         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
7109         code to free buffer and save/restore errno.
7110         (internal_read_file): Remove unused local.
7111
7112 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7113
7114         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
7115         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
7116         Problem reported by Denis Excoffier in
7117         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
7118
7119 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7120
7121         * modules/sys_socket, modules/socklen: Include sys/types since
7122         FreeBSD 4.x's sys/socket.h needs it.
7123
7124 2006-06-19  Simon Josefsson  <jas@extundo.com>
7125
7126         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
7127
7128 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7129
7130         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
7131
7132 2006-06-19  Bruno Haible  <bruno@clisp.org>
7133
7134         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
7135         and FULL_PATH_INTTYPES_H in angle brackets.
7136         Reported by Mark D. Baushke <mdb@gnu.org>.
7137
7138 2006-06-17  Eric Blake  <ebb9@byu.net>
7139
7140         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
7141         errno.
7142
7143 2006-06-17  Bruno Haible  <bruno@clisp.org>
7144
7145         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
7146         <sys/inttypes.h>.
7147
7148 2006-06-17  Bruno Haible  <bruno@clisp.org>
7149
7150         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
7151         whether errno is declared. Assume <errno.h> declares errno.
7152
7153 2006-06-17  Bruno Haible  <bruno@clisp.org>
7154
7155         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
7156
7157 2006-06-17  Bruno Haible  <bruno@clisp.org>
7158
7159         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
7160         problem on Solaris 2.5.1.
7161
7162 2006-06-16  Eric Blake  <ebb9@byu.net>
7163
7164         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
7165         * lib/unicodeio.c [!defined errno]: Likewise.
7166         * lib/strtol.c [!defined errno]: Likewise.
7167         * lib/strtod.c [!defined errno]: Likewise.
7168
7169 2006-06-15  Eric Blake  <ebb9@byu.net>
7170
7171         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
7172
7173 2006-06-15  Eric Blake  <ebb9@byu.net>
7174
7175         * config/srclist.txt (ssize_t.m4): Lose sync.
7176
7177 2006-06-15  Bruno Haible  <bruno@clisp.org>
7178
7179         * modules/stdint (Files): Include m4/full-header-path.m4,
7180         m4/size_max.m4, m4/wchar_t.m4.
7181         (Makefile.am): Many more substitutions.
7182         * modules/stdint-tests: New file.
7183         * tests/test-stdint.c: New file.
7184
7185 2006-06-15  Bruno Haible  <bruno@clisp.org>
7186
7187         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
7188         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
7189         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
7190         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
7191         gl_CHECK_TYPE_SAME): New macros.
7192
7193 2006-06-15  Bruno Haible  <bruno@clisp.org>
7194
7195         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
7196
7197 2006-06-15  Bruno Haible  <bruno@clisp.org>
7198
7199         * lib/stdint_.h: Rewritten to be fully auto-configured.
7200         Fixes bug on HP-UX/IA64.
7201
7202 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
7203
7204         * lib/getdate.y (__attribute__): Don't define if already defined.
7205         Problem reported by Larry Jones.
7206         * lib/utimens.c (__attribute__): Likewise.
7207
7208 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7209
7210         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
7211         reported by Andreas Schwab.
7212
7213 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7214             Bruno Haible  <bruno@clisp.org>
7215
7216         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
7217         check for the declaration of strnlen and a run test that exposes the
7218         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
7219         rpl_strndup.
7220
7221 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7222             Bruno Haible  <bruno@clisp.org>
7223
7224         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
7225
7226 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7227
7228         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
7229         compile test, for Tru64 4.0D.
7230
7231 2006-05-28  Karl Berry  <karl@gnu.org>
7232
7233         * config/srclist.txt (printf-args.c): lose sync.
7234
7235 2006-05-26  Martin Lambers  <marlam@marlam.de>
7236
7237         * lib/getpass.c: Updates the test for the native W32 API, and adds
7238         missing includes, thus fixing compilation warnings.
7239
7240 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7241
7242         * lib/exclude.c (exclude_fnmatch): New function.
7243         (excluded_file_name): Call exclude_fnmatch.
7244         * lib/exclude.h (excluded_file_name): New prototype
7245
7246 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7247
7248         * lib/tempname.c (small_open, large_open): New macros.
7249         (__open, __open64) [!_LIBC]: Remove.
7250         (__gen_tempname): Use small_open and large_open instead of __open
7251         and __open64.  This fixes a portability bug on HP-UX 11.11i
7252         reported by Simon Wing-Tang in
7253         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
7254
7255 2006-05-24  Bruno Haible  <bruno@clisp.org>
7256
7257         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
7258         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
7259         Reported by Thorsten Maerz <torte@netztorte.de> via
7260         Aaron Stone <aaron@serendipity.cx>.
7261
7262 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7263
7264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
7265         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
7266         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
7267         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
7268         not really conditional on the cache.
7269         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
7270
7271 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7272
7273         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
7274         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
7275         (my_usleep): Don't mishandle maximum value.
7276
7277 2006-05-19  Jim Meyering  <jim@meyering.net>
7278
7279         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
7280
7281 2006-05-17  Bruno Haible  <bruno@clisp.org>
7282
7283         Cygwin portability.
7284         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
7285
7286 2006-05-17  Bruno Haible  <bruno@clisp.org>
7287
7288         * lib/stdint_.h: Fix recognition of Cygwin.
7289
7290 2006-05-15  Bruno Haible  <bruno@clisp.org>
7291
7292         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
7293         on libtool patch by Ralf Wildenhues.
7294
7295 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7296
7297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7298         test for C99 conformance; (bool) 0.5 is an integer constant
7299         expression, but (bool) -0.5 is not.  Problem reported by Fedor
7300         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7301
7302 2006-05-11  Simon Josefsson  <jas@extundo.com>
7303
7304         * m4/xvasprintf.m4: Fix obvious typo.
7305
7306 2006-05-11  Jim Meyering  <jim@meyering.net>
7307
7308         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
7309         James Lemley.
7310
7311 2006-05-10  Simon Josefsson  <jas@extundo.com>
7312
7313         * lib/md4.c: Typo fix, update copyright years.
7314         (K1, K2): Don't use L because it turn computations into 64-bit on
7315         64-bit platforms.
7316
7317 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7318
7319         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
7320         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
7321         unwanted sign propagation, e.g., on hosts with 64-bit int.
7322         There still are some problems with reeelly weird theoretical hosts
7323         (e.g., 33-bit int) but it's not worth worrying about now.
7324         * lib/sha1.c (rol): Likewise.
7325         (K1, K2, K3, K4): Remove unnecessary L suffix.
7326
7327 2006-05-10  Bruno Haible  <bruno@clisp.org>
7328
7329         * lib/des.c: Cast to avoid warnings.
7330
7331 2006-05-09  Bruno Haible  <bruno@clisp.org>
7332
7333         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
7334         (Depends-on): Depend also on xsize, stdarg.
7335         (configure.ac): Add gl_XVASPRINTF.
7336
7337 2006-05-09  Bruno Haible  <bruno@clisp.org>
7338
7339         * m4/xvasprintf.m4: New file.
7340
7341 2006-05-09  Bruno Haible  <bruno@clisp.org>
7342
7343         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
7344         (EOVERFLOW): Define fallback value.
7345         (xstrcat): New function.
7346         (xvasprintf): Recognize the special case of a string concatenation.
7347
7348 2006-05-08  Eric Blake  <ebb9@byu.net>
7349
7350         * gnulib-tool (func_version): Base copyright year on CVS date.
7351         (func_emit_copyright_notice): New function.
7352         (func_emit_lib_Makefile_am): Use it.
7353         (func_emit_tests_Makefile_am): Likewise.
7354         (func_import): Likewise.
7355
7356 2006-05-08  Bruno Haible  <bruno@clisp.org>
7357
7358         * modules/stdarg: New file.
7359         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
7360
7361 2006-05-08  Bruno Haible  <bruno@clisp.org>
7362
7363         * m4/stdarg.m4: New file, from GNU gettext.
7364
7365 2006-05-08  Bruno Haible  <bruno@clisp.org>
7366
7367         * config/srclist.txt (build-aux/config.rpath): different from latest
7368         release.
7369
7370 2006-05-08  Bruno Haible  <bruno@clisp.org>
7371
7372         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
7373
7374 2006-05-05  Jim Meyering  <jim@meyering.net>
7375
7376         * m4/warning.m4: New file, derived from bison's file by the same name.
7377
7378 2006-05-03  Bruno Haible  <bruno@clisp.org>
7379
7380         * lib/stdint_.h: Shorter URL.
7381         * lib/inttypes.h: Likewise.
7382
7383 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7384
7385         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
7386
7387 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7388
7389         * lib/verify.h: Document the internals better.  Most of this change
7390         was written by Bruno Haible.
7391
7392 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7393
7394         * doc/verify.texi: New file, partly based on a proposal by
7395         Bruno Haible.
7396
7397 2006-05-02  Bruno Haible  <bruno@clisp.org>
7398
7399         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
7400         test from here...
7401         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
7402
7403 2006-04-29  Bruno Haible  <bruno@clisp.org>
7404
7405         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
7406         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
7407
7408 2006-04-29  Bruno Haible  <bruno@clisp.org>
7409
7410         * gnulib-tool: Make --update option actually work.
7411
7412 2006-04-29  Bruno Haible  <bruno@clisp.org>
7413
7414         * doc/gcd.texi: New file.
7415         * doc/gnulib.texi: Include it.
7416
7417 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         * lib/getdate.y (get_date): When adding relative date, start with the
7420         initial time, not with the result of the first mktime call.
7421
7422 2006-04-25  Bruno Haible  <bruno@clisp.org>
7423
7424         * gnulib-tool (func_import): Output the include directives in three
7425         blocks, sorted separately.
7426         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7427
7428 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7429
7430         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
7431         to define main with arguments, for C++.  Reported by Eric Blake.
7432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7433         Prefer 'int main ()' to 'int main (void)', for C++.
7434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
7436         for 'main', for C99 and C++.
7437
7438 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7439
7440         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
7441         Don't assume that exit status -1 is valid.
7442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7443         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7444         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7445         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
7446         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
7447         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
7448         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
7449         functions can be used without declaring them, or that you can
7450         exit with status -1.
7451         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7452
7453 2006-04-24  Karl Berry  <karl@gnu.org>
7454
7455         * config/srclist.txt (longdouble.m4): sync lost.
7456
7457 2006-04-24  Eric Blake  <ebb9@byu.net>
7458
7459         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
7460
7461 2006-04-24  Bruno Haible  <bruno@clisp.org>
7462
7463         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
7464         poll() implementation in AIX.
7465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7466
7467 2006-04-24  Bruno Haible  <bruno@clisp.org>
7468
7469         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
7470         assigned exactly once.
7471
7472 2006-04-23  Claudio Fontana  <claudio@gnu.org>
7473             Bruno Haible  <bruno@clisp.org>
7474
7475         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
7476         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
7477         for AM_CPPFLAGS.
7478
7479 2006-04-23  Bruno Haible  <bruno@clisp.org>
7480
7481         * modules/copy-file: Depend on unistd.
7482         * modules/execute: Likewise.
7483         * modules/fatal-signal: Likewise.
7484         * modules/findprog: Likewise.
7485         * modules/mkdtemp : Likewise.
7486         * modules/pipe: Likewise.
7487         * modules/wait-process: Likewise.
7488
7489 2006-04-23  Bruno Haible  <bruno@clisp.org>
7490
7491         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
7492         condition was already detected.
7493         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7494
7495 2006-04-23  Bruno Haible  <bruno@clisp.org>
7496
7497         * lib/copy-file.c: Include <unistd.h> unconditionally.
7498         * lib/execute.c: Likewise.
7499         * lib/fatal-signal.c: Likewise.
7500         * lib/findprog.c: Likewise.
7501         * lib/mkdtemp.c: Likewise.
7502         * lib/pipe.h: Likewise.
7503         * lib/pipe.c: Likewise.
7504         * lib/wait-process.h: Likewise.
7505
7506 2006-04-23  Bruno Haible  <bruno@clisp.org>
7507
7508         * gnulib-tool (func_usage): Fix --import description. Document
7509         --update.
7510         (func_import): Create temporary file in a temporary directory, if
7511         --dry-run is specified. Silence errors from 'grep' when there are no
7512         m4 files in $m4dir.
7513         (func_create_testdir): Silence errors from 'grep' when there are no
7514         m4 files in $m4dir.
7515         Reported by Karl Berry <karl@freefriends.org>.
7516
7517 2006-04-20  Bruno Haible  <bruno@clisp.org>
7518
7519         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
7520         one argument, so that the code will be portable to Autoconf 2.60.
7521         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
7522         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7523         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
7524
7525 2006-04-19  Derek Price  <derek@ximbiot.com>
7526             Eric Blake  <ebb9@byu.net>
7527
7528         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
7529         rather than "/full/path.h".  Update comment to match.  Shorten &
7530         generalize m4_translit call via AS_TR_CPP.
7531
7532 2006-04-19  Derek Price  <derek@ximbiot.com>
7533             Eric Blake  <ebb9@byu.net>
7534
7535         * lib/inttypes.h: Correct grammar in comment.
7536
7537 2006-04-18  Derek Price  <derek@ximbiot.com>
7538             Paul Eggert  <eggert@cs.ucla.edu>
7539
7540         * modules/inttypes: New file.
7541         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
7542
7543 2006-04-18  Derek Price  <derek@ximbiot.com>
7544             Paul Eggert  <eggert@cs.ucla.edu>
7545
7546         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
7547         New files.
7548
7549 2006-04-18  Derek Price  <derek@ximbiot.com>
7550             Paul Eggert  <eggert@cs.ucla.edu>
7551
7552         * lib/inttypes.h: New file.
7553         * lib/strtoimax.c: Assume <inttypes.h>.
7554
7555 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
7556
7557         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
7558         isn't mounted.  Problem reported by Kir Kolyshkin.
7559
7560 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
7561
7562         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
7563         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
7564         Derek R. Price.
7565         * lib/regex.h (RE_DUP_MAX): Update comment to match current
7566         implementation.
7567
7568 2006-04-12  Eric Blake  <ebb9@byu.net>
7569
7570         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
7571         is now done automatically by the corresponding Autoconf macro.
7572
7573 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
7574
7575         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
7576         time_r.h.
7577
7578 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7579
7580         Merge regex changes from libc, removing some of our
7581         POSIX-conformance changes that were rejected and redoing them in a
7582         less-intrusive way.
7583
7584         * lib/regcomp.c (re_compile_internal, init_dfa):
7585         Length arg is now size_t, not Idx.  All uses changed.
7586         (peek_token): Forward decl now says internal_function.
7587         (__re_error_msgid, __re_error_msgid_idx):
7588         Now static rather than extern with attribute_hidden.
7589         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
7590         For some reason libc prefers K&R style defns for external functions.
7591         (regerror) [!defined _LIBC]: Likewise.
7592         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
7593         (seek_collating_symbol_entry, lookup_collation_sequence_value):
7594         (build_range_exp, build_collating_symbol):
7595         Use K&R-style defn.
7596         (re_compile_fastmap): Use '\0' to memset, not 0.
7597         (utf8_sb_map): Make the calculations more obvious.
7598         (init_dfa, parse_bracket_exp, build_charclass_op):
7599         Call calloc and cast result, as glibc does.
7600         (init_word_char, fetch_token, peek_token, peek_token_bracket):
7601         (build_range_exp, build_collating_symbol):
7602         Now internal functions.
7603
7604         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
7605
7606         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
7607         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
7608         Don't depend on VMS; depend on __VMS instead, for POSIX
7609         namespace cleanness.
7610         (regoff_t): Define to ssize_t, not long int.
7611
7612         Remove the REG_ macros named below.  Instead, make the old names
7613         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
7614         __USE_GNU_REGEX.
7615         (REG_BACKSLASH_ESCAPE_IN_LISTS):
7616         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
7617         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
7618         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
7619         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
7620         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
7621         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
7622         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
7623         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
7624         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
7625         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
7626         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
7627         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
7628         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
7629         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
7630         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
7631         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
7632         (REG_NREGS):
7633         Remove.  All uses replaced by the old RE_* names.
7634         (RE_BACKSLASH_ESCAPE_IN_LISTS):
7635         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
7636         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
7637         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
7638         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
7639         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
7640         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
7641         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
7642         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
7643         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
7644         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
7645         Don't bother having these macros be independent of each others'
7646         values, since they no longer exist in the POSIX name space.
7647
7648         Rename the following member names back to their old names,
7649         unless !__USE_GNU_REGEX.  All uses changed back.
7650         (buffer): Renamed from re_buffer.
7651         (allocated): Renamed from re_allocated.
7652         (used): Renamed from re_used.
7653         (syntax): Renamed from re_syntax.
7654         (fastmap): Renamed from re_fastmap.
7655         (translate): Renamed from re_translate.
7656         (can_be_null): Renamed from re_can_be_null.
7657         (regs_allocated): Renamed from re_regs_allocated.
7658         (fastmap_accurate): Renamed from re_fastmap_accurate.
7659         (no_sub): Renamed from re_no_sub.
7660         (not_bol): Renamed from re_not_bol.
7661         (not_eol): Renamed from re_not_eol.
7662         (newline_anchor): Renamed from re_newline_anchor.
7663         (num_regs): Renamed from rm_num_regs.
7664         (start): Renamed from rm_start.
7665         (end): Renamed from rm_end.
7666
7667         (free_state): Move up a bit.
7668
7669         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
7670         #define to be empty.
7671         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
7672         when that is what is intended.
7673         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
7674         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
7675         (MAX): New macro.
7676         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
7677         All uses changed back to re_malloc, etc.  It's now the caller's
7678         responsibility to check for overflow; all callers changed.
7679         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
7680         (re_x2nrealloc): Remove.
7681         (free_state): Remove decl.
7682
7683         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
7684         (re_set_registers, re_exec):
7685         Use K&R-style defn.
7686
7687         2006-01-31  Roland McGrath  <roland@redhat.com>
7688
7689         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
7690         Reported by Mike Frysinger <vapier@gentoo.org>.
7691
7692         2006-01-15  Andreas Jaeger  <aj@suse.de>
7693
7694         [BZ #1950]
7695         * lib/regex_internal.c (re_string_reconstruct): Adjust for
7696         build_wcs_upper_buffer change.
7697         (build_wcs_upper_buffer): Change return type.
7698
7699         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
7700
7701         * lib/regex_internal.h: Include <stdint.h> if available.
7702
7703         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
7704
7705         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
7706
7707         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
7708
7709         * lib/regcomp.c: Adjust for changed secondary hash function.
7710
7711         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
7712
7713         * lib/regex.h: Pretty printing.
7714         Clean up namespace a bit.
7715
7716         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
7717
7718         * lib/regexec.c (update_cur_sifted_state, check_arrival,
7719         check_arrival_add_next_nodes): Avoid using uninitialized variable.
7720
7721         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7722                     Ulrich Drepper  <drepper@redhat.com>
7723
7724         [BZ #1302]
7725         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
7726         changed.
7727         (bitset_word_t): Renamed from bitset_word.  All uses changed.
7728
7729         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
7730
7731         [BZ #281]
7732         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
7733         * lib/regcomp.c: Remove unnecessary uses of
7734         unsigned RE_TRANSLATE_TYPE.
7735         * lib/regex_internal.h: Likewise.
7736         * lib/regex_internal.c: Likewise.
7737         * lib/regexec.c: Likewise.
7738         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
7739
7740         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
7741
7742         * lib/regexec.c (find_recover_state): Remove unnecessary
7743         initialization.
7744         (transit_state_bkref): Make DFA a const pointer.
7745         (get_subexp): Likewise.
7746         (check_arrival): Likewise.
7747         (update_cur_sifted_state): Likewise.
7748         (re_search_internal): Likewise.
7749         (prune_impossible_nodes): Likewise.
7750         (acquire_init_state_context): Likewise.
7751         (proceed_next_node): Likewise.
7752         (set_regs): Likewise.
7753         (free_fail_stack_return): Likewise.
7754         (check_arrival_expand_ecl): Mark DFA parameter as const.
7755         (check_arrival_expand_ecl_sub): Likewise.
7756         (check_subexp_limits): Likewise.
7757         (sub_epsilon_src_nodes):  Likewise.
7758         (add_epsilon_src_nodes):  Likewise.
7759         (merge_state_array): Likewise.
7760         (update_regs): Likewise.
7761         (build_trtable): Likewise.
7762         (sift_states_backward): Mark MCTX parameter as const.
7763         (build_sifted_states): Likewise.
7764         (update_cur_sifted_state): Likewise.
7765         (sift_states_mkref): Likewise.
7766         (check_arrival_expand_ecl): Mark eclosure as const.
7767         (check_dst_limits_calc_pos_1): Likewise.
7768         * lib/regex_internal.h (re_match_context_t): Make dfa a const
7769         pointer.
7770
7771         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
7772
7773         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
7774         (transit_state_sb): Likewise.
7775         (transit_state_mb): Likewise.
7776         (sift_states_iter_mb): Likewise.
7777         (check_arrival_add_next_nodes): Likewise.
7778         (check_node_accept_bytes): Change first parameter to pointer-to-const.
7779         [_LIBC] (re_search_2_stub): Use mempcpy.
7780
7781         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
7782         mbrtowc for very simple UTF-8 case.
7783
7784         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
7785         a pointer-to-const.
7786         (re_acquire_state_context): Likewise.
7787         * lib/regex_internal.h: Adjust prototypes.
7788
7789         * lib/regex.c: Prevent using C++ compilers.
7790
7791         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
7792         (re_acquire_state_context): Likewise.
7793
7794 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7795
7796         * modules/regex (Depends-on): Add ssize_t.
7797
7798 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7799
7800         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
7801         translation table.
7802
7803 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7804
7805         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
7806
7807 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
7808             Bruno Haible  <bruno@clisp.org>
7809
7810         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
7811         <sys/types.h> and <inttypes.h>.
7812
7813 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7814
7815         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
7816         `__error_t_defined', so argp.h will not typedef the former.
7817
7818 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7819
7820         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
7821         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
7822         glibc names.  Even if glibc is changed to conform to POSIX, the
7823         traditional names will be available anyway, since regex depends on
7824         the extensions module.  Also, fix a longstanding typo in the
7825         implementation of Spencer ERE test #75 from grep 2.3.  Problems
7826         reported by Emanuele Giaquinta.  Also, change sense of cached
7827         variable, so that the message makes sense.
7828
7829 2006-03-24  Simon Josefsson  <jas@extundo.com>
7830
7831         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
7832         including some doc fixes.
7833         (base64_encode_alloc): Fix +1 bug on allocation failures.
7834
7835 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7836
7837         * lib/base64.c (base64_encode): Do not read past end of array with
7838         unsanitized input on systems with CHAR_BIT > 8.
7839
7840 2006-03-24  Eric Blake  <ebb9@byu.net>
7841
7842         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
7843
7844 2006-03-22  Karl Berry  <karl@gnu.org>
7845
7846         * config/srclist.txt (*setenv.[ch]): get from coreutils.
7847         * config/srclistvars.sh (COREUTILS): new var.
7848
7849 2006-03-17  Jim Meyering  <jim@meyering.net>
7850
7851         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
7852         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
7853
7854 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
7855
7856         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
7857         no longer needs it.  Instead, check that regoff_t is as least
7858         as wide as ptrdiff_t.
7859
7860         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
7861         so that our regex.h stays compatible with the installed regex.
7862         This is helpful for installers who configure --without-included-regex.
7863         Problem reported by Emanuele Giaquinta.
7864
7865 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
7866
7867         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
7868         Typedef to long int, not to off_, as POSIX will likely change
7869         in that direction.
7870
7871 2006-03-15  Eric Blake  <ebb9@byu.net>
7872
7873         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
7874
7875 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
7876
7877         * lib/argp-help.c (validate_uparams): Fix typo
7878         * lib/argp-parse.c (argp_default_options): Consistently begin help
7879         messages with a lowercase letter.
7880
7881 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
7882
7883         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
7884         overrun buffers and shouldn't be used (much as gets shouldn't be
7885         used).
7886         * lib/time_r.c (asctime_r, ctime_r): Likewise.
7887
7888 2006-03-08  Simon Josefsson  <jas@extundo.com>
7889
7890         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
7891         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7892
7893 2006-03-08  Simon Josefsson  <jas@extundo.com>
7894
7895         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
7896         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7897
7898 2006-03-08  Simon Josefsson  <jas@extundo.com>
7899
7900         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
7901         signal that configure disabled the device.
7902
7903 2006-03-08  Simon Josefsson  <jas@extundo.com>
7904
7905         * build-aux/maint.mk: Fix refresh-po, to handle no translated
7906         languages.
7907
7908 2006-03-07  Simon Josefsson  <jas@extundo.com>
7909
7910         * modules/getopt (Depends-on): Add unistd.
7911
7912         * modules/unistd: New file.
7913
7914 2006-03-07  Simon Josefsson  <jas@extundo.com>
7915
7916         * modules/gc-random: New file.
7917
7918 2006-03-07  Simon Josefsson  <jas@extundo.com>
7919
7920         * m4/unistd_h.m4: New file.
7921
7922 2006-03-07  Simon Josefsson  <jas@extundo.com>
7923
7924         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
7925         test to be side-effect free by storing the result in the cache
7926         variable gl_cv_lib_readline, and moving the assignment of
7927         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
7928         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7929
7930 2006-03-07  Simon Josefsson  <jas@extundo.com>
7931
7932         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
7933         error on missing devices (the functions will return an error).
7934
7935         * m4/gc.m4: Move random stuff to gc-random.m4
7936
7937 2006-03-07  Simon Josefsson  <jas@extundo.com>
7938
7939         * lib/unistd_.h: New file.
7940
7941 2006-03-07  Simon Josefsson  <jas@extundo.com>
7942
7943         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
7944
7945 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7946
7947         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
7948         Problem reported by Juan Manuel Guerrero.
7949
7950 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7951
7952         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
7953         the unistd module.
7954         * lib/getlogin_r.c: Likewise.
7955         * lib/getlogin_r.h: Likewise.
7956         * lib/glob.c: Likewise.
7957         * lib/pagealign_alloc.c: Likewise.
7958         * lib/unistd_.h: Remove; no longer needed.
7959
7960 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7961
7962         * MODULES.html.sh (Support for systems lacking POSIX:2001):
7963         Add unistd.
7964         * modules/c-stack (Depends-on): Add unistd.
7965         * modules/getlogin_r: Likewise.
7966         * modules/glob: Likewise.
7967         * modules/pagealign_alloc: Likewise.
7968         * modules/unistd (Files): Remove lib/unistd_.h.
7969         (EXTRA_DIST): Remove.
7970         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
7971         need unistd_.h.
7972         (MOSTLYCLEANFILES): Remove unistd.h-t.
7973
7974 2006-03-03  Simon Josefsson  <jas@extundo.com>
7975
7976         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
7977
7978 2006-03-03  Simon Josefsson  <jas@extundo.com>
7979
7980         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
7981         libidn and bison.
7982
7983 2006-03-03  Simon Josefsson  <jas@extundo.com>
7984
7985         * build-aux/maint.mk: Add indent target.
7986
7987 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
7988
7989         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
7990         our replacement poll.h in any case, to avoid a differing
7991         declaration from a system header.  Seen on AIX.
7992
7993 2006-03-01  Simon Josefsson  <jas@extundo.com>
7994
7995         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
7996         <kasal@ucw.cz>.
7997
7998 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7999
8000         * modules/gettime (Depends-on): Add extensions module.
8001         * modules/nanosleep (Depends-on): Likewise.
8002         * modules/settime (Depends-on): Likewise.
8003
8004 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8005
8006         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
8007         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
8008         pedantically.
8009         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8010         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
8011
8012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
8013         not "==".  Reported by Ralf Wildenhues.
8014
8015 2006-03-01  Karl Berry  <karl@gnu.org>
8016
8017         * doc/Copyright/request-*: new files, synced from gnuorg.
8018
8019 2006-03-01  Karl Berry  <karl@gnu.org>
8020
8021         * config/srclist.txt (Copyright/*): new entries.
8022
8023 2006-02-28  Simon Josefsson  <jas@extundo.com>
8024
8025         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
8026
8027 2006-02-27  Simon Josefsson  <jas@extundo.com>
8028
8029         * lib/base64.h: Indent #define's.  From Jim Meyering
8030         <jim@meyering.net>.
8031
8032 2006-02-27  Jim Meyering  <jim@meyering.net>
8033
8034         Revert the change of 2006-02-24, so these files can continue
8035         to be sync'd from gettext.
8036         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
8037         of `config.h'.
8038
8039 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8040
8041         * modules/intprops: New file.
8042         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8043         Add intprops.
8044         * modules/getloadavg (Files): Remove lib/intprops.h.
8045         (Depends-on): Add intprops.
8046         * modules/human: Likewise.
8047         * modules/inttostr: Likewise.
8048         * modules/openat: Likewise.
8049         * modules/sig2str: Likewise.
8050         * modules/userspec: Likewise.
8051         * modules/utimecmp: Likewise.
8052         * modules/xnanosleep: Likewise.
8053         * modules/xstrtol: Likewise.
8054
8055 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
8056
8057         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
8058         * modules/lock-tests (TESTS): Use $(EXEEXT).
8059         * modules/tls-tests: Likewise.
8060         * modules/argp-tests: Likewise.
8061         (check_PROGRAMS): New var, replacing...
8062         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
8063
8064 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8065
8066         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
8067         `config.h'.
8068
8069 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8070
8071         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
8072
8073 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8074
8075         Sync from coreutils.
8076         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
8077         gl_CHDIR_SAFER.
8078
8079 2006-02-22  Jim Meyering  <jim@meyering.net>
8080
8081         Sync from coreutils.
8082         * m4/chdir-safer.m4: New file.
8083
8084 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8085
8086         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
8087         AT_FDCWD exceeds INT_MAX.
8088         * lib/openat.h (AT_FDCWD): Likewise.
8089
8090 2006-02-17  Eric Blake  <address@hidden>
8091
8092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
8093
8094 2006-02-16  Simon Josefsson  <jas@extundo.com>
8095
8096         * modules/getaddrinfo (Depends-on): Add sys_socket.
8097
8098 2006-02-15  Simon Josefsson  <jas@extundo.com>
8099
8100         * build-aux/maint.mk: Add dsyntax-check rule.
8101
8102 2006-02-15  Eric Blake  <ebb9@byu.net>
8103
8104         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
8105         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
8106         'present but cannot compile' warnings on cygwin.
8107         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
8108         use ws2tcpip.h if sys/socket.h works.
8109         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
8110         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
8111
8112 2006-02-14  Simon Josefsson  <jas@extundo.com>
8113
8114         * modules/maintainer-makefile (Files): Rename.
8115
8116         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
8117         and (the local) Makefile.cfg to maint-cfg.mk.
8118
8119         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
8120         to the latter.
8121
8122         * modules/maintainer-makefile: New module.
8123
8124         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
8125         severaly stripped to make it possible to build it up from scratch
8126         with reliable tests.
8127
8128         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
8129         fixes to permit overriding the default actions when configure and
8130         makefile are not available.
8131
8132 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8133
8134         Sync from coreutils.
8135         * modules/lstat (Depends-on): Don't depend on xalloc.
8136         (License): Change from GPL to LGPL, since this is now simply a
8137         replacement for a libc function.
8138
8139 2006-02-14  Jim Meyering  <jim@meyering.net>
8140
8141         Sync from coreutils.
8142
8143         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
8144         failure on deficient systems, and simplify gnulib lgpl dependencies.
8145         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
8146         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
8147
8148         * lib/xalloc-die.c: Remove unused definition of N_.
8149
8150 2006-02-14  Jim Meyering  <jim@meyering.net>
8151
8152         Sync from coreutils.
8153         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
8154         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8155         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
8156         double-quote uses of that variable, to accommodate the rare case in
8157         which getmntent is available in none of the libraries checked.  This
8158         happens at least on FreeBSD 5.0.
8159
8160 2006-02-13  Simon Josefsson  <jas@extundo.com>
8161
8162         * gnulib-tool (Usage): Fix --import, from
8163         karl@freefriends.org (Karl Berry).
8164
8165 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8166
8167         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
8168
8169 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
8170
8171         * lib/argp-namefrob.h: Restore changes accidentally lost during the
8172         "autoupdate" on 2005-12-12.
8173
8174 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8175
8176         * modules/closeout (Depends-on): Remove atexit.
8177
8178 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8179
8180         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
8181         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
8182
8183 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8184
8185         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
8186         __EXTENSIONS__ if this causes compilation to fail.  Problem
8187         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
8188         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
8189
8190 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8191
8192         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
8193         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
8194         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
8195         All uses changed.
8196
8197 2006-01-26  Simon Josefsson  <jas@extundo.com>
8198
8199         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
8200         prototype is visible on mingw32.
8201
8202         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
8203         for mingw32.
8204
8205         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
8206         mingw32).
8207
8208 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
8209
8210         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
8211         attempt to open for write; this always fails, at least on POSIX
8212         hosts.  This reinstates the 2006-01-09 change, which was
8213         inadvertently removed.
8214
8215 2006-01-26  Bruno Haible  <bruno@clisp.org>
8216
8217         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
8218         Reported by Paul Eggert.
8219
8220 2006-01-26  Bruno Haible  <bruno@clisp.org>
8221             Paul Eggert  <eggert@cs.ucla.edu>
8222
8223         * lib/stdbool_.h (_Bool)
8224         [(! (defined __cplusplus || defined __BEOS__)
8225           && !defined __GNUC__
8226           && !(defined __HP_cc || defined __xlc__
8227                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
8228                || defined __sgi))]:
8229         #define to signed char in these cases too; this simplifies
8230         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
8231         etc., separately) and makes it more conservative.
8232
8233 2006-01-25  Simon Josefsson  <jas@extundo.com>
8234
8235         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
8236         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
8237         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
8238
8239 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8240
8241         * lib/argp-namefrob.h: Bugfix. Remove stray #
8242
8243 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8244
8245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
8246         so that we test the test.
8247         Check for yet another HP-UX cc bug involving *bool |= bool.
8248
8249 2006-01-25  Karl Berry  <karl@gnu.org>
8250
8251         * config/srclist.txt (vasnprintf.c): sync lost.
8252
8253 2006-01-25  Jim Meyering  <jim@meyering.net>
8254
8255         Sync from the stable (b5) branch of coreutils:
8256
8257         * lib/fts.c (fts_children): Don't let close() clobber errno from
8258         failed fchdir().
8259
8260         * lib/fts.c (fts_stat): When following a symlink-to-directory,
8261         don't necessarily interpret stat-fails+lstat-succeeds as indicating
8262         a dangling symlink.  That can also happen at least for ELOOP.
8263         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
8264         FYI, this bug predates the inclusion of fts.c in coreutils.
8265
8266         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
8267         in their own block, so pre-c99 compilers don't object.
8268
8269         Avoid the double-free (first in fts_read, second in fts_close) that
8270         would occur when an `active' directory is made inaccessible (e.g.,
8271         via chmod a-x) during a traversal.
8272         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8273         before returning.  Reproduce this failure by
8274         mkdir -p a/b; cd a; chmod a-x . b
8275         Reported by Stavros Passas.
8276
8277 2006-01-25  Jim Meyering  <jim@meyering.net>
8278
8279         * lib/fileblocks.c: Remove more useless parentheses.
8280         * lib/readutmp.h: Likewise.
8281
8282 2006-01-25  Bruno Haible  <bruno@clisp.org>
8283
8284         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
8285         warnings.
8286         Reported by Paul Eggert.
8287
8288 2006-01-25  Bruno Haible  <bruno@clisp.org>
8289
8290         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
8291         rid of a trap command. For Solaris sh.
8292         Reported by Mark D. Baushke <mdb@gnu.org>.
8293
8294 2006-01-24  Simon Josefsson  <jas@extundo.com>
8295
8296         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
8297         Bruno.
8298
8299 2006-01-24  Karl Berry  <karl@gnu.org>
8300
8301         * config/srclist.txt (argp-namefrob.h): sync lost.
8302
8303 2006-01-24  Jim Meyering  <jim@meyering.net>
8304
8305         * modules/openat (Files): Add lib/intprops.h.
8306         From Mark D. Baushke.
8307
8308 2006-01-24  Jim Meyering  <jim@meyering.net>
8309
8310         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
8311         Reported by Mark D. Baushke.
8312
8313 2006-01-24  Jim Meyering  <jim@meyering.net>
8314
8315         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
8316
8317 2006-01-24  Bruno Haible  <bruno@clisp.org>
8318
8319         * modules/strnlen (Maintainer): Change from glibc to all.
8320
8321 2006-01-24  Bruno Haible  <bruno@clisp.org>
8322
8323         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
8324         Patch by Paul Eggert.
8325
8326 2006-01-24  Bruno Haible  <bruno@clisp.org>
8327
8328         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
8329         already has it.
8330         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
8331         2005-11-26.
8332
8333         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
8334         'signed char' to avoid problems with the built-in _Bool type.
8335         Reported by Paul Eggert on 2005-11-26.
8336
8337 2006-01-24  Bruno Haible  <bruno@clisp.org>
8338
8339         * gnulib-tool (func_import): Avoid constructing complicated sed
8340         expressions inside backquote.
8341         Report and solution by Mark D. Baushke <mdb@gnu.org>.
8342
8343 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
8344
8345         These changes imported from libc.
8346         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
8347         test and two separate function calls.
8348         * lib/strndup.c (__strndup): Add libc_hidden_def.
8349
8350 2006-01-23  Simon Josefsson  <jas@extundo.com>
8351
8352         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
8353         Remove the test_*_SOURCES variable: automake infers it by default.
8354         * modules/tls-tests: Likewise.
8355
8356 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8357
8358         Work around porting bugs reported by Dieter in
8359         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
8360         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
8361         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
8362         Include "getopt.h" first, to check interface.
8363         (getenv): Declare only if defined HAVE_DECL_GETENV &&
8364         !HAVE_DECL_GETENV.
8365         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
8366         (__strndup): Revert to K&R-style function dfns, the glibc style.
8367         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
8368         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
8369         Include strnlen.h first, to get prototype properly.
8370         (strnlen): Renamed from __strnlen.
8371         Remove weak alias.
8372
8373 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8374
8375         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
8376
8377 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8378
8379         * config/srclist.txt: Adjust to reflect glibc reorganization.
8380         This affects only comments.
8381
8382 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
8383
8384          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
8385          Reported by Bruce Korb <bkorb@gnu.org>.
8386
8387 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
8388
8389         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
8390         to pacify gcc -Wswitch-default.
8391
8392 2006-01-22  Bruno Haible  <bruno@clisp.org>
8393
8394         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
8395         temporary buffer for sprintf, take into account the precision also
8396         for 'd', 'i', 'u', 'o', 'x', 'X'.
8397
8398 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8399
8400         * modules/argp-tests: New module
8401         * tests/test-argp.c: New file
8402         * tests/test-argp-2.sh: New file
8403
8404 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8405
8406         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
8407         (__argp_base_name): Removed
8408         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
8409         typo.
8410         (__argp_base_name): Provide macro definition or extern declaration
8411         depending on the configuration
8412
8413 2006-01-20  Simon Josefsson  <jas@extundo.com>
8414
8415         * modules/inet_ntop (Depends-on): Depend on sys_socket.
8416
8417 2006-01-20  Simon Josefsson  <jas@extundo.com>
8418
8419         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
8420
8421 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8422
8423         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
8424         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
8425         Suggested by Bruno Haible.
8426
8427 2006-01-20  Karl Berry  <karl@gnu.org>
8428
8429         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
8430         until changes propagate, I guess.
8431
8432 2006-01-19  Simon Josefsson  <jas@extundo.com>
8433
8434         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
8435
8436 2006-01-19  Simon Josefsson  <jas@extundo.com>
8437
8438         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
8439
8440 2006-01-19  Simon Josefsson  <jas@extundo.com>
8441
8442         * gnulib-tool: Set check_PROGRAMS.
8443
8444         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
8445         modules/des-tests, modules/gc-arcfour-tests,
8446         modules/gc-arctwo-tests, modules/gc-des-tests,
8447         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
8448         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
8449         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
8450         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
8451         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
8452         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
8453         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
8454         test_*_SOURCES.
8455
8456 2006-01-18  Simon Josefsson  <jas@extundo.com>
8457
8458         * modules/socklen (Depends-on): Depend on sys_socket.
8459
8460 2006-01-18  Simon Josefsson  <jas@extundo.com>
8461
8462         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
8463         modules/des-tests, modules/gc-arcfour-tests,
8464         modules/gc-arctwo-tests, modules/gc-des-tests,
8465         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
8466         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
8467         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
8468         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
8469         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
8470         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
8471         $(EXEEXT) to automake TESTS variable, for mingw32.
8472
8473 2006-01-17  Simon Josefsson  <jas@extundo.com>
8474
8475         * modules/socklen (Include): Need sys/socket.h.
8476
8477 2006-01-17  Bruno Haible  <bruno@clisp.org>
8478
8479         * modules/ssize_t (Include): Add <sys/types.h>.
8480
8481 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
8482
8483         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
8484         it's not portable and it doesn't work with cross-compiles.
8485         Problem reported by Bruno Haible.  Fix missing-$ typo in
8486         'test "gl_cv_ignore_unused_libraries" ...' that prevented
8487         -zignore from being used with Sun's C compiler.
8488
8489 2006-01-12  Simon Josefsson  <jas@extundo.com>
8490
8491         * lib/base64.c: Fix warning, reported by Bruno Haible
8492         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
8493
8494 2006-01-12  Bruno Haible  <bruno@clisp.org>
8495
8496         * modules/ldd: New file.
8497         * build-aux/ldd.sh.in: New file.
8498         * MODULES.html.sh (Support for building libraries and executables): Add
8499         ldd.
8500
8501 2006-01-12  Bruno Haible  <bruno@clisp.org>
8502
8503         * m4/ldd.m4: New file.
8504
8505 2006-01-12  Bruno Haible  <bruno@clisp.org>
8506
8507         * gnulib-tool (func_import, func_create_testdir): Don't go into an
8508         endless loop while replacing $auxdir with build-aux.
8509
8510 2006-01-11  Simon Josefsson  <jas@extundo.com>
8511
8512         * lib/stdint_.h (SIZE_MAX): Add missing (.
8513
8514 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8515
8516         Sync from coreutils.
8517         * lib/md5.c: Fix commentary typos.
8518         (alignof, UNALIGNED_P): No need for a GCC-specific version.
8519         * lib/md5.h (__attribute__): Remove; unused.
8520         * lib/sha1.c: Fix commentary to match md5 better.
8521         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
8522         so that we don't need to worry about alignment.  All uses changed.
8523         This merges the 2005-10-28 md5 change into sha1.
8524
8525 2006-01-11  Jim Meyering  <jim@meyering.net>
8526
8527         Sync from coreutils.
8528         * lib/md5.c (OP): Fix spacing.
8529
8530 2006-01-11  Bruno Haible  <bruno@clisp.org>
8531
8532         Ensure automatic ordering between gl_LOCK and gl_ARGP.
8533         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
8534         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
8535
8536 2006-01-11  Bruno Haible  <bruno@clisp.org>
8537
8538         Ensure automatic ordering between gl_LOCK and gl_ARGP.
8539         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
8540         the "early" section as well.
8541
8542 2006-01-11  Bruno Haible  <bruno@clisp.org>
8543
8544         Avoid "ar: no archive members specified" error on MacOS X.
8545         * gnulib-tool (func_modules_add_dummy): New function.
8546         (func_import, func_create_testdir): Invoke it.
8547
8548 2006-01-11  Bruno Haible  <bruno@clisp.org>
8549
8550         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
8551         with $auxdir in AC_CONFIG_FILES statements.
8552
8553 2006-01-11  Bruno Haible  <bruno@clisp.org>
8554
8555         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8556         Initialize also noinst_HEADERS to empty.
8557
8558 2006-01-11  Bruno Haible  <bruno@clisp.org>
8559
8560         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
8561         variables.
8562         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
8563         autoreconf.
8564
8565 2006-01-11  Bruno Haible  <bruno@clisp.org>
8566
8567         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
8568         overridable by the user.
8569         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8570
8571 2006-01-10  Simon Josefsson  <jas@extundo.com>
8572
8573         * modules/sys_socket: New file.
8574
8575 2006-01-10  Simon Josefsson  <jas@extundo.com>
8576
8577         * m4/sys_socket_h.m4: New file.
8578
8579 2006-01-10  Simon Josefsson  <jas@extundo.com>
8580
8581         * lib/socket_.h: New file.
8582
8583 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8584
8585         * modules/readutmp (Maintainer): Add myself.
8586
8587 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8588
8589         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
8590         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
8591         People who are still concerned with buggy memcmp implementations
8592         can invoke gl_FUNC_MEMCMP themselves.
8593
8594 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8595
8596         * lib/regex_internal.h (BITSET_WORD_BITS):
8597         Work around a bug in 64-bit PGC (before version 6.1-2), where the
8598         preprocessor mishandles large unsigned values as if they were signed.
8599         Problem reported by Claudio Fontana in
8600         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
8601
8602 2006-01-10  Jim Meyering  <jim@meyering.net>
8603
8604         Avoid the double-free (first in fts_read, second in fts_close) that
8605         would occur when an `active' directory is made inaccessible (e.g.,
8606         via chmod a-x) during a traversal.
8607         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8608         before returning.  Reproduce this failure by
8609         mkdir -p a/b; cd a; chmod a-x . b
8610         Reported by Stavros Passas.
8611
8612         Sync from coreutils.
8613         * lib/sha1.c: Tweak grammar in a comment.
8614
8615 2006-01-10  Jim Meyering  <jim@meyering.net>
8616
8617         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
8618         Patch by Joerg Sonnenberger.
8619
8620 2006-01-10  Bruno Haible  <bruno@clisp.org>
8621
8622         * modules/readutmp: Depend on module free.
8623         * modules/strtok_r: Depend on module restrict.
8624
8625 2006-01-10  Bruno Haible  <bruno@clisp.org>
8626
8627         * modules/gettext (configure.ac): Add an invocation of
8628         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
8629
8630 2006-01-10  Bruno Haible  <bruno@clisp.org>
8631
8632         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
8633         Reported by Werner Lemberg <wl@gnu.org>.
8634
8635 2006-01-10  Bruno Haible  <bruno@clisp.org>
8636
8637         * lib/localcharset.c: Update from GNU gettext.
8638
8639 2006-01-10  Bruno Haible  <bruno@clisp.org>
8640
8641         * lib/argp.h (__const): Remove macro. Use const instead.
8642         * lib/argp-fmtstream.h (__const): Likewise.
8643         * lib/glob_.h (__const): Remove macro.
8644         * lib/glob-libc.h: Use const instead of __const.
8645
8646 2006-01-10  Bruno Haible  <bruno@clisp.org>
8647
8648         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
8649         variable.
8650         Needed to avoid an automake error regarding the 'gettext' module.
8651
8652 2006-01-09  Simon Josefsson  <jas@extundo.com>
8653
8654         * modules/inet_ntop (Depends-on): Add restrict.
8655
8656 2006-01-09  Simon Josefsson  <jas@extundo.com>
8657
8658         * modules/gc-rijndael-tests (License): Put under LGPL.
8659
8660         * modules/gc-des-tests (License): Likewise.
8661
8662         * modules/gc-arcfour-tests (License): Likewise.
8663
8664         * modules/gc-arctwo-tests (License): Likewise.
8665
8666         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
8667
8668         * modules/gc-hmac-sha1-tests (Files): Likewise.
8669
8670         * modules/gc-hmac-md5-tests (License): Likewise.
8671
8672         * modules/gc-sha1-tests (License): Likewise.
8673
8674         * modules/gc-md5-tests (License): Likewise.
8675
8676         * modules/gc-md4-tests (License): Likewise.
8677
8678         * modules/gc-md2-tests (License): Likewise.
8679
8680         * modules/gc-tests (License): Likewise.
8681
8682         * modules/des-tests (License): Likewise.
8683
8684         * modules/md4-tests (License): Likewise.
8685
8686         * modules/md2-tests (License): Likewise.
8687
8688 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8689
8690         Sync from coreutils:
8691
8692         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
8693         * modules/lib-ignore: New file.
8694         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
8695         chdir-safer.m4, lchmod.m4.
8696         * modules/openat: Add mkdirat.c, openat-priv.h.
8697
8698 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8699
8700         Sync from coreutils.
8701         * m4/lib-ignore.m4: New file.
8702         * m4/lchmod.m4: New file.
8703
8704 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8705
8706         Sync from coreutils.
8707         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
8708         for write access: POSIX says that must fail.
8709         * lib/fts.c (diropen): Likewise.
8710         * lib/save-cwd.c (save_cwd): Likewise.
8711         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
8712         well, for minor improvements on hosts that lack O_DIRECTORY.
8713         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
8714         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
8715         Fall back on chown if open failed with EACCES.
8716
8717         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
8718         Report an error at compile-time if only a 1-second nominal clock
8719         resolution is found.
8720
8721         * lib/lchmod.h: New file.
8722         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
8723         (make_dir_parents): Use lchown rather than chown, and
8724         lchmod rather than chmod.
8725
8726         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
8727         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
8728         "proc" reported by n0dalus.
8729
8730         * lib/mountlist.c: Include <limits.h>.
8731         (dev_from_mount_options)
8732         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
8733         New function.  It no longer assumes "dev=" has the System V meaning
8734         on Linux (since it doesn't).  It also parses "dev=" more carefully.
8735         (read_file_system_list)
8736         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
8737         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
8738         dev= in that case.
8739
8740         * lib/posixtm.h (PDS_PRE_2000): New macro.
8741         * lib/posixtm.c (year): Arg is now syntax_bits rather than
8742         allow_century.  All usages changed.  Reject dates outside the range
8743         1969-1999 if PDS_PRE_2000 is used.
8744
8745 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8746
8747         Sync from coreutils.
8748         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
8749         (Time of day items): Mention the possibility of leap seconds.
8750         Problem reported by Dr. David Alan Gilbert.
8751
8752 2006-01-09  Jim Meyering  <jim@meyering.net>
8753
8754         Sync from coreutils.
8755
8756         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
8757
8758         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
8759
8760         * lib/modechange.c (mode_compile): Reject an invalid mode string
8761         that starts with an octal digit.  From Andreas Gruenbacher.
8762
8763         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
8764         and dup to open_safer and dup_safer, respectively.
8765         (openat_permissive): Fix typo in comment.
8766
8767         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
8768         "gettext.h"; either no longer needed or are guaranteed by openat.h.
8769         (_): Remove; no longer needed.
8770         (openat): Renamed from rpl_openat; no need for rpl_openat
8771         since openat.h renames openat for us.
8772         Replace most of the body with a call to openat_permissive,
8773         to avoid duplicate code.
8774         Port to (probably hypothetical) environments were mode_t is
8775         wider than int.
8776         (openat_permissive): Require mode arg, so that we can check
8777         types better.  Put it just after flags.  Change cwd failure
8778         indicator from pointer-to-bool to pointer-to-errno-value.
8779         All callers changed.
8780         Invoke openat_save_fail and/or openat_restore_fail if
8781         cwd_errno is null, so that openat can call us.
8782         (openat_permissive, fdopendir, fstatat, unlinkat):
8783         Simplify errno handling to avoid some duplicate code,
8784         as it's OK to set errno on success.
8785         * lib/openat.h: Revamp code so that function macros depend on
8786         __OPENAT_PREFIX only, not also on AT_FDCWD.
8787         (openat_ro): Remove.  Caller changed to use openat_permissive.
8788         (openat_permissive): Now a macro, if not a function.
8789         (openat_restore_fail, openat_save_fail): Now always functions,
8790         since mkdirat needs them even if __OPENAT_PREFIX is defined.
8791
8792         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
8793         and openat.c.
8794         * lib/mkdirat.c: Include openat-priv.h.
8795         Remove definitions of macros defined therein.
8796         * lib/openat.c: Likewise.
8797
8798         * lib/mkdirat.c (mkdirat): New file and function.
8799         * lib/openat.h (mkdirat): Declare.
8800
8801         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
8802
8803         * lib/openat.h (openat_permissive): Declare.
8804         (openat_ro): Define.
8805
8806         * lib/openat.c (EXPECTED_ERRNO): New macro.
8807         (openat_permissive): New function -- used in remove.c rewrite.
8808         (all functions): Set errno just before returning, only if there
8809         was an actual failure.
8810         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
8811
8812         Emulate openat-family functions using Linux's procfs, if possible.
8813         Idea and some code based on Ulrich Drepper's glibc changes.
8814
8815         * lib/openat.c: (BUILD_PROC_NAME): New macro.
8816         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
8817         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
8818         before falling back on save_cwd and restore_cwd.
8819         (fdopendir, fstatat, unlinkat): Likewise.
8820
8821         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
8822         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
8823
8824         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
8825         as second argument to va_arg.  Otherwise, some versions of gcc
8826         warn that `if this code is reached, the program will abort'.
8827
8828 2006-01-09  Jim Meyering  <jim@meyering.net>
8829
8830         Sync from coreutils.
8831         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
8832         Require openat-priv.h.
8833
8834 2006-01-09  Bruno Haible  <bruno@clisp.org>
8835
8836         * modules/strnlen (Include): Use strnlen.h.
8837
8838 2006-01-09  Bruno Haible  <bruno@clisp.org>
8839
8840         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
8841
8842 2006-01-09  Bruno Haible  <bruno@clisp.org>
8843
8844         * lib/sysexit_.h (EX_OK): New macro.
8845         Suggested by Martin Lambers <marlam@marlam.de>.
8846
8847 2006-01-09  Bruno Haible  <bruno@clisp.org>
8848
8849         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
8850         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
8851
8852 2006-01-09  Bruno Haible  <bruno@clisp.org>
8853
8854         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
8855         numbers.
8856
8857 2006-01-09  Bruno Haible  <bruno@clisp.org>
8858
8859         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
8860         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
8861         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
8862         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
8863
8864 2006-01-09  Bruno Haible  <bruno@clisp.org>
8865
8866         * build-aux/javacomp.sh.in: New file, moved from lib/.
8867         * modules/javacomp-script (Files): Update.
8868         (configure.ac): Add AC_CONFIG_FILES invocation.
8869         (EXTRA_DIST): Remove variable.
8870
8871         * build-aux/javaexec.sh.in: New file, moved from lib/.
8872         * modules/javaexec (Files): Update.
8873         (configure.ac): Add AC_CONFIG_FILES invocation.
8874         (EXTRA_DIST): Remove javaexec.sh.in.
8875
8876         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
8877         * modules/csharpcomp-script (Files): Update.
8878         (configure.ac): Add AC_CONFIG_FILES invocation.
8879         (EXTRA_DIST): Remove variable.
8880
8881         * build-aux/csharpexec.sh.in: New file, moved from lib/.
8882         * modules/csharpexec (Files): Update.
8883         (configure.ac): Add AC_CONFIG_FILES invocation.
8884         (EXTRA_DIST): Remove csharpexec.sh.in.
8885
8886 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
8887
8888         Sync from coreutils.
8889
8890         Add POSIX ACL support
8891         * lib/acl.h (copy_acl, set_acl): Add declarations.
8892         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
8893         systems other than Linux.
8894         (chmod_or_fchmod): New function: use fchmod when possible,
8895         and chmod otherwise.
8896         (file_has_acl): Add a POSIX ACL implementation, with a
8897         Linux-specific subcase.
8898         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
8899         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
8900         acls are unsupported.
8901         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
8902         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
8903         are unsupported.
8904
8905 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
8906
8907         Sync from coreutils.
8908         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
8909
8910 2006-01-07  Bruno Haible  <bruno@clisp.org>
8911
8912         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
8913         gl_EARLY.
8914
8915 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8916
8917         * lib/strftime.c (tzname): Don't declare if it is already #defined.
8918         Problem reported for Mingw by Mark Junker.
8919
8920 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8921
8922         * README: Gnulib normally doesn't generate a tarball.
8923
8924 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8925
8926         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
8927         long int, not int, for nanosecond counts, so that people who are
8928         used to POSIX struct timespec won't be surprised.  Reported by Jim
8929         Meyering.
8930
8931 2005-12-28  Bruno Haible  <bruno@clisp.org>
8932
8933         * build-aux/config.rpath: Update from GNU gettext.
8934
8935 2005-12-16  Jim Meyering  <jim@meyering.net>
8936
8937         * modules/fprintftime: New module.
8938         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
8939
8940 2005-12-16  Jim Meyering  <jim@meyering.net>
8941
8942         * m4/fprintftime.m4: New file.
8943
8944 2005-12-16  Jim Meyering  <jim@meyering.net>
8945
8946         * lib/fprintftime.c, lib/fprintftime.h: New files.
8947
8948 2005-12-15  Simon Josefsson  <jas@extundo.com>
8949
8950         * modules/socklen (configure.ac): Fix M4 macro name, to align with
8951         new m4/socklen.m4.
8952
8953 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8954
8955         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
8956         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
8957
8958 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8959
8960         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
8961         * lib/argp-help.c (fill_in_uparams): Check if the constructed
8962         struct uparams is valid. Fall back to the default values if it is
8963         not.
8964
8965 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8966
8967         * modules/argp (Files): Add argp-pin.c
8968         (Depends-on): dirname
8969         (lib_SOURCES): Add argp-pin.c
8970
8971 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8972
8973         * m4/argp.m4:  Check if program_invocation_name and
8974         program_invocation_short_name are declared and define appropriate
8975         macros if they are not.
8976
8977 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8978
8979         * lib/argp-help.c (__argp_base_name): New function
8980         (__argp_short_program_name): Rewrite using __argp_base_name
8981         * lib/argp-namefrob.h: Define program_invocation_name and
8982         program_invocation_short_name if requested
8983         (__argp_base_name): Add prototype
8984         * lib/argp-parse.c (argp_def): Use gettext wrappers
8985         (argp_default_parser): Use __argp_base_name
8986         * lib/argp-pin.c: New file. Defines program_invocation_name and
8987         program_invocation_short_name on systems that lack them.
8988
8989 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8990
8991         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
8992         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8993         porting problem reported by Georg Schwarz in
8994         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8995
8996 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8997
8998         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
8999         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9000         porting problem reported by Georg Schwarz in
9001         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9002
9003 2005-12-05  Bruno Haible  <bruno@clisp.org>
9004
9005         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
9006         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
9007         Reported by Mark Junker <mjscod@gmx.de>.
9008
9009 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9010
9011         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
9012         Use implementation from Albert Chin, with some
9013         comments/corrections by Stepan Kasal and myself.
9014
9015 2005-12-02  Bruno Haible  <bruno@clisp.org>
9016
9017         * gnulib-tool (func_import): Accept GPLed build tool modules when
9018         --lgpl is given.
9019         * modules/csharpcomp-script: New file.
9020         * modules/csharpcomp: Depend on it.
9021         * modules/javacomp-script: New file.
9022         * modules/javacomp: Depend on it.
9023         Suggested by Simon Josefsson.
9024
9025 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9026
9027         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
9028         statement, to work around an HP-UX 10.20 compiler bug reported by
9029         Peter O'Gorman.
9030
9031 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9032
9033         * modules/savedir (Depends-on): Add openat.
9034
9035 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9036
9037         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
9038         (uintmax_t) [defined uintmax_t]: Do not declare.
9039         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
9040         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
9041         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
9042         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
9043         sake of portability to weird hosts that C allows (though we don't
9044         know of any practical examples).
9045
9046         * lib/savedir.h (fdsavedir): New decl.
9047         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
9048         contains most of the former guts of savedir.
9049         (savedir): Use savedirstream.
9050         Include "openat.h".
9051
9052 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9053
9054         * modules/obstack (Files): Add m4/ulonglong.m4.
9055         Problem reported by Davide Angelocola.
9056
9057 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9058
9059         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
9060         coreutils no longer futzes with rounding modes.
9061
9062 2005-11-14  Jim Meyering  <jim@meyering.net>
9063
9064         * lib/mkstemp-safer.c: Include <config.h>, required for possible
9065         replacement of mkstemp.
9066
9067 2005-11-10  Simon Josefsson  <jas@extundo.com>
9068
9069         * lib/readline.c: Remove EOL.
9070
9071 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9072
9073         * modules/gethrxtime (Depends-on): Add gettime.
9074
9075 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
9078         or gettimeofday; no longer needed.
9079
9080 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9081
9082         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
9083         time business.
9084         (gethrxtime) [! (HAVE_NANOUPTIME
9085         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
9086         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
9087         our own approximation.
9088
9089 2005-11-08  Eric Blake  <ebb9@byu.net>
9090
9091         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9092
9093 2005-11-08  Eric Blake  <ebb9@byu.net>
9094
9095         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9096
9097 2005-11-04  Bruno Haible  <bruno@clisp.org>
9098
9099         * gnulib-tool: Implement --update mode.
9100
9101 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9102
9103         Fix porting problem reported by Theodoros V. Kalamatianos.
9104         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
9105         Don't assume that futimes failing means we must fail.
9106
9107 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9108
9109         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
9110         variables to suggest the intended function of the PATH_MAX check.
9111
9112 2005-10-30  Kean Johnston  <jkj@sco.com>
9113
9114         Trivial changes to support SCO systems.
9115         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
9116         as PATH_MAX.
9117         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
9118         where __ptr is null when no I/O is pending.
9119
9120 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
9121
9122         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
9123         leave errno alone.  Problem reported by Dmitry V. Levin.
9124
9125 2005-10-28  Simon Josefsson  <jas@extundo.com>
9126
9127         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
9128         Test more.
9129
9130         * tests/test-gc-md2.c, tests/test-md2.c: New files.
9131
9132         * modules/md2, modules/md2-tests: New files.
9133
9134 2005-10-28  Simon Josefsson  <jas@extundo.com>
9135
9136         * m4/inet_ntop.m4: More tests.
9137
9138         * m4/gc-md2.m4, md2.m4: New file.
9139
9140 2005-10-28  Simon Josefsson  <jas@extundo.com>
9141
9142         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
9143         "restrict" keywords, as per POSIX.  Protect the function
9144         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
9145         Don't use K&R prototypes.  Check the sprintf return values.
9146         Re-define EAFNOSUPPORT if not present.  Indent.
9147
9148         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
9149         suggested by Bruno Haible <bruno@clisp.org>.
9150
9151         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
9152
9153         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
9154
9155         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
9156         libgcrypt).
9157
9158         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
9159
9160         * lib/md2.h, lib/md2.c: New files.
9161
9162 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
9163
9164         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
9165         errno alone.  Problem reported by Frederic Jolliton.
9166
9167 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9168
9169         * modules/verify (License): Change from GPL to LGPL.  This is a
9170         tiny module and there are apparently near-equivalents that are
9171         under the BSD license.
9172
9173 2005-10-24  Simon Josefsson  <jas@extundo.com>
9174
9175         * modules/sha1: Relicense to LGPL.
9176
9177 2005-10-24  Simon Josefsson  <jas@extundo.com>
9178
9179         * lib/md4.h: Shrink buffer size, now that we changed the type.
9180
9181 2005-10-23  Simon Josefsson  <jas@extundo.com>
9182
9183         * gnulib-tool (func_import): Fix --tests-base.
9184
9185 2005-10-22  Simon Josefsson  <jas@extundo.com>
9186
9187         * modules/arcfour (Depends-on): Need stdint.
9188
9189 2005-10-22  Simon Josefsson  <jas@extundo.com>
9190
9191         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
9192         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
9193
9194 2005-10-22  Simon Josefsson  <jas@extundo.com>
9195
9196         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
9197         suggested by Bruno Haible <bruno@clisp.org>.
9198
9199 2005-10-22  Simon Josefsson  <jas@extundo.com>
9200
9201         * lib/crc.h: Include stddef.h, for size_t.
9202
9203 2005-10-22  Simon Josefsson  <jas@extundo.com>
9204
9205         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
9206         arcfour_context struct (simplify test vector testing in GNU
9207         Shishi).
9208
9209 2005-10-21  Simon Josefsson  <jas@extundo.com>
9210
9211         * modules/des, modules/des-tests: New files.
9212
9213         * modules/gc-des, modules/gc-des-tests: New files.
9214
9215         * tests/test-des.c, tests/test-gc-des.c: New file.
9216
9217 2005-10-21  Simon Josefsson  <jas@extundo.com>
9218
9219         * modules/arctwo, modules/arctwo-tests: New files.
9220
9221         * tests/test-arctwo.c: New file.
9222
9223         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
9224
9225         * tests/test-gc-arctwo.c: New file.
9226
9227 2005-10-21  Simon Josefsson  <jas@extundo.com>
9228
9229         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
9230         Bruno Haible <bruno@clisp.org>.
9231
9232         * m4/gc-des.m4: New file.
9233
9234 2005-10-21  Simon Josefsson  <jas@extundo.com>
9235
9236         * m4/arctwo.m4: New file.
9237
9238         * m4/gc-arctwo.m4: New file.
9239
9240 2005-10-21  Simon Josefsson  <jas@extundo.com>
9241
9242         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
9243         block.
9244
9245 2005-10-21  Simon Josefsson  <jas@extundo.com>
9246
9247         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
9248         <bruno@clisp.org>.
9249
9250         * lib/hmac-sha1.c (hmac_sha1): Likewise.
9251
9252         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
9253         Bruno Haible <bruno@clisp.org>.
9254
9255         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
9256         <bruno@clisp.org>.
9257
9258 2005-10-21  Simon Josefsson  <jas@extundo.com>
9259
9260         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
9261
9262 2005-10-21  Simon Josefsson  <jas@extundo.com>
9263
9264         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
9265
9266 2005-10-21  Simon Josefsson  <jas@extundo.com>
9267
9268         * lib/des.h, lib/des.c: New files.
9269
9270         * lib/gc-gnulib.c: Support DES.c
9271
9272 2005-10-21  Simon Josefsson  <jas@extundo.com>
9273
9274         * lib/arctwo.h, lib/arctwo.c: New files.
9275
9276         * lib/gc-gnulib.c: Support ARCTWO.
9277
9278 2005-10-21  Simon Josefsson  <jas@extundo.com>
9279
9280         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
9281         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9282
9283 2005-10-21  Simon Josefsson  <jas@extundo.com>
9284
9285         * gnulib-tool (func_import, func_create_testdir): Define automake
9286         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
9287         Makefile.am snippet),
9288         suggested by Bruno Haible <bruno@clisp.org>.
9289
9290         * modules/gc (Makefile.am): Use it.
9291
9292 2005-10-21  Bruno Haible  <bruno@clisp.org>
9293
9294         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
9295         patch.
9296
9297 2005-10-19  Simon Josefsson  <jas@extundo.com>
9298
9299         * tests/test-gc-rijndael.c: New file.
9300
9301         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
9302
9303 2005-10-19  Simon Josefsson  <jas@extundo.com>
9304
9305         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
9306         interface too.
9307
9308 2005-10-19  Simon Josefsson  <jas@extundo.com>
9309
9310         * tests/test-gc-arcfour.c: New file.
9311
9312         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
9313
9314 2005-10-19  Simon Josefsson  <jas@extundo.com>
9315
9316         * modules/gc-md4, modules/gc-md4-tests: New file.
9317
9318         * tests/test-gc-md4.c: New file.
9319
9320 2005-10-19  Simon Josefsson  <jas@extundo.com>
9321
9322         * m4/gc-md4.m4: New file.
9323
9324 2005-10-19  Simon Josefsson  <jas@extundo.com>
9325
9326         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
9327         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
9328         <kasal@ucw.cz>.
9329
9330 2005-10-19  Simon Josefsson  <jas@extundo.com>
9331
9332         * m4/gc-arcfour.m4: New file.
9333
9334         * m4/gc-rijndael.m4: New file.
9335
9336 2005-10-19  Simon Josefsson  <jas@extundo.com>
9337
9338         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
9339
9340 2005-10-19  Simon Josefsson  <jas@extundo.com>
9341
9342         * lib/gc-gnulib.c: Support ARCFOUR.
9343
9344 2005-10-19  Simon Josefsson  <jas@extundo.com>
9345
9346         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
9347         support.
9348
9349         * lib/gc.h: Add ECB enum type.
9350
9351         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
9352
9353 2005-10-18  Simon Josefsson  <jas@extundo.com>
9354
9355         * tests/test-md5.c: New file.
9356
9357         * modules/md5-tests: New file.
9358
9359 2005-10-18  Simon Josefsson  <jas@extundo.com>
9360
9361         * tests/test-md4.c: New file.
9362
9363         * modules/md4, modules/md4-tests: New files.
9364
9365 2005-10-18  Simon Josefsson  <jas@extundo.com>
9366
9367         * m4/md4.m4: New file.
9368
9369 2005-10-18  Simon Josefsson  <jas@extundo.com>
9370
9371         * lib/md4.h, lib/md4.c: New files, based on md5.?.
9372
9373 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
9374
9375         * gnulib-tool (func_create_testdir): Omit the second check whether
9376         BUILT_SOURCES in nonempty.
9377
9378 2005-10-17  Simon Josefsson  <jas@extundo.com>
9379
9380         * tests/test-rijndael.c: New file.
9381
9382 2005-10-17  Simon Josefsson  <jas@extundo.com>
9383
9384         * modules/sha1: Depend on stdint instead of md5.
9385
9386         * modules/md5: Depend on stdint, remove uint32_t.
9387
9388 2005-10-17  Simon Josefsson  <jas@extundo.com>
9389
9390         * modules/gc-sha1-tests: New file.
9391
9392         * tests/test-gc-sha1.c: New file.
9393
9394 2005-10-17  Simon Josefsson  <jas@extundo.com>
9395
9396         * m4/md5.m4: Remove call to uint32_t.m4.
9397
9398 2005-10-17  Simon Josefsson  <jas@extundo.com>
9399
9400         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
9401
9402         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
9403         md5.h.
9404
9405         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
9406
9407         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
9408
9409 2005-10-17  Simon Josefsson  <jas@extundo.com>
9410
9411         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
9412
9413 2005-10-17  Simon Josefsson  <jas@extundo.com>
9414
9415         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
9416
9417 2005-10-17  Simon Josefsson  <jas@extundo.com>
9418
9419         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
9420
9421         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
9422
9423 2005-10-17  Bruno Haible  <bruno@clisp.org>
9424
9425         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
9426         that it can also be used in a test.
9427
9428 2005-10-16  Bruno Haible  <bruno@clisp.org>
9429
9430         * gnulib-tool (func_emit_tests_Makefile_am): Also define
9431         TESTS_ENVIRONMENT, so that individual tests can augment it.
9432
9433         * gnulib-tool (func_create_testdir): Use an intermediate target for
9434         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
9435         macros, like $(ALLOCA_H), which cannot be passed through the command
9436         line.
9437
9438 2005-10-15  Simon Josefsson  <jas@extundo.com>
9439
9440         * modules/rijndael-tests: New file.
9441
9442         * modules/rijndael: New file.
9443
9444 2005-10-15  Simon Josefsson  <jas@extundo.com>
9445
9446         * m4/rijndael.m4: New file.
9447
9448 2005-10-15  Simon Josefsson  <jas@extundo.com>
9449
9450         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
9451
9452         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
9453
9454 2005-10-14  Simon Josefsson  <jas@extundo.com>
9455
9456         * tests/test-arcfour.c: New file.
9457
9458         * modules/arcfour, modules/arcfour-tests: New files.
9459
9460 2005-10-14  Simon Josefsson  <jas@extundo.com>
9461
9462         * m4/arcfour.m4: New file.
9463
9464 2005-10-14  Simon Josefsson  <jas@extundo.com>
9465
9466         * lib/arcfour.h, lib/arcfour.c: New files.
9467
9468 2005-10-14  Roland McGrath  <roland@redhat.com>
9469
9470         Import from libc.  [BZ #1331]
9471         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
9472         macro argument.
9473         Reported by Matej Vela <vela@debian.org>.
9474
9475 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9476
9477         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
9478         include <wchar.h>; no longer needed.
9479
9480 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9481
9482         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
9483
9484 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
9485         and  Ulrich Drepper  <drepper@redhat.com>
9486
9487         Import from libc.
9488         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
9489         instead of inline stream orientation test and two separate
9490         function calls.  Pay no attention to USE_IN_LIBIO.
9491
9492 2005-10-13  Simon Josefsson  <jas@extundo.com>
9493
9494         * modules/gc-hmac-md5-tests: New file.
9495
9496         * tests/test-gc-hmac-sha1.c: New file.
9497
9498         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
9499
9500         * modules/gc-hmac-md5-tests: New file.
9501
9502         * tests/test-gc-md5.c: New file.
9503
9504         * modules/gc-md5-tests: New file.
9505
9506 2005-10-13  Simon Josefsson  <jas@extundo.com>
9507
9508         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
9509         Move memory allocation outside of loop.
9510
9511 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9512
9513         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
9514         intermediate directory is in a read-only file system.  Problem
9515         reported by Eric Blake.
9516
9517 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
9518
9519         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
9520
9521 2005-10-12  Simon Josefsson  <jas@extundo.com>
9522
9523         * tests/test-hmac-sha1.c: New file.
9524
9525         * modules/hmac-sha1-tests: New file.
9526
9527         * modules/hmac-sha1: New file.
9528
9529 2005-10-12  Simon Josefsson  <jas@extundo.com>
9530
9531         * modules/gc-sha1: New file.
9532
9533 2005-10-12  Simon Josefsson  <jas@extundo.com>
9534
9535         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
9536
9537         * tests/test-gc-pbkdf2-sha1.c: New file.
9538
9539 2005-10-12  Simon Josefsson  <jas@extundo.com>
9540
9541         * modules/gc-md5, modules/gc-hmac-md5: New files.
9542
9543         * modules/gc (Files): Remove md5, memxor and hmac files.
9544
9545 2005-10-12  Simon Josefsson  <jas@extundo.com>
9546
9547         * m4/gc-pbkdf2-sha1.m4: New file.
9548
9549         * m4/gc-hmac-sha1.m4: New file.
9550
9551         * m4/gc-sha1: New file.
9552
9553         * m4/hmac-sha1.m4: New file.
9554
9555 2005-10-12  Simon Josefsson  <jas@extundo.com>
9556
9557         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
9558
9559         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
9560
9561 2005-10-12  Simon Josefsson  <jas@extundo.com>
9562
9563         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
9564         suggested by Bruno Haible <bruno@clisp.org>.
9565
9566 2005-10-12  Simon Josefsson  <jas@extundo.com>
9567
9568         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
9569
9570 2005-10-12  Simon Josefsson  <jas@extundo.com>
9571
9572         * lib/gc-pbkdf2-sha1.c: New file.
9573
9574         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
9575
9576 2005-10-12  Simon Josefsson  <jas@extundo.com>
9577
9578         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
9579
9580         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
9581
9582 2005-10-12  Simon Josefsson  <jas@extundo.com>
9583
9584         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
9585         GC_USE_HMAC_MD5, respectively.
9586
9587         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
9588         (gc_md5): Fix typo.
9589
9590         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
9591
9592         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
9593
9594         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
9595
9596 2005-10-12  Bruno Haible  <bruno@clisp.org>
9597
9598         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
9599         Reported by Stepan Kasal <kasal@ucw.cz>.
9600
9601 2005-10-11  Simon Josefsson  <jas@extundo.com>
9602
9603         * tests/test-crc.c: New file.
9604
9605         * modules/crc, modules/crc-tests: New files.
9606
9607 2005-10-11  Simon Josefsson  <jas@extundo.com>
9608
9609         * m4/crc.m4: New file.
9610
9611 2005-10-11  Simon Josefsson  <jas@extundo.com>
9612
9613         * lib/gc.h: Add gc_hash and gc_hash_buffer.
9614
9615         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
9616
9617         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
9618
9619 2005-10-11  Simon Josefsson  <jas@extundo.com>
9620
9621         * lib/crc.h, lib/crc.c: New files.
9622
9623         * lib/gc.h (gc_hash_buffer): Add doc.
9624
9625 2005-10-11  Bruno Haible  <bruno@clisp.org>
9626
9627         * modules/c-strcasestr: New file.
9628         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
9629
9630 2005-10-11  Bruno Haible  <bruno@clisp.org>
9631
9632         * modules/c-strcase: New file.
9633         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
9634
9635 2005-10-11  Bruno Haible  <bruno@clisp.org>
9636
9637         * lib/strcasecmp.c: Include limits.h.
9638         (strcasecmp): Avoid integer overflow on exotic platforms.
9639         * lib/strncasecmp.c: Include limits.h.
9640         (strncasecmp): Avoid integer overflow on exotic platforms.
9641         Reported by Paul Eggert.
9642
9643 2005-10-11  Bruno Haible  <bruno@clisp.org>
9644
9645         * lib/c-strcasestr.h: New file, from GNU gettext.
9646         * lib/c-strcasestr.c: New file, from GNU gettext.
9647
9648 2005-10-11  Bruno Haible  <bruno@clisp.org>
9649
9650         * lib/c-strcase.h: New file, from GNU gettext.
9651         * lib/c-strcasecmp.c: New file, from GNU gettext.
9652         * lib/c-strncasecmp.c: New file, from GNU gettext.
9653
9654 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9655
9656         * modules/mempcpy (License): GPL -> LGPL.
9657         * modules/strchrnul (License): Likewise.
9658         * modules/sysexits (License): Likewise.
9659
9660 2005-10-08  Simon Josefsson  <jas@extundo.com>
9661
9662         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
9663
9664 2005-10-07  Simon Josefsson  <jas@extundo.com>
9665
9666         * m4/memxor.m4: Remove gl_C_RESTRICT call.
9667
9668 2005-10-06  Simon Josefsson  <jas@extundo.com>
9669
9670         * tests/test-hmac-md5.c: New file.
9671
9672         * modules/hmac-md5-tests: New file.
9673
9674         * modules/hmac-md5: New file.
9675
9676 2005-10-06  Simon Josefsson  <jas@extundo.com>
9677
9678         * m4/hmac-md5.m4: New file.
9679
9680         * m4/memxor.m4: Require gl_C_RESTRICT.
9681
9682 2005-10-06  Simon Josefsson  <jas@extundo.com>
9683
9684         * lib/memxor.c (memxor): Avoid casts and warnings.
9685
9686 2005-10-06  Simon Josefsson  <jas@extundo.com>
9687
9688         * lib/hmac-md5.c: New file.
9689
9690         * lib/hmac.h: New file.
9691
9692 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9693
9694         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
9695         promotes to int, not unsigned int, to catch the AIX 5.3
9696         compiler bug.
9697
9698 2005-10-05  Simon Josefsson  <jas@extundo.com>
9699
9700         * modules/memxor: New file.
9701
9702         * modules/iconv (Files): Move config.rpath to havelib, it is used
9703         there.
9704
9705         * modules/havelib (Files): Add config.rpath.
9706
9707 2005-10-05  Simon Josefsson  <jas@extundo.com>
9708
9709         * m4/memxor.m4: New file.
9710
9711 2005-10-05  Simon Josefsson  <jas@extundo.com>
9712
9713         * lib/memxor.c (memxor): Fix compiler error.
9714
9715         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
9716         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
9717
9718         * lib/memxor.h, lib/memxor.c: New files.
9719
9720         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
9721         we assume all systems have it, suggested by Jim Meyering
9722         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
9723         any systems lack sys/socket.h; mingw32 is known to lack it, but we
9724         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
9725         same reasons.
9726
9727 2005-10-05  Simon Josefsson  <jas@extundo.com>
9728
9729         * config/srclist.txt: Add glibc bug 1423 for md5.h.
9730
9731 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9732
9733         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
9734         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
9735         needed, since the source code now assumes these .h files.
9736
9737 2005-10-05  Derek Price  <derek@ximbiot.com>
9738
9739         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
9740
9741 2005-10-05  Bruno Haible  <bruno@clisp.org>
9742
9743         * modules/stdint (License): Change to LGPL.
9744
9745 2005-10-04  Simon Josefsson  <jas@extundo.com>
9746
9747         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
9748         D. Baushke" <mdb@gnu.org>.
9749
9750 2005-10-04  Bruno Haible  <bruno@clisp.org>
9751
9752         * lib/verify.h (verify_true): Provide alternative definition for C++.
9753
9754 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9755
9756         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
9757         (SSIZE_MAX): New macro, if not already defined.
9758         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
9759         than 2 GiB.
9760
9761 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9762
9763         Sync from coreutils.
9764         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
9765         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
9766         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
9767         ULLONG_MAX doesn't work with 2.7.2.1.
9768
9769 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
9772         From Ben Pfaff.
9773
9774         * modules/exclude (Depends-on): Depend on verify.
9775         * modules/strtoimax (Depends-on): Likewise.
9776         * modules/utimecmp (Depends-on): Likewise.
9777
9778 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9779
9780         * lib/exclude.c: Include verify.h.
9781         (verify): Remove.  All callers changed to use verify.h's version.
9782         * lib/strtoimax.c: Likewise.
9783         * lib/utimecmp.c: Likewis.e
9784
9785         Sync from coreutils.
9786         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
9787         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
9788         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
9789         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
9790         bother returning ENOSYS if settimeofday or stime fails; just let
9791         them return whatever errno they want to return.
9792         * lib/utimens.c: Include unistd.h, for dup2.
9793         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
9794         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
9795
9796 2005-10-02  Jim Meyering  <jim@meyering.net>
9797
9798         Sync from coreutils.
9799         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
9800         from glibc-2.2.5 that fails for read-only files.
9801
9802 2005-10-02  Jim Meyering  <jim@meyering.net>
9803
9804         Sync from coreutils.
9805         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
9806         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
9807         `#if HAVE_CONFIG_H'.
9808         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
9809         Remove AT_FDCWD test.
9810         Do not consume the fd unless successful.
9811         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
9812         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
9813         block, so that we don't even try to compile it if settimeofday is
9814         available.  This works around a compilation failure on OSF1 V5.1,
9815         due to stime requiring a `long int*' while tv_sec is `int'.
9816
9817 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
9818
9819         Sync from coreutils.
9820         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
9821         against `yes', rather than just testing for nonempty.
9822
9823 2005-10-01  Simon Josefsson  <jas@extundo.com>
9824
9825         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
9826         and Darwin.
9827
9828         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
9829         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
9830         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
9831         freeaddrinfo and gai_strerror are declared by the POSIX headers.
9832         Check if struct addrinfo is declared.
9833
9834 2005-10-01  Simon Josefsson  <jas@extundo.com>
9835
9836         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
9837         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
9838         AI_* and EAI_* definitions.  Protect function declarations.
9839
9840 2005-10-01  Jim Meyering  <jim@meyering.net>
9841
9842         Sync from coreutils.
9843
9844         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
9845         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
9846         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
9847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
9848         in the inet and nsl libraries.  Required on Solaris 5.7.
9849
9850 2005-10-01  Jim Meyering  <jim@meyering.net>
9851
9852         Sync from coreutils.
9853         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
9854         in the inet and nsl libraries.  Required on Solaris 5.7.
9855
9856 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
9857
9858         * lib/getdelim.c (getdelim): Remove unused variables.
9859
9860 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
9861
9862         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
9863         so that the code works even with ancient cpp.  Portability problem
9864         with GCC 2.7.2.1 reported by Thomas M.Ott.
9865
9866 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
9867
9868         * modules/regex (Depends-on): Add strcase.
9869
9870         * modules/gethostname (Licence): Change from GPL to LGPL, since
9871         gethostname.c is a trivial implementation of a standard library
9872         function.
9873         * modules/poll (License): Change from GPL to LGPL, since it's
9874         derived from LGPL code.
9875
9876 2005-09-27  Jim Meyering  <jim@meyering.net>
9877
9878         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
9879         HAVE_CONFIG_H.
9880
9881         * lib/intprops.h (signed_type_or_expr__): Define.
9882         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
9883         for unsigned types.
9884
9885 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9886
9887         * lib/verify.h (verify_expr): Remove, replacing with:
9888         (verify_true): New macro that returns true instead of void.
9889         (verify_type__): Remove.
9890         (verify): Use verify_true rather than verify_type__.
9891
9892 2005-09-26  Bruno Haible  <bruno@clisp.org>
9893
9894         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
9895         is necessary.
9896         (lib_SOURCES): Remove mbchar.c.
9897         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
9898         (Files): Add m4/mbrtowc.m4.
9899         * modules/mbiter: Likewise.
9900         * modules/mbuiter: Likewise.
9901
9902 2005-09-26  Bruno Haible  <bruno@clisp.org>
9903
9904         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
9905         compile mbchar.c if they are not both present.
9906         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
9907         * m4/mbiter.m4 (gl_MBITER): Likewise.
9908         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
9909         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
9910         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
9911
9912 2005-09-25  Jim Meyering  <jim@meyering.net>
9913
9914         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
9915         also uses socklen_t.
9916
9917 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9918
9919         * lib/utimens.c (ENOSYS): Define if not already defined.
9920         (futimens): Support having a null PATH if the file descriptor
9921         is nonnegative.
9922
9923         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
9924         Remove.
9925         (__attribute): Define to empty unless GCC 3.1 or later.
9926         This works around a core dump on OpenBSD 3.4, which has GCC
9927         2.95.3, which dumps core when given __attribute__(()).  It also
9928         simplifies other tests, since we really don't want to bother with
9929         worrying about which ancient version of GCC supported what.
9930         Original problem reported by Yoann Vandoorselaere, with part of
9931         the fix suggested by Derek Price.
9932
9933 2005-09-24  Jim Meyering  <jim@meyering.net>
9934
9935         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
9936         so we can once again use a positive bitfield width of 1 -- now we
9937         don't have to explain why we were using a bitfield width of 2.
9938
9939 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9940
9941         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
9942         and similarly for the other external symbols.  Problem reported
9943         by James Gallager.
9944
9945         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
9946         bug reported by Jim Meyering.
9947
9948         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
9949         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
9950         not needed, since socklen is a prerequisite module.
9951
9952 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9953
9954         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
9955         Problem reported by Eric Blake.
9956         (getaddrinfo): Initialize se so that it's not garbage.
9957         Redo internal storage allocation so that it doesn't make unportable
9958         assumptions about alignment.
9959         Fix a memory leak.
9960
9961         * lib/utimens.c (futimens): Use futimesat if available.
9962         Prefer it to futimes since it doesn't have the futimes bug.
9963
9964         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
9965         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
9966         Instead, declare a function that returns a pointer to an array,
9967         and use verify_type__ to declare the size of the array.
9968         Problem and germ of a solution reported by Bruno Haible.
9969         (verify_type__): Use 2, not 1, for bitfield size, to avoid
9970         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
9971
9972 2005-09-23  Jim Meyering  <jim@meyering.net>
9973
9974         Sync from coreutils.
9975         Correct build failure (socklen_t not defined) on at least
9976         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
9977         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
9978
9979 2005-09-23  Jim Meyering  <jim@meyering.net>
9980
9981         * modules/getaddrinfo (Depends-on): Add socklen.
9982
9983 2005-09-23  Bruno Haible  <bruno@clisp.org>
9984
9985         * tests/test-verify.c: New file.
9986
9987 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9988
9989         Sync from coreutils.
9990
9991         * modules/argmatch (Depends-on): Add verify.
9992         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
9993         unistd-safer.
9994         * modules/save-cwd (Depends-on): Likewise.
9995
9996         * modules/openat (Files): Add lib/openat-die.c.
9997         (Depends-on): Remove error, exitfail.
9998         Add dirname.
9999
10000         * modules/verify: New file.
10001         * MODULES.html.sh (Diagnostics <assert.h>): New section,
10002         with "verify" module.
10003
10004 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10005
10006         Sync from coreutils.
10007
10008         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
10009         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
10010         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
10011         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
10012         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
10013         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
10014         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
10015         Don't bother checking for string.h, stdlib.h, unistd.h.
10016         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
10017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
10018         module's job.
10019         * m4/jm-macros.m4 (gl_MACROS): Likewise.
10020         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
10021
10022         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
10023         (gl_GETDATE): Use it.
10024
10025         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
10026
10027 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10028
10029         Sync from coreutils.
10030
10031         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
10032         stat-time.h.
10033         * lib/argmatch.h: Include verify.h
10034         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
10035         (ARGMATCH_ASSERT): Remove; unused.
10036         * lib/canonicalize.c: Assume STDC_HEADERS.
10037         * lib/exclude.c: Include "strcase.h".
10038         * lib/regex_internal.h [!defined _LIBC]: Likewise.
10039         * lib/getusershell.c: Include stdio--.h rather than stdio.h
10040         and stdio-safer.h.
10041         (getusershell): Call fopen, not fopen_safer.
10042         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
10043         Do not include unistd-safer.h.
10044         (save_cwd): Don't call fd_safer; no longer needed
10045         now that we include fcntl--.h.
10046
10047         * lib/getdate.y (relative_time): New type.
10048         (RELATIVE_TIME_0): New constant.
10049         (parser_control): Use relative_time instead of doing it ourselves.
10050         (%union): Add new relative_time rel member.
10051         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
10052         Now typeless.
10053         (relunit, relunit_snumber): Now of type rel.
10054         (zone, rel, relunit, get_date): Adjust to above changes.
10055
10056         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
10057         Do not include unistd-safer.h.
10058         (getloadavg): Don't call fd_safer; no longer needed
10059         now that we include fcntl--.h.
10060
10061         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
10062         (make_dir_parents): Treat ENOSYS like EEXIST.
10063
10064         Improve quality of diagnostics on restore_cwd failure.
10065         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
10066         (make_dir_parents): Last arg is now int * (for errno), not bool *.
10067         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
10068         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
10069         each time through the loop.  Do not diagnose restore_cwd failure;
10070         that is the caller's job (and perhaps the caller does not care).
10071
10072         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
10073         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
10074         If the file already exists but is not a directory, don't bother
10075         to try to make its parents.
10076         Close potential file descriptor leak if we can't chdir("/") (!).
10077         Don't always return true if chdir($PWD) fails; return true only
10078         if the requested action was done successfully (except for the
10079         chdir($PWD)).
10080         Don't log final directory unless we actually made it.
10081         Refactor to avoid duplicate code to fix up permissions.
10082         Don't attempt to fix up parent permissions if chdir($PWD) fails.
10083
10084         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
10085         to make it a bit faster and (I hope) clearer.
10086         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
10087         Fix bug in formats like %2N.
10088
10089         * lib/verify.h: New file.
10090
10091 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10092
10093         Sync from coreutils.
10094         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
10095
10096 2005-09-22  Jim Meyering  <jim@meyering.net>
10097
10098         Sync from coreutils.
10099
10100         * m4/lstat.m4 (gl_FUNC_LSTAT):
10101         Use AC_LIBSOURCES to require lstat.c and lstat.h.
10102         Remove obsolete comment.
10103         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
10104         * m4/xstrtod.m4: Likewise.
10105
10106         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
10107
10108 2005-09-22  Jim Meyering  <jim@meyering.net>
10109
10110         Sync from coreutils.
10111
10112         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
10113
10114         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
10115         the .tm_year member, since otherwise gcc-4.0 would now warn about
10116         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
10117
10118         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
10119         order to avoid an unsuppressible warning from gcc on 64-bit systems.
10120
10121         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
10122         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
10123         when run in a time zone for which daylight savings time is in effect
10124         for the starting date.
10125
10126         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
10127         stop us from restricting permissions of just-created absolute-named
10128         directories.
10129         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
10130         to restore initial working directory.
10131         * lib/mkdir-p.c (make_dir_parents): New parameter:
10132         different_working_dir, to tell caller if/when we change the working
10133         directory and are unable to return to the initial one.
10134         * lib/mkdir-p.h (make_dir_parents): Update prototype.
10135         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
10136         `return false'.  This fixes a bug introduced on 2004-07-30.
10137
10138         * lib/openat.c (fdopendir): Be sure to close the supplied
10139         file descriptor before returning.  This makes our replacement
10140         implementation a little closer to Solaris's, where fdopendir
10141         ties the file descriptor to the returned DIR* pointer.
10142         * lib/openat.c (unlinkat): New function.
10143         * lib/openat.h (unlinkat): Add prototype.
10144         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
10145         (openat_restore_fail): Rename from openat_restore_die.
10146         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
10147
10148         Provide an alternative to exiting immediately upon save_cwd or
10149         restore_cwd failure.  Now, an application can arrange e.g.,
10150         to perform a longjump in that case.
10151         * lib/openat.c: Include dirname.h.
10152         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
10153         (rpl_openat, fdopendir, fstatat): Call openat_save_die
10154         and openat_restore_die rather than calling error directly.
10155         Don't include "error.h" or "exitfail.h"; they're no longer needed.
10156
10157         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
10158         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
10159         define.
10160
10161         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
10162         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
10163                             int utc, int nanoseconds);
10164         Background:
10165         date should not have to allocate a megabyte of virtual memory to
10166         handle a format argument like +%1048575T.  When implemented with
10167         strftime, it must allocate such a buffer, use strftime to fill it
10168         in, print it, then free it.
10169         With fprintftime, it simply prints everything and exits.
10170         With no need for memory allocation, that's one fewer way to fail.
10171         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
10172         optional field width, not before, so we accept %9:z, not %:9z.
10173         (my_strftime): Be sure to use L_('x') for literals.
10174
10175         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
10176         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
10177         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
10178         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
10179         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
10180         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
10181         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
10182         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
10183         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
10184         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
10185         * lib/xgethostname.c, lib/xreadlink.c:
10186         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
10187
10188         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
10189         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
10190         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
10191         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10192         and don't include <sys/file.h>).
10193
10194 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
10195
10196         Sync from coreutils.
10197
10198         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
10199         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
10200         [!LDAV_DONE]: Avoid unused variable warning.
10201
10202 2005-09-21  Bruno Haible  <bruno@clisp.org>
10203
10204         * lib/unicodeio.h (unicode_to_mb): New declaration.
10205
10206 2005-09-20  Derek Price  <derek@ximbiot.com>
10207
10208         * lib/getaddrinfo.c: Don't include <netdb.h> included from
10209         getaddrinfo.h.
10210
10211 2005-09-20  Bruno Haible  <bruno@clisp.org>
10212
10213         * gnulib-tool: Remove trailing slashes from the values specified for
10214         --source-base, --m4-base, --tests-base, --aux-dir.
10215         Suggested by Simon Josefsson <jas@extundo.com>.
10216
10217 2005-09-20  Bruno Haible  <bruno@clisp.org>
10218
10219         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
10220         func_modules_to_filelist, func_import, func_create_testdir): Make all
10221         sorting results locale-independent, so that gnulib-cache.m4 doesn't
10222         change when gnulib-tool is invoked in a different locale.
10223
10224 2005-09-19  Simon Josefsson  <jas@extundo.com>
10225
10226         * m4/socklen.m4: Fix typo.
10227
10228 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10229
10230         Use a consistent style for including <config.h>.
10231         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
10232         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
10233         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
10234         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
10235         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
10236         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
10237         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
10238         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
10239         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
10240         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
10241         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
10242         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
10243         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
10244         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
10245         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
10246         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
10247         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
10248         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
10249         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
10250         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
10251         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
10252         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
10253         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
10254         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
10255         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
10256         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
10257         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
10258         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
10259         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
10260         lib/xstrtoumax.c, lib/yesno.c:
10261         Standardize inclusion of config.h.
10262         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
10263         lib/inttostr.h:  Removed inclusion of config.h from header files.
10264         * lib/inttostr.c:  Adjusted in-tree users.
10265         * lib/timespec.h: Remove superfluous warning to include config.h.
10266         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
10267         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
10268         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
10269         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
10270         config.h with HAVE_CONFIG_H.
10271
10272 2005-09-19  Jim Meyering  <jim@meyering.net>
10273
10274         * modules/pathmax (License): Change to LGPL.
10275
10276 2005-09-19  Derek Price  <derek@ximbiot.com>
10277
10278         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
10279
10280 2005-09-19  Bruno Haible  <bruno@clisp.org>
10281
10282         * gnulib-tool (import): Provide default for --tests-base.
10283
10284 2005-09-19  Bruno Haible  <bruno@clisp.org>
10285
10286         * doc/quote.texi: New file, extracted from gnulib.texi.
10287         * doc/ctime.texi: New file, extracted from gnulib.texi.
10288         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
10289         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
10290         * doc/gnulib.texi: Include them.
10291
10292 2005-09-18  Bruno Haible  <bruno@clisp.org>
10293
10294         Portability fix.
10295         * gnulib-tool (func_readlink): New function.
10296         (func_ln_if_changed): Use it.
10297
10298 2005-09-18  Bruno Haible  <bruno@clisp.org>
10299
10300         * gnulib-tool: Support --with-tests also with --import.
10301         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
10302         (func_import): Use variables $testsbase and $inctests. Emit a
10303         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
10304         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
10305         SUBDIRS += $testsdir.
10306         (func_create_testdir): Update.
10307
10308 2005-09-18  Bruno Haible  <bruno@clisp.org>
10309
10310         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
10311         instead of $dry_run.
10312         (func_cp_if_changed, func_mv_if_changed): Remove functions.
10313         (func_ln_if_changed): Don't handle dry-run here.
10314         (func_import): In dry-run mode, detect more precisely which actions
10315         would be performed, and don't use "...ing" verbs.
10316
10317 2005-09-18  Bruno Haible  <bruno@clisp.org>
10318
10319         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
10320         (func_import): Use join on two temporary files instead of three nested
10321         loops, in order to determine which files are new or old.
10322
10323 2005-09-18  Bruno Haible  <bruno@clisp.org>
10324
10325         * gnulib-tool (func_import): Comment out code that spits out the
10326         new files with --dry-run.
10327
10328 2005-09-18  Bruno Haible  <bruno@clisp.org>
10329
10330         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
10331
10332 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10333
10334         * lib/stat-time.h: New file.
10335         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
10336         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
10337         in a different way.
10338         (timespec_cmp): New function.
10339         * lib/utimecmp.c: Include stat-time.h.
10340         (SYSCALL_RESOLUTION): Depend on whether various struct stat
10341         members exist, not on the obsolescent ST_MTIM_NSEC.
10342         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
10343
10344 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10345
10346         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
10347
10348 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10349
10350         * MODULES.html.sh (File system functions): Add stat-time.
10351         * modules/stat-time: New file.
10352         * modules/timespec (Files): Remove m4/st_mtim.m4; this
10353         is now done in a different way, by the stat-time module.
10354         * modules/utimecmp (Depends-on): Add stat-time.
10355
10356 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10357
10358         * m4/st_mtim.m4: Remove.  Superseded by...
10359         * m4/stat-time.m4: New file.
10360         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
10361         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
10362
10363 2005-09-15  Derek Price  <derek@ximbiot.com>
10364
10365         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
10366
10367 2005-09-15  Derek Price  <derek@ximbiot.com>
10368
10369         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
10370         * lib/regex_internal.c: Ditto, using this...
10371         (__GNUC_PREREQ): ...new macro.
10372         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
10373         using...
10374         (__GNUC_PREREQ): ...this new macro.
10375
10376         * lib/strstr.h: Include string.h. Define strstr as a macro here.
10377
10378 2005-09-15  Derek Price  <derek@ximbiot.com>
10379             Paul Eggert  <eggert@cs.ucla.edu>
10380
10381         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
10382         changes, consolidating in...
10383         * lib/regex_internal.h: ...this file.
10384
10385 2005-09-13  Jim Meyering  <jim@meyering.net>
10386
10387         * lib/canon-host.c: Filter through gnu indent and reword comments
10388         slightly.
10389         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
10390
10391 2005-09-13  Derek Price  <derek@ximbiot.com>
10392
10393         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
10394         failure.
10395         Reported by Jim Meyering  <jim@meyering.net>.
10396
10397 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
10398
10399         * lib/base64.c: Typo.
10400         (base64_encode): Put b64str in initialized data section.
10401
10402 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         Merge glibc and coreutils changes into gnulib, plus a few
10405         extra fixes.
10406         * lib/md5.c: Use #error rather than a string.
10407         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
10408         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
10409         (__attribute__): Define to empty for non recent-GCC.
10410         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
10411         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
10412         Renamed from their non-__ counterparts, with new macros replacing
10413         them if not _LIBC.  Add __THROW attribute.
10414         (rol): Remove.
10415         (struct md5_ctx): Align buffer if using GCC.
10416         * lib/sha1.h (struct sha1_ctx): Likewise.
10417         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
10418         The old name was backwards.
10419         (NOTSWAP): Remove; not used.
10420         (rol): New macro, moved here from md5.h.
10421         (sha1_process_block): Remove a FIXME that doesn't make sense.
10422
10423 2005-09-12  Derek Price  <derek@ximbiot.com>
10424
10425         Return usable errors from canon-host.
10426         * lib/canon-host.h: New file.
10427         * lib/canon-host.c (canon_host): Wrap...
10428         (canon_host_r): ...this new function, which now relies exclusively on
10429         getaddrinfo.
10430         (ch_strerror): New function.
10431         (last_cherror): New global.
10432         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
10433         interface.
10434         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
10435         void *.
10436         (freeaddrinfo): Free ai->ai_canonname when set.
10437
10438 2005-09-12  Derek Price  <derek@ximbiot.com>
10439
10440         Make canon-host require getaddrinfo.
10441         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
10442         AC_LIBSOURCE canon-host.h.  Call...
10443         (gl_PREREQ_CANON_HOST): ...this new function, which requires
10444         gl_GETADDRINFO.
10445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
10446
10447 2005-09-12  Derek Price  <derek@ximbiot.com>
10448
10449         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
10450         LGPL.
10451         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
10452
10453 2005-09-12  Derek Price  <derek@ximbiot.com>
10454
10455         * lib/gai_strerror.c: Include config.h when available.  Include
10456         getaddrinfo.h before other headers to test interface.
10457         Reported by Larry Jones <lawrence.jones@ugs.com>.
10458
10459 2005-09-12  Derek Price  <derek@ximbiot.com>
10460             Paul Eggert  <eggert@cs.ucla.edu>
10461
10462         * modules/glob (Files): Add glob-libc.h.
10463
10464 2005-09-12  Derek Price  <derek@ximbiot.com>
10465             Paul Eggert  <eggert@cs.ucla.edu>
10466
10467         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
10468         glob_.h, glob-libc.h.
10469         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
10470
10471 2005-09-12  Derek Price  <derek@ximbiot.com>
10472             Paul Eggert  <eggert@cs.ucla.edu>
10473
10474         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
10475         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
10476         protecting things that should be done only in gnulib contexts.
10477         * lib/glob_.h: New file, containing only the glob things needed for
10478         gnulib.
10479         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
10480         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
10481         (glob, globfree, glob_pattern_p): Now defined simply in terms of
10482         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
10483         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
10484         and to respect the namespace rules better.
10485
10486 2005-09-08  Simon Josefsson  <jas@extundo.com>
10487
10488         * modules/socklen: New file.
10489
10490 2005-09-08  Simon Josefsson  <jas@extundo.com>
10491
10492         * m4/socklen.m4: New file.
10493
10494 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10495
10496         * modules/utimens (Files): Add m4/utimbuf.m4, since
10497         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
10498         Reported by Sergey Poznyakoff.
10499
10500 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10501
10502         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
10503         definitions, since that's the preferred style in glibc.
10504         Fix a minor spacing issue, and update copyright notice to match
10505         glibc's.
10506
10507 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10508
10509         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
10510
10511 2005-09-06  Simon Josefsson  <jas@extundo.com>
10512
10513         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
10514         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
10515
10516 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10517
10518         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
10519         warning.
10520
10521 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10522
10523         * config/srclist.txt: Add glibc bug 1302.
10524
10525 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10526
10527         Change bitset word type from unsigned int to unsigned long int,
10528         as this has better performance on typical 64-bit hosts.
10529         Port bitset code to hosts with unusual word sizes.
10530         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
10531         (build_collating_symbol):
10532         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
10533         argument is a bitset.  This is merely a style issue, but it makes
10534         it clearer that an entire array is expected.
10535         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
10536         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
10537         Port to the case where bitset_word is not the same as unsigned int.
10538         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
10539         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
10540         Likewise.
10541         * lib/regexec.c (check_dst_limits_calc_pos_1,
10542         check_subexp_matching_top):
10543         (build_trtable, group_nodes_into_DFAstates):
10544         Likewise.
10545         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
10546         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
10547         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
10548         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
10549         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
10550         * lib/regcomp.c (optimize_subexps, lower_subexp):
10551         Work even if bitset_word has holes in its bitwise representation.
10552         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
10553         * lib/regexec.c (check_dst_limits_calc_pos_1,
10554         check_subexp_matching_top):
10555         Likewise.
10556         * lib/regex_internal.c (re_string_reconstruct):
10557         Don't assume UCHAR_MAX == 255.
10558         * lib/regex_internal.h (bitset_set_all): Likewise.
10559         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
10560         All uses changed.
10561         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
10562         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
10563         All uses changed.
10564         (BITSET_WORD_MAX): New macro.
10565         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
10566         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
10567         (bitset_empty, bitset_copy):
10568         Prefer sizeof (bitset) to multiplying it out ourselves.
10569         (bitset_not_merge): Remove; unused.
10570         (bitset_contain): Return bool, not unsigned int with one bit on.
10571         All callers changed.
10572         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
10573         alignment than re_node_set; do this by defining a new internal
10574         type struct dests_alloc and using it to allocate memory.
10575
10576 2005-09-05  Bruno Haible  <bruno@clisp.org>
10577
10578         * gnulib-tool (func_import): Fix comparison in handling of symbolic
10579         links.
10580
10581 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
10582
10583         * modules/size_max (Makefile.am): Add size_max.h
10584
10585 2005-09-04  Derek Price  <derek@ximbiot.com>
10586
10587         * gnulib-tool (func_import): Fix reversed $symbolic logic.
10588
10589 2005-09-03  Simon Josefsson  <jas@extundo.com>
10590
10591         * gnulib-tool: Fix typo.
10592
10593 2005-09-03  Simon Josefsson  <jas@extundo.com>
10594
10595         * config/srclist.txt: Add glibc bug 1293.
10596
10597 2005-09-03  Derek Price  <derek@ximbiot.com>
10598
10599         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
10600         From Larry Jones <lawrence.jones@ugs.com>.
10601
10602 2005-09-02  Simon Josefsson  <jas@extundo.com>
10603
10604         * modules/socklen: New file.
10605
10606 2005-09-02  Simon Josefsson  <jas@extundo.com>
10607
10608         * modules/havelib: New module.
10609
10610         * modules/gettext, modules/iconv, modules/lock, modules/readline:
10611         Use havelib.
10612
10613 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10614
10615         Check for arithmetic overflow when calculating sizes, to prevent
10616         some buffer-overflow issues.  These patches are conservative, in the
10617         sense that when I couldn't determine whether an overflow was possible,
10618         I inserted a run-time check.
10619         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
10620         macros.
10621         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
10622         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
10623         (re_xnrealloc, re_x2nrealloc): New inline functions.
10624         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
10625         parse_bracket_exp):
10626         (build_equiv_class, build_charclass): Check for arithmetic overflow
10627         in size expression calculations.
10628         * lib/regex_internal.c (re_string_realloc_buffers):
10629         (build_wcs_upper_buffer, re_node_set_add_intersect):
10630         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
10631         (re_dfa_add_node, register_state): Likewise.
10632         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
10633         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
10634         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
10635         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
10636
10637 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
10640         m4/ulonglong.m4.  Problem reported by Martin Lambers.
10641
10642 2005-09-02  Bruno Haible  <bruno@clisp.org>
10643
10644         Support for lib vs. lib64 distinction on biarch platforms.
10645         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
10646         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
10647         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
10648
10649 2005-09-02  Bruno Haible  <bruno@clisp.org>
10650
10651         * gnulib-tool (import): In the other first-use case, provide defaults
10652         as well.
10653
10654 2005-09-02  Bruno Haible  <bruno@clisp.org>
10655
10656         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
10657         patches not yet found in the latest gettext release.
10658
10659 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
10662         to avoid a collision with bits/local_lim.h in glibc.
10663         All uses changed.  Problem reported by Dmitry V. Levin in
10664         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
10665
10666         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
10667         bugs in int versus size_t comparisons.
10668         (re_string_context_at): Fix bug where the code assumed that
10669         Idx is signed.
10670
10671         Use bool where appropriate.
10672         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
10673         All callers changed.
10674         (calc_eclosure_iter): Likewise, for ROOT arg.
10675         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
10676         (build_charclass_op): Likewise, for NON_MATCH arg.
10677         * lib/regex_internal.c (re_string_allocate, re_string_construct):
10678         (re_string_construct_common): Likewise, for ICASE arg.
10679         * lib/regexec.c (re_search_2_stub, re_search_stub):
10680         Likewise, for RET_LEN arg.
10681         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
10682         (set_regs): Likewise, for FL_BACKTRACK arg.
10683         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
10684         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
10685         (calc_eclosure_iter, parse_bracket_exp):
10686         Use bool for internal variables that are booleans.
10687         * lib/regexec.c (re_search_internal, check_matching,
10688         proceed_next_node):
10689         (set_regs, build_sifted_states, sift_states_bkref):
10690         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
10691         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
10692         (find_collation_sequence_value):
10693         Likewise.
10694         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
10695         (re_node_set_compare):
10696         Return bool, not int. All callers changed.
10697         * lib/regexec.c (check_halt_node_context, check_dst_limits):
10698         (build_trtable, check_node_accept): Likewise.
10699         * lib/regex_internal.h: Include stdbool.h.
10700
10701         Fix bugs uncovered when converting to bool.
10702         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
10703         failure instead of charging ahead blindly.
10704         * lib/regex_internal.c (register_state): Likewise.
10705         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
10706         for freeing internal storage.
10707         (group_nodes_into_DFA_states): Use unsigned int, not int, for
10708         bitset pieces used as boolean, to avoid undefined behavior
10709         on hosts that do int overflow checking.
10710
10711 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10712
10713         * config/srclist.txt: Add glibc bugs 1285-1287.
10714
10715 2005-09-01  Jim Meyering  <jim@meyering.net>
10716
10717         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
10718         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
10719         Require gl_STAT_MACROS, too.
10720
10721 2005-09-01  Bruno Haible  <bruno@clisp.org>
10722
10723         * gnulib-tool (import): In the first-use case, provide defaults.
10724
10725 2005-09-01  Bruno Haible  <bruno@clisp.org>
10726
10727         * gnulib-tool (func_import): Remove the .tmp files.
10728
10729 2005-09-01  Bruno Haible  <bruno@clisp.org>
10730
10731         * gnulib-tool (func_import): Fix handling of symbolic links.
10732
10733 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10734
10735         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
10736         old glibc regex code mishandles strings longer than 2**31 bytes.
10737         This patch fixes this when the regex code is used in gnulib
10738         (i.e., outside glibc).
10739
10740         This patch should not affect the use of the regex code inside
10741         glibc.  No doubt this problem also needs to be handled for glibc
10742         as well, but the result will be an incompatible change to the
10743         glibc ABI, and the old ABI will have to be supported too.  That
10744         can be the the subject for another patch.
10745
10746         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
10747         governing whether the rest of this patch is active.  By default,
10748         the macro is disabled and the patch has no effect.
10749         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
10750         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
10751         (struct re_pattern_buffer, re_search, re_search_2, re_match):
10752         (re_match_2, re_set_registers): Use the new types.
10753         * lib/regex_internal.h (Idx, re_hashval_t): New types.
10754         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
10755         New macros.
10756         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
10757         (re_string_context_at, bin_tree_t, re_dfastate_t):
10758         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
10759         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
10760         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
10761         (re_string_char_size_at, re_string_wchar_at):
10762         (re_string_elem_size_at):
10763         Use the new types and macros to port to 64-bit hosts.
10764         Use unsigned types for internal values, so that the code
10765         mostly works even for arrays larger than SSIZE_MAX.
10766         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
10767         (search_duplicated_node, calc_eclosure_iter, fetch_number):
10768         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
10769         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
10770         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
10771         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
10772         (calc_inveclosure, parse_dup_op, build_range_exp):
10773         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
10774         (fetch_number, create_token_tree, mark_opt_subexp):
10775         Likewise.
10776         * lib/regex_internal.c (re_string_construct_common,
10777         create_ci_newstate):
10778         (create_cd_newstate, re_string_allocate, re_string_construct):
10779         (re_string_realloc_buffers, build_wcs_upper_buffer):
10780         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
10781         (re_string_reconstruct, re_string_peek_byte_case):
10782         (re_string_fetch_byte_case, re_string_context_at):
10783         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
10784         (re_node_set_init_copy, re_node_set_add_intersect):
10785         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10786         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10787         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
10788         (re_acquire_state, re_acquire_state_context, register_state):
10789         Likewise.
10790         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
10791         search_cur_bkref_entry):
10792         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
10793         (re_search_internal, re_search_2_stub, re_search_stub)
10794         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
10795         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
10796         (update_cur_sifted_state, check_dst_limits):
10797         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10798         (check_subexp_limits, sift_states_bkref, merge_state_array):
10799         (check_subexp_matching_top, get_subexp, get_subexp_sub):
10800         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
10801         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
10802         (expand_bkref_cache, check_node_accept_bytes):
10803         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
10804         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
10805         (acquire_init_state_context, check_halt_node_context):
10806         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
10807         (sift_states_backward, clean_state_log_if_needed):
10808         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
10809         (find_recover_state, transit_state_sb, transit_state_mb):
10810         (transit_state_bkref, build_trtable, match_ctx_clean):
10811         Likewise.
10812         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
10813         to work around an assumption that REG_MISSING is negative.
10814
10815         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
10816         (seek_collating_symbol_entry) [defined _LIBC]:
10817         (lookup_collation_sequence_value) [defined _LIBC]:
10818         (build_range_exp, build_collating_symbol) [defined _LIBC]:
10819         Use prototypes rather than old-style function definitions.
10820         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
10821         (transit_state_sb) [0]:
10822         (find_collation_sequence_value) [defined _LIBC]: Likewise.
10823
10824         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
10825         rm_eo.
10826
10827         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
10828         (optimize_subexps, lower_subexp):
10829         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
10830         since the signed shift might overflow.  Use 1u<<31 instead.
10831         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
10832         Likewise.
10833         * lib/regexec.c (check_dst_limits_calc_pos_1,
10834         check_subexp_matching_top): Likewise.
10835
10836         * lib/regcomp.c (optimize_subexps, lower_subexp):
10837         Use CHAR_BIT rather than 8, for clarity.
10838         * lib/regexec.c (check_dst_limits_calc_pos_1):
10839         (check_subexp_matching_top): Likewise.
10840         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
10841         have to worry about portability issues when shifting it left.
10842         Remove no-longer-needed test for table_size > 0.
10843         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
10844         in a word, as the resulting behavior is undefined.
10845         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
10846         in one case, a <= should have been an <, and in another case the
10847         whole test was missing.
10848         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
10849         the standard name CHAR_BIT.
10850         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
10851         this is not true on one's complement and signed-magnitude hosts.
10852
10853         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
10854         next_last_offset.
10855         (struct re_dfa_t): Remove unused member states_alloc.
10856         * lib/regcomp.c (init_dfa): Don't initialize unused members.
10857
10858 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10859
10860         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
10861         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
10862         and large-file glibc and in 32-bit large-file Solaris.
10863
10864 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10865
10866         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
10867         lengths fit in regoff_t; this isn't true if regoff_t is the same
10868         width as size_t.
10869         * lib/regex.c (re_search_internal): 5th arg is LAST_START
10870         (= START + RANGE) instead of RANGE.  This avoids overflow
10871         problems when regoff_t is the same width as size_t.
10872         All callers changed.
10873         (re_search_2_stub): Check for overflow when adding the
10874         sizes of the two strings.
10875         (re_search_stub): Check for overflow when adding START
10876         to RANGE; if it occurs, substitute the extreme value.
10877
10878 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10879
10880         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
10881
10882 2005-08-31  Jim Meyering  <jim@meyering.net>
10883
10884         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
10885         a pointer-to-const.
10886         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
10887         (register_state): Likewise.
10888         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
10889         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10890         (group_nodes_into_DFAstates): Likewise.
10891
10892 2005-08-31  Jim Meyering  <jim@meyering.net>
10893
10894         * check-module: Add a FIXME comment.
10895
10896 2005-08-31  Eric Blake  <ebb9@byu.net>
10897
10898         * modules/unistd-safer (Files): Add unistd--.h.
10899         * modules/stdio-safer (Files): Add stdio--.h.
10900
10901 2005-08-31  Derek Price  <derek@ximbiot.com>
10902
10903         * lib/getdelim.c (getdelim): Return EOF on EOF.
10904         Reported by Larry Jones <lawrence.jones@ugs.com>.
10905
10906 2005-08-31  Bruno Haible  <bruno@clisp.org>
10907
10908         Avoid unnecessary diffs in the generated lib/Makefile.am.
10909         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
10910         the generated files.
10911         (func_import): Don't set cmd.
10912
10913 2005-08-31  Bruno Haible  <bruno@clisp.org>
10914
10915         * lib/strstr.c: Include <stddef.h>, for NULL.
10916         * lib/strcasestr.c: Likewise.
10917         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10918
10919 2005-08-31  Bruno Haible  <bruno@clisp.org>
10920
10921         * gnulib-tool: New option --macro-prefix.
10922         (func_import): Use macro_prefix.
10923         (import): Handle option --macro-prefix.
10924
10925 2005-08-31  Bruno Haible  <bruno@clisp.org>
10926
10927         * gnulib-tool (import): Rename most ac_* variables to cached_*.
10928         Also use new variables cached_lgpl, cached_libtool.
10929
10930 2005-08-31  Bruno Haible  <bruno@clisp.org>
10931
10932         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
10933         always instantiating them.
10934
10935 2005-08-31  Bruno Haible  <bruno@clisp.org>
10936
10937         * gnulib-tool (func_import): Read the previous cached settings
10938         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
10939         earlier added by gnulib but are now dropped. Warn when a gnulib file
10940         overwrites a non-gnulib file.
10941
10942 2005-08-31  Bruno Haible  <bruno@clisp.org>
10943
10944         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
10945         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
10946         projects that don't keep autogenerated files in CVS. Put into
10947         actioncmd only the specified modules, not the transitive closure.
10948
10949 2005-08-31  Bruno Haible  <bruno@clisp.org>
10950
10951         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
10952         Create directories that shall be filled.
10953         (import): Don't look for gl_* macros in configure.ac. Recurse across
10954         all directories containing a gnulib-cache.m4 files, if meaningful.
10955
10956 2005-08-31  Bruno Haible  <bruno@clisp.org>
10957
10958         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
10959         (import): Set seen_libtool when we see gl_LIBTOOL.
10960
10961 2005-08-31  Bruno Haible  <bruno@clisp.org>
10962
10963         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
10964         declaration macro definitions from generated gnulib.m4.
10965
10966 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
10967
10968         * lib/iconvme.h: Add prototype for iconv_alloc.
10969
10970 2005-08-29  Simon Josefsson  <jas@extundo.com>
10971
10972         * lib/iconvme.c: Fix errno.
10973
10974 2005-08-29  Bruno Haible  <bruno@clisp.org>
10975
10976         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
10977         that it works when the directory contains spaces.
10978
10979 2005-08-29  Bruno Haible  <bruno@clisp.org>
10980
10981         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
10982
10983 2005-08-29  Bruno Haible  <bruno@clisp.org>
10984
10985         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
10986         Emit more advice.
10987
10988 2005-08-29  Bruno Haible  <bruno@clisp.org>
10989         and Stepan Kasal  <kasal@ucw.cz>
10990
10991         * check-module: If more parameters are given, check each of them
10992         separately; add more exceptions, as noted by Jim Meyering.
10993         (check_module): New procedure.
10994         (%exempt_header): Now contains all exceptions.
10995
10996 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
10997
10998         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
10999
11000 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
11001
11002         * lib/iconvme.c: Split iconv_string into iconv_alloc.
11003
11004 2005-08-28  Bruno Haible  <bruno@clisp.org>
11005
11006         * m4/gnulib-tool.m4: New file.
11007
11008 2005-08-27  Jim Meyering  <jim@meyering.net>
11009
11010         * modules/unistd-safer (Files): Add pipe-safer.c.
11011         * modules/fcntl-safer (Files): Add creat-safer.c.
11012
11013 2005-08-27  Jim Meyering  <jim@meyering.net>
11014
11015         * m4/stdlib-safer.m4: New file.  From coreutils.
11016         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
11017         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
11018         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
11019         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
11020         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
11021
11022 2005-08-27  Jim Meyering  <jim@meyering.net>
11023
11024         * lib/fopen-safer.c: Merge minor changes from coreutils.
11025         * lib/dup-safer.c: Likewise.
11026         * lib/fd-safer.c: Likewise.
11027
11028         Merge from coreutils.
11029         * lib/stdio--.h: New file.
11030         * lib/stdlib--.h: New file.
11031         * lib/mkstemp-safer.c: New file.
11032
11033         GNU tar needs these.
11034         * lib/pipe-safer.c: New file.
11035         * lib/creat-safer.c: New file.
11036         * lib/fcntl--.h (creat): Define to creat_safer.
11037         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
11038         * lib/unistd--.h (pipe): Define to pipe_safer.
11039         * lib/unistd-safer.h: Declare pipe_safer.
11040
11041 2005-08-26  Simon Josefsson  <jas@extundo.com>
11042
11043         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
11044         Haible <bruno@clisp.org>.
11045
11046 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
11047
11048         * lib/regex_internal.h: Remove all references to
11049         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
11050         or better.
11051         (bitset_not, bitset_merge, bitset_not_merge):
11052         (bitset_mask, re_string_allocate, re_string_construct):
11053         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
11054         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
11055         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
11056         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
11057         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11058         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11059         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
11060         (re_acquire_state_context):
11061         Remove unnecessary forward decls.
11062         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
11063         Put __attribute at function definition,
11064         now that the function decl has been removed.
11065         * lib/regex_internal.c (re_string_peek_byte_case):
11066         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
11067         Likewise.
11068
11069 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
11070
11071         * m4/regex.m4: Add AC_PREREQ(2.50).
11072         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
11073
11074 2005-08-25  Simon Josefsson  <jas@extundo.com>
11075
11076         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
11077         __fsetlocking.
11078
11079 2005-08-25  Simon Josefsson  <jas@extundo.com>
11080
11081         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
11082         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
11083         GLIBC specific code.
11084
11085 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11086
11087         Make regex safe for g++.  This fixes one real bug (an "err"
11088         that should have been "*err").  g++ problem reported by
11089         Sam Steingold.
11090         * lib/regex_internal.h (re_calloc): New macro, consistent with
11091         re_malloc etc.  All callers of calloc changed to use re_calloc.
11092         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
11093         not int.  All callers changed.
11094         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
11095         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
11096         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
11097         (find_recover_state): Change "err" to "*err"; this fixes what
11098         appears to be a real bug.
11099         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
11100         versus int.
11101
11102 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11103
11104         * modules/regex (Depends-on): Add malloc, since the code
11105         assumes that !malloc(0) means failure.
11106
11107 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11108
11109         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
11110
11111         alloca modernization/simplification for regex.
11112         * lib/regex.c: Remove portability cruft for alloca.  This no longer
11113         needs to be at the start of the file, and can be moved into
11114         regex_internal.h and simplified.
11115         * lib/regex_internal.h: Include <alloca.h>.
11116         (__libc_use_alloca) [!defined _LIBC]: New macro.
11117         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
11118         now works outside glibc.
11119
11120 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11121
11122         * config/srclist.txt: Add glibc bugs 1241, 1245.
11123
11124 2005-08-25  Jim Meyering  <jim@meyering.net>
11125
11126         * lib/open-safer.c: Include <config.h>.
11127         Otherwise, we'd lose LARGEFILE support in any file using
11128         e.g. "fcntl--.h"
11129
11130 2005-08-25  Bruno Haible  <bruno@clisp.org>
11131
11132         * m4/minmax.m4: Require autoconf 2.52.
11133         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
11134         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
11135         alternatives of translit over the alphabet.
11136         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
11137
11138 2005-08-24  Simon Josefsson  <jas@extundo.com>
11139
11140         * tests/test-getpass.c: New file.
11141
11142 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11143
11144         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
11145         for GNU regex features.
11146
11147 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11148
11149         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
11150         * lib/regex.h (regerror): Likewise.
11151
11152         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
11153         requires this.  (The code never needed it.)
11154
11155         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
11156         All uses of recently-renamed identifiers changed to use the new,
11157         POSIX-compliant names.  The code will build and run just fine
11158         without these changes, but it's better to eat our own dog food
11159         and use the standard-conforming names.
11160
11161         * lib/regex.h: Fix a multitude of POSIX name space violations.
11162         These changes have an effect only for programs that define
11163         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
11164         do not change anything for programs compiled in the normal way.
11165         Also, there is no effect on the ABI.
11166
11167         (_REGEX_SOURCE): New macro.
11168         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
11169         defined and _GNU_SOURCE is not; this fixes a name space violation.
11170
11171         Rename the following macros to obey POSIX requirements.
11172         The old names are still visible as macros if _REGEX_SOURCE is defined.
11173         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
11174         RE_BACKSLASH_ESCAPE_IN_LISTS.
11175         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
11176         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
11177         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
11178         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
11179         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
11180         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
11181         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
11182         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
11183         (REG_INTERVALS): renamed from RE_INTERVALS.
11184         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
11185         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
11186         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
11187         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
11188         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
11189         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
11190         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
11191         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
11192         RE_UNMATCHED_RIGHT_PAREN_ORD.
11193         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
11194         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
11195         (REG_DEBUG): renamed from RE_DEBUG.
11196         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
11197         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
11198         unusual, since we can't clash with the POSIX REG_ICASE.
11199         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
11200         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
11201         (REG_NO_SUB): renamed from RE_NO_SUB.
11202         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
11203         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
11204         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
11205         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
11206         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
11207         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
11208         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
11209         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
11210         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
11211         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
11212         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
11213         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
11214         RE_SYNTAX_POSIX_MINIMAL_BASIC.
11215         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
11216         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
11217         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
11218         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
11219         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
11220         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
11221         (REG_FIXED): Renamed from REGS_FIXED.
11222         (REG_NREGS): Renamed from RE_NREGS.
11223
11224         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
11225         of other REG_* macros, since POSIX says the user is allowed to
11226         #undef these macros selectively.
11227
11228         (reg_errcode_t): Update comment stating what other tables need
11229         to be consistent.
11230
11231         Rename the following enum values to obey POSIX requirements.
11232         The old names are still visible as macros.
11233         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
11234         is not defined, since GNU is supposed to be a superset of POSIX as
11235         much as possible, and since we want reg_errcode_t to be a signed
11236         type for implementation consistency.
11237         (_REG_NOERROR): Renamed from REG_NOERROR.
11238         (_REG_NOMATCH): Renamed from REG_NOMATCH.
11239         (_REG_BADPAT): Renamed from REG_BADPAT.
11240         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
11241         (_REG_ECTYPE): Renamed from REG_ECTYPE.
11242         (_REG_EESCAPE): Renamed from REG_EESCAPE.
11243         (_REG_ESUBREG): Renamed from REG_ESUBREG.
11244         (_REG_EBRACK): Renamed from REG_EBRACK.
11245         (_REG_EPAREN): Renamed from REG_EPAREN.
11246         (_REG_EBRACE): Renamed from REG_EBRACE.
11247         (_REG_BADBR): Renamed from REG_BADBR.
11248         (_REG_ERANGE): Renamed from REG_ERANGE.
11249         (_REG_ESPACE): Renamed from REG_ESPACE.
11250         (_REG_BADRPT): Renamed from REG_BADRPT.
11251         (_REG_EEND): Renamed from REG_EEND.
11252         (_REG_ESIZE): Renamed from REG_ESIZE.
11253         (_REG_ERPAREN): Renamed from REG_ERPAREN.
11254         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
11255         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
11256         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
11257         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
11258
11259         (_REG_RE_NAME, _REG_RM_NAME): New macros.
11260         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
11261         changed.  But support the old name if the new one is not defined
11262         and if _REGEX_SOURCE.
11263
11264         Change the following member names in struct re_pattern_buffer.
11265         The old names are still supported if !_REGEX_SOURCE.
11266         The new names are always supported, regardless of _REGEX_SOURCE.
11267         (re_buffer): Renamed from buffer.
11268         (re_allocated): Renamed from allocated.
11269         (re_used): Renamed from used.
11270         (re_syntax): Renamed from syntax.
11271         (re_fastmap): Renamed from fastmap.
11272         (re_translate): Renamed from translate.
11273         (re_can_be_null): Renamed from can_be_null.
11274         (re_regs_allocated): Renamed from regs_allocated.
11275         (re_fastmap_accurate): Renamed from fastmap_accurate.
11276         (re_no_sub): Renamed from no_sub.
11277         (re_not_bol): Renamed from not_bol.
11278         (re_not_eol): Renamed from not_eol.
11279         (re_newline_anchor): Renamed from newline_anchor.
11280
11281         Change the following member names in struct re_registers.
11282         The old names are still supported if !_REGEX_SOURCE.
11283         The new names are always supported, regardless of _REGEX_SOURCE.
11284         (rm_num_regs): Renamed from num_regs.
11285         (rm_start): Renamed from start.
11286         (rm_end): Renamed from end.
11287
11288         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
11289         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
11290         Prepend __ to parameter names.
11291
11292         Undo yesterday's changes.
11293
11294 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11295
11296         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
11297         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
11298         lib/regex.c.
11299
11300 2005-08-24  Jim Meyering  <jim@meyering.net>
11301
11302         Sync from coreutils.
11303         * m4/fcntl-safer.m4: New file.
11304
11305         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
11306         and object files for this module.
11307
11308 2005-08-24  Jim Meyering  <jim@meyering.net>
11309
11310         Sync from coreutils.
11311         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
11312
11313 2005-08-24  Jim Meyering  <jim@meyering.net>
11314
11315         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
11316         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
11317
11318 2005-08-24  Jim Meyering  <jim@meyering.net>
11319
11320         * modules/fcntl-safer: New module.
11321         * modules/fts (Depends-on): Add fcntl-safer.
11322         * MODULES.html.sh (File descriptor based Input/Output):
11323         Add fcntl-safer.
11324
11325 2005-08-24  Bruno Haible  <bruno@clisp.org>
11326
11327         Support for unit test modules.
11328         * modules/README: Mention tests modules.
11329         * modules/TEMPLATE-TESTS: New file.
11330         * gnulib-tool: New options --extract-tests-module, --with-tests and
11331         --tests-base (unused for the moment).
11332         (testsbase, inctests): New variables.
11333         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
11334         (func_verify_module): Exclude TEMPLATE-TESTS.
11335         (func_verify_nontests_module, func_verify_tests_module): New functions.
11336         (func_get_dependencies): Add implicit dependency for tests modules.
11337         (func_get_tests_module): New function.
11338         (func_modules_transitive_closure): When --with-tests was specified,
11339         include the unit tests as well, unless explicitly avoided.
11340         (func_emit_lib_Makefile_am): Ignore the tests modules here.
11341         (func_emit_tests_Makefile_am): New function.
11342         (func_create_testdir): When --with-tests was specified, emit a
11343         tests/ directory.
11344         * MODULES.html.sh (Future developments): Update.
11345
11346 2005-08-24  Bruno Haible  <bruno@clisp.org>
11347
11348         * modules/tls-tests: New file.
11349         * tests/test-tls.c: New file, from GNU gettext.
11350
11351 2005-08-24  Bruno Haible  <bruno@clisp.org>
11352
11353         * modules/lock-tests: New file.
11354         * tests/test-lock.c: New file, from GNU gettext.
11355
11356 2005-08-24  Bruno Haible  <bruno@clisp.org>
11357
11358         * lib/lock.h: Add multiple inclusion guard.
11359         * lib/tls.h: Add multiple inclusion guard.
11360
11361 2005-08-24  Bruno Haible  <bruno@clisp.org>
11362
11363         * gnulib-tool: Add support for the --aux-dir option to
11364         --create-testdir, --create-megatestdir, --test, --megatest.
11365         (func_create_testdir, func_create_megatestdir): Optionally emit a
11366         AC_CONFIG_AUX_DIR directive.
11367         (create-testdir, create-megatestdir, test, megatest): Provide a
11368         default value for $auxdir.
11369
11370 2005-08-24  Bruno Haible  <bruno@clisp.org>
11371
11372         * gnulib-tool (import): Use compound statement instead of subshell
11373         where possible.
11374
11375 2005-08-24  Bruno Haible  <bruno@clisp.org>
11376
11377         * gnulib-tool (import): Change --aux-dir default to "build-aux".
11378
11379 2005-08-24  Bruno Haible  <bruno@clisp.org>
11380
11381         * gnulib-tool (func_version): Update.
11382
11383 2005-08-24  Bruno Haible  <bruno@clisp.org>
11384
11385         * gnulib-tool (func_import, func_create_testdir,
11386         func_create_megatestdir): Quote all autoconf macro arguments.
11387
11388 2005-08-24  Bruno Haible  <bruno@clisp.org>
11389
11390         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
11391         option --force, because --force causes the aclocal.m4 of each
11392         subdirectory to be newer than the corresponding config.h.in.
11393
11394 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11395
11396         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
11397         All contents moved to gl_REGEX.
11398         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
11399         assume that it does.
11400
11401 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         * lib/regex.h (REG_NOSYS)
11404         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
11405         Define, since POSIX requires it as of 2001.
11406         (_REG_ENOSYS)
11407         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
11408         New private symbol, used to keep the enum signed in all cases.
11409         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
11410         Youngman in
11411         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
11412
11413         * lib/regex_internal.c (re_string_skip_chars, register_state):
11414         (calc_state_hash):
11415         Remove forward decls; no longer needed now that we use prototypes.
11416         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
11417         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
11418         (clean_state_log_if_needed): Likewise.
11419
11420 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11421
11422         * config/srclist.txt: Add glibc bugs 1231-1233.
11423
11424 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11425
11426         Fix problems reported by Sam Steingold in
11427         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
11428         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
11429         assumed that reg_errcode_t is a signed type, which is not
11430         necessarily true if _XOPEN_SOURCE is not defined.
11431         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
11432         since some compilers warn about it otherwise.
11433
11434 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11435
11436         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
11437         (init_word_char, create_initial_state, duplicate_node_closure):
11438         (fetch_token, peek_token_bracket, build_range_exp):
11439         (build_collating_symbol): Remove forward decls; no longer needed
11440         now that we use prototypes.
11441
11442         * lib/regcomp.c:
11443         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
11444         (re_compile_fastmap_iter, regcomp, regerror, regfree):
11445         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
11446         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
11447         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
11448         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
11449         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
11450         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
11451         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
11452         (build_range_exp, build_collating_symbol, parse_bracket_exp):
11453         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
11454         (build_charclass, build_charclass_op, fetch_number, create_tree):
11455         (create_token_tree, mark_opt_subexp, duplicate_tree):
11456         Use prototypes rather than old-style definitions.
11457
11458         * lib/regex_internal.c:
11459         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
11460         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
11461         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11462         (re_string_reconstruct, re_string_peek_byte_case):
11463         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
11464         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11465         (re_node_set_init_copy, re_node_set_add_intersect):
11466         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11467         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11468         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11469         (re_acquire_state, re_acquire_state_context, register_state):
11470         (create_ci_newstate, create_cd_newstate, free_state):
11471         Likewise.
11472         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
11473         re_search_2):
11474         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
11475         (re_search_internal, prune_impossible_nodes):
11476         (acquire_init_state_context, check_matching, static):
11477         (check_halt_node_context, check_halt_state_context, proceed_next_node):
11478         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
11479         (update_regs, sift_states_backward, build_sifted_states):
11480         (clean_state_log_if_needed, merge_state_array):
11481         (update_cur_sifted_state, add_epsilon_src_nodes):
11482         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
11483         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
11484         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
11485         (find_recover_state, check_subexp_matching_top, transit_state_mb):
11486         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
11487         (check_arrival, check_arrival_add_next_nodes):
11488         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11489         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11490         (check_node_accept_bytes, check_node_accept, extend_buffers):
11491         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
11492         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
11493         (sift_ctx_init):
11494         Likewise.
11495
11496         * lib/regex_internal.h:
11497         (re_string_allocate, re_string_construct, re_string_reconstruct):
11498         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
11499         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
11500         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
11501         (re_string_context_at, re_string_peek_byte_case):
11502         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
11503         is defined, since we now use prototypes always.
11504
11505         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
11506         C89 or better.  All uses removed.
11507
11508 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11509
11510         * config/srclist.txt: Add glibc bugs 1220-1227.
11511
11512 2005-08-20  Jim Meyering  <jim@meyering.net>
11513
11514         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
11515         of unused local, dfa.
11516
11517 2005-08-20  Bruno Haible  <bruno@clisp.org>
11518
11519         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
11520
11521 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11522
11523         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
11524         (re_node_set_insert_last, re_dfa_add_node):
11525         Rename local variables to avoid GCC shadowing warnings.
11526
11527 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11528
11529         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
11530         [defined lint]: Suppress bogus uninitialized-variable warnings.
11531
11532         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
11533         and let the caller return REG_ESPACE if out of space.  This
11534         removes an uninitialied-variable warning with GCC 4.0.1, and also
11535         avoids taking the address of a local variable.  All callers
11536         changed.
11537
11538 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11539
11540         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
11541         $LIBCSRC/posix/regexec.c.
11542         Add glibc bug 1217 for regcomp.c.
11543
11544 2005-08-19  Jim Meyering  <jim@meyering.net>
11545
11546         * lib/regexec.c (proceed_next_node): Redo local variables to
11547         avoid GCC shadowing warnings.
11548
11549 2005-08-18  Bruno Haible  <bruno@clisp.org>
11550
11551         * lib/strstr.c (strstr): Fix return value in multibyte case.
11552         * lib/strcasestr.c (strcasestr): Likewise.
11553
11554 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11555
11556         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
11557
11558 2005-08-17  Jim Meyering  <jim@meyering.net>
11559
11560         Make the %s format (seconds since the epoch) work for a negative
11561         number and when used with a zero-padded field width, e.g. %015s.
11562
11563         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
11564         label so that it precedes the code to set `digits'.  Otherwise,
11565         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
11566         print `00-22'.  Now, it prints `-0022', as it should.
11567
11568 2005-08-17  Bruno Haible  <bruno@clisp.org>
11569
11570         * modules/strstr (Files): Add m4/mbrtowc.m4.
11571         (Depends-on): Add mbuiter.
11572
11573 2005-08-17  Bruno Haible  <bruno@clisp.org>
11574
11575         * modules/strcasestr: New file.
11576         * MODULES.html.sh (String handling, based on ANSI C 89): Add
11577         strcasestr.
11578
11579 2005-08-17  Bruno Haible  <bruno@clisp.org>
11580
11581         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
11582
11583 2005-08-17  Bruno Haible  <bruno@clisp.org>
11584
11585         * modules/mbuiter: New file.
11586         * MODULES.html.sh (Extended multibyte and wide character utilities):
11587         Add mbuiter.
11588
11589 2005-08-17  Bruno Haible  <bruno@clisp.org>
11590
11591         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
11592         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
11593
11594 2005-08-17  Bruno Haible  <bruno@clisp.org>
11595
11596         * m4/strcasestr.m4: New file.
11597
11598 2005-08-17  Bruno Haible  <bruno@clisp.org>
11599
11600         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
11601         * lib/strstr.c: Completely rewritten, with multibyte locale support.
11602
11603 2005-08-17  Bruno Haible  <bruno@clisp.org>
11604
11605         * lib/strcasestr.h: New file.
11606         * lib/strcasestr.c: New file.
11607
11608 2005-08-17  Bruno Haible  <bruno@clisp.org>
11609
11610         * lib/strcasecmp.c: Use mbuiter.h.
11611
11612 2005-08-17  Bruno Haible  <bruno@clisp.org>
11613
11614         * lib/mbuiter.h: New file.
11615
11616 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11617
11618         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
11619         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
11620         and gl_GETOPT are both invoked via different paths (as happens
11621         with GNU tar CVS because it uses both argp and getopt), the former
11622         wins.
11623
11624 2005-08-16  Bruno Haible  <bruno@clisp.org>
11625
11626         * modules/tls: New file.
11627         * MODULES.html.sh (Multithreading): Add tls.
11628
11629 2005-08-16  Bruno Haible  <bruno@clisp.org>
11630
11631         * modules/strnlen1: New file.
11632         * MODULES.html.sh (String handling): Add strnlen1.
11633
11634 2005-08-16  Bruno Haible  <bruno@clisp.org>
11635
11636         * modules/strcase (Files): Add m4/mbrtowc.m4.
11637         (Depends-on): Add strnlen1, mbchar.
11638
11639 2005-08-16  Bruno Haible  <bruno@clisp.org>
11640
11641         * modules/mbiter: New file.
11642         * MODULES.html.sh (Extended multibyte and wide character utilities):
11643         Add mbiter.
11644
11645 2005-08-16  Bruno Haible  <bruno@clisp.org>
11646
11647         * modules/mbfile: New file.
11648         * MODULES.html.sh (Extended multibyte and wide character utilities):
11649         Add mbfile.
11650
11651 2005-08-16  Bruno Haible  <bruno@clisp.org>
11652
11653         * modules/mbchar: New file.
11654         * MODULES.html.sh (Extended multibyte and wide character utilities):
11655         New section.
11656
11657 2005-08-16  Bruno Haible  <bruno@clisp.org>
11658
11659         * m4/tls.m4: New file, from GNU gettext.
11660
11661 2005-08-16  Bruno Haible  <bruno@clisp.org>
11662
11663         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
11664         always.
11665         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
11666
11667 2005-08-16  Bruno Haible  <bruno@clisp.org>
11668
11669         * m4/mbiter.m4: New file.
11670
11671 2005-08-16  Bruno Haible  <bruno@clisp.org>
11672
11673         * m4/mbfile.m4: New file.
11674
11675 2005-08-16  Bruno Haible  <bruno@clisp.org>
11676
11677         * m4/mbchar.m4: New file.
11678
11679 2005-08-16  Bruno Haible  <bruno@clisp.org>
11680
11681         * lib/tls.h: New file, from GNU gettext.
11682         * lib/tls.c: New file, from GNU gettext.
11683
11684 2005-08-16  Bruno Haible  <bruno@clisp.org>
11685
11686         * lib/strnlen1.h: New file.
11687         * lib/strnlen1.c: New file.
11688
11689 2005-08-16  Bruno Haible  <bruno@clisp.org>
11690
11691         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
11692         (mbi_init): Update.
11693         (mbi_avail, mbi_advance): Let the iteration end before the terminating
11694         NUL byte, not after it.
11695
11696 2005-08-16  Bruno Haible  <bruno@clisp.org>
11697
11698         * lib/strcase.h (strcasecmp): Add note in comments.
11699         * lib/strncasecmp.c: Use code from strcasecmp.c.
11700         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
11701         (strcasecmp): Work correctly in multibyte locales.
11702
11703 2005-08-16  Bruno Haible  <bruno@clisp.org>
11704
11705         * lib/mbiter.h: New file.
11706
11707 2005-08-16  Bruno Haible  <bruno@clisp.org>
11708
11709         * lib/mbfile.h: New file.
11710
11711 2005-08-16  Bruno Haible  <bruno@clisp.org>
11712
11713         * lib/mbchar.h: New file.
11714         * lib/mbchar.c: New file.
11715
11716 2005-08-16  Bruno Haible  <bruno@clisp.org>
11717
11718         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
11719         the valid ones. Makes the comparison operations transitive:
11720         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
11721         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
11722
11723 2005-08-15  Simon Josefsson  <jas@extundo.com>
11724
11725         * modules/ssize_t (License): Change to 'unlimited'.
11726
11727         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
11728
11729 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11730
11731         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
11732         Add comments for each pending glibc patch.
11733
11734 2005-08-15  Bruno Haible  <bruno@clisp.org>
11735
11736         * lib/regex.h (__restrict_arr): Don't define to __restrict if
11737         __cplusplus is defined.
11738
11739 2005-08-14  Jim Meyering  <jim@meyering.net>
11740
11741         Sync from coreutils.
11742
11743         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
11744         Use the hash-table-based cycle-detection code not just when
11745         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
11746         Reported by James Youngman in
11747         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
11748         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
11749         FTS_TIGHT_CYCLE_CHECK.
11750         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
11751         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
11752         once again.
11753         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
11754         * lib/fts.c (fd_safer): Remove decl.
11755         Include fcntl--.h rather than unistd-safer.h
11756         (fts_safe_changedir): Don't call fd_safer; no longer needed
11757         now that we include fcntl--.h.
11758
11759 2005-08-12  Simon Josefsson  <jas@extundo.com>
11760
11761         * modules/getndelim2: Use ssize_t module.
11762         * modules/getnline: Likewise.
11763         * modules/safe-read: Likewise.
11764         * modules/xreadlink: Likewise.
11765
11766         * modules/ssize_t: New file.
11767
11768 2005-08-12  Simon Josefsson  <jas@extundo.com>
11769
11770         * m4/readline.m4: Look for termcap, curses or ncurses if required.
11771
11772 2005-08-12  Simon Josefsson  <jas@extundo.com>
11773
11774         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11775         ssize_t.
11776
11777 2005-08-12  Simon Josefsson  <jas@extundo.com>
11778
11779         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
11780         readline, getdelim and check_version.
11781         (Support for systems lacking ISO C 99: Sizes of integer types):
11782         Add size_max.
11783
11784 2005-08-12  Bruno Haible  <bruno@clisp.org>
11785
11786         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
11787
11788 2005-08-11  Simon Josefsson  <jas@extundo.com>
11789
11790         * modules/readline: New file.
11791
11792         * modules/strnlen (Files): Add strnlen.h.
11793
11794 2005-08-11  Simon Josefsson  <jas@extundo.com>
11795
11796         * m4/readline.m4: New file.
11797
11798 2005-08-11  Simon Josefsson  <jas@extundo.com>
11799
11800         * lib/readline.h, readline.c: New file.
11801
11802 2005-08-11  Simon Josefsson  <jas@extundo.com>
11803
11804         * doc/gnulib.texi (Initial import, Finishing touches): Mention
11805         gl_AVOID.
11806
11807 2005-08-11  Bruno Haible  <bruno@clisp.org>
11808
11809         * lib/strnlen.h (strnlen): Change parameter name to match comment.
11810
11811 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
11812
11813         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
11814
11815 2005-08-10  Simon Josefsson  <jas@extundo.com>
11816
11817         * tests/test-iconvme.c: New file.
11818
11819 2005-08-10  Simon Josefsson  <jas@extundo.com>
11820
11821         * m4/strnlen.m4: New file.
11822
11823         * m4/strndup.m4: Don't check for strnlen declaration, done in
11824         strnlen.m4.
11825
11826 2005-08-10  Simon Josefsson  <jas@extundo.com>
11827
11828         * lib/strndup.c: Use strnlen.h.
11829
11830         * lib/strnlen.h: New file.
11831
11832 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11833
11834         * README: Typos.
11835
11836 2005-08-02  Simon Josefsson  <jas@extundo.com>
11837
11838         * modules/readline: New file.
11839
11840 2005-08-02  Simon Josefsson  <jas@extundo.com>
11841
11842         * modules/getdelim: New file.
11843
11844         * modules/getline: Rewrite, don't use getndelim2.
11845
11846 2005-08-02  Simon Josefsson  <jas@extundo.com>
11847
11848         * m4/getline.m4: Separate out getdelim stuff into separate module.
11849
11850         * m4/getdelim.m4: New file.
11851
11852 2005-08-02  Simon Josefsson  <jas@extundo.com>
11853
11854         * lib/getline.h, getline.c: Rewrite.
11855
11856         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
11857
11858 2005-07-31  Bruno Haible  <bruno@clisp.org>
11859
11860         * lib/lock.h (gl_lock_initializer): New macro.
11861         (gl_lock_define_initialized): Use it.
11862         (gl_rwlock_initializer): New macro.
11863         (gl_rwlock_define_initialized): Use it.
11864         (gl_recursive_lock_initializer): New macro.
11865         (gl_recursive_lock_define_initialized): Use it.
11866
11867 2005-07-30  Karl Berry  <karl@gnu.org>
11868
11869         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
11870         Report from Ben Pfaff, regarding getopt.
11871
11872 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
11873
11874         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
11875         normal way.
11876         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
11877         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
11878         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
11879         (gl_GETOPT): Use the new macros.  Most of the implementation
11880         is moved to the new macros.  This is for programs like Emacs
11881         that don't want all the functionality of gl_GETOPT.
11882
11883 2005-07-26  Bruno Haible  <bruno@clisp.org>
11884
11885         * m4/lock.m4: Update from GNU gettext.
11886
11887 2005-07-26  Bruno Haible  <bruno@clisp.org>
11888
11889         * lib/lock.h: Update from GNU gettext.
11890         * lib/lock.c: Update from GNU gettext.
11891
11892 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11893
11894         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
11895         obsolescent AC_TRY_RUN.  Include the default includes files, for
11896         'exit'.
11897
11898 2005-07-24  Bruno Haible  <bruno@clisp.org>
11899
11900         * modules/visibility: New file.
11901         * MODULES.html.sh (Misc): Add visibility.
11902
11903 2005-07-24  Bruno Haible  <bruno@clisp.org>
11904
11905         * m4/visibility.m4: New file.
11906
11907 2005-07-24  Bruno Haible  <bruno@clisp.org>
11908
11909         * doc/visibility.texi: New file.
11910
11911 2005-07-22  Bruno Haible  <bruno@clisp.org>
11912
11913         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
11914         $(ALLOCA_H), redundant through BUILT_SOURCES.
11915         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
11916         redundant through BUILT_SOURCES.
11917         * modules/byteswap (Makefile.am): Remove explicit dependency on
11918         $(BYTESWAP_H), redundant through BUILT_SOURCES.
11919         * modules/fnmatch (Makefile.am): Remove explicit dependency on
11920         $(FNMATCH_H), redundant through BUILT_SOURCES.
11921         * modules/getopt (Makefile.am): Remove explicit dependency on
11922         $(GETOPT_H), redundant through BUILT_SOURCES.
11923         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
11924         redundant through BUILT_SOURCES.
11925         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
11926         redundant through BUILT_SOURCES.
11927         * modules/stdbool (Makefile.am): Remove explicit dependency on
11928         $(STDBOOL_H), redundant through BUILT_SOURCES.
11929         * modules/stdint (Makefile.am): Remove explicit dependency on
11930         $(STDINT_H), redundant through BUILT_SOURCES.
11931         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
11932         Remove explicit dependency on $(SYSEXITS_H).
11933         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
11934
11935 2005-07-18  Simon Josefsson  <jas@extundo.com>
11936
11937         * lib/check-version.c (check_version): Accept identical versions too.
11938
11939 2005-07-18  Bruno Haible  <bruno@clisp.org>
11940
11941         * modules/lock: New file.
11942         * MODULES.html.sh (Multithreading): New section.
11943
11944 2005-07-18  Bruno Haible  <bruno@clisp.org>
11945
11946         * m4/lock.m4: New file, from GNU gettext.
11947
11948 2005-07-18  Bruno Haible  <bruno@clisp.org>
11949
11950         * lib/lock.h: New file, from GNU gettext.
11951         * lib/lock.c: New file, from GNU gettext.
11952
11953 2005-07-18  Bruno Haible  <bruno@clisp.org>
11954
11955         * lib/lock.h (gl_once_t): New type.
11956         (gl_once_define, gl_once): New macros.
11957         * lib/lock.c (fresh_once): New variable.
11958         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
11959         functions.
11960
11961 2005-07-16  Simon Josefsson  <jas@extundo.com>
11962
11963         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
11964         workaround, suggested by Bruno.
11965
11966 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11967
11968         * modules/xalloc (Depends-on): Add xalloc-die.
11969         * modules/xvasprintf (Depends-on): Add xalloc-die.
11970
11971 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11972
11973         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
11974         with a minor change.
11975
11976 2005-07-15  Bruno Haible  <bruno@clisp.org>
11977
11978         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
11979         When using lib/poll.c, define poll as rpl_poll.
11980
11981 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
11982
11983         * modules/argp (Depends-on): Remove unlocked-io.
11984
11985 2005-07-14  Derek Price  <derek@ximbiot.com>
11986
11987         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
11988         for glob symlink bug.
11989
11990 2005-07-14  Bruno Haible  <bruno@clisp.org>
11991
11992         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
11993         Instead, test for *_unlocked function declarations directly.
11994
11995 2005-07-11  Simon Josefsson  <jas@extundo.com>
11996
11997         * modules/size_max: New file.
11998
11999         * modules/xsize: Depend on size_max module for size_max.m4.
12000
12001 2005-07-11  Simon Josefsson  <jas@extundo.com>
12002
12003         * lib/size_max.h: New file.
12004
12005 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12006
12007         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
12008         copyright symbol and the year.
12009         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
12010         (version_etc_va): Use parameterized copyright notice.
12011         Reword to conform to the current GNU coding standards.
12012
12013 2005-07-11  Karl Berry  <karl@gnu.org>
12014
12015         * doc/gnulib.texi (Quoting): new node.
12016         (Initial import): more info, from Patrice.
12017
12018 2005-07-11  Bruno Haible  <bruno@clisp.org>
12019
12020         * gnulib-tool (func_usage): Document option --avoid.
12021         (Command line options): Handle --avoid.
12022         (func_acceptable): New function.
12023         (func_modules_transitive_closure): Use it.
12024
12025 2005-07-11  Bruno Haible  <bruno@clisp.org>
12026
12027         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
12028         Reported by Jim Meyering.
12029
12030 2005-07-10  Bruno Haible  <bruno@clisp.org>
12031
12032         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
12033         Needed when size_t is smaller than 'unsigned int'.
12034         Reported by Paul Eggert.
12035
12036 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12037
12038         * modules/argp (Depends-on): Add unlocked-io
12039
12040 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12041
12042         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
12043         block of defines.
12044
12045 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12046
12047         * config/srclist.txt: Comment out regcomp.c, since we have a porting
12048         fix now.
12049
12050 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
12051         and Paul Eggert  <eggert@cs.ucla.edu>
12052
12053         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
12054         in wint_t, not wchar_t.  Remove now-unnecessary cast.
12055
12056 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12057
12058         * modules/regex (Files): Add lib/regex_internal.c,
12059         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
12060         (Depends-on): Add extensions.
12061         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
12062
12063 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12064
12065         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
12066         pathconf.
12067         * m4/same.m4 (gl_SAME): Likewise.
12068         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
12069
12070         * m4/regex.m4: Adjust to new libc regex implementation.
12071         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
12072         all the .c and .h parts of (the new) regex.
12073         Quote the m4 stuff better.
12074         Check for RE_ICASE bug of old gnulib.
12075         Check for REG_STARTEND of recent libc.
12076         Rename local variables from jm_* to gl_*.
12077         Quote operand of "test -f".
12078         Say "recent enough" version of libc, not "version 2".
12079         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
12080         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
12081         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
12082         Remove check for btowc, isascii.
12083         Require AM_LANGINFO_CODESET.
12084
12085 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12086
12087         * lib/regex.c, regex.h: Sync from libc.
12088         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
12089         * lib/regexec.c:
12090         New files, synced from libc, except that regex_internal.h
12091         currently has a small porting fix.
12092
12093 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12094
12095         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
12096         regex_internal.c, regexec.c.
12097         Add regex_internal.h too, but as a comment, since the libc version
12098         is currently broken in gnulib mode.
12099
12100 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12101
12102         Support programs like Emacs that use gnulib but not gettext.
12103         * MODULES.html.sh (Internationalization functions): Add gettext-h.
12104         * modules/gettext-h: New file.
12105         * modules/gettext (Files): Remove lib/gettext.h.
12106         (Depends-on): Add gettext-h.
12107         (Makefile.am): Remove lib_SOURCES.
12108         * modules/argmatch, modules/c-stack, modules/closeout:
12109         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
12110         * modules/execute, modules/file-type, modules/getaddrinfo:
12111         * modules/getopt, modules/human, modules/javacomp:
12112         * modules/javaexec, modules/mkdir-p, modules/obstack:
12113         * modules/openat, modules/pagealign_alloc, modules/pipe:
12114         * modules/quotearg, modules/regex, modules/rpmatch:
12115         * modules/unicodeio, modules/userspec, modules/version-etc:
12116         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
12117         * modules/xsetenv:
12118         Depend on gettext-h, not gettext.
12119
12120 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12121
12122         * gnulib-tool (func_import): Add support for 'public domain' license.
12123         * modules/alloca, modules/atexit, modules/memmove:
12124         Now public domain, not GPL.
12125         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
12126         * modules/realloc, modules/strerror, modules/strtod:
12127         Now LGPL, not GPL.
12128
12129 2005-07-05  Bruno Haible  <bruno@clisp.org>
12130
12131         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
12132         autoconf CVS. Needed for mingw.
12133
12134 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12135
12136         Remove the dependency of the strftime module on the tzset module.
12137         * modules/strftime (Depends-on): Remove dependency on tzset.
12138
12139 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12140
12141         Remove the dependency of the strftime module on the tzset module.
12142         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
12143         gl_FUNC_TZSET_CLOBBER.
12144
12145 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12146
12147         Remove the dependency of the strftime module on the tzset module.
12148         * lib/strftime.c (my_strftime)
12149         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
12150         Copy the input structure, to work around some of the bug with
12151         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
12152         Solaris releases, you should also use the tzset module, but we won't
12153         require it as a dependency any more since we don't want LGPLed code
12154         to depend on GPLed code.
12155
12156 2005-07-02  Jim Meyering  <jim@meyering.net>
12157
12158         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
12159         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
12160         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
12161         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
12162
12163 2005-07-02  Jim Meyering  <jim@meyering.net>
12164
12165         * lib/backupfile.c (backup_args): Change a `0' to NULL.
12166
12167 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12168
12169         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
12170         declares only 'struct timespec;' (!).
12171
12172 2005-07-01  Jim Meyering  <jim@meyering.net>
12173
12174         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
12175         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
12176         * lib/save-cwd.c, tempname.c:
12177         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12178         and don't include <sys/file.h>).
12179
12180 2005-06-29  Jim Meyering  <jim@meyering.net>
12181
12182         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
12183         type name.  Use the variable name instead.
12184         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
12185         Likewise.
12186
12187 2005-06-28  Simon Josefsson  <jas@extundo.com>
12188
12189         * modules/check-version (Files): Add check-version.m4.
12190
12191 2005-06-28  Simon Josefsson  <jas@extundo.com>
12192
12193         * m4/check-version.m4: New file, suggested by Jim Meyering
12194         <jim@meyering.net>.
12195
12196 2005-06-28  Simon Josefsson  <jas@extundo.com>
12197
12198         * lib/check-version.h, lib/check-version.c: New files.
12199
12200 2005-06-28  Simon Josefsson  <jas@extundo.com>
12201
12202         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
12203         collision with global variable.  Better indentation.  Don't
12204         increment buffer pointer beyond buffer end.  Based on comments
12205         from Paul Eggert <eggert@cs.ucla.edu>.
12206
12207         * lib/base64.h: Indent.
12208
12209 2005-06-28  Simon Josefsson  <jas@extundo.com>
12210
12211         * doc/gnulib.texi (Library version handling): New section.
12212
12213 2005-06-28  Jim Meyering  <jim@meyering.net>
12214
12215         * check-module (find_included_lib_files): Hard-code another
12216         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
12217         but modules/fts-lgpl (correctly) does not list those files.
12218
12219         * modules/canonicalize (Files): Add lib/pathmax.h.
12220
12221 2005-06-25  Simon Josefsson  <jas@extundo.com>
12222
12223         * modules/check-version: New file.
12224
12225 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12226
12227         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
12228         initializer of struct addrinfo, as an indication that we don't
12229         care how many members the structure has.
12230
12231 2005-06-24  Derek Price  <derek@ximbiot.com>
12232         and Bruno Haible  <bruno@clisp.org>
12233
12234         Remove stat module & update lstat.
12235         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
12236         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12237         * m4/stat.m4: Remove this file.
12238
12239 2005-06-24  Derek Price  <derek@ximbiot.com>
12240         and Bruno Haible  <bruno@clisp.org>
12241
12242         Remove stat module & update lstat.
12243         * lib/stat.c: Remove this file...
12244         (slash_aware_lstat): ...moving this content and its support...
12245         * lib/lstat.c (rpl_lstat): ...into here.
12246         * lib/lstat.h: New file.
12247
12248 2005-06-24  Derek Price  <derek@ximbiot.com>
12249         and Bruno Haible  <bruno@clisp.org>
12250
12251         Remove stat module & update lstat.
12252         * config/srclist.txt (libc sources): Remove stat.
12253
12254 2005-06-24  Derek Price  <derek@ximbiot.com>
12255         and Bruno Haible  <bruno@clisp.org>
12256
12257         Remove stat module & update lstat.
12258         * MODULES.html.sh (stat): Remove.
12259         * MODULES.html: Regenerated.
12260         * modules/lstat (Description): Correct function name.
12261         (Files): Add "lstat.h".
12262         (Depends-on): Remove stat, add xalloc, stat-macros.
12263         * modules/stat: Remove this file.
12264         (Include): Add "lstat.h", remove <sys/stat.h>.
12265
12266 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12267
12268         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
12269         (ranged_convert): Don't save conversion in a temporary struct.
12270         This causes a warning with GCC 4.0.0, and anyway in the typical
12271         case it's not worth the extra 100 bytes or so of code.
12272         (ranged_convert, __mktime_internal): When calling a function via a
12273         pointer P, use P () rather than (*P) (), as we now assume C89 or
12274         better.
12275
12276 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
12277
12278         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
12279         "who -r" failed to give output.  Problem reported by Tim Waugh.
12280
12281         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
12282         (xcalloc): Use it to avoid needless tests.
12283         Problem reported by Jim Meyering.
12284
12285 2005-06-20  Derek Price  <derek@ximbiot.com>
12286
12287         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
12288         unnecessary for Autoconfs > 2.59c.
12289
12290 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12291
12292         * lib/argp.h (__option_is_short): Check upper limit of
12293         __key. Isprint() requires its argument to have the value
12294         of an unsigned char or EOF.
12295
12296 2005-06-16  Jim Meyering  <jim@meyering.net>
12297
12298         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
12299         when either N or S is zero.
12300
12301 2005-06-16  Derek Price  <derek@ximbiot.com>
12302
12303         * m4/bison.m4: Declare YACC & YFLAGS precious.
12304
12305 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
12306
12307         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
12308         multibyte string or pattern, fall back on unibyte matching.
12309         Problem reported by James Youngman.
12310
12311 2005-06-08  Bruno Haible  <bruno@clisp.org>
12312
12313         * modules/csharpcomp: New file.
12314         * MODULES.html.sh (C#): Add csharpcomp.
12315
12316 2005-06-08  Bruno Haible  <bruno@clisp.org>
12317
12318         * m4/csharpcomp.m4: New file, from GNU gettext.
12319
12320 2005-06-08  Bruno Haible  <bruno@clisp.org>
12321
12322         * lib/csharpcomp.h: New file, from GNU gettext.
12323         * lib/csharpcomp.c: New file, from GNU gettext.
12324         * lib/csharpcomp.sh.in: New file, from GNU gettext.
12325
12326 2005-06-08  Bruno Haible  <bruno@clisp.org>
12327
12328         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
12329         warning on mingw.
12330
12331 2005-06-07  Derek Price  <derek@ximbiot.com>
12332
12333         Sync from CVS.
12334         * lib/glob_.h: Indent nested #ifdef.
12335
12336 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12337
12338         Sync from coreutils.
12339         Use "file name" when talking about file names, instead of "filename"
12340         or "path", as per the GNU coding standards.
12341         * lib/mkdir-p.c: Renamed from makepath.c.
12342         (make_dir_parents): Renamed from make_path.  All callers changed.
12343         * lib/mkdir-p.h: Likewise.  All includers changed.
12344         * lib/filenamecat.c: Renamed from path-concat.c.
12345         (file_name_concat): Renamed from path_concat.  All callers changed.
12346         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
12347         * lib/filenamecat.h: Likewise.  All includers changed.
12348         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
12349         in comments or local variable names.
12350         * lib/basename.c: Likewise.
12351         * lib/canonicalize.c, canonicalize.h: Likewise.
12352         * lib/dirname.c, dirname.h: Likewise.
12353         * lib/euidaccess.c: Likewise.
12354         * lib/exclude.c: Likewise
12355         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
12356         * lib/fsusage.c, fsuage.h: Likewise.
12357         * lib/fts.c, fts_.h: Likewise.
12358         * lib/getcwd.c: Likewise.
12359         * lib/getloadavg.c: Likewise.
12360         * lib/mkstemp.c: Likewise.
12361         * lib/mountlist.c, mountlist.h: Likewise.
12362         * lib/openat.c, openat.h: Likewise.
12363         * lib/readlink-stub.c: Likewise.
12364         * lib/readutmp.c, readutmp.h: Likewise.
12365         * lib/rename.c: Likewise.
12366         * lib/rmdir.c: Likewise.
12367         * lib/same.c: Likewise.
12368         * lib/savedir.c: Likewise.
12369         * lib/stripslash.c: Likewise.
12370         * lib/tempname.c: Likewise.
12371         * lib/xreadlink.c: Likewise.
12372         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
12373         All uses changed.
12374         * lib/exclude.h: Likewise.
12375
12376         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
12377         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12378         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
12379         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12380         * lib/pathmax.h: Include <limits.h> unconditionally, since other
12381         files have been getting away with it for years (MORE/BSD 4.3
12382         is extinct now).
12383         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
12384         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12385
12386         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
12387         Define to 256, not 255, as per modern POSIX.
12388
12389 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12390
12391         Sync from coreutils.
12392         Use "file name" when talking about file names, instead of "filename"
12393         or "path", as per the GNU coding standards.
12394         * MODULES.html.sh: mkdir-p renamed from makepath.
12395         filenamecat renamed from path-concat.
12396         * modules/filenamecat: Renamed from modules/path-concat.
12397         (Files): filenamecat.h and filenamecat.c renamed from
12398         path-concat.h and path-concat.c.
12399         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
12400         (Include): filenamecat.h, not path-concat.h.
12401         * modules/mkdir-p: Renamed from modules/makepath.
12402         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
12403         makepath.c.
12404         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
12405         (Include): mkdir-p.h, not makepath.h.
12406
12407 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12408
12409         Sync from coreutils.
12410         * m4/mkdir-p.m4: Renamed from makepath.m4.
12411         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
12412         Rename files from makepath.c to mkdir-p.c, and from
12413         makepath.h to mkdir-p.h.
12414         * m4/filenamecat.m4: Renamed from path-concat.m4.
12415         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
12416         Rename files from path-concat.c to filenamecat.c,
12417         and from path-concat.h to filenamecat.h.
12418         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
12419         "file name" in local variables or comments.
12420         * m4/rename.m4: Likewise.
12421
12422 2005-06-01  Bruno Haible  <bruno@clisp.org>
12423
12424         * modules/csharpexec: New file.
12425         * MODULES.html.sh (C#): New section.
12426
12427 2005-06-01  Bruno Haible  <bruno@clisp.org>
12428
12429         * m4/csharp.m4: New file, from GNU gettext.
12430         * m4/csharpexec.m4: New file, from GNU gettext.
12431
12432 2005-06-01  Bruno Haible  <bruno@clisp.org>
12433
12434         * lib/csharpexec.h: New file, from GNU gettext.
12435         * lib/csharpexec.c: New file, from GNU gettext.
12436         * lib/csharpexec.sh.in: New file, from GNU gettext.
12437
12438 2005-05-31  Derek Price  <derek@ximbiot.com>
12439             Paul Eggert  <eggert@cs.ucla.edu>
12440
12441         Sync from cvs.
12442         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
12443
12444 2005-05-31  Derek Price  <derek@ximbiot.com>
12445             Paul Eggert  <eggert@cs.ucla.edu>
12446
12447         Sync from cvs.
12448         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
12449
12450 2005-05-29  Derek Price  <derek@ximbiot.com>
12451
12452         * config/srclist.txt (glob_.h, glob.c): Add these files.
12453
12454 2005-05-29  Derek Price  <derek@ximbiot.com>
12455
12456         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
12457         * modules/glob: New file.
12458         * modules/getlogin_r: Add link to POSIX spec in description.
12459
12460 2005-05-29  Derek Price  <derek@ximbiot.com>
12461             Paul Eggert  <eggert@cs.ucla.edu>
12462
12463         * m4/glob.m4: New file.
12464
12465 2005-05-29  Derek Price  <derek@ximbiot.com>
12466             Paul Eggert  <eggert@cs.ucla.edu>
12467
12468         * lib/glob_.h, lib/glob.c: New files.
12469
12470 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
12471
12472         * modules/fts (Files): Remove m4/inttypes-pri.m4.
12473         * modules/fts-lgpl (Depends-on): Remove gettext.
12474
12475 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
12476
12477         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
12478         and don't require gt_INTTYPES_PRI.
12479
12480 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
12481
12482         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
12483
12484         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
12485         the configuration hassle isn't worth it.
12486         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
12487         (LONGEST_MODIFIER, PRIuMAX): Remove.
12488
12489 2005-05-27  Bruno Haible  <bruno@clisp.org>
12490
12491         * lib/getlogin_r.h: Remove second include of <stddef.h>.
12492
12493 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
12494
12495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
12496         _POSIX_PTHREAD_SEMANTICS for Solaris.
12497
12498 2005-05-25  Derek Price  <derek@ximbiot.com>
12499
12500         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
12501
12502 2005-05-25  Derek Price  <derek@ximbiot.com>
12503             Paul Eggert  <eggert@cs.ucla.edu>
12504
12505         * modules/getlogin_r, m4/getlogin_r.m4: New files.
12506         * lib/getlogin_r.c, getlogin_r.h: New files.
12507
12508 2005-05-25  Bruno Haible  <bruno@clisp.org>
12509             Derek Price  <derek@ximbiot.com>
12510
12511         * lib/getlogin_r.h: Simplify API documentation.
12512
12513 2005-05-23  Derek Price  <derek@ximbiot.com>
12514
12515         * modules/minmax (Files): Add m4/minmax.m4.
12516         (configure.ac): Add gl_MINMAX.
12517
12518 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12519
12520         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
12521         so that unistd-safer.h (GPL'ed code) need not be included.
12522
12523 2005-05-22  Bruno Haible  <bruno@clisp.org>
12524
12525         * m4/minmax.m4: New file.
12526         Based on a patch by Derek Price <derek@ximbiot.com>.
12527
12528 2005-05-22  Bruno Haible  <bruno@clisp.org>
12529
12530         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
12531         (INT64_MIN): Fix definition.
12532         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
12533
12534         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
12535         NEED_SIGNED_INT_TYPES.
12536
12537         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
12538         HAVE_SYSTEM_INTTYPES.
12539
12540 2005-05-22  Bruno Haible  <bruno@clisp.org>
12541
12542         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
12543         Also include <sys/param.h> if it defines MIN, MAX.
12544         Based on a patch by Derek Price <derek@ximbiot.com>.
12545
12546 2005-05-21  Jim Meyering  <jim@meyering.net>
12547
12548         * modules/fts (Files): Add m4/inttypes-pri.m4.
12549         (Depends-on): Add lstat and remove gettext.  Alphabetize.
12550
12551 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12552
12553         New fts module.
12554         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
12555         (setup_dir, free_dir): New functions.
12556         (enter_dir, leave_dir): Define trivial
12557         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
12558         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
12559         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
12560         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
12561         Move to fts-cycle.c.
12562         (fts_open): Use setup_dir.
12563         (fts_close): Use free_dir.
12564         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
12565         This adds a label and some gotos, but the alternatives were messier.
12566         Check for memory allocation failure when entering a dir.
12567         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
12568         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
12569         (FTS): New member fts_cycle, that is a union that contains the
12570         old active_dir_ht and cycle_state.  All uses changed to mention
12571         fts_cycle.ht and fts_cycle.state.
12572         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
12573         fts.c, with the following changes:
12574         (setup_dir, free_dir): New functions.
12575         (enter_dir): Now returns bool.  Return true if successful, false
12576         if memory exhausted.  All callers changed.
12577         Do not bother partly cleaning up on
12578         memory allocation failure; that is free_dir's job.
12579         However, free ad if hash_insert fails, to avoid memory leak.
12580         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
12581         fts->fts_options to see which union member to use.
12582
12583 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12584
12585         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
12586         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
12587
12588 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12589
12590         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
12591
12592 2005-05-20  Jim Meyering  <jim@meyering.net>
12593
12594         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
12595         Now a macro, to pacify GCC.
12596
12597 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
12598
12599         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
12600         of -1.
12601
12602 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
12603
12604         * lib/chown.c (rpl_chown): Return -1 on failure.
12605
12606 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
12607
12608         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
12609         Don't check for stddef.h.
12610         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
12611         don't use its results.
12612         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
12613         since we include them unconditionally.  Don't require
12614         AM_STDBOOL_H, since stdbool is a prerequisite.
12615         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
12616         since we assume C89 or better.
12617         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
12618         as we don't use their results.
12619         Don't check for fchdir, memmove, memset, strrchr, as we use
12620         them unconditionally.
12621         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
12622         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
12623
12624 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
12625
12626         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
12627         Include <stddef.h> unconditionally, since we assume C89 now.
12628         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
12629         * lib/fts.c: Include fts_.h first, to check interface.
12630         Do not include intprops.h; no longer needed.
12631         Include cycle-check.h and hash.h, since fts_.h no longer does.
12632         Remove unnecessary casts of closedir to void.
12633         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
12634         decide whether to decrement nlinks.
12635         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
12636         (FTS): Use struct hash_table * instead of Hash_table, so that
12637         we no longer need to include hash.h here.
12638
12639 2005-05-18  Jim Meyering  <jim@meyering.net>
12640
12641         * modules/dirfd (License): Change to LGPL.  Most of the code
12642         is already in the public domain.
12643
12644 2005-05-18  Jim Meyering  <jim@meyering.net>
12645
12646         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
12647         Reported by Yoann Vandoorselaere.
12648
12649 2005-05-17  Jim Meyering  <jim@meyering.net>
12650
12651         * m4/fts.m4: New file, from coreutils.
12652
12653 2005-05-17  Jim Meyering  <jim@meyering.net>
12654
12655         * lib/fts.c, lib/fts_.h: New files, from coreutils.
12656
12657 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12658
12659         Sync from coreutils.
12660         * m4/unlinkdir.m4: New file.
12661
12662 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12663
12664         Sync from coreutils.
12665         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
12666         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
12667         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
12668         White space changes only.
12669         * lib/makepath.c (make_path): Port to hosts where leading "//" is
12670         special.
12671         * lib/yesno.c: Include getline.h, not ctype.h.
12672         (yesno): Don't remove leading white space; POSIX doesn't allow it.
12673         Use getline to remove arbitrary restriction on response length.
12674
12675 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12676
12677         * config/srclist-update: Spell out "Street" in FSF postal
12678         mail address; this is the style the FSF seems to prefer.
12679
12680         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
12681         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
12682         this updates FSF postal mail address.
12683
12684         Sync from coreutils.
12685         * modules/unlinkdir: New file.
12686         * modules/yesno (Depends-on): Add getline.
12687         * MODULES.html.sh (File system functions): Add unlinkdir.
12688
12689 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12690
12691         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
12692         lib/strsep.h:
12693         Change the initial comment to refer to GPL, not LGPL.
12694         gnulib-tool will change it to LGPL as needed.
12695
12696         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
12697         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
12698         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
12699         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
12700         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
12701         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
12702         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
12703         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
12704         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
12705         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
12706         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
12707         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
12708         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
12709         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
12710         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
12711         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
12712         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
12713         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
12714         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
12715         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
12716         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
12717         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
12718         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
12719         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
12720         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
12721         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
12722         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
12723         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
12724         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
12725         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
12726         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
12727         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
12728         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
12729         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
12730         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
12731         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
12732         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
12733         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
12734         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
12735         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
12736         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
12737         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
12738         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
12739         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
12740         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
12741         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
12742         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
12743         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
12744         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
12745         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
12746         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
12747         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
12748         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
12749         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
12750         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
12751         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
12752         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
12753         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
12754         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
12755         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
12756         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
12757         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
12758         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
12759         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
12760         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
12761         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
12762         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
12763         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
12764         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
12765         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
12766         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
12767         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
12768         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
12769         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
12770         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
12771         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
12772         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
12773         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
12774         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
12775         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
12776         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
12777         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
12778         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
12779         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
12780         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
12781         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
12782         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
12783         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
12784         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
12785         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
12786         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
12787         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
12788         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
12789         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
12790         lib/yesno.c, lib/yesno.h:
12791         Update FSF postal mail address.
12792
12793 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12794
12795         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
12796         tests/test-memmem.c, tests/test-stpncpy.c:
12797         Update FSF postal mail address.
12798
12799 2005-05-13  Bruno Haible  <bruno@clisp.org>
12800
12801         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
12802         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
12803         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
12804         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
12805         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
12806         Add support for 64-bit integers in the MSVC compiler.
12807
12808 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12809
12810         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
12811
12812 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
12813
12814         * gnulib-tool (func_import): Sort and uniquify recommended includes.
12815
12816 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12817
12818         * doc/getdate.texi (General date syntax): Don't say that date
12819         date --iso-8601=ns generates acceptable dates; it doesn't yet.
12820         Problem reported by Nic Ferrier.
12821
12822 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12823
12824         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
12825         specified in ai_socktype. Fix invalid ai_protocol
12826         check. ai_protocol is usually set to 0 or depending on
12827         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
12828         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
12829         ai_socktype / ai_protocol in the returned addrinfo structure.
12830
12831 2005-05-10  Simon Josefsson  <jas@extundo.com>
12832
12833         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
12834         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12835
12836 2005-05-10  Karl Berry  <karl@gnu.org>
12837
12838         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
12839         (from http://www.gnu.org/licenses).
12840         * doc/COPYING.LIB: also rename to COPYING.LESSER.
12841         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
12842         fdl.texi suffices.
12843
12844 2005-05-10  Karl Berry  <karl@gnu.org>
12845
12846         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
12847         (COPYING.DOC): remove.
12848
12849         * config/srclist-update: new FSF address.
12850
12851 2005-05-10  Derek Price  <derek@ximbiot.com>
12852
12853         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
12854         possible.
12855
12856 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12857             Bruno Haible  <bruno@clisp.org>
12858
12859         * modules/inet_ntop: New file.
12860         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12861         inet_ntop.
12862
12863 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12864             Bruno Haible  <bruno@clisp.org>
12865
12866         * m4/inet_ntop.m4: New file.
12867
12868 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12869             Bruno Haible  <bruno@clisp.org>
12870
12871         * lib/inet_ntop.h: New file.
12872         * lib/inet_ntop.c: New file, from glibc with modifications.
12873
12874 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
12875
12876         * modules/time_r (License): Change to LGPL.
12877         * modules/extensions (License): Change to LGPL.  Actually,
12878         the license is more permissive than that, but currently gnulib-tool
12879         doesn't know how to handle more-permissive licenses.
12880
12881         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
12882         Problem reported by Dave Love.
12883
12884 2005-05-08  Jim Meyering  <jim@meyering.net>
12885
12886         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
12887         blank.
12888
12889 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
12890
12891         * modules/argmatch (Depends-on): Add stdbool.
12892         * modules/backupfile (Depends-on): Likewise.
12893         * modules/chdir-long (Depends-on): Likewise.
12894         * modules/closeout (Depends-on): Likewise.
12895         * modules/cycle-check (Depends-on): Likewise.
12896         * modules/dirname (Depends-on): Likewise.
12897         * modules/fnmatch (Depends-on): Likewise.
12898         * modules/fsusage (Depends-on): Likewise.
12899         * modules/fwriteerror (Depends-on): Likewise.
12900         * modules/getcwd (Depends-on): Likewise.
12901         * modules/getloadavg (Depends-on): Likewise.
12902         * modules/hard-locale (Depends-on): Likewise.
12903         * modules/makepath (Depends-on): Likewise.
12904         * modules/mountlist (Depends-on): Likewise.
12905         * modules/nanosleep (Depends-on): Likewise.
12906         * modules/posixtm (Depends-on): Likewise.
12907         * modules/quotearg (Depends-on): Likewise.
12908         * modules/readtokens (Depends-on): Likewise.
12909         * modules/readtokens0 (Depends-on): Likewise.
12910         * modules/readutmp (Depends-on): Likewise.
12911         * modules/save-cwd (Depends-on): Likewise.
12912         * modules/strftime (Depends-on): Likewise.
12913         * modules/userspec (Depends-on): Likewise.
12914         * modules/utimecmp (Depends-on): Likewise.
12915         * modules/xgetcwd (Depends-on): Likewise.
12916         * modules/xnanosleep (Depends-on): Likewise.
12917         * modules/xstrtod (Depends-on): Likewise.
12918         * modules/yesno (Depends-on): Likewise.
12919
12920 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12921
12922         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
12923         needless checks.
12924
12925 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12926
12927         Merge from coreutils.  Among other things,
12928         add bulletproofing for cases where stdin, stdout, or stderr are closed.
12929         * lib/fd-safer.c: New file.
12930         * lib/fcntl-safer.h, open-safer.c: Remove.
12931         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
12932         * lib/dup-safer.c: Include unistd-safer.h first.
12933         Don't include errno.h.
12934         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
12935         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
12936         * lib/file-type.c: Rely on file-type.h change.
12937         * lib/getloadavg.c: Include unistd-safer.h.
12938         (getloadavg): Use safer open.
12939         * lib/getusershell.c: Include "stdio-safer.h".
12940         (getusershell): Use safer fopen.
12941         * lib/long-options.c (long_options): Use NULL rather than 0.
12942         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
12943         'free'.
12944         * lib/modechange.c: Likewise.
12945         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
12946         (MODE_DONE): New constant.
12947         (struct mode_change): Remove 'next' member.
12948         (make_node_op_equals): New function; like the old one of the
12949         same name, except it allocates an array.
12950         (mode_compile, mode_create_from_ref): Use it.
12951         (mode_compile): Allocate result as an array, not a linked list.
12952         Parse octal string ourself, so that we catch mistakes like "+0".
12953         (mode_adjust): Arg is an array, not a linked list.
12954         * lib/modechange.c: Include stat-macros.h, xalloc.h.
12955         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
12956         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
12957         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
12958         Remove.  This is now stat-macros.h's job.
12959         (talloc): Remove.  All callers replaced by xalloc, so that
12960         our invokers don't have to worry about reporting memory failures.
12961         (make_node_op_equals): Remove.
12962         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12963         New constants.
12964         (struct mode_change): Moved here from modechange.h.
12965         (mode_append_entry): Remove.
12966         (mode_compile): Remove MASKED_OPS arg, since it encouraged
12967         apps to have incorrect behavior.  Use simpler algorithm for head
12968         and tail.  Don't futz with umask; that's now the job of mode_adjust.
12969         Detect more invalid usages rather than having somewhat-random behavior.
12970         Don't insert an "a=" action, as that leads to incorrect behavior.
12971         (mode_compile, mode_create_from_ref): Return NULL on error instead
12972         of an enum, since now there's only one way to have an error.  All
12973         callers changed.
12974         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
12975         at the correct time.  Simplify calculation of "+u" and its ilk.
12976         Don't mishandle "+X".
12977         (mode_free): Remove "register" and localize decls.
12978         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12979         (struct mode_change): Move to modechange.c; callers don't
12980         need to see this stuff.
12981         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
12982         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
12983         (mode_change, mode_adjust): Reflect the new signatures noted above.
12984         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
12985         that might redefine system include files.
12986         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
12987         (my_usleep): Use NULL rather than (void *) 0.
12988         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
12989         Use siginterrupt to specify that system calls should be interrupted.
12990         (rpl_nanosleep): Move initialization of suspended closer to call of
12991         my_usleep.
12992         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
12993         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
12994         (desirable_utmp_entry): New function.
12995         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
12996         using x2nrealloc, to simplify logic.
12997         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
12998         size calculation.  Do not assume utmp file is a regular file.
12999         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
13000         (READ_UTMP_CHECK_PIDS): New constant.
13001         * lib/save-cwd.c: Include unistd-safer.h.
13002         (save_cwd): Use fd_safer.
13003         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
13004         [!_LIBC] Include "stat-macros.h" instead.
13005         * lib/unistd-safer.h (fd_safer): New decl.
13006
13007 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13008
13009         * modules/getloadavg (Depends-on): Add unistd-safer.
13010         * modules/getusershell (Depends-on): Add stdio-safer.
13011         * modules/lstat (Depends-on): Remove xalloc.
13012         * modules/mkstemp (Depends-on): Add stat-macros.
13013         * modules/modechange (Depends-on): Remove xstrtol.
13014         Add stat-macros, xalloc.
13015         * modules/save-cwd (Depends-on): Add unistd-safer.
13016         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
13017         * modules/unistd-safer (Files): Add lib/fd-safer.c
13018         (Makefile.am): Remove lib_SOURCES.
13019
13020         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
13021         Remove fcntl-safer; unistd-safer supersedes it.
13022
13023 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13024
13025         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
13026         AC_HEADER_STAT.
13027         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
13028         (gl_PREREQ_CHOWN): Remove.
13029         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
13030         it.  Don't require AC_HEADER_STAT.
13031         (gl_PREREQ_LSTAT): Remove.
13032         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
13033         Don't require AC_HEADER_STAT.
13034         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
13035         (gl_PREREQ_RMDIR): Remove.
13036         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
13037         mention stat-macros.h or AC_HEADER_STAT, since we'll make
13038         the stat-macros module a prerequisite.
13039         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
13040         * m4/filemode.m4 (gl_FILEMODE): Likewise.
13041         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
13042         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
13043         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
13044         variable names.
13045         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
13046         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
13047         variable prefixes.
13048         * m4/fcntl-safer.m4: Remove.
13049         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
13050         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
13051         Invoke gl_PREREQ_FD_SAFER.
13052         (gl_PREREQ_FD_SAFER): New macro.
13053         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
13054         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
13055         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
13056         Remove duplicate call to AC_LIBOBJ(readutmp).
13057         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
13058
13059         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
13060         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
13061
13062 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13063
13064         * MODULES.html.sh (Misc): Add byteswap.
13065
13066 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13067
13068         * modules/getcwd (Depends-on): Add extensions.
13069         * modules/openat (Depends-on): Likewise.
13070
13071 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13072
13073         * modules/byteswap: New file.
13074
13075 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13076
13077         * m4/byteswap.m4: New file.
13078
13079 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13080
13081         * lib/byteswap_.h: New file.
13082
13083 2005-04-25  Karl Berry  <karl@gnu.org>
13084
13085         * m4/gettext.m4: Update from GNU gettext 0.14.4.
13086
13087 2005-04-25  Albert Chin  <china@thewrittenword.com>
13088
13089         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
13090         Toolkit C bug.
13091
13092 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
13093
13094         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
13095         (func_ln_if_changed) Remove forcibly for no error message
13096         in case file does not exist.
13097
13098 2005-04-19  Simon Josefsson  <jas@extundo.com>
13099
13100         * gnulib-tool (Options): Make --symlink mean --symbolic.
13101
13102 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
13103
13104         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
13105
13106 2005-04-16  Simon Josefsson  <jas@extundo.com>
13107
13108         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
13109
13110 2005-04-15  Simon Josefsson  <jas@extundo.com>
13111
13112         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
13113
13114 2005-04-15  Simon Josefsson  <jas@extundo.com>
13115
13116         * gnulib-tool: Rename --symlink to --symbolic.
13117
13118 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
13119
13120         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
13121         symbolic links to files instead of copying/moving.  Add --aux-dir,
13122         specifying directory relative --dir where auxiliary build tools
13123         are placed.
13124
13125 2005-04-14  Bruno Haible  <bruno@clisp.org>
13126
13127         * modules/allocsa (License): Change to LGPL.
13128         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13129
13130 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13131
13132         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
13133         that "UTC +1 second" continues to work.  Problem reported
13134         by Dmitry V. Levin.
13135         (relunit_snumber): New rule.
13136         (relunit): Use it.
13137
13138 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13139
13140         * lib/getdate.y (universal_time_zone_table): New constant.
13141         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
13142         universal_time_zone_table.
13143         (lookup_zone): Prefer universal_time_zone_table to
13144         local_time_zone_table, so that "GMT" time stamps are allowed in
13145         London during the summer.  Problem reported by Ian Abbott.
13146
13147 2005-04-12  Jim Meyering  <jim@meyering.net>
13148
13149         * lib/human.c (humblock): Set *options even when returning due to
13150         xstrtoumax conversion failure.  Thanks to a used-uninitialized
13151         warning from gcc-4.
13152
13153 2005-04-09  Jim Meyering  <jim@meyering.net>
13154
13155         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
13156         -Wuninitialized: initialize tm0.tm_year.
13157
13158 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13159
13160         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
13161         count, since there's no maximum.  All uses changed.
13162         Add member dsts_seen.
13163         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
13164         not being INT_MAX.
13165         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
13166         Use pc_rels_seen to decide whther a date is absolute.
13167
13168         * lib/getdate.y (number): Don't overwrite year.
13169         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
13170         check.
13171
13172 2005-04-02  Simon Josefsson  <jas@extundo.com>
13173
13174         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
13175         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
13176
13177 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
13178
13179         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
13180         where no absolute path name can be longer than PATH_MAX.
13181
13182 2005-03-27  Jim Meyering  <jim@meyering.net>
13183
13184         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
13185
13186 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
13187
13188         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
13189         "one's complement" -> "ones' complement" in comment, as per Knuth.
13190         "value of type" -> "type or expression" in comment.
13191         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
13192
13193 2005-03-26  Jim Meyering  <jim@meyering.net>
13194
13195         Comment nits.
13196         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
13197         Correct typos: s/or/of/.
13198
13199 2005-03-26  Jim Meyering  <jim@meyering.net>
13200
13201         * modules/check-include-files: Move to ../ and rename to...
13202         * check-module: ...this.
13203
13204 2005-03-25  Jim Meyering  <jim@meyering.net>
13205
13206         * modules/xvasprintf (Files): Add xalloc.h.
13207
13208 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
13209
13210         * modules/gettext (Files): config/config.rpath ->
13211         build-aux/config.rpath
13212         * modules/iconv (Files): Likewise.
13213         Problem reported by Oskar Liljeblad.
13214
13215 2005-03-23  Jim Meyering  <jim@meyering.net>
13216
13217         * modules/check-include-files: New script to check for
13218         missing dependencies, multiple includes, etc.
13219
13220         * modules/c-strtold (Depends-on): Add xalloc.
13221         * modules/c-strtod (Depends-on): Add xalloc.
13222         * modules/hash (Depends-on): Add xalloc.
13223         (Files): Remove lib/xalloc.h.
13224
13225         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
13226         * modules/userspec (Files): Add lib/inttostr.h.
13227
13228 2005-03-23  Jim Meyering  <jim@meyering.net>
13229
13230         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
13231
13232 2005-03-22  Jim Meyering  <jim@meyering.net>
13233
13234         * modules/stat-macros: New module.
13235         * modules/canonicalize, modules/euidaccess, modules/file-type,
13236         * modules/filemode, modules/lchown, modules/makepath,
13237         * modules/rmdir, modules/stat: Depend on new stat-macros module
13238         rather than listing lib/stat-macros.h manually.
13239         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
13240
13241 2005-03-22  Jim Meyering  <jim@meyering.net>
13242
13243         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
13244
13245 2005-03-22  Bruno Haible  <bruno@clisp.org>
13246
13247         * config/srclist.txt: Replace target directory 'config' with
13248         'build-aux'.
13249         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
13250         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
13251         ../build-aux/.
13252
13253 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13254
13255         * modules/chdir-long (Depends-on): Add mempcpy.
13256
13257         * modules/acl, modules/backupfile, modules/c-strtod,
13258         modules/c-strtold, modules/canon-host, modules/canonicalize,
13259         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
13260         modules/exclude, modules/exitfail, modules/file-type,
13261         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
13262         modules/getdate, modules/getline, modules/getpagesize,
13263         modules/getpass, modules/getugroups, modules/group-member,
13264         modules/hard-locale, modules/hash, modules/human, modules/idcache,
13265         modules/inttostr, modules/long-options, modules/makepath,
13266         modules/md5, modules/memcasecmp, modules/memcoll,
13267         modules/modechange, modules/mountlist, modules/path-concat,
13268         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
13269         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
13270         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
13271         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
13272         modules/strftime, modules/strndup, modules/strverscmp,
13273         modules/timespec, modules/unlocked-io, modules/userspec,
13274         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
13275         modules/yesno:
13276         Remove lib_SOURCES line from Makefile.am section, as this is now
13277         done automatically by the corresponding Autoconf macro.
13278
13279 2005-03-21  Jim Meyering  <jim@meyering.net>
13280
13281         Changes imported from coreutils.
13282
13283         * lib/cycle-check.c: Don't include xalloc.h.
13284
13285         * lib/path-concat.c: Don't include assert.h.
13286         (path_concat): Remove assertion that would have triggered
13287         for ABASE starting with more than one slash.
13288         Reported by Andreas Schwab.
13289
13290         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
13291         properly when ABASE is an absolute file name.
13292         Correct the description of this function.
13293         Include <assert.h>.
13294         Add an assertion and a test driver.
13295         This fixes a bug introduced on 2004-07-02.
13296         Andreas Schwab reported the resulting failure of cp --parents:
13297         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
13298
13299 2005-03-21  Jim Meyering  <jim@meyering.net>
13300
13301         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
13302         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
13303
13304 2005-03-21  Jim Meyering  <jim@meyering.net>
13305         and  Paul Eggert  <eggert@cs.ucla.edu>
13306
13307         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
13308         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
13309         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
13310         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
13311         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
13312         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
13313         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
13314         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
13315         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
13316         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
13317         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
13318         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
13319         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
13320         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
13321         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
13322         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
13323         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
13324         for these modules.
13325
13326 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
13327
13328         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
13329         (which shouldn't happen), generate nothing instead of returning 0
13330         immediately, so that nstrftime (NULL, ...) doesn't return 0.
13331
13332 2005-03-16  Bruno Haible  <bruno@clisp.org>
13333
13334         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
13335         HAVE_LONGLONG_64BIT.
13336
13337 2005-03-16  Bruno Haible  <bruno@clisp.org>
13338
13339         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
13340         HAVE_LONGLONG_64BIT.
13341
13342 2005-03-16  Bruno Haible  <bruno@clisp.org>
13343
13344         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
13345         HAVE_LONGLONG_64BIT.
13346
13347 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
13348
13349         * lib/strftime.c (my_strftime): Prepend space to format so that we can
13350         reliably distinguish strftime failure from empty output on POSIX
13351         hosts.
13352
13353 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
13354
13355         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
13356         (iconv_string): Don't guess a size-zero buffer, as that might cause
13357         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
13358         result would be 'too large', where 'too large' is (heuristically)
13359         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
13360         overflow concerns.  This will prevent some unwanted malloc failures
13361         when the inputs are very large.
13362
13363 2005-03-15  Karl Berry  <karl@gnu.org>
13364
13365         * config/srclist.txt (config.rpath): from gettext.
13366         * config/config.rpath: update.
13367
13368 2005-03-15  Bruno Haible  <bruno@clisp.org>
13369
13370         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
13371         to 'negate'.
13372
13373         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
13374         variable.
13375
13376         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
13377         results.
13378
13379 2005-03-14  Simon Josefsson  <jas@extundo.com>
13380
13381         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
13382         <fx@gnu.org>.
13383
13384 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
13385
13386         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
13387         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
13388         intprops.h.
13389         * lib/strtol.c: Likewise.
13390
13391 2005-03-14  Jim Meyering  <jim@meyering.net>
13392
13393         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
13394         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
13395         to be nonzero so that we (and caller) can detect the difference
13396         between a valid zero-length expansion and an error return, even
13397         when the underlying strftime fails before writing anything into
13398         that location.
13399
13400 2005-03-14  Bruno Haible  <bruno@clisp.org>
13401
13402         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
13403         Update from GNU gettext 0.14.3.
13404
13405 2005-03-10  Jim Meyering  <jim@meyering.net>
13406
13407         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
13408
13409 2005-03-10  Jim Meyering  <jim@meyering.net>
13410
13411         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
13412         so that this module works on systems without fchdir.
13413
13414 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
13415
13416         Factor int-properties macros into a single file, except for
13417         glibc-related files.
13418         * lib/intprops.h: New file.
13419         * lib/getloadavg.c: Include it instead of limits.h.
13420         (INT_STRLEN_BOUND): Remove.
13421         * lib/human.c: Include intprops.h.
13422         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
13423         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
13424         302/1000.
13425         * lib/inttostr.h: Include intprops.h instead of limits.h.
13426         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
13427         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
13428         for consistency with intprops.h.
13429         (time_t_is_integer, twos_complement_arithmetic): Use them.
13430         * lib/sig2str.h: Include <signal.h>, intprops.h.
13431         (INT_STRLEN_BOUND): Remove.
13432         * lib/strftime.c (TYPE_SIGNED): Remove.
13433         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
13434         * lib/strtol.c: Adjust comments to match intprops.h.
13435         * lib/userspec.c: Include intprops.h.
13436         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
13437         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
13438         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
13439         instead of rolling our own expressions.
13440         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
13441
13442         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
13443         instead of int.
13444         (my_strftime): Do not mishandle years close to INT_MAX, by doing
13445         the right thing even if adding 1900 would overflow.  Similarly
13446         for tm_mon + 1 and tm_yday + 1.
13447         Make %Y always equivalent to %C%y, and similarly for %G and %g.
13448         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
13449         (DO_SIGNED_NUMBER): New macro.
13450         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
13451
13452 2005-03-07  Bruno Haible  <bruno@clisp.org>
13453
13454         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
13455
13456 2005-03-07  Bruno Haible  <bruno@clisp.org>
13457
13458         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
13459
13460 2005-03-04  Derek R. Price  <derek@ximbiot.com>
13461
13462         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
13463         (func_import): Only replace files via --import when they have actually
13464         changed.
13465
13466 2005-03-03  Derek R. Price  <derek@ximbiot.com>
13467
13468         * m4/mmap-anon.m4: New file.
13469         * m4/pagealign_alloc.m4: New file.
13470
13471 2005-03-03  Derek R. Price  <derek@ximbiot.com>
13472             Bruno Haible  <bruno@clisp.org>
13473
13474         * modules/pagealign_alloc: New file.
13475         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
13476
13477 2005-03-03  Derek R. Price  <derek@ximbiot.com>
13478             Bruno Haible  <bruno@clisp.org>
13479
13480         * lib/pagealign_alloc.h: New file.
13481         * lib/pagealign_alloc.c: New file.
13482
13483 2005-03-03  Bruno Haible  <bruno@clisp.org>
13484
13485         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
13486         Use an all-permissive copyright notice, recommended by RMS.
13487
13488 2005-03-02  Bruno Haible  <bruno@clisp.org>
13489
13490         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
13491         of AIX, the replacement has to be done only after <string.h> is
13492         included, therefore not in config.h. stpncpy.h does the replacement,
13493         and stpncpy.c uses it.
13494
13495 2005-03-02  Bruno Haible  <bruno@clisp.org>
13496
13497         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
13498         stpncpy.c uses it.
13499
13500 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13501
13502         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
13503         The workaround isn't strictly needed for POSIX conformance, and
13504         it's too much of a pain to configure and maintain.  We'll ask
13505         people to fix their kernels instead.
13506         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
13507         (NANOSLEEP_BUG_WORKAROUND): Remove.
13508         (xnanosleep): Remove the workaround.
13509
13510 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13511
13512         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
13513         Reported by Derek Price.
13514         (Include): Add "timespec.h".
13515
13516         * modules/xnanosleep (Depends-on): Remove gethrxtime.
13517
13518 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13519
13520         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
13521         to detect nanosleep bug.
13522
13523 2005-03-01  Bruno Haible  <bruno@clisp.org>
13524
13525         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
13526
13527 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
13528
13529         * modules/gethrxtime: New file.
13530         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
13531         (Depends-on): Add gethrxtime.
13532         (configure.ac): Add gl_XNANOSLEEP.
13533         (Makefile.am): Remove lib_SOURCES line.
13534
13535 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13536
13537         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
13538         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
13539
13540 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13541
13542         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
13543         * lib/timespec.h (gettime): Return void, since it always
13544         succeeds now.  All uses changed.
13545         * lib/gettime.c (gettime) Likewise.
13546         [HAVE_NANOTIME]: Prefer nanotime.
13547         Assume gettimeofday succeeds, as POSIX requires.
13548         Assime time () succeeds, since other code already does.
13549         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
13550         (timespec_subtract): Remove.
13551         (NANOSLEEP_BUG_WORKAROUND): New constant.
13552         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
13553         things considerably.  Use it only on GNU/Linux hosts, since the
13554         workaround shouldn't be needed elsewhere.
13555
13556 2005-02-24  Bruno Haible  <bruno@clisp.org>
13557
13558         * modules/gettext (Files): Add m4/glibc2.m4.
13559
13560 2005-02-24  Bruno Haible  <bruno@clisp.org>
13561
13562         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
13563         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
13564         * m4/progtest.m4:
13565         Update from GNU gettext 0.14.2.
13566         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
13567
13568 2005-02-24  Bruno Haible  <bruno@clisp.org>
13569
13570         * lib/localcharset.c: Update from GNU gettext 0.14.2.
13571         * lib/config.charset: Update from GNU gettext 0.14.2.
13572
13573 2005-02-24  Bruno Haible  <bruno@clisp.org>
13574
13575         * lib/gettext.h: Update from GNU gettext 0.14.2.
13576
13577 2005-02-23  Simon Josefsson  <jas@extundo.com>
13578
13579         * m4/iconvme.m4: New file.
13580
13581 2005-02-23  Jim Meyering  <jim@meyering.net>
13582
13583         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
13584         change.
13585         Thanks to Bruno Haible for catching it.
13586
13587 2005-02-22  Simon Josefsson  <jas@extundo.com>
13588
13589         * modules/iconvme: New file.
13590
13591         * MODULES.html.sh: Add iconvme.
13592
13593 2005-02-22  Simon Josefsson  <jas@extundo.com>
13594
13595         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
13596
13597 2005-02-22  Simon Josefsson  <jas@extundo.com>
13598
13599         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
13600
13601 2005-02-22  Jim Meyering  <jim@meyering.net>
13602
13603         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
13604         s/ifndef/ifdef/.
13605
13606 2005-02-20  Neil Conway  <neilc@samurai.com>
13607
13608         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
13609         returned by OSX/Darwin if the specified buffer is not large
13610         enough for the hostname.
13611
13612 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13613
13614         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
13615         pass it to _help, otherwise the latter coredumps trying to
13616         dereference state.root_argp.
13617
13618 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13619
13620         * modules/chdir-long (Depends-on): Add memrchr.
13621         * modules/memrchr (Files): Add lib/memrchr.h.
13622         (Include): "memrchr.h".
13623
13624 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13625
13626         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
13627
13628 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13629
13630         * lib/memrchr.h: New file.
13631         * lib/chdir-long.c: Include it.
13632         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
13633         Don't bother including stddef.h.
13634
13635 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
13636
13637         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
13638         inclusion.
13639         Include <sys/types.h>, for dev_t.
13640         (ME_DUMMY, ME_REMOTE): Move from here....
13641         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
13642         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
13643         Dmitry V. Levin.
13644         Include mountlist.h first, to test the interface.
13645
13646 2005-01-29  Bruno Haible  <bruno@clisp.org>
13647
13648         * lib/progname.c (program_name): Initialize.
13649         Needed when linking statically on MacOS X.
13650
13651 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13652
13653         Sync from coreutils.
13654         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
13655         (Depends-on): Add c-strtod.
13656         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
13657
13658 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13659
13660         Sync from coreutils.
13661         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
13662
13663         Remove files that are specific to coreutils.
13664         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
13665
13666 2005-01-28  Bruno Haible  <bruno@clisp.org>
13667
13668         * modules/javacomp: New file.
13669         * MODULES.html.sh (Java): Add javacomp.
13670
13671 2005-01-28  Bruno Haible  <bruno@clisp.org>
13672
13673         * m4/javacomp.m4: New file, from GNU gettext.
13674
13675 2005-01-28  Bruno Haible  <bruno@clisp.org>
13676
13677         * lib/javacomp.sh.in: New file, from GNU gettext.
13678         * lib/javacomp.h: New file, from GNU gettext.
13679         * lib/javacomp.c: New file, from GNU gettext.
13680
13681 2005-01-26  Simon Josefsson  <jas@extundo.com>
13682
13683         * lib/gai_strerror.c: Use GPL in header.
13684
13685 2005-01-26  Bruno Haible  <bruno@clisp.org>
13686
13687         * modules/javaexec: New file.
13688         * MODULES.html.sh (Java): Add javaexec.
13689
13690 2005-01-26  Bruno Haible  <bruno@clisp.org>
13691
13692         * m4/javaexec.m4: New file, from GNU gettext.
13693
13694 2005-01-26  Bruno Haible  <bruno@clisp.org>
13695
13696         * lib/javaexec.sh.in: New file, from GNU gettext.
13697         * lib/javaexec.h: New file, from GNU gettext.
13698         * lib/javaexec.c: New file, from GNU gettext.
13699
13700 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13701
13702         * modules/lchown (Depends-on): Remove lchown.h
13703
13704 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13705
13706         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
13707         must be defined if the header file was not found, in order
13708         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
13709
13710 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13711
13712         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
13713         initializers for struct pentry_state.
13714         (__argp_error): Check return value of __asprintf
13715         (__argp_failure): Translate error message
13716
13717         * lib/argp-parse.c: Removed braces around the expansion of N_()
13718
13719 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13720
13721         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
13722         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
13723         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
13724         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
13725         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
13726         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
13727         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
13728         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
13729         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
13730         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
13731         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
13732         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
13733         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
13734         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
13735         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
13736         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
13737         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
13738         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
13739         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
13740         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
13741         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
13742         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
13743         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
13744         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
13745         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
13746         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
13747         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
13748         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
13749         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
13750         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
13751         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
13752         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
13753         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
13754         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
13755         xstrtol.m4, xstrtoumax.m4, yesno.m4:
13756         Use an all-permissive copyright notice, recommended by RMS.
13757
13758 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13759
13760         * modules/chdir-long (Depends-on): Remove mempcpy.
13761
13762 2005-01-21  Jim Meyering  <jim@meyering.net>
13763
13764         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
13765         same value as for Solaris 9.
13766
13767         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
13768         component length.  This included changing the parameter to be
13769         of type `char *' rather than `char const *'.
13770         * lib/chdir-long.h (chdir_long): Update prototype.
13771
13772         * lib/openat.c (fdopendir, fstatat): New functions.
13773         * lib/openat.h: Include headers required for use of DIR and struct
13774         stat.
13775         [AT_SYMLINK_NOFOLLOW]: Define.
13776         (fdopendir, fstatat): Add prototypes.
13777
13778 2005-01-21  Bruno Haible  <bruno@clisp.org>
13779
13780         * modules/classpath: New file.
13781         * MODULES.html.sh (Java): Add classpath.
13782
13783 2005-01-21  Bruno Haible  <bruno@clisp.org>
13784
13785         * lib/classpath.h: New file, from GNU gettext.
13786         * lib/classpath.c: New file, from GNU gettext.
13787
13788 2005-01-20  Simon Josefsson  <jas@extundo.com>
13789
13790         * modules/version-etc-fsf: New file.
13791
13792 2005-01-20  Simon Josefsson  <jas@extundo.com>
13793
13794         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
13795         * lib/version-etc.c: Remove version_etc_copyright.
13796         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
13797         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
13798
13799 2005-01-20  Simon Josefsson  <jas@extundo.com>
13800
13801         * lib/base64.h (isbase64): Add.
13802
13803         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
13804         using a unsigned prototype, don't inline.
13805         (base64_decode): Use it.
13806
13807 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13808
13809         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
13810         it.
13811
13812 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13813
13814         * lib/save-cwd.c (save_cwd): Remove code to support the case
13815         where fchdir is missing or flaky.
13816
13817 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13818
13819         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
13820
13821 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13822
13823         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
13824         AC_LIBSOURCES now does this.
13825         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
13826         with new ullong_max module.
13827
13828 2005-01-19  Bruno Haible  <bruno@clisp.org>
13829
13830         * modules/sh-quote: New file.
13831         * MODULES.html.sh (Executing programs): Add sh-quote.
13832
13833 2005-01-19  Bruno Haible  <bruno@clisp.org>
13834
13835         * lib/sh-quote.h: New file, from GNU gettext.
13836         * lib/sh-quote.c: New file, from GNU gettext.
13837
13838 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13839
13840         Merge from coreutils.
13841         * m4/ullong_max.m4: New file.
13842         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
13843         (gl_MACROS): Assume localeconv exists.
13844
13845 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13846
13847         Merge changes from coreutils, as described below in several
13848         changelogs dated today.
13849
13850         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
13851         (O_DIRECTORY): Remove; not needed here, since "." must be
13852         a directory.  All uses removed.
13853         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
13854         universal on Suns, and we also need to test for IRIX.
13855         Revamp code to use 'if' rather than '#if'.
13856         Avoid unnecessary comparison of cwd->desc to 0.
13857
13858         * lib/utimens.c (futimens): Robustify the previous patch, by checking
13859         for known valid error numbers rather than observed invalid ones.
13860
13861 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13862
13863         * modules/ullong_max: New file.
13864
13865         * modules/chdir-long, modules/openat: New files.
13866         * modules/save-cwd (Depends-on): Depend on chdir-long.
13867         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
13868
13869 2005-01-18  Jim Meyering  <jim@meyering.net>
13870
13871         Merge from coreutils.
13872         * m4/chdir-long.m4, m4/openat.m4: New files.
13873         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
13874         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
13875         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
13876         is sane and DOES follow symlinks.  Besides, testing 20 different
13877         systems found no broken chown implementations.
13878         Prompted by a change in rsync's copy of this macro.
13879         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
13880
13881         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
13882
13883         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
13884         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
13885         NULL-means-set-to-current-time semantics.
13886         Remove temporary file immediately, rather than waiting
13887         for configure's at-exit trap code to do it.
13888
13889 2005-01-18  Jim Meyering  <jim@meyering.net>
13890
13891         * lib/version-etc.c (version_etc_copyright): Update copyright date.
13892
13893         * lib/utimens.c (futimens): Account for the fact that futimes
13894         can also fail with errno == ENOSYS or errno == ENOENT.
13895         Patch from Dmitry V. Levin.
13896
13897         Change the name of the robust chdir function from chdir to chdir_long.
13898         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
13899         (restore_cwd): Use chdir_long, not chdir.
13900         * lib/chdir-long.c: Renamed from chdir.c.
13901         * lib/chdir-long.h: Renamed from chdir.h.
13902         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
13903         Hurd.
13904
13905 2005-01-18  Bruno Haible  <bruno@clisp.org>
13906
13907         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
13908         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
13909         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
13910         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
13911         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
13912         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
13913         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
13914         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
13915         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
13916         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
13917         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
13918         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
13919         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
13920         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
13921         Use an all-permissive copyright notice, recommended by RMS.
13922
13923 2005-01-18  Bob Proulx  <bob@proulx.com>
13924
13925         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
13926         simplify offsetof() macro construct to avoid compile failure with
13927         native HP-UX 11.0 ANSI C compiler.
13928
13929 2005-01-17  Bruno Haible  <bruno@clisp.org>
13930
13931         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
13932         redundant because stpncpy.m4 takes care of it.
13933
13934 2005-01-17  Bruno Haible  <bruno@clisp.org>
13935
13936         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
13937
13938 2005-01-17  Bruno Haible  <bruno@clisp.org>
13939
13940         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
13941         used.
13942
13943 2005-01-17  Bruno Haible  <bruno@clisp.org>
13944
13945         * lib/fwriteerror.h (fwriteerror): Change specification to include
13946         fclose.
13947         * lib/fwriteerror.c: Include <stdbool.h>.
13948         (fwriteerror): At the end, close the file stream. Record whether
13949         stdout was already closed.
13950
13951 2005-01-17  Bruno Haible  <bruno@clisp.org>
13952
13953         * lib/execute.c (environ): Declare if needed.
13954         * lib/pipe.c (environ): Likewise.
13955         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
13956
13957 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13958
13959         * modules/argp: Depend on vsnprintf
13960
13961 2005-01-10  Jim Meyering  <jim@meyering.net>
13962
13963         * modules/closeout (Depends-on): Add atexit.
13964
13965 2005-01-06  Bruno Haible  <bruno@clisp.org>
13966
13967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
13968
13969 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13970
13971         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
13972         definitions to be after all include files, to avoid collisions.
13973         Problem reported by Bob Proulx.
13974
13975 2005-01-04  Jim Meyering  <jim@meyering.net>
13976
13977         Changes imported from coreutils.
13978         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
13979         as the mkstemp template, use a temporary directory and an
13980         8.3-friendly template to avoid trouble on systems like DJGPP.
13981         Reported by Juan M. Guerrero via Stepan Kasal.
13982         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
13983         close. Remove the temporary directory right away, rather than waiting
13984         for configure's at-exit trap code to do it.
13985         Suggestion from Stepan Kasal.
13986
13987 2005-01-01  Simon Josefsson  <jas@extundo.com>
13988
13989         * gnulib-tool: Print #include directives when --import'ing.
13990
13991 2004-12-28  Simon Josefsson  <jas@extundo.com>
13992
13993         * tests/test-base64.c: Include required header files.  Remove
13994         unused variables.
13995
13996 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13997
13998         * modules/error (Depends-on): Remove gettext.
13999
14000 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14001
14002         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
14003         not needed.  This removes a dependency on the gettext module.
14004         [defined _LIBC]: Do not include <libintl.h>; not needed.
14005
14006 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14007
14008         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
14009         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
14010
14011 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14012
14013         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
14014         HAVE_DECL_STRTOLD.
14015
14016 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14017
14018         * modules/getdate (Depends-on): Remove alloca-opt.
14019
14020 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14021
14022         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
14023
14024 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14025
14026         * lib/argp-parse.c: Include <stddef.h>.
14027         (alignof, alignto): New macros.
14028         (parser_init): Don't assume that void * is aligned sufficiently
14029         for struct option.
14030
14031         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
14032         need to extend the stack.
14033         (YYINITDEPTH): New macro, so that the initial stack isn't overly
14034         large.
14035
14036 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14037
14038         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
14039
14040 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14041
14042         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
14043         (2004-10-24) change.  Apparently this was a false alarm.
14044
14045         * modules/getdate: Depend on alloca-opt, not alloca.
14046
14047 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14048
14049         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
14050         Remove now-obsolete comment about AIX.
14051         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
14052         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
14053         (YYMAXDEPTH): New macro.
14054
14055 2004-12-18  Simon Josefsson  <jas@extundo.com>
14056
14057         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
14058
14059 2004-12-18  Bruno Haible  <bruno@clisp.org>
14060
14061         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
14062
14063 2004-12-18  Bruno Haible  <bruno@clisp.org>
14064
14065         * lib/fatal-signal.c (fatal_signals): Make non-const.
14066         (init_fatal_signals): New function.
14067         (uninstall_handlers, install_handlers): Ignore signals that were set to
14068         SIG_IGN.
14069         (at_fatal_signal): Call init_fatal_signals.
14070         (init_fatal_signal_set): Likewise. Ignore signals that were set to
14071         SIG_IGN.
14072         Reported by Paul Eggert.
14073
14074 2004-12-18  Bruno Haible  <bruno@clisp.org>
14075
14076         * doc/alloca.texi: New file.
14077         * doc/alloca-opt.texi: New file.
14078
14079 2004-12-17  Jim Meyering  <jim@meyering.net>
14080
14081         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
14082         Otherwise, install-sh could exit with improper exit status when
14083         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
14084
14085 2004-12-16  Simon Josefsson  <jas@extundo.com>
14086
14087         * tests/test-base64.c: Add license.
14088
14089 2004-12-15  Stepan Kasal  <address@hidden>
14090
14091         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
14092
14093 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
14094
14095         * modules/getcwd (Files): Add m4/d-ino.m4.
14096         Suggested by Mark D. Baushke.
14097
14098 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14099
14100         * lib/getdate.y (textint): New member "negative".
14101         (time_zone_hhmm): New function.
14102         Expect 14 shift-reduce conflicts, not 13.
14103         (o_colon_minutes): New rule.
14104         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
14105         (yylex): Set the "negative" member of signed numbers.
14106
14107 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14108
14109         * doc/getdate.texi (Time of day items, Time zone items):
14110         Describe new formats +00:00, UTC+00:00.
14111
14112 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14113
14114         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
14115         spurious "-l"s.  Problem reported by Stepan Kasal.
14116
14117 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
14118
14119         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
14120         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
14121
14122 2004-12-04  Simon Josefsson  <jas@extundo.com>
14123
14124         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
14125         Vandoorselaere <yoann@prelude-ids.org>.
14126
14127 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14128
14129         Changes imported from coreutils.
14130         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
14131         exist.
14132         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
14133
14134 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14135
14136         Changes imported from coreutils.
14137         * lib/hard-locale.c: Assume <locale.h> exists.
14138         Include "strdup.h".
14139         (GLIBC_VERSION): New macro.
14140         (hard_locale): Assume setlocale exists.
14141         Rewrite to avoid #ifdef.
14142         Use strdup rather than malloc + strcpy.
14143         * lib/human.c: Assume <locale.h> exists.
14144         (human_readable): Assume localeconv exists.
14145
14146 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14147
14148         * modules/hard-locale (Depends-on): Add strdup.
14149
14150 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
14151
14152         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
14153         convert T2, not T.  (Imported from libc.)
14154
14155 2004-11-30  Simon Josefsson  <jas@extundo.com>
14156
14157         * modules/restrict (License): Change to LGPL.
14158
14159 2004-11-30  Simon Josefsson  <jas@extundo.com>
14160
14161         * m4/restrict.m4: Add copyright and copying conditions.
14162
14163 2004-11-30  Simon Josefsson  <jas@extundo.com>
14164
14165         * m4/base64.m4: New file.
14166
14167 2004-11-30  Simon Josefsson  <jas@extundo.com>
14168
14169         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
14170         base64.
14171
14172         * tests/test-base64.c: New file.
14173
14174         * modules/base64: New file.
14175
14176 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14177
14178         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
14179         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
14180
14181         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
14182
14183 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14184
14185         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
14186         (__getcwd.c): Don't restore errno; glibc doesn't.
14187         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
14188         first, falling back to our code only if its results look suspicious.
14189         Ensure that the resulting buffer is only as large as necessary.
14190
14191         * lib/readutmp.c: Include readutmp.h first.
14192         Include <errno.h>, since readutmp.h no longer does that.
14193         * lib/readutmp.h: Don't include <errno.h>,
14194         <sys/param.h>, <time.h>; not needed to establish interface.
14195         (errno): Remove decl.
14196         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
14197         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
14198         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
14199
14200 2004-11-28  Simon Josefsson  <jas@extundo.com>
14201
14202         * lib/base64.h, base64.c: New file.
14203
14204 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14205
14206         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
14207
14208 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14209
14210         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
14211         (Depends-on): Remove pathmax, same.  Add mempcpy.
14212         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
14213         (Makefile.am): Append getcwd.h to lib_SOURCES.
14214         (Include): Add getcwd.h.
14215         (Maintainer): Change from Jim Meyering to "all, glibc",
14216         since getdate now uses intended-for-glibc code.
14217         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
14218         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
14219
14220 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14221
14222         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
14223         HP's ANSI C compiler.
14224         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
14225         Declaring int functions causes warnings on some modern systems and
14226         shouldn't be needed to compile on ancient ones.
14227         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
14228         defined.
14229
14230         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
14231         with the following changes.
14232         (__set_errno): Parenthesize properly.
14233         Include <stdbool.h>.
14234         (MIN, MAX, MATCHING_INO): New macros.
14235         (__getcwd): Define with prototype, not K&R form.
14236         Use heuristics to allocate default buffer on stack if possible.
14237         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
14238         behavior, and to avoid the PATH_MAX limit when computing
14239         ../../../../...
14240         Use MATCHING_INO to compare inode number to file.
14241         Check for arithmetic overflow in size calculations.
14242         Fix bug in reallocation of dot array that caused getcwd to fail
14243         on directories nested deeper than 75.
14244         Be more careful about saving errno on error.
14245         Do not use realloc; use only free+malloc, as this is a bit
14246         more flexible and avoids a needless copy operation.
14247         Do not inspect st_dev and st_ino for symbolic links; POSIX
14248         doesn't specify the latter.
14249         Check for closedir errors.
14250         Avoid needless casts.
14251         Use "#ifdef weak_alias" around weak_alias, to be like other
14252         glibc code.
14253         The following changes to getcwd.c have effect only when used in
14254         gnulib; they have no effect inside glibc proper.
14255         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
14256         as alloca isn't used.
14257         (alloca, __alloca): Likewise.
14258         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
14259         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14260         unconditionally, as gnulib assumes C89 or better.
14261         Do not include <sys/param.h>.
14262         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
14263         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
14264         better.
14265         (NULL) [!defined NULL]: Remove; we assume C89 or better.
14266         Include <dirent.h> in a way that is compatible with modern Autoconf.
14267         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
14268         New macros, if not already defined.
14269         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
14270         Use "_LIBC", not "defined _LIBC", for consistency.
14271         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
14272         a mempcpy module.
14273         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
14274         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
14275         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
14276         credit only to Jim Meyering and adjust the copyright dates.
14277         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
14278         <stdlib.h>, <unistd.h>, "pathmax.h".
14279         Instead, include "xgetcwd.h" (first) and "getcwd.h".
14280         (INITIAL_BUFFER_SIZE): Remove.
14281         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
14282
14283 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14284
14285         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
14286         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
14287         Use the _ONCE methods, for efficiency.
14288         Check for fcntl.h.  In test program, include <errno.h>
14289         and <fcntl.h> if available.  Remove old K&R cruft from
14290         test program.  Check for common errors in GNU/Linux,
14291         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
14292         don't do AC_LIBOBJ, as that's getcwd.m4's job.
14293         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
14294         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
14295         name accordingly.
14296         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
14297         accommodate new getcwd.c.
14298         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
14299         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
14300         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
14301         that's all we need now.
14302
14303 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14304
14305         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
14306         argp-parse.c depends on getopt internals, that means we should
14307         always use our getopt, to be on the safe side.
14308         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
14309         order not to spoil the result of an eventual previous invocation
14310         of gl_GETOPT_SUBSTITUTE.
14311
14312 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14313
14314         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
14315         redefinition warnings. To avoid them, include the defines
14316         in `#if !defined __need_getopt ... #endif'. The only place
14317         where __getopt_argv_const is used is in definitions
14318         of getopt_long and getopt_long_only below, which are as well
14319         protected by `#ifndef __need_getopt'.
14320         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
14321         __need_getopt after including <stdio.h> and <unistd.h> These
14322         headers might have defined it.
14323
14324 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14325
14326         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
14327
14328 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14329
14330         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
14331         (futimens): New function, which uses futimes if available.
14332         (futimens, utimens): Support timespec==NULL, with same semantics
14333         as utime and utimens.
14334         * lib/utimens.h (futimens): New decl.
14335
14336 2004-11-23  Jim Meyering  <jim@meyering.net>
14337
14338         * lib/getopt_.h: Remove trailing blanks.
14339
14340 2004-11-23  Jim Meyering  <jim@meyering.net>
14341
14342         * lib/__fpending.c: Add comment.
14343
14344 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
14345
14346         * modules/canonicalize (Depends-on): Add xreadlink.
14347         Problem reported by James Youngman.
14348
14349 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14350
14351         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
14352         New macros.
14353         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
14354         optopt): Use them instead of invoking ## directly; otherwise, the
14355         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
14356
14357 2004-11-19  Bruno Haible  <bruno@clisp.org>
14358
14359         * lib/strtok_r.c: Move comments from here...
14360         * lib/strtok_r.h: ... to here.
14361
14362 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14363
14364         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
14365         implementations that mishandle size_t overflow.
14366
14367 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14368
14369         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
14370         might fail.  Problem reported by Yoann Vandoorselaere.
14371         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
14372         implementations that mishandle size_t overflow.
14373
14374 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14375
14376         * modules/canon-host (Depends-on): Add strdup.
14377
14378 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14379
14380         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
14381
14382 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14383
14384         * lib/canon-host.c: Include "strdup.h".
14385         (canon_host): Use getaddrinfo if available, so that IPv6 works.
14386         Use strdup instead of malloc/strcpy to duplicate strings.
14387
14388         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
14389         (human_space_before_unit): New constant.
14390         * lib/human.c (human_readable): Support it.
14391
14392         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
14393         (xgetcwd): Set errno correctly when failing.
14394         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
14395         the failure is actually due to a PATH_MAX problem.
14396
14397         Further getopt changes to make it more likely that glibc will
14398         buy the changes back.
14399         * lib/getopt.c (POSIXLY_CORRECT): New constant.
14400         (getopt): Use it, so to preserve glibc semantic
14401         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
14402         when compiling for libc.
14403         * lib/getopt_.h (__getopt_argv_const): Bring it back.
14404         (getopt_long, getopt_long_only): Use it.
14405
14406         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
14407         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
14408         (getopt): Argv is now char * const *, as per standard.
14409         (_getopt_internal_r, _getopt_internal): Argv is now char **,
14410         not char *__getopt_argv_const *.
14411         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
14412         _getopt_long_only_r): Likewise.
14413         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
14414         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
14415         _getopt_long_r, _getopt_long_only_r): Likewise.
14416         * lib/getopt_.h (__getopt_argv_const): Remove.
14417         (getopt): Argv is now char * const *, as per standard.
14418
14419         * lib/getdate.y (tORDINAL): New token.
14420         (day, relunit): Allow it for relative times.
14421         (relative_time_table): Use tORDINAL for ordinals.
14422
14423 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14424
14425         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
14426         Document that "second" isn't allowed as an ordinal number.
14427
14428 2004-11-16  Jim Meyering  <jim@meyering.net>
14429
14430         * modules/closeout (Depends-on): Add fpending.
14431
14432 2004-11-15  Jim Meyering  <jim@meyering.net>
14433
14434         * lib/closeout.c: Include "__fpending.h" once again.
14435         Include <stdbool.h>.
14436         (close_stdout): Don't fail just because stdout was closed initially,
14437         since some programs don't write to stdout in the normal course of
14438         operation (other than --version and --help), and we don't want this
14439         function to make e.g. `touch file >&-' fail.
14440         But do fail if it was closed and someone has tried to write to it.
14441         E.g., `printf foo >&-' must fail.
14442
14443 2004-11-13  Jim Meyering  <jim@meyering.net>
14444
14445         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
14446
14447 2004-11-12  Simon Josefsson  <jas@extundo.com>
14448
14449         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
14450         small doc fix is still pending.
14451
14452 2004-11-11  Simon Josefsson  <jas@extundo.com>
14453
14454         * modules/strtok_r: New file.
14455
14456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14457         strtok_r.
14458
14459 2004-11-11  Simon Josefsson  <jas@extundo.com>
14460
14461         * m4/strtok_r.m4: New file.
14462
14463         * m4/getopt.m4: Replace opterr.
14464
14465 2004-11-11  Simon Josefsson  <jas@extundo.com>
14466
14467         * lib/strtok_r.h, strtok_r.c: New file.
14468
14469 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14470
14471         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
14472         of replacing opterr, getopt, etc.  This should handle the
14473         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
14474
14475 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14476
14477         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
14478         we can stop lying to compilers about the constness of argv when we
14479         are compiled outside glibc.
14480         (getopt, getopt_long, getopt_long_only): Use it.
14481         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
14482         _getopt_internal, getopt): Likewise.
14483         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
14484         _getopt_long_only_r): Likewise.
14485         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
14486         _getopt_long_r, _getopt_long_only_r): Likewise.
14487
14488         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
14489         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
14490         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
14491         the other external symbols.
14492         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
14493         declaration, since the above renaming now works around collisions.
14494
14495 2004-11-11  Jim Meyering  <jim@meyering.net>
14496
14497         * lib/linebreak.c: Remove trailing blanks.
14498         * lib/alloca_.h: Likewise.
14499         * lib/acosl.c: Likewise.
14500         * lib/euidaccess.c: Likewise.
14501         * lib/allocsa.h: Likewise.
14502
14503 2004-11-10  Simon Josefsson  <jas@extundo.com>
14504
14505         * m4/getaddrinfo.m4: New file.
14506
14507 2004-11-10  Simon Josefsson  <jas@extundo.com>
14508
14509         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
14510
14511 2004-11-10  Simon Josefsson  <jas@extundo.com>
14512
14513         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14514         getaddrinfo.
14515
14516         * modules/getaddrinfo: New file.
14517
14518 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
14519
14520         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
14521
14522 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
14523
14524         * lib/mktime.c (SHR): New macro, which is a portable
14525         substitute for >> that should work even on Crays.
14526         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
14527         Problem reported by Mark D. Baushke in
14528         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
14529         * lib/getdate.y (SHR): Likewise.
14530         (tm_diff): Use it.
14531         * lib/strftime.c (SHR): Likewise.
14532         (tm_diff): Use it.
14533         * lib/quotearg.c (struct quoting_options): Use unsigned int for
14534         quote_these_too, so that right shifts are well defined.  All uses
14535         changed.
14536
14537 2004-11-10  Jim Meyering  <jim@meyering.net>
14538
14539         Ensure that no close failure goes unreported.
14540         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
14541         return early when it seems there's nothing to flush.
14542         Don't include __fpending.h.
14543
14544 2004-11-10  Jim Meyering  <jim@meyering.net>
14545
14546         * modules/closeout (Depends-on): Remove fpending.
14547
14548 2004-11-10  Jim Meyering  <jim@meyering.net>
14549
14550         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
14551
14552 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14553
14554         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
14555         gl_FUNC_STRFTIME.
14556         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
14557         and AC_REQUIRE when possible, to avoid duplicate checks.
14558         Check for <wchar.h>.
14559
14560 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
14563
14564 2004-11-09  Bruno Haible  <bruno@clisp.org>
14565
14566         * m4/sockpfaf.m4: New file.
14567
14568 2004-11-05  Bruno Haible  <bruno@clisp.org>
14569
14570         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
14571         Reported by Mark D. Baushke <mdb@cvshome.org>.
14572
14573 2004-11-04  Bruno Haible  <bruno@clisp.org>
14574
14575         2004-09-11  Bruno Haible  <bruno@clisp.org>
14576                 * allocsa.valgrind: New file.
14577         2004-02-06  Bruno Haible  <bruno@clisp.org>
14578                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
14579                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
14580                 Reported by Christopher Seip <chris.seip@hp.com>.
14581
14582 2004-11-04  Bruno Haible  <bruno@clisp.org>
14583
14584         * modules/allocsa (Files): Add lib/allocsa.valgrind.
14585         (Makefile.am): Distribute it.
14586
14587 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14588
14589         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
14590         with errno == ERANGE if the buffer is too small.
14591         Problem reported by Mark D. Baushke.
14592
14593 2004-11-03  Albert Chin  <china@thewrittenword.com>
14594             Paul Eggert  <eggert@cs.ucla.edu>
14595
14596         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
14597         equivalent, substitute $ac_type for equivalent type rather than
14598         blindly using uint32_t *always* which won't work if uint32_t is not
14599         available.  Define _UINT32_T to work around typedef of uint32_t if
14600         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
14601         2.5.1.
14602
14603 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14604
14605         * m4/jm-macros.m4: Sync from coreutils.
14606         (gl_MACROS): Check for mbrlen, for pathchk.
14607         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
14608
14609 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14610
14611         * lib/xreadlink.c (MAXSIZE): New macro.
14612         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
14613         size does not exceed MAXSIZE.  Avoid cast.
14614         As suggested by Mark D. Baushke in
14615         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
14616         if readlink fails with buffer size just under MAXSIZE, try again
14617         with MAXSIZE.
14618
14619 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14620
14621         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
14622
14623 2004-11-02  Derek R. Price  <derek@ximbiot.com>
14624         and  Paul Eggert  <eggert@cs.ucla.edu>
14625
14626         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
14627         (get_date): Overparenthesize to avoid GCC warning.
14628
14629 2004-11-02  Bruno Haible  <bruno@clisp.org>
14630
14631         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
14632         returns void.
14633
14634 2004-11-02  Bruno Haible  <bruno@clisp.org>
14635
14636         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
14637         function returns void.
14638
14639 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
14640
14641         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
14642         fflush_unlocked, flockfile, funlockfile, funlockfile,
14643         fputs_unlocked, putc_unlocked.
14644
14645 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
14646
14647         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
14648         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
14649         already declared.
14650
14651 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
14652
14653         * modules/getdate (Files): Add doc/getdate.texi.
14654         (Depends-on): Add setenv, xalloc.
14655
14656 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
14657
14658         * lib/getdate.y: Add support for TZ="foo" within a date string.
14659         Fix some bugs near time_t boundaries.  Reject dates with
14660         out-of-range components, e.g., "Sept 31".
14661         Include <stdlib.h>, "setenv.h", "xalloc.h".
14662         (ISDIGIT_LOCALE): Remove; unused.
14663         Note that the TZ and time functions used here are not reentrant.
14664         (mktime_ok, get_tz): New functions.
14665         (TZBUFSIZE): New constant.
14666         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
14667         This requires that we sometimes generate our own TZ="XXX..." setting.
14668
14669 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
14670
14671         * doc/getdate.texi: New file, from coreutils with modifications for
14672         the new TZ parsing.
14673
14674 2004-10-27  Derek R. Price  <derek@ximbiot.com>
14675
14676         * lib/mktime.c (not_equal_tm): Remove redundant check.
14677
14678 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14679
14680         * modules/regex (lib_SOURCES): Add regex.c.
14681         Reported by James Youngman in
14682         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
14683
14684 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14685
14686         * lib/getdate.y: Use Bison 1.875 features, and some minor
14687         code cleanups.  This change does not affect semantics.
14688         Don't include <stdlib.h>; no longer needed.
14689         Don't include unlocked-io.h; only the "#if TEST" code uses
14690         stdio, and performance isn't crucial there.
14691         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
14692         Bison 1.875 features as described below.
14693         All uses of "PC." replaced by "pc->".
14694         (YYSTYPE): Add a forward declaration.
14695         (yylex, yyerror): Use full prototypes in forward decls.
14696         Use "%pure-parser" rather than obsolescent "%pure_parser".
14697         Use %parse-param and %lex-param instead of obsolescent
14698         YYPARSE_PARAM and YYLEX_PARAM.
14699         (meridian_table, month_and_day_table, time_units_table,
14700         relative_time_table, time_zone_table, military_table,
14701         lookup_zone, lookup_word, get_date):
14702         Use NULL instead of 0 where appropriate.
14703         (to_hour): Avoid abort (), to avoid a dependency on
14704         stdlib.h.
14705         (yyerror, yylex): Now accepts parser_control * arg.
14706         (main) [TEST]: Use '\0' rather than 0 for char.
14707
14708 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
14709
14710         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
14711
14712 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
14713
14714         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
14715         It's now the caller's responsibility to handle the case where
14716         !HAVE_GETPAGESIZE && !defined getpagesize.
14717
14718         * lib/mktime.c (leapyear): Arg is long int, not int.
14719
14720 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
14721
14722         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
14723
14724 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
14725
14726         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
14727         missing.  Problem reported by James Youngman.
14728
14729 2004-10-16  Simon Josefsson  <jas@extundo.com>
14730
14731         * gnulib-tool: Fix comments.  Fix parse problem.
14732         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
14733
14734 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14735
14736         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
14737         implementation of getopt_long.  Problem reported by Alexander Taler in:
14738         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
14739
14740 2004-10-15  Bruno Haible  <bruno@clisp.org>
14741
14742         * gnulib-tool: Untabify. Initialize supplied_libname.
14743         (func_usage): More homogenous output.
14744         (func_modules_transitive_closure, func_modules_to_filelist,
14745         func_emit_lib_Makefile_am): New functions.
14746         (func_import): New function, extracted from big case statement. Use
14747         func_get_license, func_modules_transitive_closure,
14748         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
14749         opt_lgpl. Don't use test -a, as it's not portable.
14750         (func_create_testdir): Use func_modules_transitive_closure,
14751         func_modules_to_filelist, func_emit_lib_Makefile_am.
14752
14753 2004-10-15  Bruno Haible  <bruno@clisp.org>
14754
14755         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
14756
14757 2004-10-15  Bruno Haible  <bruno@clisp.org>
14758
14759         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
14760         the portions belonging to each module.
14761         Suggested by Derek Robert Price <derek@ximbiot.com>.
14762
14763 2004-10-12  Simon Josefsson  <jas@extundo.com>
14764
14765         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
14766         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
14767         to real functions.
14768
14769 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14770
14771         * modules/vsnprintf: New file.
14772
14773 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14774
14775         * m4/vsnprintf.m4: New file.
14776
14777 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14778
14779         * lib/vsnprintf.h: New file.
14780         * lib/vsnprintf.c: New file.
14781
14782 2004-10-11  Bruno Haible  <bruno@clisp.org>
14783
14784         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
14785         vsnprintf.
14786
14787 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14788
14789         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
14790
14791 2004-10-07  Bruno Haible  <bruno@clisp.org>
14792
14793         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
14794         fits into the provided buffer.
14795
14796 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14797
14798         * lib/diacrit.c, diacrit.h: Add GPL notice.
14799
14800         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
14801         notice.
14802         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
14803         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
14804         This avoids a potential constant-folding bug.
14805
14806 2004-10-05  Bruno Haible  <bruno@clisp.org>
14807
14808         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
14809         for the declaration of strsep.
14810
14811 2004-10-05  Bruno Haible  <bruno@clisp.org>
14812
14813         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
14814
14815 2004-10-04  Simon Josefsson  <jas@extundo.com>
14816
14817         * modules/memmem: New file.
14818         * tests/test-memmem.c: New file.
14819         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
14820
14821 2004-10-04  Simon Josefsson  <jas@extundo.com>
14822
14823         * m4/memmem.m4: New file.
14824
14825 2004-10-04  Simon Josefsson  <jas@extundo.com>
14826
14827         * lib/memmem.h: New file.
14828         * lib/memmem.c: New file, taken from glibc.
14829
14830 2004-10-04  Simon Josefsson  <jas@extundo.com>
14831
14832         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
14833         '#ifdef USE_UNLOCKED_IO'.
14834
14835 2004-10-04  Simon Josefsson  <jas@extundo.com>
14836
14837         * config/srclist.txt: Add memmem from glibc.
14838
14839 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14840
14841         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
14842
14843         * modules/argmatch, modules/argp, modules/closeout, modules/error,
14844         modules/exclude, modules/getdate, modules/getline,
14845         modules/getndelim2, modules/getpass, modules/getpass-gnu,
14846         modules/getusershell, modules/linebuffer, modules/md5,
14847         modules/mountlist, modules/posixtm, modules/readtokens,
14848         modules/readutmp, modules/regex, modules/sha1,
14849         modules/version-etc, modules/yesno:
14850         Remove dependency on unlocked-io.
14851
14852 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14853
14854         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
14855
14856         * m4/unlocked-io.m4: Add copyright notice.
14857         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
14858
14859 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
14862         * lib/xmalloc.c (xmemdup): Likewise.
14863         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
14864         XFREE): Remove these long-obsolescent macros.
14865         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
14866         * lib/xstrdup.c: Remove.
14867
14868         * lib/regex.c (re_comp): Cast gettext return value to char *,
14869         Problem reported by Martin Neitzel via Mark D. Baushke.
14870
14871 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14872
14873         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
14874         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
14875         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
14876         regex.c, sha1.c, version-etc.c, yesno.c:
14877         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
14878         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
14879         the includer's responsibility.
14880
14881         Sync from coreutils.
14882
14883         * lib/modechange.c (mode_compile): Don't decrement a pointer that
14884         points to the start of a string, as the C Standard says the
14885         resulting behavior is undefined.
14886
14887         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
14888         simple -> simple_backups, numbered_existing ->
14889         numbered_existing_backups, numbered -> numbered_backups
14890         to avoid shadowing problems.  All uses changed.
14891         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
14892         * lib/backupfile.c (check_extension, numbered_backup):
14893         Rename locals to avoid shadowing 'basename'.
14894         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
14895         once.
14896
14897         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
14898         * lib/.cvsignore: Add getopt.h.
14899
14900 2004-10-04  Bruno Haible  <bruno@clisp.org>
14901
14902         * modules/README: New file.
14903         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
14904         not a module.
14905
14906 2004-10-02  Jim Meyering  <jim@meyering.net>
14907
14908         * lib/dirfd.h, getpagesize.h: Add copyright notice.
14909
14910 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14911
14912         * modules/strsep: New file.
14913
14914 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14915
14916         * m4/strsep.m4: New file.
14917
14918 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14919
14920         * lib/strsep.h: New file.
14921         * lib/strsep.c: New file.
14922
14923 2004-10-01  Simon Josefsson  <jas@extundo.com>
14924
14925         * lib/snprintf.c (snprintf): Handle size==0.
14926
14927 2004-10-01  Simon Josefsson  <jas@extundo.com>
14928             Bruno Haible  <bruno@clisp.org>
14929
14930         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
14931         (snprintf): Declare 'args'.
14932
14933 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
14934
14935         * lib/snprintf.c: Remove comments as to why each header is needed.
14936
14937 2004-10-01  Bruno Haible  <bruno@clisp.org>
14938
14939         * MODULES.html.sh: Add strsep.
14940
14941 2004-09-30  Simon Josefsson  <jas@extundo.com>
14942
14943         * modules/snprintf: New file.
14944
14945 2004-09-30  Simon Josefsson  <jas@extundo.com>
14946
14947         * m4/snprintf.m4: New file.
14948
14949 2004-09-30  Simon Josefsson  <jas@extundo.com>
14950
14951         * lib/snprintf.h, lib/snprintf.c: New files.
14952
14953 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14954
14955         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
14956         (hol_entry_help): Never translate an empty string.
14957         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
14958         * lib/argp.h (OPTION_NO_TRANS): New option.
14959
14960 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14961
14962         * modules/argp (Maintainer): Replace Simon Josefsson
14963         by Sergey Poznyakoff.
14964
14965 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14966
14967         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
14968         changes merged back into glibc.
14969
14970 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14971
14972         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
14973
14974 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
14975
14976         * lib/xvasprintf.c: Include xalloc.h.
14977         (xvasprintf): Use xalloc_die, not xmalloc_die.
14978
14979 2004-09-29  Bruno Haible  <bruno@clisp.org>
14980
14981         * modules/alloca-opt: New file, derived from modules/alloca.
14982         * modules/allocsa: Depend on alloca-opt instead of alloca.
14983         * modules/setenv: Likewise.
14984         * modules/vasnprintf: Likewise.
14985         * MODULES.html.sh: Add alloca-opt.
14986
14987 2004-09-28  Simon Josefsson  <jas@extundo.com>
14988
14989         * gnulib-tool: New parameter --lgpl, to asseert that modules are
14990         LGPL, and to replace license template from GPL to LGPL.
14991
14992 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14993
14994         * modules/dummy: Change license to LGPL.
14995
14996 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14997
14998         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
14999
15000 2004-09-24  Simon Josefsson  <jas@extundo.com>
15001
15002         * modules/minmax (License): Change from GPL to LGPL.
15003
15004 2004-09-23  Simon Josefsson  <jas@extundo.com>
15005
15006         * gnulib-tool (--import): Typo.
15007
15008 2004-09-23  Simon Josefsson  <jas@extundo.com>
15009
15010         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
15011
15012 2004-09-22  Bruno Haible  <bruno@clisp.org>
15013
15014         * modules/*: Add 'License' field.
15015         * gnulib-tool: Accept --extract-license option.
15016         (func_get_license): New function.
15017
15018 2004-09-21  Bruno Haible  <bruno@clisp.org>
15019
15020         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
15021         Reported by Simon Josefsson.
15022
15023 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15024
15025         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
15026         gl_AC_TYPE_LONG_LONG.
15027
15028 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15029
15030         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
15031
15032 2004-09-18  Simon Josefsson  <jas@extundo.com>
15033         and  Paul Eggert  <eggert@cs.ucla.edu>
15034
15035         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
15036         calls with autoreconf.  Define GL_LIB.
15037
15038 2004-09-14  Karl Berry  <karl@gnu.org>
15039
15040         * config/srclist.txt: unsync setenv.c, sigh.
15041
15042 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15043
15044         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
15045         Problem reported by Bruno Haible in:
15046         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
15047
15048 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15049
15050         * config/srclist.txt: Comment out argp-pvh.c.
15051
15052 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
15053
15054         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
15055         in case some system header has #define'd it.  Problem reported by
15056         Soeren D. Schulze in
15057         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
15058
15059 2004-09-09  Karl Berry  <karl@gnu.org>
15060
15061         * regex.[ch]: delete from the root.  These were supposed to be
15062                 synced with emacs cvs, but this has not happened for about
15063                 a year, and anyway nothing else uses emacs regex.[ch].
15064                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
15065                 lib/regex[.ch] is untouched.
15066
15067 2004-09-09  Bruno Haible  <bruno@clisp.org>
15068
15069         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
15070
15071 2004-09-09  Bruno Haible  <bruno@clisp.org>
15072
15073         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
15074         modifications.
15075         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
15076
15077 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15078
15079         * modules/xvasprintf: New file.
15080         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
15081
15082 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15083
15084         * lib/xvasprintf.h: New file.
15085         * lib/xvasprintf.c: New file.
15086         * lib/xasprintf.c: New file.
15087
15088 2004-09-08  Bruno Haible  <bruno@clisp.org>
15089
15090         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
15091
15092 2004-09-08  Bruno Haible  <bruno@clisp.org>
15093
15094         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
15095         length is > INT_MAX.
15096         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
15097         more.
15098
15099 2004-09-08  Bruno Haible  <bruno@clisp.org>
15100
15101         * lib/stdint_.h: New file, taken from GNU clisp.
15102
15103 2004-09-08  Bruno Haible  <bruno@clisp.org>
15104             Oskar Liljeblad  <oskar@osk.mine.nu>
15105
15106         * modules/stdint: New file.
15107         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
15108
15109 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15110
15111         Import from coreutils.
15112         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
15113         strings on unbounded length.  alloca's performance benefits aren't
15114         that important here.
15115         (V_STRDUP): Remove.
15116         (parse_with_separator): New function, with most of the internals
15117         of the old parse_user_spec.  Allow user to omit both user and group,
15118         for compatibility with FreeBSD.
15119         Clone only the user name, not the entire spec.
15120         Do not set *uid, *gid unless entirely successful.
15121         Avoid memory leak in some failing cases.
15122         Fix regression for USER.GROUP reported by Dmitry V. Levin in
15123         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
15124         (parse_user_spec): Rewrite to use parse_with_separator.
15125
15126 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15127
15128         * modules/userspec: Don't depend on alloca.
15129
15130 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15131
15132         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
15133
15134 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15135
15136         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
15137         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
15138         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
15139
15140 2004-08-16  Simon Josefsson  <jas@extundo.com>
15141
15142         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
15143         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
15144         Add --dry-run for --import.
15145         Let user provided command line parameters override configure.ac
15146         settings.
15147
15148 2004-08-12  Simon Josefsson  <jas@extundo.com>
15149
15150         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
15151         as discussed with Paul Eggert in threads rooted at
15152         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
15153         and
15154         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
15155         Before, the test was empty, and relied on ELIDE_CODE in source
15156         code.)
15157         (gl_PREREQ_GETOPT): New macro.
15158         (gl_GETOPT): Use them.
15159
15160 2004-08-12  Simon Josefsson  <jas@extundo.com>
15161
15162         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
15163         * lib/getopt_.h: Renamed from getopt.h.
15164
15165 2004-08-12  Simon Josefsson  <jas@extundo.com>
15166
15167         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
15168         Change default library name from libfoo to libgnu.
15169         Now, if you have a configure.ac that says:
15170                 gl_SOURCE_BASE(gl)
15171                 gl_M4_BASE(gl/m4)
15172                 gl_MODULES(error getopt etcetera)
15173                 gl_INIT
15174         you can import all you need by running:
15175                 ../gnulib/gnulib-tool --import
15176
15177         * modules/getopt (Files): Rename getopt.h to getopt_.h.
15178         (Makefile.am): Rewrite, use logic from argz.
15179         (Include): Use <getopt.h> instead of "getopt.h".
15180
15181 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15182
15183         * modules/argp (Files): Add m4/unlocked-io.m4.
15184         (Depends-on): Add extensions.
15185
15186 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15187
15188         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
15189         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
15190         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
15191         Check for program_invocation_name, program_invocation_short_name,
15192         flockfile, funlockfile, features.h, _getopt_long_only_r.
15193
15194 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15195
15196         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
15197         its complicated substitute.
15198         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
15199         and program_invocation_name.
15200         (__argp_basename) [!_LIBC]: Remove; the only use was
15201         replaced by its body.
15202         (__argp_short_program_name): Change condition from
15203         !defined __argp_short_program_name to
15204         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
15205         to match argp-namefrob.h.
15206         (__argp_failure): Don't assume strerror_r returns char *.
15207         * lib/argp-parse.c (N_): Define unconditionally.
15208         (argp_default_options): Fill out initializers with 0 to avoid
15209         gcc warnings.
15210
15211 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15212
15213         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
15214         getopt1.c.
15215
15216 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15217
15218         Merge from coreutils.
15219
15220         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
15221
15222         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
15223         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
15224
15225 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15226
15227         Merge from coreutils.
15228
15229         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
15230         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
15231         for Reliant Unix 5.43.
15232
15233         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
15234         (union fooround): Use uintmax_t, not long int.
15235         The rest is a merge from libc:
15236         [defined _LIBC]: Include <shlib-compat.h>.
15237         (_obstack) [defined _LIBC]: Remove after 2.3.4.
15238
15239         * lib/settime.c (settime): Recode to avoid warning with
15240         Sun Forte C 6U2.
15241
15242         * lib/strverscmp.c: Convert to UTF-8.
15243
15244 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15245
15246         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15247         m4/uintmax_t.m4.
15248
15249 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15250
15251         * modules/xalloc-die: New file.
15252         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
15253
15254         * modules/md5 (Files): Add m4/uint32_t.m4.
15255         * modules/sha1: Renamed from modules/sha.
15256         (Files):
15257         Rename lib/sha.h to lib/sha1.h.
15258         Rename lib/sha.c to lib/sha1.c.
15259         Rename m4/sha.m4 to m4/sha1.m4.
15260         (lib_SOURCES): Likewise.
15261         (configure.ac): Rename gl_SHA to gl_SHA1.
15262         (Include): sha.h -> sha1.h.
15263
15264 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15265
15266         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
15267         * m4/sha1.m4: Renamed from sha.m4.
15268         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
15269
15270 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15271
15272         * lib/obstack.h (obstack_empty_p):
15273         Don't assume that chunk->contents is suitably aligned.
15274         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
15275         Likewise. Problem reported by Benno in
15276         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
15277
15278         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
15279         readable.  This could be improved further but it'd take some work.
15280
15281 2004-08-08  Simon Josefsson  <jas@extundo.com>
15282
15283         * modules/xgethostname (Depends-on): Remove exit and error (not
15284         used).
15285
15286         * modules/getpass-gnu: Add getpass.h.
15287         (Depends-on): Add stdbool.
15288         * modules/getpass: Add getpass.h.
15289
15290 2004-08-08  Simon Josefsson  <jas@extundo.com>
15291
15292         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
15293         Check getpass declaration.
15294
15295 2004-08-08  Simon Josefsson  <jas@extundo.com>
15296
15297         * lib/xgethostname.c: Don't include error.h (not used).
15298
15299         * lib/getpass.h: Add.
15300         * lib/getpass.c: Include getpass.h first.
15301
15302 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
15303
15304         * lib/xalloc-die.c: New file.
15305         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
15306         All uses removed.
15307         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
15308         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
15309         xalloc-die.c.
15310         (_, N_, xalloc_die): Move to xalloc-die.c.
15311         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
15312         so that we needn't mess with xalloc_msg_memory_exhausted.
15313
15314         * lib/sha1.h: Renamed from sha.h.
15315         (SHA1_H): Renamed from _SHA_H.
15316         (sha1_ctx): Renamed from sha_ctx.
15317         (sha1_init_ctx): Renamed from sha_init_ctx.
15318         (sha1_process_block): Renamed from sha_process_block.
15319         (sha1_process_bytes): Renamed from sha_process_bytes.
15320         (sha1_finish_ctx): Renamed from sha_finish_ctx.
15321         (sha1_read_ctx): Renamed from sha_read_ctx.
15322         (sha1_stream): Renamed from sha_stream.
15323         (sha1_buffer): Renamed from sha_buffer.
15324         * lib/sha1.c: Likewise; renamed from sha.c.
15325         Do not include <sys/types.h>.
15326         Include <stddef.h> rather than <stdlib.h>.
15327
15328 2004-08-08  Bruno Haible  <bruno@clisp.org>
15329
15330         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
15331         FILESYSTEM_PREFIX_LEN.
15332         * lib/progreloc.c: Likewise.
15333         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
15334
15335 2004-08-06  Simon Josefsson  <jas@extundo.com>
15336
15337         * modules/progname (Depends-on): Don't depend on stdbool.
15338
15339 2004-08-06  Simon Josefsson  <jas@extundo.com>
15340
15341         * modules/getsubopt: New file.
15342         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15343         getsubopt.
15344
15345 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15346
15347         More merge from coreutils.
15348
15349         * m4/utimens.m4, m4/utimecmp.m4: New files.
15350         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
15351         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
15352         prereq.m4, sha.m4: Import changes from coreutils.
15353
15354 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15355
15356         More merge from coreutils.
15357         * modules/raise, modules/readtokens0, modules/utimens:
15358         * modules/utimecmp, module/xnanosleep: New files.
15359         * modules/strftime: Add lib/strftime.h.
15360         Change include from <time.h> to "strftime.h".
15361         * modules/yesno: Add lib/yesno.h.
15362         * modules/backupfile: Remove lib/addext.c.
15363         * modules/euidaccess: Add stat-macros.h.
15364         * modules/canonicalize, modules/euidaccess,
15365         modules/filemode, modules/lchown, modules/makepath,
15366         modules/rmdir, modules/stat: Likewise.
15367
15368 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15369
15370         Merge from tar.
15371         * lib/argp-help.c (make_hol, hol_append): Don't assume that
15372         SIZE_MAX is a valid preprocessor constant.
15373         (__argp_basename): Change from "#ifndef _LIBC"
15374         to "#ifndef __argp_short_program_name", so that
15375         we don't compile these functions for tar.
15376
15377         More merges from coreutils.
15378         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
15379         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
15380         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
15381         * lib/addext.c: Remove; no longer needed.
15382         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
15383         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
15384         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
15385         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
15386         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
15387         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
15388         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
15389         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
15390         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
15391         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15392         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
15393         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
15394         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
15395         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
15396         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
15397         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
15398         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
15399         Import changes from coreutils.
15400
15401 2004-08-05  Simon Josefsson  <jas@extundo.com>
15402
15403         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
15404
15405 2004-08-05  Simon Josefsson  <jas@extundo.com>
15406
15407         * m4/getsubopt.m4: New file.
15408
15409 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15410
15411         Merge from coreutils.
15412
15413         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
15414         * m4/getcwd-path-max.m4: New files.
15415
15416         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
15417         FILESYSTEM_PREFIX_LEN ->
15418         FILE_SYSTEM_PREFIX_LEN.
15419         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
15420         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
15421         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
15422         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
15423
15424         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
15425         prerequisite modules now handle the DOS stuff.
15426         Don't check for unistd.h.
15427
15428 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15429
15430         Merge from coreutils.
15431
15432         * lib/.gdb-history: Remove; this doesn't belong here.
15433
15434         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
15435         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
15436         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
15437         * lib/getcwd.c: New files.
15438
15439         * lib/dirname.h: Include <stdbool.h>.
15440         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
15441         for consistency with POSIX terminology.  All uses changed.
15442         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
15443         (strip_trailing_slashes): Use bool for booleans.
15444         * lib/stripslash.c (strip_trailing_slashes): Likewise.
15445
15446         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
15447         sometimes returns a positive errno value even when it succeeds.
15448         (print_errno_message) [!LIBC]: Fall back on strerror if
15449         __strerror_r fails.
15450
15451         * lib/path-concat.c (mempcpy): Don't define if a system header defines
15452         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
15453         (longest_relative_suffix): New function.
15454         (path_concat): Use it.  Assume first argument is not NULL.
15455         Port to DOS.  Omit redundant separators.
15456         Report an error instead of returning NULL.
15457         Use mempcpy instead of memcpy.
15458         (xpath_concat): Remove: not declared or used.
15459
15460         * lib/same.h: Include <stdbool.h>
15461         (same_name): Return bool, not int.
15462         * lib/same.c (same_name): Likewise.
15463         (errno): Don't declare; we assume C89 or better now.
15464
15465         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
15466         if not already defined.
15467
15468         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
15469         * lib/dup-safer.c (errno): Likewise.
15470
15471 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15472
15473         Merge from coreutils.
15474         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
15475         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
15476         * modules/path-concat: Don't depend on strdup.
15477
15478 2004-08-03  Simon Josefsson  <jas@extundo.com>
15479
15480         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
15481         * lib/progname.h: Don't include stdbool.h.
15482
15483 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
15484
15485         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
15486         * MODULES.html.sh (func_all_modules): Remove fatal.
15487
15488 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
15489
15490         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
15491
15492 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
15493
15494         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
15495         working.
15496
15497 2004-08-02  Simon Josefsson  <jas@extundo.com>
15498
15499         * lib/getsubopt.h: New file, with comments from Bruno Haible.
15500         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
15501         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
15502
15503 2004-08-01  Simon Josefsson  <jas@extundo.com>
15504
15505         * lib/xgetdomainname.c: Include stdlib.h, for free().
15506
15507 2004-07-19  Bruno Haible  <bruno@clisp.org>
15508
15509         * MODULES.html.sh (func_all_modules): Add dummy.
15510
15511 2004-07-16  Simon Josefsson  <jas@extundo.com>
15512
15513         * modules/dummy: New file.
15514
15515 2004-07-16  Simon Josefsson  <jas@extundo.com>
15516
15517         * lib/dummy.c: New file.
15518
15519 2004-07-16  Bruno Haible  <bruno@clisp.org>
15520
15521         * lib/backupfile.h: Add extern "C" for C++.
15522         * lib/closeout.h: Likewise.
15523         * lib/copy-file.h: Likewise.
15524         * lib/findprog.h: Likewise.
15525         * lib/full-write.h: Likewise.
15526         * lib/pathname.h: Likewise.
15527         * lib/progname.h: Likewise.
15528         * lib/stpcpy.h: Likewise.
15529         * lib/stpncpy.h: Likewise.
15530         * lib/strcase.h: Likewise.
15531         * lib/strstr.h: Likewise.
15532         * lib/xalloc.h: Likewise.
15533
15534         * lib/mbswidth.h: Add extern "C" for C++.
15535         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
15536
15537 2004-07-13  Robert Millan  <robertmh@gnu.org>
15538
15539         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
15540
15541 2004-07-09  Simon Josefsson  <jas@extundo.com>
15542
15543         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
15544         failed without this.)
15545
15546 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15547
15548         * modules/chown (Files): Add lib/fchown-stub.c, since
15549         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
15550
15551 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15552
15553         * lib/fchown-stub.c: New file.
15554
15555 2004-06-24  Jim Meyering  <jim@meyering.net>
15556
15557         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
15558
15559 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
15560
15561         * modules/argz: Omit "#include".
15562
15563         * MODULES.html.sh (func_all_modules): Add calloc, to match
15564         2004-06-01 addition of calloc module.
15565
15566 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
15567
15568         * m4/argz.m4: New file, which is autoupdated from libtool.
15569
15570 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
15571
15572         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
15573         libtool.
15574
15575 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
15576
15577         * config/srclist-update: Don't insist on "USA." before the
15578         close-comment, as libtool omits the period and puts the */ on a
15579         separate line.
15580         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
15581         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
15582
15583 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
15584
15585         * modules/argz: New file.
15586         * MODULES.html.sh (func_all_modules): Add argz.
15587
15588 2004-06-12  Jim Meyering  <jim@meyering.net>
15589         and  Paul Eggert  <eggert@cs.ucla.edu>
15590
15591         * modules/hash (Files): Add lib/xalloc.h.
15592         * modules/pipe (Depends-on): Add wait-process.
15593         * modules/stat (Depends-on): Add xalloc.
15594         * modules/userspec (Files): Add lib/userspec.h.
15595         * modules/xstrto
15596
15597         Upgrade from gettext-0.13.
15598         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
15599         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
15600         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
15601
15602 2004-06-10  Jim Meyering  <jim@meyering.net>
15603
15604         * lib/calloc.c: New file.
15605
15606 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
15607
15608         * lib/getdate.y (yylex): Allow space between sign and number.
15609         Problem reported by Dan Jacobson.
15610
15611 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
15612
15613         Merge from coreutils CVS.
15614
15615         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
15616         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
15617         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
15618         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
15619         xstrtol.m4: Fix copyright date and/or serial number.
15620
15621         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
15622         See if we need an fchown replacement.
15623         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
15624         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
15625         and use the replacement function if we detect either defect.
15626
15627         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
15628         gl_UTIMECMP.
15629
15630 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
15631         and  Jim Meyering  <jim@meyering.net>
15632
15633         Merge from coreutils CVS.
15634
15635         * lib/stat-macros.h: New file, with contents from file-type.h
15636         and coreutils' system.h.
15637         * lib/file-type.c: Include "stat-macros.h".
15638         * lib/file-type.h (file_type): Move all macro definitions to new file,
15639         stat-macros.h.
15640
15641         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
15642         Wrap old code with this conditional.
15643         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
15644         function that does not dereference symlinks.
15645         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
15646
15647         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
15648         dependency problems.
15649         (xreadlink): Accept new arg SIZE, for efficiency.
15650         All decls and uses changed.
15651         * lib/xreadlink.h: Include <stddef.h>, for size_t.
15652
15653         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
15654         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
15655
15656         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
15657         sysexits.h.
15658
15659 2004-06-01  Jim Meyering  <jim@meyering.net>
15660
15661         * m4/calloc.m4: New file.
15662
15663 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
15664
15665         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
15666         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
15667         Also, fix a typo in a diagnostic.
15668
15669 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
15670
15671         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
15672         or AC_FUNC_REALLOC.
15673
15674 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
15675
15676         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
15677         macros to be defined.
15678         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
15679         the allocator returns NULL because the requested size is zero.
15680
15681 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15682
15683         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
15684         var.  Add comment explaining why libc still defines it.  This
15685         merges the following patch from glibc:
15686         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
15687
15688 2004-05-20  Andreas Schwab  <schwab@suse.de>
15689
15690         * m4/free.m4: Replace free if it not known to work, not the other
15691         way round.
15692
15693 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15694
15695         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
15696         present in glibc since revision 1.1 of this file.
15697         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
15698         obstack_alignment_mask, obstack_alloc, obstack_base,
15699         obstack_blank, obstack_blank_fast, obstack_chunk_size,
15700         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
15701         obstack_grow0, obstack_init, obstack_int_grow,
15702         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
15703         obstack_next_free, obstack_object_size, obstack_ptr_grow,
15704         obstack_ptr_grow_fast, obstack_room): Remove declarations of
15705         nonexistent functions.
15706
15707 2004-05-18  Karl Berry  <karl@gnu.org>
15708
15709         * config/srclist.txt: break link for vasnprintf.c.
15710
15711 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15712
15713         Port obstack to the AS/400, where pointers are 16 bytes wide and
15714         you cannot cast an integer to a valid pointer.  This patch is
15715         currently waiting to be integrated into glibc; see
15716         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
15717
15718         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
15719         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
15720         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
15721         (struct obstack): temp member is now a union of a pointer and
15722         an integer, instead of an integer.  All integer uses changed.
15723         This does not affect the physical layout of struct obstack,
15724         except on hosts (like the AS/400) where the size or alignment of
15725         void * is greater than that of ptrdiff_t.
15726         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
15727         __STDC__)]: Store temporary in pointer member of union, not
15728         integer member.
15729         * lib/obstack.c: Include <stddef.h>, for offsetof.
15730         (struct fooalign): Remove; it doesn't need a name.
15731         (union fooround): Change double to long double, and add void *.
15732         (DEFAULT_ALIGNMENT): Use offsetof to compute.
15733         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
15734         not a macro.  Hence the values are always int; so remove all
15735         casts-to-int in uses.
15736
15737 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15738
15739         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
15740         we can get this patch merged into glibc.
15741
15742 2004-05-17  Derek R. Price  <derek@ximbiot.com>
15743             Paul Eggert  <eggert@cs.ucla.edu>
15744
15745         * m4/argp: Depend on alloca.
15746
15747 2004-05-17  Derek R. Price  <derek@ximbiot.com>
15748             Paul Eggert  <eggert@cs.ucla.edu>
15749
15750         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
15751         freecoding.
15752
15753 2004-05-17  Bruno Haible  <bruno@clisp.org>
15754
15755         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
15756         precision that consists of a '.' followed by an empty digit string.
15757         Patch by Tor Lillqvist <tml@iki.fi>.
15758
15759 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15760
15761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
15762         for backward compatibility with older code.  We need our own
15763         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
15764         it under some other name, and our alloca.h will define it.
15765
15766 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15767             Derek Price  <derek@ximbiot.com>
15768
15769         * lib/alloca.c: Include <alloca.h>, to get our interface.
15770         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
15771         include <alloca.h> first.  Use C89 prototype for alloca; this
15772         requires including <stddef.h> for size_t.  Use extern "C" if C++.
15773         Use #elif for simplicity, since we can assume C89 now.
15774         Don't try to source the system alloca.h since it will not be found
15775         and to prevent recursively including its replacement.
15776         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
15777         * lib/regex.c: Likewise.
15778
15779 2004-05-16  Derek Price  <derek@ximbiot.com>
15780             Paul Eggert  <eggert@cs.ucla.edu>
15781
15782         getline cleanup.  This changes the getndelim2 API: both order of
15783         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
15784         no delimiter).
15785
15786         * lib/getline.c: Don't include stddef.h or stdio.h, since our
15787         interface does that.
15788         (getline): Always use getdelim, so that we don't have two
15789         copies of this code.
15790         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
15791         if available.
15792         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
15793         (GETNDELIM2_MAXIMUM): New macro.
15794         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
15795         instead of the old practice of delim2==0.  All callers changed.
15796         Return -1 on overflow, instead of returning junk.
15797         Do not set *linesize unless allocation succeeds.
15798         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
15799         that we include sys/types.h.
15800         * lib/getnline.h: Likewise.
15801         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
15802         (getndelim2): Reorder arguments.
15803         * lib/getnline.c (getnline, getndelim):
15804         Don't discard the NMAX argument.
15805         (getnline): Invoke getndelim, to avoid code duplication.
15806         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
15807         of (size_t) -1 by callers of the getnline family.
15808
15809 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15810
15811         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
15812         Check for gettimeofday.
15813         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
15814         Check for settimeofday, stime.
15815
15816 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15817
15818         * lib/nanosleep.c (suspended): Change its type from int to
15819         sig_atomic_t volatile.
15820         (first_call): Make it private to rpl_nanosleep, and have it
15821         be zero initially as that's a bit faster.
15822         (my_usleep): Round up fractional times instead of truncating them,
15823         as this is the usual meaning for 'sleep'.
15824
15825         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
15826         doesn't work.
15827         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
15828         (ENOSYS): Define if not defined.
15829         (settime): Fall back on stime if it exists and settimeofday fails.
15830         But don't bother with fallbacks if a method fails with errno == EPERM.
15831
15832 2004-05-11  Jim Meyering  <jim@meyering.net>
15833
15834         Prior to this change, the save_cwd caller required read access to the
15835         current directory on most systems (ones with the fchdir function).
15836
15837         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
15838         fails, try write-only, and finally, resort to using xgetcwd.
15839
15840 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
15841
15842         * lib/obstack.c, obstack.h: Import changes from libc.
15843
15844 2004-04-28  Bruno Haible  <bruno@clisp.org>
15845
15846         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
15847         also implicitly appends .exe to executables.
15848         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
15849         accepts Windows pathnames.
15850         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
15851         Treat Cygwin like Windows, since it now accepts Windows pathnames.
15852         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
15853         Treat Cygwin like Windows, since it now accepts Windows pathnames.
15854         Reported by Derek Robert Price <derek@ximbiot.com>.
15855
15856 2004-04-21  Karl Berry  <karl@gnu.org>
15857
15858         * config/srclist.txt (localcharset.c): break sync.
15859
15860 2004-04-20  Paul Eggert  <eggert@twinsun.com>
15861
15862         * m4/host-os.m4: Add a copyright notice.
15863
15864 2004-04-20  Jim Meyering  <jim@meyering.net>
15865
15866         Change UTILS_ to gl_ in AC_DEFINE'd names.
15867         Change utils_- and jm_-prefixed variables, too.
15868         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
15869         UTILS_FUNC_MKDIR_TRAILING_SLASH.
15870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
15871
15872         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
15873         Don't emit trailing blanks.
15874         Also rename jm_-prefixed variables to have gl_ prefix.
15875
15876         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
15877         Also rename jm_-prefixed variables to have gl_ prefix.
15878
15879         * m4/jm-macros.m4: Reflect the renamings.
15880         * m4/prereq.m4: Likewise.
15881
15882 2004-04-20  Jim Meyering  <jim@meyering.net>
15883
15884         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
15885         memory.
15886
15887 2004-04-20  Jim Meyering  <jim@meyering.net>
15888             Bruno Haible  <bruno@clisp.org>
15889
15890         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
15891         memory when realloc fails.
15892
15893 2004-04-19  Jim Meyering  <jim@meyering.net>
15894
15895         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
15896         now that readutmp.c may call `free (0)'.
15897
15898 2004-04-19  Bruno Haible  <bruno@clisp.org>
15899
15900         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
15901         * m4/inttypes_h.m4: Likewise.
15902         * m4/stdint_h.m4: Likewise.
15903         * m4/intmax_t.m4: Likewise.
15904         * m4/uintmax_t.m4: Likewise.
15905
15906 2004-04-18  Jim Meyering  <jim@meyering.net>
15907
15908         * m4/prereq.m4: Don't forbid jm_ prefix.
15909
15910         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
15911         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
15912         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
15913         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
15914         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
15915         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
15916         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
15917         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
15918         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
15919         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
15920         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
15921         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
15922         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
15923         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
15924         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
15925         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
15926         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
15927         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
15928         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
15929
15930 2004-04-18  Jim Meyering  <jim@meyering.net>
15931
15932         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
15933         failure, don't leak memory and do call END_UTMP_ENT.
15934
15935 2004-04-16  Jim Meyering  <jim@meyering.net>
15936
15937         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
15938         coreutils' stat program.
15939         (gl_PREREQ): Don't require jm_PREREQ_STAT.
15940
15941 2004-04-11  Paul Eggert  <eggert@twinsun.com>
15942
15943         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
15944         C89.
15945         (CHAR_BIT): Remove, since we assume C89.
15946         Include <stdint.h> if available, as per current Autoconf CVS advice.
15947
15948 2004-03-31  Jim Meyering  <jim@meyering.net>
15949
15950         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
15951         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
15952         * m4/xalloc.m4: Likewise.
15953
15954 2004-03-30  Paul Eggert  <eggert@twinsun.com>
15955
15956         Merge from coreutils.
15957
15958         * m4/inttostr.m4: New file.
15959         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
15960         Require AM_STDBOOL_H and gl_TIMESPEC instead.
15961         Require gl_CLOCK_TIME.
15962         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
15963
15964 2004-03-30  Paul Eggert  <eggert@twinsun.com>
15965
15966         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
15967         not bool, to be more consistent with Unix conventions.
15968         Suggested by Bruno Haible.
15969
15970         Merge from coreutils.
15971
15972         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
15973         * lib/umaxtostr.c: New files.
15974
15975         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
15976         the usual <time.h> dance.
15977         (get_date): Change signature to support fractional time stamps.
15978         All callers changed.
15979         * lib/getdate.y: Include "getdate.h" first, as we can now
15980         assume C89 and don't need to worry about 'const'.
15981         Similarly, include "unlocked-io.h" near start, not in middle.
15982         Include <limits.h>.
15983         (textint.value): Use long int rather than int.
15984         (textint.digits): Use size_t rather than int.
15985         (BILLION, LOG10_BILLION): New constants.
15986         (parser_control): New member rel_ns.  Members day_ordinal,
15987         time_zone, month, day, hour, minutes, rel_year, rel_month,
15988         rel_day, rel_hour, rel_minutes, rel_seconds
15989         are now long int, not int.  Member seconds is now struct timespec,
15990         not int.  New member timespec_seen.  Members dates_seen, days_seen,
15991         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
15992         not int.
15993         (%union.intval): Now long int, not int.
15994         New member timespec.
15995         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
15996         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
15997         (spec): Now is a timespec or an item list.
15998         (timespec, items): New nonterminals.
15999         (time, rel, relunit, number, get_date):
16000         Add support for fractional seconds.
16001         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
16002         (gmtime, localtime, mktime): Remove decls; not needed with C89.
16003         (to_hour): First arg is now long int, not int.
16004         (to_year): Returns long int, not int.
16005         Don't treat year -70 like 70.
16006         (tm_diff): Returns long int, not int.
16007         (lookup_word): Use bool instead of int when appropriate.
16008         (yylex): Use size_t for count, not int.
16009         Detect overflow when parsing large integer constants.
16010         Add support for fractions.
16011         (get_date): Make pointers 'const' if possible.
16012         Use more-portable code to detect integer overflow.
16013         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
16014         Don't use ctime; it's not reliable if the year has >4 digits.
16015
16016         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
16017         This is for compatibility with BSD.
16018
16019         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
16020         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
16021         From coreutils' system.h.
16022
16023         * lib/userspec.c: Don't include "posixver.h".
16024         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
16025         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
16026         compatible extension.  Simplify code by removing a boolean int
16027         that was always nonzero if a string was nonnull.
16028
16029 2004-03-30  Jim Meyering  <jim@meyering.net>
16030
16031         Merge from coreutils.
16032
16033         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
16034         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
16035         on some systems one must include <grp.h> before it.
16036         Reported by Christian Krackowizer.
16037
16038 2004-03-30  Jim Meyering  <jim@meyering.net>
16039
16040         Merge from coreutils.
16041
16042         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
16043
16044         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
16045         an empty input stream.
16046
16047         * lib/readtokens.c: Include <stdbool.h>.
16048         (readtoken): Use `size_t' rather than int/long.
16049         All callers adjusted.
16050         Use `bool' rather than `int' where appropriate.
16051         Use memset rather than an explicit loop.
16052         Use x2nrealloc rather than xrealloc.
16053         Allow the use of `\0' as a delimiter.
16054         (readtokens): Likewise.
16055         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
16056
16057 2004-03-30  Jim Meyering  <jim@meyering.net>
16058
16059         * m4/realloc.m4: Remove file, since now it does no more than
16060         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
16061         the `configure.ac' section of module/realloc.
16062         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
16063
16064 2004-03-30  Bruno Haible  <bruno@clisp.org>
16065
16066         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
16067         nonnull.
16068
16069 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16070
16071         Merge changes to getloadavg.c from coreutils and Emacs.
16072
16073         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
16074         Define to an expression, not to the empty string.
16075         Include cloexec.h and xalloc.h.
16076         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
16077         Use set_cloexec_flag rather than rolling our own.
16078         * lib/cloexec.c, lib/cloexec.h: New files.
16079
16080 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16081
16082         * m4/cloexec.m4: New file.
16083
16084 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16085
16086         * lib/getopt.h: Sync with libc CVS.
16087
16088 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16089             Bruno Haible  <bruno@clisp.org>
16090
16091         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
16092         mbswidth.
16093
16094 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16095             Bruno Haible  <bruno@clisp.org>
16096
16097         * lib/mbswidth.h: Include <wchar.h> only if
16098         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
16099         <wchar.h>.
16100         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
16101
16102 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16103
16104         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
16105         Sync with libc CVS.
16106         * lib/getopt_int.h: New file, also synced from libc.
16107
16108 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16109
16110         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
16111         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
16112         Bring back getopt.c, getopt.h, getopt1.c.
16113
16114 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16115
16116         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
16117         All uses changed.  Check for sa_sigaction member; this fixes
16118         a bug first reported by Jason Andrade in
16119         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16120
16121 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16122
16123         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
16124         '#if' expressions.  Unlike the code it replaces, it does not
16125         depend on (defined _SC_PAGESIZE).  However, it does depend on
16126         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
16127         first reported by Jason Andrade in
16128         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16129
16130 2004-02-25  Simon Josefsson  <jas@extundo.com>
16131
16132         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
16133
16134 2004-02-25  Simon Josefsson  <jas@extundo.com>
16135
16136         * lib/strdup.h: New file.
16137         * lib/strdup.c: Include it.
16138         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
16139         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
16140
16141 2004-02-23  Karl Berry  <karl@gnu.org>
16142
16143         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
16144         (from fencepost.gnu.org:/gd/gnuorg).
16145
16146 2004-02-23  Karl Berry  <karl@gnu.org>
16147
16148         * config/srclistvars.sh (GNUORG) [karl]: redefine.
16149         * config/srclist.txt: add maintain/standards documents.
16150
16151 2004-02-18  Bruno Haible  <bruno@clisp.org>
16152
16153         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
16154         Reported by Derek Robert Price <derek@ximbiot.com>.
16155
16156 2004-02-16  Karl Berry  <karl@gnu.org>
16157
16158         * config/mkinstalldirs, install-sh: update from automake.
16159
16160 2004-02-06  Karl Berry  <karl@gnu.org>
16161
16162         * m4/po.m4: update from gettext 0.14.1.
16163
16164 2004-02-06  Karl Berry  <karl@gnu.org>
16165
16166         * lib/config.charset: update from gettext 0.14.1.
16167
16168 2004-02-05  Paul Eggert  <eggert@twinsun.com>
16169
16170         Add comments and code, prompted by suggestions from Bruno Haible
16171         for sh-quote.
16172         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
16173         describing the enum quoting_style values.
16174         * lib/quotearg.c (quotearg_alloc): New function.
16175         (quotearg_buffer_restyled): Treat lone { and } as special.
16176         Treat = as special.  Work around bug with older shells
16177         that "see" a '\' that is really the 2nd byte of a multibyte char.
16178         Quote empty string with shell_quoting_style.
16179
16180 2004-02-03  Bruno Haible  <bruno@clisp.org>
16181
16182         * m4/pipe.m4: New file, from GNU gettext.
16183
16184 2004-02-03  Bruno Haible  <bruno@clisp.org>
16185
16186         * lib/pipe.h: New file, from GNU gettext.
16187         * lib/pipe.c: New file, from GNU gettext.
16188
16189 2004-01-27  Bruno Haible  <bruno@clisp.org>
16190
16191         * m4/execute.m4: New file, from GNU gettext.
16192
16193 2004-01-27  Bruno Haible  <bruno@clisp.org>
16194
16195         * lib/execute.h: New file, from GNU gettext.
16196         * lib/execute.c: New file, from GNU gettext.
16197         * lib/w32spawn.h: New file, from GNU gettext.
16198
16199 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16200
16201         Merge from diffutils.
16202
16203         * lib/file-type.c (file_type): Add typed memory objects.
16204         * lib/file-type.h (S_TYPEISTMO): New macro.
16205
16206         * lib/c-stack.h (c_stack_action): Remove argv argument.
16207         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
16208         (die): Don't calculate message unless segv_action returns.
16209         (get_stack_location, min_address_from_argv, max_address_from_argv,
16210         volatile stack_base, volatile_stack_size): Remove.
16211         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
16212         that every segmentation violation is a stack overflow.  (Ouch!)
16213         See Debian bug 136249 (still outstanding) for more info about why
16214         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
16215
16216 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16217
16218         Exit-status fix from coreutils.
16219
16220         Use exit_failure consistently in place of EXIT_FAILURE,
16221         so that program exit statuses are consistent on failure.
16222
16223         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
16224         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
16225         * lib/argmatch.h: Comment fix to match the above.
16226         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
16227         Now a macro referring to exit_failure, instead of a separate
16228         variable.  Include "exitfail.h" to get it.
16229         * lib/xstrtol.h: Include "exitfail.h".
16230         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
16231
16232         * lib/long-options.c (parse_long_options): Use prototype
16233         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
16234         for clarity.
16235
16236 2004-01-21  Jim Meyering  <jim@meyering.net>
16237
16238         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
16239         so as not to conflict with a different-sized __mktime_internal
16240         function in GNU libc.
16241         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
16242         Problem building statically-linked `ls' reported by Michael Brunnbauer.
16243
16244 2004-01-20  Karl Berry  <karl@gnu.org>
16245
16246         * config/config.guess: update from config.
16247
16248         * config/srclistvars.sh: GNUWWWLICENSES for karl.
16249
16250 2004-01-20  Bruno Haible  <bruno@clisp.org>
16251
16252         Safer stack allocation.
16253         * lib/setenv.c: Include allocsa.h.
16254         (alloca): Remove fallback definition.
16255         (freea): Remove macro.
16256         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
16257         instead of freea.
16258
16259 2004-01-20  Bruno Haible  <bruno@clisp.org>
16260
16261         * m4/eealloc.m4: New file, from GNU gettext.
16262
16263 2004-01-20  Bruno Haible  <bruno@clisp.org>
16264
16265         * m4/allocsa.m4: New file, from GNU gettext.
16266
16267 2004-01-20  Bruno Haible  <bruno@clisp.org>
16268
16269         * lib/xallocsa.h: New file, from GNU gettext.
16270         * lib/xallocsa.c: New file, from GNU gettext.
16271
16272 2004-01-20  Bruno Haible  <bruno@clisp.org>
16273
16274         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
16275
16276 2004-01-20  Bruno Haible  <bruno@clisp.org>
16277
16278         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
16279         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
16280         specially.
16281
16282 2004-01-20  Bruno Haible  <bruno@clisp.org>
16283
16284         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
16285         patch.
16286
16287 2004-01-20  Bruno Haible  <bruno@clisp.org>
16288
16289         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
16290
16291 2004-01-20  Bruno Haible  <bruno@clisp.org>
16292
16293         * lib/eealloc.h: New file.
16294
16295 2004-01-20  Bruno Haible  <bruno@clisp.org>
16296
16297         * lib/binary-io.h: Avoid warnings on Cygwin.
16298
16299 2004-01-20  Bruno Haible  <bruno@clisp.org>
16300
16301         * lib/allocsa.h: New file, from GNU gettext.
16302         * lib/allocsa.c: New file, from GNU gettext.
16303
16304 2004-01-18  Karl Berry  <karl@gnu.org>
16305
16306         * doc/gpl.texi, doc/lgpl.texi: new files.
16307
16308 2004-01-18  Karl Berry  <karl@gnu.org>
16309
16310         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
16311         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
16312
16313 2004-01-15  Paul Eggert  <eggert@twinsun.com>
16314
16315         Merge from coreutils.
16316
16317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
16318         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
16319         (gl_DEFAULT_POSIX2_VERSION): Move
16320         the documentation from 'configure' into 'config.hin',
16321         so that 'configure --help' isn't burdened by it and
16322         we don't have to worry about its formatting there.
16323         Reword the documentation so that it's more succinct
16324         and can be run together into a single paragraph.
16325         * m4/same.m4 (gl_SAME): Check for pathconf.
16326
16327 2004-01-15  Paul Eggert  <eggert@twinsun.com>
16328
16329         Merge from coreutils.
16330
16331         * lib/posixver.c: Include posixver.h.
16332
16333         * lib/same.c: Include <stdbool.h>, <limits.h>.
16334         (_POSIX_NAME_MAX): Define if not defined.
16335         (MIN): New macro.
16336         (same_name): If file names are silently truncated, report
16337         that the file names are the same if they are the same after
16338         the silent truncation.
16339
16340         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
16341         conversion function.
16342         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
16343         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
16344         longer needed.
16345
16346 2004-01-15  Jim Meyering  <jim@meyering.net>
16347
16348         Merge from coreutils.
16349
16350         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
16351         if no library is required.
16352         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
16353         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
16354         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
16355         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
16356         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
16357         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
16358         value, $ac_cv_search_crypt, if it's "none required".
16359         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
16360         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
16361         not gl_FUNC_GETLOADAVG.
16362         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
16363         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
16364
16365 2004-01-15  Jim Meyering  <jim@meyering.net>
16366
16367         Merge from coreutils.
16368
16369         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
16370         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
16371         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
16372
16373         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
16374         optional configure-time default.
16375
16376         * lib/version-etc.c (version_etc_copyright): Update copyright date.
16377
16378         * lib/xreadlink.c (xreadlink): Correct outdated comment.
16379
16380 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
16381
16382         Merge from coreutils.
16383
16384         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
16385         value, $ac_cv_search_nanosleep, if it's "none required".
16386
16387 2004-01-14  Paul Eggert  <eggert@twinsun.com>
16388
16389         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
16390         with like-named macro in fnmatch.c.
16391         (EXT): Use an internal constant instead.
16392
16393         Merge fnmatch patches from glibc.
16394         * lib/fnmatch.c (mbsinit): Remove define.
16395         Add libc_hidden_ver (__fnmatch, fnmatch).
16396         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
16397         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
16398
16399 2004-01-14  Karl Berry  <karl@gnu.org>
16400
16401         * config/install-sh: update from automake.
16402
16403 2004-01-13  Karl Berry  <karl@gnu.org>
16404
16405         * config/install-sh: update from automake.
16406
16407 2004-01-09  Karl Berry  <karl@gnu.org>
16408
16409         * config/install-sh: update from automake.
16410
16411 2004-01-05  Karl Berry  <karl@gnu.org>
16412
16413         * config/config.{sub,guess}: update from config.
16414
16415 2003-12-31  Karl Berry  <karl@gnu.org>
16416
16417         * config/depcomp: update from automake.
16418
16419 2003-12-14  Karl Berry  <karl@gnu.org>
16420
16421         * lib/config.charset: update from gettext-runtime.
16422
16423 2003-12-03  Paul Eggert  <eggert@twinsun.com>
16424
16425         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
16426         Bug reported by Alfred M. Szmidt.
16427
16428 2003-12-03  Bruno Haible  <bruno@clisp.org>
16429
16430         * m4/gettext.m4: Upgrade from gettext-0.13.
16431         * m4/po.m4: Upgrade from gettext-0.13.
16432         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
16433         * m4/intmax.m4: New file, from gettext-0.13.
16434         * m4/printf-posix.m4: New file, from gettext-0.13.
16435
16436 2003-11-29  Karl Berry  <karl@gnu.org>
16437
16438         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
16439
16440 2003-11-25  Paul Eggert  <eggert@twinsun.com>
16441             Bruno Haible  <bruno@clisp.org>
16442
16443         * lib/printf-parse.h: Don't include sys/types.h.
16444         (ARG_NONE): New macro.
16445         (char_directive): Change type of *arg_index fields to size_t.
16446         * lib/printf-parse.c: Don't include sys/types.h.
16447         (SSIZE_MAX): Remove macro.
16448         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
16449         Remove unnecessary overflow check.
16450         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
16451         fields.
16452
16453 2003-11-25  Bruno Haible  <bruno@clisp.org>
16454
16455         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
16456
16457 2003-11-25  Bruno Haible  <bruno@clisp.org>
16458
16459         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
16460         gt_TYPE_SSIZE_T.
16461
16462 2003-11-24  Paul Eggert  <eggert@twinsun.com>
16463
16464         * modules/alloca: Remove dependency on xalloc.
16465
16466 2003-11-24  Paul Eggert  <eggert@twinsun.com>
16467
16468         * lib/alloca.c: Remove dependency on xalloc module.
16469         (xalloc_die): Remove.
16470         (memory_full) [!defined emacs]: New macro.
16471         [!defined emacs]: Don't include xalloc.h.
16472         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
16473         address arithmetic overflows.  Change datatypes a bit to avoid
16474         unnecessary casts.
16475
16476 2003-11-22  Jim Meyering  <jim@meyering.net>
16477
16478         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
16479         s/size/size_t/.
16480
16481 2003-11-21  Karl Berry  <karl@gnu.org>
16482
16483         * config/config.{sub,guess}: update from config.
16484
16485 2003-11-18  Karl Berry  <karl@gnu.org>
16486
16487         * config/config.{sub,guess}: update from config.
16488
16489         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
16490
16491 2003-11-17  Paul Eggert  <eggert@twinsun.com>
16492
16493         * README: Mention that S+T cannot overflow if S is the size of
16494         an existing object and T is sufficiently small.
16495
16496 2003-11-17  Jim Meyering  <jim@meyering.net>
16497
16498         On systems without utime and without a utimes function capable of
16499         dealing with a NULL struct utimbuf* argument, this utime replacement
16500         could -- in unusual circumstances -- leak a file descriptor.
16501         * lib/utime.c: Include <unistd.h> and <errno.h>.
16502         (utime_null): Be sure to close `fd' and to preserve errno.
16503         Reported by Geoff Collyer via Arnold Robbins.
16504
16505 2003-11-17  Bruno Haible  <bruno@clisp.org>
16506
16507         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
16508         (Depends-on): Add xsize.
16509
16510 2003-11-17  Bruno Haible  <bruno@clisp.org>
16511
16512         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
16513
16514 2003-11-17  Bruno Haible  <bruno@clisp.org>
16515
16516         * lib/vasnprintf.c (alloca): Remove fallback definition.
16517         (freea): Remove definition.
16518         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
16519         Reported by Paul Eggert.
16520
16521 2003-11-16  Paul Eggert  <eggert@twinsun.com>
16522             Bruno Haible  <bruno@clisp.org>
16523
16524         Protect against address arithmetic overflow.
16525         * lib/printf-args.h: Include stddef.h.
16526         (arguments): Change type of field 'count' to size_t.
16527         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
16528         'unsigned int' where appropriate.
16529         * lib/printf-parse.h: Include sys/types.h.
16530         (char_directive): Change type of *arg_index fields to ssize_t.
16531         (char_directives): Change type of fields 'count', max_*_length to
16532         size_t.
16533         * lib/printf-parse.c: Include sys/types.h and xsize.h.
16534         (SSIZE_MAX): Define fallback value.
16535         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
16536         instead of 'int' where appropriate. Check a_allocated, d_allocated
16537         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
16538         * lib/vasnprintf.c: Include xsize.h.
16539         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
16540         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
16541         overflow. Avoid wraparound when converting a width or precision from
16542         decimal to binary.
16543
16544 2003-11-16  Bruno Haible  <bruno@clisp.org>
16545
16546         Update from GNU gettext.
16547         * lib/printf-parse.c: Generalize to it can be compiled for wide
16548         strings.
16549         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
16550         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
16551         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
16552         SNPRINTF): New macros.
16553         Don't include <alloca.h> if the file is used inside libintl.
16554         (local_wcslen): New function, for Solaris 2.5.1.
16555         (VASNPRINTF): Use it instead of wcslen.
16556
16557 2003-11-16  Bruno Haible  <bruno@clisp.org>
16558
16559         * lib/xsize.h (xmax): New function.
16560         (xsum, xsum3, xsum4): Declare as "pure" functions.
16561
16562 2003-11-12  Paul Eggert  <eggert@twinsun.com>
16563
16564         * modules/xalloc (Files): Undo latest change, since xalloc.h
16565         no longer needs SIZE_MAX or PTRDIFF_MAX.
16566
16567 2003-11-12  Paul Eggert  <eggert@twinsun.com>
16568
16569         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
16570         gl_PTRDIFF_MAX.
16571
16572 2003-11-12  Paul Eggert  <eggert@twinsun.com>
16573
16574         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
16575         "return", to pacify some unknown compiler.  Problem reported
16576         by Joerg Schilling.
16577
16578 2003-11-12  Paul Eggert  <eggert@twinsun.com>
16579
16580         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
16581         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
16582         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
16583         heuristic is just as accurate as far as we know, and it removes a
16584         dependency on size_max.m4 and ptrdiff_max.m4.
16585
16586 2003-11-11  Bruno Haible  <bruno@clisp.org>
16587
16588         * modules/xsize (Files): Add m4/size_max.m4.
16589         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
16590
16591 2003-11-11  Bruno Haible  <bruno@clisp.org>
16592
16593         * m4/size_max.m4: New file.
16594         * m4/ptrdiff_max.m4: New file.
16595         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
16596         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
16597         (gl_XALLOC): Invoke it.
16598
16599 2003-11-11  Bruno Haible  <bruno@clisp.org>
16600
16601         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
16602         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
16603         defined.
16604
16605 2003-11-10  Paul Eggert  <eggert@twinsun.com>
16606
16607         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
16608         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
16609         rejected some allocations of exactly SIZE_MAX - 2 bytes.
16610         From Bruno Haible.
16611         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
16612         not (size_t) -1, since it's defined here.
16613
16614 2003-11-09  Karl Berry  <karl@gnu.org>
16615
16616         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
16617
16618 2003-11-06  Paul Eggert  <eggert@twinsun.com>
16619
16620         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
16621         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
16622         Reject sizes of exactly SIZE_MAX bytes.
16623         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
16624         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
16625
16626 2003-11-05  Bruno Haible  <bruno@clisp.org>
16627
16628         * lib/xsize.h: Include limits.h, to avoid a possible collision with
16629         SIZE_MAX defined in <limits.h> on Solaris.
16630
16631 2003-11-04  Jim Meyering  <jim@meyering.net>
16632
16633         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
16634         variable names, rather than @VAR@.
16635         * modules/poll: Likewise.
16636
16637 2003-11-04  Bruno Haible  <bruno@clisp.org>
16638
16639         * modules/xsize: New file.
16640         * modules/linebreak: Depend on xsize.
16641         * MODULES.html.sh (func_all_modules): Add xsize.
16642
16643 2003-11-04  Bruno Haible  <bruno@clisp.org>
16644
16645         * m4/xsize.m4: New file.
16646
16647 2003-11-04  Bruno Haible  <bruno@clisp.org>
16648
16649         * lib/xsize.h: New file.
16650         * lib/linebreak.c: Include xsize.h.
16651         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
16652         argument for overflow.
16653         Suggested by Paul Eggert.
16654
16655 2003-11-03  Karl Berry  <karl@gnu.org>
16656
16657         * config/config.{guess,sub}: update from config.
16658
16659 2003-11-03  Jim Meyering  <jim@meyering.net>
16660
16661         * modules/userspec (lib_SOURCES): Add userspec.h.
16662         (Include): Add "userspec.h".
16663         Improve description.
16664
16665 2003-11-03  Jim Meyering  <jim@meyering.net>
16666
16667         * lib/userspec.c: Include "userspec.h".
16668         * lib/userspec.h: New file.
16669
16670 2003-11-03  Bruno Haible  <bruno@clisp.org>
16671
16672         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
16673
16674 2003-11-03  Bruno Haible  <bruno@clisp.org>
16675
16676         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
16677         available, to avoid (extremely rare) race condition.
16678         Suggested by Paul Eggert.
16679
16680 2003-11-02  Karl Berry  <karl@gnu.org>
16681
16682         * config/srclist.txt (vasprintf.c): sync broken, sigh.
16683
16684 2003-10-31  Paul Eggert  <eggert@twinsun.com>
16685
16686         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
16687         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
16688         (read_filesystem_list): Set and use me_type_malloced.
16689         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
16690         whatever the type happens to be), for brevity and consistency.
16691         Check for size calculation overflow on Alphas running OSF/1.
16692
16693 2003-10-31  Jim Meyering  <jim@meyering.net>
16694
16695         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
16696
16697         * lib/linebuffer.c: Include <string.h> for declaration of memset.
16698
16699 2003-10-30  Paul Eggert  <eggert@twinsun.com>
16700             Bruno Haible  <bruno@clisp.org>
16701
16702         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
16703         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
16704
16705 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16706
16707         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
16708         netbsd*-gnu*.  Suggested by Robert Millan.
16709
16710 2003-10-29  Paul Eggert  <eggert@twinsun.com>
16711
16712         * modules/group-member: Depend on stdbool.
16713
16714 2003-10-29  Paul Eggert  <eggert@twinsun.com>
16715
16716         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
16717
16718 2003-10-29  Paul Eggert  <eggert@twinsun.com>
16719
16720         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
16721         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
16722         after the 'gnu' in these cases.  This fixes some bugs in the
16723         previous change, and is based on suggestions by Robert Millan.
16724
16725 2003-10-29  Paul Eggert  <eggert@twinsun.com>
16726
16727         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
16728         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
16729         no longer needed.
16730         * lib/quotearg.c (quotearg_n_options): Use it.
16731         * lib/group-member.c: Include <stdbool.h>.
16732         (free_group_info): Arg is now const *; don't free arg.
16733         (get_group_info): Now returns bool and accepts struct group_info *,
16734         rather than returning a malloc'ed struct group_info *.
16735         All uses changed.  Check for overflow in internal size calculation.
16736
16737         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
16738         rather than xmalloc/xrealloc.
16739         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
16740         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
16741         conformance bug: the old code used a pointer after freeing the
16742         storage that it addressed.
16743         * lib/hash.c (hash_initialize): Simplify the code by using
16744         xalloc_oversized rather than doing it by hand.
16745         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
16746         the buffer preserved.  Use free and xmalloc instead.
16747         * lib/quotearg.c (quotearg_n_options): Likewise.
16748         Use a simpler test for size overflow.  Don't use xalloc_oversized
16749         because unsigned int might be wider than size_t (!); this suggests
16750         that we should switch from unsigned int to size_t for slot numbers.
16751
16752 2003-10-28  Paul Eggert  <eggert@twinsun.com>
16753
16754         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
16755         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
16756         NetBSD kernels.  Requested by Richard Stallman.
16757
16758 2003-10-27  Paul Eggert  <eggert@twinsun.com>
16759
16760         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
16761         to allocate the returned structure.  Do not allocate a subarray,
16762         as x2nrealloc will do that.
16763         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
16764         instead of xnrealloc.
16765         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
16766
16767 2003-10-27  Bruno Haible  <bruno@clisp.org>
16768
16769         * lib/stdbool_.h: Better support for BeOS.
16770
16771 2003-10-26  Paul Eggert  <eggert@twinsun.com>
16772
16773         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
16774         now uses inline.
16775
16776 2003-10-26  Paul Eggert  <eggert@twinsun.com>
16777
16778         * lib/xalloc.h (xalloc_oversized): New static inline function, for
16779         callers that want to do their own size-overflow checking.  Include
16780         <stdbool.h>, since xalloc_oversized returns bool.
16781         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
16782         to use xalloc_oversized.
16783
16784         Add two functions x2realloc, x2nrealloc, for programs that grow
16785         arrays dynamically by doubling their sizes.
16786         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
16787         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
16788         New functions.
16789
16790         Port to C99 semantics for 'inline' of external functions.
16791         Bug reported by Bruno Haible.
16792         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
16793         with the old contents of xnmalloc.
16794         (xnmalloc, xmalloc): Use it.
16795         (xnrealloc_inline): New static inline function,
16796         with the old contents of xnrealloc.
16797         (xnrealloc, xrealloc): Use it.
16798
16799         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
16800         that.
16801
16802 2003-10-26  Karl Berry  <karl@gnu.org>
16803
16804         * config/srclist.txt (COPYING.DOC): no longer available from
16805         /gd/gnuorg; don't know where the ultimate source is.
16806
16807 2003-10-25  Paul Eggert  <eggert@twinsun.com>
16808
16809         Fix several address-calculation bugs in the hash modules,
16810         plus some minor code cleanup.
16811
16812         * lib/hash.h: Include <stdbool.h>, for bool.
16813         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
16814         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
16815         hash_get_n_entries, hash_get_max_bucket_length,
16816         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
16817         hash_rehash): Use size_t rather than unsigned.
16818         * lib/hash.c (struct hash_table, hash_get_n_buckets,
16819         hash_get_n_buckets_used, hash_get_n_entries,
16820         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
16821         hash_get_entries, hash_do_for_each, hash_string, is_prime,
16822         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
16823         Likewise.
16824         (SIZE_MAX): Define if not defined.
16825         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
16826         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
16827         hash_print):
16828         Use const * when possible.
16829         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
16830         (check_tuning): Fix bug: if tuning parameters were very close to
16831         0 or 1, rounding errors could have caused subscript violations.
16832         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
16833         (hash_initialize): Add 'fail:' label
16834         to free table and return NULL, and use it to simplify code.
16835         Use calloc rather than clearing the storage ourself.
16836         (hash_initialize, hash_rehash): Check for arithmetic overflow in
16837         buffer size calculations.
16838         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
16839         Include <stddef.h>, for size_t.
16840         * lib/hash-pjw.c (hash_pjw): Likewise.
16841         Switch to method described by Bruno Haible.
16842         Include <limits.h>, for CHAR_BIT.
16843         (SIZE_BITS): New macro.
16844
16845 2003-10-23  Paul Eggert  <eggert@twinsun.com>
16846
16847         * m4/getline.m4 (AM_FUNC_GETLINE):
16848         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
16849         hosts.  Problem reported by Derek Robert Price in
16850         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
16851         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
16852         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
16853
16854 2003-10-21  Paul Eggert  <eggert@twinsun.com>
16855
16856         * lib/getndelim2.c (getndelim2): When size calculation overflows,
16857         ceiling the allocation at NMAX bytes rather than silently
16858         discarding input bytes before NMAX is reached.  This makes
16859         a difference only if NMAX exceeds SIZE_MAX / 2.
16860
16861         * lib/obstack.c: Merge from glibc.
16862         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
16863         Add libc_hidden_def (_obstack_newchunk).
16864         (_obstack_free) [! defined _LIBC]: Remove.
16865         [defined _LIBC]: Make a strong alias from obstack_free, rather than
16866         a clone of the function body.
16867         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
16868         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
16869
16870         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
16871         glibc.
16872         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
16873         arg to memcpy.
16874
16875         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
16876         (obstack_ptr_grow_fast, obstack_int_grow_fast):
16877         Don't use lvalue casts, as GCC plans to remove support for them
16878         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
16879         was also present in the non-GCC version, indicating that this
16880         code had always been buggy and had never been widely used.
16881         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
16882         Use the fast variant of each macro, rather than copying the
16883         definiens of the fast variant; that way, we'll be more likely to
16884         catch future bugs in the fast variants.
16885
16886 2003-10-20  Bruno Haible  <bruno@clisp.org>
16887
16888         * modules/wait-process: New file.
16889         * MODULES.html.sh (func_all_modules): Add wait-process.
16890
16891 2003-10-20  Bruno Haible  <bruno@clisp.org>
16892
16893         * m4/wait-process.m4: New file.
16894
16895 2003-10-20  Bruno Haible  <bruno@clisp.org>
16896
16897         * lib/wait-process.h: New file, from GNU gettext.
16898         * lib/wait-process.c: New file, from GNU gettext.
16899
16900 2003-10-19  Jim Meyering  <jim@meyering.net>
16901
16902         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
16903         HPUX 10.20.
16904
16905 2003-10-18  Karl Berry  <karl@gnu.org>
16906
16907         * config/config.guess: update from config.
16908
16909 2003-10-16  Paul Eggert  <eggert@twinsun.com>
16910
16911         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
16912         (getgroups): First arg is int, not size_t.
16913         Don't let 'free' mangle errno.
16914
16915 2003-10-16  Paul Eggert  <eggert@twinsun.com>
16916
16917         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
16918
16919 2003-10-16  Karl Berry  <karl@gnu.org>
16920
16921         * config/config.{guess,sub}: update from config.
16922
16923 2003-10-16  Jim Meyering  <jim@meyering.net>
16924
16925         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
16926         memcpy.
16927
16928 2003-10-15  Paul Eggert  <eggert@twinsun.com>
16929
16930         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
16931         (SIZE_MAX): Remove.
16932         (new_exclude, add_exclude_file): Initial size no longer needs to
16933         be a power of 2.
16934         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
16935         our own address arithmetic overflow checking.
16936
16937         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
16938         (fnmatch): Do not alloca more than 2000 wide characters;
16939         instead, use malloc for large buffers.
16940         Check for address arithmetic overflow, and return -1
16941         with errno set to ENOMEM in that case.
16942         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
16943         (NEW_PATTERN): Do not alloca more than 8000 bytes;
16944         instead, return -1.  Check for address arithmetic overflow.
16945
16946 2003-10-14  Paul Eggert  <eggert@twinsun.com>
16947
16948         Handle invalid suffixes and overflow independently, so that
16949         callers can treat them independently as needed.  Fix some bugs in
16950         suffix handling, e.g., "100k@" was not diagnosed as an invalid
16951         suffix for a human-readable blocksize.  The major caller-visible
16952         change is the addition of a new
16953         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
16954         that both overflow and suffix chars were found.
16955
16956         * lib/human.c (humblock): Don't check separately for invalid suffix
16957         char; that is xstrtoumax's job (now that its bug is fixed).
16958         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
16959         INTMAX_MAX]: New macros.
16960         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
16961         TYPE_MAXIMUM): New macros.
16962         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
16963         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
16964         if overflow occurs, as it's what __strtol does and it's more useful
16965         in practice.
16966         (__xstrtol): If __strtol reports some error other than ERANGE,
16967         reflect it to the caller as LONGINT_INVALID.  If it reports
16968         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
16969         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
16970         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
16971         value.
16972         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
16973         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
16974         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
16975         [defined UINTMAX_MAX]: New macros.
16976
16977 2003-10-14  Bruno Haible  <bruno@clisp.org>
16978
16979         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
16980
16981 2003-10-14  Bruno Haible  <bruno@clisp.org>
16982
16983         * m4/sig_atomic_t: New file, from GNU gettext.
16984         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
16985
16986 2003-10-14  Bruno Haible  <bruno@clisp.org>
16987
16988         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
16989         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
16990         Also use volatile where needed.
16991
16992 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16993
16994         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
16995         Change maintainer from Bruno Haible to 'all'.
16996
16997 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16998
16999         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
17000
17001 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17002
17003         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
17004         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
17005         and define in terms of the other primitives.
17006         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
17007         (SIZE_MAX): Define if not already defined.
17008         (array_size_overflow): New function.
17009         (xalloc_die): Abort instead of exiting if 'error' returns.
17010         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
17011         (xmalloc, xrealloc): Use them.
17012         (xcalloc): Check for address arithmetic overflow.
17013         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
17014         a bit faster than strcpy.
17015
17016 2003-10-10  Simon Josefsson  <jas@extundo.com>
17017
17018         * modules/argp (Depends-on): Add restrict and strcase.
17019
17020 2003-10-10  Simon Josefsson  <jas@extundo.com>
17021
17022         * m4/argp.m4: Add AC_C_INLINE.
17023
17024 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17025
17026         Merge getpass from libc, plus a few fixes.
17027
17028         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
17029         Include <stdbool.h>.
17030         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
17031         __fsetlocking to empty.
17032         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
17033         do include <bits/libc-lock.h>.
17034         Do not include <fcntl.h>; not needed.
17035         [_LIBC]: Include <wchar.h>.
17036         (NOTCANCEL_MODE): New macro.
17037         (flockfile, funlockfile) [_LIBC]: New macros.
17038         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
17039         [!_LIBC]: New macros.
17040         (call_fclose): New function.
17041         (getpass): Use it.  Save tty stream separately; this simplifies the
17042         code and makes it more reliable if stdin happens to equal stdout.
17043         Invoke __fsetlocking on tty.
17044         Handle thread cancellation if needed.
17045         Namespace cleanup (use __tcgetattr, __getline).
17046         Use bool for Booleans.
17047         [USE_IN_LIBIO]: Handle wide streams.
17048         [!_LIBC]: Unconditionally do the fseek, since we don't know what
17049         stream might go where.
17050
17051         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
17052         doesn't have to include <stdio.h> before us.
17053         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
17054         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
17055         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
17056         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
17057         if not declared, so that we can use getpass.c code from libc without
17058         rewriting it.
17059         (flockfile, ftrylockfile, funlockfile): New macros.
17060
17061 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17062
17063         * modules/getpass: Depend on stdbool.
17064
17065 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17066
17067         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
17068
17069 2003-10-07  Karl Berry  <karl@gnu.org>
17070
17071         * config/config.{guess,sub}: update from config.
17072
17073 2003-10-06  Jim Meyering  <jim@meyering.net>
17074             Bruno Haible  <bruno@clisp.org>
17075
17076         This lets translators provide better translations for the
17077         "Written by ..." part of --version output.
17078         * lib/version-etc.h: Include stdarg.h.
17079         (version_etc_copyright): Declare as readonly.
17080         (version_etc): Make this function variadic with a NULL-terminated list
17081         of author name strings.
17082         (version_etc_va): New declaration.
17083         * lib/version-etc.c: Include stdarg.h, stdlib.h.
17084         (version_etc_copyright): Declare as readonly.
17085         (version_etc_va): New function. Provide a different translatable string
17086         for each possible number of authors < 10. Abbreviate when there are 10
17087         authors or more.
17088         (version_etc): Make this function variadic. Call version_etc_va.
17089         Suggestion from Gary V. Vaughan.
17090
17091         * lib/long-options.h (parse_long_options): Change prototype: the
17092         authors string is moved to the end and becomes variadic.
17093         * lib/long-options.c: Include stdarg.h.
17094         (parse_long_options): Make this function variadic, too.
17095         Call version_etc_va, not version_etc.
17096
17097 2003-10-06  Bruno Haible  <bruno@clisp.org>
17098
17099         * modules/version-etc-2: Remove file.
17100         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
17101
17102 2003-10-06  Bruno Haible  <bruno@clisp.org>
17103
17104         * modules/fatal-signal: New file.
17105         * MODULES.html.sh (func_all_modules): Add fatal-signal.
17106
17107 2003-10-06  Bruno Haible  <bruno@clisp.org>
17108
17109         * m4/fatal-signal.m4: New file.
17110         * m4/signalblocking.m4: New file, from GNU gettext.
17111
17112 2003-10-06  Bruno Haible  <bruno@clisp.org>
17113
17114         * lib/version-etc-2.h: Remove file.
17115         * lib/version-etc-2.c: Remove file.
17116
17117 2003-10-06  Bruno Haible  <bruno@clisp.org>
17118
17119         * lib/fatal-signal.h: New file, from GNU gettext.
17120         * lib/fatal-signal.c: New file, from GNU gettext.
17121
17122 2003-10-05  Paul Eggert  <eggert@twinsun.com>
17123
17124         * README: Rework advice for preventing empty .o files.
17125         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
17126         not <sys/types.h>.
17127
17128 2003-10-04  Karl Berry  <karl@gnu.org>
17129
17130         * lib/argp*: update from libc.
17131
17132 2003-10-04  Karl Berry  <karl@gnu.org>
17133
17134         * config/config.{guess,sub}: update from config.
17135
17136 2003-10-02  Bruno Haible  <bruno@clisp.org>
17137
17138         * modules/lchown (Include): Add lchown.h.
17139         * modules/time_r (Include): Use "..." syntax.
17140         * modules/xgetdomainname (Include): Add xgetdomainname.h.
17141
17142 2003-10-01  Simon Josefsson  <jas@extundo.com>
17143
17144         * MODULES.html.sh (func_all_modules): Move gethostname from section
17145         'based on' to section 'lacking' POSIX:2001.
17146
17147 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
17148
17149         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
17150         to output mode on the same stream.
17151
17152 2003-09-29  Paul Eggert  <eggert@twinsun.com>
17153
17154         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
17155         Fix arg typo in previous patch.
17156
17157 2003-09-28  Jim Meyering  <jim@meyering.net>
17158
17159         * lib/error.c: Correct cpp indentation.
17160
17161 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17162
17163         * modules/free: New file.
17164
17165 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17166
17167         * m4/free.m4: New file.
17168
17169 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17170
17171         * lib/minmax.h (MIN, MAX)
17172         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
17173         Omit the special code that used __typeof__, since we worry that
17174         it could be more trouble than it's worth.  See:
17175         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
17176         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
17177
17178         * lib/free.c: New file.
17179
17180 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
17181
17182         Trivial fixes to Makefile.am parts of module listings.
17183         * modules/strstr: Append strstr.h to lib_SOURCES.
17184         * modules/strcase: Likewise, for strcase.h.
17185
17186 2003-09-27  Karl Berry  <karl@gnu.org>
17187
17188         * config/mkinstalldirs: update from automake.
17189
17190 2003-09-26  Paul Eggert  <eggert@twinsun.com>
17191
17192         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
17193         (error_tail): Do not loop, reallocating temporary buffer, since
17194         the output cannot contain more wide characters than the input
17195         contains bytes, the size must be big enough already.  This avoids
17196         one potential size overflow calculation.  Check for size overflow
17197         when calculating temporary buffer size.  Free temporary buffer
17198         when done, if it was allocated with malloc; this plugs a memory
17199         leak.  Remove casts from void * to pointers, that are no longer
17200         needed now that we're assuming C89 or better.
17201
17202         Merge error changes from glibc.
17203
17204         * lib/error.c, error.h: Update copyright notice header to match glibc.
17205         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
17206         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
17207         Disable cancellation while printing error.
17208         * lib/error.h: Prepend __ to parameter names.
17209
17210 2003-09-26  Jim Meyering  <jim@meyering.net>
17211
17212         * lib/error.c (error_tail): Move some declarations
17213         into inner scope where the local variables are used.
17214
17215 2003-09-26  Bruno Haible  <bruno@clisp.org>
17216
17217         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
17218         stpncpy().
17219         Don't define stpncpy through config.h; it's now done through stpncpy.h.
17220
17221 2003-09-26  Bruno Haible  <bruno@clisp.org>
17222
17223         * lib/stpncpy.h (gnu_stpncpy): New declaration.
17224         (stpncpy): Define as alias for gnu_stpncpy.
17225         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
17226
17227 2003-09-25  Simon Josefsson  <jas@extundo.com>
17228
17229         * lib/xgetdomainname.h: New file.
17230         * lib/xgetdomainname.c: New file.
17231
17232 2003-09-25  Simon Josefsson  <jas@extundo.com>
17233             Bruno Haible  <bruno@clisp.org>
17234
17235         * modules/getdomainname: New file.
17236         * modules/xgetdomainname: New file.
17237         * MODULES.html.sh (func_all_modules): Add getdomainname,
17238         xgetdomainname.
17239
17240 2003-09-25  Simon Josefsson  <jas@extundo.com>
17241             Bruno Haible  <bruno@clisp.org>
17242
17243         * m4/getdomainname.m4: New file.
17244
17245 2003-09-25  Simon Josefsson  <jas@extundo.com>
17246             Bruno Haible  <bruno@clisp.org>
17247
17248         * lib/getdomainname.h: New file.
17249         * lib/getdomainname.c: New file.
17250
17251 2003-09-25  Karl Berry  <karl@gnu.org>
17252
17253         * lib/argp-fmtstream.c, argp-help.c: update from libc.
17254
17255 2003-09-25  Karl Berry  <karl@gnu.org>
17256
17257         * config/install-sh: update from automake.
17258
17259 2003-09-25  Bruno Haible  <bruno@clisp.org>
17260
17261         * modules/version-etc-2: New file, from modules/version-etc with
17262         modifications.
17263         * MODULES.html.sh (func_all_modules): Add version-etc-2.
17264
17265 2003-09-25  Bruno Haible  <bruno@clisp.org>
17266
17267         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
17268         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
17269
17270 2003-09-24  Simon Josefsson  <jas@extundo.com>
17271
17272         * modules/xgethostname: Add xgethostname.h.
17273
17274 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17275
17276         * lib/linebuffer.c (freebuffer): Don't free the argument, just
17277         the buffer associated with the argument.  Bug reported by
17278         Simon Josefsson.
17279
17280 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17281
17282         * README: Document assumptions that 'int' is at least 32 bits
17283         wide, that integer arithmetic is 2's complement without overflow,
17284         that there are no holes in integer values, that adding sizes of
17285         two nonoverlapping objects can't overflow, and that all-bits-zero
17286         yields scalar zero.  Fix spelling and capitalization typos.
17287
17288 2003-09-19  Karl Berry  <karl@gnu.org>
17289
17290         * lib/argp.h: update from libc.
17291
17292 2003-09-17  Paul Eggert  <eggert@twinsun.com>
17293
17294         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
17295         to avoid spurious warnings like "AC_RUN_IFELSE was called before
17296         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
17297
17298 2003-09-17  Paul Eggert  <eggert@twinsun.com>
17299
17300         * gnulib-tool: Use "test -h", not "test -L", for portability
17301         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
17302         (tags_regexp): Remove, since \| doesn't conform to POSIX.
17303         (sed_extract_prog): Issue s commands one-by-one, rather than
17304         using \| in one s command.
17305
17306 2003-09-16  Paul Eggert  <eggert@twinsun.com>
17307
17308         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
17309         input error, instead of returning NULL the next time we are called
17310         (and therefore losing track of errno).
17311
17312 2003-09-16  Bruno Haible  <bruno@clisp.org>
17313
17314         * gnulib-tool (func_create_testdir): Warn about duplicated
17315         dependencies.
17316
17317 2003-09-15  Paul Eggert  <eggert@twinsun.com>
17318
17319         * modules/argmatch, modules/fatal, modules/obstack,
17320         modules/xalloc, modules/xgethostname: Sort dependencies by
17321         importance, not alphabetically.
17322
17323 2003-09-15  Paul Eggert  <eggert@twinsun.com>
17324
17325         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
17326         fails, so that the caller gets the proper errno.
17327
17328         * lib/readutmp.c (read_utmp): Likewise.
17329         Check for fstat error.  Close stream and free storage
17330         when failing.
17331
17332 2003-09-14  Karl Berry  <karl@gnu.org>
17333
17334         * config/srclist.txt (strdup.c): disable for c89 changes.
17335
17336 2003-09-14  Jim Meyering  <jim@meyering.net>
17337
17338         * lib/getloadavg.c: Correct cpp indentation.
17339         * lib/strdup.c: Likewise.
17340         * lib/vasnprintf.c: Likewise.
17341
17342 2003-09-14  Bruno Haible  <bruno@clisp.org>
17343
17344         * modules/fwriteerror: New file.
17345         * MODULES.html.sh (func_all_modules): Add fwriteerror.
17346
17347 2003-09-14  Bruno Haible  <bruno@clisp.org>
17348
17349         * lib/fwriteerror.h: New file.
17350         * lib/fwriteerror.c: New file.
17351
17352 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17353
17354         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
17355         modules/xgethostname, modules/xalloc: Depend on exit.
17356
17357 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17358
17359         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
17360
17361         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
17362         and AC_MINIX, too, so that their extensions are available.
17363
17364         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
17365         This macro has been superseded by gl_BACKUPFILE.
17366
17367         More patches to assume C89 or better.
17368
17369         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
17370
17371         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
17372         unconditionally.
17373         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
17374         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
17375         Include <string.h>, <stdlib.h> unconditionally.
17376         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
17377         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
17378         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
17379         headers or for string.h.
17380         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
17381         or strtoul.
17382
17383         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
17384         headers.
17385         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
17386         * m4/userspec.m4 (gl_USERSPEC): Likewise.
17387         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
17388         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
17389         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17390         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
17391         memcpy, memset.
17392         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
17393         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
17394         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
17395         strtol.
17396         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
17397         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
17398         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
17399         strtoul.
17400
17401 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17402
17403         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
17404         * lib/obstack.c [!defined _LIBC]: Likewise.
17405         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
17406         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
17407         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
17408
17409         More changes to assume C89 or better.
17410
17411         * lib/error.c (error_tail): Assume vprintf.
17412
17413         * lib/argmatch.c (getenv): Remove decl.
17414         * lib/progreloc.c (get_full_program_name): Define via prototype.
17415         * lib/setenv.c (clearenv): Likewise.
17416         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
17417         needed.
17418         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
17419         (malloc, memcpy): Remove decls.
17420         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
17421         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
17422         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
17423         (memcpy): Remove macro.
17424         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
17425         (__P): Remove.  All uses removed.
17426         (PTR): Remove.  All uses changed to void *.
17427         (CHAR_BIT, NULL): Remove.
17428         (spaces, zeros, memset_space, memset_zero)
17429         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
17430         Remove.
17431         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
17432         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
17433         Define with prototype.
17434         Remove now-unnecessary prototype decl.
17435         (extra_args_spec): Assume ANSI C.  All uses changed.
17436         (extra_args_spec_iso): Remove.
17437         (my_strftime, emacs_strftimeu): Define via prototype.
17438         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
17439         unconditionally.
17440         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
17441         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
17442         (strtoul, strtol): Remove decls.
17443         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
17444         LONG_MAX): Remove.
17445         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
17446         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
17447         (LOCALE_PARAM_PROTO): New macro.
17448         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
17449         (INTERNAL (strtol), strtol): Define with a prototype.
17450         (PARAMS): Remove.  All uses removed.
17451         * lib/tempname.c: Include <string.h> unconditionally.
17452         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
17453         * lib/xgethostname.c (main): Define with a prototype.
17454         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
17455         Include <stdlib.h> unconditionally.
17456         (calloc, malloc, realloc, free): Remove decls.
17457         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
17458         Include <stdlib.h> unconditionally.  Sort include file names.
17459         (strtod): Remove.
17460         (xstrtod): Define with a prototype.
17461         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
17462         (strtol, strtoul): Remove decls.
17463
17464 2003-09-11  Paul Eggert  <eggert@twinsun.com>
17465
17466         More patches to assume C89 or better.
17467         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
17468         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
17469         string.h, memchr, STDC_HEADERS.
17470
17471 2003-09-11  Paul Eggert  <eggert@twinsun.com>
17472
17473         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
17474         Include <stdlib.h>, <string.h> unconditionally.
17475         Remove now-unnecessary cast to char *.
17476         * lib/strnlen.c: Include <string.h> unconditionally.
17477         * lib/yesno.c (yesno): Define with a prototype.
17478
17479 2003-09-11  Bruno Haible  <bruno@clisp.org>
17480
17481         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
17482
17483 2003-09-10  Jim Meyering  <jim@meyering.net>
17484
17485         * lib/error.c: Correct indentation of cpp directives.
17486
17487 2003-09-10  Bruno Haible  <bruno@clisp.org>
17488
17489         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
17490         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
17491         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
17492         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
17493         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
17494         <stdlib.h> and <string.h> checks.
17495         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
17496         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
17497
17498 2003-09-10  Bruno Haible  <bruno@clisp.org>
17499
17500         * lib/strcspn.c: Include <string.h> unconditionally.
17501         * lib/strpbrk.c: Include <string.h> unconditionally.
17502         * lib/strstr.c: Include <string.h> unconditionally.
17503         * lib/unicodeio.c: Include <string.h> unconditionally.
17504         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
17505         * lib/unsetenv.c: Likewise.
17506         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
17507         * lib/yesno.c: Include <stdlib.h> unconditionally.
17508         (rpmatch): Add prototype.
17509
17510 2003-09-09  Paul Eggert  <eggert@twinsun.com>
17511
17512         More patches to assume C89 or better.
17513         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
17514         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
17515         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
17516         or for string.h.
17517         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
17518         stdlib.h.
17519         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
17520         C headers.
17521         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
17522         string.h.
17523         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
17524         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
17525         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
17526         or for string.h.
17527         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
17528         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
17529         C headers.
17530         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
17531         memcpy.
17532         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
17533         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
17534         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
17535         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
17536         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
17537         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
17538         string.h, free.
17539         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
17540         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
17541         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
17542         C headers, or for string.h.
17543         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
17544         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
17545         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
17546         headers, memory.h, stdlib.h, string.h, strings.h.
17547         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
17548         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
17549         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
17550         strchr.
17551         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
17552         headers, memory.h, string.h.
17553         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
17554         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
17555         free.
17556         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
17557         headers.
17558         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
17559         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
17560         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
17561         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
17562         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
17563
17564 2003-09-09  Paul Eggert  <eggert@twinsun.com>
17565
17566         More K&R removal.
17567
17568         * lib/acosl.c (main): Use a prototype.
17569         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
17570         tanl.c: Likewise.
17571
17572         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
17573
17574         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
17575         (getopt, etopt_long, getopt_long_only, _getopt_internal)
17576         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
17577         with a prototype.
17578         * lib/getopt.c (const): Remove macro.
17579         Include <string.h> unconditionally.
17580         (my_index): Remove; all uses changed to strchr.
17581         (strlen): Remove decl.
17582         (exchange): Remove forward decl; no longer needed.
17583         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
17584         Define with prototype.
17585         * lib/getopt1.c (const): Remove macro.
17586         (getopt_long, getopt_long_only, main): Define with prototype.
17587
17588         * lib/getugroups.c: Include <string.h> unconditionally.
17589
17590         * lib/getusershell.c: Include <stdlib.h> unconditionally.
17591         (getusershell, setusershell, endusershell, readname, main):
17592         Define with prototypes.
17593
17594         * lib/group-member.c: Include group-member.h first.
17595         Include <stdlib.h> unconditionally.
17596
17597         * lib/hard-locale.c: Include hard-locale.h first.
17598         Include <stdlib.h>, <string.h> unconditionally.
17599
17600         * lib/hash.c (free, malloc): Remove decls.
17601         Include <stdlib.h> unconditionally.
17602
17603         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
17604         (getenv): Do not declare.
17605
17606         * lib/idcache.c: Include <string.h> unconditionally.
17607
17608         * lib/long-options.c: Include long-options.h first, to test interface.
17609         Include <stdlib.h> unconditionally.
17610
17611         * lib/makepath.c: Include makepath.h first, to test interface.
17612         Include <stdlib.h> and <string.h> unconditionally.
17613
17614         * lib/linebuffer.c: Include <stdlib.h>.
17615         (free): Remove decl.
17616
17617         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
17618         stddef.h. rpl_malloc returns void *, not char *.
17619         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
17620         prototype.
17621
17622         * lib/md5.h: Include <limits.h> unconditionally.
17623         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
17624         (__P): Remove; all uses removed.
17625         * lib/md5.c: Include "md5.h" first.
17626         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
17627         md5_buffer, md5_process_bytes, md5_process_block):
17628         Define with prototypes.
17629         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
17630         * lib/sha.c: Include "sha.h" first.
17631         Include <stdlib.h>, <string.h> unconditionally.
17632
17633         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
17634         * lib/memcmp.c (__ptr_t): Likewise.
17635         * lib/memrchr.c (__ptr_t): Likewise.
17636         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
17637         Include <string.h> unconditionally.
17638         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
17639         * lib/memchr.c: Include <stdlib.h> unconditionally.
17640         * lib/memchr.c (LONG_MAX): Remove.
17641         * lib/memrchr.c (LONG_MAX): Likewise.
17642         * lib/memchr.c (__memchr): Define via a prototype.
17643         * lib/memrchr.c (__memrchr): Likewise.
17644         * lib/memcmp.c (__P): Remove, and remove all uses.
17645         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
17646         Remove forward decls; no longer needed.
17647         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
17648         Use types required by C89 in prototype.
17649
17650         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
17651         * lib/savedir.c: Likewise.
17652         * lib/mkdir.c (free): Remove decl.
17653         * lib/rmdir.c (rmdir): Define with a prototype.
17654         * lib/savedir.c: Include savedir.h first, to test interface.
17655
17656         * lib/mktime.c (STDC_HEADERS): Remove.
17657         Include <stdlib.h>, <string.h> unconditionally.
17658
17659         * lib/modechange.c: Include <stdlib.h> unconditionally.
17660         (malloc): Remove decl.
17661
17662         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
17663         (free): Remove decl.
17664
17665         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
17666         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
17667         (This type really should be intptr_t, but that's a C99ism.)
17668         (_obstack_memcpy): Remove: all uses changed to memcpy.
17669         Include <string.h> unconditionally.
17670         (struct obstack): Assume __STDC__ for types of members
17671         chunkfun, freefun, extra_arg.
17672         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
17673         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
17674         obstack_begin, obstack_specify_allocation,
17675         obstack_specify_allocation_with_arg, obstack_chunkfun,
17676         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
17677         Remove unprototyped decls and the macros that use them.
17678         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
17679         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
17680         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
17681         (defined __STDC__ && __STDC__)]:
17682         Remove nonprototyped code.
17683         Include <stdlib.h> unconditionally.
17684         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
17685         _obstack_allocated_p, _obstack_free, obstack_free,
17686         _obstack_memory_used, print_and_abort):
17687         Define using prototypes.
17688         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
17689         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
17690         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
17691         obstack_next_free, obstack_object_size, obstack_room) [0]:
17692         Remove unused, unprototyped code.
17693
17694         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
17695
17696         * lib/physmem.c (physmem_total, physmem_available, main): Define
17697         with prototypes.
17698
17699         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
17700         (main): Define with a prototype.
17701
17702         * lib/posixver.c (getenv): Remove decl.
17703
17704         * lib/putenv.c (malloc): Returns void *, not char *.
17705         Include <string.h> unconditionally.
17706         (strchr, memcpy, NULL): Do not define.
17707
17708         * lib/readtokens.c: Include readtokens.h first, to test interface.
17709         Include <stdlib.h>, <string.h> unconditionally.
17710         (init_tokenbuffer): Define with a prototype.
17711
17712         * lib/regex.c (PARAMS): Remove.  All uses removed.
17713         All uses of _RE_ARGS removed, too.
17714         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
17715         unconditionally.
17716         (bzero): Assume memset exists.
17717         (memcmp, memcpy, NULL): Remove.
17718         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
17719         char, or assignments to local vars of type signed char.
17720         (init_syntax_once, PREFIX(extract_number_and_incr),
17721         PREFIX(print_partial_compiled_pattern),
17722         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
17723         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
17724         PREFIX(regex_grow_registers), PREFIX(regex_compile),
17725         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
17726         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
17727         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
17728         wcs_compile_range, byte_compile_range, truncate_wchar,
17729         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
17730         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
17731         count_mbs_length, wcs_re_match_2_internal,
17732         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
17733         PREFIX(alt_match_null_string_p),
17734         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
17735         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
17736         regfree, PREFIX(extract_number)): Define with prototype.  Remove
17737         now-unnecessary declaration, if any.
17738         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
17739         regcomp, regexec):
17740         Remove now-unnecessary casts among pointer types.
17741         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
17742
17743         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
17744         (free): Remove decl.
17745
17746         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
17747
17748         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
17749         (free): Remove decl.
17750
17751         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
17752         * lib/xgetcwd.c: Likewise.
17753
17754         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
17755         (free): Remove decl.
17756
17757         * lib/strchrnul.c (strchrnul): Define with a prototype.
17758         Fix bug: c_in was not converted to char before searching.
17759
17760         The following changes are not K&R related:
17761
17762         * lib/group-member.h: Include <sys/types.h>, so that this file is
17763         self-contained.
17764         * lib/makepath.h: Likewise.
17765
17766         * lib/getusershell.c (readname, default_index, line_size, readname):
17767         Use size_t, not int, for sizes.
17768         (readname): If the size overflows, report an error instead of
17769         looping forever.
17770
17771 2003-09-09  Paul Eggert  <eggert@twinsun.com>
17772
17773         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
17774         libc.
17775
17776 2003-09-09  Paul Eggert  <eggert@twinsun.com>
17777
17778         * README: New section: portability guidelines.
17779
17780 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
17781
17782         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
17783         C89 spec.
17784
17785 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
17786
17787         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
17788
17789 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17790
17791         Assume C89 or better; remove K&R cruft.
17792         A few of these changes were first proposed by Derek Robert Price
17793         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
17794
17795         * lib/addext.c: Include <string.h> unconditionally.
17796         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
17797         Don't declare getenv or malloc.
17798
17799         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
17800         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
17801         (NULL): Remove.
17802         (find_stack_direction, alloca): Use prototypes.
17803
17804         * lib/atexit.c (atexit): Define using a prototype.
17805
17806         * lib/basename.c, dirname.c, stripslash.c:
17807         Include <string.h> unconditionally.
17808
17809         * lib/bcopy.c: Include <stddef.h>.
17810         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
17811
17812         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
17813
17814         * lib/error.h (error, error_at_line, error_print_progname)
17815         [! (defined (__STDC__) && __STDC__)]: Remove decls.
17816         * lib/error.c: Include error.h first, to check interface.
17817         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
17818         (VA_START): Remove; all uses changeed to va_start.
17819         (exit, strerror): Remove decls.
17820         (error_print_progname): Prototype uncondionally.
17821         Don't include <errno.h>; no longer needed.
17822         (private_strerror): Remove.
17823         (error_tail): Always define.
17824         (error, error_at_line): Assume C89 or better; always use prototypes.
17825         * lib/fatal.c: Include "fatal.h" first, to test interface.
17826         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
17827         (VA_START): Remove; all uses changed to va_start.
17828         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
17829         this case.
17830         (exit): Remove decl.
17831         (fatal): Prototype unconditionally.  Assume va_start works.
17832         Abort at end, to pacify gcc.
17833
17834         * lib/euidaccess.c (main): Define with a prototype.
17835
17836         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
17837
17838         * lib/exitfail.c: Include <stdlib.h> unconditionally.
17839
17840         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
17841         prototypes.
17842         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
17843         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
17844         (getenv): Remove decl.
17845         (fnmatch): Define using a prototype.
17846         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
17847         (FCT): Define using a prototype.
17848
17849         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
17850
17851         * lib/gethostname.c: Include <stddef.h>.
17852         (gethostname): Define with prototype.  Length is size_t, not int.
17853
17854 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17855
17856         Assume C89 or better; remove K&R cruft.
17857         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
17858         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
17859         string.h, getenv, malloc.
17860         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
17861         headers.
17862         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
17863         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
17864         do not check for strerror.
17865         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
17866         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
17867         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
17868         do not check for doprnt or vprintf.
17869         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
17870         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
17871
17872 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17873
17874         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
17875         getversion.c should have been removed then, but was accidentally
17876         preserved.
17877
17878         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
17879         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
17880
17881 2003-09-08  Karl Berry  <karl@gnu.org>
17882
17883         * config/config.sub, config.guess, srclistvars.sh: update from savannah
17884                 config, forget about prep.
17885
17886         * config/depcomp, missing: update from automake.
17887
17888 2003-09-07  Paul Eggert  <eggert@twinsun.com>
17889
17890         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
17891         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17892
17893 2003-09-07  Paul Eggert  <eggert@twinsun.com>
17894
17895         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
17896         copy_tm_result.  Bug reported by Simon Josefsson in
17897         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17898
17899 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17900
17901         * m4/time_r.m4: New file.
17902         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
17903         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
17904         is. Check for timegm declaration.
17905         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
17906         Do not check for gmtime_r.
17907         Replace mktime if __mktime_internal does not exist and if mktime
17908         hasn't been replaced already.
17909
17910 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17911
17912         * lib/time_r.c, lib/time_r.h: New files.
17913
17914         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
17915         __localtime_r.
17916         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
17917         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
17918
17919         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
17920         __gmtime_r.
17921         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
17922         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
17923         Include <time_r.h>.
17924
17925         * lib/timegm.c: Switch to glibc implementation, with the following
17926         changes:
17927         [defined HAVE_CONFIG_H]: Include <config.h>.
17928         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
17929         (__mktime_internal) [!defined _LIBC]: New decl.
17930         (__gmtime_r) [!defined _LIBC]: New macro and function.
17931         (timegm): Use a prototype, since gnulib assumes C89.
17932         Do not bother declaring tmp to be const, as it's not really usefu.
17933         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
17934         (timegm): Declare only if HAVE_DECL_TIMEGM.
17935
17936 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17937
17938         * MODULES.html.sh (func_all_modules): Add time_r.
17939         * modules/time_r: New file.
17940         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
17941         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
17942
17943 2003-09-03  Paul Eggert  <eggert@twinsun.com>
17944
17945         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
17946         Bug reported by Lute Kamstra in
17947         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
17948
17949         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
17950         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
17951         course with correspondingly smaller numbers for tomorrow and
17952         yesterday.  From Tadayoshi Funaba.  Originally installed into
17953         sh-utils on 1999-08-07, but the patch got lost (I guess during the
17954         coreutils merge?).
17955
17956 2003-08-31  Simon Josefsson  <jas@extundo.com>
17957
17958         * modules/timegm: New file.
17959         * MODULES.html.sh (func_all_modules): Add timegm.
17960
17961 2003-08-31  Simon Josefsson  <jas@extundo.com>
17962
17963         * m4/timegm.m4: New file.
17964
17965 2003-08-31  Simon Josefsson  <jas@extundo.com>
17966
17967         * lib/timegm.h: New file.
17968         * lib/timegm.c: New file.  Based on
17969         wget-1.8.2/src/http.c:mktime_from_utc.
17970
17971 2003-08-31  Karl Berry  <karl@gnu.org>
17972
17973         * lib/argp.h: update from libc.
17974
17975 2003-08-28  Bruno Haible  <bruno@clisp.org>
17976
17977         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
17978         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
17979         followed by '#define fnmatch fnmatch_posix' gives an error.
17980
17981 2003-08-28  Bruno Haible  <bruno@clisp.org>
17982
17983         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
17984         warning on QNX, which defines O_BINARY to 000000.
17985
17986 2003-08-27  Jim Meyering  <jim@meyering.net>
17987
17988         * m4/mkstemp.m4: Require that the system mkstemp be able to create
17989         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
17990         would fail after 32.  Reported by Danny Levinson.  Details here:
17991         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
17992
17993 2003-08-24  Bruno Haible  <bruno@clisp.org>
17994
17995         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
17996         MSVC7 <stdio.h> is included later.
17997
17998 2003-08-22  Simon Josefsson  <jas@extundo.com>
17999
18000         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
18001
18002 2003-08-20  Karl Berry  <karl@gnu.org>
18003
18004         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
18005
18006 2003-08-20  Bruno Haible  <bruno@clisp.org>
18007
18008         * modules/progname: New file.
18009         * MODULES.html.sh (func_all_modules): Add progname.
18010
18011 2003-08-20  Bruno Haible  <bruno@clisp.org>
18012
18013         * lib/progname.h: New file, from GNU gettext.
18014         * lib/progname.c: New file, from GNU gettext.
18015         * lib/progreloc.c: New file, from GNU gettext.
18016
18017 2003-08-19  Jim Meyering  <jim@meyering.net>
18018
18019         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
18020         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
18021
18022 2003-08-19  Bruno Haible  <bruno@clisp.org>
18023
18024         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
18025         more.
18026
18027 2003-08-19  Bruno Haible  <bruno@clisp.org>
18028
18029         * lib/xstrdup.c: Assume <string.h> exists.
18030
18031 2003-08-18  Paul Eggert  <eggert@twinsun.com>
18032
18033         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
18034         in makefile rules.
18035
18036 2003-08-18  Jim Meyering  <jim@meyering.net>
18037
18038         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
18039         * m4/lib-ld.m4: Likewise.
18040
18041 2003-08-18  Jim Meyering  <jim@meyering.net>
18042
18043         * lib/setenv.h: Indent nested cpp directive.
18044         * lib/vasnprintf.c: Remove trailing blanks.
18045
18046 2003-08-17  Simon Josefsson  <jas@extundo.com>
18047
18048         * modules/xstrndup: New file.
18049         * MODULES.html.sh (func_all_modules): Add xstrndup.
18050
18051 2003-08-17  Simon Josefsson  <jas@extundo.com>
18052
18053         * modules/argp: Fix autoconf macro name. Add more dependencies.
18054
18055 2003-08-17  Simon Josefsson  <jas@extundo.com>
18056
18057         * m4/xstrndup.m4: New file.
18058
18059 2003-08-17  Simon Josefsson  <jas@extundo.com>
18060
18061         * m4/argp.m4: New file.
18062
18063 2003-08-17  Simon Josefsson  <jas@extundo.com>
18064             Bruno Haible  <bruno@clisp.org>
18065
18066         * lib/xstrndup.h: New file.
18067         * lib/xstrndup.c: New file.
18068
18069 2003-08-17  Bruno Haible  <bruno@clisp.org>
18070
18071         * modules/strndup (Files, Include): Add lib/strndup.h.
18072
18073 2003-08-17  Bruno Haible  <bruno@clisp.org>
18074
18075         * modules/euidaccess (Files): Add lib/euidaccess.h.
18076
18077 2003-08-17  Bruno Haible  <bruno@clisp.org>
18078
18079         * lib/strndup.h: New file.
18080
18081 2003-08-17  Bruno Haible  <bruno@clisp.org>
18082
18083         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
18084         like AC_GNU_SOURCE.
18085         * modules/extensions (configure.ac): Comment out the invocation of
18086         gl_USE_SYSTEM_EXTENSIONS.
18087
18088 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18089
18090         Merges from coreutils, etc.
18091         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
18092         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
18093         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
18094         fixing a typo.
18095         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
18096         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
18097
18098 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18099
18100         Document merge from coreutils.
18101         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
18102         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
18103         * modules/utime: Add m4/utimes-null.m4.
18104
18105 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18106
18107         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
18108         space, undoing this 2003-08-12 change:
18109         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18110
18111 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18112
18113         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
18114         strtoul.c from libc, undoing this 2003-08-12 change:
18115         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18116
18117 2003-08-16  Jim Meyering  <jim@meyering.net>
18118
18119         Merges from coreutils.
18120         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
18121         prefix.  Adjust cache variables similarly.  Create 500 rather than
18122         just 300 files, to exercise bug on Darwin6.5, too.
18123         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
18124         $missing_dir.
18125         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
18126         AM_SYS_POSIX_TERMIOS.
18127         Reported by mkc@mathdogs.com.
18128         Also change use of $am_cv_sys_posix_termios
18129         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
18130         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
18131         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
18132         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
18133         in /proc/mounts until it finds one with matching device number.  This
18134         is unnecessary when the FILE argument *is* a mount point.  No stat call
18135         is necessary in that case.  So, disable the statvfs-testing code on
18136         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
18137         as RedHat bug# 84846.
18138         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18139         to 1MB, so as not to render systems with no stack size limit (e.g.,
18140         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18141         Include <unistd.h>.  On some systems,
18142         it is required for the definition of _SC_PAGESIZE.
18143
18144 2003-08-16  Jim Meyering  <jim@meyering.net>
18145
18146         Merge from coreutils.
18147         * lib/xstrtoimax.c: #else #if -> #elif.
18148         * lib/xstrtoumax.c: Likewise.
18149
18150 2003-08-16  Jim Meyering  <jim@meyering.net>
18151
18152         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
18153         * m4/utimes.m4: Removed.
18154         * m4/utimes-null.m4: Renamed from utimes.m4.
18155
18156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18157         to 1MB, so as not to render systems with no stack size limit (e.g.,
18158         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18159         Include <unistd.h>.  On some systems,
18160         it is required for the definition of _SC_PAGESIZE.
18161
18162 2003-08-16  Jim Meyering  <jim@meyering.net>
18163         and Paul Eggert  <eggert@cs.ucla.edu>
18164
18165         Merges from coreutils, etc.
18166
18167         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
18168         using the latest version from cvs.  This avoids problems with #line
18169         directives using a vendor (Sun) compiler.
18170         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
18171         Don't set GETGROUPS_LIB here; now it's
18172         done via getgroups.m4's wrapper function.
18173         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
18174         rather than just in sh-util/configure.in, so that the
18175         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
18176         same.
18177         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
18178         AC_FUNC_GETLOADAVG where to find getloadavg.c.
18179         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
18180         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
18181         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
18182         Remove code that is now done by the newly-required macros.
18183         Append $(EXEEXT) to DF_PROG.
18184         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
18185         Do not invoke or require the following here,
18186         since prereq.m4 or some gnulib .m4 now does this for us:
18187         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
18188         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
18189         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
18190         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
18191         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
18192         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
18193         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
18194         AC_FUNC_OBSTACK.
18195         Do not replace the following functions, as this is now the job
18196         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
18197         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
18198         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
18199         atexit getpass, strdup, getpagesize.
18200         Replace 'raise'.
18201         Do not check for the following functions, as this is now the job
18202         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
18203         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
18204         setregid.
18205         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
18206         Check for sys/sysctl.h.
18207         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
18208         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
18209         of checking for ssize_t ourselves.
18210
18211         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
18212         Require every macro that gnulib/modules/* suggests for us.
18213         (jm_PREREQ_ADDEXT): New macro.
18214         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
18215         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
18216
18217         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
18218         (gl_PHYSMEM): Use it.
18219         Also check for `table' function.
18220         Check for new headers and functions.
18221         Add check for sys/sysmp.h.
18222         With suggestions from Kaveh Ghazi.
18223         Ignore headers that are present but cannot be compiled.  This
18224         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
18225         C 5.4.
18226
18227 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18228
18229         Document merge from coreutils.
18230         * modules/userspec: Depend on posixver.
18231         * modules/strftime: Depend on tzset.
18232
18233 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18234
18235         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
18236         rather than tab, after '#' in shell-script copyright notices.
18237         Suggested by Bruno Haible.
18238
18239 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18240
18241         * config/srclist-update: Use three spaces, rather than tab, after '#'
18242         in shell-script copyright notices.  Suggested by Bruno Haible.
18243         Remove unnecessary parenthesization in regular expression.
18244
18245 2003-08-15  Jim Meyering  <jim@meyering.net>
18246
18247         Merge from coreutils.
18248         * lib/xgethostname.c: Include <stdlib.h>.
18249         (xghostname): Don't exit for anything other than memory-related
18250         failure; just return NULL.
18251         * lib/userspec.c: Include "posixver.h".
18252         (parse_user_spec): Accept `.' as a separator only
18253         in pre-POSIX-200112 mode.
18254         * lib/strtoimax.c: Use #elif rather than #else #if.
18255         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
18256         Remove function, now that we can rely on a working tzset function.
18257         [!_LIBC]: Ensure that the required autoconf test has been run.
18258         [!defined _NL_CURRENT && HAVE_STRFTIME]:
18259         Use underlying_strftime for %r.
18260         * lib/sha.c: Merge in some clean-up and optimization changes from
18261         glibc.
18262         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
18263         Ensure that it is a multiple of 64.
18264         Rearrange loop exit tests so as to avoid performing an
18265         additional fread after encountering an error or EOF.
18266         * lib/realloc.c: Update copyright date.
18267
18268 2003-08-15  Jim Meyering  <jim@meyering.net>
18269         and Paul Eggert  <eggert@twinsun.com>
18270
18271         Merge from coreutils.
18272         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
18273         member but strut utmpx does not.  Needed for AIX 4.3.3.
18274         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
18275
18276 2003-08-15  Jim Meyering  <jim@meyering.net>
18277         and Paul Eggert  <eggert@cs.ucla.edu>
18278
18279         Merges from coreutils, etc.
18280         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
18281         Require gl_FUNC_TZSET_CLOBBER.
18282         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
18283         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
18284         members.
18285
18286 2003-08-14  Paul Eggert  <eggert@twinsun.com>
18287
18288         Help the merge from coreutils.
18289         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
18290         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
18291         * m4/tzset.m4: Use it too.
18292
18293 2003-08-14  Paul Eggert  <eggert@twinsun.com>
18294
18295         * modules/tzset: New file.
18296
18297 2003-08-14  Jim Meyering  <jim@meyering.net>
18298
18299         Merges from coreutils.
18300         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
18301         variable names, rather than @FNMATCH_H@.
18302         * modules/alloca: Likewise for $(ALLOCA_H).
18303
18304         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
18305         the three copies of the literal target, `fnmatch.h'.
18306         * modules/alloca (alloca.h): Likewise.
18307
18308 2003-08-14  Jim Meyering  <jim@meyering.net>
18309
18310         Merge from coreutils.
18311         * m4/tzset.m4: New file.
18312         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
18313         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
18314         otherwise, AIX 5.1 systems would end up using the latter.
18315         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
18316         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
18317         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
18318         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
18319
18320 2003-08-14  Jim Meyering  <jim@meyering.net>
18321
18322         Merge from coreutils.
18323         * lib/obstack.h: Whitespace changes.
18324         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
18325         and xcalloc return values.
18326         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
18327         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
18328         hang on OSF/1 5.1 for DIR on both local and remote file systems.
18329         Reported by (and fix confirmed by) Nelson H. F. Beebe.
18330         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18331         error from mntctl.
18332         Use mntctl's return value to drive the entry-processing loop, since
18333         we can't rely on the value of the vmt_length member in the last
18334         entry.  On some systems doing so could result in exhausting
18335         virtual memory.  Based in part on a patch from Mike Jetzer.
18336
18337 2003-08-14  Jim Meyering  <jim@meyering.net>
18338         and Paul Eggert  <eggert@twinsun.com>
18339
18340         Merges from coreutils, plus other fixes.
18341         * lib/physmem.c: Merge in portability changes from gcc/libiberty
18342         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
18343         for credits and details.  Thanks to Kaveh Ghazi for helping
18344         to keep these files in sync.
18345         (ARRAY_SIZE): Define it.
18346         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
18347         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
18348         (memcasecmp): Don't assume size_t fits in unsigned int.
18349         Remove casts and duplicate code.
18350         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
18351         (memcpy): Remove definition.
18352         Merge in some clean-up and optimization changes from glibc.
18353         [BLOCKSIZE]: Move definition to top of file.
18354         Ensure that it is a multiple of 64.
18355         Rearrange loop exit tests so as to avoid performing an
18356         additional fread after encountering an error or EOF.
18357         * lib/md5.h (md5_uintptr): Define.
18358         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
18359         return to the initial working directory.  Preserve errno
18360         for caller.
18361         * lib/idcache.c: Include "xalloc.h".
18362         (xmalloc, xrealloc): Remove decls.
18363         (getuser): Remove casts no longer required in C89.
18364         * lib/human.c: Include stdio.h, for sprintf.
18365         * lib/group-member.c: Include "xalloc.h".
18366         (xmalloc, xrealloc): Remove decls.
18367         (get_group_info): Remove casts no longer required in C89.
18368         * lib/getusershell.c (readname): Remove casts no longer required in
18369         C89.
18370         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
18371         * lib/getline.c: Whitespace fix, from coreutils.
18372
18373 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18374
18375         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
18376         Check for isascii.
18377
18378         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18379         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18380         Undo previous (whitespace-only) change.
18381
18382 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18383
18384         * lib/exclude.c: Include <ctype.h>
18385         (IN_CTYPE_DOMAIN): New macro.
18386         (is_space): New fn.
18387         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
18388         and empty lines.
18389
18390         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18391         Undo previous (whitespace-only) change.
18392
18393 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18394
18395         * config/srclist-update: Change update back to the old behavior,
18396         leaving whitespace alone.  Use one 'sed' command rather than a
18397         pipeline.
18398         (fixlicense): Now a variable, not a function.
18399         (remove_trailing_blanks): Remove.
18400         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
18401         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
18402         Undo previous (whitespace-only) change.
18403
18404 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18405
18406         Merge from coreutils.
18407         * modules/euidaccess: Add lib_SOURCES, include for new
18408         file euidaccess.h
18409
18410 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18411
18412         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18413         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18414         Normalize leading white space and remove trailing white space.
18415
18416         Merge from coreutils
18417         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
18418
18419         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
18420         0.12.1.  These files are now being upgraded automatically by
18421         ../config/srclist-update.
18422
18423 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18424
18425         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18426         Normalize leading white space and remove trailing white space.
18427         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
18428         notice, as per ../config/srclist-update.
18429
18430         Merge from coreutils.
18431         * lib/euidaccess.h: New file.
18432         * lib/euidaccess.c: Include it.
18433         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
18434         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
18435         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
18436
18437 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18438
18439         * config/srclist-update: Add copyright notice.
18440         (remove_id_lines, remove_trailing_blanks): New constants.
18441         (fixfile): Use them to normalize spacing a bit in copied files.
18442         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
18443         Normalize leading white space and remove trailing white space.
18444
18445         * config/texinfo.tex: Sync with texinfo.
18446
18447         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
18448         strtoul.c from libc, to merge coreutils whitespace changes.
18449
18450         * config/srclist.txt: Get the following m4 files from gettext:
18451         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
18452         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
18453         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
18454         wint_t.m4.
18455
18456 2003-08-12  Karl Berry  <karl@gnu.org>
18457
18458         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
18459         been made.
18460
18461 2003-08-11  Paul Eggert  <eggert@twinsun.com>
18462
18463         * modules/gnu-source, m4/gnu-source.m4:
18464         Remove; we're assuming Autoconf 2.54 or later now.
18465         Suggested by Bruno Haible.
18466         * MODULES.html.sh (func_all_modules): Remove gnu-source.
18467
18468 2003-08-11  Bruno Haible  <bruno@clisp.org>
18469
18470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
18471
18472 2003-08-11  Bruno Haible  <bruno@clisp.org>
18473
18474         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
18475         (vasnprintf): Use it instead of wcslen.
18476
18477 2003-08-11  Bruno Haible  <bruno@clisp.org>
18478
18479         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
18480         value to ensure that _Bool promotes to int. Use #define for _Bool when
18481         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
18482
18483 2003-08-10  Karl Berry  <karl@gnu.org>
18484
18485         * lib/regex.h: update from libc (whitespace fix).
18486
18487 2003-08-09  Paul Eggert  <eggert@twinsun.com>
18488
18489         Merge some files from coreutils.  These changes were
18490         originally made by Jim Meyering.
18491         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
18492         many older Unixes require this.
18493         * lib/alloca.c (alloca): Remove cast to argument of free;
18494         no longer needed in C89.
18495         * lib/alloca_.h, regex.h: Fix white space to match
18496         what GNU indent does.
18497
18498 2003-08-09  Paul Eggert  <eggert@twinsun.com>
18499
18500         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
18501         apparently Emacs's Unicode mode got confused before my 2003-08-05
18502         checkin.
18503
18504 2003-08-08  Paul Eggert  <eggert@twinsun.com>
18505
18506         * m4/extensions.m4: New file.
18507         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
18508         Require gl_USE_SYSTEM_EXTENSIONS.
18509         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
18510         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
18511
18512 2003-08-08  Paul Eggert  <eggert@twinsun.com>
18513
18514         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
18515         * modules/extensions, modules/gnu-source: New files.
18516         * modules/timespec, modules/unlocked-io: Depend on extensions.
18517
18518 2003-08-07  Paul Eggert  <eggert@twinsun.com>
18519
18520         * modules/restrict: New file.
18521         * MODULES.html.sh (func_all_modules): Add restrict.
18522         * modules/regex: Depend on restrict.
18523
18524 2003-08-07  Paul Eggert  <eggert@twinsun.com>
18525
18526         * m4/restrict.m4: New file.
18527         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
18528
18529 2003-08-07  Bruno Haible  <bruno@clisp.org>
18530
18531         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
18532         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
18533
18534 2003-08-07  Bruno Haible  <bruno@clisp.org>
18535
18536         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
18537         makes the module 'getndelim2' compatible with the module 'getline'.
18538
18539 2003-08-05  Paul Eggert  <eggert@twinsun.com>
18540
18541         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
18542         byte with "\201" to avoid glitches when editing that source file
18543         with multi-gnome-terminal.
18544
18545 2003-08-05  Paul Eggert  <eggert@twinsun.com>
18546
18547         * lib/bumpalloc.h: Remove.
18548
18549 2003-08-05  Paul Eggert  <eggert@twinsun.com>
18550
18551         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
18552         * modules/bumpalloc: Remove.
18553
18554 2003-08-04  Paul Eggert  <eggert@twinsun.com>
18555
18556         * lib/getloadavg.c: Change copyright notice and spacing to conform to
18557         GNU coding style.
18558
18559         Merge from coreutils.
18560         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
18561         1. From glibc.
18562         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
18563         from Karl Berry, implemented by Jim Meyering.
18564         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
18565         from Dmitry V. Levin.
18566         Remove anachronistic cast of xrealloc.
18567         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
18568         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
18569         type. Otherwise, it wouldn't compile with at least /bin/cc on
18570         ymp-cray-unicos9.0.2.X.
18571         Combine two mostly-identical uses of alloca into one.
18572         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
18573
18574 2003-08-04  Dave Love  <d.love@dl.ac.uk>
18575
18576         [From Emacs.]
18577
18578         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
18579         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
18580         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
18581         obsolete NLIST_NAME_UNION.
18582         [__GNU__]: Undef BSD and FSCALE.
18583         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
18584
18585 2003-08-03  Paul Eggert  <eggert@twinsun.com>
18586
18587         * lib/stdbool_.h (_Bool): Make it signed char, instead of
18588         an enum type, so that it's guaranteed to promote to int.  See:
18589         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
18590
18591 2003-08-03  Karl Berry  <karl@gnu.org>
18592
18593         * config/depcomp: update from automake.
18594
18595 2003-07-31  Paul Eggert  <eggert@twinsun.com>
18596
18597         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
18598         (strerror): Don't assume that a printable int fits in 14 bytes.
18599
18600 2003-07-31  Bruno Haible  <bruno@clisp.org>
18601
18602         * modules/getpass-gnu: New file.
18603         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
18604
18605 2003-07-31  Bruno Haible  <bruno@clisp.org>
18606
18607         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
18608
18609 2003-07-24  Karl Berry  <karl@gnu.org>
18610
18611         * config/missing: update from automake.
18612
18613 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
18614             Bruno Haible  <bruno@clisp.org>
18615
18616         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
18617         * lib/getline.c (getline, getdelim): Likewise.
18618         Remove _GNU_SOURCE define; now it's defined in config.h through
18619         m4/getline.m4.
18620
18621 2003-07-23  Karl Berry  <karl@gnu.org>
18622
18623         * config/config.sub: update from prep.
18624
18625 2003-07-22  Paul Eggert  <eggert@twinsun.com>
18626
18627         * modules/xalloc (Depends-on): Add exitfail.
18628         * modules/xmemcoll: Likewise.
18629
18630 2003-07-22  Paul Eggert  <eggert@twinsun.com>
18631
18632         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
18633         over-parenthesization in macros.
18634
18635         Sync with coreutils.
18636
18637         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
18638         required by C99.
18639
18640         Use `exit_failure' for xalloc and xmemcoll instead of their own
18641         private exit-failure variables.
18642         * lib/xalloc.h (xalloc_exit_failure): Remove.
18643         * lib/xmalloc.c: Likewise.  Include exitfail.h.
18644         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
18645         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
18646         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
18647         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
18648
18649 2003-07-20  Jim Meyering  <jim@meyering.net>
18650
18651         * modules/closeout (Depends-on): Add exitfail.
18652         Suggestion from Bruno Haible.
18653
18654 2003-07-19  Karl Berry  <karl@gnu.org>
18655
18656         * config/config.sub: update from prep.
18657
18658 2003-07-18  Paul Eggert  <eggert@twinsun.com>
18659
18660         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
18661         Remove.
18662         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
18663         to test that it can stand by itself.  Include "exitfail.h".
18664         Clients should set exit_failure instead.
18665         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
18666
18667 2003-07-18  Bruno Haible  <bruno@clisp.org>
18668
18669         * modules/getndelim2: New file.
18670         * modules/getline: Share files with module getndelim2.
18671         * modules/getnline: Depend on getndelim2 instead of sharing files with
18672         it. Add getnline.c to lib_SOURCES.
18673         * MODULES.html.sh (func_all_modules): Add getndelim2.
18674
18675 2003-07-18  Bruno Haible  <bruno@clisp.org>
18676
18677         * m4/getndelim2.m4: New file.
18678         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
18679         invoke gl_PREREQ_GETNDELIM2.
18680         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
18681         gl_PREREQ_GETNDELIM2.
18682         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
18683         gl_GETNDELIM2.
18684
18685 2003-07-18  Bruno Haible  <bruno@clisp.org>
18686
18687         * lib/getndelim2.h: New file.
18688         * lib/getndelim2.c: Make into a module of its own. Include config.h,
18689         getndelim2.h.
18690         (getndelim2): Make non-static. Change return type to ssize_t.
18691         * lib/getline.h: Change argument names.
18692         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
18693         * lib/getnline.c: Include getndelim2.h.
18694
18695 2003-07-18  Andreas Schwab  <schwab@suse.de>
18696
18697         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
18698
18699 2003-07-17  Karl Berry  <karl@gnu.org>
18700
18701         * config/config.sub: update from prep.
18702
18703 2003-07-17  Bruno Haible  <bruno@clisp.org>
18704
18705         * modules/getnline: New file.
18706         * modules/getline: Add lib/getndelim2.c to source file list.
18707         * MODULES.html.sh (func_all_modules): Add getnline.
18708
18709 2003-07-17  Bruno Haible  <bruno@clisp.org>
18710
18711         * m4/getnline.m4: New file.
18712
18713 2003-07-17  Bruno Haible  <bruno@clisp.org>
18714
18715         * m4/Makefile.am.in: Remove file.
18716         * m4/Makefile.am: Remove file.
18717         * m4/Makefile.in: Remove file.
18718
18719 2003-07-17  Bruno Haible  <bruno@clisp.org>
18720
18721         * lib/getnline.h: New file.
18722         * lib/getnline.c: New file.
18723         * lib/getndelim2.c: New file, extracted from getline.c.
18724         (getndelim2): Renamed from getdelim2, with added nmax argument.
18725         * lib/getline.c: Include getndelim2.c.
18726         (getdelim2): Moved out to getndelim2.c.
18727         (getline, getdelim): Update.
18728
18729 2003-07-17  Bruno Haible  <bruno@clisp.org>
18730
18731         * lib/Makefile.am: Remove file.
18732         * lib/Makefile.in: Remove file.
18733
18734 2003-07-17  Bruno Haible  <bruno@clisp.org>
18735
18736         * configure.in: Remove file.
18737         * Makefile.in: Remove file.
18738
18739 2003-07-17  Bruno Haible  <bruno@clisp.org>
18740
18741         * MODULES.html.sh: Put the </BODY> right before </HTML>.
18742
18743 2003-07-16  Karl Berry  <karl@gnu.org>
18744
18745         * config/srclist-update: was running fixlicense twice, which caused
18746                 texinfo.tex to be nullified for some reason.  Simplify,
18747                 $gplsrc is no longer needed as far as I can see?
18748
18749 2003-07-16  Jim Meyering  <jim@meyering.net>
18750
18751         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
18752
18753 2003-07-15  Paul Eggert  <eggert@twinsun.com>
18754
18755         * config/srclist.txt: Get the following files from gettext-runtime/intl
18756         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
18757         ref-del.sin.  From Bruno Haible.
18758         * config/srclist-update (fixfile): Change grep pattern again, since the
18759         previous fix didn't work (there was another trailing $).  Use
18760         '[$]' to escape the $s.
18761
18762 2003-07-15  Karl Berry  <karl@gnu.org>
18763
18764         * lib/vasnprintf.c: update from gettext.
18765
18766 2003-07-15  Karl Berry  <karl@gnu.org>
18767
18768         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
18769         gets expanded when surrounded by '$'.
18770
18771 2003-07-15  Jim Meyering  <jim@meyering.net>
18772
18773         * modules/save-cwd: Don't depend on error.  From Derek Price.
18774
18775 2003-07-15  Jim Meyering  <jim@meyering.net>
18776
18777         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
18778
18779 2003-07-14  Simon Josefsson  <jas@extundo.com>
18780
18781         * modules/mempcpy: New file.
18782         * MODULES.html.sh (func_all_modules): Add mempcpy.
18783
18784 2003-07-14  Simon Josefsson  <jas@extundo.com>
18785
18786         * m4/mempcpy.m4: New file.
18787
18788 2003-07-14  Simon Josefsson  <jas@extundo.com>
18789
18790         * lib/mempcpy.h: New file.
18791         * lib/mempcpy.c: New file.
18792
18793 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18794
18795         * modules/getdate, modules/posixtm: Depend on mktime.
18796
18797 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18798
18799         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
18800         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
18801         unicodeio.c, unicodeio.h, unlocked-io.h:
18802         Switch from LGPL to GPL.
18803
18804 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18805
18806         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
18807         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
18808         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
18809         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
18810         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
18811         updated automatically by ../config/srclist-update.  This changes
18812         their license from LPGL to GPL.
18813
18814 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18815
18816         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
18817         assumed to refer to the root of the most recent stable gettext version.
18818         * config/srclistvars.sh: Add defaults for eggert.
18819         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
18820         Match "This program" as well as "The program".  This is needed
18821         for gettext.
18822
18823 2003-07-14  Jim Meyering  <jim@meyering.net>
18824
18825         Don't emit diagnostics.  Let callers do that.
18826         * lib/save-cwd.c: Don't include "error.h".
18827         (save_cwd): Don't call error.  Ensure that errno is valid
18828         when returning nonzero.
18829
18830         * lib/save-cwd.h (restore_cwd): Update prototype.
18831         * lib/save-cwd.c (restore_cwd): Remove two parameters.
18832         Simplify.  Don't call error upon failure.  Let callers do that.
18833         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
18834         when auditing is enabled.  But don't bother updating the #if.
18835
18836 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
18837
18838         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
18839         it breaks C++ compilation.
18840         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
18841
18842 2003-07-10  Simon Josefsson  <jas@extundo.com>
18843
18844         * modules/strchrnul (Makefile.am): Add strchrnul.h.
18845
18846 2003-07-10  Jim Meyering  <jim@meyering.net>
18847
18848         * m4/clock_time.m4: Remove trailing blank.
18849         * m4/intmax_t.m4: Likewise.
18850
18851 2003-07-10  Jim Meyering  <jim@meyering.net>
18852
18853         * lib/vasnprintf.c: Remove trailing blanks.
18854         Make cpp indentation consistent.
18855
18856 2003-07-09  Paul Eggert  <eggert@twinsun.com>
18857
18858         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
18859         posixver.c, strftime.c, strnlen.c, strverscmp.c:
18860         Switch from LGPL to GPL.
18861
18862 2003-07-09  Paul Eggert  <eggert@twinsun.com>
18863
18864         * config/srclist.txt: Sort sublists.  Add
18865         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
18866         that differ from gnulib for one reason or another; we'd like this list
18867         to be smaller but for now let's document what we have.
18868
18869 2003-07-08  Paul Eggert  <eggert@twinsun.com>
18870
18871         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
18872         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
18873         and sweeter "eval x=$x".
18874         * config/srclist.txt: Get lib/argp* from glibc.
18875
18876 2003-07-07  Paul Eggert  <eggert@twinsun.com>
18877
18878         * lib/mktime.c: Fix some boundary cases and remove need for floating
18879         point.
18880
18881         Issue a compile-time diagnostic if time_t is floating point, or if
18882         two's complement arithmetic is not in effect, or if arithmetic
18883         right shift does not propagate the sign.  These assumptions were
18884         all in the original code but they weren't checked.
18885
18886         (TIME_T_MIDPOINT, verify): New macros.
18887         (__isleap): Remove; it has integer overflow problems.
18888         (leapyear): New function, without those problems.
18889         (ydhms_tm_diff): Remove; splitting into two parts.
18890         (ydhms_diff): New function, containing the arithmetic part of
18891         the old ydhms_tm_diff function.  Issue a compile-time
18892         diagnostic if we are not using C99 integer division.
18893         Avoid casts when possible.
18894         (guess_time_tm): New function, containing the checking part of
18895         the old ydhms_tm_diff function.  Return the new value, rather than
18896         the difference between it and the old.  Accept a new argument T
18897         so that *T specifies the old value.  Check for overflow in the result.
18898
18899         (__mktime_internal): Use a time_t offset, not a long int offset.
18900         This undoes the 2003-06-04 change, which is no longer needed now
18901         that we have better overflow checking.
18902         (localtime_offset): Likewise.
18903
18904         (__mktime_internal): Avoid harmful overflow on hosts where time_t
18905         and long are 64-bit but int is only 32-bit.
18906         (ydhms_diff): Use long int to store year1 and yday1.
18907         Issue a compile-time diagnostic if long int is not wide enough.
18908
18909         (__mktime_internal): Use long int to store adjusted year and yday.
18910         Use plain C rather than preprocessor commands, if that doesn't
18911         affect efficiency.
18912         Check for overflow (and try to repair) after each probe
18913         rather than checking only at the very end.  This avoids some bugs
18914         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
18915         does not equal GMT offset at maximum time).
18916         Use integer to check for overflow rather than floating point; this
18917         is more portable to non-IEEE hosts, and is a tad faster.
18918         When we detect that we are oscillating between two values,
18919         don't check whether tm_isdst has the requested value, since
18920         we already know the answer.  When tm_isdst has the wrong value,
18921         use a different heuristic to find the right one, based on the
18922         extreme values actually observed in practice in tz2003a,
18923         rather than the (overly optimistic) "previous 3 calendar quarters".
18924
18925         (not_equal_tm, print_tm, check_result): Use "const T" rather than
18926         "T const" to accommodate glibc style.
18927         (check_result): Use less-confusing report format.  "long" -> "long int.
18928         (main): Likewise.
18929         Don't loop if the iteration overflows time_t.
18930         Allow a negative step in the iteration.
18931
18932 2003-07-06  Karl Berry  <karl@gnu.org>
18933
18934         * config/depcomp: update from automake.
18935         * config/config.sub: update from prep.
18936
18937 2003-07-03  Karl Berry  <karl@gnu.org>
18938
18939         * config/config.guess: update from prep.
18940
18941 2003-07-01  Paul Eggert  <eggert@twinsun.com>
18942
18943         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
18944         xreadlink.c now includes it unconditionally.
18945
18946 2003-07-01  Paul Eggert  <eggert@twinsun.com>
18947
18948         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
18949         having it depend on HAVE_SYS_TYPES_H.
18950
18951 2003-07-01  Bruno Haible  <bruno@clisp.org>
18952
18953         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
18954         <sys/types.h> should be sufficient.
18955         Reported by Paul Eggert.
18956
18957 2003-06-26  Karl Berry  <karl@gnu.org>
18958
18959         * config/depcomp: update from automake.
18960
18961 2003-06-26  Bruno Haible  <bruno@clisp.org>
18962
18963         * modules/human: Depend on module stdbool.
18964
18965 2003-06-25  Bruno Haible  <bruno@clisp.org>
18966
18967         * modules/readlink: New file.
18968         * modules/xreadlink: Depend on it.
18969         * MODULES.html.sh (func_all_modules): Add readlink.
18970
18971 2003-06-25  Bruno Haible  <bruno@clisp.org>
18972
18973         * m4/readlink.m4: New file.
18974
18975 2003-06-25  Bruno Haible  <bruno@clisp.org>
18976
18977         * lib/readlink.c: New file.
18978
18979 2003-06-22  Karl Berry  <karl@gnu.org>
18980
18981         * config/srclist.txt: update mkinstalldirs from automake.
18982         * config/mkinstalldirs: update.
18983
18984 2003-06-22  Bruno Haible  <bruno@clisp.org>
18985
18986         Portability to mingw32.
18987         * m4/ssize_t.m4: New file, from GNU gettext.
18988         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
18989         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
18990
18991 2003-06-22  Bruno Haible  <bruno@clisp.org>
18992
18993         * modules/safe-read: Add m4/ssize_t.m4.
18994         * modules/xreadlink: Add m4/ssize_t.m4.
18995
18996 2003-06-20  Bruno Haible  <bruno@clisp.org>
18997
18998         Assume C89, so PARAMS isn't needed.
18999         * lib/unicodeio.h (PARAMS): Remove.
19000         * lib/unicodeio.c: Don't use PARAMS.
19001
19002 2003-06-18  Karl Berry  <karl@gnu.org>
19003
19004         * config/config.{guess,sub}: update from prep.
19005
19006 2003-06-18  Jim Meyering  <jim@meyering.net>
19007
19008         Merge changes from coreutils.
19009         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
19010         Remove explicit declarations of xmalloc and realloc.
19011         Include xalloc.h.
19012         (read_utmp): Remove anachronistic cast of xmalloc.
19013
19014 2003-06-17  Paul Eggert  <eggert@twinsun.com>
19015
19016         Assume C89, so PARAMS isn't needed.
19017         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
19018         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
19019         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
19020         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
19021         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
19022         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
19023         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
19024         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
19025         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
19026         lib/xstrtod.h, lib/xstrtol.h: Likewise.
19027         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
19028         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
19029         no longer needed. Anyway, config.h should always be included before any
19030         other file.
19031
19032 2003-06-11  Simon Josefsson  <jas@extundo.com>
19033
19034         * modules/sysexits: New file.
19035         * MODULES.html.sh (func_all_modules): Add sysexits.
19036
19037 2003-06-11  Simon Josefsson  <jas@extundo.com>
19038
19039         * lib/sysexit_.h: New file.
19040
19041 2003-06-11  Derek Price  <derek@ximbiot.com>
19042
19043         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
19044         necessary.
19045
19046 2003-06-11  Bruno Haible  <bruno@clisp.org>
19047
19048         * m4/sysexits.m4: New file.
19049
19050 2003-06-10  Simon Josefsson  <jas@extundo.com>
19051
19052         * lib/argp.h: New file, from glibc.
19053         * lib/argp-ba.c: New file, from glibc.
19054         * lib/argp-eexst.c: New file, from glibc.
19055         * lib/argp-fmtstream.c: New file, from glibc.
19056         * lib/argp-fmtstream.h: New file, from glibc.
19057         * lib/argp-fs-xinl.c: New file, from glibc.
19058         * lib/argp-help.c: New file, from glibc.
19059         * lib/argp-namefrob.h: New file, from glibc.
19060         * lib/argp-parse.c: New file, from glibc.
19061         * lib/argp-pv.c: New file, from glibc.
19062         * lib/argp-pvh.c: New file, from glibc.
19063         * lib/argp-xinl.c: New file, from glibc.
19064
19065 2003-06-10  Simon Josefsson  <jas@extundo.com>
19066
19067         * modules/strchrnul: New file.
19068
19069 2003-06-10  Simon Josefsson  <jas@extundo.com>
19070
19071         * modules/argp: New file.
19072
19073 2003-06-10  Simon Josefsson  <jas@extundo.com>
19074
19075         * m4/strchrnul.m4: New file.
19076
19077 2003-06-10  Simon Josefsson  <jas@extundo.com>
19078
19079         * lib/strchrnul.h: New file.
19080         * lib/strchrnul.c: New file.
19081
19082 2003-06-10  Bruno Haible  <bruno@clisp.org>
19083
19084         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
19085
19086 2003-06-07  Karl Berry  <karl@gnu.org>
19087
19088         * config/config.{guess,sub}: update from prep.
19089
19090 2003-06-07  Jim Meyering  <jim@meyering.net>
19091
19092         * modules/strtod: Use $(...) notation, not @...@ for
19093         AC_REPLACE'd variables.
19094         * modules/localcharset: Likewise.
19095
19096 2003-06-07  Jim Meyering  <jim@meyering.net>
19097
19098         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
19099         in place of my name in the copyright comment.
19100         Remove definition and uses of __P.
19101
19102         From coreutils.
19103         * lib/stat.c: Don't declare xmalloc explicitly.
19104         Instead, include "xalloc.h".
19105         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
19106         xrealloc, and xcalloc return values.
19107         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
19108         Improve comment.
19109         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
19110
19111 2003-06-07  Bruno Haible  <bruno@clisp.org>
19112
19113         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
19114         avoid AC_CONFIG_LINKS.
19115         * modules/fnmatch (Makefile.am): Use explicit creation rule for
19116         fnmatch.h, to avoid AC_CONFIG_LINKS.
19117         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
19118
19119 2003-06-07  Bruno Haible  <bruno@clisp.org>
19120
19121         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
19122         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
19123         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19124         directory.
19125         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
19126         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19127         directory.
19128
19129 2003-06-06  Jim Meyering  <jim@meyering.net>
19130
19131         Merge from coreutils.
19132         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
19133         Consolidate declarations and initializations of *_base* locals.
19134
19135         Merge from coreutils.
19136         This avoids a core dump on systems without GNU putenv,
19137         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
19138         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
19139         (unsetenv): New static function, from GNU libc.
19140         (rpl_putenv): Use it.
19141
19142         * lib/modechange.c: Remove trailing blanks.
19143
19144         Merge from coreutils.
19145         * lib/fsusage.c: Remove declaration of statfs.
19146         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
19147
19148         * lib/posixtm.c: Include <stdbool.h> unconditionally.
19149
19150 2003-06-06  Jim Meyering  <jim@meyering.net>
19151
19152         * lib/stdbool_.h: Renamed from stdbool.h.in.
19153
19154 2003-06-06  Jim Meyering  <jim@meyering.net>
19155             Bruno Haible  <bruno@clisp.org>
19156
19157         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
19158         Adjust Makefile.am snippet not to redirect directly to target.
19159         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
19160
19161 2003-06-05  Paul Eggert  <eggert@twinsun.com>
19162
19163         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
19164         mismatch, look in future quarters as well as past.  This fixes a
19165         bug when processing fall-backwards gaps immediately after a long
19166         period of daylight-saving time.
19167
19168         * lib/mktime.c: Assume freestanding C89 or better.
19169         (HAVE_LIMITS_H): Remove.  Assume it's 1.
19170         (__P): Remove; not used.
19171         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
19172         (mktime, not_equal_tm, print_tm, check_result,
19173         main): Use prototypes.  Use const * where appropriate.
19174         (main): Fix typo in testing code that uncovered by above changes.
19175         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
19176
19177 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19178
19179         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
19180         locale.h, localeconv.  This merges changes from coreutils.
19181
19182         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
19183         It can be removed after the next Autoconf is released.
19184         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
19185         needed.
19186
19187 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19188
19189         * lib/mktime.c: Fix Debian bug 177940
19190         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
19191         (localtime_offset): Now long int, not time_t, because we want it
19192         to be guaranteed to be signed.  All uses changed.
19193         (__mktime_internal): If overflow would occur when adding offset,
19194         don't add it.
19195
19196         Merge 'human' changes from coreutils.  Rewrite to support
19197         locale-specific notations like thousands separators.
19198         * lib/human.c: Simplify authorship notice.
19199         Include human.h immediately after config.h.
19200         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
19201         <limits.h>: Do not include, since human.h does.
19202         (SIZE_MAX, UINTMAX_MAX): New macros.
19203         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
19204         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
19205         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
19206         (power_letter): Renamed from suffixes.
19207         (generate_suffix_backwards): Remove.
19208         (adjust_value): Now takes int style (because of human.h changes)
19209         and long double value (for greater precision on some platforms).
19210         (group_number): New function.
19211         (human_readable): Use it.  Use integer options, not enum.
19212         Put the options before the sizes in the arg list.
19213         Support all the new options.
19214         The old human_readable function has been removed;
19215         use inttostr.h instead.
19216         (human_readable, default_block_size, humblock):
19217         Use uintmax_t, not int, for block sizes.
19218         (human_readable_inexact, block_size_types): Remove.
19219         (block_size_opts): New constant.
19220         (human_options): Renamed from human_block_size, with new signature
19221         that allows block sizes up to UINTMAX_MAX.  All callers changed.
19222         * lib/human.h: Add copyright and authorship notice.
19223         Include <limits.h> and <stdbool.h> unconditionally.
19224         (PARAMS): Remove.  All uses removed.
19225         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
19226         (enum human_inexact_style): Remove tag; now a nameless enum.
19227         (human_floor, human_ceiling, human_round_to_even): Now have
19228         values 2, 0, 1 rather than -1, 1, 0.
19229         (human_group_digits, human_suppress_point_zero, human_autoscale,
19230         human_base_1024, human_SI, human_B): New constants.
19231         (human_readable_inexact, human_block_size): Remove.
19232         (human_readable): Size args are now uintmax_t, not int.
19233         (human_options): New decl.
19234
19235         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
19236         unnecessary now that we assume C89 or better.  This change
19237         imported from coreutils.
19238
19239         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19240         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
19241         in the 2003-05-30 sync from glibc.
19242
19243         .h files should stand alone, but we shouldn't include <sys/types.h>
19244         if we can get away with just <stddef.h>.
19245
19246         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
19247         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
19248         rather than <sys/types.h>, as we merely need size_t.
19249         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
19250         to get size_t.
19251         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
19252         Include <stdio.h>, to get FILE.
19253         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
19254         memcasecmp.h has included <stddef.h> and all we need is size_t.
19255         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
19256         our interface, instead of including <sys/types.h>
19257
19258 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19259
19260         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
19261         now, as glibc mktime is buggy on non-glibc systems.
19262
19263 2003-06-03  Karl Berry  <karl@gnu.org>
19264
19265         * config/config.sub: update from prep.
19266
19267 2003-06-02  Paul Eggert  <eggert@twinsun.com>
19268
19269         [from coreutils]
19270         Fix some minor time-related bugs with POSIX time arguments.
19271         Some valid time stamps were being rejected (notably -1, and
19272         time stamps before 1900 on 64-bit hosts).  And some invalid
19273         time stamps were being accepted, e.g. September 31.
19274
19275         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
19276         that we can return (time_t) -1 successfully.
19277         * lib/posixtm.c: Likewise.
19278         [HAVE_STDBOOL_H]: Include <stdbool.h>.
19279         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
19280         (t): Remove static var.
19281         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
19282         of static var.  All uses changed.
19283         (year): Do not reject years before 1900; they can occur with
19284         64-bit time_t.
19285         (posix_time_parse): Do not check for out-of-range components;
19286         that is now the caller's responsibility, since our checks were
19287         only approximations.
19288         (posixtime): Use mktime to check for out-of-range components,
19289         since it knows them exactly.
19290         If mktime returns (time_t) -1, check whether an error actually occurred
19291         by invoking localtime on -1.
19292         (main) [TEST_POSIXTIME]: Check for input data errors, and report
19293         posixtime failures better.
19294         Improve the test data (in comments only).
19295
19296 2003-06-02  Karl Berry  <karl@gnu.org>
19297
19298         * config/mkinstalldirs (version): new variable.
19299         (--version): new option.
19300         (usage): improve message.
19301
19302 2003-05-30  Karl Berry  <karl@gnu.org>
19303
19304         * lib/mktime.c: update from libc.
19305
19306 2003-05-30  Bruno Haible  <bruno@clisp.org>
19307
19308         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
19309         * config/config.rpath: Upgrade to gettext-0.12.1.
19310
19311 2003-05-30  Bruno Haible  <bruno@clisp.org>
19312
19313         * m4/gettext.m4: Upgrade to gettext-0.12.1.
19314         * m4/nls.m4: New file, from gettext-0.12.1.
19315         * m4/po.m4: New file, from gettext-0.12.1.
19316         * m4/progtest.m4: Upgrade to gettext-0.12.1.
19317
19318 2003-05-30  Bruno Haible  <bruno@clisp.org>
19319
19320         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
19321         * lib/localcharset.h: Likewise.
19322         * lib/localcharset.c: Likewise.
19323
19324 2003-05-29  Karl Berry  <karl@gnu.org>
19325
19326         * config/config.rpath: update from gettext.
19327
19328 2003-05-28  Paul Eggert  <eggert@twinsun.com>
19329
19330         Assume the headers required for C89 freestanding compilers.
19331         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
19332         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
19333         * m4/human.m4 (gl_HUMAN): Likewise.
19334         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
19335         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
19336         * m4/userspec.m4 (gl_USERSPEC): Likewise.
19337         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
19338         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19339         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
19340
19341 2003-05-28  Paul Eggert  <eggert@twinsun.com>
19342
19343         Assume the headers required for C89 freestanding compilers.
19344         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
19345         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
19346         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
19347         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
19348         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
19349         define, since <limits.h> is guaranteed to do that.
19350         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
19351         * lib/exclude.c: Include <stdbool.h> unconditionally.
19352         * lib/tempname.c: Include <stddef.h> unconditionally.
19353         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
19354         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
19355         <stddef.h> does that.
19356         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
19357         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
19358         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
19359         needed.
19360         * lib/xstrtol.c: Likewise.
19361         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
19362         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
19363
19364         * lib/addext.c (addext): Use assignment rather than cast, to avoid
19365         warnings on some platforms.
19366
19367         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19368         arbitrarily.
19369
19370 2003-05-26  Jim Meyering  <jim@meyering.net>
19371
19372         Merge in a change from coreutils:
19373         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
19374         that is guaranteed to be `no'.  Use `no_such_member' to indicate
19375         that condition, rather than `-1' which is slightly misleading.
19376         Change the name of the cache variable to have the gl_ prefix.
19377         Prompted by a patch from Richard Dawe for DJGPP.
19378
19379 2003-05-24  Karl Berry  <karl@gnu.org>
19380
19381         * config/config.guess: update from prep.
19382
19383 2003-05-22  Karl Berry  <karl@gnu.org>
19384
19385         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
19386
19387 2003-05-20  Karl Berry  <karl@gnu.org>
19388
19389         * config/config.guess: update from prep.
19390
19391 2003-05-18  Karl Berry  <karl@gnu.org>
19392
19393         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
19394         might actually be set by the user.
19395
19396         * config/depcomp, install-sh, mdate-sh: update from automake.
19397
19398 2003-05-17  Bruno Haible  <bruno@clisp.org>
19399
19400         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
19401         invalid expansion for AC_EGREP_CPP.
19402         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19403         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19404         Suggested by Akim Demaille <akim@epita.fr> in
19405         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
19406
19407 2003-05-12  Jim Meyering  <jim@meyering.net>
19408
19409         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
19410         the space-padded-by-default conversion specifiers, %e, %k, %l.
19411
19412 2003-05-12  Bruno Haible  <bruno@clisp.org>
19413
19414         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
19415         the string is longer than 4 KB.
19416
19417 2003-05-11  Karl Berry  <karl@gnu.org>
19418
19419         * config/config.{guess,sub}: update from prep.
19420
19421 2003-05-09  Bruno Haible  <bruno@clisp.org>
19422
19423         * modules/error: Add m4/strerror_r.m4 to file list.
19424
19425 2003-05-03  Bruno Haible  <bruno@clisp.org>
19426
19427         Upgrade to Unicode-4.0.
19428         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
19429         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
19430         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
19431         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
19432         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
19433         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
19434         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
19435         Change width of U+E0100..U+E01EF from 1 to 0.
19436
19437 2003-04-25  Jim Meyering  <jim@meyering.net>
19438
19439         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
19440         of type size_t, not int.
19441
19442 2003-04-25  Bruno Haible  <bruno@clisp.org>
19443
19444         * lib/copy-file.c: Include <stddef.h>, for size_t.
19445
19446 2003-04-21  Paul Eggert  <eggert@twinsun.com>
19447
19448         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
19449         code which expansion is under static control.  Patch imported from
19450         Akim Demaille's patch to Bison; see
19451         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
19452
19453 2003-04-14  Bruno Haible  <bruno@clisp.org>
19454
19455         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
19456
19457 2003-04-11  Jim Meyering  <jim@meyering.net>
19458
19459         Merge changes from Coreutils.
19460
19461         2003-03-22  Jim Meyering  <jim@meyering.net>
19462
19463         * lib/strftime.c (widen): Cast alloca return value to proper type.
19464
19465         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
19466
19467         From GNU libc.
19468         * lib/strftime.c (my_strftime): Handle very large width
19469         specifications for numeric values correctly.  Improve checks for
19470         overflow.
19471
19472         2003-01-19  Jim Meyering  <jim@meyering.net>
19473
19474         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
19475         definitions.
19476         (nl_get_alt_digit) [! defined my_strftime]: Define.
19477         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
19478         _nl_get_alt_digit and _nl_get_walt_digit.
19479
19480         * lib/strftime.c (my_strftime): Merge in locale-related changes from
19481         libc. These changes have no effect outside of _LIBC.
19482
19483 2003-04-10  Bruno Haible  <bruno@clisp.org>
19484
19485         * modules/findprog: New file.
19486         * MODULES.html.sh (func_all_modules): Add it.
19487
19488 2003-04-10  Bruno Haible  <bruno@clisp.org>
19489
19490         * m4/findprog.m4: New file.
19491         * m4/eaccess.m4: New file.
19492
19493 2003-04-10  Bruno Haible  <bruno@clisp.org>
19494
19495         * lib/findprog.h: New file, from GNU gettext.
19496         * lib/findprog.c: New file, from GNU gettext.
19497
19498 2003-04-05  Jim Meyering  <jim@meyering.net>
19499
19500         Merge changes from Coreutils.
19501
19502         * lib/exclude.h (PARAMS): Remove definition and uses.
19503         * lib/exclude.c: Remove uses of `PARAMS'.
19504
19505         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
19506         Add test-cases for DOS filenames. Declare program_name.
19507         (main): Set up program_name.  Patch by Rich Dawe.
19508
19509         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
19510         error from mntctl.
19511         Use mntctl's return value to drive the entry-processing loop, since
19512         we can't rely on the value of the vmt_length member in the last
19513         entry.  On some systems doing so could result in exhausting
19514         virtual memory.  Based in part on a patch from Mike Jetzer.
19515
19516 2003-04-04  Bruno Haible  <bruno@clisp.org>
19517
19518         * modules/linebreak: New file.
19519         * MODULES.html.sh (func_all_modules): Add it.
19520
19521 2003-04-04  Bruno Haible  <bruno@clisp.org>
19522
19523         * m4/linebreak.m4: New file.
19524
19525 2003-04-04  Bruno Haible  <bruno@clisp.org>
19526
19527         * lib/linebreak.h: New file, from GNU gettext.
19528         * lib/linebreak.c: New file, from GNU gettext with slight
19529         modifications.
19530         * lib/lbrkprop.h: New file, from GNU gettext.
19531
19532 2003-04-03  Bruno Haible  <bruno@clisp.org>
19533
19534         * modules/utf8-ucs4: New file.
19535         * modules/utf16-ucs4: New file.
19536         * modules/ucs4-utf8: New file.
19537         * modules/ucs4-utf16: New file.
19538         * MODULES.html.sh (func_all_modules): Add them.
19539
19540 2003-04-03  Bruno Haible  <bruno@clisp.org>
19541
19542         * m4/utf-ucs4.m4: New file.
19543         * m4/ucs4-utf.m4: New file.
19544
19545 2003-04-03  Bruno Haible  <bruno@clisp.org>
19546
19547         * lib/utf8-ucs4.h: New file, from GNU gettext.
19548         * lib/utf16-ucs4.h: New file, from GNU gettext.
19549         * lib/ucs4-utf8.h: New file, from GNU gettext.
19550         * lib/ucs4-utf16.h: New file, from GNU gettext.
19551
19552 2003-04-02  Bruno Haible  <bruno@clisp.org>
19553
19554         * modules/binary-io: New file.
19555         * MODULES.html.sh (func_all_modules): Add it.
19556
19557 2003-04-02  Bruno Haible  <bruno@clisp.org>
19558
19559         * lib/binary-io.h: New file, from GNU gettext.
19560
19561 2003-04-01  Bruno Haible  <bruno@clisp.org>
19562
19563         * modules/pathname: New file.
19564         * MODULES.html.sh (func_all_modules): Add it.
19565
19566 2003-04-01  Bruno Haible  <bruno@clisp.org>
19567
19568         * lib/pathname.h: New file, from GNU gettext.
19569         * lib/concatpath.c: New file, from GNU gettext.
19570
19571 2003-03-30  Bruno Haible  <bruno@clisp.org>
19572
19573         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
19574
19575 2003-03-30  Bruno Haible  <bruno@clisp.org>
19576
19577         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
19578         function chown() doesn't exist.
19579
19580 2003-03-28  Bruno Haible  <bruno@clisp.org>
19581
19582         * modules/copy-file: New file.
19583         * MODULES.html.sh (func_all_modules): Add it.
19584
19585 2003-03-28  Bruno Haible  <bruno@clisp.org>
19586
19587         * m4/copy-file.m4: New file.
19588
19589 2003-03-28  Bruno Haible  <bruno@clisp.org>
19590
19591         * lib/copy-file.h: New file, from GNU gettext.
19592         * lib/copy-file.c: New file, from GNU gettext.
19593
19594 2003-03-18  Jim Meyering  <jim@meyering.net>
19595
19596         * lib/quote.c (quote_n): Fix typo in comment.
19597
19598 2003-03-18  Bruno Haible  <bruno@clisp.org>
19599
19600         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
19601         checking.
19602         * m4/onceonly_2_57.m4: Likewise.
19603
19604 2003-03-17  Bruno Haible  <bruno@clisp.org>
19605
19606         * m4/onceonly.m4: Require autoconf 2.54 or newer.
19607         (m4_quote): Remove macro.
19608         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
19609
19610 2003-03-14  Jim Meyering  <jim@meyering.net>
19611
19612         Merge changes from Coreutils.
19613         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
19614         to be const, in order to avoid warnings.
19615         (obstack_room): Likewise.
19616         (obstack_empty_p): Likewise.
19617
19618 2003-03-14  Bruno Haible  <bruno@clisp.org>
19619
19620         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
19621         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
19622
19623 2003-03-13  Paul Eggert  <eggert@twinsun.com>
19624
19625         Merge changes from Bison.
19626         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
19627         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
19628         when compiling Bison 1.875's `bitset bset = obstack_alloc
19629         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
19630         * lib/hash.c: Include <stdbool.h> unconditionally.
19631
19632 2003-03-13  Paul Eggert  <eggert@twinsun.com>
19633
19634         * m4/onceonly.m4 (m4_quote): New macro.
19635         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
19636         Quote AC_FOREACH variable-expansions properly.
19637
19638 2003-03-13  Paul Eggert  <eggert@twinsun.com>
19639
19640         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
19641
19642 2003-03-09  Paul Eggert  <eggert@twinsun.com>
19643
19644         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
19645         Reported by Bruce Becker; see:
19646         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
19647
19648 2003-03-03  Paul Eggert  <eggert@twinsun.com>
19649             Bruno Haible  <bruno@clisp.org>
19650
19651         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
19652         Reported by John Hughes, see
19653         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
19654
19655 2003-02-20  Bruno Haible  <bruno@clisp.org>
19656
19657         * MODULES.html.sh (func_all_modules): Add poll.
19658
19659 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
19660
19661         * modules/poll: New file.
19662
19663 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
19664
19665         * lib/poll_.h: New file.
19666         * lib/poll.c: New file.
19667
19668 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
19669
19670         * m4/poll.m4: New file.
19671
19672 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
19673
19674         * modules/mathl: New file.
19675
19676 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
19677
19678         * lib/mathl.h: New file.
19679         * lib/acosl.c: New file.
19680         * lib/asinl.c: New file.
19681         * lib/atanl.c: New file.
19682         * lib/ceill.c: New file.
19683         * lib/cosl.c: New file.
19684         * lib/expl.c: New file.
19685         * lib/floorl.c: New file.
19686         * lib/frexpl.c: New file.
19687         * lib/ldexpl.c: New file.
19688         * lib/logl.c: New file.
19689         * lib/sincosl.c: New file.
19690         * lib/sinl.c: New file.
19691         * lib/sqrtl.c: New file.
19692         * lib/tanl.c: New file.
19693         * lib/trigl.c: New file.
19694         * lib/trigl.h: New file.
19695
19696 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
19697
19698         * m4/mathl.m4: New file.
19699
19700 2003-02-18  Bruno Haible  <bruno@clisp.org>
19701
19702         * MODULES.html.sh (func_all_modules): Add mathl.
19703
19704 2003-02-17  Bruno Haible  <bruno@clisp.org>
19705
19706         * modules/mkdtemp: New module.
19707         * MODULES.html.sh (func_all_modules): Add it.
19708
19709 2003-02-17  Bruno Haible  <bruno@clisp.org>
19710
19711         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
19712
19713 2003-02-17  Bruno Haible  <bruno@clisp.org>
19714
19715         * lib/mkdtemp.h: New file, from GNU gettext.
19716         * lib/mkdtemp.c: New file, from GNU gettext.
19717
19718 2003-02-02  Jim Meyering  <jim@meyering.net>
19719
19720         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
19721         e.g. glibc-2.2.93.
19722
19723 2003-01-31  Bruno Haible  <bruno@clisp.org>
19724
19725         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
19726         'rpl_rename'.
19727         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
19728         'rpl_strnlen'.
19729         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
19730         'rpl_strtod'.
19731         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
19732         'rpl_utime'.
19733
19734 2003-01-31  Bruno Haible  <bruno@clisp.org>
19735
19736         * lib/rename.c: #undef rename before defining rpl_rename.
19737         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
19738
19739 2003-01-30  Bruno Haible  <bruno@clisp.org>
19740
19741         * modules/vasnprintf, modules/vasprintf: New modules.
19742         * MODULES.html.sh (func_all_modules): Add them.
19743
19744 2003-01-30  Bruno Haible  <bruno@clisp.org>
19745
19746         * m4/signed.m4: New file, from GNU gettext.
19747         * m4/longdouble.m4: New file, from GNU gettext.
19748         * m4/wchar_t.m4: New file, from GNU gettext.
19749         * m4/wint_t.m4: New file, from GNU gettext.
19750         * m4/vasnprintf.m4: New file.
19751         * m4/vasprintf.m4: New file.
19752
19753 2003-01-30  Bruno Haible  <bruno@clisp.org>
19754
19755         * lib/printf-args.h: New file, from GNU gettext.
19756         * lib/printf-args.c: New file, from GNU gettext.
19757         * lib/printf-parse.h: New file, from GNU gettext.
19758         * lib/printf-parse.c: New file, from GNU gettext.
19759         * lib/vasnprintf.h: New file, from GNU gettext.
19760         * lib/vasnprintf.c: New file, from GNU gettext.
19761         * lib/asnprintf.c: New file, from GNU gettext.
19762         * lib/vasprintf.h: New file, from GNU gettext with modifications.
19763         * lib/vasprintf.c: New file, from GNU gettext.
19764         * lib/asprintf.c: New file, from GNU gettext.
19765
19766 2003-01-29  Bruno Haible  <bruno@clisp.org>
19767
19768         * modules/stpncpy: New module.
19769         * MODULES.html.sh (func_all_modules): Add it.
19770
19771 2003-01-29  Bruno Haible  <bruno@clisp.org>
19772
19773         * m4/stpncpy.m4: New file.
19774
19775 2003-01-29  Bruno Haible  <bruno@clisp.org>
19776
19777         * lib/stpncpy.h: New file, from GNU gettext with modifications.
19778         * lib/stpncpy.c: New file, from GNU gettext with modifications.
19779
19780 2003-01-28  Bruno Haible  <bruno@clisp.org>
19781
19782         * modules/c-ctype: New module.
19783         * MODULES.html.sh (func_all_modules): Add it.
19784
19785 2003-01-28  Bruno Haible  <bruno@clisp.org>
19786
19787         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
19788         Paul Eggert.
19789         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
19790         Paul Eggert.
19791
19792 2003-01-27  Bruno Haible  <bruno@clisp.org>
19793
19794         * modules/xsetenv: New module.
19795         * MODULES.html.sh (func_all_modules): Add it.
19796
19797 2003-01-27  Bruno Haible  <bruno@clisp.org>
19798
19799         * lib/xsetenv.h: New file, from GNU gettext.
19800         * lib/xsetenv.c: New file, from GNU gettext.
19801
19802 2003-01-23  Jim Meyering  <jim@meyering.net>
19803
19804         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
19805         from working on systems without dirfd (at least Irix and OSF1/Tru64).
19806
19807 2003-01-23  Bruno Haible  <bruno@clisp.org>
19808
19809         * modules/minmax: New module.
19810         * MODULES.html.sh (func_all_modules): Add it.
19811
19812 2003-01-23  Bruno Haible  <bruno@clisp.org>
19813
19814         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
19815         Eggert.
19816
19817 2003-01-22  Bruno Haible  <bruno@clisp.org>
19818
19819         * modules/exit: New module.
19820         * MODULES.html.sh (func_all_modules): Add it.
19821
19822 2003-01-22  Bruno Haible  <bruno@clisp.org>
19823
19824         * lib/exit.h: New file, from GNU gettext.
19825
19826 2003-01-19  Bruno Haible  <bruno@clisp.org>
19827
19828         * gnulib-tool: Recognize option --extract-maintainer.
19829         (func_get_maintainer): New function.
19830         * modules/*: Add Maintainer entry.
19831
19832 2003-01-16  Jim Meyering  <jim@meyering.net>
19833
19834         * m4/regex.m4: The `regex' struct is both input and output.
19835         Initialize it before each use.  Patch by Tim Waugh.
19836
19837 2003-01-16  Bruno Haible  <bruno@clisp.org>
19838
19839         * MODULES.html.sh: Add a table of contents. Add the module name as
19840         leftmost column. Add hyperlinks.
19841
19842 2003-01-15  Bruno Haible  <bruno@clisp.org>
19843
19844         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
19845
19846 2003-01-15  Bruno Haible  <bruno@clisp.org>
19847
19848         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
19849         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
19850         suffix.
19851
19852 2003-01-15  Bruno Haible  <bruno@clisp.org>
19853
19854         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
19855
19856 2003-01-15  Bruno Haible  <bruno@clisp.org>
19857
19858         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
19859         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
19860
19861 2003-01-14  Jim Meyering  <jim@meyering.net>
19862
19863         * lib/same.c (same_name): Tweak a comment.
19864
19865 2003-01-14  Bruno Haible  <bruno@clisp.org>
19866
19867         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
19868         when a string comparison is sufficient.
19869
19870 2003-01-14  Bruno Haible  <bruno@clisp.org>
19871
19872         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
19873         'unsigned int'.
19874
19875 2003-01-14  Bruno Haible  <bruno@clisp.org>
19876
19877         * lib/hash-pjw.c: Add comment about low quality of this function.
19878
19879 2003-01-13  Bruno Haible  <bruno@clisp.org>
19880
19881         * modules/stpcpy: Distribute lib/stpcpy.h.
19882         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
19883
19884 2003-01-13  Bruno Haible  <bruno@clisp.org>
19885
19886         * modules/*: Add a description.
19887         * modules/strpbrk: Fix Makefile.am snippet.
19888         * modules/strtoimax: Fix dependencies.
19889         * modules/strtoumax: Likewise.
19890
19891 2003-01-13  Bruno Haible  <bruno@clisp.org>
19892
19893         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
19894         * modules/alloca (Makefile.am): All object files depend on alloca.h.
19895         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
19896
19897 2003-01-13  Bruno Haible  <bruno@clisp.org>
19898
19899         * gnulib-tool (func_create_testdir): Store config/* files in the main
19900         directory.
19901         * config.rpath: Move to ...
19902         * config/config.rpath: ... here.
19903         * modules/gettext: Contains config/config.rpath, not config.rpath.
19904         * modules/iconv: Likewise.
19905
19906 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19907
19908         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19909         to avoid collisions with libcurses and libreadline.
19910
19911         * m4/getstr.m4: Remove.
19912         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
19913
19914 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19915
19916         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19917         to avoid collisions with libcurses and libreadline.
19918
19919         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
19920         * lib/getstr.h, getstr.c: Remove.
19921         * lib/getline.c: Include "getline.h", to check interface.
19922         Move body of old getstr.c here: this defines MIN_CHUNK and
19923         declares getdelim2, which is renamed from getstr.
19924         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
19925
19926         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
19927         All uses changed.
19928         * lib/linebuffer.h: Likewise.
19929         (readline): Remove backward-compatibility macro.
19930
19931 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19932
19933         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19934         to avoid collisions with libcurses and libreadline.
19935         * getstr: Remove.
19936         * MODULES.html.sh: Remove getstr.
19937         * modules/getline: Depend on unlocked-io, not getstr.
19938
19939 2003-01-12  Jim Meyering  <jim@meyering.net>
19940
19941         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
19942
19943 2003-01-10  Bruno Haible  <bruno@clisp.org>
19944
19945         * modules/alloca: Change Makefile.am requirements. Simplify Include
19946         requirements. Add lib/alloca_.h to file list.
19947
19948 2003-01-10  Bruno Haible  <bruno@clisp.org>
19949
19950         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
19951
19952 2003-01-10  Bruno Haible  <bruno@clisp.org>
19953
19954         * lib/alloca_.h: New file.
19955         * lib/getdate.y: Unconditionally include alloca.h.
19956         * lib/makepath.c: Likewise.
19957         * lib/setenv.c: Likewise.
19958         * lib/userspec.c: Likewise.
19959
19960 2003-01-09  Karl Berry  <karl@gnu.org>
19961
19962         * MODULES.html.sh: include `dirname $0` in PATH, to find
19963         gnulib-tool.
19964
19965 2003-01-09  Bruno Haible  <bruno@clisp.org>
19966
19967         * modules/stdbool: Change configure.ac, Makefile.am requirements.
19968         Simplify Include requirements. Add lib/stdbool.h.in to file list.
19969
19970 2003-01-09  Bruno Haible  <bruno@clisp.org>
19971
19972         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
19973
19974 2003-01-09  Bruno Haible  <bruno@clisp.org>
19975
19976         * lib/stdbool.h.in: New file.
19977
19978 2003-01-09  Bruno Haible  <bruno@clisp.org>
19979
19980         * gnulib-tool (func_all_modules): Ignore files ending in ~.
19981         * MODULES.html.sh: Likewise.
19982
19983 2003-01-08  Jim Meyering  <jim@meyering.net>
19984
19985         * lib/full-write.c: Undefine and define-away `const' after inclusion
19986         of errno.h, not before.  Suggestion from Bruno Haible.
19987
19988 2003-01-08  Bruno Haible  <bruno@clisp.org>
19989
19990         * modules/full-read: Depend on full-write.
19991
19992 2003-01-08  Bruno Haible  <bruno@clisp.org>
19993
19994         * lib/safe-read.c: Include specification header first, to ensure its
19995         selfcontainedness.
19996         * lib/full-write.c: Likewise.
19997
19998 2003-01-07  Jim Meyering  <jim@meyering.net>
19999
20000         * lib/full-write.c: Rework so that it may serve to define full_read,
20001         too.
20002         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
20003
20004 2003-01-07  Bruno Haible  <bruno@clisp.org>
20005
20006         * lib/strtoimax.c: Include <stdint.h> as an alternative to
20007         <inttypes.h>.
20008         * lib/xstrtol.h: Likewise.
20009         * lib/xstrtoimax.c: Likewise.
20010         * lib/xstrtoumax.c: Likewise.
20011         * lib/human.h: Likewise.
20012
20013         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
20014         on systems that have <inttypes.h> but not <stdint.h>.
20015
20016 2003-01-07  Bruno Haible  <bruno@clisp.org>
20017
20018         * MODULES.html.sh: Add copyright notice.
20019         (missed_files): Omit CVS directory entries.
20020         (func_module): Make it work with sed-3.02.
20021         * MODULES.txt: Remove file.
20022
20023 2003-01-06  Jim Meyering  <jim@meyering.net>
20024
20025         * lib/version-etc.c: Update year in translatable copyright string.
20026
20027 2003-01-03  Karl Berry  <karl@gnu.org>
20028
20029         * config/config.{guess,sub}: update from prep.
20030
20031 2003-01-02  Karl Berry  <karl@gnu.org>
20032
20033         * doc/COPYING.DOC: belatedly updated to 1.2.
20034
20035 2003-01-01  Karl Berry  <karl@gnu.org>
20036
20037         * gnulib-tool (func_verify_module): report module name $module in
20038         error message, not $1.
20039         * gnulib-tool (create-testdir): don't complain if destdir couldn't
20040         be created, only if it doesn't exist.
20041         * gnulib-tool (last_checkin_date): don't expand the $Date here.
20042
20043 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20044
20045         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
20046
20047 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20048
20049         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
20050         memcmp if strcoll doesn't work.
20051
20052 2002-12-31  Bruno Haible  <bruno@clisp.org>
20053
20054         * lib/utime.c (utime_null): No need to call ftruncate if the file was
20055         nonempty.
20056
20057 2002-12-31  Bruno Haible  <bruno@clisp.org>
20058
20059         * lib/memcoll.c (STRCOLL): New macro.
20060         (memcoll): Use it.
20061
20062 2002-12-31  Bruno Haible  <bruno@clisp.org>
20063
20064         * lib/localcharset.h: New file.
20065         * lib/localcharset.c: Include it.
20066         * lib/unicodeio.c: Likewise.
20067
20068 2002-12-31  Bruno Haible  <bruno@clisp.org>
20069
20070         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
20071         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
20072
20073 2002-12-31  Bruno Haible  <bruno@clisp.org>
20074
20075         * lib/getline.h: Include <stddef.h>, for size_t.
20076
20077         * lib/unicodeio.h: Include <stddef.h>, for size_t.
20078         * lib/unicodeio.c: Don't include <stddef.h>.
20079
20080 2002-12-31  Bruno Haible  <bruno@clisp.org>
20081
20082         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
20083         HAVE_TM_ZONE.
20084
20085 2002-12-24  Karl Berry  <karl@gnu.org>
20086
20087         * config/config.guess: update from prep.
20088
20089 2002-12-24  Bruno Haible  <bruno@clisp.org>
20090
20091         General infrasructure.
20092         * m4/README: Rewritten.
20093         * m4/onceonly.m4: New file.
20094         * m4/onceonly_2_57.m4: New file.
20095
20096         Module atexit.
20097         * m4/atexit.m4: New file.
20098
20099         Module strtod.
20100         * m4/strtod.m4: New file.
20101
20102         Module strtol.
20103         * m4/strtol.m4: New file.
20104
20105         Module strtoul.
20106         * m4/strtoul.m4: New file.
20107
20108         Module memchr.
20109         * m4/memchr.m4: New file.
20110
20111         Module memcmp.
20112         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
20113         (jm_FUNC_MEMCMP): Invoke it.
20114
20115         Module memcpy.
20116         * m4/memcpy.m4: New file.
20117
20118         Module memmove.
20119         * m4/memmove.m4: New file.
20120
20121         Module memset.
20122         * m4/memset.m4: New file.
20123
20124         Module strcspn.
20125         * m4/strcspn.m4: New file.
20126
20127         Module strpbrk.
20128         * m4/strpbrk.m4: New file.
20129
20130         Module strstr.
20131         * m4/strstr.m4: New file.
20132
20133         Module strerror.
20134         * m4/strerror.m4: New file.
20135
20136         Module mktime.
20137         * m4/mktime.m4: Renamed from jm-mktime.m4.
20138         (gl_PREREQ_MKTIME): New macro.
20139         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
20140
20141         Module malloc.
20142         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
20143         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
20144         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
20145
20146         Module realloc.
20147         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
20148         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
20149         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
20150
20151         Module strftime.
20152         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
20153         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
20154         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
20155         gl_TM_GMTOFF.
20156         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
20157
20158         Module xalloc.
20159         * m4/xalloc.m4: New file.
20160
20161         Module alloca.
20162         * m4/alloca.m4: New file.
20163
20164         Module putenv.
20165         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
20166         (jm_FUNC_PUTENV): Invoke it.
20167
20168         Module setenv.
20169         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
20170         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
20171         when invoked twice.
20172         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
20173         gt_FUNC_SETENV.
20174
20175         Module memrchr.
20176         * m4/memrchr.m4: New file.
20177
20178         Module stpcpy.
20179         * m4/stpcpy.m4: New file.
20180
20181         Module strcase.
20182         * m4/strcase.m4: New file.
20183
20184         Module strdup.
20185         * m4/strdup.m4: New file.
20186
20187         Module strnlen.
20188         * m4/strnlen.m4: New file.
20189
20190         Module strndup.
20191         * m4/strndup.m4: New file.
20192
20193         Module xstrtod.
20194         * m4/xstrtod.m4: New file.
20195
20196         Module xstrtol.
20197         * m4/xstrtol.m4: New file.
20198
20199         Module getdate.
20200         * m4/getdate.m4: New file.
20201
20202         Module unlocked-io.
20203         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
20204         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
20205         * m4/jm-glibc-io.m4n: Remove file.
20206
20207         Module long-options.
20208         * m4/long-options.m4: New file.
20209
20210         Module md5.
20211         * m4/md5.m4: New file.
20212
20213         Module sha.
20214         * m4/sha.m4: New file.
20215
20216         Module getstr.
20217         * m4/getstr.m4: New file.
20218
20219         Module getline.
20220         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
20221         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
20222         <sys/types.h>, for size_t. Use the function name gnu_getline, not
20223         simply getline. Infoke gl_PREREQ_GETLINE.
20224
20225         Module obstack.
20226         * m4/obstack.m4: New file.
20227
20228         Module hash.
20229         * m4/hash.m4: New file.
20230
20231         Module readtokens.
20232         * m4/readtokens.m4: New file.
20233
20234         Module strverscmp.
20235         * m4/strverscmp.m4: New file.
20236
20237         Module stdbool.
20238         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
20239         OSF/1.
20240
20241         Module strtoll.
20242         * m4/strtoll.m4: New file.
20243
20244         Module strtoull.
20245         * m4/strtoull.m4: New file.
20246
20247         Module strtoimax.
20248         * m4/strtoimax.m4: New file.
20249
20250         Module strtoumax.
20251         * m4/strtoumax.m4: New file.
20252
20253         Module xstrtoimax.
20254         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
20255         jm_AC_PREREQ_XSTRTOIMAX.
20256         Moved the strtol prerequisites to strtol.m4.
20257         Moved the strtoll prerequisites to strtoll.m4.
20258         Moved the strtoimax prerequisites to strtoimax.m4.
20259
20260         Module xstrtoumax.
20261         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
20262         jm_AC_PREREQ_XSTRTOUMAX.
20263         Moved the strtoul prerequisites to strtoul.m4.
20264         Moved the strtoull prerequisites to strtoull.m4.
20265         Moved the strtoumax prerequisites to strtoumax.m4.
20266
20267         Module chown.
20268         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
20269         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
20270
20271         Module dup2.
20272         * m4/dup2.m4: New file.
20273
20274         Module ftruncate.
20275         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
20276         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
20277
20278         Module getgroups.
20279         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
20280         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
20281
20282         Module gettimeofday.
20283         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
20284         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
20285         gl_PREREQ_GETTIMEOFDAY.
20286
20287         Module mkdir.
20288         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
20289         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
20290
20291         Module mkstemp.
20292         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
20293         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
20294         jm_AC_TYPE_UINTMAX_T.
20295         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
20296
20297         Module stat.
20298         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
20299         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
20300
20301         Module lstat.
20302         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
20303         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
20304
20305         Module timespec.
20306         * m4/timespec.m4 (gl_TIMESPEC): New macro.
20307         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
20308         * m4/st_mtim.m4: Indentation.
20309
20310         Module nanosleep.
20311         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
20312         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
20313         gl_PREREQ_NANOSLEEP.
20314
20315         Module regex.
20316         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
20317         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
20318         (gl_REGEX): New macro.
20319
20320         Module rename.
20321         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
20322         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
20323
20324         Module rmdir.
20325         * m4/rmdir.m4: New file.
20326
20327         Module utime.
20328         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
20329         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
20330         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
20331
20332         Module dirname.
20333         * m4/dirname.m4: New file.
20334
20335         Module getopt.
20336         * m4/getopt.m4: New file.
20337
20338         Module unistd-safer.
20339         * m4/unistd-safer.m4: New file.
20340
20341         Module fnmatch.
20342         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
20343         declaration.
20344         (gl_PREREQ_FNMATCH_EXTRA): New macro.
20345         (gl_FUNC_FNMATCH_POSIX): New macro.
20346         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
20347         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
20348         simply fnmatch.
20349
20350         Module exclude.
20351         * m4/exclude.m4: New file.
20352
20353         Module human.
20354         * m4/human.m4: New file.
20355
20356         Module acl.
20357         * m4/acl.m4: Nop.
20358
20359         Module backupfile.
20360         * m4/backupfile.m4: New file.
20361         * m4/d-ino.m4: Indentation.
20362
20363         Module fsusage.
20364         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
20365         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
20366         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
20367
20368         Module dirfd.
20369         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
20370         requirements.
20371
20372         Module euidaccess.
20373         * m4/euidaccess.m4: New file.
20374
20375         Module file-type.
20376         * m4/file-type.m4: New file.
20377
20378         Module fileblocks.
20379         * m4/fileblocks.m4: New file.
20380
20381         Module filemode.
20382         * m4/filemode.m4: New file.
20383
20384         Module isdir.
20385         * m4/isdir.m4: New file.
20386
20387         Module lchown.
20388         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
20389         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
20390
20391         Module makepath.
20392         * m4/makepath.m4: New file.
20393
20394         Module modechange.
20395         * m4/modechange.m4: New file.
20396
20397         Module mountlist.
20398         * m4/mountlist.m4: New file.
20399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
20400         Indentation.
20401
20402         Module path-concat.
20403         * m4/path-concat.m4: New file.
20404
20405         Module pathmax.
20406         * m4/pathmax.m4: New file.
20407
20408         Module same.
20409         * m4/same.m4: New file.
20410
20411         Module save-cwd.
20412         * m4/save-cwd.m4: New file.
20413
20414         Module savedir.
20415         * m4/savedir.m4: New file.
20416
20417         Module xgetcwd.
20418         * m4/xgetcwd.m4: New file.
20419         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
20420
20421         Module xreadlink.
20422         * m4/xreadlink.m4: New file.
20423
20424         Module safe-read.
20425         * m4/safe-read.m4: New file.
20426
20427         Module safe-write.
20428         * m4/safe-write.m4: New file.
20429
20430         Module closeout.
20431         * m4/closeout.m4: New file.
20432
20433         Module stdio-safer.
20434         * m4/stdio-safer.m4: New file.
20435
20436         Module getpass.
20437         * m4/getpass.m4: New file.
20438
20439         Module getugroups.
20440         * m4/getugroups.m4: New file.
20441
20442         Module group-member.
20443         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
20444         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
20445
20446         Module idcache.
20447         * m4/idcache.m4: New file.
20448
20449         Module userspec.
20450         * m4/userspec.m4: New file.
20451
20452         Module gettime.
20453         * m4/clock_time.m4: New file.
20454         * m4/gettime.m4: New file.
20455
20456         Module settime.
20457         * m4/settime.m4: New file.
20458
20459         Module posixtm.
20460         * m4/posixtm.m4: New file.
20461
20462         Module gethostname.
20463         * m4/gethostname.m4: New file.
20464
20465         Module canon-host.
20466         * m4/canon-host.m4: New file.
20467
20468         Module gettext.
20469         * m4/codeset.m4: New file, from gettext-0.11.5.
20470         * m4/gettext.m4: New file, from gettext-0.11.5.
20471         * m4/glibc21.m4: New file, from gettext-0.11.5.
20472         * m4/iconv.m4: New file, from gettext-0.11.5.
20473         * m4/intdiv0.m4: New file, from gettext-0.11.5.
20474         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
20475         * m4/inttypes.m4: New file, from gettext-0.11.5.
20476         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
20477         * m4/isc-posix.m4: New file, from gettext-0.11.5.
20478         * m4/lcmessage.m4: New file, from gettext-0.11.5.
20479         * m4/lib-ld.m4: New file, from gettext-0.11.5.
20480         * m4/lib-link.m4: New file, from gettext-0.11.5.
20481         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
20482         * m4/progtest.m4: New file, from gettext-0.11.5.
20483         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
20484         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
20485         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
20486
20487         Module localcharset.
20488         * m4/localcharset.m4: New file.
20489
20490         Module hard-locale.
20491         * m4/hard-locale.m4: New file.
20492
20493         Module mbswidth.
20494         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
20495         onceonly macros.
20496         * m4/mbrtowc.m4: Add comment.
20497
20498         Module memcasecmp.
20499         * m4/memcasecmp.m4: New file.
20500
20501         Module memcoll.
20502         * m4/memcoll.m4: New file.
20503
20504         Module unicodeio.
20505         * m4/unicodeio.m4: New file.
20506
20507         Module rpmatch.
20508         * m4/rpmatch.m4: New file.
20509
20510         Module yesno.
20511         * m4/yesno.m4: New file.
20512
20513         Module exitfail.
20514         * m4/exitfail.m4: New file.
20515
20516         Module c-stack.
20517         * m4/c-stack.m4 (gl_C_STACK): New macro.
20518         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
20519
20520         Module error.
20521         * m4/error.m4 (gl_ERROR): New macro.
20522         (jm_PREREQ_ERROR): Use onceonly macros.
20523
20524         Module fatal.
20525         * m4/fatal.m4: New file.
20526
20527         Module getloadavg.
20528         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
20529         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
20530
20531         Module getpagesize.
20532         * m4/getpagesize.m4: New file.
20533
20534         Module getusershell.
20535         * m4/getusershell.m4: New file.
20536
20537         Module physmem.
20538         * m4/physmem.m4: New file.
20539
20540         Module posixver.
20541         * m4/posixver.m4: New file.
20542
20543         Module quotearg.
20544         * m4/quotearg.m4: New file.
20545
20546         Module quote.
20547         * m4/quote.m4: New file.
20548
20549         Module readutmp.
20550         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
20551
20552         Module sig2str.
20553         * m4/sig2str.m4: New file.
20554
20555         Other.
20556         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
20557         ulonglong.m4.
20558         * m4/intmax_t.m4: New file.
20559         * m4/d-type.m4: Indentation.
20560         * m4/jm-macros.m4: Update.
20561         * m4/prereq.m4 (jm_PREREQ): Update.
20562         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
20563         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
20564         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
20565         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
20566         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
20567         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
20568         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
20569         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
20570         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
20571         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
20572         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
20573         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
20574         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
20575         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
20576         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
20577         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
20578         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
20579         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
20580         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
20581
20582 2002-12-24  Bruno Haible  <bruno@clisp.org>
20583
20584         * MODULES.txt: Update according to m4/ changes.
20585
20586         Module gettext.
20587         * config.rpath: New file, from gettext-0.11.5.
20588
20589         * modules/*: New module descriptions.
20590         * gnulib-tool: New file.
20591         * MODULES.html.sh: New file.
20592
20593 2002-12-21  Karl Berry  <karl@gnu.org>
20594
20595         * doc/fdl.texi: update to version 1.2.
20596
20597 2002-12-19  Karl Berry  <karl@gnu.org>
20598
20599         * config/config.guess: update from prep.
20600
20601 2002-12-18  Bruno Haible  <bruno@clisp.org>
20602
20603         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
20604         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
20605
20606 2002-12-17  Bruno Haible  <bruno@clisp.org>
20607
20608         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
20609         stdlib.h, string.h.
20610
20611 2002-12-17  Bruno Haible  <bruno@clisp.org>
20612
20613         * lib/canon-host.c (strdup): Remove unused declaration.
20614
20615         * lib/fsusage.c: Include full_read.h.
20616         (get_fs_usage): Use full_read instead of safe_read.
20617
20618         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
20619
20620 2002-12-12  Karl Berry  <karl@gnu.org>
20621
20622         * config/config.guess: update from prep.
20623
20624 2002-12-11  Bruno Haible  <bruno@clisp.org>
20625
20626         * m4/setenv.m4: New file, from gettext-0.11.5.
20627
20628 2002-12-11  Bruno Haible  <bruno@clisp.org>
20629
20630         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
20631         not unsetenv().
20632         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
20633         modifications:
20634
20635         2002-12-11  Bruno Haible  <bruno@clisp.org>
20636
20637                 * setenv.c (alloca): Fall back to malloc.
20638                 (freea): New macro.
20639                 (setenv): Use freea() to free memory allocated with alloca().
20640
20641         2002-11-13  Bruno Haible  <bruno@clisp.org>
20642
20643                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
20644                 function declarations.
20645                 * unsetenv.c (unsetenv): Likewise.
20646
20647         2002-03-04  Bruno Haible  <bruno@clisp.org>
20648
20649                 Portability to AIX 4.3.3.
20650                 * unsetenv.c: New file, extracted from setenv.c.
20651                 * setenv.c: Move the unsetenv() function to unsetenv.c.
20652
20653         2001-12-20  Bruno Haible  <bruno@clisp.org>
20654
20655                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
20656                 use malloc instead. For SunOS 4.
20657
20658         2001-12-11  Bruno Haible  <bruno@clisp.org>
20659
20660                 * setenv.c: Declare alloca.
20661                 (compar_fn_t): New typedef.
20662                 (KNOWN_VALUE, STORE_VALUE): Use it.
20663
20664         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
20665         setenv.h.
20666
20667 2002-12-10  Paul Eggert  <eggert@twinsun.com>
20668
20669         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
20670         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
20671         Choose values that are less likely to collide with system fnmatch
20672         options.
20673         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
20674         defined (e.g., a pure POSIX system).
20675         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
20676         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
20677
20678 2002-12-06  Paul Eggert  <eggert@twinsun.com>
20679
20680         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
20681         a pain in practice to deal with generated m4 files.  This change
20682         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
20683
20684         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
20685         and jm-glibc-io.m4, as they are no longer a special case.
20686         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
20687         kludge and the auto-generation stuff.  Check only whether the
20688         functions are declared, not whether they exist, since older hosts
20689         that don't declare the functions can't use the optimization anyway.
20690
20691 2002-12-06  Jim Meyering  <jim@meyering.net>
20692
20693         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
20694
20695         Merge in changes from libc's misc/error.c, in preparation
20696         for the merge of gnulib's changes back into libc.
20697
20698         * lib/error.c (_): Define only if not already defined.
20699         Move definition to follow all #include directives.
20700         Include unlocked-io.h only if !_LIBC.
20701         [_LIBC]: Include <libio/libioP.h>.
20702         [USE_IN_LIBIO]: Include <libio/iolibio.h>
20703         (fflush): Tweak definition to use INTUSE.
20704         (putc): Define.
20705
20706 2002-12-05  Paul Eggert  <eggert@twinsun.com>
20707
20708         * lib/alloca.c [defined emacs]: Include "lisp.h".
20709         (xalloc_die) [defined emacs]: New macro.
20710         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
20711         [! defined emacs]: Include <xalloc.h>.
20712         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
20713         (pointer): Typedef to POINTER_TYPE *.
20714         (malloc): Remove decl; we now always use xmalloc.
20715         (alloca): Use old-style definition, since Emacs needs this.
20716         Check for arithmetic overflow when computing combined size.
20717
20718 2002-12-04  Paul Eggert  <eggert@twinsun.com>
20719
20720         Do not generate unlocked-io.h automatically, since it's easier to
20721         maintain it by hand.
20722
20723         * lib/unlocked-io.h: New file, from GNU diffutils,
20724         but with proper copyright notice and attribution.
20725         * lib/gen-uio: Remove.
20726         * lib/Makefile.am: Add copyright notice.
20727         (libfetish_a_SOURCES): Add unlocked-io.h.
20728         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
20729         (DISTCLEANFILES, io_functions): Remove macros.
20730         (EXTRA_DIST): Remove gen_uio.
20731         (unlocked-io.h): Remove rule.
20732
20733 2002-12-04  Jim Meyering  <jim@meyering.net>
20734
20735         Reflect the fact that stat.c and lstat.c are no longer generated.
20736         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
20737         (DISTCLEANFILES): Likewise.
20738         (EXTRA_DIST): Likewise.
20739         (all_local): Don't depend on stat.c or lstat.c.
20740         (stat.c, lstat.c): Remove rules.
20741         (EXTRA_DIST): Remove xstat.in.
20742
20743         * lib/xstat.in: Remove file.  Contents moved into stat.c.
20744         * lib/stat.c: New file.  Contents mostly from xstat.in.
20745         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
20746         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
20747
20748         * lib/safe-read.c: Rework so that it may serve to define safe_write,
20749         too.
20750         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
20751
20752 2002-12-03  Jim Meyering  <jim@meyering.net>
20753
20754         * lib/safe-read.c, safe-write.c: Change variable names and comments,
20755         but not semantics, to minimize the differences between these two files.
20756         (safe_read): Change comment to mention SAFE_READ_ERROR.
20757
20758         * lib/safe-read.c (IS_EINTR): Define.
20759         (safe_read): Use IS_EINTR in place of in-function cpp directives.
20760
20761 2002-12-02  Jim Meyering  <jim@meyering.net>
20762
20763         * lib/safe-read.c (EINTR): Define.
20764         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
20765         (INT_MAX): Provide fallback.
20766         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
20767
20768         * lib/safe-read.h (SAFE_READ_ERROR): Define.
20769
20770 2002-12-02  Bruno Haible  <bruno@clisp.org>
20771
20772         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
20773         Define, taken from safe-read.c.
20774         (INT_MAX): Provide fallback.
20775         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
20776         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
20777
20778         * lib/safe-read.c (EINTR): Remove definition.
20779         (safe_read): Don't use EINTR if it is absent.
20780
20781 2002-12-01  Jim Meyering  <jim@meyering.net>
20782
20783         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
20784         zero.
20785         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
20786
20787 2002-11-27  Paul Eggert  <eggert@twinsun.com>
20788
20789         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
20790         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
20791         with `if (! (value < limit)) abort ();', for readability.
20792
20793 2002-11-26  Karl Berry  <karl@gnu.org>
20794
20795         * lib/strdup.c: copy from libc again, with jim's ok.
20796         * lib/.cppi-disable: re-add strdup.c
20797
20798 2002-11-25  Karl Berry  <karl@gnu.org>
20799
20800         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
20801         instead of "strtol.c".
20802
20803 2002-11-25  Karl Berry  <karl@gnu.org>
20804
20805         * config/install-sh: update from automake for variable quoting, $0 in
20806         error msgs, etc.
20807
20808         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
20809         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
20810         entry.
20811
20812 2002-11-25  Jim Meyering  <jim@meyering.net>
20813
20814         * lib/mktime.c: Sync from libc, now that it has the latest fix.
20815
20816 2002-11-24  Karl Berry  <karl@gnu.org>
20817
20818         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
20819         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
20820
20821 2002-11-24  Jim Meyering  <jim@meyering.net>
20822
20823         Update from coreutils:
20824
20825         * lib/mktime.c: Merge in changes from libc.
20826
20827         Avoid a link-time failure on some Linux systems.
20828         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
20829         (otherwise).
20830         (__mon_yday): Declare with the STATIC attribute.
20831         (__mktime_internal): Likewise.
20832         Based on a report from Greg Schafer.
20833
20834 2002-11-23  Jim Meyering  <jim@meyering.net>
20835
20836         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
20837         Use `unsigned', not `int', as type of index.
20838
20839         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
20840
20841         * lib/fsusage.c: Remove unneeded parentheses around operands of
20842         `defined'.
20843
20844 2002-11-22  Paul Eggert  <eggert@twinsun.com>
20845
20846         * lib/quotearg.h: Allow multiple inclusion by surrounding with
20847         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
20848         so that we can be included first.
20849         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
20850         * lib/quotearg.c: Include quotearg.h immediately after config.h.
20851         No need to include stddef.h or sys/types.h any more.
20852         Surround local include files with "", not "<>".
20853         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
20854         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
20855         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
20856         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
20857         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
20858         (ISPRINT): Remove; no longer needed now that we assume C89.
20859
20860         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
20861         Preserve errno.
20862
20863         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
20864         quotearg_char): Use SIZE_MAX rather than
20865         (size_t) -1 when we are talking about "infinity".
20866
20867         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
20868
20869 2002-11-22  Paul Eggert  <eggert@twinsun.com>
20870
20871         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
20872         hint that one should use `if (! x) abort ();' rather than `assert
20873         (x);', and anyway it's one less thing to worry about configuring.
20874         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
20875         hash_rehash, hash_insert): Use abort rather than assert.
20876
20877 2002-11-22  Bruno Haible  <bruno@clisp.org>
20878
20879         * lib/safe-read.h: Assume C89. Add comments.
20880         (safe_read): Change return type to size_t.
20881         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
20882         byte counts > SSIZE_MAX correctly.
20883         * lib/safe-write.h: New file.
20884         * lib/safe-write.c: New file.
20885         * lib/full-read.h: New file.
20886         * lib/full-read.c: New file.
20887         * lib/full-write.h: Assume C89. Add comments.
20888         * lib/full-write.c: Include safe-write.h.
20889         (full_write): Rewritten to use safe_write.
20890         Suggested by Jim Meyering and Paul Eggert.
20891
20892 2002-11-21  Jim Meyering  <jim@meyering.net>
20893
20894         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
20895
20896         Merge in changes from the coreutils.
20897
20898         2002-09-25  Paul Eggert  <eggert@twinsun.com>
20899         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
20900         <stdint.h>.
20901         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
20902         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
20903         int.  Work more efficiently if X is the same width as uintmax_t.
20904         Do not compare X to -1, to avoid bogus compiler warning.
20905         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
20906         Don't assume that f_frsize and f_bsize are the same type.
20907
20908         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
20909         warning on FreeBSD.
20910
20911         * lib/makepath.c (make_path): Restore umask *before* creating the final
20912         component.
20913         (make_path): Minor reformatting.
20914
20915         * lib/xmalloc.c: Adjust to work with new autoconf macros,
20916         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
20917         HAVE_MALLOC/HAVE_REALLOC.
20918
20919         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
20920         dummy ones.  At least on GNU/Linux systems, `auto' means something
20921         else.
20922         From Michael Stone.
20923
20924 2002-11-21  Bruno Haible  <bruno@clisp.org>
20925
20926         Remove case insensitive option matching.
20927         * lib/argmatch.h (argcasematch): Remove declaration.
20928         (ARGCASEMATCH): Remove macro.
20929         (__xargmatch_internal): Remove case_sensitive argument.
20930         (XARGMATCH): Update.
20931         (XARGCASEMATCH): Remove macro.
20932         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
20933         case_sensitive argument.
20934         (argcasematch): Remove function.
20935         (__xargmatch_internal): Remove case_sensitive argument.
20936         (main): Use XARGMATCH instead of XARGCASEMATCH.
20937
20938         * lib/xmalloc.c: Change compile-time error message. Add comment about
20939         required autoconf version.
20940
20941 2002-11-20  Paul Eggert  <eggert@twinsun.com>
20942
20943         Merge argmatch cleanups from Bison.  Assume C89.
20944
20945         * lib/argmatch.c: Include config.h here, not in argmatch.h.
20946         Include stdlib.h, for EXIT_FAILURE.
20947         Always include <string.h>, since we assume C89.
20948         (EXIT_FAILURE): Remove pre-C89 bug workaround.
20949         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
20950         Include <stddef.h> instead, since it's all we need for size_t.
20951         (PARAMS): Remove.  All uses removed.
20952         (ARRAY_CARDINALITY): Do not bother to #undef.
20953         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
20954         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20955         Remove unnecessary parentheses.
20956         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20957         Insert necessary parentheses.
20958         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
20959         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
20960
20961 2002-11-19  Bruno Haible  <bruno@clisp.org>
20962
20963         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
20964         * lib/mbswidth.h: Include <stddef.h>, for size_t.
20965
20966         * lib/mbswidth.h (PARAMS): Remove macro.
20967         (mbswidth, mbsnwidth): Use ANSI C function declarations.
20968         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
20969
20970         * lib/gcd.h (PARAMS): Remove macro.
20971         (gcd): Use ANSI C function declarations.
20972         * lib/gcd.c (gcd): Likewise.
20973
20974 2002-11-15  Bruno Haible  <bruno@clisp.org>
20975
20976         * lib/strcspn.c: Include <stddef.h>.
20977         (strcspn): Use ANSI C function declaration. Change return type to
20978         size_t. Use NULL.
20979         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
20980         (strpbrk): Use NULL.
20981         * lib/strpbrk.h (PARAMS): Remove macro.
20982         (strpbrk): Use ANSI C function declaration.
20983         * lib/strstr.c: Don't include <sys/types.h>.
20984         * lib/strstr.h (PARAMS): Remove macro.
20985         (strstr): Use ANSI C function declarations.
20986
20987 2002-11-14  Karl Berry  <karl@gnu.org>
20988
20989         * config/mkinstalldirs: `do' on separate line, instead of
20990         `for var; do'.
20991
20992 2002-11-06  Bruno Haible  <bruno@clisp.org>
20993
20994         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
20995         * lib/gcd.c (gcd): Likewise.
20996
20997 2002-11-05  Bruno Haible  <bruno@clisp.org>
20998
20999         * lib/gcd.h: New file, from gettext-0.11.5.
21000         * lib/gcd.c: New file, from gettext-0.11.5.
21001
21002 2002-11-05  Bruno Haible  <bruno@clisp.org>
21003
21004         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21005         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21006         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21007         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21008
21009         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
21010         <libintl.h>.
21011         * lib/makepath.c: Include gettext.h instead of <locale.h> and
21012         <libintl.h>.
21013
21014         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
21015         * lib/human.c: Include gettext.h instead of <libintl.h>.
21016         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
21017         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
21018         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
21019         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
21020         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
21021         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
21022         (textdomain): Remove definition.
21023         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
21024
21025         * lib/long-options.c: Remove include of <libintl.h> and definition of
21026         _.
21027         * lib/same.c: Remove include of <libintl.h> and definition of _.
21028
21029 2002-11-04  Owen Taylor  <otaylor@redhat.com>
21030
21031         * lib/config.charset: A few additions for Solaris.
21032
21033 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21034
21035         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
21036         * lib/localcharset.c (locale_charset): Declare as extern "C".
21037
21038 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21039
21040         * lib/config.charset: msdos in uk_UA uses CP1125.
21041
21042 2002-11-04  Bruno Haible  <bruno@clisp.org>
21043
21044         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
21045         * lib/strcase.h: New file, from GNU gettext-0.11.5.
21046         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
21047         * lib/strstr.h: New file, from GNU gettext-0.11.5.
21048         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
21049
21050 2002-11-04  Bruno Haible  <bruno@clisp.org>
21051
21052         * lib/localcharset.c (locale_charset): Don't return an empty string.
21053
21054 2002-11-04  Bruno Haible  <bruno@clisp.org>
21055
21056         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
21057         aliases.
21058
21059 2002-11-04  Bruno Haible  <bruno@clisp.org>
21060
21061         * lib/config.charset: Update for newest glibc. Add canonical names
21062         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
21063
21064 2002-11-04  Bruno Haible  <bruno@clisp.org>
21065
21066         * lib/config.charset: Add support for NetBSD.
21067
21068 2002-11-04  Bruno Haible  <bruno@clisp.org>
21069
21070         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
21071
21072 2002-11-01  Bruno Haible  <bruno@clisp.org>
21073
21074         * configure.in: Add AC_CONFIG_AUX_DIR call.
21075         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
21076         test/Makefile.
21077         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
21078
21079 2002-09-28  Karl Berry  <karl@gnu.org>
21080
21081         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
21082         installed automake until the next release, since changes have been
21083         made.
21084
21085 2002-09-25  Karl Berry  <karl@gnu.org>
21086
21087         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
21088         * lib/getopt*: copy from libc/posix.
21089         * lib/gettext.h: copy from gettext.
21090         * lib/.cppi-disable: add strdup.c, gettext.h.
21091
21092 2002-09-25  Karl Berry  <karl@gnu.org>
21093
21094         * config/srclist.txt: enable gettext.h check.
21095         * config/config.{guess,sub}: update from prep.
21096         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
21097                 from automake 1.6.3.
21098         See srclist*.
21099
21100 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
21101
21102         * regex.c (PATFETCH): Remove the translating fetch.
21103         (PATFETCH_RAW): Rename to PATFETCH.
21104         (set_image_of_range): New fun.
21105         (SET_RANGE_TABLE_WORK_AREA): Use it.
21106         (regex_compile): Don't translate the pattern chars so eagerly.
21107         Only do it when inserting an `exactn' bytecode or when handling
21108         a char-range.
21109         (mutually_exclusive_p): Avoid empty statement.
21110
21111 2002-07-06  Jim Meyering  <meyering@lucent.com>
21112
21113         * m4/README: Don't mention Makefile.am.in.
21114         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
21115
21116 2002-07-01  Jim Meyering  <meyering@lucent.com>
21117
21118         * lib/c-stack.c: Include sys/time.h.
21119         From Volker Borchert.
21120
21121 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21122
21123         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
21124
21125 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21126
21127         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
21128         New macro.  Use it uniformly instead of
21129         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
21130         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
21131         reported by Vin Shelton.
21132
21133 2002-06-22  Paul Eggert  <eggert@twinsun.com>
21134
21135         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
21136         Do not assume SA_SIGINFO behavior.
21137         Bug reported by Jim Meyering on NetBSD 1.5.2.
21138
21139 2002-06-22  Jim Meyering  <meyering@lucent.com>
21140
21141         * m4/c-stack.m4: New file, from diffutils-2.8.2.
21142         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
21143
21144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
21145         now that configure.ac uses AC_GNU_SOURCE.
21146         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
21147         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
21148
21149         Update to latest tools.  Suggestions from Paul Eggert.
21150         * m4/stdbool.m4: New file, from diffutils-2.8.2.
21151         * m4/gnu-source.m4: Update from diffutils-2.8.2.
21152         * m4/fnmatch.m4: Likewise.
21153         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
21154         to AC_HEADER_STDBOOL
21155
21156 2002-06-22  Jim Meyering  <meyering@lucent.com>
21157
21158         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
21159         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
21160
21161 2002-06-22  Jim Meyering  <meyering@lucent.com>
21162
21163         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
21164
21165         * lib/exitfail.c, exitfail.h: Likewise.
21166         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
21167
21168         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
21169         of fnmatch.h.
21170         (EXTRA_DIST): Add fnmatch_loop.c.
21171         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
21172
21173         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
21174         * lib/fnmatch.c: Update from diffutils-2.8.2.
21175         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
21176         * lib/fnmatch.h: Remove file.
21177
21178 2002-06-21  Jim Meyering  <meyering@lucent.com>
21179
21180         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
21181         * m4/mbrtowc.m4: Likewise.
21182
21183         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
21184         * m4/mbswidth.m4: Reflect name change:
21185         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
21186         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
21187
21188         * m4/lib-link.m4: Update from gettext-0.11.2.
21189         * m4/gettext.m4: Likewise.
21190
21191         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
21192         From Alfred M. Szmidt.
21193
21194 2002-06-18  Paul Eggert  <eggert@twinsun.com>
21195
21196         * lib/file-type.h: Report an error if neither S_ISREG nor
21197         S_IFREG is defined, instead of using a test specific to glibc
21198         2.2.  This should be safe, since POSIX requires S_ISREG and
21199         Unix Version 7 had S_IFREG.  We don't need to check for
21200         <sys/types.h> since we don't use any symbols that it defines.
21201
21202 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
21203
21204         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
21205         $@-t, so that each temporary file name is unique and valid in the first
21206         8 characters, for operation under DOS.
21207
21208 2002-06-15  Paul Eggert  <eggert@twinsun.com>
21209
21210         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
21211
21212 2002-06-15  Jim Meyering  <meyering@lucent.com>
21213
21214         Work even with DJGPP 2.03, which lacks support for symlinks.
21215         From Richard Dawe.
21216         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
21217         is defined.
21218         * lib/lchown.c (S_ISLNK): Likewise.
21219
21220 2002-06-15  Jim Meyering  <meyering@lucent.com>
21221
21222         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
21223         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
21224         have been included before this file.
21225
21226 2002-06-14  Jim Meyering  <meyering@lucent.com>
21227
21228         * lib/file-type.h: Use the version from diffutils-2.8.2.
21229         * lib/file-type.c: Likewise.
21230
21231 2002-06-07  Jim Meyering  <meyering@lucent.com>
21232
21233         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
21234         They're needed at least for NetBSD 1.5.2.
21235         ($statxfs_includes): Include those same headers.
21236         ($statxfs_includes): Include sys/vfs.h if available.
21237         ($statxfs_includes): Likewise for sys/statvfs.h.
21238         Check for the following members in both structs statfs and statvfs:
21239         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
21240
21241 2002-06-01  Jim Meyering  <meyering@lucent.com>
21242
21243         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
21244         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
21245
21246 2002-05-28  Jim Meyering  <meyering@lucent.com>
21247
21248         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
21249         Reported by Volker Borchert.
21250
21251 2002-05-27  Jim Meyering  <meyering@lucent.com>
21252
21253         Fix a problem seen only on nonconforming systems whereby ls.c's
21254         use of localtime, and then of gettimeofday would cause trouble:
21255         the localtime call used to initialize rpl_gettimeofday's save
21256         mechanism would clobber ls's current local time information so
21257         that in any long listing the first file would always be listed
21258         with date 1970-01-01.  Analysis by Volker Borchert.
21259
21260         * lib/gettimeofday.c (localtime): Undefine.
21261         (rpl_localtime): New function.
21262
21263 2002-05-27  Jim Meyering  <meyering@lucent.com>
21264
21265         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
21266         localtime.
21267
21268         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
21269         use the replacement function; it wouldn't resolve at link time.
21270         Reported by Volker Borchert.
21271
21272 2002-05-22  Jim Meyering  <meyering@lucent.com>
21273
21274         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
21275         file-type.h.
21276         * lib/file-type.h: New file.
21277         * lib/file-type.c (file_type): New file/function.  Extracted from
21278         diffutils.
21279
21280 2002-04-30  Jim Meyering  <meyering@lucent.com>
21281
21282         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
21283
21284 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21285
21286         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
21287
21288 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21289
21290         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
21291         Do not check for alloca.h (no longer used) or stdbool.h (was never
21292         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
21293
21294 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21295
21296         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
21297
21298 2002-04-29  Jim Meyering  <meyering@lucent.com>
21299
21300         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
21301         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
21302         Use AC_FUNC_STRNLEN here instead.
21303
21304         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
21305         With autoconf-2.53a, it's part of AC_PROG_CC.
21306
21307 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21308
21309         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
21310         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
21311
21312 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21313
21314         * lib/sig2str.h, lib/sig2str.c: New files.
21315         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
21316
21317 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21318
21319         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
21320         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
21321         of 127, since 64 is the largest conceivable number for ancient
21322         nonstandard hosts.
21323         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
21324
21325 2002-04-28  Jim Meyering  <meyering@lucent.com>
21326
21327         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
21328
21329 2002-04-24  Jim Meyering  <meyering@lucent.com>
21330
21331         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
21332         (jm_PREREQ): Use it.
21333
21334         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
21335         mach/mach.h fcntl.h.
21336         Check for this function: setlocale.
21337
21338 2002-04-24  Jim Meyering  <meyering@lucent.com>
21339
21340         * lib/gettext.h: New file, from Gettext.
21341         * lib/Makefile.am (INCLUDES): Remove -I../intl.
21342         (libfetish_a_SOURCES): Add gettext.h.
21343
21344 2002-04-16  Jim Meyering  <meyering@lucent.com>
21345
21346         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
21347         ut_pid, ut_id, ut_exit.
21348
21349 2002-04-16  Jim Meyering  <meyering@lucent.com>
21350
21351         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
21352         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
21353         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
21354
21355 2002-04-12  Jim Meyering  <meyering@lucent.com>
21356
21357         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
21358         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
21359         existence of the getmntinfo function.  Needed for Darwin 5.3.
21360
21361         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
21362         This is necessary at least on Darwin 5.3.
21363
21364         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
21365         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
21366         strnlen.o in the library, and that makes some versions of ranlib
21367         object.
21368
21369 2002-04-12  Jim Meyering  <meyering@lucent.com>
21370
21371         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
21372
21373 2002-04-09  Jim Meyering  <meyering@lucent.com>
21374
21375         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
21376         to be more precise.  Rather than saying we're checking whether the
21377         function `works', say what we're testing.
21378         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
21379         Reported by Bruno Haible.
21380
21381 2002-03-10  Jim Meyering  <meyering@lucent.com>
21382
21383         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
21384         Suggestion from Santiago Vila.
21385
21386 2002-03-08  Jim Meyering  <meyering@lucent.com>
21387
21388         * lib/rename.c: Mention that this wrapper is needed also on
21389         mips-dec-ultrix4.4 systems.
21390
21391 2002-03-02  Jim Meyering  <meyering@lucent.com>
21392
21393         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
21394         not HAVE_CLOCK_SETTIME.
21395
21396 2002-02-27  Paul Eggert  <eggert@twinsun.com>
21397
21398         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
21399         Check for clock_settime.
21400
21401 2002-02-27  Paul Eggert  <eggert@twinsun.com>
21402
21403         * lib/nanosleep.h: Rename to....
21404         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
21405
21406         * lib/gettime.c: New file.
21407         * lib/settime.c: New file.
21408         * lib/stime.c: Remove.
21409
21410         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
21411         timespec.h.  Remove nanosleep.h.
21412
21413 2002-02-25  Paul Eggert  <eggert@twinsun.com>
21414
21415         * m4/acl.m4: New file.
21416         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
21417         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
21418
21419 2002-02-25  Paul Eggert  <eggert@twinsun.com>
21420
21421         * lib/acl.c, lib/acl.h: New files.
21422         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
21423
21424 2002-02-24  Jim Meyering  <meyering@lucent.com>
21425
21426         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
21427         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
21428         cause trouble.  Reported by Nelson Beebe.
21429
21430 2002-02-23  Paul Eggert  <eggert@twinsun.com>
21431
21432         * lib/path-concat.c (xpath_concat): Reorder code to pacify
21433         compilers that don't know that xalloc_die never returns.
21434
21435 2002-02-20  Jim Meyering  <meyering@lucent.com>
21436
21437         * lib/getdate.c: Regenerate using bison-1.33.
21438
21439 2002-02-17  Jim Meyering  <meyering@lucent.com>
21440
21441         * config/config.guess (main): Don't use `head -1'; it's no longer
21442         portable. Use `sed 1q' instead.
21443
21444 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
21445
21446         * m4/codeset.m4: Upgrade to gettext-0.11.
21447         * m4/gettext.m4: Upgrade to gettext-0.11.
21448         * m4/glibc21.m4: Upgrade to gettext-0.11.
21449         * m4/iconv.m4: Upgrade to gettext-0.11.
21450         * m4/isc-posix.m4: Upgrade to gettext-0.11.
21451         * m4/lcmessage.m4: Upgrade to gettext-0.11.
21452         * m4/lib-ld.m4: New file, from gettext-0.11.
21453         * m4/lib-link.m4: New file, from gettext-0.11.
21454         * m4/lib-prefix.m4: New file, from gettext-0.11.
21455         * m4/progtest.m4: Upgrade to gettext-0.11.
21456
21457 2002-02-15  Paul Eggert  <eggert@twinsun.com>
21458
21459         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
21460         (jm_PREREQ): Use it.
21461
21462 2002-02-15  Paul Eggert  <eggert@twinsun.com>
21463
21464         * lib/posixver.c, lib/posixver.h: New files.
21465         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
21466
21467 2002-02-02  Paul Eggert  <eggert@twinsun.com>
21468             Bruno Haible  <bruno@clisp.org>
21469
21470         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
21471         (fwrite_success_callback): New declaration.
21472         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
21473         print_unicode_char. Call failure callback instead of error.
21474         (fwrite_success_callback): New function.
21475         (exit_failure_callback): New function.
21476         (fallback_failure_callback): New function.
21477         (print_unicode_char): Call unicode_to_mb.
21478
21479 2002-01-26  Jim Meyering  <meyering@lucent.com>
21480
21481         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
21482         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
21483
21484 2002-01-26  Jim Meyering  <meyering@lucent.com>
21485
21486         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
21487
21488 2002-01-22  Paul Eggert  <eggert@twinsun.com>
21489
21490         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
21491
21492 2002-01-22  Jim Meyering  <meyering@lucent.com>
21493
21494         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
21495         Otherwise, some versions of automake would omit the rule that makes
21496         Makefile from Makefile.in.
21497
21498 2002-01-21  Paul Eggert  <eggert@twinsun.com>
21499
21500         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
21501         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
21502         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
21503         (memcoll): Set errno to zero if there is no error.
21504
21505         * lib/quotearg.c (quotearg_buffer_restyled):
21506         Fix bug with quoting buffers containing NUL when backslashing escapes.
21507         This bug was exposed by the other changes in this patch.
21508         (quotearg_n_options): New arg ARGSIZE.
21509         All callers changed.
21510         (quoting_options_from_style): New function.
21511         (quotearg_n_style): Use it.
21512         (quotearg_n_style_mem): New function.
21513
21514         * lib/quotearg.h (quotearg_n_style_mem): New function.
21515
21516 2002-01-19  Jim Meyering  <meyering@lucent.com>
21517
21518         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
21519         Remove useless quotes: DF_PROG="df".
21520         * m4/strnlen.m4: New file.
21521
21522 2002-01-16  Paul Eggert  <eggert@twinsun.com>
21523
21524         * lib/backupfile.c (ISDIGIT): Comment fix.
21525         * lib/getdate.y (ISDIGIT): Likewise.
21526         * lib/posixtm.c (ISDIGIT, year): Likewise.
21527         * lib/strverscmp.c (ISDIGIT): Likewise.
21528         * lib/userspec.c (ISDIGIT): Likewise.
21529
21530 2002-01-16  Jim Meyering  <meyering@lucent.com>
21531
21532         * lib/getdate.y: Add three semicolons, each just before a closing
21533         brace. Bison (as of version 1.31) no longer papers over that mistake.
21534
21535 2002-01-05  Jim Meyering  <meyering@lucent.com>
21536
21537         * lib/version-etc.c (version_etc_copyright): Update copyright year.
21538
21539 2001-12-19  Paul Eggert  <eggert@twinsun.com>
21540
21541         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
21542         not silently exit merely because the output buffer happens to
21543         have nothing pending.
21544
21545 2001-12-18  Paul Eggert  <eggert@twinsun.com>
21546
21547         See the big note in ../ChangeLog.
21548         * lib/human.c (suffixes): Prefer K to k for 1024.
21549         (generate_suffix_backwards): New function.
21550         (human_readable_inexact): Use it.
21551         * lib/xstrtol.c (__xstrtol): If there is no number but there
21552         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
21553         Accept 'K' as well as 'k'.
21554
21555 2001-12-15  Jim Meyering  <meyering@lucent.com>
21556
21557         * lib/regex.h (__restrict_arr): Update from libc.
21558
21559         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
21560         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
21561         (STREQ): Define.
21562
21563 2001-12-14  Jim Meyering  <meyering@lucent.com>
21564
21565         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
21566         Suggestion from Bruno Haible.
21567
21568 2001-12-10  Jim Meyering  <meyering@lucent.com>
21569
21570         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
21571         xrealloc, Instead, include "xalloc.h".
21572         (initbuffer): Don't cast xmalloc return value to char*.
21573         (readline): Reword comment.
21574         Don't cast xrealloc return value to char*
21575         Return NULL, not 0.
21576
21577 2001-12-09  Jim Meyering  <meyering@lucent.com>
21578
21579         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
21580         about `signed and unsigned type in conditional expression'.
21581         * lib/posixtm.c (posix_time_parse): Likewise.
21582
21583         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
21584
21585         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
21586         to avoid a pedantic warning.
21587
21588         * lib/getstr.c: Don't include assert.h.
21589         (getstr): Remove warning-evoking assertions.
21590         Return -1 if offset parameter is out of bounds.
21591         Change the type of a local from int to size_t.
21592
21593         * lib/strftime.c (my_strftime_localtime_r): Include this function
21594         definition in the `#if ! HAVE_TM_GMTOFF' block.
21595
21596         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
21597         Include xalloc.h instead.
21598
21599 2001-12-02  Jim Meyering  <meyering@lucent.com>
21600
21601         * lib/tempname.c: Don't declare getenv, thus reverting the change of
21602         2001-11-18.  It's no longer necessary, now that stdlib.h is always
21603         included.
21604
21605         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
21606         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
21607
21608 2001-11-30  Akim Demaille  <akim@epita.fr>
21609
21610         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
21611         before being defined.
21612
21613 2001-11-27  Paul Eggert  <eggert@twinsun.com>
21614
21615         * lib/quotearg.h (quotearg_n, quotearg_n_style):
21616         First arg is int, not unsigned.
21617         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
21618         (SIZE_MAX, UINT_MAX): New macros.
21619         (quotearg_n_options): Abort if N is negative.
21620         Avoid overflow check on hosts where size_t is 64 bits and int
21621         is 32 bits, as overflow is impossible there.
21622         Fix off-by-one typo that caused unnecessary reallocation.
21623
21624 2001-11-27  Jim Meyering  <meyering@lucent.com>
21625
21626         * lib/tempname.c: Merge with version from libc.
21627         * lib/regex.c: Likewise.
21628
21629         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
21630         systems for which STDC_HEADERS is 0, it was not included, resulting in
21631         a warning about an integer-to-pointer conversion problem with getenv.
21632         Reported by Volker Borchert.
21633
21634 2001-11-26  Jim Meyering  <meyering@lucent.com>
21635
21636         * lib/gtod.h: Remove file.
21637         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
21638         * lib/gettimeofday.c: Don't include gtod.h.
21639         (GTOD_init): Remove function.
21640         (rpl_gettimeofday): Do its job here instead, rather than aborting.
21641         Suggestion from Volker Borchert.
21642
21643 2001-11-23  Jim Meyering  <meyering@lucent.com>
21644
21645         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
21646         it.
21647         * lib/hash.c (struct hash_table): Define it here instead.
21648
21649 2001-11-22  Jim Meyering  <meyering@lucent.com>
21650
21651         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
21652
21653 2001-11-20  Jim Meyering  <meyering@lucent.com>
21654
21655         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
21656         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
21657
21658 2001-11-19  Jim Meyering  <meyering@lucent.com>
21659
21660         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
21661         directory.  Use "conftestXXXXXX" as the template.
21662         Suggestion from Paul Eggert.
21663
21664         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
21665         immediately, so the test doesn't mistakenly hit the max-open-files
21666         limit.
21667
21668 2001-11-18  Paul Eggert  <eggert@twinsun.com>
21669
21670         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
21671         (TEMPORARIES): New macro.
21672         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
21673         removes an artificial limitation (e.g. HP-UX 10.20, where
21674         TMP_MAX is 17576).
21675
21676 2001-11-18  Jim Meyering  <meyering@lucent.com>
21677
21678         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
21679
21680 2001-11-18  Jim Meyering  <meyering@lucent.com>
21681
21682         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
21683         on SunOS 4.
21684
21685         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
21686         files will be created before anything else.
21687
21688 2001-11-17  Paul Eggert  <eggert@twinsun.com>
21689
21690         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
21691         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
21692
21693 2001-11-17  Jim Meyering  <meyering@lucent.com>
21694
21695         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
21696         Prompted by a report from Bob Proulx.
21697
21698         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
21699         Instead, require UTILS_FUNC_MKSTEMP.
21700
21701 2001-11-17  Jim Meyering  <meyering@lucent.com>
21702
21703         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
21704         Now, that's done as part of AC_FUNC_STRTOD.
21705
21706 2001-11-17  Jim Meyering  <meyering@lucent.com>
21707
21708         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
21709         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
21710         rather than group writable.  Patch by Juan F. Codagnone.
21711
21712         * lib/readtokens.c: Remove explicit declarations of xmalloc and
21713         xrealloc, Instead, include "xalloc.h".
21714
21715         * lib/mountlist.c: Include unlocked-io.h after all system headers.
21716         Remove explicit declarations of xmalloc, xrealloc,
21717         and xstrdup.  Instead, include "xalloc.h".
21718
21719         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
21720         unlocked-io.h.
21721         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
21722         Likewise.
21723         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
21724
21725         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
21726         Reported by Padraig Brady.
21727
21728         * lib/mkstemp.c: #undef mkstemp.
21729         Include config.h.
21730         (rpl_mkstemp): Rename from mkstemp.
21731         Protoize.
21732
21733 2001-11-16  Jim Meyering  <meyering@lucent.com>
21734
21735         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
21736         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
21737         determine the amount of total physical memory, use pstat_getstatic.
21738         HPUX-11 doesn't define _SC_PHYS_PAGES.
21739         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
21740         If sysconf couldn't be used to determine the amount of available
21741         physical memory, use both pstat_getstatic and pstat_getdynamic.
21742         Based on a patch from Bob Proulx.
21743
21744 2001-11-10  Jim Meyering  <meyering@lucent.com>
21745
21746         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
21747         (jm_PREREQ): Use it.
21748
21749 2001-11-09  Jim Meyering  <meyering@lucent.com>
21750
21751         * m4/jm-macros.m4: Require autoconf-2.52f.
21752         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
21753         Use these AC_-prefixed names, not the AM_-prefixed ones.
21754
21755         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
21756
21757 2001-11-05  Jim Meyering  <meyering@lucent.com>
21758
21759         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
21760
21761 2001-11-04  Jim Meyering  <meyering@lucent.com>
21762
21763         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
21764         $DEFS.
21765
21766 2001-11-03  Jim Meyering  <meyering@lucent.com>
21767
21768         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
21769         of AC_DEFUN.
21770
21771         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
21772         know the name of the variable in the macro definition.
21773
21774 2001-11-03  Jim Meyering  <meyering@lucent.com>
21775
21776         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
21777         in argmatch_to_argument call.
21778
21779         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
21780         argument.
21781
21782         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
21783         e.g., a fault due to an attempt to free a NULL pointer.
21784
21785 2001-11-01  Jim Meyering  <meyering@lucent.com>
21786
21787         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
21788         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
21789
21790 2001-11-01  Jim Meyering  <meyering@lucent.com>
21791
21792         * lib/dirfd.c, lib/dirfd.h: New files.
21793         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
21794
21795         * lib/hash.c (hash_print) [TESTING]: Clean up.
21796
21797 2001-10-22  Paul Eggert  <eggert@twinsun.com>
21798
21799         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
21800         to avoid a warning if -Wall.
21801
21802 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
21803
21804         * README: New file
21805         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
21806         (per RMS's instructions, this is now the canonical source)
21807         * lgpl/, gpl/: New directories.
21808
21809 2001-10-21  Paul Eggert  <eggert@twinsun.com>
21810
21811         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
21812
21813 2001-10-21  Jim Meyering  <meyering@lucent.com>
21814
21815         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
21816         this code would end up calling gettext even in packages built
21817         with --disable-nls.
21818         * lib/getopt.c (_): Likewise.
21819         * lib/regex.c (_): Likewise.
21820
21821 2001-10-20  Paul Eggert  <eggert@twinsun.com>
21822
21823         * m4/error.m4 (jm_PREREQ_ERROR):
21824         Do not invoke AC_CHECK_FUNCS with strerror_r, as
21825         AC_FUNC_STRERROR_R does that.
21826         Check for strerror declaration.
21827
21828         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
21829         are supposed to have them these days.
21830         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
21831         Merge changes from latest Autoconf CVS.
21832         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
21833         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
21834         POSIX decided to standardize on the int flavor of strerror_r.
21835
21836 2001-10-20  Paul Eggert  <eggert@twinsun.com>
21837
21838         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
21839         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
21840         Use strerror_r that is only a macro, even if it is not a function.
21841         (strerror): Check for HAVE_DECL_STRERROR before declaring.
21842         (private_strerror): Use prototypes, not old-style function definition.
21843         (print_errno_message): New function.
21844         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
21845         char*-flavored one.
21846         (error_tail, error, error_at_line): Use it.
21847
21848 2001-10-11  Jim Meyering  <meyering@lucent.com>
21849
21850         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
21851         and quote_n (1, ... to avoid clobbering a buffer.
21852
21853 2001-10-05  Jim Meyering  <meyering@lucent.com>
21854
21855         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
21856         hash-pjw.h.
21857         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
21858         * lib/hash-pjw.h: New file.
21859
21860 2001-09-30  Jim Meyering  <meyering@lucent.com>
21861
21862         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
21863         `struct fsstat' has the `f_fstypename' member.
21864         Use that to define FS_TYPE, which is now used to make
21865         the getfsstat link test tighter.
21866
21867 2001-09-30  Jim Meyering  <meyering@lucent.com>
21868
21869         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
21870         Include <sys/ucred.h>, for Apple Darwin.
21871         Include sys/mount.h and sys/fs_types.h only if available.
21872         (FS_TYPE): Define.
21873         (read_filesystem_list): Use FS_TYPE.
21874
21875 2001-09-29  Paul Eggert  <eggert@twinsun.com>
21876
21877         * lib/exclude.c (excluded_filename): 0 -> false, since it's
21878         a boolean context.
21879
21880 2001-09-29  Jim Meyering  <meyering@lucent.com>
21881
21882         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21883         [one-argument getmntent function]): Include stdio.h before mntent.h.
21884         SunOS 4.1.x needs it for the declaration of `FILE'.
21885         Patch by Volker Borchert.
21886
21887         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21888         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
21889         sys/fs_types.h, and make the link-test for getfsstat guard #include
21890         directives with appropriate #if HAVE_*_H tests so that we can
21891         detect getfsstat on Apple Darwin1.3.7 systems.
21892         Reported by Nelson Beebe.
21893         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
21894
21895 2001-09-28  Paul Eggert  <eggert@twinsun.com>
21896
21897         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21898         #defines strtoimax.  Also treat the other strto* functions
21899         like strtoimax.
21900
21901         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21902         Check for strtoul and strtoumax,
21903         as those declarations are made even in the signed case.
21904         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
21905         Likewise, for strtol and strtoimax.
21906
21907 2001-09-28  Paul Eggert  <eggert@twinsun.com>
21908
21909         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21910         #defines strtoimax.  Also treat the other strto* functions
21911         like strtoimax.
21912
21913         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
21914         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
21915         (strtoimax, strtoumax): Do not declare if already defined as a macro.
21916
21917 2001-09-26  Jim Meyering  <meyering@lucent.com>
21918
21919         Most macros in unlocked-io.h had the wrong number of arguments.
21920         * lib/gen-uio: New script.
21921         (USE_UNLOCKED_IO): Define to 1 if not already defined.
21922         * lib/unlocked-io.hin: Remove file.
21923         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
21924         rather than trying to embed it here.
21925         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
21926         Reported by Padraig Brady.
21927
21928 2001-09-25  Volker Borchert  <bt@teknon.de>
21929
21930         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
21931         `result'.
21932
21933 2001-09-24  Jim Meyering  <meyering@lucent.com>
21934
21935         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
21936
21937 2001-09-23  Jim Meyering  <meyering@lucent.com>
21938
21939         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
21940         instead of the mere test for existence of mntent.h.  The latter
21941         would get a false-positive on AIX 3.4 systems.
21942         In the outer getmntent if-block, don't die if neither of the getmntent
21943         tests succeeds.  Instead, just fall through and continue with the
21944         remaining tests.
21945
21946 2001-09-23  Jim Meyering  <meyering@lucent.com>
21947
21948         * lib/mountlist.c: Remove useless parentheses in #if directives.
21949         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
21950         the deprecated MOUNTED symbol is no longer defined in mntent.h.
21951
21952 2001-09-22  Jim Meyering  <meyering@lucent.com>
21953
21954         * m4/gettext.m4: New file.  From gettext.
21955         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
21956         * m4/progtest.m4: Likewise
21957         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
21958         * m4/glibc21.m4: Likewise.
21959
21960         * m4/libintl.m4: Remove.  No longer used.
21961
21962 2001-09-22  Jim Meyering  <meyering@lucent.com>
21963
21964         * lib/localcharset.c: Update from latest gettext.
21965         * lib/config.charset: Likewise.
21966
21967 2001-09-20  Jim Meyering  <meyering@lucent.com>
21968
21969         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
21970         strtoimax.
21971         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
21972         strtoumax.
21973
21974 2001-09-20  Jim Meyering  <meyering@lucent.com>
21975
21976         * lib/xstrtol.c (strtoimax): Guard declaration with
21977         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
21978         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
21979         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
21980         (strtoumax): Likewise, for completeness (it wasn't necessary).
21981
21982 2001-09-17  Paul Eggert  <eggert@twinsun.com>
21983
21984         * lib/strtoimax.c (HAVE_LONG_LONG):
21985         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
21986         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
21987         to work around bug in IBM C compiler.
21988
21989 2001-09-17  Jim Meyering  <meyering@lucent.com>
21990
21991         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
21992         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
21993         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
21994         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
21995         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
21996         whenever the right hand side need not be expanded by the shell.
21997
21998 2001-09-16  Paul Eggert  <eggert@twinsun.com>
21999
22000         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
22001         library.  It's not correct, as some older glibcs are buggy.
22002         fnmatch wasn't fixed until glibc 2.2.
22003
22004         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
22005         special shell magic here.
22006
22007 2001-09-16  Jim Meyering  <meyering@lucent.com>
22008
22009         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
22010         * m4/jm-macros.m4: Require it.
22011
22012 2001-09-16  Jim Meyering  <meyering@lucent.com>
22013
22014         * lib/mkdir.c: New file.
22015
22016 2001-09-15  Jim Meyering  <meyering@lucent.com>
22017
22018         * m4/jm-macros.m4: Check for help2man.
22019
22020 2001-09-11  Jim Meyering  <meyering@lucent.com>
22021
22022         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
22023         The body, by Paul Eggert, was moved here from configure.in.
22024         * m4/jm-macros.m4: Require UTILS_HOST_OS.
22025
22026 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22027
22028         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
22029         (jm_PREREQ): Use it.
22030
22031 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22032
22033         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
22034         Use ssize_t, not int, to store result of readlink.
22035         Check for ssize_t overflow as well as size_t overflow,
22036         as POSIX says the result of readlink is implementation-defined
22037         when ssize_t overflows.
22038         Remove unnecessary cast to char*.
22039         Use free+malloc instead of realloc, as the storage doesn't need
22040         to be preserved and it's clearer and can be more efficient that way.
22041         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
22042         * lib/xreadlink.h (xreadlink): Update prototype.
22043
22044 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22045
22046         * lib/xgetcwd.c: Revert some of the previous change; intead,
22047         fix the HAVE_GETCWD_NULL code to behave more like the
22048         !HAVE_GETCWD_NULL code used to.
22049
22050         Include "xalloc.h".
22051         (xgetcwd): Do not return NULL when memory is exhausted; instead,
22052         invoke xalloc_die.
22053
22054 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22055
22056         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
22057         sys/param.h, as pathmax.h includes them.
22058
22059 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22060
22061         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
22062         (jm_PREREQ_XGETCWD): New macro.
22063
22064         * m4/getcwd.m4: New file.
22065
22066 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22067
22068         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
22069         like the HAVE_GETCWD_NULL code.
22070         Include pathmax.h if not HAVE_GETCWD.
22071         Do not include xalloc.h.
22072         (INITIAL_BUFFER_SIZE): New symbol.
22073         Do not use xmalloc / xrealloc, since the caller is responsible for
22074         handling errors.  Preserve errno around `free' during failure.
22075         Do not overrun buffer when using getwd.
22076
22077 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22078
22079         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
22080         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
22081         getcwd (NULL, 0).
22082
22083 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22084
22085         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
22086         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
22087         spotted by Jim Meyering.
22088
22089 2001-09-03  Jim Meyering  <meyering@lucent.com>
22090
22091         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
22092         failure.
22093
22094 2001-09-02  Jim Meyering  <meyering@lucent.com>
22095
22096         * lib/error.c: Update from GNU libc.
22097
22098 2001-09-01  Jim Meyering  <meyering@lucent.com>
22099
22100         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
22101         Used by df.
22102
22103 2001-09-01  Jim Meyering  <meyering@lucent.com>
22104
22105         * lib/xreadlink.c: New file.
22106         * lib/xreadlink.h: New file.
22107         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
22108         xreadlink.h.
22109
22110         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
22111         doesn't conflict with sparc Solaris 7's definition in
22112         /usr/include/sys/int_types.h.
22113
22114         * lib/exclude.c: Use `""', not `<>' to #include non-system header
22115         files.
22116         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
22117         and strncasecmp as r-values.  Unixware didn't have declarations.
22118
22119 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22120
22121         * lib/xstrtol.h: Add copyright notice.
22122         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
22123         LONGINT_INVALID_SUFFIX_CHAR.
22124
22125 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22126
22127         * lib/xstrtol.c (strtoimax): New decl.
22128
22129 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22130
22131         * lib/xgetcwd.c: Don't include pathmax.h.
22132         Include stdlib.h and unistd.h if available.
22133         Include xalloc.h.
22134         (xmalloc, xstrdup, free): Remove decls.
22135         (xgetcwd): Don't assume sizes fit in unsigned.
22136         Check for overflow when computing sizes.
22137         Simplify reallocation code.
22138
22139 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22140
22141         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
22142         a directory's st_size can have an arbitrary value, so the old
22143         usage could waste an arbitrary amount of memory.  All uses
22144         changed.
22145         * lib/savedir.h: Update prototype.
22146
22147 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22148
22149         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
22150
22151         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
22152         old strtoimax.c.
22153
22154         Also, make the following further changes to make this file's
22155         configuration more similar to that of strtol.c:
22156         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
22157         (strtoumax, uintmax_t, strtoull, strtol): Remove.
22158         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
22159         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
22160         changed to signed values.
22161
22162         And make the following changes as well:
22163         Fix copyright notice, as 1999 was missing.
22164         (verify): New macro.
22165         (strtoimax): Check sizes at compile-time, not run-time.
22166         Prefer strtol to strtoll if both work.
22167         (main): Remove; it was not that useful and was a pain to maintain.
22168
22169         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
22170
22171 2001-08-31  Jim Meyering  <meyering@lucent.com>
22172
22173         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
22174         Use an initial, malloc'd, buffer of length 128 rather than
22175         a statically allocated one of length 1024.
22176
22177 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22178
22179         Simplify code, partly by assuming autoconf 2.52 semantics.
22180
22181         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
22182
22183         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
22184         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
22185         All uses removed.
22186         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
22187         Move AC_REQUIRE to next-to-top level, to avoid confusion.
22188         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
22189         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
22190         jm_AC_HEADER_INTTYPES_H.
22191         * m4/jm-macros.m4 (jm_MACROS): Likewise.
22192
22193         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
22194
22195         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22196         Quote first arg of AC_DEFUN.
22197         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
22198         since they are needed to parse the include file even if we need
22199         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
22200         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
22201         but with opposite signedness.
22202
22203 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22204
22205         Merge 'exclude' changes from tar 1.13.22.
22206         This fixes one or two unlikely storage allocation overflow bugs,
22207         but doesn't change user-visible behavior otherwise.
22208
22209 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22210
22211         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
22212         (jm_PREREQ_EXCLUDE): New macro.
22213
22214 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22215
22216         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
22217         tm to be declared.
22218
22219 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22220
22221         * lib/hash.c: Remove '2001' from copyright notice.
22222
22223 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22224
22225         * lib/full-write.h: New file.
22226         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
22227         * lib/full-write.c: Correct credits, as cccp.c no longer
22228         exists and anyway it was so heavily changed from the old cccp
22229         code as to be unrecognizable.  Include full-write.h.
22230         (full_write) Return size_t, with short writes meaning failure.
22231         All callers changed.  This fixes a bug with large buffers
22232         on 64-bit hosts.
22233         * lib/utime.c: Include full-write.h.
22234
22235 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22236
22237         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
22238         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
22239         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
22240         Include if available.
22241         (<xalloc.h>): Include
22242         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
22243         (verify): New macro.  Use it to verify that EXCLUDE macros do not
22244         collide with FNM macros.
22245         (struct patopts): New struct.
22246         (struct exclude): Use it, as exclude patterns now come with options.
22247         (new_exclude): Support above changes.
22248         (new_exclude, add_exclude_file):
22249         Initial size must now be a power of two to simplify overflow checking.
22250         (free_exclude, fnmatch_no_wildcards): New function.
22251         (excluded_filename): No longer requires options arg, as the options
22252         are determined by add_exclude.  Now returns bool, not int.
22253         (excluded_filename, add_exclude):
22254         Add support for the fancy new exclusion options.
22255         (add_exclude, add_exclude_file): Now takes int options arg.
22256         Check for arithmetic overflow when computing sizes.
22257         (add_exclude_file): xrealloc might modify errno, so don't
22258         realloc until after errno might be used.
22259
22260         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
22261         New macros.
22262         (free_exclude): New decl.
22263         (add_exclude, add_exclude_file): Now takes int options arg.
22264         (excluded_filename): No longer requires options arg, as the options
22265         are determined by add_exclude.  Now returns bool, not int.
22266
22267 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22268
22269         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
22270
22271 2001-08-27  Jim Meyering  <meyering@lucent.com>
22272
22273         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
22274
22275         * lib/version-etc.c (N_): Remove definition.
22276         Revert most of last change.
22277         Instead, simply don't mark the `Copyright...' string for translation.
22278         Based on advice from Paul Eggert.
22279
22280         * lib/strtoxmax.c: Tweak comment.
22281
22282 2001-08-26  Jim Meyering  <meyering@lucent.com>
22283
22284         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
22285
22286         * m4/xstrtoimax.m4: New file.
22287         * m4/xstrtoumax.m4: Add comments explaining why we
22288         AC_REPLACE_FUNCS(strtol).
22289
22290 2001-08-26  Jim Meyering  <meyering@lucent.com>
22291
22292         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
22293         of copyright with `%s' so translators don't get an untranslated
22294         message in 2002.
22295         (COPYRIGHT_YEAR): Define.
22296         (version_etc): Use fprintf rather than fputs.
22297         Suggestion from Ulrich Drepper.
22298
22299         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
22300
22301         * lib/strtoll.c: New file, from GNU libc.
22302         * lib/xstrtoimax.c: New file.
22303
22304         * lib/xstrtol.h: Add xstrtoimax.
22305         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
22306         * lib/strtoimax.c: New file.  Likewise, but first define
22307         STRTOUXMAX_SIGNED.
22308
22309         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
22310         ...
22311         * lib/strtoxmax.c: ... then renamed to this.
22312
22313 2001-08-18  Paul Eggert  <eggert@twinsun.com>
22314
22315         * m4/inttypes.m4: Add AC_PREREQ(2.13).
22316         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
22317         (jm_AC_TYPE_INTMAX_T): New macro.
22318         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
22319
22320         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
22321
22322         * m4/longlong.m4: Renamed from ulonglong.m4.
22323         * m4/inttypes.m4: Renamed from inttypes_h.m4.
22324         * m4/uintmax_t.m4: Removed.
22325
22326 2001-08-13  Paul Eggert  <eggert@twinsun.com>
22327
22328         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
22329         Port to Solaris 8, where 'sed' requires a space after the 'r'
22330         command, and where sh dislikes "$/".  Clean up the spacing a bit.
22331         Redirect output to $tmp just once.
22332
22333 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
22334
22335         * lib/addext.c (<errno.h>): Include.
22336         (errno): Declare if not defined.
22337         (addext): Work correctly when pathconf returns -1 and leaves
22338         errno alone because there is no limit.  Also, work even if
22339         pathconf returns a value greater than SIZE_MAX.
22340
22341 2001-08-12  Jim Meyering  <meyering@lucent.com>
22342
22343         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
22344         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
22345         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
22346         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
22347         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
22348         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
22349         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
22350         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
22351         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
22352         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
22353         utime.m4, utimes.m4, xstrtoumax.m4:
22354         Quote the first argument in each use of AC_DEFUN.
22355
22356 2001-08-12  Jim Meyering  <meyering@lucent.com>
22357
22358         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
22359         Simply `return getcwd (NULL, 0);'.
22360         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
22361         Use 1300 as initial value for length, not PATH_MAX.
22362
22363         * lib/pathmax.h: Clean up cpp syntax.
22364
22365 2001-08-12  Jim Meyering  <meyering@lucent.com>
22366
22367         * lib/gettimeofday.c: New file.
22368         * lib/gtod.h: New file.
22369         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
22370
22371 2001-08-05  Jim Meyering  <meyering@lucent.com>
22372
22373         * m4/jm-macros.m4: Require autoconf-2.52.
22374
22375 2001-08-04  Jim Meyering  <meyering@lucent.com>
22376
22377         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
22378         stmt, to get in sync with glibc.
22379
22380 2001-08-03  Paul Eggert  <eggert@twinsun.com>
22381
22382         The following changes are from gettext 0.10.39 as maintained by
22383         Bruno Haible.
22384
22385         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
22386         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
22387         with inverted sense.  All uses changed.
22388
22389         * lib/mbswidth.c: Don't include <limits.h>.
22390         Include <stdlib.h> and <string.h> unconditionally.
22391         (iswcntrl, mbsinit, ISCNTRL): New macros.
22392         (mbsnwidth): Use K&R style function declarations.
22393         Don't bother checking for MB_LEN_MAX == 1, since the compiler
22394         can optimize it when MB_CUR_MAX == 1.
22395         The width of control characters is zero, not 1.
22396
22397 2001-08-03  Paul Eggert  <eggert@twinsun.com>
22398
22399         The following changes are from gettext 0.10.39 as maintained by
22400         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
22401
22402         * m4/codeset.m4: Upgrade to serial AM1.
22403         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
22404         all uses changed.  Quote first arg of AC_DEFUN.
22405         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
22406
22407         * m4/iconv.m4: Upgrade to serial AM2.
22408         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
22409         Add --with-libconv-prefix.
22410         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
22411         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
22412         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
22413         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
22414         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
22415
22416         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
22417         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
22418         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
22419         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
22420         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
22421         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
22422         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22423         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
22424         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
22425
22426         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
22427         string.h any more.
22428
22429         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
22430         not the default value.
22431
22432         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
22433         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
22434         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
22435         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
22436         Also check for iswcntrl, used for wcwidth fallback.
22437         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
22438         to Autoconf 2.13.
22439
22440 2001-08-03  Jim Meyering  <meyering@lucent.com>
22441
22442         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
22443         as it was in the original.  Reported by Paul Eggert.
22444
22445 2001-07-16  Jim Meyering  <meyering@lucent.com>
22446
22447         * m4/gettimeofday.m4: New file.
22448         Prompted by a report from Bernhard Baehr.
22449
22450 2001-07-15  Jim Meyering  <meyering@lucent.com>
22451
22452         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
22453         stuff. Now it's in ../Makefile.cfg.
22454
22455 2001-07-15  Jim Meyering  <meyering@lucent.com>
22456
22457         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
22458         (BUILT_SOURCES): Add unlocked-io.h.
22459         (io_functions): Define.
22460         (unlocked-io.h): New rule.
22461         (DISTCLEANFILES): Add unlocked-io.h.
22462         (all-local): Depend on unlocked-io.h, to ensure it is created.
22463
22464         * lib/unlocked-io.hin: New file
22465
22466         * lib/regex.c: Update from glibc.
22467
22468 2001-07-05  Jim Meyering  <meyering@lucent.com>
22469
22470         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
22471         recommendation.
22472         (libfetish_a_SOURCES): Put all .h files here instead.
22473         Remove a thus-exposed (better checks in automake) duplicate and
22474         two unnecessary .h files.
22475
22476 2001-07-04  Jim Meyering  <meyering@lucent.com>
22477
22478         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
22479         that generates jm-glibc-io.m4 so that it doesn't trigger any make
22480         distcheck failure.
22481
22482 2001-07-02  Jim Meyering  <meyering@lucent.com>
22483
22484         The following changes were prompted by suggestions from Bruno Haible.
22485
22486         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
22487         is now generated.
22488         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
22489         definition of EXTRA_DIST.
22490         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
22491         ensure that the generated file is created/updated whenever the list
22492         of $(unlocked_functions) is changed.
22493         (jm-glibc-io.m4): New rule.
22494         (unlocked-io.h): New rule -- currently unused.
22495
22496 2001-06-24  Jim Meyering  <meyering@lucent.com>
22497
22498         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
22499         unmatched right bracket, rather than kludging it with an extra,
22500         falsely-matching quote in a comment.  Patch by Akim Demaille.
22501
22502 2001-06-11  Jim Meyering  <meyering@lucent.com>
22503
22504         * lib/regex.c: Update from GNU libc.
22505
22506 2001-05-27  Jim Meyering  <meyering@lucent.com>
22507
22508         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
22509         Check for ut_type in struct utmp.
22510
22511 2001-05-27  Jim Meyering  <meyering@lucent.com>
22512
22513         * lib/readutmp.h (UT_TYPE): Define.
22514
22515 2001-05-24  Jim Meyering  <meyering@lucent.com>
22516
22517         * lib/argmatch.c: Include "quote.h".
22518         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
22519         quote function.  Reported by Göran Uddeborg.
22520
22521 2001-05-22  Jim Meyering  <meyering@lucent.com>
22522
22523         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
22524         now that we use the package-supplied version unconditionally.
22525         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
22526
22527 2001-05-21  Jim Meyering  <meyering@lucent.com>
22528
22529         * m4/regex.m4: Change a couple backticks to single quotes to avoid
22530         shell syntax errors.
22531
22532 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
22533
22534         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
22535
22536 2001-05-20  Paul Eggert  <eggert@twinsun.com>
22537
22538         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
22539         Don't bother to check library strftime, since
22540         we'll be using our own my_strftime function anyway.
22541         Define my_strftime instead of strftime.
22542
22543 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
22544
22545         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
22546         which is not yet declared.
22547
22548 2001-05-15  Jim Meyering  <meyering@lucent.com>
22549
22550         * m4/regex.m4: Use proper quoting so brackets appear in the test
22551         program.
22552         Reported by, and with help from, Bruno Haible.
22553
22554 2001-05-13  Jim Meyering  <meyering@lucent.com>
22555
22556         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
22557         undefined.
22558
22559 2001-05-11  Paul Eggert  <eggert@twinsun.com>
22560
22561         dirname code cleanup.  base_name now behaves more compatibly
22562         with POSIX basename when given file names that have trailing
22563         slashes, and similarly for dir_name.  Add new primitives
22564         base_len and dir_len.  Put the directory-name-related decls
22565         into dirname.h.
22566
22567         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
22568         * lib/backupfile.c (base_name): Likewise.
22569         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
22570         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
22571         * lib/makepath.c (strip_trailing_slashes): Likewise.
22572         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
22573         ISSLASH): Likewise.
22574         * lib/rename.c (strip_trailing_slashes): Likewise.
22575         * lib/same.c (base_name): Likewise.
22576         * lib/stripslash.c (ISSLASH): Likewise.
22577
22578         * lib/addext.c: Include <dirname.h> after size_t is defined.
22579         * lib/backupfile.c: Likewise.
22580
22581         * lib/addext.c (addext): Use base_len to trim redundant
22582         trailing slashes instead of doing it ourselves.
22583         But do not trim the last slash if it is not redundant.
22584
22585         * lib/backupfile.c (find_backup_file_name,
22586         max_backup_version): Use base_len instead of rolling it ourselves.
22587         Handle the case of "" and (on DOS) "C:" correctly.
22588
22589         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
22590         needed. Include <string.h>, <dirname.h>.
22591         (base_name): Allow file names ending in slashes, other than names
22592         that are all slashes.  In this case, return the basename followed
22593         by the slashes.  This is more general, and can be used in places
22594         where the original base_name purposely had an assertion failure.
22595         (base_len): New function.
22596
22597         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
22598         Do not include <assert.h>; no longer needed.
22599         Include xalloc.h.
22600         (memrchr): Remove decl.
22601         (dir_name_r): Remove.
22602         (dir_len): Renamed from dirlen.  All callers changed.
22603         Rewrite in terms of base_name, for simplicity and consistency.
22604         (dir_name): Never return NULL.  All callers changed.
22605         Do not include <stdlib.h> in test program; no longer needed.
22606         return 0; is fine for test program.
22607
22608         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
22609         New macros.
22610         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
22611
22612         * lib/path-concat.c (path_concat): Use base_len to compute
22613         base length, not strlen; this means we cannot rely on memcpy
22614         to null-terminate.
22615
22616         * lib/same.c (STREQ): Remove.
22617         (same_name): Handle the case where the basename ends in trailing '/'.
22618
22619         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
22620         a slash was stripped.  Do not strip the last slash after a
22621         file system prefix.
22622
22623 2001-05-11  Paul Eggert  <eggert@twinsun.com>
22624
22625         * lib/Makefile.am (libfetish_a_SOURCES):
22626         Add strftime.c, since we now compile it on all hosts.
22627
22628         * lib/strftime.c (my_strftime):
22629         Define to nstrftime if emacs, but only if my_strftime is not defined.
22630         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
22631         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
22632         Add one more extra argument: a nanoseconds value.
22633         All uses changed.
22634         (ns): New macro.
22635         (my_strftime function): Add %N format.
22636         (emacs_strftimeu): Renamed from emacs_strftime,
22637         with extra ut argument.
22638
22639 2001-05-09  Paul Eggert  <eggert@twinsun.com>
22640
22641         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
22642
22643 2001-04-21  Jim Meyering  <meyering@lucent.com>
22644
22645         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
22646         doesn't interfere.
22647
22648 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
22649
22650         * m4/ftruncate.m4: Check for chsize.
22651         Link with ftruncate.o unconditionally if ftruncate is missing.
22652         This was required when cross-compiling to i586-mingw32msvc.
22653
22654 2001-04-08  Jim Meyering  <meyering@lucent.com>
22655
22656         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
22657         recomputed; that's necessary when the offset spans a DST transition.
22658         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
22659
22660 2001-04-02  Jim Meyering  <meyering@lucent.com>
22661
22662         * lib/regex.h, regex.c: Update from GNU libc.
22663
22664 2001-03-24  Jim Meyering  <meyering@lucent.com>
22665
22666         * m4/jm-macros.m4: Require autoconf-2.49d.
22667
22668 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
22669
22670         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
22671
22672 2001-03-19  Paul Eggert  <eggert@twinsun.com>
22673
22674         * lib/version-etc.c (version_etc_copyright): Update to 2001.
22675
22676 2001-03-17  Jim Meyering  <meyering@lucent.com>
22677
22678         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
22679         now that the version in autoconf is equivalent.
22680         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
22681
22682         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
22683         Suggestion from Akim Demaille.
22684
22685         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
22686         (jm_PREREQ_TEMPNAME): New function.
22687
22688 2001-03-16  Paul Eggert  <eggert@twinsun.com>
22689
22690         * lib/tempname.c (uint64_t): Define to uintmax_t if
22691         not defined, and if UINT64_MAX is not defined.
22692         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
22693         Reported by John David Anglin.
22694
22695 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
22696
22697         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
22698         resolve alias if codeset is empty.
22699         * lib/config.charset (BeOS): Use wildcard syntax.
22700
22701 2001-03-13  Jim Meyering  <meyering@lucent.com>
22702
22703         * lib/path-concat.c (path_concat)
22704         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
22705         concatenating e.g., `C:' and `foo'.
22706         From Bruno Haible.
22707
22708 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
22709
22710         * lib/localcharset.c (locale_charset): Don't use
22711         setlocale(LC_CTYPE,NULL). Don't return NULL.
22712         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
22713
22714 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
22715
22716         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
22717         support for DOS/DJGPP.
22718
22719 2001-03-01  Paul Eggert  <eggert@twinsun.com>
22720
22721         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
22722         lacks mkstemp.  Compile our own tempname.c if we compile our own
22723         mkstemp.c, as mkstemp relies on tempname.
22724
22725 2001-03-01  Jim Meyering  <meyering@lucent.com>
22726
22727         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
22728         AH_VERBATIM really does output its argument verbatim.
22729
22730 2001-02-28  Paul Eggert  <eggert@twinsun.com>
22731
22732         * lib/Makefile.am (libfetish_a_SOURCES):
22733         Add dup-safer.c, fopen-safer.c.
22734         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
22735
22736         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
22737         * lib/unistd-safer.h: New files.
22738
22739 2001-02-25  Paul Eggert  <eggert@twinsun.com>
22740
22741         The mkstemp replacement is taken from glibc 2.2.2, with some
22742         portability fixes for use outside glibc, as follows:
22743
22744         * lib/tempname.c (struct_stat64): New macro.
22745         (direxists, __gen_tempname): Use it.
22746         This avoids a portability problem with Solaris 8.
22747
22748         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
22749         (<stddef.h>, <stdint.h>, <string.h>):
22750         Include only if STDC_HEADERS || _LIBC.
22751         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
22752         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
22753         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
22754         (__set_errno): Define this macro if <errno.h> doesn't.
22755         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
22756         Define these macros if <stdio.h> doesn't.
22757         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
22758         Define these macros if <sys/stat.h>
22759         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
22760         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
22761         __xstat64): Define if not _LIBC.
22762         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
22763         (__gen_tempname): Invoke gettimeofday only if
22764         HAVE_GETTIMEOFDAY || _LIBC;
22765         otherwise, fall back on plain "time".
22766         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
22767
22768         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
22769
22770         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
22771
22772 2001-02-18  Paul Eggert  <eggert@twinsun.com>
22773
22774         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
22775
22776 2001-02-17  Paul Eggert  <eggert@twinsun.com>
22777
22778         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
22779         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
22780         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
22781         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22782
22783 2001-02-17  Paul Eggert  <eggert@twinsun.com>
22784
22785         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
22786         Remove workaround macros for hosts that have mbrtowc but not
22787         mbstate_t, as we now insist on proper declarations for both
22788         before using mbrtowc.
22789
22790 2001-02-17  Jim Meyering  <meyering@lucent.com>
22791
22792         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
22793         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
22794         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
22795         UnixWare 7.1.1.
22796
22797         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
22798         rather than AC_CACHE_VAL.
22799
22800 2001-02-17  Jim Meyering  <meyering@lucent.com>
22801
22802         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
22803         around included file name.
22804
22805         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
22806
22807         * lib/strftime.c: Update from GNU libc (the only changes were to
22808         comments).
22809
22810 2001-02-17  Jim Meyering  <meyering@lucent.com>
22811
22812         * lib/regex.c: Update from libc.
22813
22814 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
22815
22816         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
22817         clash.
22818
22819 2001-02-16  Paul Eggert  <eggert@twinsun.com>
22820
22821         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
22822         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
22823         Reported by Mark Hounschell via Paul Eggert.
22824
22825 2001-02-07  Jim Meyering  <meyering@lucent.com>
22826
22827         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
22828
22829 2001-02-05  Jim Meyering  <meyering@lucent.com>
22830
22831         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
22832         it includes the patch required for `large file' support with at least
22833         HP-UX's 10.20 /bin/cc.
22834
22835 2001-02-03  Jim Meyering  <meyering@lucent.com>
22836
22837         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
22838         AS_IF, now that it works once again (mysteriously).
22839         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
22840
22841 2001-01-30  Jim Meyering  <meyering@lucent.com>
22842
22843         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
22844         * m4/chown.m4: Rename conftestchown to conftest.chown.
22845         * m4/rename.m4: s/conftestdir/conftest.d1/ and
22846         s/conftestdir2/conftest.d2/.
22847         * m4/utimes.m4: s/conftestdata/conftest.data/
22848         Inspired by Pavel Roskin's change in autoconf.
22849
22850 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
22851
22852         * lib/config.charset: Update for FreeBSD 4.2.
22853
22854 2001-01-27  Jim Meyering  <meyering@lucent.com>
22855
22856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
22857         a use of AS_IF.
22858         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
22859
22860 2001-01-26  Jim Meyering  <meyering@lucent.com>
22861
22862         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
22863         quotearg.c includes it.
22864
22865 2001-01-26  Jim Meyering  <meyering@lucent.com>
22866
22867         * lib/quotearg.c: Include stddef.h.
22868         * lib/quote.c: Include stddef.h.
22869         Reported by Axel Kittenberger.
22870
22871         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
22872         line in double quotes so that it evokes a better diagnostic.
22873         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
22874         Reported by Axel Kittenberger.
22875
22876 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
22877
22878         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
22879         as if it was a `charset'.
22880
22881 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
22882
22883         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
22884         has const.
22885
22886 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
22887
22888         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
22889         to avoid a warning.  Add back 'const' to inptr.
22890
22891 2001-01-20  Jim Meyering  <meyering@lucent.com>
22892
22893         Be sure that headers are checked before used in code compiled
22894         for the type checks.
22895         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
22896         In place of that, invoke jm_CHECK_ALL_TYPES.
22897         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
22898         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
22899         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
22900         The check for ssize_t was mistakenly run before the test for unistd.h.
22901
22902         The configure-time check for stdbool.h was missing.
22903         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
22904         (jm_PREREQ_HASH): New function.
22905
22906 2001-01-17  Jim Meyering  <meyering@lucent.com>
22907
22908         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
22909         for autoconf-2.49c.
22910         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
22911
22912 2001-01-16  Jim Meyering  <meyering@lucent.com>
22913
22914         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
22915         From Bruno Haible.
22916
22917 2001-01-14  Jim Meyering  <meyering@lucent.com>
22918
22919         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
22920         foo and bar.  Create conftestdir/ in the script, not in the C code.
22921         Remove directories in the script, not in the C code.
22922         Remove conftestdir{,2} before trying to create the directory.
22923         Make the entire configure script fail if the mkdir fails.
22924
22925 2001-01-14  Jim Meyering  <meyering@lucent.com>
22926
22927         * lib/rename.c: New file.  From Volker Borchert.
22928         Include stdlib.h, string.h or strings.h, and xalloc.h.
22929         Use strip_trailing_slashes rather than open-coding it.
22930
22931 2001-01-03  Paul Eggert  <eggert@twinsun.com>
22932
22933         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
22934
22935 2001-01-03  Jim Meyering  <meyering@lucent.com>
22936
22937         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
22938         of local `inptr' to avoid warning with some system declarations of
22939         iconv.
22940
22941 2001-01-02  Volker Borchert  <bt@teknon.de>
22942
22943         * m4/rename.m4: New file.
22944         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
22945
22946 2001-01-01  Jim Meyering  <meyering@lucent.com>
22947
22948         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
22949         even on systems with utmpx.h.  It's necessary for the declaration of
22950         utmp's ut_user member.  Reported by Andreas Jaeger.
22951
22952         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
22953         available. They are required for the declarations of getgrgid and
22954         getpwuid resp.
22955         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
22956         Reported by Andreas Jaeger.
22957
22958 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
22959
22960         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
22961         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
22962         so `make install' also works in VPATH builds.
22963
22964 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
22965
22966         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
22967         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
22968         can be used in subdirectories.
22969
22970 2000-12-29  Paul Eggert  <eggert@twinsun.com>
22971
22972         * lib/modechange.c: Do not assume that mode_t uses the
22973         traditional octal encoding.  E.g. "chmod 1 FOO" should set
22974         the other-execute bit of FOO even if S_IXOTH != 1.
22975
22976         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
22977         WOTH, XOTH, ALLM): New macros.
22978         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
22979          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
22980         Use them.
22981         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
22982         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
22983         (mode_compile):
22984         No need to use uintmax_t; unsigned long is long enough.
22985         Don't bother to get suffix since we don't use it.
22986
22987 2000-12-26  Jim Meyering  <meyering@lucent.com>
22988
22989         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
22990         better with autoheader.
22991
22992 2000-12-24  Jim Meyering  <meyering@lucent.com>
22993
22994         * lib/hash.c (is_prime): Return explicit boolean values.
22995         (hash_get_first): Return NULL to appease Irix5.6's 89.
22996         Reported by Nelson Beebe.
22997
22998 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
22999
23000         * lib/localcharset.c (locale_charset): Add support for Win32.
23001
23002 2000-12-18  Paul Eggert  <eggert@twinsun.com>
23003
23004         * lib/physmem.h, lib/physmem.c: New files.
23005
23006         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
23007         (noinst_HEADERS): Add physmem.h.
23008
23009         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
23010         't' for compatibility with Solaris 8 sort.
23011
23012 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
23013
23014         * lib/config.charset: Add support for BeOS.
23015
23016 2000-12-17  Jim Meyering  <meyering@lucent.com>
23017
23018         * m4/dos.m4 (jm_AC_DOS): New file and macro.
23019         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
23020
23021 2000-12-16  Jim Meyering  <meyering@lucent.com>
23022
23023         This bug had a serious impact on chown: `chown N:M FILE' (for integer
23024         N and M) would have treated it like `chown N:N FILE'.
23025
23026         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
23027
23028 2000-12-16  Jim Meyering  <meyering@lucent.com>
23029
23030         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
23031         SHELLS_FILE to a file name that's useful on djgpp systems.
23032         Include stdlib.h.
23033         (ADDITIONAL_DEFAULT_SHELLS): Define.
23034         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
23035         Based mostly on a patch from Prashant TR.
23036
23037 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
23038
23039         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
23040         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
23041         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
23042
23043 2000-12-08  Andreas Schwab  <schwab@suse.de>
23044
23045         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
23046         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
23047
23048 2000-12-07  Jim Meyering  <meyering@lucent.com>
23049
23050         * lib/stripslash.c (ISSLASH): Define.
23051         (strip_trailing_slashes): Use ISSLASH rather than comparing against
23052         `/'.
23053         From Prashant TR.
23054
23055         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
23056         (dir_name_r): Declare this function as static.
23057         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
23058         manifest itself on a name containing a mix of slashes and
23059         backslashes.
23060         Make this function work with names starting with a DOS-style
23061         drive letter and colon prefix.
23062         (dir_name): Append `.' if necessary.
23063         Based mostly on patches from Prashant TR and Eli Zaretskii.
23064
23065         * lib/dirname.h (dir_name_r): Remove prototype.
23066
23067 2000-12-06  Paul Eggert  <eggert@twinsun.com>
23068
23069         * m4/off_t-format.m4: Remove this file.
23070         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
23071
23072 2000-12-06  Jim Meyering  <meyering@lucent.com>
23073
23074         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
23075         replacement strtoull, we may well need the replacement strtoul, too.
23076         Check for declarations of strtoul and strtoull.
23077         Check for strtol.  Mainly as a cue to cause automake to include
23078         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
23079         Check for limits.h -- strtol.c needs it.
23080
23081 2000-12-05  Jim Meyering  <meyering@lucent.com>
23082
23083         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
23084
23085 2000-12-04  Jim Meyering  <meyering@lucent.com>
23086
23087         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
23088         Also include memory.h, stdlib.h, unistd.h if appropriate.
23089         Reported by Andreas Jaeger (conflicting declaration of malloc).
23090
23091 2000-12-02  Jim Meyering  <meyering@lucent.com>
23092
23093         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
23094         * m4/jm-macros.m4 (jm_MACROS): require it.
23095
23096 2000-12-02  Jim Meyering  <meyering@lucent.com>
23097
23098         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
23099
23100 2000-12-01  Paul Eggert  <eggert@twinsun.com>
23101
23102         * lib/memrchr.c: Include <config.h> before any system include file.
23103
23104 2000-11-30  Jim Meyering  <meyering@lucent.com>
23105
23106         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
23107
23108 2000-11-30  Jim Meyering  <meyering@lucent.com>
23109
23110         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
23111
23112 2000-11-29  Paul Eggert  <eggert@twinsun.com>
23113
23114         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
23115
23116 2000-11-26  Jim Meyering  <meyering@lucent.com>
23117
23118         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
23119
23120 2000-11-22  Paul Eggert  <eggert@twinsun.com>
23121
23122         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
23123         size of (size_t) -1; it's not portable.
23124
23125 2000-11-17  Jim Meyering  <meyering@lucent.com>
23126
23127         * lib/strstr.c: Update from GNU libc.
23128
23129 2000-11-17  Akim Demaille  <akim@epita.fr>
23130
23131         * lib/obstack.h: Formatting changes.
23132         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
23133         prevent type checking.
23134         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
23135         cast the value to (void *): assigning a `foo *' to a `void *'
23136         variable is valid.
23137         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
23138
23139 2000-11-16  Jim Meyering  <meyering@lucent.com>
23140
23141         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
23142
23143 2000-11-11  Jim Meyering  <meyering@lucent.com>
23144
23145         * lib/error.c: Add a couple #includes, merging from GNU libc version.
23146
23147 2000-11-10  Jim Meyering  <meyering@lucent.com>
23148
23149         * lib/obstack.h: Update from GNU libc.
23150         * lib/obstack.c: Likewise.
23151
23152 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
23153
23154         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
23155
23156 2000-11-06  Paul Eggert  <eggert@twinsun.com>
23157
23158         * lib/getusershell.c (setusershell): Use rewind rather than
23159         fseek/fseeko, to avoid configuration hassles with fseeko.
23160         Don't bother opening SHELLS_FILE if shellstream is NULL;
23161         it's not necessary.
23162
23163 2000-11-05  Jim Meyering  <meyering@lucent.com>
23164
23165         * lib/makepath.h (make_dir): Declare.
23166         * lib/makepath.c (make_dir): Remove `static' attribute.
23167         Tweak a comment.
23168
23169 2000-11-04  Jim Meyering  <meyering@lucent.com>
23170
23171         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
23172
23173 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
23174
23175         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
23176         last one in a bucket, advance to the next bucket.
23177
23178 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
23179
23180         * lib/fnmatch.c: Do not comment out all the code if we are using
23181         the GNU C library, because in some cases we are replacing buggy
23182         code in the GNU C library itself.
23183
23184 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
23185
23186         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
23187         (regex_compile): Catch bogus \(\1\).
23188
23189 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23190
23191         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
23192         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
23193         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
23194
23195 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23196
23197         * lib/error.h, getline.h, modechange.h:
23198         Remove "2000" from Copyright line, as the file hasn't been
23199         changed this year other than in the copyright notice.
23200
23201         * lib/xalloc.h: Add "2000" to Copyright line, as this file
23202         was changed this year.
23203
23204 2000-10-29  Jim Meyering  <meyering@lucent.com>
23205
23206         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
23207         renaming.
23208         * m4/ls-mntd-fs.m4: Likewise
23209
23210 2000-10-29  Jim Meyering  <meyering@lucent.com>
23211
23212         * lib/xstat.in: Fix grammar in comment.
23213
23214 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
23215
23216         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
23217         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
23218         doesn't define __restrict_arr.
23219
23220 2000-10-28  Jim Meyering  <meyering@lucent.com>
23221
23222         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
23223         (jm_PREREQ_MEMCHR): New function.
23224
23225 2000-10-28  Jim Meyering  <meyering@lucent.com>
23226
23227         * lib/memchr.c: Update from libc.
23228         Adjust for portability:
23229         [HAVE_STDLIB_H]: Include stdlib.h.
23230         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
23231         Undef __memchr, too.
23232         [!weak_alias]: Define __memchr to memchr.
23233
23234         * lib/regex.c: Update from libc.
23235         * lib/regex.h: Likewise.
23236         * lib/getopt1.c: Likewise.
23237         * lib/memcmp.c: Likewise.
23238
23239         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
23240         Avoid using fseek, when possible -- it's broken by design.
23241         Patch by Ulrich Drepper.
23242
23243 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
23244
23245         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
23246         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
23247         Giving in to popular pressure to shut up the compiler with casts.
23248
23249 2000-10-26  Jim Meyering  <meyering@lucent.com>
23250
23251         * lib/strftime.c: Update from libc.
23252
23253 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
23254
23255         * regex.c: More `unsigned char' -> `re_char' changes.
23256         Also change several `int' into `re_wchar_t'.
23257         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
23258         (PUSH_FAILURE_POINTER): Don't cast any more.
23259         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
23260         We want GCC to complain, since this piece of code makes
23261         re_match non-reentrant, which *should* be fixed.
23262         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
23263         (EXTEND_BUFFER): Use RETALLOC.
23264         (SET_LIST_BIT): Don't cast.
23265         (re_wchar_t): New type.
23266         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
23267         that those two functions will always properly return.
23268         (IMMEDIATE_QUIT_CHECK): Cast to void.
23269         (analyse_first): Use recursion rather than an explicit stack.
23270         (re_compile_fastmap): Can't fail anymore.
23271         (re_search_2): Don't check re_compile_fastmap for failure.
23272         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
23273         Now also sets the new value (passed in a new argument).
23274         (re_match_2_internal): Use it.
23275         Also, use a new var `reg' of type size_t when looping through regs
23276         rather than reuse the inappropriate `mcnt'.
23277
23278 2000-10-25  Jim Meyering  <meyering@lucent.com>
23279
23280         * lib/obstack.c: Update from libc.
23281
23282 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
23283
23284         * regex.c (regex_compile): Change the way of handling a range from
23285         a char less than 256 to a char not less than 256.
23286
23287 2000-10-24  Andrew Innes  <andrewi@gnu.org>
23288
23289         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
23290         NT-Emacs only.
23291         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
23292         so that re_search functions only quit when callers expect them to.
23293
23294 2000-10-23  Jim Meyering  <meyering@lucent.com>
23295
23296         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
23297         wrong.  That set_locale call must not have any side effects.
23298         From Paul Eggert.
23299
23300 2000-10-22  Jim Meyering  <meyering@lucent.com>
23301
23302         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
23303         [CYCLIC]: Remove now-unused definition.
23304
23305         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
23306         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
23307         Suggestion from Ulrich Drepper.
23308
23309 2000-10-21  Jim Meyering  <meyering@lucent.com>
23310
23311         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
23312         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
23313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
23314
23315 2000-10-21  Jim Meyering  <meyering@lucent.com>
23316
23317         * lib/dirname.c (memrchr): Declare if necessary.
23318         (dir_name): Remove the restriction that there be no
23319         trailing slashes.  Now, this code skips past them, effectively
23320         ignoring them.
23321         [TEST_DIRNAME] (main): New unit tests.
23322
23323         * lib/memrchr.c: New file from GNU libc.
23324         Undef __memrchr, too.
23325         [!weak_alias]: Define __memrchr to memrchr.
23326         Guard weak_alias use with `#ifdef weak_alias'.
23327
23328 2000-10-21  Jim Meyering  <meyering@lucent.com>
23329
23330         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
23331         (dir_name): Use dir_name_r.
23332         * lib/dirname.h (dir_name_r): Declare it.
23333
23334 2000-10-17  Jim Meyering  <meyering@lucent.com>
23335
23336         * lib/quote.h (PARAMS): Define and use.
23337         Reported by Akim Demaille.
23338
23339         * lib/getopt.c: Update from libc.
23340
23341 2000-10-16  Jim Meyering  <meyering@lucent.com>
23342
23343         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
23344         setlocale.
23345         From Jan Fedak.
23346
23347 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
23348
23349         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
23350
23351 2000-09-25  Jim Meyering  <meyering@lucent.com>
23352
23353         * lib/md5.h (rol): Define (from GnuPG).
23354
23355         * lib/sha.c: Give credit (GnuPG) where due.
23356         (M): Use rol rather than open-coding it.
23357         Add a FIXME comment.
23358
23359 2000-09-21  Jim Meyering  <meyering@lucent.com>
23360
23361         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
23362         Reported by Michael Stone.
23363
23364 2000-09-20  Jim Meyering  <meyering@lucent.com>
23365
23366         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
23367         (noinst_HEADERS): Add sha.h.
23368         Based on code from Scott G. Miller and from GnuPG.
23369
23370 2000-09-18  Jim Meyering  <meyering@lucent.com>
23371
23372         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
23373         LIBS. Otherwise, everyone ends up linking with -lelf for some
23374         configurations.
23375         Reported by Mike Stone.
23376
23377 2000-09-15  Jim Meyering  <meyering@lucent.com>
23378
23379         * lib/regex.c: Update from libc.
23380
23381 2000-09-10  Jim Meyering  <meyering@lucent.com>
23382
23383         * lib/getopt.c (_getopt_internal): Update from glibc.
23384
23385 2000-09-09  Jim Meyering  <meyering@lucent.com>
23386
23387         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
23388         think it should be used as a general replacement for isascii.
23389         * lib/fnmatch.c: Likewise.
23390         * lib/mbswidth.c: Likewise
23391         * lib/regex.c: Likewise.
23392
23393         Don't use atoi.
23394         * lib/userspec.c: Include sys/param.h and limits.h.
23395         Include xstrtol.h.
23396         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23397         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
23398         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
23399         UID, GID.  Check range.
23400
23401 2000-09-06  Jim Meyering  <meyering@lucent.com>
23402
23403         * lib/getopt.c (_getopt_internal): Update from glibc.
23404
23405 2000-08-30  Jim Meyering  <meyering@lucent.com>
23406
23407         * lib/strftime.c: Merge in changes from GNU libc.
23408
23409 2000-08-26  Jim Meyering  <meyering@lucent.com>
23410
23411         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
23412         * m4/fpending.m4: New file.
23413
23414 2000-08-26  Jim Meyering  <meyering@lucent.com>
23415
23416         * lib/closeout.c: Include "__fpending.h".
23417         (close_stdout_status): Return right away if there's nothing to flush.
23418
23419         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
23420         * lib/__fpending.c: New file.
23421         * lib/__fpending.h: New file.
23422
23423 2000-08-20  Jim Meyering  <meyering@lucent.com>
23424
23425         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
23426         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
23427         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
23428
23429 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
23430
23431         Improve fileutils installation on systems where running
23432         programs (like install) can't be unlinked.
23433         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
23434         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
23435
23436 2000-08-07  Paul Eggert  <eggert@twinsun.com>
23437
23438         Standardize on "memory exhausted" instead of "Memory exhausted"
23439         or "virtual memory exhausted".
23440         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
23441         "virtual memory exhausted".
23442         * lib/same.c (same_name): Invoke xalloc_die instead of printing
23443         our own message.
23444         * lib/userspec.c (parse_user_spec): Likewise.
23445         * lib/bumpalloc.h: comment fix
23446         * lib/same.c, userspec.c: Include xalloc.h.
23447
23448         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
23449         not char *const and pointing to a constant array.
23450         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
23451         (xrealloc): Comment fix.
23452
23453         * lib/userspec.c (parse_user_spec):
23454         Don't translate a message until just before returning,
23455         to avoid unnecessary translation.
23456
23457 2000-08-07  Jim Meyering  <meyering@lucent.com>
23458
23459         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
23460         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
23461         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
23462         getgroups.c, gethostname.c, getopt.h, group-member.c,
23463         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
23464         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
23465         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
23466         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
23467         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
23468         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
23469         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
23470         yesno.c: Back out Copyright date changes for each file with no change
23471         this year.  This eases coordination with other programs using the same
23472         source code modules.  From Paul Eggert.
23473
23474 2000-08-06  Paul Eggert  <eggert@twinsun.com>
23475
23476         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
23477         not char, for compatibility with glibc 2.1.3 strftime.c.
23478
23479 2000-08-03  Greg McGary  <greg@mcgary.org>
23480
23481         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
23482         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
23483         (EXTEND_BUFFER): Use them.
23484
23485 2000-08-01  Jim Meyering  <meyering@lucent.com>
23486
23487         * lib/dirname.c (ISSLASH): Define.
23488         (BACKSLASH_IS_PATH_SEPARATOR): Define.
23489         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
23490         both `\' and `/' may be use as path separators.
23491         Based on a patch from Prashant TR.
23492
23493 2000-07-31  Paul Eggert  <eggert@twinsun.com>
23494
23495         * lib/quotearg.c (quotearg_n_options): Don't make the initial
23496         slot vector a constant, since it might get modified.
23497
23498 2000-07-31  Jim Meyering  <meyering@lucent.com>
23499
23500         * lib/xmalloc.c: Use `virtual memory exhausted', not
23501         `Memory exhausted'.
23502         * lib/obstack.c (print_and_abort): Likewise.
23503
23504 2000-07-30  Paul Eggert  <eggert@twinsun.com>
23505
23506         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
23507         buffer, so that the caller can always quote one small
23508         component of a "memory exhausted" message in slot 0.
23509         From a suggestion by Jim Meyering.
23510
23511 2000-07-30  Jim Meyering  <meyering@lucent.com>
23512
23513         * lib/makepath.c (make_path): Quote the other instance, too.
23514
23515         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
23516         (STATIC_BUF_SIZE): Define.
23517         (quotearg_n_options): Use only statically allocated storage when
23518         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
23519         than STATIC_BUF_SIZE.
23520
23521 2000-07-29  Jim Meyering  <meyering@lucent.com>
23522
23523         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
23524         * lib/dirname.c (dir_name): Likewise.
23525
23526         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
23527         `/'.
23528
23529         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
23530         (dir_name): Assert that there are no trailing slashes.
23531
23532 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
23533
23534         * lib/mbswidth.h (mbswidth): Add a flags argument.
23535         (mbswidth): New declaration.
23536         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
23537         * lib/mbswidth.c (mbswidth): Add a flags argument.
23538         (mbsnwidth): New function.
23539
23540 2000-07-24  Jim Meyering  <meyering@lucent.com>
23541
23542         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
23543
23544 2000-07-23  Paul Eggert  <eggert@twinsun.com>
23545
23546         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
23547
23548 2000-07-23  Paul Eggert  <eggert@twinsun.com>
23549
23550         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
23551         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
23552         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
23553         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
23554         invoke multibyte primitives.
23555
23556 2000-07-23  Paul Eggert  <eggert@twinsun.com>
23557
23558         * lib/quotearg.c:
23559         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
23560         so that mbstate_t is always defined.
23561
23562         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
23563         be 1 in at least one GCC installation, and this configuration
23564         error is likely to be common.  Ignoring MB_LEN_MAX hurts
23565         performance on hosts that have mbrtowc but have only unibyte
23566         locales, but I assume these hosts are rare.
23567
23568 2000-07-23  Paul Eggert  <eggert@twinsun.com>
23569
23570         * lib/mbswidth.c (_XOPEN_SOURCE):
23571         Don't define; this causes problems on Solaris 7.
23572         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
23573
23574 2000-07-23  Jim Meyering  <meyering@lucent.com>
23575
23576         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
23577         too: getgrgid, getpwuid, getuid.
23578
23579 2000-07-23  Jim Meyering  <meyering@lucent.com>
23580
23581         * lib/basename.c (base_name): Add an assertion.
23582
23583 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
23584
23585         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
23586         shadow its mbsinit function.
23587
23588 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
23589
23590         * lib/mbswidth.h: New file.
23591         * lib/mbswidth.c: New file.
23592         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
23593         (noinst_HEADERS): Add mbswidth.h.
23594
23595 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
23596
23597         * lib/config.charset: Add support for FreeBSD. Improve support for
23598         HP-UX and IRIX 6.
23599
23600 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
23601
23602         * m4/mbswidth.m4: New file.
23603         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
23604
23605 2000-07-15  Jim Meyering  <meyering@lucent.com>
23606
23607         * lib/makepath.c: Include quote.h.
23608         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
23609         corresponding argument in a `quote (...)' call.
23610         Give better diagnostics.
23611
23612         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
23613         (noinst_HEADERS): Add quote.h.
23614
23615         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
23616         from tar's src/misc.c.
23617         * lib/quote.h: New file.  Prototypes for same.
23618
23619 2000-07-14  Paul Eggert  <eggert@twinsun.com>
23620
23621         From a suggestion by Bruno Haible.
23622         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
23623         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
23624         to decide whether to define the BeOS workaround macro;
23625         this adjusts to the change to AC_MBSTATE_T.
23626
23627 2000-07-14  Jim Meyering  <meyering@lucent.com>
23628
23629         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
23630         jm_AC_TYPE_UINTMAX_T.
23631
23632 2000-07-13  Paul Eggert  <eggert@twinsun.com>
23633
23634         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
23635
23636         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
23637         quotearg_buffer_restyled): Add support for
23638         clocale_quoting_style.  Undo previous change to
23639         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
23640         and "{RIGHT QUOTATION MARK}" msgids.
23641
23642 2000-07-10  Paul Eggert  <eggert@twinsun.com>
23643
23644         From a suggestion by Bruno Haible.
23645         * m4/mbstate_t.m4 (AC_MBSTATE_T):
23646         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
23647         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
23648         and mbstate_t, to a single-part test that simply defines mbstate_t.
23649         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
23650         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
23651
23652 2000-07-10  Jim Meyering  <meyering@lucent.com>
23653
23654         * m4/strerror_r.m4: Mirror the correction made in autoconf.
23655
23656         * m4/gnu-source.m4: Output to confdefs.h directly.
23657         Suggestion from Akim Demaille.
23658
23659 2000-07-09  Paul Eggert  <eggert@twinsun.com>
23660
23661         The old behavior of quoting `like this' doesn't look good with
23662         newer, ISO-style fonts.  See:
23663         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
23664
23665         Instead, quote "like this" by default.  Let the translator
23666         tailor the locale-specific quoting behavior by providing
23667         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
23668
23669         * lib/quotearg.c (N_): New macro.
23670         (gettext_default): New function.
23671         (quotearg_buffer_restyled): Use
23672         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
23673         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
23674
23675 2000-07-09  Jim Meyering  <meyering@lucent.com>
23676
23677         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
23678         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
23679
23680         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
23681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
23682
23683 2000-07-09  Jim Meyering  <meyering@lucent.com>
23684
23685         * lib/Most files: Update copyright dates to include 2000.
23686
23687 2000-07-08  Jim Meyering  <meyering@lucent.com>
23688
23689         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
23690         if not defined.
23691         (xgethostname): Remove now-unnecessary #ifdef.
23692         Move declaration of `err' into loop where it's used.
23693
23694 2000-07-05  Paul Eggert  <eggert@twinsun.com>
23695         and Bruno Haible  <haible@clisp.cons.org>
23696
23697         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
23698         only if the test for an object-type mbstate_t fails.  This
23699         prevents us from mistakenly reporting that mbstate_t is a
23700         system object type after we "#define mbstate_t int" to work
23701         around its lack.
23702
23703 2000-07-05  Paul Eggert  <eggert@twinsun.com>
23704         and Bruno Haible  <haible@clisp.cons.org>
23705
23706         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
23707
23708 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
23709
23710         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
23711         to strerror_r.
23712         Include <ctype.h> for use of isalpha.
23713
23714 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
23715
23716         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
23717         by allocating a larger buffer. Test the gethostname return value for
23718         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
23719         returns an error and ENAMETOOLONG isn't defined.
23720
23721 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
23722
23723         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
23724         dimension.
23725
23726 2000-07-04  Jim Meyering  <meyering@lucent.com>
23727
23728         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
23729         of the deprecated AC_CHECKING.
23730
23731 2000-07-04  Jim Meyering  <meyering@lucent.com>
23732
23733         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
23734         Reported by Bruno Haible.
23735
23736 2000-07-04  Jim Meyering  <meyering@lucent.com>
23737
23738         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
23739         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
23740         lacks mbrtowc.
23741
23742 2000-07-03  Paul Eggert  <eggert@twinsun.com>
23743
23744         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
23745         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
23746
23747 2000-07-03  Paul Eggert  <eggert@twinsun.com>
23748         and Bruno Haible  <haible@clisp.cons.org>
23749
23750         * lib/quotearg.c (mbrtowc):
23751         Assign to *pwc, and return 1 only if result is nonzero.
23752         (iswprint): Use ISPRINT when substituting our own mbrtowc.
23753
23754 2000-07-03  Jim Meyering  <meyering@lucent.com>
23755
23756         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
23757
23758 2000-07-03  Jim Meyering  <meyering@lucent.com>
23759
23760         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
23761         This is necessary to get a definition of e.g., UTMP_FILE on
23762         HP-UX 10.20.
23763         From Bob Proulx.
23764
23765 2000-07-02  Jim Meyering  <meyering@lucent.com>
23766
23767         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
23768
23769         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
23770         AC_LIBOBJ(function_name).
23771         * m4/chown.m4: Likewise.
23772         * m4/fnmatch.m4: Likewise.
23773         * m4/ftruncate.m4: Likewise.
23774         * m4/getgroups.m4: Likewise.
23775         * m4/getline.m4: Likewise.
23776         * m4/group-member.m4: Likewise.
23777         * m4/jm-macros.m4: Likewise.
23778         * m4/lstat.m4: Likewise.
23779         * m4/malloc.m4: Likewise.
23780         * m4/memcmp.m4: Likewise.
23781         * m4/nanosleep.m4: Likewise.
23782         * m4/putenv.m4: Likewise.
23783         * m4/realloc.m4: Likewise.
23784         * m4/regex.m4: Likewise.
23785         * m4/stat.m4: Likewise.
23786         * m4/strftime.m4: Likewise.
23787
23788 2000-07-02  Jim Meyering  <meyering@lucent.com>
23789
23790         * lib/quotearg.c (mbstate_t): Don't define here.
23791
23792 2000-07-02  Jim Meyering  <meyering@lucent.com>
23793
23794         * lib/nanosleep.c (SIGCONT): Define if not already defined.
23795
23796 2000-07-01  Jim Meyering  <meyering@lucent.com>
23797
23798         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
23799
23800 2000-07-01  Jim Meyering  <meyering@lucent.com>
23801
23802         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
23803         problem.
23804
23805 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
23806
23807         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
23808         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
23809
23810 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
23811
23812         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
23813         per change in ../m4/ls-mntd-fs.m4.
23814         (read_filesystem_list): Ignore symbolic links.
23815
23816 2000-06-29  Jim Meyering  <meyering@lucent.com>
23817
23818         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
23819         for declaration of strcmp.
23820
23821         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
23822
23823         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
23824         Avoid warning by casting result to `char *' to remove `const'.
23825
23826 2000-06-28  Jim Meyering  <meyering@lucent.com>
23827
23828         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
23829         included by quotearg.c, for which we perform this test.  From
23830         Bruno Haible.
23831
23832 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
23833
23834         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
23835         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
23836         <utmpx.h> exists, put readutmp.o into LIBOBJS.
23837
23838 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
23839
23840         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
23841
23842 2000-06-26  Paul Eggert  <eggert@twinsun.com>
23843
23844         savedir now sets errno on failure and invokes xmalloc to get memory.
23845         Fix a couple of other minor bugs while we're at it.
23846
23847         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
23848         (NAMLEN): Remove macro.
23849         (malloc, realloc): Remove decls.
23850         (stpcpy): Likewise.
23851         ("xalloc.h"): Include.
23852         (NAME_SIZE_DEFAULT): New macro.
23853         (savedir): Use xmalloc / xrealloc to allocate memory.
23854         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
23855         Skip "" directory entries.
23856         Use strlen to calculate directory entry length, since the old method
23857         is rarely used these days and isn't worth supporting.
23858         Don't use a pointer after freeing it.
23859         Check for integer overflow when calculating allocation size.
23860         Use memcpy to copy entries, instead of stpcpy.
23861         Set errno properly when returning NULL.
23862         Check for readdir error.
23863
23864 2000-06-26  Jim Meyering  <meyering@lucent.com>
23865
23866         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
23867
23868 2000-06-25  Jim Meyering  <meyering@lucent.com>
23869
23870         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
23871         Linux header bug when _XOPEN_SOURCE is defined to 500.
23872
23873 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
23874
23875         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
23876         deficiency.
23877
23878 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
23879
23880         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
23881         Include xalloc.h.
23882         Don't include <stdlib.h>.  Don't declare malloc, realloc.
23883
23884 2000-06-24  Jim Meyering  <meyering@lucent.com>
23885
23886         * m4/strerror_r.m4: Revive this file -- to try out an experimental
23887         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
23888         for which strerror does return char*, but which lacks a conveniently
23889         accessible declaration of the function.  If the compile-test says
23890         strerror_r doesn't work, then resort to a `run'-test that works on
23891         BeOS and segfaults on DEC Unix.
23892
23893 2000-06-24  Jim Meyering  <meyering@lucent.com>
23894
23895         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
23896
23897 2000-06-23  Paul Eggert  <eggert@twinsun.com>
23898
23899         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
23900         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
23901
23902 2000-06-23  Paul Eggert  <eggert@twinsun.com>
23903
23904         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
23905         (mbrtowc, mbstate_t): Define substitutes if
23906         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
23907         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
23908         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
23909
23910 2000-06-23  Jim Meyering  <meyering@lucent.com>
23911
23912         * m4/afs.m4: Add missing AC_MSG_RESULT.
23913         Reported by Bruno Haible.
23914
23915         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
23916         Suggestion from Bruno Haible.
23917
23918 2000-06-23  Jim Meyering  <meyering@lucent.com>
23919
23920         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
23921
23922 2000-06-21  Jim Meyering  <meyering@lucent.com>
23923
23924         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
23925
23926 2000-06-21  Jim Meyering  <meyering@lucent.com>
23927
23928         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
23929         (noinst_HEADERS): Add getstr.h.
23930
23931         * lib/getline.c (getstr): Move into a separate file.
23932         * lib/getstr.c (getstr): New file, extracted from getline.c, with
23933         the following changes: new parameter, delim2; both delim[12]
23934         parameters have type `int', not `char'.  The latter would lose
23935         with 8-bit delimiters.
23936         * lib/getstr.h: New file.
23937
23938 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23939
23940         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
23941         than 1024, return a memory chunk of least possible size, instead
23942         of size PATH_MAX + 2. In the loop, increment the size proportionally.
23943         Use free/xmalloc instead of xrealloc to avoid copying for very long
23944         paths.
23945
23946 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23947
23948         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
23949         the empty string.
23950
23951 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23952
23953         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
23954         address, not strdup.  Include <stdlib.h> and don't declare free().
23955
23956 2000-06-19  Jim Meyering  <meyering@lucent.com>
23957
23958         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
23959
23960 2000-06-18  Jim Meyering  <meyering@lucent.com>
23961
23962         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
23963
23964         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
23965         `checking whether...' message to be consistent with that of the
23966         lstat test.
23967
23968 2000-06-18  Jim Meyering  <meyering@lucent.com>
23969
23970         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
23971         Besides, these days every porting target provides a mkdir function.
23972
23973         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
23974         needed. (this snippet comes from src/system.h).
23975
23976 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
23977
23978         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
23979
23980 2000-06-15  Paul Eggert  <eggert@twinsun.com>
23981
23982         * lib/human.c (adjust_value): New function.
23983         (human_readable_inexact): Apply rounding style even when
23984         printing approximate values.
23985
23986 2000-06-14  Paul Eggert  <eggert@twinsun.com>
23987
23988         * lib/human.c (human_readable_inexact): Allow an input block
23989         size that is not a multiple of the output block size, and vice versa.
23990         Reported by Piergiorgio Sartor.
23991
23992 2000-06-14  Paul Eggert  <eggert@twinsun.com>
23993
23994         * lib/getdate.y (get_date): Apply relative times after time
23995         zone indicator, not before.  Reported by Todd A. Jacobs.
23996
23997 2000-06-13  Jim Meyering  <meyering@lucent.com>
23998
23999         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
24000
24001         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
24002
24003 2000-06-12  Paul Eggert  <eggert@twinsun.com>
24004
24005         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
24006
24007 2000-06-12  Jim Meyering  <meyering@lucent.com>
24008
24009         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
24010         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
24011         optional argument.
24012         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
24013         the optional argument, `lib'.
24014
24015 2000-06-08  Jim Meyering  <meyering@lucent.com>
24016
24017         * m4/largefile.m4: Remove file (now that it's part of autoconf).
24018
24019 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24020
24021         Rewrite largefile configuration so that we don't need to run
24022         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
24023         AC_CANONICAL_HOST in configure.in -- jmm]
24024
24025         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
24026         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
24027         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
24028         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
24029         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
24030         All uses changed.
24031         Instead of inspecting the output of getconf, try to compile the
24032         test program without and with the macro definition.
24033         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
24034         for getconf.  Instead, check for the needed flags by compiling
24035         test programs.
24036
24037 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24038
24039         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
24040
24041 2000-06-04  Jim Meyering  <meyering@lucent.com>
24042
24043         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
24044         SunOS 4.1.4 for which gid_t is an unsigned type.
24045
24046 2000-06-03  Jim Meyering  <meyering@lucent.com>
24047
24048         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
24049         now that autoconf requires that.
24050
24051         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
24052         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
24053         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
24054
24055 2000-06-03  Jim Meyering  <meyering@lucent.com>
24056
24057         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
24058
24059 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24060
24061         * m4/glibc21.m4: New file.
24062         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
24063
24064 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24065
24066         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
24067         newer, don't install charset.alias.
24068         * lib/config.charset: Change the Linux/glibc rules so they become empty
24069         on glibc-2.1 or newer.
24070
24071 2000-06-02  Jim Meyering  <meyering@lucent.com>
24072
24073         * lib/mountlist.c: Back out last change.  Instead, do this...
24074         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
24075         me_dummy member using the same `ignore'-testing code.
24076         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
24077         fs_type strings.
24078         From Mark D. Roth.
24079
24080 2000-05-29  Jim Meyering  <meyering@lucent.com>
24081
24082         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
24083         mounts with the `ignore' attribute.  Based on a patch from
24084         Mark D. Roth.
24085
24086 2000-05-28  Jim Meyering  <meyering@lucent.com>
24087
24088         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
24089         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24090         * m4/stat.m4: Likewise.
24091         * m4/lstat.m4: Likewise.
24092         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
24093
24094         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
24095         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
24096
24097 2000-05-26  Jim Meyering  <meyering@lucent.com>
24098
24099         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
24100
24101 2000-05-24  Jim Meyering  <meyering@lucent.com>
24102
24103         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
24104         autoconf requires that.
24105         * m4/lib-check.m4: Likewise.
24106         * m4/jm-macros.m4: Likewise.
24107         * m4/strftime.m4: Likewise.
24108
24109         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
24110         AC_CHECK_DECLS, now that autoconf requires that.
24111
24112 2000-05-22  Jim Meyering  <meyering@lucent.com>
24113
24114         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24115         * m4/lstat.m4: Likewise.
24116
24117 2000-05-22  Jim Meyering  <meyering@lucent.com>
24118
24119         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
24120
24121 2000-05-20  Jim Meyering  <meyering@lucent.com>
24122
24123         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
24124         (jm_PREREQ): Use it.
24125
24126 2000-05-18  Jim Meyering  <meyering@lucent.com>
24127
24128         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
24129         back, too, since it may have been modified by allocate_entry.
24130         (hash_delete): Rewrite to use neither the assignment operator
24131         nor the comma operator in an if-expression.
24132
24133 2000-05-15  Paul Eggert  <eggert@twinsun.com>
24134
24135         * lib/closeout.c:
24136         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
24137         Remove; no longer needed.
24138         "quotearg.h": Add include.
24139         (file_name): Do not bother to explicitly initialize to NULL; it's less
24140         efficient on some hosts.
24141         (close_stdout_status): Remove test as to whether stdout was already
24142         closed; it breaks for the case "echo x | sort >&-".
24143         Quote file name colons.
24144         Do not assume that _("write error") lacks format strings.
24145
24146 2000-05-15  Jim Meyering  <meyering@lucent.com>
24147
24148         * lib/version-etc.c (version_etc_copyright): Update the copyright
24149         string used in all --version output.
24150
24151 2000-05-14  Jim Meyering  <meyering@lucent.com>
24152
24153         * lib/closeout.c (close_stdout_set_file_name): New function.
24154         (close_stdout_status): Use new file-scoped global.
24155         Return right away if fstat says the stdout file descriptor is invalid.
24156         * lib/closeout.h (close_stdout_set_file_name): Declare.
24157
24158 2000-05-10  Jim Meyering  <meyering@lucent.com>
24159
24160         * lib/closeout.c [default_exit_status]: New file-scoped variable.
24161         (close_stdout_set_status): New function.
24162         * lib/closeout.h (close_stdout_set_status): Declare.
24163
24164 2000-05-09  Jim Meyering  <meyering@lucent.com>
24165
24166         * m4/gettext.m4: Rename this...
24167         * m4/libintl.m4: ...to this.
24168
24169 2000-05-08  Jim Meyering  <meyering@lucent.com>
24170
24171         * lib/long-options.c: Don't include closeout.h.
24172         (parse_long_options): Don't call close_stdout for --version.
24173
24174 2000-05-06  Paul Eggert  <eggert@twinsun.com>
24175
24176         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
24177         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
24178         2.1.3 bug.  This avoids a clash when files like regex.c define
24179         _GNU_SOURCE.
24180
24181 2000-05-06  Jim Meyering  <meyering@lucent.com>
24182
24183         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
24184         (AC_REPLACE_FUNCS): Add strnlen.
24185
24186         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
24187         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
24188
24189         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
24190         AC_SEARCH_LIBS call for nanosleep.
24191         (LIB_NANOSLEEP): Set and AC_SUBST.
24192
24193 2000-05-06  Jim Meyering  <meyering@lucent.com>
24194
24195         * lib/strnlen.c: Undefine __strnlen and strnlen.
24196         [!weak_alias]: Define __strnlen to strnlen.
24197
24198         * lib/atexit.c: New file, from libiberty.
24199
24200 2000-05-06  Jim Meyering  <meyering@lucent.com>
24201
24202         * lib/closeout.c (close_stdout_status): Also check for errors on the
24203         stderr stream.
24204
24205 2000-05-05  Jim Meyering  <meyering@lucent.com>
24206
24207         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
24208         AC_SEARCH_LIBS call for clock_gettime.
24209         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
24210
24211         * m4/search-libs.m4: Update from autoconf.
24212
24213         su doesn't work on Solaris 2.6.
24214         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
24215         <shadow.h>.  Reported by Dragos Harabor.
24216
24217 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
24218
24219         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
24220         memcpy instead of xmalloc, xrealloc, path_concat.
24221         (locale_charset): Treat empty environment variables as absent.
24222         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
24223
24224 2000-05-04  Jim Meyering  <meyering@lucent.com>
24225
24226         * lib/getopt.c: Update from glibc.
24227         * lib/obstack.c: Likewise.
24228         * lib/obstack.h: Likewise.
24229         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
24230         file
24231
24232         * lib/regex.h: Likewise.
24233         * lib/strndup.c: Likewise.
24234         * lib/strnlen.c: New file, from glibc.
24235
24236 2000-05-03  Jim Meyering  <meyering@lucent.com>
24237
24238         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
24239
24240 2000-05-02  Paul Eggert  <eggert@twinsun.com>
24241
24242         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
24243         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
24244         compile-time test, rather than inspecting host and OS, to
24245         decide whether to define _LARGEFILE_SOURCE.
24246
24247 2000-05-01  Jim Meyering  <meyering@lucent.com>
24248
24249         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
24250
24251         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
24252         Based on a patch from Bruno Haible.
24253
24254 2000-05-01  Jim Meyering  <meyering@lucent.com>
24255
24256         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
24257
24258 2000-04-29  Jim Meyering  <meyering@lucent.com>
24259
24260         * lib/path-concat.c: Declare strdup only if it's not defined.
24261         * lib/canon-host.c: Likewise.
24262
24263 2000-04-28  Jim Meyering  <meyering@lucent.com>
24264
24265         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
24266         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
24267         is included first, then limits.h is included by locale.h by libintl.h.
24268         From John David Anglin.
24269
24270 2000-04-25  Jim Meyering  <meyering@lucent.com>
24271
24272         * lib/makepath.c (S_IRWXUGO): Define.
24273         (make_path): Always perform explicit chmod if MODE specifies any
24274         of the `special' permission bits.  Prompted by a bug report against
24275         install from Mate Wierdl and Joost van Baal.
24276
24277 2000-04-18  Jim Meyering  <meyering@lucent.com>
24278
24279         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
24280         (jm_PREREQ): Use it.
24281
24282 2000-04-18  Jim Meyering  <meyering@lucent.com>
24283
24284         * lib/README: New file.
24285
24286         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
24287         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
24288
24289 2000-04-17  Jim Meyering  <meyering@lucent.com>
24290
24291         Get it right :-)
24292         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
24293         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
24294         Suggestion from Akim Demaille.
24295
24296 2000-04-17  Jim Meyering  <meyering@lucent.com>
24297
24298         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
24299         the definition of it to rpl_strftime also defined-away the system's
24300         declaration.
24301
24302 2000-04-15  Jim Meyering  <meyering@lucent.com>
24303
24304         Use `C' to denote so-called `contiguous' files, the same way
24305         that tar does.
24306         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
24307         (ftypelet): Use S_ISCTG.
24308         From Michael Deutschmann.
24309
24310 2000-04-14  Jim Meyering  <meyering@lucent.com>
24311
24312         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
24313         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
24314         clobbered.
24315
24316 2000-04-14  Jim Meyering  <meyering@lucent.com>
24317
24318         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
24319
24320 2000-04-13  Jim Meyering  <meyering@lucent.com>
24321
24322         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
24323         AH_VERBATIM to insert required #ifndef into config.h.in.
24324         Suggestion from Akim Demaille.
24325
24326 2000-04-12  Jim Meyering  <meyering@lucent.com>
24327
24328         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
24329         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
24330         Christian Krackowizer.
24331
24332         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
24333         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
24334         (AC_SYS_LARGEFILE): Require.
24335         (AM_C_PROTOTYPES): Require.
24336
24337 2000-04-08  Jim Meyering  <meyering@lucent.com>
24338
24339         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
24340         names don't conflict.  Reported by Eli Zaretskii.
24341
24342 2000-04-07  Jim Meyering  <meyering@lucent.com>
24343
24344         * lib/putenv.c: Move inclusion of errno.h so it follows that of
24345         sys/types.h, to work around system header problems on AIX 3.2.5.
24346         From Bruno Haible.
24347
24348 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
24349
24350         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
24351         bug.  Deal with the different error behavior of Irix iconv.
24352
24353 2000-04-05  Paul Eggert  <eggert@twinsun.com>
24354
24355         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
24356         IRIX if the installer said otherwise.
24357
24358 2000-04-05  Jim Meyering  <meyering@lucent.com>
24359
24360         Portability tweaks required for ultrix4.3.
24361         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
24362         (jm_CHECK_DECLS): Add getutent to the list of functions.
24363         (_jm_DECL_HEADERS): Add utmpx.h.
24364         From John David Anglin.
24365
24366         * m4/strftime.m4: Back out the 2000-04-02 change.
24367         Instead of that change, simply undefine putenv in the test program.
24368
24369 2000-04-05  Jim Meyering  <meyering@lucent.com>
24370
24371         Portability tweaks required for ultrix4.3.
24372         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
24373         getutent.
24374         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
24375         * lib/canon-host.c: Declare strdup.
24376         * lib/path-concat.c: Likewise.
24377         From John David Anglin.
24378
24379 2000-04-04  Jim Meyering  <meyering@lucent.com>
24380
24381         Be more DOS 8.3-friendly.
24382         * lib/ref-add.sin: Renamed from ref-add.sed.in.
24383         * lib/ref-del.sin: Renamed from ref-del.sed.in.
24384         * lib/Makefile.am: Reflect renaming.
24385         Reported by Eli Zaretskii.
24386
24387         Use a temporary file name that won't clash with `charset.alias'
24388         in the DOS 8.3 name space.
24389         * lib/Makefile.am (charset_tmp): Define.
24390         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
24391         (uninstall-local): Likewise.
24392         Reported by Eli Zaretskii.
24393
24394 2000-04-03  Jim Meyering  <meyering@lucent.com>
24395
24396         * m4/gettext.m4: Fix typo in comment.
24397
24398         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
24399         textutils/configure.in).  Suggestion from Paul Eggert.
24400         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
24401
24402 2000-04-02  Paul Eggert  <eggert@twinsun.com>
24403
24404         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
24405         variable in the shell rather than using putenv, which isn't
24406         portable.  This avoids the configure-time inter-test dependency
24407         on the potentially-renamed putenv function.
24408
24409 2000-03-30  Paul Eggert  <eggert@twinsun.com>
24410
24411         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
24412         before checking struct stat.st_blksize, so that
24413         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
24414
24415 2000-03-29  Paul Eggert  <eggert@twinsun.com>
24416
24417         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
24418         since strftime.c uses HAVE_STRFTIME to decide whether to use
24419         the underlying strftime.
24420
24421 2000-03-29  Paul Eggert  <eggert@twinsun.com>
24422
24423         * lib/time/strftime.c (my_strftime): Make sure we call the system
24424         strftime, not ourselves, when invoking the underlying strftime.
24425
24426 2000-03-24  Jim Meyering  <meyering@lucent.com>
24427
24428         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
24429         (charset_alias): Define.
24430         (install-exec-local): Factor out common code.
24431         (uninstall-local): Split lines longer than 80.
24432         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
24433         (SUFFIXES): Define.
24434         (.sed.in.sed): New rule.  Don't redirect directly to $@.
24435         (CLEANFILES): Add ref-add.sed and ref-del.sed.
24436
24437 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
24438
24439         * lib/config.charset: Output a line containing "Packages using this
24440         file".
24441         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
24442         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
24443         ref-del.sed): New rules.
24444
24445 2000-03-17  Jim Meyering  <meyering@lucent.com>
24446
24447         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
24448         Otherwise, include <strings.h>
24449
24450 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
24451
24452         * lib/unicodeio.c (utf8_wctomb): New function.
24453         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
24454         format instead of in UCS-4 with platform dependent endianness.
24455
24456 2000-03-10  Jim Meyering  <meyering@lucent.com>
24457
24458         * m4/lib-check.m4: Look for getspnam in -lgen, too.
24459         From Marco Franzen.
24460
24461 2000-03-07  Paul Eggert  <eggert@twinsun.com>
24462
24463         * lib/savedir.c (savedir): Work even if directory size is
24464         negative; this can happen with some screwy NFS configurations.
24465
24466 2000-03-06  Jim Meyering  <meyering@lucent.com>
24467
24468         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
24469         if it's NULL (because we ran out of memory).  From Bruno Haible.
24470
24471 2000-03-05  Jim Meyering  <meyering@lucent.com>
24472
24473         * lib/localcharset.c ("path-concat.h"): Include.
24474         (get_charset_aliases): Use path_concat instead of ANSI string
24475         concatenation.
24476
24477         * lib/unicodeio.h (PARAMS): Define.
24478         Use it to guard prototype.
24479
24480 2000-03-04  Jim Meyering  <meyering@lucent.com>
24481
24482         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
24483         for lib/localcharset.c.
24484
24485 2000-03-04  Jim Meyering  <meyering@lucent.com>
24486
24487         * lib/Makefile.am (install-exec-local): Create $(libdir) before
24488         installing into it.
24489         (uninstall-local): Uncomment this rule so `make distcheck' works
24490         once again.
24491
24492         * lib/unicodeio.c (<errno.h>): Include it.
24493         (errno): Declare if not defined.
24494
24495         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
24496
24497         * lib/config.charset: New version, incorporating remarks from a linux
24498         i18n mailing list.  From Bruno Haible.
24499
24500 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
24501
24502         * m4/codeset.m4: New file.
24503         * m4/iconv.m4: New file.
24504         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
24505
24506 2000-03-03  Jim Meyering  <meyering@lucent.com>
24507
24508         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
24509
24510 2000-03-02  Jim Meyering  <meyering@lucent.com>
24511
24512         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
24513         the messages come out on separate lines.
24514
24515         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
24516         rather than jm_CHECK_DECLARATIONS.
24517         * m4/decl.m4: Remove now-unused file.
24518
24519         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
24520         geteuid.
24521
24522 2000-03-02  Jim Meyering  <meyering@lucent.com>
24523
24524         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
24525
24526 2000-03-01  Jim Meyering  <meyering@lucent.com>
24527
24528         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
24529         * lib/unicodeio.c: Likewise.
24530
24531 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
24532
24533         * lib/config.charset: New file.
24534         * lib/localcharset.c: New file.
24535         * lib/unicodeio.h, lib/unicodeio.c: New files.
24536         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
24537         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
24538         (noinst_HEADERS): Add unicodeio.h.
24539         (all-local, install-exec-local, charset.alias): New targets.
24540
24541 2000-02-28  Paul Eggert  <eggert@twinsun.com>
24542
24543         * lib/quotearg.c (ALERT_CHAR): New macro.
24544         (quotearg_buffer_restyled): Use it.
24545
24546 2000-02-27  Jim Meyering  <meyering@lucent.com>
24547
24548         * m4/check-decl.m4: Add getenv to the list.
24549
24550 2000-02-27  Jim Meyering  <meyering@lucent.com>
24551
24552         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
24553         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
24554
24555         * lib/backupfile.c: Guard inclusion of stdlib.h with
24556         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
24557         Declare malloc if needed.
24558
24559         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
24560         `#ifndef HAVE_DECL..'
24561         now that autoconf always defines the HAVE_DECL_ symbols.
24562         * lib/human.c: Likewise.
24563         * lib/same.c: Likewise.
24564         * lib/strtoumax.c: Likewise.
24565
24566         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
24567         declaration check was not run.
24568         * lib/hash.c: Likewise.
24569         * lib/human.c: Likewise.
24570         * lib/same.c: Likewise.
24571         * lib/strtoumax.c: Likewise.
24572
24573         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
24574         `.', then first look up the entire `.'-containing string as a login
24575         name.
24576
24577 2000-02-23  Jim Meyering  <meyering@lucent.com>
24578
24579         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
24580         in place of my hack.
24581
24582 2000-02-18  Paul Eggert  <eggert@twinsun.com>
24583
24584         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
24585         (textint): New typedef.
24586         (parser_control): Member year changed from int to textint.
24587         All uses changed.
24588         (YYSTYPE): Removed; replaced by %union with int and textint members.
24589         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
24590         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
24591         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
24592         (tSNUMBER, tUNUMBER): Now of type <textintval>.
24593         (date, number, to_year): Use width of number in digits, not its value,
24594         to determine whether it's a 2-digit year, or a 2-digit time.
24595         (yylex): Store number of digits of numeric tokens.
24596         Reported by John Kendall.
24597
24598         (parser_control): Changed from struct parser_control to typedef (for
24599         consistency).  All uses changed.
24600
24601         (tID): Removed; not used.
24602         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
24603
24604 2000-02-14  Paul Eggert  <eggert@twinsun.com>
24605
24606         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
24607         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
24608
24609 2000-02-12  Jim Meyering  <meyering@lucent.com>
24610
24611         * lib/userspec.c (ISDIGIT): Define it.
24612         (isdigit): Remove definition.
24613         (is_number): Use ISDIGIT, not isdigit.
24614         <libintl.h>: Include.
24615         (_ and N_): Define.
24616         (parse_user_spec): Mark translatable strings.
24617
24618 2000-02-10  Jim Meyering  <meyering@lucent.com>
24619
24620         With these changes, nanosleep.[ch] are finally enough like the other
24621         lib/* replacement files to compile on a few more losing systems.
24622
24623         * lib/nanosleep.h: Don't include config.h.
24624         Remove prototype from declaration of nanosleep.
24625         (PARAMS): Remove now-unneeded definition.
24626         * lib/nanosleep.c: #undef nanosleep.
24627         (rpl_nanosleep): Rename from nanosleep.
24628
24629 2000-02-10  Jim Meyering  <meyering@lucent.com>
24630
24631         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
24632         gnu_nanosleep to rpl_nanosleep.
24633
24634 2000-02-09  Jim Meyering  <meyering@lucent.com>
24635
24636         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
24637         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
24638
24639 2000-02-08  Akim Demaille  <akim@epita.fr>
24640
24641         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
24642         `[' and `]' and remove uses of `changequote'.
24643         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
24644         (AC_SYS_LARGEFILE): Likewise.
24645         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24646         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
24647         of changequote.
24648         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
24649         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
24650         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
24651         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
24652
24653 2000-02-05  Jim Meyering  <meyering@lucent.com>
24654
24655         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
24656         Remove explicit use of AC_HEADER_TIME.  It is required by
24657         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
24658         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
24659         in autoconf whereby the expansion of the latter ended up preceding
24660         the expansion of its prerequisite, AC_HEADER_TIME.
24661         Reported by Volker Borchert.
24662
24663 2000-02-03  Jim Meyering  <meyering@lucent.com>
24664
24665         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
24666
24667 2000-02-03  Jim Meyering  <meyering@lucent.com>
24668
24669         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
24670         rather than with `#if HAVE_UTMPNAME'.
24671
24672 2000-02-02  Jim Meyering  <meyering@lucent.com>
24673
24674         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
24675         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
24676         Reported by Eli Zaretskii.
24677
24678 2000-02-01  Jim Meyering  <meyering@lucent.com>
24679
24680         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
24681
24682 2000-01-31  Jim Meyering  <meyering@lucent.com>
24683
24684         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
24685         functions.  Add the time.h and sys/time.h headers along with the
24686         AC_REQUIRE'ment of AC_HEADER_TIME.
24687
24688 2000-01-31  Jim Meyering  <meyering@lucent.com>
24689
24690         * lib/nanosleep.h (nanosleep): Guard declaration with
24691         `#if ! HAVE_DECL_NANOSLEEP'.
24692         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
24693         the declaration in that vendor's sys/timers.h.
24694         Reported by Christian Krackowizer.
24695
24696         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
24697         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
24698         (ISPRINT): Likewise.
24699         Reported by Tom Tromey.
24700
24701 2000-01-30  Jim Meyering  <meyering@lucent.com>
24702
24703         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
24704
24705         * m4/prereq.m4 (utmp_includes): Define.
24706         Check for ut_user and ut_name members in both struct utmpx
24707         and struct utmp.
24708
24709 2000-01-30  Jim Meyering  <meyering@lucent.com>
24710
24711         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
24712         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
24713         header files where only utmpx.ut_user is declared.
24714
24715         * lib/readutmp.h (UT_USER): Define.
24716
24717 2000-01-29  Jim Meyering  <meyering@lucent.com>
24718
24719         * m4/lib-check.m4: New file containing library-related checks from
24720         fileutils and sh-utils (textutils had none).
24721
24722 2000-01-28  Jim Meyering  <meyering@lucent.com>
24723
24724         * m4/perl.m4: Change format of warning message to look more like that
24725         from the missing script.  Suggestion from François Pinard.
24726
24727 2000-01-25  Jim Meyering  <meyering@lucent.com>
24728
24729         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
24730         well as time.h in the compile check.
24731         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
24732         Fix typo in cross-compiling case: s/yes/no/.
24733
24734 2000-01-23  Jim Meyering  <meyering@lucent.com>
24735
24736         * m4/jm-macros.m4: Move df-related tests here from
24737         fileutils/configure.in
24738
24739         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
24740         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
24741
24742         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
24743         s/space/ac_fsusage_space/.
24744         (jm_FILE_SYSTEM_USAGE): Take two parameters.
24745
24746         * m4/ftruncate.m4: New file (derived from part of
24747         fileutils/configure.in).
24748         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
24749         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
24750
24751         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
24752         AC_SUBST these here, rather than just in sh-util/configure.in, so
24753         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
24754         all the same.
24755         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
24756         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
24757         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
24758         (AC_SUBST(POW_LIBM)): Likewise.
24759         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
24760
24761 2000-01-23  Jim Meyering  <meyering@lucent.com>
24762
24763         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
24764         obstack.c.
24765
24766 2000-01-22  Jim Meyering  <meyering@lucent.com>
24767
24768         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
24769
24770         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
24771
24772         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
24773         configure.in
24774         (AC_CHECK_HEADERS): Likewise for sh-utils.
24775         (AC_CHECK_HEADERS): Likewise for textutils.
24776         Merge the three lists of headers.
24777
24778         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
24779         from fileutils' configure.in.
24780
24781         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
24782         code. Moved tests into their own function (_jm_DECL_HEADERS) in
24783         check-decl.m4.
24784
24785         * m4/check-decl.m4: Use #if rather than #ifdef.
24786         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
24787         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
24788         (_jm_DECL_HEADERS): Define new function.
24789         (jm_CHECK_DECLARATIONS): Require it.
24790
24791 2000-01-22  Jim Meyering  <meyering@lucent.com>
24792
24793         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
24794         [! HAVE_DECL_STRTOULL]: Declare strtoull.
24795         Required for some AIX systems.  Reported by Christian Krackowizer.
24796         [TESTING] (main): New function.
24797
24798         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
24799         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
24800         letters.
24801
24802         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
24803         iswprint.
24804
24805         * lib/strverscmp.c (ISDIGIT): Define.
24806         (strverscmp): Use ISDIGIT, not isdigit.
24807
24808 2000-01-19  Jim Meyering  <meyering@lucent.com>
24809
24810         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
24811         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
24812         defines `struct timespec' in <sys/time.h>
24813
24814         * m4/c-bs-a.m4: Remove uses of changequote altogether.
24815         Thanks to Akim for explaining.
24816
24817 2000-01-17  Paul Eggert  <eggert@twinsun.com>
24818
24819         * lib/nanosleep.c (nanosleep):
24820         Don't use SA_INTERRUPT to decide whether to call sigaction, as
24821         POSIX.1 doesn't require SA_INTERRUPT and some systems
24822         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
24823         it's been part of POSIX.1 since day 1 (in 1988).
24824
24825 2000-01-17  Jim Meyering  <meyering@lucent.com>
24826
24827         * lib/interlock: Remove unused file.  Reported by François Pinard.
24828
24829 2000-01-16  Paul Eggert  <eggert@twinsun.com>
24830
24831         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
24832         alert, backslash, formfeed, and vertical tab unnecessarily in
24833         shell quoting style.
24834
24835 2000-01-16  Jim Meyering  <meyering@lucent.com>
24836
24837         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
24838         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
24839         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
24840         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
24841
24842 2000-01-16  Jim Meyering  <meyering@lucent.com>
24843
24844         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
24845         because the latter didn't work.
24846
24847 2000-01-15  Jim Meyering  <meyering@lucent.com>
24848
24849         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
24850         (AC_REPLACE_FUNCS): Add memcpy and memset.
24851         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
24852         Add strpbrk.
24853         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
24854
24855 2000-01-12  Jim Meyering  <meyering@lucent.com>
24856
24857         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
24858         (jm_PREREQ): Use it.
24859         (jm_PREREQ_READUTMP): New macro.
24860         (jm_PREREQ): Use it.
24861
24862 2000-01-11  Paul Eggert  <eggert@twinsun.com>
24863
24864         Quote multibyte characters correctly.
24865         * m4/c-bs-a.m4: New file.
24866         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
24867         (jm_PREREQ): Use it.
24868
24869 2000-01-11  Paul Eggert  <eggert@twinsun.com>
24870
24871         * m4/uintmax_t.m4: Port to autoconf 2.13.
24872
24873 2000-01-08  Jim Meyering  <meyering@ascend.com>
24874
24875         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
24876         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
24877
24878 2000-01-04  Jim Meyering  <meyering@ascend.com>
24879
24880         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
24881         jm_STRUCT_DIRENT_D_TYPE.
24882         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
24883         jm_STRUCT_DIRENT_D_INO.
24884         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
24885         jm_STRUCT_UTIMBUF.
24886         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
24887         renamings.
24888         * m4/utime.m4: Likewise.
24889
24890         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
24891         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
24892
24893 2000-01-03  Paul Eggert  <eggert@twinsun.com>
24894
24895         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
24896         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
24897
24898 2000-01-02  Jim Meyering  <meyering@ascend.com>
24899
24900         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
24901         remember if this is necessary.
24902
24903 1999-12-26  Jim Meyering  <meyering@ascend.com>
24904
24905         * m4/jm-macros.m4: Use it here.
24906         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
24907
24908 1999-12-23  Jim Meyering  <meyering@ascend.com>
24909
24910         * m4/jm-macros.m4: Check for clock_gettime (moved from
24911         fileutils/configure.in)
24912         Check for gettimeofday.
24913
24914 1999-12-20  Jim Meyering  <meyering@ascend.com>
24915
24916         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
24917         autoconf-2.14a-1999-12-20.
24918
24919 1999-12-19  Jim Meyering  <meyering@ascend.com>
24920
24921         * m4/lstat-slash.m4: New file.
24922         * m4/jm-macros.m4: Use the new macro:
24923         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24924
24925 1999-12-07  Jim Meyering  <meyering@ascend.com>
24926
24927         * m4/perl.m4: Require that File::Compare be available, too.
24928         Too many systems seem to lack it.
24929
24930         * m4/strftime.m4: Add checks for most of the cpp macros tested in
24931         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
24932
24933 1999-11-18  Paul Eggert  <eggert@twinsun.com>
24934
24935         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
24936         problem with the QNX 4.25 shell, which doesn't propagate exit
24937         status of failed commands inside shell assignments.
24938
24939 1999-11-17  Jim Meyering  <meyering@ascend.com>
24940
24941         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
24942
24943 1999-11-07  Jim Meyering  <meyering@ascend.com>
24944
24945         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
24946
24947 1999-11-06  Jim Meyering  <meyering@ascend.com>
24948
24949         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
24950         * m4/jm-macros.m4 (jm_MACROS): Use it here.
24951
24952 1999-11-05  Jim Meyering  <meyering@ascend.com>
24953
24954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
24955         configure.in of textutils, fileutils, and sh-utils into this one
24956         (shared between those packages) file.
24957         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
24958         AC_STRUCT_ST_BLKSIZE.
24959
24960 1999-11-03  Jim Meyering  <meyering@ascend.com>
24961
24962         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
24963         of AC_CHECK_TYPE checks includes unistd.h.
24964         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
24965         Suggestion from Akim Demaille.
24966
24967 1999-10-30  Jim Meyering  <meyering@ascend.com>
24968
24969         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
24970         m4-quoted string.
24971         * m4/ls-mntd-fs.m4: Likewise.
24972         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
24973         * m4/jm-winsz1.m4: Likewise.
24974
24975         * m4/const.m4: Remove file, since the fix made it into the experimental
24976         version of autoconf.
24977         * m4/mktime.m4: Likewise.
24978
24979         * m4/check-type.m4: Remove file, now that the latest version of
24980         AC_CHECK_TYPE takes a third arg to specify additional #includes.
24981
24982         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
24983         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
24984         AC_CHECK_TYPE.
24985
24986 1999-10-04  Jim Meyering  <meyering@ascend.com>
24987
24988         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
24989
24990 1999-09-22  Paul Eggert  <eggert@twinsun.com>
24991
24992         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
24993         2.95.1 bug with HP-UX 10.20.
24994
24995 1999-09-17  Jim Meyering  <meyering@ascend.com>
24996
24997         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
24998         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
24999         due to missing strdup (against sh-utils-2.0).
25000
25001 1999-08-29  Jim Meyering  <meyering@ascend.com>
25002
25003         * m4/jm-macros.m4: Require jm_BISON.
25004         * m4/bison.m4: New file.
25005
25006 1999-08-17  Paul Eggert  <eggert@twinsun.com>
25007
25008         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
25009         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
25010
25011 1999-08-05  Jim Meyering  <meyering@ascend.com>
25012
25013         * m4/getline.m4: Rename test file from conftestdata to conftest.data
25014         to avoid conflicts with `conftest' on 8+3 filesystems.
25015         Suggestion from Eli Zaretskii.
25016
25017 1999-08-04  Jim Meyering  <meyering@ascend.com>
25018
25019         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
25020         fileutils and sh-utils (textutils's getline test was inadequate).
25021         (AM_FUNC_GETLINE): Run this test.
25022         (AC_CHECK_FUNCS): Check for getdelim.
25023         Reported by Bob Proulx.
25024
25025 1999-08-02  Jim Meyering  <meyering@ascend.com>
25026
25027         * m4/jm-macros.m4: Add a comment.
25028
25029 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25030
25031         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
25032         <inttypes.h> defines strtoumax as a macro (and not as a
25033         function).
25034
25035 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25036
25037         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
25038         that we can shift, multiply and divide unsigned long long
25039         values; Ultrix cc can't do it.
25040
25041 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25042
25043         * m4/mktime.m4: New file, which is a preview of what should appear
25044         in the next public autoconf release.
25045
25046 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25047
25048         * m4/lfs.m4: Remove this file.
25049         * m4/largefile.m4: New file.  It contains the old contents of
25050         lfs.m4, except that all names with prefix AC_LFS have been
25051         changed to use the prefix AC_SYS_LARGEFILE instead, to be
25052         compatible with future autoconf versions.  Also, some minor m4
25053         quoting problems have been fixed.
25054
25055 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25056
25057         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
25058         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
25059         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
25060         and simplify the shell code.
25061
25062 1999-08-01  Jim Meyering  <meyering@ascend.com>
25063
25064         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
25065         m4.
25066
25067 1999-07-20  Jim Meyering  <meyering@ascend.com>
25068
25069         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
25070
25071 1999-07-15  Jim Meyering  <meyering@ascend.com>
25072
25073         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
25074
25075 1999-05-22  Jim Meyering  <meyering@ascend.com>
25076
25077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
25078
25079 1999-05-20  Jim Meyering  <meyering@ascend.com>
25080
25081         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
25082         Add a colon after each `then' in case $4 is empty.
25083
25084 1999-05-16  Jim Meyering  <meyering@ascend.com>
25085
25086         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
25087
25088 1999-05-10  Jim Meyering  <meyering@ascend.com>
25089
25090         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
25091
25092         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
25093         AC_FUNC_MKTIME.
25094
25095 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
25096
25097         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
25098
25099 1999-05-04  Paul Eggert  <eggert@twinsun.com>
25100
25101         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
25102         not CPPFLAGS, so that linking works correctly in IRIX.
25103
25104 1999-04-30  Paul Eggert  <eggert@twinsun.com>
25105
25106         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
25107
25108 1999-04-20  Paul Eggert  <eggert@twinsun.com>
25109
25110         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
25111         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
25112         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
25113         jm_AC_TYPE_UNSIGNED_LONG_LONG.
25114         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
25115
25116         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
25117
25118 1999-04-20  Jim Meyering  <meyering@ascend.com>
25119
25120         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
25121         AC_REPLACE xstroull if necessary.  From Paul Eggert.
25122         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
25123
25124 1999-04-18  Jim Meyering  <meyering@ascend.com>
25125
25126         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
25127         * m4/jm-macros.m4: Use it.
25128
25129 1999-04-06  Jim Meyering  <meyering@ascend.com>
25130
25131         * m4/strftime.m4: Remove test for %f.
25132
25133 1999-03-29  Jim Meyering  <meyering@ascend.com>
25134
25135         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
25136         superset of the AC_TYPE_* checks in the textutils, fileutils,
25137         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
25138         AC_TYPE_PID_T.
25139
25140 1999-03-28  Jim Meyering  <meyering@ascend.com>
25141
25142         * m4/jm-macros.m4: Define GNU_PACKAGE here.
25143         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
25144         replaced e.g., in the *.sh files of the sh-utils.
25145
25146 1999-03-20  Jim Meyering  <meyering@ascend.com>
25147
25148         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
25149         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
25150         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
25151
25152 1999-03-19  Jim Meyering  <meyering@ascend.com>
25153
25154         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
25155
25156 1999-03-12  Jim Meyering  <meyering@ascend.com>
25157
25158         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
25159
25160 1999-03-07  Jim Meyering  <meyering@ascend.com>
25161
25162         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
25163         declared.
25164
25165 1999-02-17  Jim Meyering  <meyering@ascend.com>
25166
25167         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
25168         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
25169
25170 1999-02-07  Jim Meyering  <meyering@ascend.com>
25171
25172         * m4/group-member.m4: New file -- extracted from sh-utils'
25173         configure.in.
25174
25175         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
25176         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
25177
25178 1999-02-06  Jim Meyering  <meyering@ascend.com>
25179
25180         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
25181         * m4/fnmatch.m4: Likewise.
25182         * m4/getgroups.m4: Likewise.
25183         * m4/lstat.m4: Likewise.
25184         * m4/malloc.m4: Likewise.
25185         * m4/putenv.m4: Likewise.
25186         * m4/realloc.m4: Likewise.
25187         * m4/regex.m4: Likewise.
25188         * m4/stat.m4: Likewise.
25189         * m4/strftime.m4: Likewise.
25190         Suggestion from Alain Magloire.
25191
25192         * m4/chown.m4: Use `.$ac_objext', not `.o'.
25193         * m4/fnmatch.m4: Likewise.
25194         * m4/getgroups.m4: Likewise.
25195         * m4/getline.m4: Likewise.
25196         * m4/lstat.m4: Likewise.
25197         * m4/malloc.m4: Likewise.
25198         * m4/memcmp.m4: Likewise.
25199         * m4/putenv.m4: Likewise.
25200         * m4/realloc.m4: Likewise.
25201         * m4/regex.m4: Likewise.
25202         * m4/stat.m4: Likewise.
25203         * m4/strftime.m4: Likewise.
25204         Suggestion from Alain Magloire.
25205
25206         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
25207         an argument.
25208
25209         * m4/regex.m4: Add a run-time Test for proper operation of
25210         re_compile_pattern.
25211
25212 1999-01-31  Jim Meyering  <meyering@ascend.com>
25213
25214         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
25215
25216 1999-01-30  Jim Meyering  <meyering@ascend.com>
25217
25218         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
25219
25220         * m4/jm-mktime.m4: Make this a wrapper around the official
25221         AM_FUNC_MKTIME rather than my private copy, now that the official one
25222         is up to date.
25223         * m4/mktime.m4: Remove file.
25224
25225         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
25226         * m4/uptime.m4: Likewise.
25227         * m4/uintmax_t.m4: Likewise.
25228
25229 1999-01-28  Jim Meyering  <meyering@ascend.com>
25230
25231         * m4/jm-macros.m4: Use jm_AFS.
25232         * m4/afs.m4: New file (from fileutils' configure.in).
25233
25234         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
25235         * m4/chown.m4: Likewise.
25236         * m4/d-ino.m4: Likewise.
25237         * m4/d-type.m4: Likewise.
25238         * m4/fnmatch.m4: Likewise.
25239         * m4/getgroups.m4: Likewise.
25240         * m4/gettext.m4: Likewise.
25241         * m4/jm-mktime.m4: Likewise.
25242         * m4/jm-winsz2.m4: Likewise.
25243         * m4/lcmessage.m4: Likewise.
25244         * m4/ls-mntd-fs.m4: Likewise.
25245         * m4/malloc.m4: Likewise.
25246         * m4/memcmp.m4: Likewise.
25247         * m4/putenv.m4: Likewise.
25248         * m4/realloc.m4: Likewise.
25249         * m4/st_mtim.m4: Likewise.
25250         * m4/strftime.m4: Likewise.
25251
25252 1999-01-16  Jim Meyering  <meyering@ascend.com>
25253
25254         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
25255         (ARGMATCH_DIE_DECL): Define.
25256
25257 1999-01-12  Jim Meyering  <meyering@ascend.com>
25258
25259         * m4/Makefile.am.in: Rewrite to avoid using fmt.
25260         Reported by Lars Hecking.
25261
25262 1999-01-10  Jim Meyering  <meyering@ascend.com>
25263
25264         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
25265         gross kludge.
25266         * m4/inttypes_h.m4: Likewise.
25267         * m4/lstat.m4: Likewise.
25268         * m4/malloc.m4: Likewise.
25269         * m4/readdir.m4: Likewise.
25270         * m4/realloc.m4: Likewise.
25271         * m4/st_dm_mode.m4: Likewise.
25272         * m4/stat.m4: Likewise.
25273         * m4/utimbuf.m4: Likewise.
25274         * m4/utimes.m4: Likewise.
25275
25276         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
25277         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
25278         comments in config.h.in are meaningful.
25279
25280         * m4/jm-macros.m4: Require autoconf-2.13 here.
25281
25282         * m4/regex.m4: By default, don't use the included regex.c on systems
25283         with glibc 2.  Suggestion from Uli Drepper.
25284
25285 1999-01-02  Jim Meyering  <meyering@ascend.com>
25286
25287         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
25288
25289 1998-12-18  Jim Meyering  <meyering@ascend.com>
25290
25291         * m4/Makefile.am.in (Makefile.am): Simplify rule.
25292         Based on a suggestion from Lars Hecking.
25293
25294 1998-11-16  Paul Eggert  <eggert@twinsun.com>
25295
25296         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
25297
25298 1998-11-16  Jim Meyering  <meyering@ascend.com>
25299
25300         * m4/lfs.m4: Double-quote the `uname...` expression.
25301
25302 1998-11-14  Jim Meyering  <meyering@ascend.com>
25303
25304         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
25305         * m4/stat.m4: Likewise.
25306
25307 1998-11-03  Jim Meyering  <meyering@ascend.com>
25308
25309         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
25310         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
25311
25312 1998-10-18  Jim Meyering  <meyering@ascend.com>
25313
25314         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
25315
25316 1998-10-17  Jim Meyering  <meyering@ascend.com>
25317
25318         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
25319         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
25320         calls for those previously hard-coded headers.  Instead, take a new
25321         parameter.
25322         (jm_CHECK_DECLARATIONS): Reflect interface change.
25323         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
25324         (jm_CHECK_DECL_LOCALTIME_R): New macro.
25325
25326         * m4/mktime.m4: Test for spring-forward gap before long-running test.
25327
25328 1998-10-14  Jim Meyering  <meyering@ascend.com>
25329
25330         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
25331         instead of "TZ=America/Vancouver".  From Paul Eggert.
25332
25333 1998-10-11  Jim Meyering  <meyering@ascend.com>
25334
25335         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
25336         This adds a test for a recently added compatibility fix for mktime.c.
25337         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
25338
25339 1998-09-27  Jim Meyering  <meyering@ascend.com>
25340
25341         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
25342
25343         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
25344         ../configure.in, including a change from Gordon Matzigkeit to allow
25345         cross-compiling for the Hurd.
25346
25347         * m4/glibc.m4: New file/macro to test for the GNU C Library
25348         versions 1 and 2.  From Gordon Matzigkeit.
25349         Indent.
25350
25351 1998-09-21  Jim Meyering  <meyering@ascend.com>
25352
25353         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
25354
25355 1998-08-18  Paul Eggert  <eggert@twinsun.com>
25356
25357         Port nanosecond-resolution times to UnixWare 2.1.2 and
25358         pedantic Solaris 2.6.
25359
25360         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
25361         AC_STRUCT_ST_MTIM.
25362         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
25363         Generate name of ns member, instead of just 1 or undef.
25364         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
25365
25366 1998-08-15  Jim Meyering  <meyering@ascend.com>
25367
25368         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
25369         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
25370         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
25371         instead of jm_TYPE_SSIZE_T.
25372
25373 1998-08-12  Jim Meyering  <meyering@ascend.com>
25374
25375         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
25376
25377 1998-08-02  Jim Meyering  <meyering@ascend.com>
25378
25379         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
25380         in acconfig.h manually.
25381
25382 1998-07-31  Paul Eggert  <eggert@twinsun.com>
25383
25384         * m4/st_mtim.m4: New file.
25385
25386 1998-07-28  Jim Meyering  <meyering@ascend.com>
25387
25388         * m4/utimes.m4: Undef stat.
25389
25390 1998-07-25  Jim Meyering  <meyering@ascend.com>
25391
25392         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
25393         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
25394
25395 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
25396
25397         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
25398         uid and gid actually remain unchanged.
25399
25400 1998-07-07  Jim Meyering  <meyering@ascend.com>
25401
25402         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
25403
25404 1998-07-04  Jim Meyering  <meyering@ascend.com>
25405
25406         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
25407         to prove that this macro can be used in packages without regex.c.
25408
25409 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
25410
25411         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
25412         is to be used.
25413
25414 1998-07-03  Jim Meyering  <meyering@ascend.com>
25415
25416         * m4/gettext.m4: Add -lintl if it's found to be necessary.
25417
25418         * m4/gettext.m4: New file -- from gettext-0.10.35.
25419         * m4/lcmessage.m4: Likewise.
25420         * m4/progtest.m4: Likewise.
25421
25422         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
25423         * m4/jm-macros.m4: Require the new macro.
25424
25425 1998-06-29  Jim Meyering  <meyering@ascend.com>
25426
25427         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
25428         for the definition of NGROUPS (used in a system header included
25429         by sys/mount.h).
25430
25431 1998-06-28  Jim Meyering  <meyering@ascend.com>
25432
25433         * m4/ls-mntd-fs.m4: New file.
25434         * m4/fstypename.m4: New file.
25435
25436         * m4/jm-macros.m4: Require the new macro.
25437         * m4/jm-glibc-io.m4: New file.
25438
25439 1998-05-19  Jim Meyering  <meyering@ascend.com>
25440
25441         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
25442         * m4/lchown.m4: New file.
25443
25444         * m4/Makefile.am.in: New file.
25445         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
25446
25447 1998-05-14  Jim Meyering  <meyering@ascend.com>
25448
25449         * m4/Makefile.am (EXTRA_DIST): Add them.
25450         * m4/jm-macros.m4: New file.
25451         * m4/utimbuf.m4: New file.
25452
25453 1998-05-12  Jim Meyering  <meyering@ascend.com>
25454
25455         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
25456
25457 1998-05-11  Jim Meyering  <meyering@ascend.com>
25458
25459         * m4/isc-posix.m4: New file.
25460
25461 1998-05-10  Jim Meyering  <meyering@ascend.com>
25462
25463         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
25464
25465 1998-05-09  Jim Meyering  <meyering@ascend.com>
25466
25467         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
25468         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
25469         with automake.
25470
25471         * m4/ssize_t.m4: New file.
25472         * m4/mktime.m4: Remove file -- the new automake has this now.
25473
25474 1998-04-26  Jim Meyering  <meyering@ascend.com>
25475
25476         * m4/assert.m4: New file.
25477         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
25478
25479 1998-04-05  Jim Meyering  <meyering@ascend.com>
25480
25481         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
25482         (jm_PREREQ): Use it here.
25483
25484 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
25485
25486         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
25487         in acconfig.h.
25488
25489 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
25490
25491         * m4/prereq.m4: New file.
25492         * m4/error.m4: New file.
25493         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
25494
25495 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
25496
25497         * m4/getline.m4: Don't set am_cv_func_working_getline before the
25498         cache-check for the same variable -- that defeated the purpose of
25499         the test; the test program was never run.  This was a problem only
25500         on systems with losing getline functions -- HP-UX 10.20 is one.
25501         Reported by Bjorn Helgaas.
25502
25503 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
25504
25505         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
25506
25507 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
25508
25509         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
25510
25511         * m4/const.m4: New file.  Use an initializer in this declaration
25512         typedef int charset[2]; const charset x;
25513         Reported by Bob Glickstein.
25514
25515 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
25516
25517         * m4/chown.m4: Fix reversed types on -1 args to chown.
25518         From Kaveh Ghazi.
25519
25520 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
25521
25522         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
25523         Add lseek and memchr.
25524
25525         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
25526         T.E.Dickey <dickey@clark.net> said that some older preprocessors
25527         have a 20-character limit on names.
25528
25529 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
25530
25531         * m4/inttypes_h.m4: New file.
25532         * m4/uintmax_t.m4: New file.
25533         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
25534
25535 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
25536   Free Software Foundation, Inc.
25537 Copying and distribution of this file, with or without modification,
25538 are permitted provided the copyright notice and this notice are preserved.