* lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
[gnulib.git] / ChangeLog
1 2006-11-01  Eric Blake  <ebb9@byu.net>
2
3         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
4
5         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
6
7 2006-10-29  Bruno Haible  <bruno@clisp.org>
8
9         Make it compile in C++ mode.
10         * lib/full-write.c (full_rw): Add a cast.
11
12 2006-11-01  Bruno Haible  <bruno@clisp.org>
13
14         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
15         be POSIX compliant.
16         Reported by Roger Persson <perrog@gmail.com>.
17
18 2006-11-01  Eric Blake  <ebb9@byu.net>
19
20         * lib/getopt_.h: Fix comments.
21
22 2006-10-31  Eric Blake  <ebb9@byu.net>
23
24         * modules/tmpdir (Depends-on): Add sys_stat.
25         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
26         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
27         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
28         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
29         tempname.
30
31 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32
33         Avoid some C++ diagnostics reported by Bruno Haible.
34         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
35         xmalloc.
36         (quotearg_alloc): Use xcharalloc rather than xmalloc.
37         (struct slotvec): Move to top level.
38         (quotearg_n_options): Rewrite to avoid xmalloc.
39         * lib/xalloc.h (xcharalloc): New function.
40         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41         [defined __cplusplus]: Add function template that provides result
42         type propagation.  This part of the change is from Bruno Haible.
43
44 2006-10-29  Bruno Haible  <bruno@clisp.org>
45
46         Make it compile in C++ mode.
47         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48         * lib/strnlen1.c (strnlen1): Cast memchr result.
49         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
50         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51         (create_temp_dir): Rename local variable 'template'.
52         (compile_csharp_using_sscli): Add cast.
53         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54         * lib/findprog.c (find_in_path): Likewise.
55         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56         * lib/wait-process.c (register_slave_subprocess): Likewise.
57
58 2006-10-22  Bruno Haible  <bruno@clisp.org>
59
60         * modules/tsearch: New file.
61         * lib/tsearch.h: New file.
62         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63         * m4/tsearch.m4: New file.
64         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65
66 2006-10-29  Eric Blake  <ebb9@byu.net>
67
68         * lib/arcfour.c: Assume config.h.
69         * lib/arctwo.c: Likewise.
70         * lib/base64.c: Likewise.
71         * lib/check-version.c: Likewise.
72         * lib/crc.c: Likewise.
73         * lib/des.c: Likewise.
74         * lib/gc-gnulib.c: Likewise.
75         * lib/gc-libgcrypt.c: Likewise.
76         * lib/gc-pbkdf2-sha1.c: Likewise.
77         * lib/getaddrinfo.c: Likewise.
78         * lib/getdelim.c: Likewise.
79         * lib/getline.c: Likewise.
80         * lib/hmac-md5.c: Likewise.
81         * lib/hmac-sha1.c: Likewise.
82         * lib/iconvme.c: Likewise.
83         * lib/md2.c: Likewise.
84         * lib/md4.c: Likewise.
85         * lib/memxor.c: Likewise.
86         * lib/read-file.c: Likewise.
87         * lib/readline.c: Likewise.
88         * lib/rijndael-alg-fst.c: Likewise.
89         * lib/rijndael-api-fst.c: Likewise.
90         * lib/xgetdomainname.c: Likewise.
91
92 2006-10-28  Eric Blake  <ebb9@byu.net>
93
94         * lib/xstrndup.c: Assume config.h.
95
96 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
97
98         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
99         stat-macros.h is now for our own macros, whereas stat_h is for
100         macros in the <sys/stat.h> name space.
101         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
102         (STAT_MACROS_H): Remove.
103         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
104         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
105         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
106         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
108         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
109         Move these macros to ...
110         * lib/stat_.h: here.  Don't include stat-macros.h.
111         * lib/canonicalize.c: Don't include stat-macros.h.
112         * lib/chown.c: Likewise.
113         * lib/euidaccess.c: Likewise.
114         * lib/file-type.c: Likewise.
115         * lib/filemode.c: Likewise.
116         * lib/glob.c: Likewise.
117         * lib/isapipe.c: Likewise.
118         * lib/lchown.c: Likewise.
119         * lib/lstat.c: Likewise.
120         * lib/mkdir-p.c: Likewise.
121         * lib/rmdir.c: Likewise.
122         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
123         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
124         unless mkdir isn't declared, to speed up 'configure'.
125         Always create sys/stat.h, since it's unlikely any real sys/stat.h
126         would define all the S_* symbols.
127         * modules/canonicalize (Depends-on):
128         Depend on sys_stat, not stat-macros.
129         * modules/chown: Likewise.
130         * modules/euidaccess: Likewise.
131         * modules/filemode: Likewise.
132         * modules/file-type: Likewise.
133         * modules/glob: Likewise.
134         * modules/isapipe: Likewise.
135         * modules/lchown: Likewise.
136         * modules/lstat: Likewise.
137         * modules/mkancesdirs: Likewise.
138         * modules/rmdir: Likewise.
139         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
140         * modules/modechange: Likewise.
141         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
142         (configure.ac): Remove gl_STAT_MACROS.
143         * modules/sys_stat (Depends-on): Remove stat-macros.
144
145 2006-10-27  Bruno Haible  <bruno@clisp.org>
146
147         * m4/signed.m4: Remove file.
148         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
149         invocation.
150         * modules/vasnprintf (Files): Remove m4/signed.m4.
151
152 2006-10-27  Bruno Haible  <bruno@clisp.org>
153
154         Update to GNU gettext 0.16.
155         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
156         m4/inttypes-h.m4, m4/signed.m4.
157         * m4/gettext.m4: Update to GNU gettext 0.16.
158         * m4/intl.m4: New file, from GNU gettext.
159         * m4/intldir.m4: New file, from GNU gettext.
160         * config/srclist.txt: Update
161
162 2006-10-27  Eric Blake  <ebb9@byu.net>
163
164         * MODULES.html.sh: Document tempname.
165         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
166         dependencies.
167         (Files): Move lib/tempname.c...
168         * modules/tempname: ...to this new module.
169         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
170         (gl_PREREQ_TEMPNAME): Move...
171         * m4/tempname.m4: ...to this new file.
172         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
173         * modules/sys_stat (Depends-on): Add stat-macros.
174         * lib/stat_.h (includes): Pick up stat macros.
175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
176         if stat macros are broken.
177         * lib/tempname.c (includes): No need to include "stat-macros.h".
178         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
179         (direxists, __path_search) [!_LIBC]: Don't compile these in
180         gnulib; the tmpdir module covers that.
181         * lib/tempname.h: New file.
182
183 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
184
185         * COPYING: Explain how gnulib-tool converts licence headers.
186         Almost all wording by Eric Blake.
187
188 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
189
190         * lib/mbchar.h (is_basic_table): Make read-only.
191         * lib/mbchar.c (is_basic_table): Likewise.
192         Reported by John Darrington.
193
194 2006-10-25  Bruno Haible  <bruno@clisp.org>
195
196         * lib/progname.h (set_program_name): Undefine before defining.
197
198 2006-10-25  Bruno Haible  <bruno@clisp.org>
199
200         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
201         false for non-gcc C++ compilers.
202         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
203
204 2006-10-24  Bruno Haible  <bruno@clisp.org>
205
206         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
207         iconv implementations like Irix iconv.
208
209 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
210
211         * modules/vararrays: New file.
212         * m4/vararrays.m4: New file, taken from diffutils.
213         * MODULES.html.sh: New module vararrays.
214
215 2006-10-24  Karl Berry  <karl@gnu.org>
216
217         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
218         Don't call GNU Unix.
219
220 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
221
222         * users.txt: Add Libtool.
223
224         Sync from Libtool:
225
226         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
227
228         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
229         to gnulib's policy of including config.h unconditionally.
230
231 2006-10-24  Bruno Haible  <bruno@clisp.org>
232
233         * modules/wcwidth (Files): Add m4/wint_t.m4.
234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
235         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
236
237 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
238
239         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
240         to pacify GCC with some -W flags enabled.  Problem reported by
241         Bruno Haible.
242
243 2006-10-24  Jim Meyering  <jim@meyering.net>
244
245         * MODULES.html.sh: Remove uinttostr.  It's not a module.
246         Reported by Karl Berry.
247
248 2006-10-23  Bruno Haible  <bruno@clisp.org>
249
250         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
251
252 2006-10-24  Bruno Haible  <bruno@clisp.org>
253
254         * lib/gl_list.h: Use C comment style, not C++ comment style.
255
256 2006-10-23  Eric Blake  <ebb9@byu.net>
257
258         * lib/getaddrinfo.c (includes): Add missing include.
259
260 2006-10-23  Bruno Haible  <bruno@clisp.org>
261             Paul Eggert  <eggert@cs.ucla.edu>
262
263         Ability to rename obstack_free.
264         * lib/obstack.h (__obstack_free): New macro. Declare instead of
265         obstack_free.
266         (obstack_free): Invoke the __obstack_free macro.
267         * lib/obstack.c (obstack_free): Use __obstack_free macro.
268
269 2006-10-23  Bruno Haible  <bruno@clisp.org>
270             Paul Eggert  <eggert@cs.ucla.edu>
271
272         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
273         __argc, __argv from the declaration. (They are defined as macros on
274         mingw.)
275
276 2006-10-22  Bruno Haible  <bruno@clisp.org>
277
278         * doc/gnulib-intro.texi: New file.
279         * doc/gnulib.texi: Include it.
280
281 2006-10-21  Bruno Haible  <bruno@clisp.org>
282
283         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
284         "Introduction", "Miscellanous Notes", "Particular Modules".
285
286 2006-10-21  Bruno Haible  <bruno@clisp.org>
287
288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
289         Change mostlyclean-local rule to avoid sh syntax error from bash
290         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
291
292 2006-10-23  Jim Meyering  <jim@meyering.net>
293
294         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
295         in place of snprintf.
296
297         * modules/inttostr (Files): Add lib/uinttostr.c.
298         * lib/uinttostr.c (inttostr): New file/function.
299         * lib/inttostr.h (uinttostr): Declare.
300         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
301         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
302         Add uinttostr.
303         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
304
305 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
306
307         * lib/canonicalize.c (ELOOP): Define if not already defined.
308         Problem reported by Bruno Haible in
309         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
310
311 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
312
313         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
314         Problem reported by Perry Smith and Ville Laurikari.
315
316         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
317         uses.
318
319 2006-10-19  Bruno Haible  <bruno@clisp.org>
320
321         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
322         for mingw.
323
324 2006-10-19  Bruno Haible  <bruno@clisp.org>
325
326         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
327         Needed for mingw.
328
329 2006-10-19  Bruno Haible  <bruno@clisp.org>
330
331         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
332
333 2006-10-19  Bruno Haible  <bruno@clisp.org>
334
335         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
336         it.
337
338 2006-10-19  Bruno Haible  <bruno@clisp.org>
339
340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
341         invocation.
342
343 2006-10-19  Bruno Haible  <bruno@clisp.org>
344
345         * gnulib-tool (func_create_testdir): Don't include ftruncate and
346         mountlist by default.
347
348 2006-10-16  Bruno Haible  <bruno@clisp.org>
349
350         * lib/c-strstr.c: Include c-strstr.h.
351
352 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
353
354         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
355         in a slash.
356
357 2006-10-18  Bruno Haible  <bruno@clisp.org>
358
359         * lib/lock.h [C++]: Wrap definitions in extern "C".
360
361 2006-10-18  Bruno Haible  <bruno@clisp.org>
362
363         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
364         gl_LIBOBJS list.
365
366 2006-10-18  Bruno Haible  <bruno@clisp.org>
367
368         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
369
370 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
371
372         * lib/xstrtol.h: Include gettext.h.
373         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
374         Problem reported by Eric Blake.
375         * modules/xstrtol (Depends-on): Add gettext-h.
376
377 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
378
379         * lib/strftime.c (advance): New macro.
380         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
381         incomplete type, so you can't add 0 to it.  Problem and patch
382         reported by Eelco Dolstra for dietlibc.
383
384 2006-10-18  Jim Meyering  <jim@meyering.net>
385
386         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
387         type for a local, and rename it: s/up/user_proc/.
388
389 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
390
391         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
392         READ_UTMP_USER_PROCESS.
393         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
394
395 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
396
397         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
398         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
399
400 2006-10-17  Eric Blake  <ebb9@byu.net>
401
402         * lib/sigprocmask.c (sigprocmask): Fix typo.
403
404         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
405
406         * modules/clean-temp (Makefile.am): Don't add to make output...
407         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
408         config.h.
409
410 2006-10-17  Bruno Haible  <bruno@clisp.org>
411
412         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
413         differently if DEFAULT_TEXT_DOMAIN is set.
414
415 2006-10-16  Bruno Haible  <bruno@clisp.org>
416
417         * lib/clean-temp.c: Include fwriteerror.h.
418
419 2006-10-16  Bruno Haible  <bruno@clisp.org>
420
421         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
422
423 2006-10-16  Bruno Haible  <bruno@clisp.org>
424
425         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
426         * lib/sigprocmask.h: Include <sys/types.h>.
427         (sigset_t): Use the system's definition if present.
428
429 2006-10-17  Eric Blake  <ebb9@byu.net>
430
431         * lib/xvasprintf.c (includes): Assume config.h.
432         * lib/xasprintf.c (includes): Likewise.
433
434 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
435
436         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
437         at least as wide as intmax_t.
438
439 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
440
441         (Imported from Automake.)
442         * build-aux/gnupload: Update to version 1.1 of directive file.
443
444 2006-10-16  Eric Blake  <ebb9@byu.net>
445
446         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
447         match Automake 1.10a.
448
449 2006-10-14  Bruno Haible  <bruno@clisp.org>
450
451         * modules/sigprocmask: New file.
452         * lib/sigprocmask.h: New file.
453         * lib/sigprocmask.c: New file.
454         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
455         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
456         request sigprocmask.o.
457         (gl_PREREQ_SIGPROCMASK): New macro.
458         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
459         (Depends-on): Add sigprocmask.
460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
461         gt_SIGNALBLOCKING. Test for 'raise' only once.
462         * lib/fatal-signal.c: Include sigprocmask.h.
463         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
464         unblock_fatal_signals): Define always.
465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
466         sigprocmask.
467
468 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
469
470         Sync from Automake.
471         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
472         which incorrectly sets the mode of an existing destination
473         directory.  In some cases the unpatched install-sh could do the
474         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
475         system.  We hope this is rare in practice, but it's clearly worth
476         fixing.  Problem reported by Alex Unleashed in
477         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
478         Also, don't bother to check for -m bugs unless we're using -m;
479         suggested by Stepan Kasal.
480
481 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
482
483         Sync from Automake.
484         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
485         `-c' flag, so they appear at the same position as in %FASTDEP%
486         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
487         which ignores unknown options only after the first non-option.
488         Bug report against M4 by Nelson H. F. Beebe.
489
490 2006-10-13  Jim Meyering  <jim@meyering.net>
491
492         Fix a bug in yesterday's change.
493         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
494         p->fts_statp->st_dev would be used uninitialized.
495         Ensures that we always call fts_stat on the very first entry.
496         Miklos Szeredi reported that find -xdev stopped working.
497
498 2006-10-12  Bruno Haible  <bruno@clisp.org>
499
500         * gnulib-tool (func_get_automake_snippet): Append an automatically
501         computed EXTRA_DIST augmentation.
502         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
503         * modules/alloca-opt (Makefile.am): Likewise.
504         * modules/allocsa (Makefile.am): Likewise.
505         * modules/arcfour (Makefile.am): Likewise.
506         * modules/arctwo (Makefile.am): Likewise.
507         * modules/argmatch (Makefile.am): Likewise.
508         * modules/argz (Makefile.am): Likewise.
509         * modules/atexit (Makefile.am): Likewise.
510         * modules/backupfile (Makefile.am): Likewise.
511         * modules/byteswap (Makefile.am): Likewise.
512         * modules/c-strtod (Makefile.am): Likewise.
513         * modules/c-strtold (Makefile.am): Likewise.
514         * modules/calloc (Makefile.am): Likewise.
515         * modules/canon-host (Makefile.am): Likewise.
516         * modules/canonicalize (Makefile.am): Likewise.
517         * modules/chdir-long (Makefile.am): Likewise.
518         * modules/chdir-safer (Makefile.am): Likewise.
519         * modules/check-version (Makefile.am): Likewise.
520         * modules/chown (Makefile.am): Likewise.
521         * modules/cloexec (Makefile.am): Likewise.
522         * modules/close-stream (Makefile.am): Likewise.
523         * modules/closeout (Makefile.am): Likewise.
524         * modules/crc (Makefile.am): Likewise.
525         * modules/csharpexec (Makefile.am): Likewise.
526         * modules/cycle-check (Makefile.am): Likewise.
527         * modules/des (Makefile.am): Likewise.
528         * modules/dev-ino (Makefile.am): Likewise.
529         * modules/dirfd (Makefile.am): Likewise.
530         * modules/dirname (Makefile.am): Likewise.
531         * modules/dup2 (Makefile.am): Likewise.
532         * modules/eealloc (Makefile.am): Likewise.
533         * modules/error (Makefile.am): Likewise.
534         * modules/euidaccess (Makefile.am): Likewise.
535         * modules/exclude (Makefile.am): Likewise.
536         * modules/exitfail (Makefile.am): Likewise.
537         * modules/fcntl-safer (Makefile.am): Likewise.
538         * modules/fcntl (Makefile.am): Likewise.
539         * modules/file-type (Makefile.am): Likewise.
540         * modules/fileblocks (Makefile.am): Likewise.
541         * modules/filemode (Makefile.am): Likewise.
542         * modules/filenamecat (Makefile.am): Likewise.
543         * modules/fnmatch (Makefile.am): Likewise.
544         * modules/fopen-safer (Makefile.am): Likewise.
545         * modules/fpending (Makefile.am): Likewise.
546         * modules/fprintftime (Makefile.am): Likewise.
547         * modules/free (Makefile.am): Likewise.
548         * modules/fsusage (Makefile.am): Likewise.
549         * modules/ftruncate (Makefile.am): Likewise.
550         * modules/fts (Makefile.am): Likewise.
551         * modules/gc-arcfour (Makefile.am): Likewise.
552         * modules/gc-des (Makefile.am): Likewise.
553         * modules/gc-hmac-md5 (Makefile.am): Likewise.
554         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
555         * modules/gc-md4 (Makefile.am): Likewise.
556         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
557         * modules/gc-sha1 (Makefile.am): Likewise.
558         * modules/gc (Makefile.am): Likewise.
559         * modules/getaddrinfo (Makefile.am): Likewise.
560         * modules/getcwd (Makefile.am): Likewise.
561         * modules/getdelim (Makefile.am): Likewise.
562         * modules/getdomainname (Makefile.am): Likewise.
563         * modules/getgroups (Makefile.am): Likewise.
564         * modules/gethostname (Makefile.am): Likewise.
565         * modules/gethrxtime (Makefile.am): Likewise.
566         * modules/getline (Makefile.am): Likewise.
567         * modules/getloadavg (Makefile.am): Likewise.
568         * modules/getlogin_r (Makefile.am): Likewise.
569         * modules/getndelim2 (Makefile.am): Likewise.
570         * modules/getopt (Makefile.am): Likewise.
571         * modules/getpagesize (Makefile.am): Likewise.
572         * modules/getpass-gnu (Makefile.am): Likewise.
573         * modules/getpass (Makefile.am): Likewise.
574         * modules/getsubopt (Makefile.am): Likewise.
575         * modules/gettime (Makefile.am): Likewise.
576         * modules/gettimeofday (Makefile.am): Likewise.
577         * modules/getugroups (Makefile.am): Likewise.
578         * modules/getusershell (Makefile.am): Likewise.
579         * modules/glob (Makefile.am): Likewise.
580         * modules/group-member (Makefile.am): Likewise.
581         * modules/hard-locale (Makefile.am): Likewise.
582         * modules/hash (Makefile.am): Likewise.
583         * modules/hmac-md5 (Makefile.am): Likewise.
584         * modules/hmac-sha1 (Makefile.am): Likewise.
585         * modules/human (Makefile.am): Likewise.
586         * modules/idcache (Makefile.am): Likewise.
587         * modules/imaxabs (Makefile.am): Likewise.
588         * modules/imaxdiv (Makefile.am): Likewise.
589         * modules/inet_ntop (Makefile.am): Likewise.
590         * modules/inet_pton (Makefile.am): Likewise.
591         * modules/intprops (Makefile.am): Likewise.
592         * modules/inttostr (Makefile.am): Likewise.
593         * modules/inttypes (Makefile.am): Likewise.
594         * modules/isapipe (Makefile.am): Likewise.
595         * modules/javaversion (Makefile.am): Likewise.
596         * modules/lchmod (Makefile.am): Likewise.
597         * modules/lchown (Makefile.am): Likewise.
598         * modules/localcharset (Makefile.am): Likewise.
599         * modules/long-options (Makefile.am): Likewise.
600         * modules/lstat (Makefile.am): Likewise.
601         * modules/malloc (Makefile.am): Likewise.
602         * modules/mathl (Makefile.am): Likewise.
603         * modules/mbchar (Makefile.am): Likewise.
604         * modules/md2 (Makefile.am): Likewise.
605         * modules/md4 (Makefile.am): Likewise.
606         * modules/md5 (Makefile.am): Likewise.
607         * modules/memcasecmp (Makefile.am): Likewise.
608         * modules/memchr (Makefile.am): Likewise.
609         * modules/memcmp (Makefile.am): Likewise.
610         * modules/memcoll (Makefile.am): Likewise.
611         * modules/memcpy (Makefile.am): Likewise.
612         * modules/memmem (Makefile.am): Likewise.
613         * modules/memmove (Makefile.am): Likewise.
614         * modules/mempcpy (Makefile.am): Likewise.
615         * modules/memrchr (Makefile.am): Likewise.
616         * modules/memset (Makefile.am): Likewise.
617         * modules/memxor (Makefile.am): Likewise.
618         * modules/mkancesdirs (Makefile.am): Likewise.
619         * modules/mkdir-p (Makefile.am): Likewise.
620         * modules/mkdir (Makefile.am): Likewise.
621         * modules/mkdtemp (Makefile.am): Likewise.
622         * modules/mkstemp (Makefile.am): Likewise.
623         * modules/mktime (Makefile.am): Likewise.
624         * modules/modechange (Makefile.am): Likewise.
625         * modules/mountlist (Makefile.am): Likewise.
626         * modules/nanosleep (Makefile.am): Likewise.
627         * modules/obstack (Makefile.am): Likewise.
628         * modules/openat (Makefile.am): Likewise.
629         * modules/pagealign_alloc (Makefile.am): Likewise.
630         * modules/pathmax (Makefile.am): Likewise.
631         * modules/physmem (Makefile.am): Likewise.
632         * modules/poll (Makefile.am): Likewise.
633         * modules/posixtm (Makefile.am): Likewise.
634         * modules/posixver (Makefile.am): Likewise.
635         * modules/putenv (Makefile.am): Likewise.
636         * modules/quote (Makefile.am): Likewise.
637         * modules/quotearg (Makefile.am): Likewise.
638         * modules/raise (Makefile.am): Likewise.
639         * modules/read-file (Makefile.am): Likewise.
640         * modules/readline (Makefile.am): Likewise.
641         * modules/readlink (Makefile.am): Likewise.
642         * modules/readtokens (Makefile.am): Likewise.
643         * modules/readutmp (Makefile.am): Likewise.
644         * modules/realloc (Makefile.am): Likewise.
645         * modules/regex (Makefile.am): Likewise.
646         * modules/rename-dest-slash (Makefile.am): Likewise.
647         * modules/rename (Makefile.am): Likewise.
648         * modules/rijndael (Makefile.am): Likewise.
649         * modules/rmdir (Makefile.am): Likewise.
650         * modules/rpmatch (Makefile.am): Likewise.
651         * modules/safe-read (Makefile.am): Likewise.
652         * modules/safe-write (Makefile.am): Likewise.
653         * modules/same-inode (Makefile.am): Likewise.
654         * modules/same (Makefile.am): Likewise.
655         * modules/save-cwd (Makefile.am): Likewise.
656         * modules/savedir (Makefile.am): Likewise.
657         * modules/setenv (Makefile.am): Likewise.
658         * modules/settime (Makefile.am): Likewise.
659         * modules/sha1 (Makefile.am): Likewise.
660         * modules/sig2str (Makefile.am): Likewise.
661         * modules/snprintf (Makefile.am): Likewise.
662         * modules/stat-macros (Makefile.am): Likewise.
663         * modules/stat-time (Makefile.am): Likewise.
664         * modules/stdbool (Makefile.am): Likewise.
665         * modules/stdint (Makefile.am): Likewise.
666         * modules/stdlib-safer (Makefile.am): Likewise.
667         * modules/stpcpy (Makefile.am): Likewise.
668         * modules/stpncpy (Makefile.am): Likewise.
669         * modules/strcase (Makefile.am): Likewise.
670         * modules/strcasestr (Makefile.am): Likewise.
671         * modules/strchrnul (Makefile.am): Likewise.
672         * modules/strcspn (Makefile.am): Likewise.
673         * modules/strdup (Makefile.am): Likewise.
674         * modules/strerror (Makefile.am): Likewise.
675         * modules/strftime (Makefile.am): Likewise.
676         * modules/strndup (Makefile.am): Likewise.
677         * modules/strnlen (Makefile.am): Likewise.
678         * modules/strpbrk (Makefile.am): Likewise.
679         * modules/strsep (Makefile.am): Likewise.
680         * modules/strstr (Makefile.am): Likewise.
681         * modules/strtod (Makefile.am): Likewise.
682         * modules/strtoimax (Makefile.am): Likewise.
683         * modules/strtok_r (Makefile.am): Likewise.
684         * modules/strtol (Makefile.am): Likewise.
685         * modules/strtoll (Makefile.am): Likewise.
686         * modules/strtoul (Makefile.am): Likewise.
687         * modules/strtoull (Makefile.am): Likewise.
688         * modules/strtoumax (Makefile.am): Likewise.
689         * modules/strverscmp (Makefile.am): Likewise.
690         * modules/sys_socket (Makefile.am): Likewise.
691         * modules/sys_stat (Makefile.am): Likewise.
692         * modules/sysexits (Makefile.am): Likewise.
693         * modules/time_r (Makefile.am): Likewise.
694         * modules/timegm (Makefile.am): Likewise.
695         * modules/timespec (Makefile.am): Likewise.
696         * modules/tmpfile-safer (Makefile.am): Likewise.
697         * modules/trim (Makefile.am): Likewise.
698         * modules/unistd-safer (Makefile.am): Likewise.
699         * modules/unlinkdir (Makefile.am): Likewise.
700         * modules/unlocked-io (Makefile.am): Likewise.
701         * modules/userspec (Makefile.am): Likewise.
702         * modules/utime (Makefile.am): Likewise.
703         * modules/utimecmp (Makefile.am): Likewise.
704         * modules/utimens (Makefile.am): Likewise.
705         * modules/vasnprintf (Makefile.am): Likewise.
706         * modules/vasprintf (Makefile.am): Likewise.
707         * modules/vsnprintf (Makefile.am): Likewise.
708         * modules/xalloc (Makefile.am): Likewise.
709         * modules/xgetcwd (Makefile.am): Likewise.
710         * modules/xnanosleep (Makefile.am): Likewise.
711         * modules/xreadlink (Makefile.am): Likewise.
712         * modules/xstrtod (Makefile.am): Likewise.
713         * modules/xstrtol (Makefile.am): Likewise.
714         * modules/xstrtold (Makefile.am): Likewise.
715         * modules/yesno (Makefile.am): Likewise.
716         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
717
718 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
719
720         * modules/error (Makefile.am): Distribute files through
721         EXTRA_DIST, not lib_SOURCES.
722
723 2006-10-12  Eric Blake  <ebb9@byu.net>
724
725         * modules/error (Makefile.am): Distribute files in /lib.
726         * modules/obstack (Makefile.am): Likewise.
727
728 2006-10-12  Bruno Haible  <bruno@clisp.org>
729
730         * modules/acl (Makefile.am): Distribute all files in lib/ through
731         EXTRA_DIST.
732         * modules/arcfour (Makefile.am): Likewise.
733         * modules/arctwo (Makefile.am): Likewise.
734         * modules/argmatch (Makefile.am): Likewise.
735         * modules/argz (Makefile.am): Likewise.
736         * modules/atexit (Makefile.am): Likewise.
737         * modules/backupfile (Makefile.am): Likewise.
738         * modules/c-strtod (Makefile.am): Likewise.
739         * modules/c-strtold (Makefile.am): Likewise.
740         * modules/calloc (Makefile.am): Likewise.
741         * modules/canon-host (Makefile.am): Likewise.
742         * modules/canonicalize (Makefile.am): Likewise.
743         * modules/chdir-long (Makefile.am): Likewise.
744         * modules/chdir-safer (Makefile.am): Likewise.
745         * modules/check-version (Makefile.am): Likewise.
746         * modules/chown (Makefile.am): Likewise.
747         * modules/cloexec (Makefile.am): Likewise.
748         * modules/close-stream (Makefile.am): Likewise.
749         * modules/closeout (Makefile.am): Likewise.
750         * modules/crc (Makefile.am): Likewise.
751         * modules/cycle-check (Makefile.am): Likewise.
752         * modules/des (Makefile.am): Likewise.
753         * modules/dirfd (Makefile.am): Likewise.
754         * modules/dirname (Makefile.am): Likewise.
755         * modules/dup2 (Makefile.am): Likewise.
756         * modules/euidaccess (Makefile.am): Likewise.
757         * modules/exclude (Makefile.am): Likewise.
758         * modules/exitfail (Makefile.am): Likewise.
759         * modules/fcntl-safer (Makefile.am): Likewise.
760         * modules/file-type (Makefile.am): Likewise.
761         * modules/fileblocks (Makefile.am): Likewise.
762         * modules/filemode (Makefile.am): Likewise.
763         * modules/filenamecat (Makefile.am): Likewise.
764         * modules/fnmatch (Makefile.am): Likewise.
765         * modules/fopen-safer (Makefile.am): Likewise.
766         * modules/fpending (Makefile.am): Likewise.
767         * modules/fprintftime (Makefile.am): Likewise.
768         * modules/free (Makefile.am): Likewise.
769         * modules/fsusage (Makefile.am): Likewise.
770         * modules/ftruncate (Makefile.am): Likewise.
771         * modules/fts (Makefile.am): Likewise.
772         * modules/gc (Makefile.am): Likewise.
773         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
774         * modules/getaddrinfo (Makefile.am): Likewise.
775         * modules/getcwd (Makefile.am): Likewise.
776         * modules/getdelim (Makefile.am): Likewise.
777         * modules/getdomainname (Makefile.am): Likewise.
778         * modules/getgroups (Makefile.am): Likewise.
779         * modules/gethostname (Makefile.am): Likewise.
780         * modules/gethrxtime (Makefile.am): Likewise.
781         * modules/getline (Makefile.am): Likewise.
782         * modules/getloadavg (Makefile.am): Likewise.
783         * modules/getlogin_r (Makefile.am): Likewise.
784         * modules/getopt (Makefile.am): Likewise.
785         * modules/getpass (Makefile.am): Likewise.
786         * modules/getpass-gnu (Makefile.am): Likewise.
787         * modules/getsubopt (Makefile.am): Likewise.
788         * modules/gettime (Makefile.am): Likewise.
789         * modules/gettimeofday (Makefile.am): Likewise.
790         * modules/getugroups (Makefile.am): Likewise.
791         * modules/getusershell (Makefile.am): Likewise.
792         * modules/glob (Makefile.am): Likewise.
793         * modules/group-member (Makefile.am): Likewise.
794         * modules/hard-locale (Makefile.am): Likewise.
795         * modules/hash (Makefile.am): Likewise.
796         * modules/hmac-md5 (Makefile.am): Likewise.
797         * modules/hmac-sha1 (Makefile.am): Likewise.
798         * modules/human (Makefile.am): Likewise.
799         * modules/idcache (Makefile.am): Likewise.
800         * modules/imaxabs (Makefile.am): Likewise.
801         * modules/imaxdiv (Makefile.am): Likewise.
802         * modules/inet_ntop (Makefile.am): Likewise.
803         * modules/inet_pton (Makefile.am): Likewise.
804         * modules/inttostr (Makefile.am): Likewise.
805         * modules/isapipe (Makefile.am): Likewise.
806         * modules/lchown (Makefile.am): Likewise.
807         * modules/long-options (Makefile.am): Likewise.
808         * modules/lstat (Makefile.am): Likewise.
809         * modules/malloc (Makefile.am): Likewise.
810         * modules/mathl (Makefile.am): Likewise.
811         * modules/mbchar (Makefile.am): Likewise.
812         * modules/md2 (Makefile.am): Likewise.
813         * modules/md4 (Makefile.am): Likewise.
814         * modules/md5 (Makefile.am): Likewise.
815         * modules/memcasecmp (Makefile.am): Likewise.
816         * modules/memchr (Makefile.am): Likewise.
817         * modules/memcmp (Makefile.am): Likewise.
818         * modules/memcoll (Makefile.am): Likewise.
819         * modules/memcpy (Makefile.am): Likewise.
820         * modules/memmem (Makefile.am): Likewise.
821         * modules/memmove (Makefile.am): Likewise.
822         * modules/mempcpy (Makefile.am): Likewise.
823         * modules/memrchr (Makefile.am): Likewise.
824         * modules/memset (Makefile.am): Likewise.
825         * modules/memxor (Makefile.am): Likewise.
826         * modules/mkancesdirs (Makefile.am): Likewise.
827         * modules/mkdir (Makefile.am): Likewise.
828         * modules/mkdir-p (Makefile.am): Likewise.
829         * modules/mkdtemp (Makefile.am): Likewise.
830         * modules/mkstemp (Makefile.am): Likewise.
831         * modules/mktime (Makefile.am): Likewise.
832         * modules/modechange (Makefile.am): Likewise.
833         * modules/mountlist (Makefile.am): Likewise.
834         * modules/nanosleep (Makefile.am): Likewise.
835         * modules/openat (Makefile.am): Likewise.
836         * modules/pagealign_alloc (Makefile.am): Likewise.
837         * modules/physmem (Makefile.am): Likewise.
838         * modules/poll (Makefile.am): Likewise.
839         * modules/posixtm (Makefile.am): Likewise.
840         * modules/posixver (Makefile.am): Likewise.
841         * modules/putenv (Makefile.am): Likewise.
842         * modules/quote (Makefile.am): Likewise.
843         * modules/quotearg (Makefile.am): Likewise.
844         * modules/raise (Makefile.am): Likewise.
845         * modules/read-file (Makefile.am): Likewise.
846         * modules/readline (Makefile.am): Likewise.
847         * modules/readlink (Makefile.am): Likewise.
848         * modules/readtokens (Makefile.am): Likewise.
849         * modules/readutmp (Makefile.am): Likewise.
850         * modules/realloc (Makefile.am): Likewise.
851         * modules/regex (Makefile.am): Likewise.
852         * modules/rename (Makefile.am): Likewise.
853         * modules/rename-dest-slash (Makefile.am): Likewise.
854         * modules/rijndael (Makefile.am): Likewise.
855         * modules/rmdir (Makefile.am): Likewise.
856         * modules/rpmatch (Makefile.am): Likewise.
857         * modules/safe-read (Makefile.am): Likewise.
858         * modules/safe-write (Makefile.am): Likewise.
859         * modules/same (Makefile.am): Likewise.
860         * modules/save-cwd (Makefile.am): Likewise.
861         * modules/savedir (Makefile.am): Likewise.
862         * modules/setenv (Makefile.am): Likewise.
863         * modules/settime (Makefile.am): Likewise.
864         * modules/sha1 (Makefile.am): Likewise.
865         * modules/sig2str (Makefile.am): Likewise.
866         * modules/snprintf (Makefile.am): Likewise.
867         * modules/stdlib-safer (Makefile.am): Likewise.
868         * modules/stpcpy (Makefile.am): Likewise.
869         * modules/stpncpy (Makefile.am): Likewise.
870         * modules/strcase (Makefile.am): Likewise.
871         * modules/strcasestr (Makefile.am): Likewise.
872         * modules/strchrnul (Makefile.am): Likewise.
873         * modules/strcspn (Makefile.am): Likewise.
874         * modules/strdup (Makefile.am): Likewise.
875         * modules/strerror (Makefile.am): Likewise.
876         * modules/strftime (Makefile.am): Likewise.
877         * modules/strndup (Makefile.am): Likewise.
878         * modules/strnlen (Makefile.am): Likewise.
879         * modules/strpbrk (Makefile.am): Likewise.
880         * modules/strsep (Makefile.am): Likewise.
881         * modules/strstr (Makefile.am): Likewise.
882         * modules/strtod (Makefile.am): Likewise.
883         * modules/strtoimax (Makefile.am): Likewise.
884         * modules/strtok_r (Makefile.am): Likewise.
885         * modules/strtol (Makefile.am): Likewise.
886         * modules/strtoll (Makefile.am): Likewise.
887         * modules/strtoul (Makefile.am): Likewise.
888         * modules/strtoull (Makefile.am): Likewise.
889         * modules/strtoumax (Makefile.am): Likewise.
890         * modules/strverscmp (Makefile.am): Likewise.
891         * modules/time_r (Makefile.am): Likewise.
892         * modules/timegm (Makefile.am): Likewise.
893         * modules/tmpfile-safer (Makefile.am): Likewise.
894         * modules/unistd-safer (Makefile.am): Likewise.
895         * modules/unlinkdir (Makefile.am): Likewise.
896         * modules/userspec (Makefile.am): Likewise.
897         * modules/utime (Makefile.am): Likewise.
898         * modules/utimecmp (Makefile.am): Likewise.
899         * modules/utimens (Makefile.am): Likewise.
900         * modules/vasnprintf (Makefile.am): Likewise.
901         * modules/vasprintf (Makefile.am): Likewise.
902         * modules/vsnprintf (Makefile.am): Likewise.
903         * modules/xalloc (Makefile.am): Likewise.
904         * modules/xgetcwd (Makefile.am): Likewise.
905         * modules/xnanosleep (Makefile.am): Likewise.
906         * modules/xreadlink (Makefile.am): Likewise.
907         * modules/xstrtod (Makefile.am): Likewise.
908         * modules/xstrtol (Makefile.am): Likewise.
909         * modules/xstrtold (Makefile.am): Likewise.
910         * modules/yesno (Makefile.am): Likewise.
911
912 2006-10-12  Jim Meyering  <jim@meyering.net>
913
914         * m4/getloadavg.m4: Revert the change below.
915
916         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
917         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
918         fail with a symlink, which is what coreutils' ./bootstrap now
919         creates by default.
920
921 2006-10-12  Bruno Haible  <bruno@clisp.org>
922
923         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
924         mingw.
925         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
926         MSVC and mingw explicitly.
927
928 2006-10-11  Simon Josefsson  <jas@extundo.com>
929             Bruno Haible  <bruno@clisp.org>
930
931         Add support for multiple gnulib-tool invocations in the scope of a
932         single configure.ac file.
933         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
934         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
935         with the same contents as the _LIBADD variable.
936         (func_emit_initmacro_start, func_emit_initmacro_end,
937         func_emit_initmacro_done): New functions.
938         (func_import, func_create_testdir): Invoke them. Allow the identifiers
939         gl_LIBOBJS and gl_LTLIBOBJS.
940
941 2006-10-11  Bruno Haible  <bruno@clisp.org>
942
943         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
944         (func_create_testdir): Don't create po/Makefile.am, don't invoke
945         autoreconf. Instead, invoke autopoint explicitly but move back the
946         *.m4 files from gnulib.
947
948 2006-10-11  Bruno Haible  <bruno@clisp.org>
949
950         * gnulib-tool (func_usage): Make module names after --create-testdir
951         optional.
952         (func_create_testdir): If no module was specified, use nearly all
953         modules.
954
955 2006-10-12  Jim Meyering  <jim@meyering.net>
956
957         Big performance improvement for fts-based tools that use FTS_NOSTAT.
958         Avoid spurious inode-mismatch problems on non-POSIX file systems.
959         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
960         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
961         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
962         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
963         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
964         (fts_set_stat_required): New function.
965         (fts_open): Defer the calls to fts_stat, if possible or requested.
966         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
967         into fts_stat itself.
968         (fts_read): Perform any required (deferred) fts_stat call.
969         (fts_build): Likewise, for the directory we're about to open and read.
970         In the readdir loop, carefully decide whether each entry will require
971         an eventual call to fts_stat, using dirent.d_type info if available.
972         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
973         a command line argument into this function.  Update all callers.
974         Map a return value of FTS_DOT to FTS_D for a command line argument.
975         * modules/fts (Depends-on): Add d-type.  Alphabetize.
976         Thanks to Miklos Szeredi for his tenacity and for the initial
977         bug report about "find" failing on a FUSE-based file system.
978
979         * lib/fts.c (fts_open): Use consistent indentation.
980
981 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
982
983         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
984         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
985         reported by Jim Meyering.  All uses of cache variables renamed
986         to match Autoconf's.
987         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
988         the other one.
989
990         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
991         Fix misspelling in diagnostic.
992
993 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
994
995         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
996         defined.  Problem reported by Matthew Woehlke.
997
998         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
999         Add support for Tandem NonStop R series.
1000         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
1001         Use new macro.
1002
1003         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
1004         (has_trailing_slash): Omit size arg; all callers changed.
1005         Omit 'inline', since it doesn't help performance and we'd
1006         need to configure it.
1007         Don't count //, ///, etc. as having a trailing slash.
1008         As a side effect, this removes a C99ism reported by Matthew Woehlke.
1009         (rpl_rename_dest_slash): On failure, use rename's errno rather
1010         than (in some cases) an incorrect or junk errno.
1011         Simplify code by removing need to compute length; this does
1012         cause it to make two passes instead of one over the file name,
1013         but it's worth it.
1014
1015         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
1016         change, since Autoconf's version may no longer be appropriate now
1017         that we are using CVS Autoconf's version.  Add support for Tandem.
1018
1019 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1020             Bruno Haible  <bruno@clisp.org>
1021
1022         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
1023         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
1024         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
1025         gl_AC_TYPE_LONG_LONG.
1026
1027         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
1028         instead of HAVE_LONG_LONG.
1029         * lib/printf-args.c (printf_fetchargs): Likewise.
1030         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1031         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1032         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
1033         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
1034         gl_AC_TYPE_LONG_LONG.
1035
1036 2006-10-11  Bruno Haible  <bruno@clisp.org>
1037
1038         * m4/longlong.m4: Add comments.
1039         * m4/ulonglong.m4: Likewise.
1040
1041 2006-10-10  Bruno Haible  <bruno@clisp.org>
1042
1043         Make it possible to #define stpcpy, strdup to aliases.
1044         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
1045         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
1046
1047 2006-10-10  Bruno Haible  <bruno@clisp.org>
1048
1049         Make it possible to #define gcd to an alias.
1050         * lib/gcd.c: Include config.h.
1051
1052 2006-10-10  Bruno Haible  <bruno@clisp.org>
1053
1054         Make it possible to #define c_isascii to an alias.
1055         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
1056         defined. Undefine the macros before defining them, to avoid gcc
1057         warnings.
1058         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
1059         define NO_C_CTYPE_MACROS early.
1060
1061 2006-10-10  Bruno Haible  <bruno@clisp.org>
1062
1063         Make it possible to #define set_program_name to an alias.
1064         * lib/progname.c: Don't undefine set_program_name; instead, undefine
1065         ENABLE_RELOCATABLE early.
1066
1067 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         Port to Tandem NSK OSS, which has 64-bit signed int but at most
1070         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
1071         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
1072         More generally, don't assume that 64-bit signed int is available
1073         if unsigned int is, and vice versa.
1074         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
1075         unsigned symbols, not on their signed counterparts.
1076         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
1077         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
1078         (UINT64_C, UINTMAX_C):
1079         Likewise.
1080         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
1081         unsigned counterparts.
1082         (Have_long_long, Unsigned): New macros.
1083         (Int): Renamed from INT.
1084         (strtoimax): Use the new macros.
1085         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
1086         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
1087         * modules/inttypes (inttypes.h): Substitute
1088         HAVE_UNSIGNED_LONG_LONG_INT.
1089         * modules/stdint (stdint.h): Likewise.
1090         (Files): Add m4/ulonglong.m4.
1091
1092 2006-10-10  Bruno Haible  <bruno@clisp.org>
1093
1094         Fix a gcc -Wshadow warning.
1095         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
1096         to 'bucket'.
1097         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
1098         gl_linked_indexof_from_to): Likewise.
1099         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
1100         Likewise.
1101         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
1102         Likewise.
1103         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
1104         Reported by Eric Blake.
1105
1106 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
1107
1108         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
1109         for NetBSD.  Problem reported by Bruno Haible.
1110
1111 2006-10-09  Jim Meyering  <jim@meyering.net>
1112
1113         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
1114         Patch from Bruno Haible.
1115
1116 2006-10-09  Jim Meyering  <jim@meyering.net>
1117
1118         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
1119         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
1120         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
1121
1122 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         Don't include <config.h> twice; this doesn't work in some cases,
1125         e.g., when config.h has "#define intmax_t long long int" and
1126         we include <config.h>, <inttypes.h>, <config.h> in that order.
1127         Problem reported by Matthew Woehlke in:
1128         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
1129         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
1130         * lib/fts-cycle.c: Don't include config.h.
1131         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
1132         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
1133         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
1134         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
1135         inttypes.h.
1136         * lib/xstrtoumax.c: Likewise.
1137         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
1138         __strtol and the like, so that this module is more like its siblings.
1139         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
1140         Remove; no longer needed now that we assume gnulib inttypes.h.
1141
1142 2006-10-08  Bruno Haible  <bruno@clisp.org>
1143
1144         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
1145         option.
1146
1147 2006-10-07  Jim Meyering  <jim@meyering.net>
1148
1149         * modules/inttypes (inttypes.h): Revert what seems to have been
1150         an inadvertent part of today's change: use "|", not "/" in the
1151         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
1152
1153 2006-10-07  Bruno Haible  <bruno@clisp.org>
1154
1155         * modules/sublist: New file.
1156
1157 2006-10-07  Bruno Haible  <bruno@clisp.org>
1158
1159         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
1160         * modules/argz (argz.h): Likewise.
1161         * modules/arpa_inet (arpa/inet.h): Likewise.
1162         * modules/byteswap (byteswap.h): Likewise.
1163         * modules/configmake (configmake.h): Likewise.
1164         * modules/fcntl (fcntl.h): Likewise.
1165         * modules/fnmatch (fnmatch.h): Likewise.
1166         * modules/getopt (getopt.h): Likewise.
1167         * modules/glob (glob.h): Likewise.
1168         * modules/inttypes (inttypes.h): Likewise.
1169         * modules/netinet_in (netinet/in.h): Likewise.
1170         * modules/poll (poll.h): Likewise.
1171         * modules/stdbool (stdbool.h): Likewise.
1172         * modules/stdint (stdint.h): Likewise.
1173         * modules/sys_select (sys/select.h): Likewise.
1174         * modules/sys_socket (sys/socket.h): Likewise.
1175         * modules/sys_stat (sys/stat.h): Likewise.
1176         * modules/sysexits (sysexits.h): Likewise.
1177         * modules/unistd (unistd.h): Likewise.
1178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1179         Add a "DO NOT EDIT" comment to the generated file.
1180         (func_import): Likewise for gnulib-comp.m4.
1181
1182 2006-10-07  Bruno Haible  <bruno@clisp.org>
1183
1184         * lib/gl_sublist.h: New file.
1185         * lib/gl_sublist.c: New file.
1186
1187 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
1190         name (relative to the original working directory) and the file
1191         name component (relative to the temporary working directory).  All
1192         callers changed.
1193         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
1194         * lib/mkdir-p.c (make_dir_parents): Likewise.
1195         * lib/mkdir-p.h (make_dir_parents): Likewise.
1196
1197 2006-10-06  Eric Blake  <ebb9@byu.net>
1198
1199         Define several macros for use by the clean-temp module.
1200         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
1201         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
1202         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
1203
1204         * lib/clean-temp.h (close_stream_temp): New declaration.
1205         * lib/clean-temp.c (includes): Pull in headers according to what
1206         other modules are in use.
1207         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
1208
1209 2006-10-06  Bruno Haible  <bruno@clisp.org>
1210
1211         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
1212         instead of fopen, fwriteerror.
1213
1214 2006-10-06  Bruno Haible  <bruno@clisp.org>
1215
1216         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
1217         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
1218         int.
1219         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
1220         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
1221         Return an error indicator.
1222         Suggested by Eric Blake.
1223
1224 2006-10-06  Bruno Haible  <bruno@clisp.org>
1225
1226         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
1227         Reported by Eric Blake.
1228
1229 2006-10-06  Bruno Haible  <bruno@clisp.org>
1230
1231         * modules/closeout (Description): Mention stderr too.
1232
1233 2006-10-06  Bruno Haible  <bruno@clisp.org>
1234         and Paul Eggert  <eggert@cs.ucla.edu>
1235
1236         * lib/closeout.c (close_stdout): Also close stderr.
1237         * lib/closeout.h: Update comment.
1238
1239 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1240
1241         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
1242         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
1243         * lib/dirchownmod.c: Include lchown.h.
1244         * lib/lchown.c: Don't include files that lchown.h now includes.
1245         Don't declare chown, since lchown.h now does that.
1246         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
1247         (lchown): Define to rpl_chown if lchown is declared but
1248         does not exist.  Declare using a prototype if lchown is not
1249         declared.  Add a copyright notice.
1250         * lib/mkstemp.h: Include <unistd.h>.
1251         * lib/openat.c: Include lchown.h.
1252
1253         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
1254         we now test for that separately.
1255         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
1256         rather than O_NOFOLLOW, when testing whether it's possible to
1257         avoid a race condition reliably.
1258         * lib/savewd.c (savewd_chdir): Likewise.
1259
1260         Remove macros that are no longer needed now that stdint.h is
1261         reliable.
1262         * lib/fsusage.c (UINTMAX_MAX): Remove.
1263         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
1264         * lib/utimecmp.c (SIZE_MAX): Remove.
1265
1266         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
1267
1268         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
1269         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
1270         O_NOATIME works.
1271
1272 2006-10-05  Bruno Haible  <bruno@clisp.org>
1273
1274         * lib/gl_list.h (gl_sortedlist_search_from_to,
1275         gl_sortedlist_indexof_from_to): New declarations.
1276         (gl_list_implementation): New fields sortedlist_search_from_to,
1277         sortedlist_indexof_from_to.
1278         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
1279         inline functions.
1280         * lib/gl_list.c (gl_sortedlist_search_from_to,
1281         gl_sortedlist_indexof_from_to): New functions.
1282         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
1283         function.
1284         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
1285         (gl_array_sortedlist_search_from_to): New function.
1286         (gl_array_list_implementation): Update.
1287         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
1288         function.
1289         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
1290         (gl_carray_sortedlist_search_from_to): New function.
1291         (gl_carray_list_implementation): Update.
1292         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
1293         gl_linked_sortedlist_indexof_from_to): New functions.
1294         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1295         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1296         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
1297         gl_tree_sortedlist_indexof_from_to): New functions.
1298         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1299         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1300         Update.
1301         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1302         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
1303         Update.
1304
1305 2006-10-05  Bruno Haible  <bruno@clisp.org>
1306
1307         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
1308         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
1309         (struct gl_list_implementation): Add fields search_from_to,
1310         indexof_from_to. Remove fields search, indexof.
1311         (gl_list_search): Use the search_from_to method.
1312         (gl_list_search_from, gl_list_search_from_to): New functions.
1313         (gl_list_indexof): Use the indexof_from_to method.
1314         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
1315         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
1316         (gl_list_search_from, gl_list_search_from_to): New functions.
1317         (gl_list_indexof): Use the indexof_from_to method.
1318         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
1319         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
1320         gl_array_indexof. Add start_index, end_index arguments.
1321         (gl_array_search_from_to): Renamed from gl_array_search. Add
1322         start_index, end_index arguments.
1323         (gl_array_remove, gl_array_list_implementation): Update.
1324         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
1325         gl_carray_indexof. Add start_index, end_index arguments.
1326         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
1327         start_index, end_index arguments.
1328         (gl_carray_remove, gl_carray_list_implementation): Update.
1329         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
1330         gl_linked_search. Add start_index, end_index arguments.
1331         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
1332         start_index, end_index arguments.
1333         (gl_linked_remove): Update.
1334         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1335         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1336         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
1337         field to 'size_t'.
1338         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
1339         gl_tree_search. Add start_index, end_index arguments.
1340         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
1341         start_index, end_index arguments.
1342         (gl_tree_remove): Update.
1343         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1344         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1345         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
1346         function.
1347         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
1348         gl_tree_search. Add start_index, end_index arguments.
1349         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
1350         start_index, end_index arguments.
1351         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1352         Update.
1353         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1354
1355 2006-10-05  Bruno Haible  <bruno@clisp.org>
1356
1357         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
1358
1359         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1360         fwriteerror_temp): New declarations.
1361         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
1362         (descriptors): New variable.
1363         (cleanup): First, close the descriptors.
1364         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
1365         fclose_temp, fwriteerror_temp): New functions.
1366
1367 2006-10-04  Jim Meyering  <jim@meyering.net>
1368
1369         * lib/fts.c (fts_open): Tiny comment change.
1370
1371 2006-10-04  Bruno Haible  <bruno@clisp.org>
1372
1373         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
1374         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
1375         gl_LOCK_BODY.
1376         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
1377         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
1378         gl_LOCK_EARLY_BODY.
1379         (gl_LOCK): Require gl_LOCK_BODY.
1380
1381 2006-10-04  Bruno Haible  <bruno@clisp.org>
1382
1383         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
1384         (gl_oset_search_atleast): New declaration.
1385         (struct gl_oset_implementation): Add field 'search_atleast'.
1386         (gl_oset_search_atleast): New inline function.
1387         * lib/gl_oset.c (gl_oset_search_atleast): New function.
1388         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
1389         (gl_array_oset_implementation): Update.
1390         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
1391         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
1392         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
1393
1394 2006-10-04  Bruno Haible  <bruno@clisp.org>
1395
1396         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
1397
1398 2006-10-03  Bruno Haible  <bruno@clisp.org>
1399
1400         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
1401         from gl_avltreehash_list_implementation.
1402
1403 2006-10-03  Bruno Haible  <bruno@clisp.org>
1404
1405         * lib/gl_oset.c (gl_oset_add): Fix return type.
1406
1407 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
1408
1409         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
1410
1411 2006-10-02  Eric Blake  <ebb9@byu.net>
1412
1413         * modules/strnlen (Depends-on): Add extensions.
1414
1415 2006-10-02  Eric Blake  <ebb9@byu.net>
1416
1417         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
1418         definition in 2.60+.
1419
1420 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1421
1422         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
1423         checks.
1424
1425 2006-10-02  Bruno Haible  <bruno@clisp.org>
1426
1427         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
1428         to the AUTOMAKE_OPTIONS.
1429         Reported by Jim Meyering.
1430
1431 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
1432
1433         Work around bug in Solaris 10 /proc file system:
1434         /proc/self/fd/NNN/.. isn't the parent directory of
1435         the directory whose file descriptor is NNN.  This needs to
1436         be worked around at run time, not compile time, since a
1437         program might be built on Solaris 8, where things work, and
1438         run on Solaris 10.
1439         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
1440         to use the following interface instead:
1441         (OPENAT_BUFFER_SIZE): New macro.
1442         (openat_proc_name): New function.
1443         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
1444         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
1445         Likewise.
1446         * lib/openat-proc.c: New file.
1447         * modules/openat (Files): Add lib/openat-proc.c.
1448         (Depends-on): Add same-inode, stdbool.
1449         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
1450
1451 2006-09-29  Bruno Haible  <bruno@clisp.org>
1452
1453         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
1454         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
1455         argument. Set stdout_closed before testing for ferror, not after.
1456         (fwriteerror, fwriteerror_no_ebadf): New functions.
1457
1458 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1459
1460         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
1461
1462 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
1463
1464         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
1465         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
1466
1467 2006-09-28  Jim Meyering  <jim@meyering.net>
1468
1469         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
1470         Include <unistd.h>.
1471
1472 2006-09-28  Bruno Haible  <bruno@clisp.org>
1473
1474         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
1475         * modules/linkedhash-list (Depends-on): Likewise.
1476         * modules/rbtreehash-list (Depends-on): Likewise.
1477
1478 2006-09-28  Bruno Haible  <bruno@clisp.org>
1479
1480         * lib/strndup.h: Simplify the redefinition of strndup.
1481         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
1482         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
1483
1484 2006-09-28  Bruno Haible  <bruno@clisp.org>
1485
1486         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
1487         * lib/gl_linkedhash_list.c: Likewise.
1488         * lib/gl_rbtreehash_list.c: Likewise.
1489
1490 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
1491
1492         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
1493         getaddrinfo.
1494
1495         * lib/__fpending.h: Don't include <stdio_ext.h> unless
1496         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
1497         it causes <stdio_ext.h> to cause a compile-time error.
1498         Problem reported by Nelson H. F. Beebe.
1499         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
1500         of HAVE_DECL___PENDING.
1501
1502         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
1503         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
1504         declaration.
1505
1506 2006-09-27  Jim Meyering  <jim@meyering.net>
1507
1508         This file could end up with a definition for a function
1509         named __strndup, rather than rpl_strndup on a system with
1510         incomplete weak_alias support.
1511         * lib/strndup.c (strndup): Rename from __strndup.
1512         Remove #defines that used to map __strndup to strndup.
1513         Don't use K&R prototypes.
1514         Remove LIBC-related code, since this file is not sync'd with glibc.
1515         * lib/strndup.h: Revamp, accordingly.
1516         * m4/strndup.m4: Modernize.
1517
1518 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1519
1520         * modules/savewd (Depends-on): Add 'raise'.
1521         * lib/savewd.c: Include <signal.h>, for 'raise'.
1522
1523 2006-09-26  Jim Meyering  <jim@meyering.net>
1524
1525         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
1526         when we detect Darwin 8.7.0's acl_get_file bug.
1527         Rearrange to perform the new (below) run-test while $LIBS
1528         contains any acl-related library.  Set USE_ACL at the end.
1529         (gl_ACL_GET_FILE): New function.
1530
1531 2006-09-26  Eric Blake  <ebb9@byu.net>
1532
1533         * lib/verror.c: Include <config.h> unconditionally.
1534
1535 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1536
1537         * modules/clock-time (Maintainer): Add self.
1538         * modules/getlogin_r (Depends-on): Add extensions.
1539
1540 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1541
1542         * modules/clock-time: New module.
1543         * modules/nanosleep (Depends-on): Add clock-time.
1544         * modules/gethrxtime (Depends-on): Likewise.
1545         * modules/gettime (Depends-on): Likewise.
1546         * modules/settime (Depends-on): Likewise.
1547
1548         * modules/fts-lgpl: Depend on openat.
1549         * modules/mkancesdirs: Depend on savewd.
1550         * modules/mkdir-p: Likewise.
1551
1552 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1553
1554         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
1555
1556         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
1557         `gl_have_arbitrary_file_name_length_limit' to
1558         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
1559         actually works between configure runs.
1560
1561 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1562             Bruno Haible  <bruno@clisp.org>
1563
1564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
1565
1566 2006-09-25  Jim Meyering  <jim@meyering.net>
1567
1568         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
1569         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
1570
1571 2006-09-25  Eric Blake  <ebb9@byu.net>
1572
1573         * gnulib-tool (func_import, func_create_testdir): Fix typos in
1574         exec's in 2006-09-18 patch when shuffling fds.
1575
1576 2006-09-25  Bruno Haible  <bruno@clisp.org>
1577
1578         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
1579         Reported by Jim Meyering.
1580
1581 2006-09-24  Jim Meyering  <jim@meyering.net>
1582
1583         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
1584         compare a pointer against a literal "0".  That caused failures with
1585         at least HP-UX's hpcc.
1586
1587 2006-09-22  Simon Josefsson  <jas@extundo.com>
1588
1589         * modules/gc-sha1:
1590         * modules/gc-md4:
1591         * modules/gc-hmac-sha1:
1592         * modules/gc-hmac-md5:
1593         * modules/gc-des:
1594         * modules/gc-arcfour: Distribute more files.
1595
1596 2006-09-22  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1597
1598         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
1599         (gl_linked_iterator_from_to): Initialize struct completely.
1600         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
1601         (gl_tree_iterator_from_to): Likewise
1602         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
1603         * lib/gl_array_list.c [lint] (gl_array_iterator)
1604         (gl_array_iterator_from_to): Likewise.
1605         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
1606         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
1607         (gl_carray_iterator_from_to): Likewise.
1608
1609         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
1610         * lib/md4.c (md4_process_block): Remove unused variable.
1611         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
1612         parentheses for clarity.
1613
1614 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1615
1616         * modules/bison-i18n (Depends-on): Add gettext.
1617
1618 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1619
1620         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
1621         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1622         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
1623         also add missing comma that caused broken test.
1624         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
1625         stdlib.h, for `abort'.
1626         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
1627         variables.
1628         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
1629         include unistd.h if present, for `rmdir'.
1630         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
1631         variables.
1632         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
1633         in the process include standard headers for prototypes.
1634         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
1635         gets declared on GNU/Linux.
1636         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
1637         unistd.h, for `rmdir'.
1638         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
1639
1640         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
1641         always true.
1642         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
1643
1644         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
1645
1646 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1647
1648         * gnulib-tool (func_version): Create output all at once.  This
1649         may help avoid triggering unnecessary SIGPIPEs, and at any
1650         rate it doesn't hurt.
1651
1652 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1653             Bruno Haible  <bruno@clisp.org>
1654
1655         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
1656         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1657         * m4/signed.m4 (bh_C_SIGNED): Likewise.
1658
1659         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
1660         (gl_FUNC_VASPRINTF): Invoke it.
1661
1662 2006-09-22  Bruno Haible  <bruno@clisp.org>
1663
1664         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
1665         getloadavg.c as first argument.
1666
1667 2006-09-22  Bruno Haible  <bruno@clisp.org>
1668
1669         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
1670         at the beginning of the gl_INIT macro.
1671         * modules/getloadavg (configure.ac): Pass $gl_source_base to
1672         gl_GETLOADAVG.
1673
1674 2006-09-22  Bruno Haible  <bruno@clisp.org>
1675
1676         * gnulib-tool (func_create_megatestdir): Don't include the config-h
1677         module.
1678         Suggested by Ralf Wildenhues.
1679
1680 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1681
1682         Import this patch from libc:
1683
1684         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1685
1686         * lib/regex_internal.c (re_string_reconstruct): Handle
1687         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1688         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1689         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1690         re_string_context_at.
1691
1692         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
1693         now requires it.
1694         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
1695         gl_REGEX now does it for us.
1696         (gl_REGEX): Add test taken from
1697         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
1698
1699         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
1700         Check that large offsets work.  Modernize Autoconf usages.
1701         Prefer "yes" to mean a good thing rather than a bad.
1702         Don't put "#define mkstemp" in config.h, as this might interfere
1703         with standard system headers that "#define mkstemp mkstemp64".
1704
1705         * modules/mkstemp (Depends-on): Add extensions, so that
1706         mkstemp is visible on some platforms.
1707         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
1708         (Include): Change to "mkstemp.h" from <stdlib.h>.
1709         (Files): Add mkstemp.h.
1710
1711         * lib/mkstemp.h: New file, since some standard headers
1712         #define mkstemp.
1713         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
1714         Include "mkstemp.h".
1715         Make the _LIBC code resemble glibc original more,
1716         e.g., use K&R style.
1717         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
1718         (mkstemp): Remove, since mkstemp.h does this for us.
1719         * lib/stdlib--.h: Include mkstemp.h.
1720
1721         Import this patch from libc:
1722
1723         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
1724
1725         * lib/tempname.c (__gen_tempname): Change attempts_min
1726         into a macro.  Use preprocessor to decide how to initialize
1727         attempts [Coverity CID 67].
1728
1729 2006-09-20  Bruno Haible  <bruno@clisp.org>
1730
1731         * lib/mkdtemp.c: Import from libc.
1732         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
1733                 * sysdeps/posix/tempname.c (__gen_tempname): Change
1734                 attempts_min into a macro.  Use preprocessor to decide how to
1735                 initialize attempts [Coverity CID 67].
1736         2001-11-27  Paul Eggert  <eggert@twinsun.com>
1737                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1738                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1739
1740 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1741
1742         * gnulib-tool (func_exit): New function, to allow to pass the
1743         exit status portably through the trap.  Use everywhere.
1744         (--help, --version): Signal a write error.
1745         (trap): catch SIGPIPE, for write errors.
1746         Exit at the end of the trap, with the correct exit status.
1747
1748 2006-09-19  Karl Berry  <karl@gnu.org>
1749
1750         * doc/gnulib.texi: note about the license texinfo files.
1751
1752 2006-09-19  Eric Blake  <ebb9@byu.net>
1753
1754         * gnulib-tool: Avoid space-tab.
1755
1756 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1757
1758         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
1759         that prevented coreutils 6.1 from building.  Problem reported
1760         by Petter Reinholdtsen.
1761
1762 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         * gnulib-tool (avoidlist): Fix typo that broke options like
1765         --avoid=lock that are used by coreutils bootstrap.
1766
1767 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
1768
1769         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
1770         more systematically.
1771
1772 2006-09-18  Jim Meyering  <jim@meyering.net>
1773
1774         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
1775
1776 2006-09-18  Bruno Haible  <bruno@clisp.org>
1777
1778         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
1779
1780 2006-09-18  Bruno Haible  <bruno@clisp.org>
1781
1782         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
1783         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
1784         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
1785         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
1786         * m4/gettext.m4: Require autoconf >= 2.52.
1787         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
1788         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
1789         of gl_cv_header_inttypes_h.
1790
1791 2006-09-18  Bruno Haible  <bruno@clisp.org>
1792
1793         * lib/javaversion.c: Include configmake.h.
1794
1795 2006-09-18  Bruno Haible  <bruno@clisp.org>
1796
1797         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
1798         avoid that the while loops be executed in a subshell.
1799
1800 2006-09-18  Bruno Haible  <bruno@clisp.org>
1801
1802         * MODULES.html.sh (func_module): Break long lines.
1803         Suggested by Bruce Korb <bkorb@gnu.org>.
1804
1805 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1806
1807         Speed up by a factor of 1.12.
1808         * gnulib-tool (nl): New variable.
1809         (func_import): Rewrite include directive extraction to only read each
1810         directive once.
1811
1812 2006-09-17  Bruno Haible  <bruno@clisp.org>
1813
1814         * modules/javaversion (Makefile.am): Remove DEFS setting.
1815         (Depends-on): Add configmake, for PKGDATADIR definition.
1816
1817 2006-09-17  Bruno Haible  <bruno@clisp.org>
1818
1819         * gnulib-tool (func_create_testdir): Rewrite all files at once.
1820
1821 2006-09-17  Bruno Haible  <bruno@clisp.org>
1822
1823         * gnulib-tool (func_append): New function, stolen from libtool.m4.
1824         (func_modules_transitive_closure, func_modules_add_dummy,
1825         func_modules_to_filelist, func_import, func_create_testdir,
1826         func_create_megatestdir, ...): Use it wherever possible.
1827         Suggested by Ralf Wildenhues.
1828
1829 2006-09-16  Karl Berry  <karl@gnu.org>
1830
1831         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
1832         to avoid sectioning errors.
1833         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
1834         [ifinfo]: blank line after @center-ed titles.
1835         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
1836         Spell FSF address consistently with others.
1837         (These changes approved by rms.)
1838
1839 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1840
1841         Speed up by a factor of 1.61.
1842         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
1843         already checked module names again.
1844
1845 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1846
1847         Speed up by a factor of 1.13.
1848         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
1849         for new_files, and the input to func_add_or_update.
1850
1851 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1852
1853         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
1854         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
1855
1856 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1857
1858         * modules/mkancesdirs (Depends-on): Add fcntl.
1859         * modules/savewd: New file.
1860         * MODULES.html.sh (File system functions): Add savewd.
1861
1862         * modules/configmake (Makefile.am): Add support for the
1863         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
1864
1865 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1866
1867         * m4/savewd.m4: New file.
1868
1869 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1870
1871         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
1872         (dirchownmod): New arg FD.  All callers changed.
1873         Use FD rather than opening the directory ourself, as opening is
1874         now the caller's responsibility.
1875         * lib/dirchownmod.h: Likewise.
1876         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
1877         hosts that require <sys/types.h> before <sys/stat.h>.  Include
1878         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
1879         (test_dir): Remove.
1880         (mkancesdirs): Return length of prefix of FILE that has already
1881         been made, or -2 if there is a child doing the work.  Redo
1882         algorithm so that it is O(N) rather than O(N**2).  Optimize away
1883         ".", and treat ".." specially since it might stray back into
1884         already-created areas.  Use a subprocess if necessary.  New arg
1885         WD; all users changed.  MAKE_DIR function should now return 1
1886         if it creates a directory that is not readable.  Return -2 if
1887         a child process is spun off.
1888         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
1889         Adjust signature to match code.
1890         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
1891         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
1892         all users changed.
1893         * lib/savewd.c, savewd.h: New files.
1894
1895 2006-09-15  Jim Meyering  <jim@meyering.net>
1896
1897         * modules/rename-dest-slash: New module.
1898         * MODULES.html.sh (posix_compat): Add it here.
1899
1900         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
1901
1902 2006-09-15  Jim Meyering  <jim@meyering.net>
1903
1904         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
1905         file.
1906
1907         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
1908
1909 2006-09-15  Jim Meyering  <jim@meyering.net>
1910
1911         * lib/rename-dest-slash.c (has_trailing_slash): Use
1912         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
1913         (rpl_rename_dest_slash): Perform the cheaper trailing slash
1914         test before testing whether SRC is a directory.
1915         Suggestions from Bruno Haible.
1916
1917         Avoid a warning about an unused variable.
1918         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
1919         into the #ifdef block where it's used.
1920
1921         * lib/rename-dest-slash.c: New file.
1922
1923 2006-09-14  Bruno Haible  <bruno@clisp.org>
1924
1925         * lib/allocsa.c: Include <config.h> unconditionally.
1926         * lib/asnprintf.c: Likewise.
1927         * lib/asprintf.c: Likewise.
1928         * lib/c-strcasecmp.c: Likewise.
1929         * lib/c-strcasestr.c: Likewise.
1930         * lib/c-strncasecmp.c: Likewise.
1931         * lib/c-strstr.c: Likewise.
1932         * lib/classpath.c: Likewise.
1933         * lib/clean-temp.c: Likewise.
1934         * lib/concatpath.c: Likewise.
1935         * lib/copy-file.c: Likewise.
1936         * lib/csharpcomp.c: Likewise.
1937         * lib/csharpexec.c: Likewise.
1938         * lib/execute.c: Likewise.
1939         * lib/fatal-signal.c: Likewise.
1940         * lib/findprog.c: Likewise.
1941         * lib/fwriteerror.c: Likewise.
1942         * lib/gl_array_list.c: Likewise.
1943         * lib/gl_array_oset.c: Likewise.
1944         * lib/gl_avltree_list.c: Likewise.
1945         * lib/gl_avltree_oset.c: Likewise.
1946         * lib/gl_avltreehash_list.c: Likewise.
1947         * lib/gl_carray_list.c: Likewise.
1948         * lib/gl_linked_list.c: Likewise.
1949         * lib/gl_linkedhash_list.c: Likewise.
1950         * lib/gl_list.c: Likewise.
1951         * lib/gl_oset.c: Likewise.
1952         * lib/gl_rbtree_list.c: Likewise.
1953         * lib/gl_rbtree_oset.c: Likewise.
1954         * lib/gl_rbtreehash_list.c: Likewise.
1955         * lib/imaxabs.c: Likewise.
1956         * lib/imaxdiv.c: Likewise.
1957         * lib/javacomp.c: Likewise.
1958         * lib/javaexec.c: Likewise.
1959         * lib/javaversion.c: Likewise.
1960         * lib/linebreak.c: Likewise.
1961         * lib/localcharset.c: Likewise.
1962         * lib/lock.c: Likewise.
1963         * lib/mbchar.c: Likewise.
1964         * lib/mbswidth.c: Likewise.
1965         * lib/mkdtemp.c: Likewise.
1966         * lib/pipe.c: Likewise.
1967         * lib/printf-args.c: Likewise.
1968         * lib/printf-parse.c: Likewise.
1969         * lib/progname.c: Likewise.
1970         * lib/progreloc.c: Likewise.
1971         * lib/readlink.c: Likewise.
1972         * lib/sh-quote.c: Likewise.
1973         * lib/stpcpy.c: Likewise.
1974         * lib/stpncpy.c: Likewise.
1975         * lib/strcasecmp.c: Likewise.
1976         * lib/strcasestr.c: Likewise.
1977         * lib/strcspn.c: Likewise.
1978         * lib/striconv.c: Likewise.
1979         * lib/strncasecmp.c: Likewise.
1980         * lib/strnlen1.c: Likewise.
1981         * lib/strstr.c: Likewise.
1982         * lib/strtok_r.c: Likewise.
1983         * lib/tls.c: Likewise.
1984         * lib/tmpdir.c: Likewise.
1985         * lib/unicodeio.c: Likewise.
1986         * lib/unsetenv.c: Likewise.
1987         * lib/vasnprintf.c: Likewise.
1988         * lib/vasprintf.c: Likewise.
1989         * lib/wait-process.c: Likewise.
1990         * lib/xallocsa.c: Likewise.
1991         * lib/xsetenv.c: Likewise.
1992         * lib/xstriconv.c: Likewise.
1993
1994 2006-09-13  Simon Josefsson  <jas@extundo.com>
1995
1996         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
1997         that internally, suggested by Ralf Wildenhues
1998         <Ralf.Wildenhues@gmx.de>.
1999
2000 2006-09-13  Simon Josefsson  <jas@extundo.com>
2001
2002         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
2003         @LIBOBJS@.
2004         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2005
2006 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2007
2008         * lib/_fpending.c: Include <config.h> unconditionally, since we no
2009         longer worry about uses that don't define HAVE_CONFIG_H.
2010         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
2011         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
2012         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
2013         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
2014         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
2015         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
2016         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
2017         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
2018         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
2019         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
2020         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
2021         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
2022         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
2023         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
2024         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
2025         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
2026         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
2027         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
2028         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
2029         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
2030         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
2031         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
2032         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
2033         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
2034         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
2035         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
2036         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
2037         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
2038         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
2039         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
2040         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
2041         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
2042         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
2043         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
2044         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
2045         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
2046         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
2047         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
2048         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
2049         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
2050         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
2051         Likewise.
2052
2053 2006-09-13  Eric Blake  <ebb9@byu.net>
2054
2055         * lib/getopt.c: Fix typo in last commit.
2056
2057 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2058
2059         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
2060         dgettext.
2061
2062 2006-09-12  Jim Meyering  <jim@meyering.net>
2063
2064         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
2065         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
2066         Reported by Nelson H. F. Beebe.
2067
2068 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
2069
2070         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
2071         program_invocation_name and program_invocation_short_name are
2072         initialized.
2073         * lib/argp-namefrob.h: Move declarations of program_invocation_name
2074         and program_invocation_short_name to argp.h, so they are visible
2075         to user programs.
2076         * lib/argp.h: Likewise
2077
2078 2006-09-10  Bruno Haible  <bruno@clisp.org>
2079
2080         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
2081         m4/inttypes_h.m4, m4/uintmax_t.m4.
2082
2083 2006-09-10  Bruno Haible  <bruno@clisp.org>
2084
2085         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
2086         gl_AC_TYPE_UINTMAX_T.
2087
2088 2006-09-10  Bruno Haible  <bruno@clisp.org>
2089
2090         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
2091
2092 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
2093
2094         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
2095         convention.  Text proposed by Bruno Haible.
2096         (struct argp_option): Document the use of N_() wrappers.
2097
2098         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
2099         '\v', and translate the two parts separately, instead of feeding
2100         the whole string to gettext.  This allows to exclude
2101         '\v' from the strings visible to the translator by writing doc
2102         strings as N_("..") "\v" N_("..").
2103
2104 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2105
2106         * config/srclist.txt: Undo latest change; the bug was fixed.
2107
2108 2006-09-09  Bruno Haible  <bruno@clisp.org>
2109
2110         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
2111         assignments if building a library without libtool.
2112         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
2113         in func_emit_lib_Makefile_am.
2114         (func_import): When building a static library libfoo.a, arrange to
2115         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
2116         (func_create_testdir): Likewise.
2117         * modules/gc (configure.ac, Makefile.am): If building statically,
2118         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
2119         * modules/iconvme (configure.ac, Makefile.am): Likewise.
2120         * modules/striconv (configure.ac, Makefile.am): Likewise.
2121         Based on a suggestion by Ralf Wildenhues.
2122
2123 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2124
2125         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
2126         Check for unistd.h too, since Autoconf doesn't assume POSIX.
2127         Also:
2128
2129         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2130         Add year_2050_test to catch glibc bug 2821
2131         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
2132
2133         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2134         Prefer #ifdef to #if.
2135
2136         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
2137         Return from 'main' instead of calling 'exit'.
2138
2139 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2140
2141         * lib/mktime.c (guess_time_tm): Fix bug where mktime
2142         returned the maximum time_t value rather than (time_t) -1.
2143         Problem originally reported by William Bardwell
2144         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
2145
2146         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
2147         Moved to here ...
2148         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
2149         ... from here.
2150
2151 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2152
2153         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
2154         2821 is fixed.
2155
2156 2006-09-08  Jim Meyering  <jim@meyering.net>
2157
2158         Don't make generated files read-only.  That would bother too many
2159         people.  However, do retain the ability to work when targets are
2160         read-only: remove the destination and temporary files before writing
2161         them (when generated via sed or echo), or by using the -f option for
2162         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
2163         * modules/alloca-opt, modules/argz, modules/arpa_inet:
2164         * modules/byteswap, modules/configmake, modules/fcntl:
2165         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
2166         * modules/localcharset, modules/netinet_in, modules/poll:
2167         * modules/stdbool, modules/stdint, modules/sys_select:
2168         * modules/sys_socket, modules/sys_stat, modules/sysexits:
2169
2170 2006-09-08  Jim Meyering  <jim@meyering.net>
2171
2172         Avoid new build failure on FreeBSD 6.0.
2173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
2174         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
2175         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
2176
2177 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2178
2179         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
2180
2181 2006-09-07  Jim Meyering  <jim@meyering.net>
2182
2183         Fix global typo in last change: use chmod u-w, not chmod u-x.
2184         Spotted by Paul Eggert and Bruce Korb.
2185         * modules/alloca-opt, modules/argz, modules/arpa_inet:
2186         * modules/byteswap, modules/configmake, modules/fcntl:
2187         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
2188         * modules/localcharset, modules/netinet_in, modules/poll:
2189         * modules/stdbool, modules/stdint, modules/sys_select:
2190         * modules/sys_socket, modules/sys_stat, modules/sysexits:
2191
2192 2006-09-06  Jim Meyering  <jim@meyering.net>
2193
2194         Make generated files be read-only.
2195         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
2196         Ensure that each generated file is now read-only.
2197         * modules/argz: Likewise.
2198         * modules/arpa_inet: Likewise.
2199         * modules/byteswap: Likewise.
2200         * modules/configmake: Likewise.
2201         * modules/fcntl: Likewise.
2202         * modules/fnmatch: Likewise.
2203         * modules/getopt: Likewise.
2204         * modules/glob: Likewise.
2205         * modules/inttypes: Likewise.
2206         * modules/netinet_in: Likewise.
2207         * modules/poll: Likewise.
2208         * modules/stdbool: Likewise.
2209         * modules/stdint: Likewise.
2210         * modules/sys_select: Likewise.
2211         * modules/sys_socket: Likewise.
2212         * modules/sys_stat: Likewise.
2213         * modules/sysexits: Likewise.
2214         * modules/localcharset: Same as above, but continue using temporary
2215         file named "t-$@" (why different?) rather than the "$@-t" used
2216         everywhere else.
2217
2218         * modules/sysexits (Makefile.am): Replace literal occurrences
2219         of "sysexit.h" more readable, and more consistent, "$@".
2220
2221 2006-09-06  Bruno Haible  <bruno@clisp.org>
2222
2223         * modules/striconv: New file.
2224         * modules/xstriconv: New file.
2225         * MODULES.html.sh (Internationalization functions): Add striconv,
2226         xstriconv.
2227
2228 2006-09-06  Bruno Haible  <bruno@clisp.org>
2229
2230         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
2231         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
2232         not using libtool correctly.
2233
2234 2006-09-06  Bruno Haible  <bruno@clisp.org>
2235
2236         * lib/striconv.h: New file.
2237         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
2238         iconvstring.c.
2239         * lib/xstriconv.h: New file.
2240         * lib/xstriconv.c: New file.
2241
2242 2006-09-06  Bruno Haible  <bruno@clisp.org>
2243
2244         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2245         lib_..._LDFLAGS.
2246
2247 2006-09-05  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2248
2249         * lib/argz_.h: Sync from Libtool.
2250
2251         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
2252                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2253
2254         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
2255
2256 2006-09-05  Davide Angelocola <davide.angelocola@tiscali.it>
2257
2258         * modules/trim: New file.
2259
2260 2006-09-05  Davide Angelocola <davide.angelocola@tiscali.it>
2261
2262         * lib/trim.h: New file.
2263         * lib/trim.c: New file.
2264
2265 2006-09-05  Bruno Haible  <bruno@clisp.org>
2266
2267         * MODULES.html.sh (String handling): Add trim.
2268
2269 2006-09-04  Karl Berry  <karl@gnu.org>
2270
2271         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
2272         until next release.
2273
2274 2006-09-03  Bruno Haible  <bruno@clisp.org>
2275
2276         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
2277         correctly.
2278
2279 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
2282         not gl_GETLOADAVG.  Omit unneeded semicolons.
2283         Problems reported by Ralf Wildenhues in
2284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
2285         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
2286         at the end, which is the usual gnulib style.
2287
2288         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
2289         of doing all the work ourselves.
2290         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
2291         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
2292
2293 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2294
2295         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
2296         Problem reported by Ralf Wildenhues in
2297         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
2298
2299         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
2300         HAVE_STRUCT_STATFS_F_FSTYPENAME.
2301
2302 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2303
2304         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
2305         yesterday's patch by changing test -n to test -z.
2306
2307 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2308
2309         * modules/getloadavg (Files): Add m4/getloadavg.m4.
2310         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
2311         the former is now obsolescent.
2312
2313         * modules/chdir-long (Depends-on): Add fcntl.
2314
2315 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2316
2317         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
2318         obsolescent, and programs should use gnulib instead.
2319         * m4/getloadavg.m4: New file, with contents taken from Autoconf
2320         but with prefixes changed.
2321
2322 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2323
2324         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
2325         or stdbool.h, because they might not exist while configuring.
2326
2327         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
2328         Don't include unistd.h or limits.h; not needed, since chdir-long.h
2329         does that for us.
2330         (O_DIRECTORY): Remove.
2331
2332 2006-08-31  Eric Blake  <ebb9@byu.net>
2333
2334         * gnulib-tool: Don't let emacs change spaces to TAB.
2335
2336 2006-08-31  Bruno Haible  <bruno@clisp.org>
2337
2338         * gnulib-tool: When calling func_import more than once, do it in a
2339         subshell.
2340         Reported by Eric Blake <ebb9@byu.net>.
2341
2342 2006-08-31  Bruno Haible  <bruno@clisp.org>
2343
2344         * gnulib-tool (nl): Remove variable.
2345         (sed_transform_lib_file): Use more robust test for config-h module.
2346         (func_import): Fix typo in 2006-08-25 patch.
2347
2348 2006-08-31  Bruno Haible  <bruno@clisp.org>
2349
2350         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
2351         specified, augment Makefile.am variables instead of assigning them.
2352
2353 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2354
2355         Work around a bug in both the Linux and SunOS 64-bit kernels:
2356         nanosleep mishandles sleeps for longer than 2**31 seconds.
2357         Problem reported by Frank v Waveren in
2358         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
2359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
2360         Check for nanosleep bug.
2361         (LIB_NANOSLEEP): Append clock_gettime library if needed.
2362
2363 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2364
2365         Work around a bug in both the Linux and SunOS 64-bit kernels:
2366         nanosleep mishandles sleeps for longer than 2**31 seconds.
2367         Problem reported by Frank v Waveren in
2368         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
2369         * lib/nanosleep.c (BILLION): New constant.
2370         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
2371         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
2372         implementation.
2373
2374 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2375
2376         * modules/nanosleep (Depends-on): Add gettime.
2377
2378 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2379         and Simon Josefsson  <jas@extundo.com>
2380         and Oskar Liljeblad  <oskar@osk.mine.nu>
2381
2382         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
2383         * gnulib-tool (func_import): New license type 'unmodifiable license
2384         text'.
2385         * modules/fdl: Use it.  Longer description.
2386         * module/gpl, module/lgpl: New files.
2387
2388 2006-08-30  Jim Meyering  <jim@meyering.net>
2389
2390         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
2391         shadowing the parameter.
2392
2393 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2394
2395         Sync from Libtool:
2396
2397         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2398
2399         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
2400         sharing with gnulib.  Report by Eric Blake.
2401
2402 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2403
2404         * modules/isapipe: New file.
2405         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
2406
2407 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2408
2409         * modules/configmake (Makefile.am): Add a comment, and omit
2410         the CONFIGMAKE_ prefix from generated macro names.  Suggested
2411         by Bruno Haible.
2412
2413 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2414
2415         * m4/isapipe.m4: New file.
2416
2417 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2418
2419         * lib/isapipe.c, isapipe.h: New files.
2420
2421 2006-08-29  Jim Meyering  <jim@meyering.net>
2422
2423         * modules/configmake (Makefile.am): Make configmake.h depend on
2424         Makefile.  Otherwise, a stale configmake.h could hang around.
2425
2426 2006-08-29  Eric Blake  <ebb9@byu.net>
2427
2428         * lib/error.c (error_at_line, print_errno_message): Match libc, after
2429         resolution of upstream bug 3044.
2430
2431 2006-08-29  Bruno Haible  <bruno@clisp.org>
2432
2433         * modules/localcharset (Depends-on): Add configmake.
2434         (Makefile.am): Remove setting of LIBDIR through DEFS.
2435
2436 2006-08-29  Bruno Haible  <bruno@clisp.org>
2437
2438         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
2439         defined.
2440
2441 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2442
2443         * modules/fcntl: New file.
2444         * modules/chdir-safer (Depends-on): Add fcntl.
2445         * modules/fts: Likewise.
2446         * modules/mkdir-p: Likewise.
2447
2448         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
2449         This undoes the most recent change, since we're now addressing the
2450         problem in a different way.
2451
2452         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
2453         into output, since the output might be called Makefile.am even
2454         if $makefile_name is something different.
2455         (func_import): Use $makefile_am rather than
2456         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
2457         empty.
2458
2459         * modules/inttypes (Files): Add m4/inttypes-h.m4.
2460
2461 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2462
2463         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
2464         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
2465         recent change to stdint.m4, since we're now addressing the problem in a
2466         different way.
2467
2468 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2469
2470         * m4/fcntl_h.m4: New file.
2471
2472 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2473
2474         * lib/fcntl_.h: New file.
2475         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
2476         the fcntl module.
2477         * lib/dirchownmod.c: Likewise.
2478         * lib/fts.c: Likewise.
2479
2480         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
2481         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
2482         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
2483         just before including <inttypes.h>, to avoid circular inclusion.
2484
2485 2006-08-28  Jim Meyering  <jim@meyering.net>
2486
2487         * doc/visibility.texi: Actually read and correct the grammar of the
2488         sentence affected by yesterday's change.
2489
2490 2006-08-28  Eric Blake  <ebb9@byu.net>
2491
2492         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
2493         needs wrapper.
2494
2495 2006-08-28  Eric Blake  <ebb9@byu.net>
2496
2497         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
2498
2499 2006-08-28  Eric Blake  <ebb9@byu.net>
2500
2501         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
2502
2503 2006-08-28  Bruno Haible  <bruno@clisp.org>
2504
2505         * modules/c-strstr: New file, from GNU gettext.
2506         * MODULES.html.sh (String handling): Add c-strstr.
2507
2508 2006-08-28  Bruno Haible  <bruno@clisp.org>
2509
2510         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
2511         macros.
2512         Reported by Eric Blake.
2513
2514 2006-08-28  Bruno Haible  <bruno@clisp.org>
2515
2516         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
2517         (VASNPRINTF): Return a string of length > INT_MAX without failing.
2518         * lib/vasprintf.c: Include errno.h, limits.h.
2519         (EOVERFLOW): New fallback definition.
2520         (vasprintf): Test here whether the string length is > INT_MAX.
2521         * lib/vsnprintf.c: Include errno.h, limits.h.
2522         (EOVERFLOW): New fallback definition.
2523         (vsnprintf): Fix bug when generated string was too long for the buffer.
2524         Test here whether the string length is > INT_MAX.
2525
2526 2006-08-28  Bruno Haible  <bruno@clisp.org>
2527
2528         * lib/inttypes_.h (SCNX*): Remove definitions.
2529         Reported by Eric Blake.
2530
2531 2006-08-28  Bruno Haible  <bruno@clisp.org>
2532
2533         * lib/c-strstr.h: New file, from GNU gettext.
2534         * lib/c-strstr.c: New file, from GNU gettext.
2535
2536 2006-08-28  Bruno Haible  <bruno@clisp.org>
2537
2538         * gnulib-tool: Reorder some statements.
2539
2540 2006-08-28  Bruno Haible  <bruno@clisp.org>
2541
2542         * gnulib-tool: New option --makefile-name.
2543         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
2544         $makefile_name.
2545         (func_import): Write $makefile_name to the cache file, and read it from
2546         there unless explicitly specified. Use $makefile_name as file name
2547         instead of Makefile.am. Adjust the recommendations accordingly.
2548
2549 2006-08-28  Bruno Haible  <bruno@clisp.org>
2550
2551         * gnulib-tool (func_verify_module): Check against misapplying patch.
2552
2553 2006-08-28  Bruno Haible  <bruno@clisp.org>
2554
2555         * gnulib-tool (func_relativize, func_relconcat): New functions.
2556         Give an error if --local-dir is given with --update.
2557         Remove trailing slashes from $local_gnulib_dir.
2558         (func_import): Store the relativized $local_gnulib_dir in
2559         gnulib-cache.m4, and read it from there if not specified explicitly.
2560
2561 2006-08-28  Bruno Haible  <bruno@clisp.org>
2562
2563         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
2564         is the current directory. Respect also $local_gnulib_dir.
2565
2566 2006-08-28  Bruno Haible  <bruno@clisp.org>
2567             Simon Josefsson  <jas@extundo.com>
2568
2569         BeOS portability.
2570         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
2571
2572 2006-08-27  Jim Meyering  <jim@meyering.net>
2573
2574         * doc/visibility.texi: Remove duplicate word: "pointer".
2575
2576 2006-08-26  Bruno Haible  <bruno@clisp.org>
2577
2578         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
2579         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
2580         (Makefile.am): Create inttypes.h from inttypes_.h.
2581         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
2582
2583         * modules/imaxabs: New file.
2584
2585         * modules/imaxdiv: New file.
2586
2587 2006-08-26  Bruno Haible  <bruno@clisp.org>
2588
2589         * m4/inttypes.m4: New file.
2590         * m4/_inttypes_h.m4: Remove file.
2591         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
2592         PRI_MACROS_BROKEN.
2593         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
2594
2595         * m4/imaxabs.m4: New file.
2596
2597         * m4/imaxdiv.m4: New file.
2598
2599 2006-08-26  Bruno Haible  <bruno@clisp.org>
2600
2601         * lib/inttypes_.h: New file.
2602         * lib/inttypes.h: Remove file.
2603         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
2604
2605         * lib/imaxabs.c: New file.
2606
2607         * lib/imaxdiv.c: New file.
2608
2609 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2610
2611         New config-h module, so that "make" output needn't be cluttered
2612         by -DHAVE_CONFIG_H.
2613         * MODULES.html.sh (Support for building libraries and executables):
2614         Add config-h.
2615         * modules/config-h: New file.
2616         * gnulib-tool (nl, sed_transform_lib_file): New vars.
2617         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
2618         the config-h module is used.
2619
2620         New configmake module, so that "make" output needn't be cluttered
2621         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
2622         * MODULES.html.sh (Support for building libraries and executables):
2623         Add configmake.
2624         * modules/configmake: New file.
2625
2626 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2627
2628         * m4/config-h.m4: New file.
2629
2630 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2631
2632         * config/srclist.txt: Add elisp-comp.
2633
2634 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2635
2636         * MODULES.html.sh (Support for building libraries and executables):
2637         Add elisp-comp.
2638         * build-aux/elisp-comp: New file.
2639         * modules/elisp-comp: New file.
2640
2641 2006-08-24  Bruno Haible <bruno@clisp.org>
2642
2643         * gnulib-tool (func_create_testdir): Use non-default values of
2644         sourcebase and m4base.
2645
2646 2006-08-24  Bruno Haible <bruno@clisp.org>
2647
2648         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
2649         HTML structure.
2650
2651 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2652
2653         * modules/openat (Depends-on): Add lchown.
2654
2655 2006-08-23  Bruno Haible <bruno@clisp.org>
2656
2657         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
2658         of gl_LOCK_EARLY instead of gl_LOCK.
2659
2660 2006-08-23  Bruno Haible  <bruno@clisp.org>
2661
2662         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
2663         on OSF/1 to no.
2664         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
2665
2666 2006-08-23  Bruno Haible  <bruno@clisp.org>
2667
2668         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
2669         as unusable.
2670
2671         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
2672         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
2673         (gl_LOCK): New macro.
2674
2675 2006-08-22  Simon Josefsson  <jas@extundo.com>
2676
2677         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
2678         to md5 module.
2679
2680 2006-08-22  Simon Josefsson  <jas@extundo.com>
2681
2682         * MODULES.html.sh: Add "Support for maintaining and release
2683         projects".
2684
2685         * build-aux/gnupload: New file, from coreutils.
2686
2687 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2688
2689         Avoid the need for AC_LIBSOURCES in m4 macros.
2690         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
2691         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
2692         * modules/check-version (EXTRA_DIST): Add check-version.h.
2693         * modules/crc (EXTRA_DIST): Add crc.h.
2694         * modules/des (EXTRA_DIST): Add des.h.
2695         * modules/gc (EXTRA_DIST): Add gc.h.
2696         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
2697         * modules/getline (EXTRA_DIST): Add getline.h.
2698         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
2699         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
2700         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
2701         * modules/md2 (EXTRA_DIST): Add md2.h.
2702         * modules/md4 (EXTRA_DIST): Add md4.h.
2703         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
2704         * modules/read-file (EXTRA_DIST): Add read-file.h.
2705         * modules/readline (EXTRA_DIST): Add readline.h.
2706         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
2707         rijndael-api-fst.h.
2708
2709 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2710
2711         * m4/rijndael.m4 (gl_ARCFOUR):
2712         * m4/arctwo.m4 (gl_ARCTWO):
2713         * m4/check-version.m4 (gl_CHECK_VERSION):
2714         * m4/crc.m4 (gl_CRC):
2715         * m4/des.m4 (gl_DES):
2716         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
2717         * m4/gc.m4 (gl_GC):
2718         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
2719         * m4/getline.m4 (gl_FUNC_GETLINE):
2720         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
2721         * m4/hmac-md5.m4 (gl_HMAC_MD5):
2722         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
2723         * m4/md2.m4 (gl_MD2):
2724         * m4/md4.m4 (gl_MD4):
2725         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
2726         * m4/read-file.m4 (gl_FUNC_READ_FILE):
2727         * m4/readline.m4 (gl_FUNC_READLINE):
2728         * m4/rijndael.m4 (gl_RIJNDAEL):
2729         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
2730         to get the necessary .h files and whatnot.
2731
2732 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2733
2734         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
2735         gnulib rather than the other way around.
2736         * config/srclistvars.sh (COREUTILS): Remove.
2737
2738 2006-08-22  Jim Meyering  <jim@meyering.net>
2739
2740         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
2741
2742         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
2743
2744 2006-08-22  Eric Blake  <ebb9@byu.net>
2745
2746         * modules/regexprops-generic: New file.
2747         * MODULES.html.sh (Support for building documentation): List it.
2748
2749 2006-08-22  Eric Blake  <ebb9@byu.net>
2750
2751         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
2752         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2753         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
2754         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2755
2756 2006-08-22  Bruno Haible <bruno@clisp.org>
2757
2758         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
2759         and lib_LTLIBRARIES like the other lib_* variables.
2760
2761 2006-08-22  Bruno Haible <bruno@clisp.org>
2762
2763         * build-aux/x-to-1.in: New file, from GNU gettext.
2764
2765 2006-08-22  Bruno Haible  <bruno@clisp.org>
2766
2767         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
2768         <utmpx.h> exists.
2769
2770 2006-08-22  Bruno Haible  <bruno@clisp.org>
2771
2772         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
2773         <utmpx.h> exists.
2774
2775 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2776
2777         BeOS portability.
2778         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
2779         exist.
2780         Problem reported by Bruno Haible.
2781
2782 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2783
2784         Avoid the need for AC_LIBSOURCES in m4 macros.
2785         * modules/acl (EXTRA_DIST): Add acl.h.
2786         * modules/argmatch (Files): Add m4/argmatch.m4.
2787         (configure.ac): Add gl_ARGMATCH.
2788         (EXTRA_DIST): Renamed from lib_SOURCES, for
2789         consistency with the other modules.  Remove argmatch.c.
2790         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
2791         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
2792         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
2793         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
2794         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
2795         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
2796         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
2797         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
2798         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
2799         * modules/closeout (EXTRA_DIST): Add closeout.h.
2800         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
2801         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
2802         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
2803         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
2804         dirname.h; remove basename.c and stripslash.c.
2805         * modules/exclude (EXTRA_DIST): Add exclude.h.
2806         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
2807         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
2808         * modules/file-type (EXTRA_DIST): Add file-type.h.
2809         * modules/filemode (EXTRA_DIST): Add filemode.h.
2810         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
2811         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
2812         * modules/fpending (EXTRA_DIST): Add __fpending.h.
2813         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
2814         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
2815         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
2816         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
2817         * modules/getdate (EXTRA_DIST): Add getdate.c.
2818         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
2819         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
2820         * modules/getpass (EXTRA_DIST): Add getpass.h.
2821         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
2822         * modules/group-member (EXTRA_DIST): Add group-member.h.
2823         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
2824         * modules/hash (EXTRA_DIST): Add hash.h.
2825         * modules/human (EXTRA_DIST): Add human.h.
2826         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
2827         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
2828         * modules/lchown (EXTRA_DIST): Add lchown.h.
2829         * modules/long-options (EXTRA_DIST): Add long-options.h.
2830         * modules/lstat (EXTRA_DIST): Add lstat.h.
2831         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
2832         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
2833         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
2834         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
2835         * modules/memxor (EXTRA_DIST): Add memxor.h.
2836         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
2837         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
2838         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
2839         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
2840         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
2841         * modules/physmem (EXTRA_DIST): Add physmem.h.
2842         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
2843         * modules/posixver (EXTRA_DIST): Add posixver.h.
2844         * modules/quote (EXTRA_DIST): Add quote.h.
2845         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
2846         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
2847         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
2848         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
2849         regex_internal.h regexec.c.
2850         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
2851         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
2852         * modules/same (EXTRA_DIST): Add same.h.
2853         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
2854         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
2855         * modules/savedir (EXTRA_DIST): Add savedir.h.
2856         * modules/sha1 (EXTRA_DIST): Add sha1.h.
2857         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
2858         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
2859         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
2860         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
2861         * modules/strdup (EXTRA_DIST): Add strdup.h.
2862         * modules/strftime (EXTRA_DIST): Add strftime.h.
2863         * modules/strndup (EXTRA_DIST): Add strndup.h.
2864         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
2865         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
2866         * modules/time_r (EXTRA_DIST): Add time_r.h.
2867         * modules/timespec (EXTRA_DIST): Add timespec.h.
2868         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
2869         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
2870         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
2871         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
2872         * modules/userspec (EXTRA_DIST): Add userspec.h.
2873         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
2874         * modules/utimens (EXTRA_DIST): Add utimens.h.
2875         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
2876         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
2877         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
2878         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
2879         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
2880         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
2881         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
2882         * modules/yesno (EXTRA_DIST): Add yesno.h.
2883
2884 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2885
2886         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
2887
2888         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
2889         * m4/dev-ino.m4, same-inode.m4: Remove.
2890
2891         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
2892         * m4/acl.m4 (AC_FUNC_ACL):
2893         * m4/backupfile.m4 (gl_BACKUPFILE):
2894         * m4/c-strtod.m4 (gl_C99_STRTOLD):
2895         * m4/canon-host.m4 (gl_CANON_HOST):
2896         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
2898         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
2899         * m4/cloexec.m4 (gl_CLOEXEC):
2900         * m4/close-stream.m4 (gl_CLOSE_STREAM):
2901         * m4/closeout.m4 (gl_CLOSEOUT):
2902         * m4/dirfd.m4 (gl_FUNC_DIRFD):
2903         * m4/dirname.m4 (gl_DIRNAME):
2904         * m4/exclude.m4 (gl_EXCLUDE):
2905         * m4/exitfail.m4 (gl_EXITFAIL):
2906         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
2907         * m4/file-type.m4 (gl_FILE_TYPE):
2908         * m4/filemode.m4 (gl_FILEMODE):
2909         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
2910         * m4/fpending.m4 (gl_FUNC_FPENDING):
2911         * m4/fprintftime.m4 (gl_FPRINTFTIME):
2912         * m4/fts.m4 (gl_FUNC_FTS):
2913         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
2914         * m4/getdate.m4 (gl_GETDATE):
2915         * m4/gethrxtime.m4 (gl_GETHRXTIME):
2916         * m4/getpagesize.m4 (gl_GETPAGESIZE):
2917         * m4/getpass.m4 (gl_FUNC_GETPASS):
2918         * m4/gettime.m4 (gl_GETTIME):
2919         * m4/getugroups.m4 (gl_GETUGROUPS):
2920         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
2921         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
2922         * m4/hard-locale.m4 (gl_HARD_LOCALE):
2923         * m4/hash.m4 (gl_HASH):
2924         * m4/idcache.m4 (gl_IDCACHE):
2925         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
2926         * m4/lchown.m4 (gl_FUNC_LCHOWN):
2927         * m4/long-options.m4 (gl_LONG_OPTIONS):
2928         * m4/lstat.m4 (gl_FUNC_LSTAT):
2929         * m4/md5.m4 (gl_MD5):
2930         * m4/memcasecmp.m4 (gl_MEMCASECMP):
2931         * m4/memcoll.m4 (gl_MEMCOLL):
2932         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
2933         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
2934         * m4/memxor.m4 (gl_MEMXOR):
2935         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
2936         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
2937         * m4/modechange.m4 (gl_MODECHANGE):
2938         * m4/mountlist.m4 (gl_MOUNTLIST):
2939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2940         * m4/openat.m4 (gl_FUNC_OPENAT):
2941         * m4/pathmax.m4 (gl_PATHMAX):
2942         * m4/physmem.m4 (gl_PHYSMEM):
2943         * m4/posixtm.m4 (gl_POSIXTM):
2944         * m4/posixver.m4 (gl_POSIXVER):
2945         * m4/quote.m4 (gl_QUOTE):
2946         * m4/quotearg.m4 (gl_QUOTEARG):
2947         * m4/readtokens.m4 (gl_READTOKENS):
2948         * m4/readutmp.m4 (gl_READUTMP):
2949         * m4/regex.m4 (gl_REGEX):
2950         * m4/safe-read.m4 (gl_SAFE_READ):
2951         * m4/safe-write.m4 (gl_SAFE_WRITE):
2952         * m4/same.m4 (gl_SAME):
2953         * m4/save-cwd.m4 (gl_SAVE_CWD):
2954         * m4/savedir.m4 (gl_SAVEDIR):
2955         * m4/settime.m4 (gl_SETTIME):
2956         * m4/sha1.m4 (gl_SHA1):
2957         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
2958         * m4/stat-macros.m4 (gl_STAT_MACROS):
2959         * m4/stat-time.m4 (gl_STAT_TIME):
2960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
2961         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
2962         * m4/strdup.m4 (gl_FUNC_STRDUP):
2963         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
2964         * m4/strndup.m4 (gl_FUNC_STRNDUP):
2965         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
2966         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
2967         * m4/time_r.m4 (gl_TIME_R):
2968         * m4/timespec.m4 (gl_TIMESPEC):
2969         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
2970         * m4/unlinkdir.m4 (gl_UNLINKDIR):
2971         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
2972         * m4/userspec.m4 (gl_USERSPEC):
2973         * m4/utimecmp.m4 (gl_UTIMECMP):
2974         * m4/utimens.m4 (gl_UTIMENS):
2975         * m4/xalloc.m4 (gl_XALLOC):
2976         * m4/xgetcwd.m4 (gl_XGETCWD):
2977         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
2978         * m4/xreadlink.m4 (gl_XREADLINK):
2979         * m4/xstrtod.m4 (gl_XSTRTOD):
2980         * m4/yesno.m4 (gl_YESNO):
2981         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
2982         to get the necessary .h files and whatnot.
2983
2984 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
2985             Bruno Haible <bruno@clisp.org>
2986
2987         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
2988         /bin/sh understanding of '!' conditional negation.
2989
2990 2006-08-21  Jim Meyering  <jim@meyering.net>
2991
2992         * modules/openat (Depends-on): Really alphabetize.
2993
2994         * modules/acl (Depends-on): Add error and quote.
2995
2996         * check-module (find_included_lib_files): Add at-func.c to the
2997         ok-to-include-more-than-once white list.
2998
2999         * modules/openat (Depends-on): Add lstat.  Alphabetize.
3000
3001 2006-08-21  Bruno Haible <bruno@clisp.org>
3002
3003         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3004         Emit a pkgdata_DATA variable only if some snippets add contents to it.
3005         Reported by Martin Lambers <marlam@marlam.de>.
3006
3007 2006-08-21  Bruno Haible <bruno@clisp.org>
3008
3009         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
3010         specify an installation location, don't emit a noinst_LIBRARIES or
3011         noinst_LTLIBRARIES assignment.
3012
3013 2006-08-21  Bruno Haible  <bruno@clisp.org>
3014
3015         BeOS portability.
3016         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
3017         BeOS has mbrtowc() but no <wctype.h>.
3018
3019 2006-08-21  Bruno Haible  <bruno@clisp.org>
3020
3021         BeOS portability.
3022         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
3023         exist.
3024
3025 2006-08-21  Bruno Haible  <bruno@clisp.org>
3026
3027         BeOS portability.
3028         * lib/mbchar.h: Include <wctype.h> only if it exists.
3029
3030 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3031
3032         Remove files that are no longer needed by their respective modules.
3033         * m4/obstack.m4: Remove.
3034         * m4/strerror_r.m4: Remove.
3035         * m4/uint32_t.m4: Remove.
3036         * m4/uintptr_t.m4: Remove.
3037         * m4/ullong_max.m4: Remove.
3038         * m4/xstrtoimax.m4: Remove.
3039         * m4/xstrtoumax.m4: Remove.
3040
3041         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
3042         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
3043         dependencies now capture this.
3044
3045         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
3046         Do not use AC_LIBSOURCES, since gnulib modules now do this.
3047         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
3048         * m4/human.m4 (gl_HUMAN): Likewise.
3049         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
3050         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
3051
3052         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
3053
3054         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
3055         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
3056         stdint.
3057         * m4/human.m4 (gl_HUMAN): Likewise.
3058         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
3059         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
3060         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
3061         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
3062         * m4/xstrtol (gl_XSTRTOL): Likewise.
3063
3064         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
3065         AC_TYPE_LONG_LONG_INT.
3066         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
3067         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
3068         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
3069         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
3070
3071         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
3072         on stdbool.
3073
3074         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
3075         (gl_PREREQ_XSTRTOUL): Remove.
3076
3077         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
3078
3079         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
3080         mode.
3081
3082 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3083
3084         Add and change modules to make it easier for coreutils to use
3085         gnulib-tool.
3086         * modules/backupfile (Files): Remove m4/d-ino.m4.
3087         (Depends-on): Add d-ino.
3088         * modules/cycle-check (Depends-on): Add stdint.
3089         (lib_SOURCES): Add cycle-check.h.
3090         * modules/d-ino: New module.
3091         * modules/d-type: New module.
3092         * modules/error (Files): Remove m4/strerror_r.m4.
3093         * modules/filemode (Files): Add m4/st_dm_mode.m4.
3094         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
3095         m4/inttypes_h.m4, m4/uintmax_t.m4.
3096         (Depends-on): Add stdint.
3097         (lib_SOURCES): Add fsusage.h.
3098         * modules/getcwd (Files): Remove d-ino.m4.
3099         (Depends-on): Add d-ino.
3100         * modules/getndelim2 (Depends-on): Add stdint.
3101         * modules/glob (Files): Remove m4/d-type.m4.
3102         (Depends-on): Add d-type.
3103         * modules/host-os: New module.
3104         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
3105         m4/inttypes_h.m4, m4/uintmax_t.m4.
3106         * Depends-on: Add stdint.
3107         (lib_SOURCES): Add human.h.
3108         * modules/inttostr (Files): Remove m4/intmax_t.m4,
3109         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
3110         m4/uintmax_t.m4, m4/ulonglong.m4.
3111         (Depends-on): Add stdint.
3112         (EXTRA_DIST): Add inttostr.h.
3113         * modules/lchmod: New module.
3114         * modules/link-follow: New module.
3115         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
3116         (Depends-on): Add lchmod.
3117         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
3118         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
3119         (Depends-on): Add stdint.
3120         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
3121         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
3122         (Depends-on): Add stdint.
3123         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
3124         * modules/perl: New module.
3125         * modules/regex (Depends-on): Add stdint.
3126         * modules/rmdir-errno: New module.
3127         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
3128         m4/intmax_t.m4.
3129         (Depends-on): Add stdint.
3130         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
3131         m4/uintmax_t.m4.
3132         (Depends-on): Add stdint.
3133         * modules/unlink-busy: New module.
3134         * modules/utimecmp (Depends-on): Add stdint.
3135         * modules/uptime: New module.
3136         * modules/winsz-ioctl: New module.
3137         * modules/winsz-termios: New module.
3138         * modules/xnanosleep (Depends-on): Add nanosleep.
3139         * modules/ullong_max: Remove.
3140         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
3141         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
3142         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
3143         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
3144         (Depends-on): Add inttypes.
3145         (lib_SOURCES): Add xstrtol.h.
3146         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
3147         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
3148         * MODULES.html.sh: Move 'assert' into the assert section.
3149         Move 'dummy' into the linking section.
3150         Remove ullong_max.
3151         Add section for compatibility checks for POSIX:2001 functions,
3152         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
3153         winsz-ioctl, and winsz-termios into it.
3154         Add lchmod.
3155         Add top-level Misc section and put host-os, perl, and uptime
3156         into it.
3157
3158 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
3161         now assume the stdint module.  Do not include inttypes.h.
3162         * lib/fsusage.h: Likewise.
3163         * lib/getndelim2.c: Likewise.
3164         * lib/human.h: Likewise.
3165         * lib/inttostr.h: Likewise.
3166         * lib/obstack.c: Likewise.
3167         * lib/regex_internal.h: Likewise.
3168         * lib/tempname.c: Likewise.
3169         * lib/utimecmp.c: Likewise.
3170         * lib/xstrtol.h: Likewise.
3171
3172         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
3173
3174         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
3175         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
3176         * lib/xtime.h: Likewise.
3177
3178 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3179
3180         * modules/openat (Files): Add lib/fchmodat.c.
3181         Fixes problem reported by Jay Youngman.
3182
3183 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3184
3185         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
3186         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
3187
3188 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3189             Bruno Haible  <bruno@clisp.org>
3190
3191         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
3192         and is a script that invokes bison. Tighten the code. Add comments.
3193
3194 2006-08-18  Jim Meyering  <jim@meyering.net>
3195
3196         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
3197         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
3198         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
3199         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
3200
3201 2006-08-18  Bruno Haible  <bruno@clisp.org>
3202
3203         * modules/bison-i18n: New file.
3204         * MODULES.html.sh (Internationalization functions): Add it.
3205
3206 2006-08-18  Bruno Haible  <bruno@clisp.org>
3207
3208         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
3209         sys/statvfs.h. When getmntinfo was found, check its declaration and
3210         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
3211
3212 2006-08-18  Bruno Haible  <bruno@clisp.org>
3213
3214         * m4/bison-i18n.m4: New file, from bison.
3215
3216 2006-08-18  Bruno Haible  <bruno@clisp.org>
3217
3218         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
3219         (ME_DUMMY): Treat "kernfs" as a dummy.
3220         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
3221
3222 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3223
3224         Update from coreutils.
3225
3226         2006-08-15  Jim Meyering  <jim@meyering.net>
3227
3228         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
3229
3230         2006-01-17  Jim Meyering  <jim@meyering.net>
3231
3232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
3233
3234         2006-01-11  Jim Meyering  <jim@meyering.net>
3235
3236         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
3237         Check for the lchmod function.
3238
3239 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3240
3241         Update from coreutils.
3242
3243         * lib/__fpending.h: Add copyright notice.
3244         * lib/fprintftime.h: Likewise.
3245         * lib/savedir.c: Use (C) in copyright notice.
3246         * lib/savedir.h: Likewise.
3247
3248         2006-08-15  Jim Meyering  <jim@meyering.net>
3249
3250         * lib/at-func.c: New file, with the logic of all emulated at-functions.
3251         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
3252         in support of the EXPECTED_ERRNO macro.
3253         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
3254         definitions.  Instead, define the appropriate symbols and include
3255         "at-func.c".
3256         * lib/mkdirat.c (mkdirat): Likewise.
3257         * lib/fchmodat.c (fchmodat): Likewise.
3258         (ENOSYS): Remove definition.
3259         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
3260         it.  Don't include "unistd--.h" -- it wasn't ever used.
3261
3262         2006-01-17  Jim Meyering  <jim@meyering.net>
3263
3264         Rewrite fts.c not to change the current working directory,
3265         by using openat, fstatat, fdopendir, etc..
3266
3267         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
3268         (HAVE_OPENAT_SUPPORT): Define.
3269         [_LIBC] (fchdir): Don't undef or define; no longer used.
3270         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
3271         Now, this `function' always succeeds, and consumes its file descriptor
3272         parameter -- so callers must not close such FDs.  Update callers.
3273         (diropen_fd, opendirat, cwd_advance_fd): New functions.
3274         (diropen): Add parameter, SP.  Adjust all callers.
3275         Implement using diropen_fd, rather than open.
3276         (fts_open): Initialize new member, fts_cwd_fd.
3277         Remove fts_rft-setting code.
3278         (fts_close): Close fts_cwd_fd, if necessary.
3279         (__opendir2): Define in terms of opendir or opendirat,
3280         depending on whether the FST_NOCHDIR flag is set.
3281         (fts_build): Since fts_safe_changedir consumes its FD, and since
3282         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
3283         and close the dup'd file descriptor upon failure.
3284         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
3285         (fts_safe_changedir): Tweak semantics to reflect that this function
3286         now calls cwd_advance_fd and hence consumes its FD argument.
3287         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
3288         [struct FTS] (fts_rft): Remove now-unused member.
3289         [struct FTS] (fts_cycle.state): Improve comment.
3290
3291         * lib/openat.c (openat_needs_fchdir): New function.
3292         * lib/openat.h (openat_needs_fchdir): Declare it.
3293
3294 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3295
3296         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
3297         Problem and fix reported by Pádraig Brady in
3298         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
3299
3300 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3301
3302         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
3303
3304 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3305
3306         * lib/memcoll.c (memcoll): Optimize for the common case where the
3307         arguments are bytewise equal.
3308
3309 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3310
3311         * doc/regexprops-generic.texi: Add a copyright notice.
3312
3313 2006-08-15  Bruno Haible  <bruno@clisp.org>
3314
3315         * modules/tmpdir (License): Change to LGPL.
3316
3317 2006-08-15  Bruno Haible  <bruno@clisp.org>
3318
3319         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
3320         module.
3321
3322 2006-08-14  Simon Josefsson  <jas@extundo.com>
3323
3324         * config/srclist.txt: Add gnupload.
3325
3326 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3327
3328         Change copyright notice from LGPL 2 to GPL 2, since that's the
3329         standard form used in the gnulib repository.
3330         * tests/test-lock.c: Likewise.
3331         * tests/test-stdint.c: Likewise.
3332         * tests/test-tls.c: Likewise.
3333
3334         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
3335         prelude-manager.  User shorter URLs for GNU projects, without '?'.
3336         Add copyright notice.
3337
3338         * check-module: Add copyright notice.  Output a copyright
3339         notice if "--version" is specified.
3340         * modules/COPYING: New file.
3341         * tests/test-getaddrinfo.c: Add copyright notice.
3342         * tests/test-verify.c: Likewise.
3343
3344 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3345
3346         Change copyright notice from LGPL 2 to GPL 2, since that's the
3347         standard form used in the gnulib repository.
3348         * lib/lock.c: LGPL -> GPL.
3349         * lib/lock.h: Likewise.
3350         * lib/strnlen1.c: Likewise.
3351         * lib/strnlen1.h: Likewise.
3352         * lib/tls.c: Likewise.
3353         * lib/tls.h: Likewise.
3354         * lib/tmpdir.c: Likewise.
3355
3356         * lib/TODO: Remove; this belongs only in coreutils.
3357
3358 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3359
3360         Add copyright notices to long-enough files that lack them, since
3361         otherwise the files aren't clearly free.  Use the same notice that
3362         getdate.texi already uses.
3363         * doc/alloca-opt.texi: Add copyright notice.
3364         * doc/alloca.texi: Likewise.
3365         * doc/ctime.texi: Likewise.
3366         * doc/functions.texi: Likewise.
3367         * doc/gcd.texi: Likewise.
3368         * doc/gnulib-tool.texi: Likewise.
3369         * doc/inet_ntoa.texi: Likewise.
3370         * doc/visibility.texi: Likewise.
3371
3372         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
3373         * doc/quote.texi: Add copyright notice.
3374
3375         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
3376         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
3377         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
3378         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
3379         is now obsolete, and give a pointer to the Sun list.
3380         Add copyright notice.
3381
3382 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3383
3384         * config/srclistvars.sh: Add copyright notice.
3385
3386 2006-08-14  Eric Blake  <ebb9@byu.net>
3387
3388         Import the following change from libc:
3389
3390         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
3391
3392         Upstream bug 2997.
3393         * lib/misc/error.c: Add space between program name and message if file
3394         name is missing.
3395
3396 2006-08-12  Karl Berry  <karl@gnu.org>
3397
3398         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
3399         remove, these originate in gnulib now.
3400
3401 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3402
3403         * doc/Makefile (standards.info standards.html standards.dvi):
3404         Also depend on make-stds.texi.
3405
3406 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3407
3408         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
3409         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
3410
3411         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
3412         in wchar_t.  Problem reported by Eric Blake.
3413
3414         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
3415         LEN is smaller than SIZE.  Suggested by Bruno Haible.
3416         Also, help the compiler to keep LEN in a register.
3417
3418 2006-08-11  Eric Blake  <ebb9@byu.net>
3419
3420         * users.txt: Sort.  Add tar.
3421
3422 2006-08-11  Bruno Haible  <bruno@clisp.org>
3423
3424         * users.txt: New file.
3425
3426 2006-08-11  Bruno Haible  <bruno@clisp.org>
3427
3428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
3429         before <wchar.h>. Needed for OSF/1 and BSD/OS.
3430
3431 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3432
3433         * modules/snprintf (Depends-on): Remove minmax.
3434         (Maintainer): Add self and Bruno.
3435
3436 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3437
3438         * lib/.cppi-disable: Add snprintf.h, socket_.h.
3439         * lib/snprintf.c: Include <errno.h> and <limits.h>.
3440         (EOVERFLOW): Define if the system does not.
3441         Do not include "minmax.h"; it wasn't used.
3442         (snprintf): Don't assume size_t promotes to an unsigned type.
3443         Fix bug when generated string was too long for the buffer: the
3444         buffer's contents are supposed to be the initial prefix of the
3445         output.  Don't assume vasnprintf returns EOVERFLOW if the size
3446         exceeds INT_MAX; do the check ourselves.
3447
3448         Import the following changes from libc:
3449
3450         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
3451
3452         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
3453         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
3454         set wc to the byte which couldn't be converted.
3455         (re_string_reconstruct): Don't clear valid_raw_len before calling
3456         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
3457         tip_context using re_string_context_at.
3458
3459         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
3460
3461         * lib/posix/regex.h: g++ still cannot handled [restrict].
3462
3463         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
3464
3465         * lib/posix/regex.h: Remove special handling for VMS.
3466
3467 2006-08-10  Jim Meyering  <jim@meyering.net>
3468
3469         * modules/same-inode: New module.
3470         * modules/dev-ino: New module.
3471         * modules/cycle-check: Depend on these modules, rather than simply
3472         including their .h files.
3473         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
3474         required via m4/cycle-check.m4.
3475         * modules/same: Depend on new same-inode module, rather than
3476         including same-inode.h.
3477         * modules/chdir-safer: New file.
3478
3479         * modules/chown (Depends-on): Add stat-macros.
3480
3481 2006-08-10  Jim Meyering  <jim@meyering.net>
3482
3483         * m4/cycle-check.m4: New file.
3484         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
3485         * m4/dev-ino.m4, same-inode.m4: New files.
3486
3487 2006-08-10  Eric Blake  <ebb9@byu.net>
3488
3489         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
3490         in from original proposal.
3491
3492 2006-08-10  Eric Blake  <ebb9@byu.net>
3493         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3494
3495         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
3496         namespace.
3497
3498 2006-08-10  Bruno Haible  <bruno@clisp.org>
3499
3500         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
3501         as well.
3502
3503 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3504
3505         Sync from coreutils.
3506
3507         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
3508
3509         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
3510         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
3511
3512 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3513
3514         * modules/restrict: Remove; no longer needed now that we assume
3515         Autoconf 2.59 or later.
3516         * MODULES.html.sh: Remove 'restrict'.
3517         * modules/argp (Depends-on): Remove 'restrict'.
3518         * modules/base64 (Depends-on): Likewise.
3519         * modules/gc (Depends-on): Likewise.
3520         * modules/getaddrinfo (Depends-on): Likewise.
3521         * modules/glob (Depends-on): Likewise.
3522         * modules/inet_ntop (Depends-on): Likewise.
3523         * modules/inet_pton (Depends-on): Likewise.
3524         * modules/memxor (Depends-on): Likewise.
3525         * modules/regex (Depends-on): Likewise.
3526         * modules/strtok_r (Depends-on): Likewise.
3527         * modules/time_r (Depends-on): Likewise.
3528
3529 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3530
3531         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
3532         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
3533         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
3534         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
3535         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3536         * m4/memxor.m4 (gl_MEMXOR): Likewise.
3537         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
3538         gl_C_RESTRICT replaced by AC_C_RESTRICT.
3539
3540         Merge from coreutils.
3541         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
3542         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
3543         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3544         * m4/time_r.m4 (gl_TIME_R): Likewise.
3545
3546 2006-08-09  Karl Berry  <karl@gnu.org>
3547
3548         * config/srclist.txt: no more gettext-tools, per Bruno.
3549
3550 2006-08-08  Eric Blake  <ebb9@byu.net>
3551
3552         * modules/verror: New module.
3553         * MODULES.html.sh: Document it.
3554
3555 2006-08-08  Eric Blake  <ebb9@byu.net>
3556
3557         * lib/verror.h, verror.c: New files.
3558
3559 2006-08-08  Eric Blake  <ebb9@byu.net>
3560
3561         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
3562         verror_at_line output complies with GNU Coding Standards even when
3563         file is NULL.
3564
3565 2006-08-07  Bruno Haible  <bruno@clisp.org>
3566
3567         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
3568         versions of AIX.
3569         Reported by Ralf Wildenhues.
3570
3571 2006-08-07  Bruno Haible  <bruno@clisp.org>
3572
3573         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
3574         in an AC_DEFUN. Needed so that the autoconf snippets can use
3575         AC_REQUIRE.
3576
3577 2006-08-06  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3578
3579         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3580         Initialize pkgdata_DATA.
3581         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
3582         overriding it.
3583
3584 2006-08-06  Eric Blake  <ebb9@byu.net>
3585
3586         * lib/error.h: Fold in some upstream changes from glibc.
3587         * lib/error.c: Likewise.
3588
3589 2006-08-04  Bruno Haible  <bruno@clisp.org>
3590
3591         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3592         Make the mostlyclean-local rule depend on mostlyclean-generic.
3593         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
3594
3595 2006-07-31  Bruno Haible  <bruno@clisp.org>
3596
3597         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
3598         <stdlib.h>, <string.h>.
3599
3600 2006-07-30  Bruno Haible  <bruno@clisp.org>
3601
3602         * modules/readlink (License): Change to LGPL.
3603
3604 2006-07-30  Bruno Haible  <bruno@clisp.org>
3605
3606         * modules/javaversion (Makefile.am): Distribute javaversion.java and
3607         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
3608         set PKGDATADIR to point to it.
3609
3610 2006-07-30  Bruno Haible  <bruno@clisp.org>
3611
3612         * modules/csharpexec (configure.ac): Comment out macro invocation.
3613         * modules/javaexec (configure.ac): Likewise.
3614         * modules/javacomp-script (configure.ac): Likewise.
3615
3616         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
3617
3618 2006-07-30  Bruno Haible  <bruno@clisp.org>
3619
3620         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
3621         linked-list.
3622
3623 2006-07-30  Bruno Haible  <bruno@clisp.org>
3624
3625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
3626
3627 2006-07-30  Bruno Haible  <bruno@clisp.org>
3628
3629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3630         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
3631         get removed.
3632
3633 2006-07-29  Bruno Haible  <bruno@clisp.org>
3634
3635         Make it possible for gnulib-tool to work with locally modified or
3636         augmented gnulib repositories.
3637         * gnulib-tool (func_usage): Document --local-dir option.
3638         (local_gnulib_dir): New variable.
3639         Handle --local-dir option.
3640         (func_lookup_file): New function.
3641         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
3642         (func_get_description, func_get_filelist, func_get_description,
3643         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
3644         func_get_automake_snippet, func_get_include_directive,
3645         func_get_license, func_get_maintainer): Use func_lookup_file.
3646         (func_import, func_create_testdir): Use func_lookup_file.
3647
3648 2006-07-29  Bruno Haible  <bruno@clisp.org>
3649
3650         * modules/setenv (Depends-on): Add unistd.
3651
3652 2006-07-29  Bruno Haible  <bruno@clisp.org>
3653
3654         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
3655
3656 2006-07-29  Bruno Haible  <bruno@clisp.org>
3657
3658         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
3659
3660 2006-07-29  Bruno Haible  <bruno@clisp.org>
3661
3662         * gnulib-tool (import, update): If there is no Makefile.am, look at
3663         aclocal.m4, instead of bailing out.
3664
3665 2006-07-29  Bruno Haible  <bruno@clisp.org>
3666
3667         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
3668         Categorize the options by when they are useful.
3669
3670 2006-07-29  Bruno Haible  <bruno@clisp.org>
3671
3672         * gnulib-tool (func_usage): Document option --no-libtool.
3673         Handle option --no-libtool.
3674         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
3675         for changed semantics of $libtool variable.
3676         (func_import): Likewise. If libtool is not used, show this through
3677         an option --no-libtool.
3678         (func_create_testdir): Update.
3679
3680 2006-07-29  Bruno Haible  <bruno@clisp.org>
3681
3682         * gnulib-tool (func_import): Extend error message about missing
3683         --doc-base.
3684
3685 2006-07-29  Bruno Haible  <bruno@clisp.org>
3686
3687         * gnulib-tool (func_import): Don't create the $docbase directory if
3688         there is no file to store there.
3689
3690 2006-07-29  Bruno Haible  <bruno@clisp.org>
3691
3692         * gnulib-tool (autoconf_minversion): If a --dir option is given and
3693         relevant, look for configure.ac there, not in the current directory.
3694         Also use a simple search for AC_PREREQ, not "autoconf --trace".
3695
3696 2006-07-29  Bruno Haible  <bruno@clisp.org>
3697
3698         * gnulib-tool (SORT): New variable.
3699         (func_usage): Undocument --assume-autoconf option.
3700         Remove --assume-autoconf option handling.
3701         (autoconf_minversion): Determine from the contents of configure.ac.
3702         (func_import): Remove autoconf_minversion handling.
3703         Suggested by Eric Blake.
3704
3705 2006-07-29  Bruno Haible  <bruno@clisp.org>
3706
3707         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
3708
3709 2006-07-29  Bruno Haible  <bruno@clisp.org>
3710
3711         * config/srclist.txt (*setenv.[ch]): Remove rules.
3712
3713 2006-07-28  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3714
3715         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
3716
3717 2006-07-28  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3718
3719         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
3720         arpa/inet.h.
3721
3722 2006-07-28  Simon Josefsson  <jas@extundo.com>
3723
3724         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
3725         * modules/inet_pton (Depends-on): Likewise.
3726
3727 2006-07-28  Simon Josefsson  <jas@extundo.com>
3728
3729         * m4/netinet_in_h.m4: New file.
3730
3731 2006-07-28  Simon Josefsson  <jas@extundo.com>
3732
3733         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
3734         #include's.
3735
3736 2006-07-28  Simon Josefsson  <jas@extundo.com>
3737
3738         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
3739         #include's.
3740
3741 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
3742
3743         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
3744         setgid on directories only if they set these bits.
3745         * lib/modechange.h: Remove obsolete comment about masks.
3746
3747 2006-07-28  Eric Blake  <ebb9@byu.net>
3748
3749         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
3750         macro expansion.
3751
3752 2006-07-28  Bruno Haible <bruno@clisp.org>
3753
3754         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
3755
3756 2006-07-28  Bruno Haible  <bruno@clisp.org>
3757
3758         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
3759
3760 2006-07-28  Bruno Haible  <bruno@clisp.org>
3761
3762         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3763         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3764         Define fallbacks.
3765         Avoids link error on FreeBSD 4.x.
3766         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3767
3768         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
3769         encoding.
3770         * lib/mbswidth.c (iswcntrl): Likewise.
3771
3772 2006-07-27  Bruno Haible  <bruno@clisp.org>
3773
3774         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
3775         test.
3776
3777 2006-07-27  Bruno Haible  <bruno@clisp.org>
3778
3779         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
3780         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
3781         defined.
3782
3783 2006-07-26  Eric Blake  <ebb9@byu.net>
3784
3785         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
3786
3787 2006-07-26  Eric Blake  <ebb9@byu.net>
3788
3789         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
3790         like mingw that lack mkstemp.
3791         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
3792         avoid compilation warning on mingw.
3793
3794 2006-07-26  Bruno Haible  <bruno@clisp.org>
3795
3796         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
3797         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
3798         INT_FAST*_MIN, INTPTR_MIN.
3799
3800 2006-07-25  Bruno Haible  <bruno@clisp.org>
3801
3802         * modules/version-etc (Depends-on): Add stdarg.
3803
3804 2006-07-25  Bruno Haible  <bruno@clisp.org>
3805
3806         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
3807         complex commands.
3808
3809 2006-07-25  Bruno Haible  <bruno@clisp.org>
3810
3811         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
3812         defined in <stdarg.h> or config.h.
3813
3814 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3815
3816         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
3817         (gl_STDIO_SAFER): Remove.
3818
3819 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3820
3821         * MODULES.html.sh (File stream based Input/Output):
3822         Add fopen-safer, tmpfile-safer; remove stdio-safer.
3823         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
3824         * modules/fopen-safer, modules/tmpfile-safer: New files.
3825         * modules/stdio-safer: Remove.
3826
3827 2006-07-24  Bruno Haible  <bruno@clisp.org>
3828
3829         * modules/tmpdir: New file.
3830         * MODULES.html.sh (File system functions): Add it.
3831
3832 2006-07-24  Bruno Haible  <bruno@clisp.org>
3833
3834         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
3835         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
3836
3837 2006-07-24  Bruno Haible  <bruno@clisp.org>
3838
3839         * modules/clean-temp: New file.
3840
3841 2006-07-24  Bruno Haible  <bruno@clisp.org>
3842
3843         * m4/tmpdir.m4: New file, from GNU gettext.
3844
3845 2006-07-24  Bruno Haible  <bruno@clisp.org>
3846
3847         * lib/tmpdir.h: New file, from GNU gettext.
3848         * lib/tmpdir.c: New file, from GNU gettext.
3849
3850 2006-07-24  Bruno Haible  <bruno@clisp.org>
3851
3852         * lib/clean-temp.h: New file, from GNU gettext.
3853         * lib/clean-temp.c: New file, from GNU gettext.
3854
3855 2006-07-23  Eric Blake  <ebb9@byu.net>
3856
3857         * modules/stdio-safer (Files): Add tmpfile-safer.c.
3858         (Depends-on): Add binary-io.
3859
3860 2006-07-23  Eric Blake  <ebb9@byu.net>
3861
3862         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
3863
3864 2006-07-23  Eric Blake  <ebb9@byu.net>
3865
3866         * lib/tmpfile-safer.c: New file.
3867         * lib/stdio-safer.h (fopen_safer): Add prototype.
3868         * lib/stdio--.h (tmpfile): Make safer.
3869
3870 2006-07-23  Bruno Haible  <bruno@clisp.org>
3871
3872         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
3873         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
3874         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
3875         gl_linked_remove_at): Use it.
3876
3877 2006-07-22  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3878         and Simon Josefsson <jas@extundo.com>
3879
3880         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
3881
3882         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
3883
3884 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3885
3886         * modules/close-stream: New file.
3887         * modules/closeout (Description): Make it clear that it exits
3888         with a diagnostic on error.
3889         (Depends-on): Add close-stream.  Remove fpending, stdbool.
3890         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
3891
3892 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3893
3894         * m4/close-stream.m4: New file.
3895
3896 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3897
3898         * lib/close-stream.c, close-stream.h: New files.
3899
3900 2006-07-22  Bruno Haible  <bruno@clisp.org>
3901
3902         Merge from GNU gettext 0.15.
3903
3904         2006-05-01  Bruno Haible  <bruno@clisp.org>
3905
3906                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
3907
3908         2006-07-22  Bruno Haible  <bruno@clisp.org>
3909
3910                 * modules/javaversion: New file.
3911                 * MODULES.html.sh (Java): Add javaversion.
3912
3913         2006-03-12  Bruno Haible  <bruno@clisp.org>
3914
3915                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
3916
3917         2005-12-04  Bruno Haible  <bruno@clisp.org>
3918
3919                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
3920                 (untested).
3921
3922         2006-06-21  Bruno Haible  <bruno@clisp.org>
3923
3924                 Avoid warnings from recent versions of mcs.
3925                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
3926                 -o, -L, -r any more. Use options documented since mcs-1.0
3927                 instead. Similarly for -g.
3928
3929         2005-12-04  Bruno Haible  <bruno@clisp.org>
3930
3931                 * build-aux/csharpcomp.sh.in: Suffix for resources is
3932                 .resources, not .resource.
3933
3934         2005-07-09  Bruno Haible  <bruno@clisp.org>
3935
3936                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
3937                 add a .dll suffix.
3938                 Reported by Mark Junker <mjscod@gmx.de>.
3939
3940         2006-07-22  Bruno Haible  <bruno@clisp.org>
3941
3942                 * modules/gettext: Upgrade to gettext-0.15.
3943                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
3944                 m4/visibility.m4.
3945                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
3946
3947 2006-07-22  Bruno Haible  <bruno@clisp.org>
3948
3949         Merge from GNU gettext 0.15.
3950
3951         2006-03-25  Bruno Haible  <bruno@clisp.org>
3952
3953                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
3954
3955         2006-07-21  Bruno Haible  <bruno@clisp.org>
3956
3957                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
3958                 "1.1".
3959
3960         2006-05-09  Bruno Haible  <bruno@clisp.org>
3961
3962                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
3963                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
3964                 for the conftestver execution.
3965
3966         2006-05-01  Bruno Haible  <bruno@clisp.org>
3967
3968                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
3969                 optional target-version argument. Verify that the compiler
3970                 groks source of the specified source-version, or add -source
3971                 option as necessary. Verify that the compiler produces
3972                 bytecode in the specified target-version, or add -target and
3973                 -source options as necessary. Make the result of the test
3974                 available as variable CONF_JAVAC. Also log error output in
3975                 config.log.
3976
3977         2006-03-11  Bruno Haible  <bruno@clisp.org>
3978
3979                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
3980
3981         2006-05-09  Bruno Haible  <bruno@clisp.org>
3982
3983                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
3984                 CLASSPATH_SEPARATOR to a semicolon.
3985
3986         2006-03-12  Bruno Haible  <bruno@clisp.org>
3987
3988                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
3989                 available as variable CONF_JAVA, for subsequent autoconf
3990                 tests. Also log error output in config.log.
3991
3992         2006-07-19  Bruno Haible  <bruno@clisp.org>
3993
3994                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
3995                 that getline works on glibc2 systems. Needed to avoid trouble
3996                 in relocatable.c.
3997                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
3998
3999         2005-12-04  Bruno Haible  <bruno@clisp.org>
4000
4001                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
4002                 launcher (untested).
4003
4004         2005-12-04  Bruno Haible  <bruno@clisp.org>
4005
4006                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
4007
4008         2006-07-22  Bruno Haible  <bruno@clisp.org>
4009
4010                 * gettext.m4: Update from GNU gettext-0.15.
4011                 * nls.m4: Likewise.
4012                 * po.m4: Likewise.
4013                 * inttypes-pri.m4: Likewise.
4014                 * inttypes-h.m4: Renamed from inttypes.m4.
4015                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
4016
4017 2006-07-22  Bruno Haible  <bruno@clisp.org>
4018
4019         Merge from GNU gettext 0.15.
4020
4021         2005-07-05  Bruno Haible  <bruno@clisp.org>
4022
4023                 * printf-args.c (printf_fetchargs): Work around broken
4024                 definition of wint_t on mingw.
4025
4026         2005-02-12  Bruno Haible  <bruno@clisp.org>
4027
4028                 * xallocsa.h: Add extern "C" for C++.
4029
4030         2006-05-17  Bruno Haible  <bruno@clisp.org>
4031
4032                 Cygwin portability.
4033                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
4034
4035         2006-04-30  Bruno Haible  <bruno@clisp.org>
4036
4037                 * progreloc.c: Include <mach-o/dyld.h> if available.
4038                 (find_executable): Use _NSGetExecutablePath when possible.
4039
4040         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
4041
4042                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
4043                 function.
4044
4045         2005-12-29  Bruno Haible  <bruno@clisp.org>
4046
4047                 * progreloc.c (set_program_name_and_installdir): Fix
4048                 compilation error.
4049
4050         2005-12-04  Bruno Haible  <bruno@clisp.org>
4051
4052                 Cygwin portability.
4053                 * progreloc.c: Include <windows.h> also on Cygwin.
4054                 (find_executable): Add support for Cygwin.
4055                 (set_program_name_and_installdir): Handle also platforms with
4056                 nonempty EXEEXT.
4057
4058         2006-07-11  Bruno Haible  <bruno@clisp.org>
4059
4060                 * javacomp.c: Fix a comment.
4061                 Reported by Jim Meyering.
4062
4063         2006-04-30  Bruno Haible  <bruno@clisp.org>
4064
4065                 * javacomp.h (compile_java_class): Add source_version,
4066                 target_version arguments.
4067                 * javacomp.c: Rewritten to choose only a compiler that
4068                 respects the specified source_version and target_version.
4069
4070         2006-06-27  Bruno Haible  <bruno@clisp.org>
4071
4072                 Assume correct S_ISDIR macro.
4073                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
4074
4075         2006-07-22  Bruno Haible  <bruno@clisp.org>
4076
4077                 * javaversion.h: New file, from GNU gettext.
4078                 * javaversion.c: New file, from GNU gettext.
4079                 * javaversion.java: New file, from GNU gettext.
4080                 * javaversion.class: New file, from GNU gettext.
4081
4082         2006-05-17  Bruno Haible  <bruno@clisp.org>
4083
4084                 Cygwin portability.
4085                 * javaexec.c (execute_java_class): Test for jview program
4086                 also on Cygwin.
4087
4088         2006-04-09  Bruno Haible  <bruno@clisp.org>
4089
4090                 * fatal-signal.c: Don't include string.h.
4091                 (at_fatal_signal): Use a copying loop instead of memcpy.
4092
4093         2005-12-04  Bruno Haible  <bruno@clisp.org>
4094
4095                 * csharpexec.c: Add support for 'clix' launcher (untested).
4096                 (execute_csharp_using_sscli): New function.
4097                 (execute_csharp_program): Call it.
4098
4099         2006-06-21  Bruno Haible  <bruno@clisp.org>
4100
4101                 Avoid warnings from recent versions of mcs.
4102                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
4103                 -o, -L, -r any more. Use options documented since mcs-1.0
4104                 instead. Similarly for -g.
4105
4106         2005-07-09  Bruno Haible  <bruno@clisp.org>
4107
4108                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
4109                 add a .dll suffix.
4110                 Reported by Mark Junker <mjscod@gmx.de>.
4111
4112         2006-06-17  Bruno Haible  <bruno@clisp.org>
4113
4114                 * config.charset: Update for NetBSD 3.0.
4115
4116         2006-05-17  Bruno Haible  <bruno@clisp.org>
4117
4118                 Cygwin portability.
4119                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
4120
4121         2006-05-16  Bruno Haible  <bruno@clisp.org>
4122
4123                 * localcharset.c [CYGWIN]: Include <windows.h>.
4124                 (get_charset_aliases): For Cygwin, return the same CPxxx
4125                 aliases list as under WIN32.
4126                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
4127                 the environment variables. Fall back to GetACP().
4128
4129         2006-04-05  Bruno Haible  <bruno@clisp.org>
4130
4131                 * config.charset: Update Juan Manuel Guerrero's address.
4132
4133         2005-02-12  Bruno Haible  <bruno@clisp.org>
4134
4135                 * allocsa.h: Add extern "C" for C++.
4136
4137         2005-02-10  Bruno Haible  <bruno@clisp.org>
4138
4139                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
4140                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
4141
4142         2006-07-22  Bruno Haible  <bruno@clisp.org>
4143
4144                 * gettext.h: Update to GNU gettext-0.15.
4145
4146 2006-07-22  Bruno Haible  <bruno@clisp.org>
4147
4148         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
4149         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
4150         lib-prefix.m4, longdouble.m4, ssize_t.m4.
4151
4152 2006-07-21  Eric Blake  <ebb9@byu.net>
4153
4154         * modules/stdlib-safer: New file.
4155         * MODULES.html.sh (File stream based Input/Output): Add
4156         stdlib-safer.
4157
4158 2006-07-21  Eric Blake  <ebb9@byu.net>
4159
4160         * lib/stdlib-safer.h: New file from coreutils, required by
4161         stdlib--.h.
4162
4163 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4164
4165         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
4166
4167 2006-07-20  Bruno Haible  <bruno@clisp.org>
4168
4169         * gnulib-tool: Recognize new option --assume-autoconf.
4170         (autoconf_minversion): New variable.
4171         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
4172
4173 2006-07-20  Bruno Haible  <bruno@clisp.org>
4174
4175         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
4176
4177 2006-07-19  Derek R. Price  <derek@ximbiot.com>
4178
4179         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
4180         Reindent and repaginate.
4181
4182 2006-07-19  Derek Price  <derek@ximbiot.com>
4183
4184         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
4185         Correct grammar.
4186
4187 2006-07-17  Bruno Haible  <bruno@clisp.org>
4188
4189         * modules/list: New file.
4190         * modules/array-list: New file.
4191         * modules/carray-list, modules/carray-list-tests: New files.
4192         * modules/linked-list, modules/linked-list-tests: New files.
4193         * modules/avltree-list, modules/avltree-list-tests: New files.
4194         * modules/rbtree-list, modules/rbtree-list-tests: New files.
4195         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
4196         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
4197         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
4198         * modules/oset: New file.
4199         * modules/array-oset: New file.
4200         * modules/avltree-oset, modules/avltree-oset-tests: New files.
4201         * modules/rbtree-oset, rbtree-oset-tests: New files.
4202         * tests/test-carray_list.c: New file.
4203         * tests/test-linked_list.c: New file.
4204         * tests/test-avltree_list.c: New file.
4205         * tests/test-rbtree_list.c: New file.
4206         * tests/test-linkedhash_list.c: New file.
4207         * tests/test-avltreehash_list.c: New file.
4208         * tests/test-rbtreehash_list.c: New file.
4209         * tests/test-avltree_oset.c: New file.
4210         * tests/test-rbtree_oset.c: New file.
4211         * MODULES.html.sh (Container data structures): New section.
4212
4213 2006-07-17  Bruno Haible  <bruno@clisp.org>
4214
4215         * m4/gl_list.m4: New file.
4216
4217 2006-07-17  Bruno Haible  <bruno@clisp.org>
4218
4219         * lib/gl_list.h: New file.
4220         * lib/gl_list.c: New file.
4221         * lib/gl_array_list.h: New file.
4222         * lib/gl_array_list.c: New file.
4223         * lib/gl_carray_list.h: New file.
4224         * lib/gl_carray_list.c: New file.
4225         * lib/gl_linked_list.h: New file.
4226         * lib/gl_linked_list.c: New file.
4227         * lib/gl_anylinked_list1.h: New file.
4228         * lib/gl_anylinked_list2.h: New file.
4229         * lib/gl_avltree_list.h: New file.
4230         * lib/gl_avltree_list.c: New file.
4231         * lib/gl_anyavltree_list1.h: New file.
4232         * lib/gl_anyavltree_list2.h: New file.
4233         * lib/gl_rbtree_list.h: New file.
4234         * lib/gl_rbtree_list.c: New file.
4235         * lib/gl_anyrbtree_list1.h: New file.
4236         * lib/gl_anyrbtree_list2.h: New file.
4237         * lib/gl_anytree_list1.h: New file.
4238         * lib/gl_anytree_list2.h: New file.
4239         * lib/gl_linkedhash_list.h: New file.
4240         * lib/gl_linkedhash_list.c: New file.
4241         * lib/gl_anyhash_list1.h: New file.
4242         * lib/gl_anyhash_list2.h: New file.
4243         * lib/gl_avltreehash_list.h: New file.
4244         * lib/gl_avltreehash_list.c: New file.
4245         * lib/gl_rbtreehash_list.h: New file.
4246         * lib/gl_rbtreehash_list.c: New file.
4247         * lib/gl_anytreehash_list1.h: New file.
4248         * lib/gl_anytreehash_list2.h: New file.
4249
4250         * lib/gl_oset.h: New file.
4251         * lib/gl_oset.c: New file.
4252         * lib/gl_array_oset.h: New file.
4253         * lib/gl_array_oset.c: New file.
4254         * lib/gl_avltree_oset.h: New file.
4255         * lib/gl_avltree_oset.c: New file.
4256         * lib/gl_rbtree_oset.h: New file.
4257         * lib/gl_rbtree_oset.c: New file.
4258         * lib/gl_anytree_oset.h: New file.
4259
4260 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4261
4262         * m4/mkancesdirs.m4: New file.
4263         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
4264         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
4265         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
4266         it.
4267
4268 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4269
4270         * lib/dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h:
4271         New files.
4272         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
4273         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
4274         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
4275         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
4276         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
4277         callers changed.  Revamp internals significantly, by not
4278         attempting to create directories that are temporarily more
4279         permissive than the final results.  Do not attempt to use
4280         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
4281         This removes some race conditions, fixes some bugs, and simplifies
4282         things.  Use new dirchownmod function to do owner and mode changes.
4283         * lib/mkdir-p.h: Likewise.
4284         * lib/modechange.c (octal_to_mode): New function.
4285         (struct mode_change): New member mentioned.
4286         (make_node_op_equals): New arg mentioned.  All callers changed.
4287         (mode_compile): Keep track of which mode bits the user has explicitly
4288         mentioned.
4289         (mode_adjust): New arg DIR, so that we implement the X op correctly.
4290         New arg PMODE_BITS, to keep track of which mode bits the user
4291         mentioned; it treats S_ISUID and S_ISGID speciall.
4292         All callers changed.
4293         * lib/modechange.h: Likewise.
4294
4295 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4296
4297         * MODULES.html.sh: Add mkancestors.
4298         * modules/mkancesdirs: New module.
4299         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
4300         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
4301         The chdir-safer and afs files are now orphans; I'll remove them
4302         unless someone speaks up.
4303         Add lib/dirchownmod.c, lib/dirchownmod.h.
4304         (Depends-on): Remove alloca, chown, save-cwd, dirname.
4305         Add lchown, mkancesdirs.
4306         (Maintainer): Add self.
4307
4308 2006-07-15  Karl Berry  <karl@gnu.org>
4309
4310         * gnulib-tool: help message wording/arrangement.
4311
4312 2006-07-14  Simon Josefsson  <jas@extundo.com>
4313
4314         * doc/gnulib.texi (Libtool and Windows): New section.
4315
4316 2006-07-12  Simon Josefsson  <jas@extundo.com>
4317
4318         * modules/gendocs (License): Fix license, approved by Karl.
4319
4320 2006-07-12  Eric Blake  <ebb9@byu.net>
4321
4322         * MODULES.html.sh: Add gendocs.
4323
4324 2006-07-11  Eric Blake  <ebb9@byu.net>
4325
4326         * modules/fdl: New module, to install doc/fdl.texi.
4327         * MODULES.html.sh: Add new section for documentation modules.
4328         * gnulib-tool: Avoid space-tab.
4329         (--doc-base): New option, to manage files from doc.
4330
4331 2006-07-11  Eric Blake  <ebb9@byu.net>
4332
4333         * m4/absolute-header.m4: Fix comments to match recent change.
4334
4335 2006-07-11  Eric Blake  <ebb9@byu.net>
4336
4337         * gnulib-tool: List --doc-base before --tests-base.
4338
4339 2006-07-11  Derek R. Price  <derek@ximbiot.com>
4340
4341         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
4342
4343 2006-07-11  Bruno Haible  <bruno@clisp.org>
4344
4345         * README: Mention where to put documentation.
4346
4347 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4348
4349         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
4350
4351 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4352
4353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
4354         to stdint.m4.
4355
4356 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4357
4358         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
4359         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
4360         "no/such/file/stdint.h" when there is no such file, so that
4361         the resulting C code can be parsed by dodgy compilers.
4362         Problems reported by Bob Proulx.
4363
4364 2006-07-10  Derek R. Price  <derek@ximbiot.com>
4365
4366         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
4367         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
4368         macros into the GNU _D_EXACT_NAMLEN.
4369         * lib/savedir.c:  Likewise.
4370         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
4371
4372 2006-07-10  Derek R. Price  <derek@ximbiot.com>
4373         and Paul Eggert  <eggert@cs.ucla.edu>
4374
4375         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
4376         * m4/savedir.m4:
4377         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
4378         macros into the GNU _D_EXACT_NAMLEN.
4379
4380 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4381
4382         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
4383         around the absolute name, to work around a problem with the HP-UX
4384         11.23 native C compiler, reported by Bob Proulx.
4385
4386 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4387
4388         * doc/maintain.texi, make-stds.texi: Sync from
4389         <http://savannah.gnu.org/projects/gnustandards>.
4390
4391 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4392
4393         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
4394
4395 2006-07-09  Jim Meyering  <jim@meyering.net>
4396
4397         * m4/glob.m4: Remove a doubled word in a comment.
4398
4399 2006-07-09  Jim Meyering  <jim@meyering.net>
4400
4401         * lib/argp-pv.c: Remove a doubled word in a comment.
4402         * lib/check-version.c (check_version): Likewise.
4403         * lib/javacomp.c (compile_java_class): Likewise.
4404
4405 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4406
4407         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
4408         for the benefit of people using Autoconf 2.60.  If you want to
4409         support older Autoconf versions you can copy m4/onceonly_2_57.m4
4410         (or m4/onceonly.m4, if pre-2.57) manually.
4411
4412 2006-07-08  Jim Meyering  <jim@meyering.net>
4413
4414         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
4415         comment.
4416         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
4417         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
4418         comment.
4419
4420 2006-07-08  Jim Meyering  <jim@meyering.net>
4421
4422         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
4423
4424 2006-07-07  Simon Josefsson  <jas@extundo.com>
4425
4426         * tests/test-crc.c: Change expected crc value, the test vector
4427         were probably computed using the old broken crc.c?
4428
4429 2006-07-06  Simon Josefsson  <jas@extundo.com>
4430
4431         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
4432         now the canonical place for the M4 file).
4433
4434         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
4435         from the sys_socket dependency now.
4436
4437         * modules/inet_pton (Files): Ditto.
4438
4439         * modules/inet_ntop (Files): Ditto.
4440
4441 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
4442
4443         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
4444         not gl_PREREQ_GETUSERSHELL.
4445
4446 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4447
4448         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
4449         with only one argument, for Autoconf 2.60.
4450         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
4451         expand to nothing, so add a shell command to avoid syntax error.
4452         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4453
4454 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4455
4456         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
4457
4458 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4459
4460         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
4461         no longer needed.  Check for isblank decl.
4462         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
4463         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
4464         of existence.
4465
4466 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4467
4468         * lib/getloadavg.c: Use __VMS, not VMS.
4469         * lib/getopt.c: Likewise.
4470         * lib/getpagesize.h: Likewise.
4471         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
4472         and probably does not work.
4473
4474 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4475
4476         * lib/.cppi-disable: Add wcwidth.
4477         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
4478         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
4479         (ISGRAPH): Remove.  All uses changed to isgraph.
4480         (FOLD) [!defined _LIBC]: Remove special case.
4481         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
4482         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
4483         HAVE_ISBLANK.
4484         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
4485         case.
4486
4487 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
4488
4489         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
4490         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
4491         brackets.  Other minor changes to suppress some compiler
4492         warnings.
4493
4494 2006-07-06  Derek R. Price  <derek@ximbiot.com>
4495         and Paul Eggert  <eggert@cs.ucla.edu>
4496
4497         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
4498         of invoking obsolescent AC_HEADER_DIRENT macro.
4499         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4500         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4501         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4502         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4503         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
4504         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4505         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
4506         * m4/readdir.m4: Remove; no longer needed.
4507
4508 2006-07-06  Derek R. Price  <derek@ximbiot.com>
4509         and Paul Eggert  <eggert@cs.ucla.edu>
4510
4511         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
4512         Don't worry about this obsolete case any more.
4513         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
4514         directories.
4515         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
4516         worry about this obsolete case any more.
4517         * lib/fts.c: Likewise.
4518         * lib/getcwd.c: Likewise.
4519         * lib/glob.h: Likewise.
4520         * lib/savedir.c: Likewise.
4521
4522 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4523
4524         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
4525         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
4526         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
4527         needed.
4528         All uses removed.
4529         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4530         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
4531         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
4532         needed.
4533         * m4/getdate.m4 (gl_GETDATE): Likewise.
4534         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
4535         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
4536         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4537         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4538         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
4539         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
4540         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
4541         needed.
4542
4543 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4544
4545         * lib/memcasecmp.c: Include <limits.h>.
4546         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
4547         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
4548         Don't assume isdigit succeeds only on '0' through '9'.
4549
4550 2006-07-05  Eric Blake  <ebb9@byu.net>
4551
4552         * modules/getaddrinfo (Depends-on): Add snprintf.
4553
4554 2006-07-05  Eric Blake  <ebb9@byu.net>
4555
4556         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
4557         to avoid 'header present but could not be compiled' on cygwin.
4558
4559 2006-07-05  Eric Blake  <ebb9@byu.net>
4560
4561         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
4562         missing from netdb.h.
4563         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
4564
4565 2006-07-05  Derek R. Price  <derek@ximbiot.com>
4566
4567         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
4568         no longer needed.
4569         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
4570         * m4/getdate.m4 (gl_GETDATE): Likewise.
4571         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
4572         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
4573         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4574         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4575         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
4576
4577 2006-07-05  Derek R. Price  <derek@ximbiot.com>
4578
4579         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
4580         All uses of is_space replaced by isspace.
4581         * lib/exit.h: Don't talk about STDC_HEADERS.
4582         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
4583         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
4584         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
4585         replaced by isprint etc.
4586         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
4587         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
4588         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
4589         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
4590         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
4591         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
4592
4593 2006-07-05  Bruno Haible  <bruno@clisp.org>
4594
4595         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
4596         the function exists, before testing against AIX.
4597         Reported by Martin Lambers <marlam@marlam.de>.
4598
4599 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4600
4601         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
4602         From Mark D. Baushke.
4603
4604 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4605
4606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
4607         to the absolute name, not just one, to bypass Sun C 5.8's
4608         "warning: #include of /usr/include/... may be non-portable".
4609
4610 2006-07-04  Eric Blake  <ebb9@byu.net>
4611
4612         * modules/dirname-tests: New test module.
4613         * tests/test-dirname.c: New file, replacing dirname.c
4614         TEST_DIRNAME section that was recently deleted.
4615
4616 2006-07-04  Bruno Haible  <bruno@clisp.org>
4617
4618         Assume ANSI C header files and <ctype.h> functions.
4619         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
4620         (mbsnwidth): Use isprint, iscntrl instead.
4621
4622 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4623
4624         Merge from coreutils.
4625         * MODULES.html.sh: Add xstrtold.
4626         * modules/xstrtold: New file.
4627         * modules/cycle-check (Files): Add lib/same-inode.h.
4628         * modules/dirname (Files): Add m4/double-slash-root.m4.
4629         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
4630         * modules/mkdir-p (Files): Add lib/same-inode.h.
4631         * modules/same (Files): Add lib/same-inode.h.
4632
4633 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4634
4635         * m4/absolute-header.m4: Renamed from full-header-path.m4.
4636         This is to keep the terminology clean; POSIX talks about
4637         "absolute pathnames", not "full pathnames", but the GNU
4638         Coding Standards say to use "path" for something else;
4639         so use "absolute" to keep both sides happy.
4640         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
4641         Set gl_absolute_header, not gl_full_header_path.
4642         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
4643         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
4644         All uses changed.
4645
4646         Merge from coreutils.
4647
4648         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4649
4650         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
4651         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
4652         want to require the building of c-strtod.o.
4653         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
4654         needs -lm directly.
4655         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
4656
4657         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
4658
4659         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
4660         --as-needed option if available.  Problem reported by Albert Chin in
4661         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
4662         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
4663         cc merely issues a bunch of annoying warnings for --as-needed
4664         (this problem was reported by Bob Proulx).  Also, try linking with
4665         -lm to detect a bug in binutils 2.16 (this problem was reported
4666         by Ralf Wildenhues).
4667
4668         2006-06-18  Jim Meyering  <jim@meyering.net>
4669
4670         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
4671         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
4672         macro.
4673         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
4674         also check for glibc-2.4's abort-inducing bug.
4675
4676         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
4677         Low-probability clean-up should be to use rmdir to get rid of
4678         the just-created directory, not unlink.
4679
4680         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
4681         configure fail, and request a bug report to inform us about it.
4682         Add a comment that, barring reports to the contrary, in 2007 we'll
4683         assume ftruncate is universally available.
4684
4685         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
4686
4687         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
4688
4689         2006-03-12  Jim Meyering  <jim@meyering.net>
4690
4691         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
4692         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
4693         * m4/same.m4 (gl_SAME): Likewise.
4694         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
4695
4696         2006-03-11  Eric Blake  <ebb9@byu.net>
4697
4698         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
4699         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
4700         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
4701         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
4702
4703 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4704
4705         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
4706         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
4707         reported by Mark D. Baushke, one in
4708         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
4709
4710         Merge from coreutils.
4711
4712         * lib/.cppi-disable: Add stdint_.h.
4713         * lib/.cvsignore: Add stdint.h.
4714
4715         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4716
4717         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
4718         both double and long double versions.
4719         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
4720         * lib/xstrtold.c: New file.
4721         * lib/xstrtod.h (xstrtold): New decl.
4722
4723         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4724
4725         * lib/filemode.c (setst): Remove.
4726         (strmode): Rewrite to avoid setst.  This makes the code shorter,
4727         (arguably) clearer, and the generated code is a bit smaller on my
4728         Debian GNU/Linux stable x86 host.
4729
4730         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
4731
4732         * lib/filemode.c: Include "filemode.h" first, to test the interface.
4733         Assume that filemode.h includes sys/types.h and sys/stat.h.
4734         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
4735         (ftypelet): Reorder to put common cases first, for efficiency.
4736         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
4737         to do 'M'.
4738         (strmode): Renamed from mode_string, and now stores 12 bytes instead
4739         of 10, for compatibility with FreeBSD.  All callers changed.
4740         (filemodestring): Now stores 12 bytes instead of 10, and sets file
4741         types that can't be deduced solely from st_mode.  First arg is now a
4742         const pointer.
4743         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
4744         (strmode): Renamed from mode_string.
4745         (filemodestring): New decl.
4746         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
4747         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
4748         needed.
4749         (S_ISPORT, S_ISWHT): New macros, if not already defined.
4750
4751         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4752
4753         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
4754         fsusage.h now does that.  Include fsusage.h first, to test interface.
4755         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
4756         at most one method (the old code could have generated decls that
4757         didn't conform to C89, not that this was ever exercised).
4758         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
4759
4760         2006-03-19  Jim Meyering  <jim@meyering.net>
4761
4762         Work even in a chroot where d_ino values for entries in "/"
4763         don't match the stat.st_ino values for the same names.
4764         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
4765         number, iterate through all entries again, using lstat instead.
4766         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
4767         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
4768
4769         * lib/getcwd.c (__getcwd): Clarify a comment.
4770         Use memcpy in place of a call to strcpy.
4771
4772         2006-03-12  Jim Meyering  <jim@meyering.net>
4773
4774         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
4775         matches that of the current directory (which we're about to chdir ".."
4776         out of), then save the dev-ino of the parent, instead.
4777
4778         * lib/same-inode.h (SAME_INODE): New file/macro.
4779         * lib/chdir-safer.c (SAME_INODE): Remove definition.
4780         Include "same-inode.h", instead.
4781         * lib/same.c: Likewise.
4782         * lib/cycle-check.h: Include "same-inode.h".
4783         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
4784         * lib/cycle-check.c (SAME_INODE): Remove definition.
4785         * lib/root-dev-ino.h: Include "same-inode.h".
4786
4787         2006-03-11  Eric Blake  <ebb9@byu.net>
4788
4789         * lib/same.c (same_name): s/base_name/last_component/
4790         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
4791         * lib/filenamecat.c (file_name_concat): Likewise.
4792
4793         2006-03-11  Eric Blake  <ebb9@byu.net>,
4794                     Paul Eggert  <eggert@cs.ucla.edu>
4795
4796         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
4797         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
4798         drive prefix.
4799         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
4800         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
4801         (last_component): New method.
4802         * lib/dirname.c (dir_len): Determine when drive letters need a
4803         subsequent slash.  Preserve // when it is special.
4804         (dir_name): Don't append dot when drive letter is absolute.
4805         [TEST_DIRNAME]: Move into a full-blown gnulib test.
4806         * lib/basename.c (base_name): New semantics - malloc the result.
4807         Preserve // when it is special.  Preserve relative files that look
4808         like drive letters.
4809         (base_len): Preserve // when it is special.
4810         (last_component): New method, similar to old base_name semantics.
4811         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
4812         base_name.  Strip redundant slashes from ///.
4813
4814 2006-07-03  Jim Meyering  <jim@meyering.net>
4815
4816         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
4817         macro is used before the first cycle_check call.
4818
4819 2006-07-03  Eric Blake  <ebb9@byu.net>
4820
4821         * modules/dirname (Depends-on): Add xstrndup.
4822
4823 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4824
4825         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
4826         test cases, so that config.log is a bit easier to follow.
4827
4828 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
4831         both are 64 bits, since this seems to be the tradition, and this
4832         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
4833         we ever run into a host that prefers long long to long in this
4834         case, we'll need another configure-time test.  Problem reported by
4835         Jim Meyering.
4836
4837 2006-07-02  Eric Blake  <ebb9@byu.net>
4838
4839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
4840
4841 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4842
4843         * modules/inttypes (Depends-on): No longer depends on stdint.
4844         * modules/stdint (Description): Say more about assumptions.
4845         Say that the fast types might differ.  Say macros are used.
4846         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
4847         (Makefile.am): Revise list of substituted symbols to match
4848         new stdint.m4.
4849         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
4850         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
4851         * tests/test-stdint.c (verify_same_types)
4852         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
4853         the code conforms to C99/C89.
4854         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
4855         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
4856
4857 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4858
4859         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
4860         but fix a bug, by requiring at least 64 bits.
4861         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4862         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
4863         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
4864         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
4865
4866         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
4867         changes.  Make 2.59 a prerequisite.  Check and substitute for
4868         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
4869         inttypes.h.  Do not use special include files; just use the
4870         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
4871         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
4872         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
4873         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
4874         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
4875         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
4876         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
4877         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
4878         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
4879         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
4880         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
4881         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
4882         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
4883         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
4884         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
4885         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
4886         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
4887         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
4888         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
4889         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
4890         WINT_MAX.  Check for C99 conformance more strictly, by detecting
4891         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
4892         not check for things that C99 does not require, e.g., int8_t.  If
4893         a test isn't needed unless <stdint.h> isn't working, and is
4894         unlikely to be needed for any other reason, then don't do it
4895         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
4896         size_t, since we assume C89 freestanding at least.  Do not check
4897         for sig_atomic_t, wchar_t, or wint_t, since the code now does
4898         the right thing even if the types are not defined.  Instead use:
4899         (gl_STDINT_TYPE_PROPERTIES): New macro.
4900         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
4901         testing whether <sys/types.h> clashes, as Autoconf does this for
4902         us now.  All uses removed.
4903         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
4904         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
4905         (gl_CHECK_TYPE_SAME):
4906         Remove; no longer needed.
4907         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
4908         exists, since we'll return 0 anyway in that case.
4909         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
4910
4911 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4912
4913         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
4914         possible collision with system files.
4915         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
4916         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
4917         WCHAR_MIN and WCHAR_MAX in this case.
4918         (<stddef.h>): Do not include; no longer needed.
4919         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
4920         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
4921         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
4922         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
4923         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
4924         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
4925         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
4926         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
4927         !defined(__c99))]: Include in this case too, since it's harmless
4928         now.
4929         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
4930         dangerous to do so.
4931         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
4932         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
4933         (_STDINT_MIN, _STDINT_MAX): New macros.
4934         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
4935         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
4936         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
4937         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
4938         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
4939         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
4940         macros, not typedefs; this simplifies things quite a bit.
4941         Use long int for all types narrower than int64_t.
4942         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
4943         Define in terms of long long int or int64_t or long int,
4944         not int64_t or int32_t.  This saves some compile-time testing.
4945         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
4946         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
4947         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
4948         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
4949         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
4950         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
4951         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
4952         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4953         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
4954         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
4955         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
4956         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
4957         undef any previous version and define our own version, for
4958         simplicity and consistency with the new macros for types.
4959         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
4960         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
4961         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
4962         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
4963         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
4964         @WINT_T_SUFFIX@ to keep things simple here.
4965         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
4966         Simplify by assuming typical 8/16/32/64 host, since we're
4967         already doing that elsewhere anyway.
4968         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
4969         and assume long long int is 64 bits if available.  This
4970         speeds up 'configure'.
4971
4972 2006-07-01  Eric Blake  <ebb9@byu.net>
4973
4974         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
4975         Reported by Andreas Buening.
4976
4977 2006-07-01  Eric Blake  <ebb9@byu.net>
4978
4979         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
4980
4981 2006-06-30  Jim Hyslop <jhyslop@dreampossible.ca>  (tiny change)
4982
4983         * lib/getaddrinfo.c: fixed typo
4984
4985 2006-06-29  Jim Meyering  <jim@meyering.net>
4986
4987         * modules/strftime (Maintainer): Add my name, since with the
4988         FPRINTFTIME changes strftime.c has forked from glibc.
4989
4990 2006-06-29  Eric Blake  <ebb9@byu.net>
4991
4992         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
4993
4994 2006-06-29  Eric Blake  <ebb9@byu.net>
4995
4996         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
4997
4998 2006-06-29  Eric Blake  <ebb9@byu.net>
4999
5000         * lib/stat_.h: New file.
5001
5002 2006-06-29  Eric Blake  <ebb9@byu.net>
5003
5004         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
5005         unused static function.
5006
5007 2006-06-29  Eric Blake  <ebb9@byu.net>
5008
5009         * doc/functions.texi (Function Portability): Document missing lstat
5010         on mingw.
5011
5012 2006-06-29  Eric Blake  <ebb9@byu.net>
5013
5014         * MODULES.html.sh: Add sys_stat.
5015         * modules/sys_stat: New module.
5016         * modules/mkstemp (Depends-on): Add sys_stat.
5017
5018 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5019
5020         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
5021
5022 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5023
5024         * m4/c-bs-a.m4: Removed.
5025
5026 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5027
5028         * lib/strftime.c: Assume strftime() exists.
5029
5030 2006-06-29  Derek Price  <derek@ximbiot.com>
5031
5032         * modules/c-bs-a: Removed - \a is C89.
5033         * MODULES.html.sh: Remove c-bs-a.
5034
5035 2006-06-29  Bruno Haible  <bruno@clisp.org>
5036
5037         * modules/wcwidth (License): Change to LGPL.
5038
5039 2006-06-28  Simon Josefsson  <jas@extundo.com>
5040
5041         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
5042         on _WIN32.
5043
5044         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
5045         getnameinfo.
5046
5047 2006-06-28  Simon Josefsson  <jas@extundo.com>
5048
5049         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
5050
5051 2006-06-28  Simon Josefsson  <jas@extundo.com>
5052
5053         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
5054         functions there.  It will succeed on Windows XP, but on Windows
5055         2000 and (presumably) earlier, it will fail, and use the internal
5056         re-implementation.
5057         (use_win32_p): New function.
5058         (getaddrinfo): Use strtoul on servname, to support numeric ports.
5059         Support AI_NUMERICSERV to disable getservbyname.
5060         (getnameinfo): New function, only supports
5061         NI_NUMERICHOST|NI_NUMERICSERV for now.
5062
5063         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
5064         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
5065         getnameinfo.
5066
5067 2006-06-28  Eric Blake  <ebb9@byu.net>
5068
5069         * modules/wcwidth: New file.
5070         * modules/mbchar (Depends-on): Add wcwidth.
5071         * modules/mbswidth (Depends-on): Add wcwidth.
5072         * MODULES.html.sh: Add wcwidth.
5073
5074 2006-06-28  Eric Blake  <ebb9@byu.net>
5075
5076         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
5077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
5078
5079 2006-06-28  Eric Blake  <ebb9@byu.net>
5080
5081         * lib/xvasprintf.h: Fix comments.
5082
5083 2006-06-28  Eric Blake  <ebb9@byu.net>
5084
5085         * lib/mbchar.h (wcwidth): Include wcwidth.h.
5086         * lib/mbswidth.c (wcwidth): Move from here...
5087         * lib/wcwidth.h: ...to this new file.
5088
5089 2006-06-28  Derek R. Price  <derek@ximbiot.com>
5090
5091         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
5092
5093         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
5094         it's obsolete.
5095         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
5096
5097 2006-06-28  Derek R. Price  <derek@ximbiot.com>
5098
5099         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
5100         Autoconf 2.60 says this stuff was obsolete.
5101
5102 2006-06-28  Bruno Haible  <bruno@clisp.org>
5103
5104         * modules/wcwidth (Files): Add m4/wchar_t.m4.
5105
5106 2006-06-28  Bruno Haible  <bruno@clisp.org>
5107
5108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
5109         gt_TYPE_WCHAR_T.
5110
5111 2006-06-28  Bruno Haible  <bruno@clisp.org>
5112
5113         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
5114         declaration for wcwidth.
5115         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
5116
5117 2006-06-28  Bruno Haible  <bruno@clisp.org>
5118
5119         * lib/mkdtemp.c [MINGW]: Include <io.h>.
5120         (mkdir): Define using _mkdir.
5121
5122 2006-06-28  Bruno Haible  <bruno@clisp.org>
5123
5124         * lib/getaddrinfo.h: Fix POSIX URL.
5125         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
5126         _WIN32.
5127         (use_win32_p): Make static.
5128         (getaddrinfo): Reject service name if it is empty or does not consist
5129         solely of decimal digits, or if its value is > 65535.
5130         (getnameinfo): Remove useless casts.
5131
5132 2006-06-27  Simon Josefsson  <jas@extundo.com>
5133
5134         * modules/sys_select: New file, suggested by Bruno Haible, Paul
5135         Eggert and Martin Lambers.
5136
5137 2006-06-27  Simon Josefsson  <jas@extundo.com>
5138
5139         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
5140         Eggert and Martin Lambers.
5141
5142 2006-06-27  Bruno Haible  <bruno@clisp.org>
5143
5144         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
5145         result to 0, not to empty.
5146         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
5147
5148 2006-06-27  Bruno Haible  <bruno@clisp.org>
5149
5150         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
5151
5152 2006-06-26  Simon Josefsson  <jas@extundo.com>
5153
5154         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
5155         present.
5156
5157 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
5158
5159         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
5160         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
5161         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
5162
5163 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
5164
5165         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
5166
5167 2006-06-26  Bruno Haible  <bruno@clisp.org>
5168
5169         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
5170
5171 2006-06-26  Bruno Haible  <bruno@clisp.org>
5172
5173         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
5174
5175 2006-06-26  Bruno Haible  <bruno@clisp.org>
5176
5177         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
5178         SGI C compiler in pre-C99 mode.
5179         Suggested by Mark D. Baushke and Larry Jones.
5180
5181 2006-06-26  Bruno Haible  <bruno@clisp.org>
5182
5183         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
5184         WCHAR_MAX.
5185         Reported by Mark D. Baushke and Larry Jones.
5186
5187 2006-06-26  Bruno Haible  <bruno@clisp.org>
5188
5189         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
5190         in pre-C99 mode.
5191         Suggested by Mark D. Baushke and Larry Jones.
5192
5193 2006-06-23  Simon Josefsson  <jas@extundo.com>
5194             Bruno Haible  <bruno@clisp.org>
5195
5196         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
5197         Emit mostlyclean-local rule.
5198         (func_emit_tests_Makefile_am): Likewise.
5199         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
5200
5201 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
5202
5203         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
5204
5205 2006-06-23  Bruno Haible  <bruno@clisp.org>
5206
5207         * tests/test-stdint.c: Update to match ISO C 99 Technical
5208         Corrigendum 1.
5209
5210 2006-06-23  Bruno Haible  <bruno@clisp.org>
5211
5212         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
5213
5214 2006-06-23  Bruno Haible  <bruno@clisp.org>
5215
5216         * lib/stdint_.h: Treat IRIX like OpenBSD.
5217
5218 2006-06-23  Bruno Haible  <bruno@clisp.org>
5219
5220         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
5221         ISO C 99 Technical Corrigendum 1.
5222
5223 2006-06-22  Simon Josefsson  <jas@extundo.com>
5224
5225         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
5226         MinGW.
5227
5228 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
5229
5230         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
5231         needed.  Some compiler complained about some of them.  Problem reported
5232         by Larry Jones in
5233         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
5234
5235 2006-06-21  Simon Josefsson  <jas@extundo.com>
5236
5237         * tests/test-getaddrinfo.c: New file.
5238
5239         * modules/getaddrinfo-tests: New file.
5240
5241         * MODULES.html.sh: Add inet_pton.
5242
5243         * modules/inet_pton: New file.
5244
5245 2006-06-21  Simon Josefsson  <jas@extundo.com>
5246
5247         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
5248         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
5249         of using the (limited) gnulib implementation on Windows XP.
5250
5251         * m4/inet_pton.m4: New file.
5252
5253 2006-06-21  Simon Josefsson  <jas@extundo.com>
5254
5255         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
5256         variable.
5257
5258         * lib/socket_.h: Don't define WINVER.
5259
5260         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
5261         slightly modified to work in gnulib.
5262
5263 2006-06-21  Simon Josefsson  <jas@extundo.com>
5264
5265         * doc/gnulib.texi (Windows sockets): Add.
5266
5267 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
5268
5269         * lib/read-file.c (fread_file): Start with buffer allocation of
5270         0 bytes rather than 1 byte; this simplifies the code.
5271         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
5272         code to free buffer and save/restore errno.
5273         (internal_read_file): Remove unused local.
5274
5275 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5276
5277         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
5278         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
5279         Problem reported by Denis Excoffier in
5280         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
5281
5282 2006-06-19  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5283
5284         * modules/sys_socket, modules/socklen: Include sys/types since
5285         FreeBSD 4.x's sys/socket.h needs it.
5286
5287 2006-06-19  Simon Josefsson  <jas@extundo.com>
5288
5289         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
5290
5291 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5292
5293         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
5294
5295 2006-06-19  Bruno Haible  <bruno@clisp.org>
5296
5297         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
5298         and FULL_PATH_INTTYPES_H in angle brackets.
5299         Reported by Mark D. Baushke <mdb@gnu.org>.
5300
5301 2006-06-17  Eric Blake  <ebb9@byu.net>
5302
5303         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
5304         errno.
5305
5306 2006-06-17  Bruno Haible  <bruno@clisp.org>
5307
5308         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
5309         <sys/inttypes.h>.
5310
5311 2006-06-17  Bruno Haible  <bruno@clisp.org>
5312
5313         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
5314         whether errno is declared. Assume <errno.h> declares errno.
5315
5316 2006-06-17  Bruno Haible  <bruno@clisp.org>
5317
5318         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
5319
5320 2006-06-17  Bruno Haible  <bruno@clisp.org>
5321
5322         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
5323         problem on Solaris 2.5.1.
5324
5325 2006-06-16  Eric Blake  <ebb9@byu.net>
5326
5327         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
5328         * lib/unicodeio.c [!defined errno]: Likewise.
5329         * lib/strtol.c [!defined errno]: Likewise.
5330         * lib/strtod.c [!defined errno]: Likewise.
5331
5332 2006-06-15  Eric Blake  <ebb9@byu.net>
5333
5334         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
5335
5336 2006-06-15  Eric Blake  <ebb9@byu.net>
5337
5338         * config/srclist.txt (ssize_t.m4): Lose sync.
5339
5340 2006-06-15  Bruno Haible  <bruno@clisp.org>
5341
5342         * modules/stdint (Files): Include m4/full-header-path.m4,
5343         m4/size_max.m4, m4/wchar_t.m4.
5344         (Makefile.am): Many more substitutions.
5345         * modules/stdint-tests: New file.
5346         * tests/test-stdint.c: New file.
5347
5348 2006-06-15  Bruno Haible  <bruno@clisp.org>
5349
5350         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
5351         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
5352         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
5353         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
5354         gl_CHECK_TYPE_SAME): New macros.
5355
5356 2006-06-15  Bruno Haible  <bruno@clisp.org>
5357
5358         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
5359
5360 2006-06-15  Bruno Haible  <bruno@clisp.org>
5361
5362         * lib/stdint_.h: Rewritten to be fully auto-configured.
5363         Fixes bug on HP-UX/IA64.
5364
5365 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
5366
5367         * lib/getdate.y (__attribute__): Don't define if already defined.
5368         Problem reported by Larry Jones.
5369         * lib/utimens.c (__attribute__): Likewise.
5370
5371 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5372
5373         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
5374         reported by Andreas Schwab.
5375
5376 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5377             Bruno Haible  <bruno@clisp.org>
5378
5379         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
5380         check for the declaration of strnlen and a run test that exposes the
5381         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
5382         rpl_strndup.
5383
5384 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5385             Bruno Haible  <bruno@clisp.org>
5386
5387         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
5388
5389 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5390
5391         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
5392         compile test, for Tru64 4.0D.
5393
5394 2006-05-28  Karl Berry  <karl@gnu.org>
5395
5396         * config/srclist.txt (printf-args.c): lose sync.
5397
5398 2006-05-26  Martin Lambers  <marlam@marlam.de>
5399
5400         * lib/getpass.c: Updates the test for the native W32 API, and adds
5401         missing includes, thus fixing compilation warnings.
5402
5403 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
5404
5405         * lib/exclude.c (exclude_fnmatch): New function.
5406         (excluded_file_name): Call exclude_fnmatch.
5407         * lib/exclude.h (excluded_file_name): New prototype
5408
5409 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5410
5411         * lib/tempname.c (small_open, large_open): New macros.
5412         (__open, __open64) [!_LIBC]: Remove.
5413         (__gen_tempname): Use small_open and large_open instead of __open
5414         and __open64.  This fixes a portability bug on HP-UX 11.11i
5415         reported by Simon Wing-Tang in
5416         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
5417
5418 2006-05-24  Bruno Haible  <bruno@clisp.org>
5419
5420         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
5421         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
5422         Reported by Thorsten Maerz <torte@netztorte.de> via
5423         Aaron Stone <aaron@serendipity.cx>.
5424
5425 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
5428         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
5429         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
5430         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
5431         not really conditional on the cache.
5432         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
5433
5434 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5435
5436         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
5437         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
5438         (my_usleep): Don't mishandle maximum value.
5439
5440 2006-05-19  Jim Meyering  <jim@meyering.net>
5441
5442         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
5443
5444 2006-05-17  Bruno Haible  <bruno@clisp.org>
5445
5446         Cygwin portability.
5447         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
5448
5449 2006-05-17  Bruno Haible  <bruno@clisp.org>
5450
5451         * lib/stdint_.h: Fix recognition of Cygwin.
5452
5453 2006-05-15  Bruno Haible  <bruno@clisp.org>
5454
5455         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
5456         on libtool patch by Ralf Wildenhues.
5457
5458 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5459
5460         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
5461         test for C99 conformance; (bool) 0.5 is an integer constant
5462         expression, but (bool) -0.5 is not.  Problem reported by Fedor
5463         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
5464
5465 2006-05-11  Simon Josefsson  <jas@extundo.com>
5466
5467         * m4/xvasprintf.m4: Fix obvious typo.
5468
5469 2006-05-11  Jim Meyering  <jim@meyering.net>
5470
5471         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
5472         James Lemley.
5473
5474 2006-05-10  Simon Josefsson  <jas@extundo.com>
5475
5476         * lib/md4.c: Typo fix, update copyright years.
5477         (K1, K2): Don't use L because it turn computations into 64-bit on
5478         64-bit platforms.
5479
5480 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5481
5482         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
5483         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
5484         unwanted sign propagation, e.g., on hosts with 64-bit int.
5485         There still are some problems with reeelly weird theoretical hosts
5486         (e.g., 33-bit int) but it's not worth worrying about now.
5487         * lib/sha1.c (rol): Likewise.
5488         (K1, K2, K3, K4): Remove unnecessary L suffix.
5489
5490 2006-05-10  Bruno Haible  <bruno@clisp.org>
5491
5492         * lib/des.c: Cast to avoid warnings.
5493
5494 2006-05-09  Bruno Haible  <bruno@clisp.org>
5495
5496         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
5497         (Depends-on): Depend also on xsize, stdarg.
5498         (configure.ac): Add gl_XVASPRINTF.
5499
5500 2006-05-09  Bruno Haible  <bruno@clisp.org>
5501
5502         * m4/xvasprintf.m4: New file.
5503
5504 2006-05-09  Bruno Haible  <bruno@clisp.org>
5505
5506         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
5507         (EOVERFLOW): Define fallback value.
5508         (xstrcat): New function.
5509         (xvasprintf): Recognize the special case of a string concatenation.
5510
5511 2006-05-08  Eric Blake  <ebb9@byu.net>
5512
5513         * gnulib-tool (func_version): Base copyright year on CVS date.
5514         (func_emit_copyright_notice): New function.
5515         (func_emit_lib_Makefile_am): Use it.
5516         (func_emit_tests_Makefile_am): Likewise.
5517         (func_import): Likewise.
5518
5519 2006-05-08  Bruno Haible  <bruno@clisp.org>
5520
5521         * modules/stdarg: New file.
5522         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
5523
5524 2006-05-08  Bruno Haible  <bruno@clisp.org>
5525
5526         * m4/stdarg.m4: New file, from GNU gettext.
5527
5528 2006-05-08  Bruno Haible  <bruno@clisp.org>
5529
5530         * config/srclist.txt (build-aux/config.rpath): different from latest
5531         release.
5532
5533 2006-05-08  Bruno Haible  <bruno@clisp.org>
5534
5535         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
5536
5537 2006-05-05  Jim Meyering  <jim@meyering.net>
5538
5539         * m4/warning.m4: New file, derived from bison's file by the same name.
5540
5541 2006-05-03  Bruno Haible  <bruno@clisp.org>
5542
5543         * lib/stdint_.h: Shorter URL.
5544         * lib/inttypes.h: Likewise.
5545
5546 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5547
5548         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
5549
5550 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         * lib/verify.h: Document the internals better.  Most of this change
5553         was written by Bruno Haible.
5554
5555 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5556
5557         * doc/verify.texi: New file, partly based on a proposal by
5558         Bruno Haible.
5559
5560 2006-05-02  Bruno Haible  <bruno@clisp.org>
5561
5562         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
5563         test from here...
5564         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
5565
5566 2006-04-29  Bruno Haible  <bruno@clisp.org>
5567
5568         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
5569         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
5570
5571 2006-04-29  Bruno Haible  <bruno@clisp.org>
5572
5573         * gnulib-tool: Make --update option actually work.
5574
5575 2006-04-29  Bruno Haible  <bruno@clisp.org>
5576
5577         * doc/gcd.texi: New file.
5578         * doc/gnulib.texi: Include it.
5579
5580 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5581
5582         * lib/getdate.y (get_date): When adding relative date, start with the
5583         initial time, not with the result of the first mktime call.
5584
5585 2006-04-25  Bruno Haible  <bruno@clisp.org>
5586
5587         * gnulib-tool (func_import): Output the include directives in three
5588         blocks, sorted separately.
5589         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5590
5591 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5592
5593         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
5594         to define main with arguments, for C++.  Reported by Eric Blake.
5595         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5596         Prefer 'int main ()' to 'int main (void)', for C++.
5597         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5598         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
5599         for 'main', for C99 and C++.
5600
5601 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5602
5603         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
5604         Don't assume that exit status -1 is valid.
5605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5606         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5607         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5608         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
5609         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
5610         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
5611         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
5612         functions can be used without declaring them, or that you can
5613         exit with status -1.
5614         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
5615
5616 2006-04-24  Karl Berry  <karl@gnu.org>
5617
5618         * config/srclist.txt (longdouble.m4): sync lost.
5619
5620 2006-04-24  Eric Blake  <ebb9@byu.net>
5621
5622         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
5623
5624 2006-04-24  Bruno Haible  <bruno@clisp.org>
5625
5626         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
5627         poll() implementation in AIX.
5628         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5629
5630 2006-04-24  Bruno Haible  <bruno@clisp.org>
5631
5632         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
5633         assigned exactly once.
5634
5635 2006-04-23  Claudio Fontana  <claudio@gnu.org>
5636             Bruno Haible  <bruno@clisp.org>
5637
5638         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
5639         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
5640         for AM_CPPFLAGS.
5641
5642 2006-04-23  Bruno Haible  <bruno@clisp.org>
5643
5644         * modules/copy-file: Depend on unistd.
5645         * modules/execute: Likewise.
5646         * modules/fatal-signal: Likewise.
5647         * modules/findprog: Likewise.
5648         * modules/mkdtemp : Likewise.
5649         * modules/pipe: Likewise.
5650         * modules/wait-process: Likewise.
5651
5652 2006-04-23  Bruno Haible  <bruno@clisp.org>
5653
5654         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
5655         condition was already detected.
5656         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5657
5658 2006-04-23  Bruno Haible  <bruno@clisp.org>
5659
5660         * lib/copy-file.c: Include <unistd.h> unconditionally.
5661         * lib/execute.c: Likewise.
5662         * lib/fatal-signal.c: Likewise.
5663         * lib/findprog.c: Likewise.
5664         * lib/mkdtemp.c: Likewise.
5665         * lib/pipe.h: Likewise.
5666         * lib/pipe.c: Likewise.
5667         * lib/wait-process.h: Likewise.
5668
5669 2006-04-23  Bruno Haible  <bruno@clisp.org>
5670
5671         * gnulib-tool (func_usage): Fix --import description. Document
5672         --update.
5673         (func_import): Create temporary file in a temporary directory, if
5674         --dry-run is specified. Silence errors from 'grep' when there are no
5675         m4 files in $m4dir.
5676         (func_create_testdir): Silence errors from 'grep' when there are no
5677         m4 files in $m4dir.
5678         Reported by Karl Berry <karl@freefriends.org>.
5679
5680 2006-04-20  Bruno Haible  <bruno@clisp.org>
5681
5682         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
5683         one argument, so that the code will be portable to Autoconf 2.60.
5684         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
5685         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5686         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
5687
5688 2006-04-19  Derek Price  <derek@ximbiot.com>
5689             Eric Blake  <ebb9@byu.net>
5690
5691         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
5692         rather than "/full/path.h".  Update comment to match.  Shorten &
5693         generalize m4_translit call via AS_TR_CPP.
5694
5695 2006-04-19  Derek Price  <derek@ximbiot.com>
5696             Eric Blake  <ebb9@byu.net>
5697
5698         * lib/inttypes.h: Correct grammar in comment.
5699
5700 2006-04-18  Derek Price  <derek@ximbiot.com>
5701             Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         * modules/inttypes: New file.
5704         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
5705
5706 2006-04-18  Derek Price  <derek@ximbiot.com>
5707             Paul Eggert  <eggert@cs.ucla.edu>
5708
5709         * m4/_inttypes_h.m4, full-header-path.m4, include_next: New files.
5710
5711 2006-04-18  Derek Price  <derek@ximbiot.com>
5712             Paul Eggert  <eggert@cs.ucla.edu>
5713
5714         * lib/inttypes.h: New file.
5715         * lib/strtoimax.c: Assume <inttypes.h>.
5716
5717 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
5718
5719         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
5720         isn't mounted.  Problem reported by Kir Kolyshkin.
5721
5722 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
5723
5724         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
5725         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
5726         Derek R. Price.
5727         * lib/regex.h (RE_DUP_MAX): Update comment to match current
5728         implementation.
5729
5730 2006-04-12  Eric Blake  <ebb9@byu.net>
5731
5732         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
5733         is now done automatically by the corresponding Autoconf macro.
5734
5735 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
5736
5737         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
5738         time_r.h.
5739
5740 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5741
5742         Merge regex changes from libc, removing some of our
5743         POSIX-conformance changes that were rejected and redoing them in a
5744         less-intrusive way.
5745
5746         * lib/regcomp.c (re_compile_internal, init_dfa):
5747         Length arg is now size_t, not Idx.  All uses changed.
5748         (peek_token): Forward decl now says internal_function.
5749         (__re_error_msgid, __re_error_msgid_idx):
5750         Now static rather than extern with attribute_hidden.
5751         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
5752         For some reason libc prefers K&R style defns for external functions.
5753         (regerror) [!defined _LIBC]: Likewise.
5754         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
5755         (seek_collating_symbol_entry, lookup_collation_sequence_value):
5756         (build_range_exp, build_collating_symbol):
5757         Use K&R-style defn.
5758         (re_compile_fastmap): Use '\0' to memset, not 0.
5759         (utf8_sb_map): Make the calculations more obvious.
5760         (init_dfa, parse_bracket_exp, build_charclass_op):
5761         Call calloc and cast result, as glibc does.
5762         (init_word_char, fetch_token, peek_token, peek_token_bracket):
5763         (build_range_exp, build_collating_symbol):
5764         Now internal functions.
5765
5766         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
5767
5768         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
5769         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
5770         Don't depend on VMS; depend on __VMS instead, for POSIX
5771         namespace cleanness.
5772         (regoff_t): Define to ssize_t, not long int.
5773
5774         Remove the REG_ macros named below.  Instead, make the old names
5775         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
5776         __USE_GNU_REGEX.
5777         (REG_BACKSLASH_ESCAPE_IN_LISTS):
5778         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
5779         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
5780         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
5781         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
5782         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
5783         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
5784         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
5785         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
5786         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
5787         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
5788         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
5789         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
5790         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
5791         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
5792         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
5793         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
5794         (REG_NREGS):
5795         Remove.  All uses replaced by the old RE_* names.
5796         (RE_BACKSLASH_ESCAPE_IN_LISTS):
5797         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
5798         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
5799         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
5800         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
5801         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
5802         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
5803         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
5804         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
5805         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
5806         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
5807         Don't bother having these macros be independent of each others'
5808         values, since they no longer exist in the POSIX name space.
5809
5810         Rename the following member names back to their old names,
5811         unless !__USE_GNU_REGEX.  All uses changed back.
5812         (buffer): Renamed from re_buffer.
5813         (allocated): Renamed from re_allocated.
5814         (used): Renamed from re_used.
5815         (syntax): Renamed from re_syntax.
5816         (fastmap): Renamed from re_fastmap.
5817         (translate): Renamed from re_translate.
5818         (can_be_null): Renamed from re_can_be_null.
5819         (regs_allocated): Renamed from re_regs_allocated.
5820         (fastmap_accurate): Renamed from re_fastmap_accurate.
5821         (no_sub): Renamed from re_no_sub.
5822         (not_bol): Renamed from re_not_bol.
5823         (not_eol): Renamed from re_not_eol.
5824         (newline_anchor): Renamed from re_newline_anchor.
5825         (num_regs): Renamed from rm_num_regs.
5826         (start): Renamed from rm_start.
5827         (end): Renamed from rm_end.
5828
5829         (free_state): Move up a bit.
5830
5831         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
5832         #define to be empty.
5833         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
5834         when that is what is intended.
5835         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
5836         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
5837         (MAX): New macro.
5838         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
5839         All uses changed back to re_malloc, etc.  It's now the caller's
5840         responsibility to check for overflow; all callers changed.
5841         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
5842         (re_x2nrealloc): Remove.
5843         (free_state): Remove decl.
5844
5845         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
5846         (re_set_registers, re_exec):
5847         Use K&R-style defn.
5848
5849         2006-01-31  Roland McGrath  <roland@redhat.com>
5850
5851         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
5852         Reported by Mike Frysinger <vapier@gentoo.org>.
5853
5854         2006-01-15  Andreas Jaeger  <aj@suse.de>
5855
5856         [BZ #1950]
5857         * lib/regex_internal.c (re_string_reconstruct): Adjust for
5858         build_wcs_upper_buffer change.
5859         (build_wcs_upper_buffer): Change return type.
5860
5861         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
5862
5863         * lib/regex_internal.h: Include <stdint.h> if available.
5864
5865         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
5866
5867         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
5868
5869         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
5870
5871         * lib/regcomp.c: Adjust for changed secondary hash function.
5872
5873         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
5874
5875         * lib/regex.h: Pretty printing.
5876         Clean up namespace a bit.
5877
5878         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
5879
5880         * lib/regexec.c (update_cur_sifted_state, check_arrival,
5881         check_arrival_add_next_nodes): Avoid using uninitialized variable.
5882
5883         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5884                     Ulrich Drepper  <drepper@redhat.com>
5885
5886         [BZ #1302]
5887         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
5888         changed.
5889         (bitset_word_t): Renamed from bitset_word.  All uses changed.
5890
5891         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
5892
5893         [BZ #281]
5894         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
5895         * lib/regcomp.c: Remove unnecessary uses of
5896         unsigned RE_TRANSLATE_TYPE.
5897         * lib/regex_internal.h: Likewise.
5898         * lib/regex_internal.c: Likewise.
5899         * lib/regexec.c: Likewise.
5900         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
5901
5902         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
5903
5904         * lib/regexec.c (find_recover_state): Remove unnecessary
5905         initialization.
5906         (transit_state_bkref): Make DFA a const pointer.
5907         (get_subexp): Likewise.
5908         (check_arrival): Likewise.
5909         (update_cur_sifted_state): Likewise.
5910         (re_search_internal): Likewise.
5911         (prune_impossible_nodes): Likewise.
5912         (acquire_init_state_context): Likewise.
5913         (proceed_next_node): Likewise.
5914         (set_regs): Likewise.
5915         (free_fail_stack_return): Likewise.
5916         (check_arrival_expand_ecl): Mark DFA parameter as const.
5917         (check_arrival_expand_ecl_sub): Likewise.
5918         (check_subexp_limits): Likewise.
5919         (sub_epsilon_src_nodes):  Likewise.
5920         (add_epsilon_src_nodes):  Likewise.
5921         (merge_state_array): Likewise.
5922         (update_regs): Likewise.
5923         (build_trtable): Likewise.
5924         (sift_states_backward): Mark MCTX parameter as const.
5925         (build_sifted_states): Likewise.
5926         (update_cur_sifted_state): Likewise.
5927         (sift_states_mkref): Likewise.
5928         (check_arrival_expand_ecl): Mark eclosure as const.
5929         (check_dst_limits_calc_pos_1): Likewise.
5930         * lib/regex_internal.h (re_match_context_t): Make dfa a const
5931         pointer.
5932
5933         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
5934
5935         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
5936         (transit_state_sb): Likewise.
5937         (transit_state_mb): Likewise.
5938         (sift_states_iter_mb): Likewise.
5939         (check_arrival_add_next_nodes): Likewise.
5940         (check_node_accept_bytes): Change first parameter to pointer-to-const.
5941         [_LIBC] (re_search_2_stub): Use mempcpy.
5942
5943         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
5944         mbrtowc for very simple UTF-8 case.
5945
5946         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
5947         a pointer-to-const.
5948         (re_acquire_state_context): Likewise.
5949         * lib/regex_internal.h: Adjust prototypes.
5950
5951         * lib/regex.c: Prevent using C++ compilers.
5952
5953         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
5954         (re_acquire_state_context): Likewise.
5955
5956 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5957
5958         * modules/regex (Depends-on): Add ssize_t.
5959
5960 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5961
5962         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
5963         translation table.
5964
5965 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5966
5967         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
5968
5969 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
5970             Bruno Haible  <bruno@clisp.org>
5971
5972         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
5973         <sys/types.h> and <inttypes.h>.
5974
5975 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5976
5977         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
5978         `__error_t_defined', so argp.h will not typedef the former.
5979
5980 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
5981
5982         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
5983         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
5984         glibc names.  Even if glibc is changed to conform to POSIX, the
5985         traditional names will be available anyway, since regex depends on
5986         the extensions module.  Also, fix a longstanding typo in the
5987         implementation of Spencer ERE test #75 from grep 2.3.  Problems
5988         reported by Emanuele Giaquinta.  Also, change sense of cached
5989         variable, so that the message makes sense.
5990
5991 2006-03-24  Simon Josefsson  <jas@extundo.com>
5992
5993         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
5994         including some doc fixes.
5995         (base64_encode_alloc): Fix +1 bug on allocation failures.
5996
5997 2006-03-24  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5998
5999         * lib/base64.c (base64_encode): Do not read past end of array with
6000         unsanitized input on systems with CHAR_BIT > 8.
6001
6002 2006-03-24  Eric Blake  <ebb9@byu.net>
6003
6004         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
6005
6006 2006-03-22  Karl Berry  <karl@gnu.org>
6007
6008         * config/srclist.txt (*setenv.[ch]): get from coreutils.
6009         * config/srclistvars.sh (COREUTILS): new var.
6010
6011 2006-03-17  Jim Meyering  <jim@meyering.net>
6012
6013         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
6014         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
6015
6016 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6017
6018         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
6019         no longer needs it.  Instead, check that regoff_t is as least
6020         as wide as ptrdiff_t.
6021
6022         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
6023         so that our regex.h stays compatible with the installed regex.
6024         This is helpful for installers who configure --without-included-regex.
6025         Problem reported by Emanuele Giaquinta.
6026
6027 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6028
6029         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
6030         Typedef to long int, not to off_, as POSIX will likely change
6031         in that direction.
6032
6033 2006-03-15  Eric Blake  <ebb9@byu.net>
6034
6035         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
6036
6037 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
6038
6039         * lib/argp-help.c (validate_uparams): Fix typo
6040         * lib/argp-parse.c (argp_default_options): Consistently begin help
6041         messages with a lowercase letter.
6042
6043 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6044
6045         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
6046         overrun buffers and shouldn't be used (much as gets shouldn't be
6047         used).
6048         * lib/time_r.c (asctime_r, ctime_r): Likewise.
6049
6050 2006-03-08  Simon Josefsson  <jas@extundo.com>
6051
6052         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
6053         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6054
6055 2006-03-08  Simon Josefsson  <jas@extundo.com>
6056
6057         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
6058         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6059
6060 2006-03-08  Simon Josefsson  <jas@extundo.com>
6061
6062         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
6063         signal that configure disabled the device.
6064
6065 2006-03-08  Simon Josefsson  <jas@extundo.com>
6066
6067         * build-aux/maint.mk: Fix refresh-po, to handle no translated
6068         languages.
6069
6070 2006-03-07  Simon Josefsson  <jas@extundo.com>
6071
6072         * modules/getopt (Depends-on): Add unistd.
6073
6074         * modules/unistd: New file.
6075
6076 2006-03-07  Simon Josefsson  <jas@extundo.com>
6077
6078         * modules/gc-random: New file.
6079
6080 2006-03-07  Simon Josefsson  <jas@extundo.com>
6081
6082         * m4/unistd_h.m4: New file.
6083
6084 2006-03-07  Simon Josefsson  <jas@extundo.com>
6085
6086         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
6087         test to be side-effect free by storing the result in the cache
6088         variable gl_cv_lib_readline, and moving the assignment of
6089         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
6090         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6091
6092 2006-03-07  Simon Josefsson  <jas@extundo.com>
6093
6094         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
6095         error on missing devices (the functions will return an error).
6096
6097         * m4/gc.m4: Move random stuff to gc-random.m4
6098
6099 2006-03-07  Simon Josefsson  <jas@extundo.com>
6100
6101         * lib/unistd_.h: New file.
6102
6103 2006-03-07  Simon Josefsson  <jas@extundo.com>
6104
6105         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
6106
6107 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6108
6109         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
6110         Problem reported by Juan Manuel Guerrero.
6111
6112 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6113
6114         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
6115         the unistd module.
6116         * lib/getlogin_r.c: Likewise.
6117         * lib/getlogin_r.h: Likewise.
6118         * lib/glob.c: Likewise.
6119         * lib/pagealign_alloc.c: Likewise.
6120         * lib/unistd_.h: Remove; no longer needed.
6121
6122 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6123
6124         * MODULES.html.sh (Support for systems lacking POSIX:2001):
6125         Add unistd.
6126         * modules/c-stack (Depends-on): Add unistd.
6127         * modules/getlogin_r: Likewise.
6128         * modules/glob: Likewise.
6129         * modules/pagealign_alloc: Likewise.
6130         * modules/unistd (Files): Remove lib/unistd_.h.
6131         (EXTRA_DIST): Remove.
6132         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
6133         need unistd_.h.
6134         (MOSTLYCLEANFILES): Remove unistd.h-t.
6135
6136 2006-03-03  Simon Josefsson  <jas@extundo.com>
6137
6138         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
6139
6140 2006-03-03  Simon Josefsson  <jas@extundo.com>
6141
6142         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
6143         libidn and bison.
6144
6145 2006-03-03  Simon Josefsson  <jas@extundo.com>
6146
6147         * build-aux/maint.mk: Add indent target.
6148
6149 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
6150
6151         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
6152         our replacement poll.h in any case, to avoid a differing
6153         declaration from a system header.  Seen on AIX.
6154
6155 2006-03-01  Simon Josefsson  <jas@extundo.com>
6156
6157         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
6158         <kasal@ucw.cz>.
6159
6160 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
6161
6162         * modules/gettime (Depends-on): Add extensions module.
6163         * modules/nanosleep (Depends-on): Likewise.
6164         * modules/settime (Depends-on): Likewise.
6165
6166 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
6167
6168         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
6169         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
6170         pedantically.
6171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6172         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
6173
6174         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
6175         not "==".  Reported by Ralf Wildenhues.
6176
6177 2006-03-01  Karl Berry  <karl@gnu.org>
6178
6179         * doc/Copyright/request-*: new files, synced from gnuorg.
6180
6181 2006-03-01  Karl Berry  <karl@gnu.org>
6182
6183         * config/srclist.txt (Copyright/*): new entries.
6184
6185 2006-02-28  Simon Josefsson  <jas@extundo.com>
6186
6187         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
6188
6189 2006-02-27  Simon Josefsson  <jas@extundo.com>
6190
6191         * lib/base64.h: Indent #define's.  From Jim Meyering
6192         <jim@meyering.net>.
6193
6194 2006-02-27  Jim Meyering  <jim@meyering.net>
6195
6196         Revert the change of 2006-02-24, so these files can continue
6197         to be sync'd from gettext.
6198         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
6199         of `config.h'.
6200
6201 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6202
6203         * modules/intprops: New file.
6204         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
6205         Add intprops.
6206         * modules/getloadavg (Files): Remove lib/intprops.h.
6207         (Depends-on): Add intprops.
6208         * modules/human: Likewise.
6209         * modules/inttostr: Likewise.
6210         * modules/openat: Likewise.
6211         * modules/sig2str: Likewise.
6212         * modules/userspec: Likewise.
6213         * modules/utimecmp: Likewise.
6214         * modules/xnanosleep: Likewise.
6215         * modules/xstrtol: Likewise.
6216
6217 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
6218
6219         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
6220         * modules/lock-tests (TESTS): Use $(EXEEXT).
6221         * modules/tls-tests: Likewise.
6222         * modules/argp-tests: Likewise.
6223         (check_PROGRAMS): New var, replacing...
6224         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
6225
6226 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6227
6228         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
6229         `config.h'.
6230
6231 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6232
6233         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
6234
6235 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6236
6237         Sync from coreutils.
6238         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
6239         gl_CHDIR_SAFER.
6240
6241 2006-02-22  Jim Meyering  <jim@meyering.net>
6242
6243         Sync from coreutils.
6244         * m4/chdir-safer.m4: New file.
6245
6246 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6247
6248         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
6249         AT_FDCWD exceeds INT_MAX.
6250         * lib/openat.h (AT_FDCWD): Likewise.
6251
6252 2006-02-17  Eric Blake  <address@hidden>
6253
6254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
6255
6256 2006-02-16  Simon Josefsson  <jas@extundo.com>
6257
6258         * modules/getaddrinfo (Depends-on): Add sys_socket.
6259
6260 2006-02-15  Simon Josefsson  <jas@extundo.com>
6261
6262         * build-aux/maint.mk: Add dsyntax-check rule.
6263
6264 2006-02-15  Eric Blake  <ebb9@byu.net>
6265
6266         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
6267         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
6268         'present but cannot compile' warnings on cygwin.
6269         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
6270         use ws2tcpip.h if sys/socket.h works.
6271         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
6272         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
6273
6274 2006-02-14  Simon Josefsson  <jas@extundo.com>
6275
6276         * modules/maintainer-makefile (Files): Rename.
6277
6278         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
6279         and (the local) Makefile.cfg to maint-cfg.mk.
6280
6281         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
6282         to the latter.
6283
6284         * modules/maintainer-makefile: New module.
6285
6286         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
6287         severaly stripped to make it possible to build it up from scratch
6288         with reliable tests.
6289
6290         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
6291         fixes to permit overriding the default actions when configure and
6292         makefile are not available.
6293
6294 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6295
6296         Sync from coreutils.
6297         * modules/lstat (Depends-on): Don't depend on xalloc.
6298         (License): Change from GPL to LGPL, since this is now simply a
6299         replacement for a libc function.
6300
6301 2006-02-14  Jim Meyering  <jim@meyering.net>
6302
6303         Sync from coreutils.
6304
6305         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
6306         failure on deficient systems, and simplify gnulib lgpl dependencies.
6307         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
6308         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
6309
6310         * lib/xalloc-die.c: Remove unused definition of N_.
6311
6312 2006-02-14  Jim Meyering  <jim@meyering.net>
6313
6314         Sync from coreutils.
6315         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
6316         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
6317         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
6318         double-quote uses of that variable, to accommodate the rare case in
6319         which getmntent is available in none of the libraries checked.  This
6320         happens at least on FreeBSD 5.0.
6321
6322 2006-02-13  Simon Josefsson  <jas@extundo.com>
6323
6324         * gnulib-tool (Usage): Fix --import, from
6325         karl@freefriends.org (Karl Berry).
6326
6327 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
6328
6329         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
6330
6331 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
6332
6333         * lib/argp-namefrob.h: Restore changes accidentally lost during the
6334         "autoupdate" on 2005-12-12.
6335
6336 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6337
6338         * modules/closeout (Depends-on): Remove atexit.
6339
6340 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6341
6342         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
6343         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
6344
6345 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
6346
6347         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
6348         __EXTENSIONS__ if this causes compilation to fail.  Problem
6349         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
6350         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
6351
6352 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6353
6354         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
6355         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
6356         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
6357         All uses changed.
6358
6359 2006-01-26  Simon Josefsson  <jas@extundo.com>
6360
6361         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
6362         prototype is visible on mingw32.
6363
6364         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
6365         for mingw32.
6366
6367         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
6368         mingw32).
6369
6370 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
6371
6372         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
6373         attempt to open for write; this always fails, at least on POSIX
6374         hosts.  This reinstates the 2006-01-09 change, which was
6375         inadvertently removed.
6376
6377 2006-01-26  Bruno Haible  <bruno@clisp.org>
6378
6379         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
6380         Reported by Paul Eggert.
6381
6382 2006-01-26  Bruno Haible  <bruno@clisp.org>
6383             Paul Eggert  <eggert@cs.ucla.edu>
6384
6385         * lib/stdbool_.h (_Bool)
6386         [(! (defined __cplusplus || defined __BEOS__)
6387           && !defined __GNUC__
6388           && !(defined __HP_cc || defined __xlc__
6389                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
6390                || defined __sgi))]:
6391         #define to signed char in these cases too; this simplifies
6392         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
6393         etc., separately) and makes it more conservative.
6394
6395 2006-01-25  Simon Josefsson  <jas@extundo.com>
6396
6397         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
6398         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
6399         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
6400
6401 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6402
6403         * lib/argp-namefrob.h: Bugfix. Remove stray #
6404
6405 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
6408         so that we test the test.
6409         Check for yet another HP-UX cc bug involving *bool |= bool.
6410
6411 2006-01-25  Karl Berry  <karl@gnu.org>
6412
6413         * config/srclist.txt (vasnprintf.c): sync lost.
6414
6415 2006-01-25  Jim Meyering  <jim@meyering.net>
6416
6417         Sync from the stable (b5) branch of coreutils:
6418
6419         * lib/fts.c (fts_children): Don't let close() clobber errno from
6420         failed fchdir().
6421
6422         * lib/fts.c (fts_stat): When following a symlink-to-directory,
6423         don't necessarily interpret stat-fails+lstat-succeeds as indicating
6424         a dangling symlink.  That can also happen at least for ELOOP.
6425         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
6426         FYI, this bug predates the inclusion of fts.c in coreutils.
6427
6428         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
6429         in their own block, so pre-c99 compilers don't object.
6430
6431         Avoid the double-free (first in fts_read, second in fts_close) that
6432         would occur when an `active' directory is made inaccessible (e.g.,
6433         via chmod a-x) during a traversal.
6434         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
6435         before returning.  Reproduce this failure by
6436         mkdir -p a/b; cd a; chmod a-x . b
6437         Reported by Stavros Passas.
6438
6439 2006-01-25  Jim Meyering  <jim@meyering.net>
6440
6441         * lib/fileblocks.c: Remove more useless parentheses.
6442         * lib/readutmp.h: Likewise.
6443
6444 2006-01-25  Bruno Haible  <bruno@clisp.org>
6445
6446         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
6447         warnings.
6448         Reported by Paul Eggert.
6449
6450 2006-01-25  Bruno Haible  <bruno@clisp.org>
6451
6452         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
6453         rid of a trap command. For Solaris sh.
6454         Reported by Mark D. Baushke <mdb@gnu.org>.
6455
6456 2006-01-24  Simon Josefsson  <jas@extundo.com>
6457
6458         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
6459         Bruno.
6460
6461 2006-01-24  Karl Berry  <karl@gnu.org>
6462
6463         * config/srclist.txt (argp-namefrob.h): sync lost.
6464
6465 2006-01-24  Jim Meyering  <jim@meyering.net>
6466
6467         * modules/openat (Files): Add lib/intprops.h.
6468         From Mark D. Baushke.
6469
6470 2006-01-24  Jim Meyering  <jim@meyering.net>
6471
6472         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
6473         Reported by Mark D. Baushke.
6474
6475 2006-01-24  Jim Meyering  <jim@meyering.net>
6476
6477         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
6478
6479 2006-01-24  Bruno Haible  <bruno@clisp.org>
6480
6481         * modules/strnlen (Maintainer): Change from glibc to all.
6482
6483 2006-01-24  Bruno Haible  <bruno@clisp.org>
6484
6485         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
6486         Patch by Paul Eggert.
6487
6488 2006-01-24  Bruno Haible  <bruno@clisp.org>
6489
6490         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
6491         already has it.
6492         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
6493         2005-11-26.
6494
6495         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
6496         'signed char' to avoid problems with the built-in _Bool type.
6497         Reported by Paul Eggert on 2005-11-26.
6498
6499 2006-01-24  Bruno Haible  <bruno@clisp.org>
6500
6501         * gnulib-tool (func_import): Avoid constructing complicated sed
6502         expressions inside backquote.
6503         Report and solution by Mark D. Baushke <mdb@gnu.org>.
6504
6505 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
6506
6507         These changes imported from libc.
6508         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
6509         test and two separate function calls.
6510         * lib/strndup.c (__strndup): Add libc_hidden_def.
6511
6512 2006-01-23  Simon Josefsson  <jas@extundo.com>
6513
6514         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
6515         Remove the test_*_SOURCES variable: automake infers it by default.
6516         * modules/tls-tests: Likewise.
6517
6518 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6519
6520         Work around porting bugs reported by Dieter in
6521         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
6522         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
6523         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
6524         Include "getopt.h" first, to check interface.
6525         (getenv): Declare only if defined HAVE_DECL_GETENV &&
6526         !HAVE_DECL_GETENV.
6527         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
6528         (__strndup): Revert to K&R-style function dfns, the glibc style.
6529         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
6530         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
6531         Include strnlen.h first, to get prototype properly.
6532         (strnlen): Renamed from __strnlen.
6533         Remove weak alias.
6534
6535 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6536
6537         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
6538
6539 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6540
6541         * config/srclist.txt: Adjust to reflect glibc reorganization.
6542         This affects only comments.
6543
6544 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
6545
6546          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
6547          Reported by Bruce Korb <bkorb@gnu.org>.
6548
6549 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
6550
6551         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
6552         to pacify gcc -Wswitch-default.
6553
6554 2006-01-22  Bruno Haible  <bruno@clisp.org>
6555
6556         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
6557         temporary buffer for sprintf, take into account the precision also
6558         for 'd', 'i', 'u', 'o', 'x', 'X'.
6559
6560 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
6561
6562         * modules/argp-tests: New module
6563         * tests/test-argp.c: New file
6564         * tests/test-argp-2.sh: New file
6565
6566 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
6567
6568         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
6569         (__argp_base_name): Removed
6570         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
6571         typo.
6572         (__argp_base_name): Provide macro definition or extern declaration
6573         depending on the configuration
6574
6575 2006-01-20  Simon Josefsson  <jas@extundo.com>
6576
6577         * modules/inet_ntop (Depends-on): Depend on sys_socket.
6578
6579 2006-01-20  Simon Josefsson  <jas@extundo.com>
6580
6581         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
6582
6583 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
6584
6585         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
6586         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
6587         Suggested by Bruno Haible.
6588
6589 2006-01-20  Karl Berry  <karl@gnu.org>
6590
6591         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
6592         until changes propagate, I guess.
6593
6594 2006-01-19  Simon Josefsson  <jas@extundo.com>
6595
6596         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
6597
6598 2006-01-19  Simon Josefsson  <jas@extundo.com>
6599
6600         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
6601
6602 2006-01-19  Simon Josefsson  <jas@extundo.com>
6603
6604         * gnulib-tool: Set check_PROGRAMS.
6605
6606         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
6607         modules/des-tests, modules/gc-arcfour-tests,
6608         modules/gc-arctwo-tests, modules/gc-des-tests,
6609         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
6610         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
6611         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
6612         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
6613         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
6614         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
6615         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
6616         test_*_SOURCES.
6617
6618 2006-01-18  Simon Josefsson  <jas@extundo.com>
6619
6620         * modules/socklen (Depends-on): Depend on sys_socket.
6621
6622 2006-01-18  Simon Josefsson  <jas@extundo.com>
6623
6624         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
6625         modules/des-tests, modules/gc-arcfour-tests,
6626         modules/gc-arctwo-tests, modules/gc-des-tests,
6627         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
6628         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
6629         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
6630         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
6631         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
6632         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
6633         $(EXEEXT) to automake TESTS variable, for mingw32.
6634
6635 2006-01-17  Simon Josefsson  <jas@extundo.com>
6636
6637         * modules/socklen (Include): Need sys/socket.h.
6638
6639 2006-01-17  Bruno Haible  <bruno@clisp.org>
6640
6641         * modules/ssize_t (Include): Add <sys/types.h>.
6642
6643 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
6644
6645         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
6646         it's not portable and it doesn't work with cross-compiles.
6647         Problem reported by Bruno Haible.  Fix missing-$ typo in
6648         'test "gl_cv_ignore_unused_libraries" ...' that prevented
6649         -zignore from being used with Sun's C compiler.
6650
6651 2006-01-12  Simon Josefsson  <jas@extundo.com>
6652
6653         * lib/base64.c: Fix warning, reported by Bruno Haible
6654         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
6655
6656 2006-01-12  Bruno Haible  <bruno@clisp.org>
6657
6658         * modules/ldd: New file.
6659         * build-aux/ldd.sh.in: New file.
6660         * MODULES.html.sh (Support for building libraries and executables): Add
6661         ldd.
6662
6663 2006-01-12  Bruno Haible  <bruno@clisp.org>
6664
6665         * m4/ldd.m4: New file.
6666
6667 2006-01-12  Bruno Haible  <bruno@clisp.org>
6668
6669         * gnulib-tool (func_import, func_create_testdir): Don't go into an
6670         endless loop while replacing $auxdir with build-aux.
6671
6672 2006-01-11  Simon Josefsson  <jas@extundo.com>
6673
6674         * lib/stdint_.h (SIZE_MAX): Add missing (.
6675
6676 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6677
6678         Sync from coreutils.
6679         * lib/md5.c: Fix commentary typos.
6680         (alignof, UNALIGNED_P): No need for a GCC-specific version.
6681         * lib/md5.h (__attribute__): Remove; unused.
6682         * lib/sha1.c: Fix commentary to match md5 better.
6683         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
6684         so that we don't need to worry about alignment.  All uses changed.
6685         This merges the 2005-10-28 md5 change into sha1.
6686
6687 2006-01-11  Jim Meyering  <jim@meyering.net>
6688
6689         Sync from coreutils.
6690         * lib/md5.c (OP): Fix spacing.
6691
6692 2006-01-11  Bruno Haible  <bruno@clisp.org>
6693
6694         Ensure automatic ordering between gl_LOCK and gl_ARGP.
6695         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
6696         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
6697
6698 2006-01-11  Bruno Haible  <bruno@clisp.org>
6699
6700         Ensure automatic ordering between gl_LOCK and gl_ARGP.
6701         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
6702         the "early" section as well.
6703
6704 2006-01-11  Bruno Haible  <bruno@clisp.org>
6705
6706         Avoid "ar: no archive members specified" error on MacOS X.
6707         * gnulib-tool (func_modules_add_dummy): New function.
6708         (func_import, func_create_testdir): Invoke it.
6709
6710 2006-01-11  Bruno Haible  <bruno@clisp.org>
6711
6712         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
6713         with $auxdir in AC_CONFIG_FILES statements.
6714
6715 2006-01-11  Bruno Haible  <bruno@clisp.org>
6716
6717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6718         Initialize also noinst_HEADERS to empty.
6719
6720 2006-01-11  Bruno Haible  <bruno@clisp.org>
6721
6722         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
6723         variables.
6724         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
6725         autoreconf.
6726
6727 2006-01-11  Bruno Haible  <bruno@clisp.org>
6728
6729         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
6730         overridable by the user.
6731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6732
6733 2006-01-10  Simon Josefsson  <jas@extundo.com>
6734
6735         * modules/sys_socket: New file.
6736
6737 2006-01-10  Simon Josefsson  <jas@extundo.com>
6738
6739         * m4/sys_socket_h.m4: New file.
6740
6741 2006-01-10  Simon Josefsson  <jas@extundo.com>
6742
6743         * lib/socket_.h: New file.
6744
6745 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6746
6747         * modules/readutmp (Maintainer): Add myself.
6748
6749 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6750
6751         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
6752         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
6753         People who are still concerned with buggy memcmp implementations
6754         can invoke gl_FUNC_MEMCMP themselves.
6755
6756 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6757
6758         * lib/regex_internal.h (BITSET_WORD_BITS):
6759         Work around a bug in 64-bit PGC (before version 6.1-2), where the
6760         preprocessor mishandles large unsigned values as if they were signed.
6761         Problem reported by Claudio Fontana in
6762         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
6763
6764 2006-01-10  Jim Meyering  <jim@meyering.net>
6765
6766         Avoid the double-free (first in fts_read, second in fts_close) that
6767         would occur when an `active' directory is made inaccessible (e.g.,
6768         via chmod a-x) during a traversal.
6769         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
6770         before returning.  Reproduce this failure by
6771         mkdir -p a/b; cd a; chmod a-x . b
6772         Reported by Stavros Passas.
6773
6774         Sync from coreutils.
6775         * lib/sha1.c: Tweak grammar in a comment.
6776
6777 2006-01-10  Jim Meyering  <jim@meyering.net>
6778
6779         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
6780         Patch by Joerg Sonnenberger.
6781
6782 2006-01-10  Bruno Haible  <bruno@clisp.org>
6783
6784         * modules/readutmp: Depend on module free.
6785         * modules/strtok_r: Depend on module restrict.
6786
6787 2006-01-10  Bruno Haible  <bruno@clisp.org>
6788
6789         * modules/gettext (configure.ac): Add an invocation of
6790         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
6791
6792 2006-01-10  Bruno Haible  <bruno@clisp.org>
6793
6794         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
6795         Reported by Werner Lemberg <wl@gnu.org>.
6796
6797 2006-01-10  Bruno Haible  <bruno@clisp.org>
6798
6799         * lib/localcharset.c: Update from GNU gettext.
6800
6801 2006-01-10  Bruno Haible  <bruno@clisp.org>
6802
6803         * lib/argp.h (__const): Remove macro. Use const instead.
6804         * lib/argp-fmtstream.h (__const): Likewise.
6805         * lib/glob_.h (__const): Remove macro.
6806         * lib/glob-libc.h: Use const instead of __const.
6807
6808 2006-01-10  Bruno Haible  <bruno@clisp.org>
6809
6810         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
6811         variable.
6812         Needed to avoid an automake error regarding the 'gettext' module.
6813
6814 2006-01-09  Simon Josefsson  <jas@extundo.com>
6815
6816         * modules/inet_ntop (Depends-on): Add restrict.
6817
6818 2006-01-09  Simon Josefsson  <jas@extundo.com>
6819
6820         * modules/gc-rijndael-tests (License): Put under LGPL.
6821
6822         * modules/gc-des-tests (License): Likewise.
6823
6824         * modules/gc-arcfour-tests (License): Likewise.
6825
6826         * modules/gc-arctwo-tests (License): Likewise.
6827
6828         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
6829
6830         * modules/gc-hmac-sha1-tests (Files): Likewise.
6831
6832         * modules/gc-hmac-md5-tests (License): Likewise.
6833
6834         * modules/gc-sha1-tests (License): Likewise.
6835
6836         * modules/gc-md5-tests (License): Likewise.
6837
6838         * modules/gc-md4-tests (License): Likewise.
6839
6840         * modules/gc-md2-tests (License): Likewise.
6841
6842         * modules/gc-tests (License): Likewise.
6843
6844         * modules/des-tests (License): Likewise.
6845
6846         * modules/md4-tests (License): Likewise.
6847
6848         * modules/md2-tests (License): Likewise.
6849
6850 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6851
6852         Sync from coreutils:
6853
6854         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
6855         * modules/lib-ignore: New file.
6856         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
6857         chdir-safer.m4, lchmod.m4.
6858         * modules/openat: Add mkdirat.c, openat-priv.h.
6859
6860 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6861
6862         Sync from coreutils.
6863         * m4/lib-ignore.m4: New file.
6864         * m4/lchmod.m4: New file.
6865
6866 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6867
6868         Sync from coreutils.
6869         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
6870         for write access: POSIX says that must fail.
6871         * lib/fts.c (diropen): Likewise.
6872         * lib/save-cwd.c (save_cwd): Likewise.
6873         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
6874         well, for minor improvements on hosts that lack O_DIRECTORY.
6875         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
6876         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
6877         Fall back on chown if open failed with EACCES.
6878
6879         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
6880         Report an error at compile-time if only a 1-second nominal clock
6881         resolution is found.
6882
6883         * lib/lchmod.h: New file.
6884         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
6885         (make_dir_parents): Use lchown rather than chown, and
6886         lchmod rather than chmod.
6887
6888         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
6889         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
6890         "proc" reported by n0dalus.
6891
6892         * lib/mountlist.c: Include <limits.h>.
6893         (dev_from_mount_options)
6894         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
6895         New function.  It no longer assumes "dev=" has the System V meaning
6896         on Linux (since it doesn't).  It also parses "dev=" more carefully.
6897         (read_file_system_list)
6898         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
6899         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
6900         dev= in that case.
6901
6902         * lib/posixtm.h (PDS_PRE_2000): New macro.
6903         * lib/posixtm.c (year): Arg is now syntax_bits rather than
6904         allow_century.  All usages changed.  Reject dates outside the range
6905         1969-1999 if PDS_PRE_2000 is used.
6906
6907 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6908
6909         Sync from coreutils.
6910         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
6911         (Time of day items): Mention the possibility of leap seconds.
6912         Problem reported by Dr. David Alan Gilbert.
6913
6914 2006-01-09  Jim Meyering  <jim@meyering.net>
6915
6916         Sync from coreutils.
6917
6918         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
6919
6920         * lib/chdir-safer.h, chdir-safer.c: New files.
6921
6922         * lib/modechange.c (mode_compile): Reject an invalid mode string
6923         that starts with an octal digit.  From Andreas Gruenbacher.
6924
6925         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
6926         and dup to open_safer and dup_safer, respectively.
6927         (openat_permissive): Fix typo in comment.
6928
6929         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
6930         "gettext.h"; either no longer needed or are guaranteed by openat.h.
6931         (_): Remove; no longer needed.
6932         (openat): Renamed from rpl_openat; no need for rpl_openat
6933         since openat.h renames openat for us.
6934         Replace most of the body with a call to openat_permissive,
6935         to avoid duplicate code.
6936         Port to (probably hypothetical) environments were mode_t is
6937         wider than int.
6938         (openat_permissive): Require mode arg, so that we can check
6939         types better.  Put it just after flags.  Change cwd failure
6940         indicator from pointer-to-bool to pointer-to-errno-value.
6941         All callers changed.
6942         Invoke openat_save_fail and/or openat_restore_fail if
6943         cwd_errno is null, so that openat can call us.
6944         (openat_permissive, fdopendir, fstatat, unlinkat):
6945         Simplify errno handling to avoid some duplicate code,
6946         as it's OK to set errno on success.
6947         * lib/openat.h: Revamp code so that function macros depend on
6948         __OPENAT_PREFIX only, not also on AT_FDCWD.
6949         (openat_ro): Remove.  Caller changed to use openat_permissive.
6950         (openat_permissive): Now a macro, if not a function.
6951         (openat_restore_fail, openat_save_fail): Now always functions,
6952         since mkdirat needs them even if __OPENAT_PREFIX is defined.
6953
6954         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
6955         and openat.c.
6956         * lib/mkdirat.c: Include openat-priv.h.
6957         Remove definitions of macros defined therein.
6958         * lib/openat.c: Likewise.
6959
6960         * lib/mkdirat.c (mkdirat): New file and function.
6961         * lib/openat.h (mkdirat): Declare.
6962
6963         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
6964
6965         * lib/openat.h (openat_permissive): Declare.
6966         (openat_ro): Define.
6967
6968         * lib/openat.c (EXPECTED_ERRNO): New macro.
6969         (openat_permissive): New function -- used in remove.c rewrite.
6970         (all functions): Set errno just before returning, only if there
6971         was an actual failure.
6972         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
6973
6974         Emulate openat-family functions using Linux's procfs, if possible.
6975         Idea and some code based on Ulrich Drepper's glibc changes.
6976
6977         * lib/openat.c: (BUILD_PROC_NAME): New macro.
6978         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
6979         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
6980         before falling back on save_cwd and restore_cwd.
6981         (fdopendir, fstatat, unlinkat): Likewise.
6982
6983         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
6984         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
6985
6986         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
6987         as second argument to va_arg.  Otherwise, some versions of gcc
6988         warn that `if this code is reached, the program will abort'.
6989
6990 2006-01-09  Jim Meyering  <jim@meyering.net>
6991
6992         Sync from coreutils.
6993         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
6994         Require openat-priv.h.
6995
6996 2006-01-09  Bruno Haible  <bruno@clisp.org>
6997
6998         * modules/strnlen (Include): Use strnlen.h.
6999
7000 2006-01-09  Bruno Haible  <bruno@clisp.org>
7001
7002         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
7003
7004 2006-01-09  Bruno Haible  <bruno@clisp.org>
7005
7006         * lib/sysexit_.h (EX_OK): New macro.
7007         Suggested by Martin Lambers <marlam@marlam.de>.
7008
7009 2006-01-09  Bruno Haible  <bruno@clisp.org>
7010
7011         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
7012         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
7013
7014 2006-01-09  Bruno Haible  <bruno@clisp.org>
7015
7016         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
7017         numbers.
7018
7019 2006-01-09  Bruno Haible  <bruno@clisp.org>
7020
7021         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
7022         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
7023         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
7024         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
7025
7026 2006-01-09  Bruno Haible  <bruno@clisp.org>
7027
7028         * build-aux/javacomp.sh.in: New file, moved from lib/.
7029         * modules/javacomp-script (Files): Update.
7030         (configure.ac): Add AC_CONFIG_FILES invocation.
7031         (EXTRA_DIST): Remove variable.
7032
7033         * build-aux/javaexec.sh.in: New file, moved from lib/.
7034         * modules/javaexec (Files): Update.
7035         (configure.ac): Add AC_CONFIG_FILES invocation.
7036         (EXTRA_DIST): Remove javaexec.sh.in.
7037
7038         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
7039         * modules/csharpcomp-script (Files): Update.
7040         (configure.ac): Add AC_CONFIG_FILES invocation.
7041         (EXTRA_DIST): Remove variable.
7042
7043         * build-aux/csharpexec.sh.in: New file, moved from lib/.
7044         * modules/csharpexec (Files): Update.
7045         (configure.ac): Add AC_CONFIG_FILES invocation.
7046         (EXTRA_DIST): Remove csharpexec.sh.in.
7047
7048 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
7049
7050         Sync from coreutils.
7051
7052         Add POSIX ACL support
7053         * lib/acl.h (copy_acl, set_acl): Add declarations.
7054         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
7055         systems other than Linux.
7056         (chmod_or_fchmod): New function: use fchmod when possible,
7057         and chmod otherwise.
7058         (file_has_acl): Add a POSIX ACL implementation, with a
7059         Linux-specific subcase.
7060         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
7061         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
7062         acls are unsupported.
7063         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
7064         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
7065         are unsupported.
7066
7067 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
7068
7069         Sync from coreutils.
7070         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
7071
7072 2006-01-07  Bruno Haible  <bruno@clisp.org>
7073
7074         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
7075         gl_EARLY.
7076
7077 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7078
7079         * lib/strftime.c (tzname): Don't declare if it is already #defined.
7080         Problem reported for Mingw by Mark Junker.
7081
7082 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7083
7084         * README: Gnulib normally doesn't generate a tarball.
7085
7086 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
7087
7088         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
7089         long int, not int, for nanosecond counts, so that people who are
7090         used to POSIX struct timespec won't be surprised.  Reported by Jim
7091         Meyering.
7092
7093 2005-12-28  Bruno Haible  <bruno@clisp.org>
7094
7095         * build-aux/config.rpath: Update from GNU gettext.
7096
7097 2005-12-16  Jim Meyering  <jim@meyering.net>
7098
7099         * modules/fprintftime: New module.
7100         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
7101
7102 2005-12-16  Jim Meyering  <jim@meyering.net>
7103
7104         * m4/fprintftime.m4: New file.
7105
7106 2005-12-16  Jim Meyering  <jim@meyering.net>
7107
7108         * lib/fprintftime.c, fprintftime.h: New files.
7109
7110 2005-12-15  Simon Josefsson  <jas@extundo.com>
7111
7112         * modules/socklen (configure.ac): Fix M4 macro name, to align with
7113         new m4/socklen.m4.
7114
7115 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7116
7117         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
7118         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
7119
7120 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7121
7122         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
7123         * lib/argp-help.c (fill_in_uparams): Check if the constructed
7124         struct uparams is valid. Fall back to the default values if it is
7125         not.
7126
7127 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7128
7129         * modules/argp (Files): Add argp-pin.c
7130         (Depends-on): dirname
7131         (lib_SOURCES): Add argp-pin.c
7132
7133 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7134
7135         * m4/argp.m4:  Check if program_invocation_name and
7136         program_invocation_short_name are declared and define appropriate
7137         macros if they are not.
7138
7139 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7140
7141         * lib/argp-help.c (__argp_base_name): New function
7142         (__argp_short_program_name): Rewrite using __argp_base_name
7143         * lib/argp-namefrob.h: Define program_invocation_name and
7144         program_invocation_short_name if requested
7145         (__argp_base_name): Add prototype
7146         * lib/argp-parse.c (argp_def): Use gettext wrappers
7147         (argp_default_parser): Use __argp_base_name
7148         * lib/argp-pin.c: New file. Defines program_invocation_name and
7149         program_invocation_short_name on systems that lack them.
7150
7151 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
7152
7153         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
7154         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
7155         porting problem reported by Georg Schwarz in
7156         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
7157
7158 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
7159
7160         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
7161         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
7162         porting problem reported by Georg Schwarz in
7163         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
7164
7165 2005-12-05  Bruno Haible  <bruno@clisp.org>
7166
7167         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
7168         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
7169         Reported by Mark Junker <mjscod@gmx.de>.
7170
7171 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7172
7173         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
7174         Use implementation from Albert Chin, with some
7175         comments/corrections by Stepan Kasal and myself.
7176
7177 2005-12-02  Bruno Haible  <bruno@clisp.org>
7178
7179         * gnulib-tool (func_import): Accept GPLed build tool modules when
7180         --lgpl is given.
7181         * modules/csharpcomp-script: New file.
7182         * modules/csharpcomp: Depend on it.
7183         * modules/javacomp-script: New file.
7184         * modules/javacomp: Depend on it.
7185         Suggested by Simon Josefsson.
7186
7187 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7188
7189         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
7190         statement, to work around an HP-UX 10.20 compiler bug reported by
7191         Peter O'Gorman.
7192
7193 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
7194
7195         * modules/savedir (Depends-on): Add openat.
7196
7197 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
7198
7199         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
7200         (uintmax_t) [defined uintmax_t]: Do not declare.
7201         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
7202         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
7203         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
7204         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
7205         sake of portability to weird hosts that C allows (though we don't
7206         know of any practical examples).
7207
7208         * lib/savedir.h (fdsavedir): New decl.
7209         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
7210         contains most of the former guts of savedir.
7211         (savedir): Use savedirstream.
7212         Include "openat.h".
7213
7214 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7215
7216         * modules/obstack (Files): Add m4/ulonglong.m4.
7217         Problem reported by Davide Angelocola.
7218
7219 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7220
7221         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
7222         coreutils no longer futzes with rounding modes.
7223
7224 2005-11-14  Jim Meyering  <jim@meyering.net>
7225
7226         * lib/mkstemp-safer.c: Include <config.h>, required for possible
7227         replacement of mkstemp.
7228
7229 2005-11-10  Simon Josefsson  <jas@extundo.com>
7230
7231         * lib/readline.c: Remove EOL.
7232
7233 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7234
7235         * modules/gethrxtime (Depends-on): Add gettime.
7236
7237 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7238
7239         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
7240         or gettimeofday; no longer needed.
7241
7242 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7243
7244         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
7245         time business.
7246         (gethrxtime) [! (HAVE_NANOUPTIME
7247         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
7248         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
7249         our own approximation.
7250
7251 2005-11-08  Eric Blake  <ebb9@byu.net>
7252
7253         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
7254
7255 2005-11-08  Eric Blake  <ebb9@byu.net>
7256
7257         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
7258
7259 2005-11-04  Bruno Haible  <bruno@clisp.org>
7260
7261         * gnulib-tool: Implement --update mode.
7262
7263 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7264
7265         Fix porting problem reported by Theodoros V. Kalamatianos.
7266         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
7267         Don't assume that futimes failing means we must fail.
7268
7269 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7270
7271         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
7272         variables to suggest the intended function of the PATH_MAX check.
7273
7274 2005-10-30  Kean Johnston  <jkj@sco.com>
7275
7276         Trivial changes to support SCO systems.
7277         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
7278         as PATH_MAX.
7279         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
7280         where __ptr is null when no I/O is pending.
7281
7282 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
7283
7284         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
7285         leave errno alone.  Problem reported by Dmitry V. Levin.
7286
7287 2005-10-28  Simon Josefsson  <jas@extundo.com>
7288
7289         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
7290         Test more.
7291
7292         * tests/test-gc-md2.c, tests/test-md2.c: New files.
7293
7294         * modules/md2, modules/md2-tests: New files.
7295
7296 2005-10-28  Simon Josefsson  <jas@extundo.com>
7297
7298         * m4/inet_ntop.m4: More tests.
7299
7300         * m4/gc-md2.m4, md2.m4: New file.
7301
7302 2005-10-28  Simon Josefsson  <jas@extundo.com>
7303
7304         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
7305         "restrict" keywords, as per POSIX.  Protect the function
7306         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
7307         Don't use K&R prototypes.  Check the sprintf return values.
7308         Re-define EAFNOSUPPORT if not present.  Indent.
7309
7310         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
7311         suggested by Bruno Haible <bruno@clisp.org>.
7312
7313         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
7314
7315         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
7316
7317         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
7318         libgcrypt).
7319
7320         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
7321
7322         * lib/md2.h, md2.c: New files.
7323
7324 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
7325
7326         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
7327         errno alone.  Problem reported by Frederic Jolliton.
7328
7329 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7330
7331         * modules/verify (License): Change from GPL to LGPL.  This is a
7332         tiny module and there are apparently near-equivalents that are
7333         under the BSD license.
7334
7335 2005-10-24  Simon Josefsson  <jas@extundo.com>
7336
7337         * modules/sha1: Relicense to LGPL.
7338
7339 2005-10-24  Simon Josefsson  <jas@extundo.com>
7340
7341         * lib/md4.h: Shrink buffer size, now that we changed the type.
7342
7343 2005-10-23  Simon Josefsson  <jas@extundo.com>
7344
7345         * gnulib-tool (func_import): Fix --tests-base.
7346
7347 2005-10-22  Simon Josefsson  <jas@extundo.com>
7348
7349         * modules/arcfour (Depends-on): Need stdint.
7350
7351 2005-10-22  Simon Josefsson  <jas@extundo.com>
7352
7353         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
7354         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
7355
7356 2005-10-22  Simon Josefsson  <jas@extundo.com>
7357
7358         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
7359         suggested by Bruno Haible <bruno@clisp.org>.
7360
7361 2005-10-22  Simon Josefsson  <jas@extundo.com>
7362
7363         * lib/crc.h: Include stddef.h, for size_t.
7364
7365 2005-10-22  Simon Josefsson  <jas@extundo.com>
7366
7367         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
7368         arcfour_context struct (simplify test vector testing in GNU
7369         Shishi).
7370
7371 2005-10-21  Simon Josefsson  <jas@extundo.com>
7372
7373         * modules/des, modules/des-tests: New files.
7374
7375         * modules/gc-des, modules/gc-des-tests: New files.
7376
7377         * tests/test-des.c, tests/test-gc-des.c: New file.
7378
7379 2005-10-21  Simon Josefsson  <jas@extundo.com>
7380
7381         * modules/arctwo, modules/arctwo-tests: New files.
7382
7383         * tests/test-arctwo.c: New file.
7384
7385         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
7386
7387         * tests/test-gc-arctwo.c: New file.
7388
7389 2005-10-21  Simon Josefsson  <jas@extundo.com>
7390
7391         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
7392         Bruno Haible <bruno@clisp.org>.
7393
7394         * m4/gc-des.m4: New file.
7395
7396 2005-10-21  Simon Josefsson  <jas@extundo.com>
7397
7398         * m4/arctwo.m4: New file.
7399
7400         * m4/gc-arctwo.m4: New file.
7401
7402 2005-10-21  Simon Josefsson  <jas@extundo.com>
7403
7404         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
7405         block.
7406
7407 2005-10-21  Simon Josefsson  <jas@extundo.com>
7408
7409         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
7410         <bruno@clisp.org>.
7411
7412         * lib/hmac-sha1.c (hmac_sha1): Likewise.
7413
7414         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
7415         Bruno Haible <bruno@clisp.org>.
7416
7417         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
7418         <bruno@clisp.org>.
7419
7420 2005-10-21  Simon Josefsson  <jas@extundo.com>
7421
7422         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
7423
7424 2005-10-21  Simon Josefsson  <jas@extundo.com>
7425
7426         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
7427
7428 2005-10-21  Simon Josefsson  <jas@extundo.com>
7429
7430         * lib/des.h, des.c: New files.
7431
7432         * lib/gc-gnulib.c: Support DES.c
7433
7434 2005-10-21  Simon Josefsson  <jas@extundo.com>
7435
7436         * lib/arctwo.h, arctwo.c: New files.
7437
7438         * lib/gc-gnulib.c: Support ARCTWO.
7439
7440 2005-10-21  Simon Josefsson  <jas@extundo.com>
7441
7442         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
7443         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7444
7445 2005-10-21  Simon Josefsson  <jas@extundo.com>
7446
7447         * gnulib-tool (func_import, func_create_testdir): Define automake
7448         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
7449         Makefile.am snippet),
7450         suggested by Bruno Haible <bruno@clisp.org>.
7451
7452         * modules/gc (Makefile.am): Use it.
7453
7454 2005-10-21  Bruno Haible  <bruno@clisp.org>
7455
7456         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
7457         patch.
7458
7459 2005-10-19  Simon Josefsson  <jas@extundo.com>
7460
7461         * tests/test-gc-rijndael.c: New file.
7462
7463         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
7464
7465 2005-10-19  Simon Josefsson  <jas@extundo.com>
7466
7467         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
7468         interface too.
7469
7470 2005-10-19  Simon Josefsson  <jas@extundo.com>
7471
7472         * tests/test-gc-arcfour.c: New file.
7473
7474         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
7475
7476 2005-10-19  Simon Josefsson  <jas@extundo.com>
7477
7478         * modules/gc-md4, modules/gc-md4-tests: New file.
7479
7480         * tests/test-gc-md4.c: New file.
7481
7482 2005-10-19  Simon Josefsson  <jas@extundo.com>
7483
7484         * m4/gc-md4.m4: New file.
7485
7486 2005-10-19  Simon Josefsson  <jas@extundo.com>
7487
7488         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
7489         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
7490         <kasal@ucw.cz>.
7491
7492 2005-10-19  Simon Josefsson  <jas@extundo.com>
7493
7494         * m4/gc-arcfour.m4: New file.
7495
7496         * m4/gc-rijndael.m4: New file.
7497
7498 2005-10-19  Simon Josefsson  <jas@extundo.com>
7499
7500         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
7501
7502 2005-10-19  Simon Josefsson  <jas@extundo.com>
7503
7504         * lib/gc-gnulib.c: Support ARCFOUR.
7505
7506 2005-10-19  Simon Josefsson  <jas@extundo.com>
7507
7508         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
7509         support.
7510
7511         * lib/gc.h: Add ECB enum type.
7512
7513         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
7514
7515 2005-10-18  Simon Josefsson  <jas@extundo.com>
7516
7517         * tests/test-md5.c: New file.
7518
7519         * modules/md5-tests: New file.
7520
7521 2005-10-18  Simon Josefsson  <jas@extundo.com>
7522
7523         * tests/test-md4.c: New file.
7524
7525         * modules/md4, modules/md4-tests: New files.
7526
7527 2005-10-18  Simon Josefsson  <jas@extundo.com>
7528
7529         * m4/md4.m4: New file.
7530
7531 2005-10-18  Simon Josefsson  <jas@extundo.com>
7532
7533         * lib/md4.h, md4.c: New files, based on md5.?.
7534
7535 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
7536
7537         * gnulib-tool (func_create_testdir): Omit the second check whether
7538         BUILT_SOURCES in nonempty.
7539
7540 2005-10-17  Simon Josefsson  <jas@extundo.com>
7541
7542         * tests/test-rijndael.c: New file.
7543
7544 2005-10-17  Simon Josefsson  <jas@extundo.com>
7545
7546         * modules/sha1: Depend on stdint instead of md5.
7547
7548         * modules/md5: Depend on stdint, remove uint32_t.
7549
7550 2005-10-17  Simon Josefsson  <jas@extundo.com>
7551
7552         * modules/gc-sha1-tests: New file.
7553
7554         * tests/test-gc-sha1.c: New file.
7555
7556 2005-10-17  Simon Josefsson  <jas@extundo.com>
7557
7558         * m4/md5.m4: Remove call to uint32_t.m4.
7559
7560 2005-10-17  Simon Josefsson  <jas@extundo.com>
7561
7562         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
7563
7564         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
7565         md5.h.
7566
7567         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
7568
7569         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
7570
7571 2005-10-17  Simon Josefsson  <jas@extundo.com>
7572
7573         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
7574
7575 2005-10-17  Simon Josefsson  <jas@extundo.com>
7576
7577         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
7578
7579 2005-10-17  Simon Josefsson  <jas@extundo.com>
7580
7581         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
7582
7583         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
7584
7585 2005-10-17  Bruno Haible  <bruno@clisp.org>
7586
7587         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
7588         that it can also be used in a test.
7589
7590 2005-10-16  Bruno Haible  <bruno@clisp.org>
7591
7592         * gnulib-tool (func_emit_tests_Makefile_am): Also define
7593         TESTS_ENVIRONMENT, so that individual tests can augment it.
7594
7595         * gnulib-tool (func_create_testdir): Use an intermediate target for
7596         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
7597         macros, like $(ALLOCA_H), which cannot be passed through the command
7598         line.
7599
7600 2005-10-15  Simon Josefsson  <jas@extundo.com>
7601
7602         * modules/rijndael-tests: New file.
7603
7604         * modules/rijndael: New file.
7605
7606 2005-10-15  Simon Josefsson  <jas@extundo.com>
7607
7608         * m4/rijndael.m4: New file.
7609
7610 2005-10-15  Simon Josefsson  <jas@extundo.com>
7611
7612         * lib/rijndael-api-fst.h, rijndael-api-fst.c: New files.
7613
7614         * lib/rijndael-alg-fst.h, rijndael-alg-fst.c: New files.
7615
7616 2005-10-14  Simon Josefsson  <jas@extundo.com>
7617
7618         * tests/test-arcfour.c: New file.
7619
7620         * modules/arcfour, modules/arcfour-tests: New files.
7621
7622 2005-10-14  Simon Josefsson  <jas@extundo.com>
7623
7624         * m4/arcfour.m4: New file.
7625
7626 2005-10-14  Simon Josefsson  <jas@extundo.com>
7627
7628         * lib/arcfour.h, arcfour.c: New files.
7629
7630 2005-10-14  Roland McGrath  <roland@redhat.com>
7631
7632         Import from libc.  [BZ #1331]
7633         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
7634         macro argument.
7635         Reported by Matej Vela <vela@debian.org>.
7636
7637 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7638
7639         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
7640         include <wchar.h>; no longer needed.
7641
7642 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7643
7644         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
7645
7646 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
7647         and  Ulrich Drepper  <drepper@redhat.com>
7648
7649         Import from libc.
7650         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
7651         instead of inline stream orientation test and two separate
7652         function calls.  Pay no attention to USE_IN_LIBIO.
7653
7654 2005-10-13  Simon Josefsson  <jas@extundo.com>
7655
7656         * modules/gc-hmac-md5-tests: New file.
7657
7658         * tests/test-gc-hmac-sha1.c: New file.
7659
7660         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
7661
7662         * modules/gc-hmac-md5-tests: New file.
7663
7664         * tests/test-gc-md5.c: New file.
7665
7666         * modules/gc-md5-tests: New file.
7667
7668 2005-10-13  Simon Josefsson  <jas@extundo.com>
7669
7670         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
7671         Move memory allocation outside of loop.
7672
7673 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7674
7675         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
7676         intermediate directory is in a read-only file system.  Problem
7677         reported by Eric Blake.
7678
7679 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
7680
7681         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
7682
7683 2005-10-12  Simon Josefsson  <jas@extundo.com>
7684
7685         * tests/test-hmac-sha1.c: New file.
7686
7687         * modules/hmac-sha1-tests: New file.
7688
7689         * modules/hmac-sha1: New file.
7690
7691 2005-10-12  Simon Josefsson  <jas@extundo.com>
7692
7693         * modules/gc-sha1: New file.
7694
7695 2005-10-12  Simon Josefsson  <jas@extundo.com>
7696
7697         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
7698
7699         * tests/test-gc-pbkdf2-sha1.c: New file.
7700
7701 2005-10-12  Simon Josefsson  <jas@extundo.com>
7702
7703         * modules/gc-md5, modules/gc-hmac-md5: New files.
7704
7705         * modules/gc (Files): Remove md5, memxor and hmac files.
7706
7707 2005-10-12  Simon Josefsson  <jas@extundo.com>
7708
7709         * m4/gc-pbkdf2-sha1.m4: New file.
7710
7711         * m4/gc-hmac-sha1.m4: New file.
7712
7713         * m4/gc-sha1: New file.
7714
7715         * m4/hmac-sha1.m4: New file.
7716
7717 2005-10-12  Simon Josefsson  <jas@extundo.com>
7718
7719         * m4/gc-md5.m4, gc-hmac-md5: New files.
7720
7721         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
7722
7723 2005-10-12  Simon Josefsson  <jas@extundo.com>
7724
7725         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
7726         suggested by Bruno Haible <bruno@clisp.org>.
7727
7728 2005-10-12  Simon Josefsson  <jas@extundo.com>
7729
7730         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
7731
7732 2005-10-12  Simon Josefsson  <jas@extundo.com>
7733
7734         * lib/gc-pbkdf2-sha1.c: New file.
7735
7736         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
7737
7738 2005-10-12  Simon Josefsson  <jas@extundo.com>
7739
7740         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
7741
7742         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
7743
7744 2005-10-12  Simon Josefsson  <jas@extundo.com>
7745
7746         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
7747         GC_USE_HMAC_MD5, respectively.
7748
7749         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
7750         (gc_md5): Fix typo.
7751
7752         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
7753
7754         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
7755
7756         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
7757
7758 2005-10-12  Bruno Haible  <bruno@clisp.org>
7759
7760         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
7761         Reported by Stepan Kasal <kasal@ucw.cz>.
7762
7763 2005-10-11  Simon Josefsson  <jas@extundo.com>
7764
7765         * tests/test-crc.c: New file.
7766
7767         * modules/crc, modules/crc-tests: New files.
7768
7769 2005-10-11  Simon Josefsson  <jas@extundo.com>
7770
7771         * m4/crc.m4: New file.
7772
7773 2005-10-11  Simon Josefsson  <jas@extundo.com>
7774
7775         * lib/gc.h: Add gc_hash and gc_hash_buffer.
7776
7777         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
7778
7779         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
7780
7781 2005-10-11  Simon Josefsson  <jas@extundo.com>
7782
7783         * lib/crc.h, crc.c: New files.
7784
7785         * lib/gc.h (gc_hash_buffer): Add doc.
7786
7787 2005-10-11  Bruno Haible  <bruno@clisp.org>
7788
7789         * modules/c-strcasestr: New file.
7790         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
7791
7792 2005-10-11  Bruno Haible  <bruno@clisp.org>
7793
7794         * modules/c-strcase: New file.
7795         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
7796
7797 2005-10-11  Bruno Haible  <bruno@clisp.org>
7798
7799         * lib/strcasecmp.c: Include limits.h.
7800         (strcasecmp): Avoid integer overflow on exotic platforms.
7801         * lib/strncasecmp.c: Include limits.h.
7802         (strncasecmp): Avoid integer overflow on exotic platforms.
7803         Reported by Paul Eggert.
7804
7805 2005-10-11  Bruno Haible  <bruno@clisp.org>
7806
7807         * lib/c-strcasestr.h: New file, from GNU gettext.
7808         * lib/c-strcasestr.c: New file, from GNU gettext.
7809
7810 2005-10-11  Bruno Haible  <bruno@clisp.org>
7811
7812         * lib/c-strcase.h: New file, from GNU gettext.
7813         * lib/c-strcasecmp.c: New file, from GNU gettext.
7814         * lib/c-strncasecmp.c: New file, from GNU gettext.
7815
7816 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7817
7818         * modules/mempcpy (License): GPL -> LGPL.
7819         * modules/strchrnul (License): Likewise.
7820         * modules/sysexits (License): Likewise.
7821
7822 2005-10-08  Simon Josefsson  <jas@extundo.com>
7823
7824         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
7825
7826 2005-10-07  Simon Josefsson  <jas@extundo.com>
7827
7828         * m4/memxor.m4: Remove gl_C_RESTRICT call.
7829
7830 2005-10-06  Simon Josefsson  <jas@extundo.com>
7831
7832         * tests/test-hmac-md5.c: New file.
7833
7834         * modules/hmac-md5-tests: New file.
7835
7836         * modules/hmac-md5: New file.
7837
7838 2005-10-06  Simon Josefsson  <jas@extundo.com>
7839
7840         * m4/hmac-md5.m4: New file.
7841
7842         * m4/memxor.m4: Require gl_C_RESTRICT.
7843
7844 2005-10-06  Simon Josefsson  <jas@extundo.com>
7845
7846         * lib/memxor.c (memxor): Avoid casts and warnings.
7847
7848 2005-10-06  Simon Josefsson  <jas@extundo.com>
7849
7850         * lib/hmac-md5.c: New file.
7851
7852         * lib/hmac.h: New file.
7853
7854 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
7855
7856         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
7857         promotes to int, not unsigned int, to catch the AIX 5.3
7858         compiler bug.
7859
7860 2005-10-05  Simon Josefsson  <jas@extundo.com>
7861
7862         * modules/memxor: New file.
7863
7864         * modules/iconv (Files): Move config.rpath to havelib, it is used
7865         there.
7866
7867         * modules/havelib (Files): Add config.rpath.
7868
7869 2005-10-05  Simon Josefsson  <jas@extundo.com>
7870
7871         * m4/memxor.m4: New file.
7872
7873 2005-10-05  Simon Josefsson  <jas@extundo.com>
7874
7875         * lib/memxor.c (memxor): Fix compiler error.
7876
7877         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
7878         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
7879
7880         * lib/memxor.h, memxor.c: New files.
7881
7882         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
7883         we assume all systems have it, suggested by Jim Meyering
7884         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
7885         any systems lack sys/socket.h; mingw32 is known to lack it, but we
7886         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
7887         same reasons.
7888
7889 2005-10-05  Simon Josefsson  <jas@extundo.com>
7890
7891         * config/srclist.txt: Add glibc bug 1423 for md5.h.
7892
7893 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7894
7895         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
7896         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
7897         needed, since the source code now assumes these .h files.
7898
7899 2005-10-05  Derek Price  <derek@ximbiot.com>
7900
7901         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
7902
7903 2005-10-05  Bruno Haible  <bruno@clisp.org>
7904
7905         * modules/stdint (License): Change to LGPL.
7906
7907 2005-10-04  Simon Josefsson  <jas@extundo.com>
7908
7909         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
7910         D. Baushke" <mdb@gnu.org>.
7911
7912 2005-10-04  Bruno Haible  <bruno@clisp.org>
7913
7914         * lib/verify.h (verify_true): Provide alternative definition for C++.
7915
7916 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7917
7918         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
7919         (SSIZE_MAX): New macro, if not already defined.
7920         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
7921         than 2 GiB.
7922
7923 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7924
7925         Sync from coreutils.
7926         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
7927         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
7928         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
7929         ULLONG_MAX doesn't work with 2.7.2.1.
7930
7931 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7932
7933         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
7934         From Ben Pfaff.
7935
7936         * modules/exclude (Depends-on): Depend on verify.
7937         * modules/strtoimax (Depends-on): Likewise.
7938         * modules/utimecmp (Depends-on): Likewise.
7939
7940 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7941
7942         * lib/exclude.c: Include verify.h.
7943         (verify): Remove.  All callers changed to use verify.h's version.
7944         * lib/strtoimax.c: Likewise.
7945         * lib/utimecmp.c: Likewis.e
7946
7947         Sync from coreutils.
7948         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
7949         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
7950         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
7951         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
7952         bother returning ENOSYS if settimeofday or stime fails; just let
7953         them return whatever errno they want to return.
7954         * lib/utimens.c: Include unistd.h, for dup2.
7955         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
7956         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
7957
7958 2005-10-02  Jim Meyering  <jim@meyering.net>
7959
7960         Sync from coreutils.
7961         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
7962         from glibc-2.2.5 that fails for read-only files.
7963
7964 2005-10-02  Jim Meyering  <jim@meyering.net>
7965
7966         Sync from coreutils.
7967         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
7968         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
7969         `#if HAVE_CONFIG_H'.
7970         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
7971         Remove AT_FDCWD test.
7972         Do not consume the fd unless successful.
7973         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
7974         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
7975         block, so that we don't even try to compile it if settimeofday is
7976         available.  This works around a compilation failure on OSF1 V5.1,
7977         due to stime requiring a `long int*' while tv_sec is `int'.
7978
7979 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
7980
7981         Sync from coreutils.
7982         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
7983         against `yes', rather than just testing for nonempty.
7984
7985 2005-10-01  Simon Josefsson  <jas@extundo.com>
7986
7987         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
7988         and Darwin.
7989
7990         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
7991         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
7992         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
7993         freeaddrinfo and gai_strerror are declared by the POSIX headers.
7994         Check if struct addrinfo is declared.
7995
7996 2005-10-01  Simon Josefsson  <jas@extundo.com>
7997
7998         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
7999         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
8000         AI_* and EAI_* definitions.  Protect function declarations.
8001
8002 2005-10-01  Jim Meyering  <jim@meyering.net>
8003
8004         Sync from coreutils.
8005
8006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
8007         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
8008         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
8009         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
8010         in the inet and nsl libraries.  Required on Solaris 5.7.
8011
8012 2005-10-01  Jim Meyering  <jim@meyering.net>
8013
8014         Sync from coreutils.
8015         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
8016         in the inet and nsl libraries.  Required on Solaris 5.7.
8017
8018 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
8019
8020         * lib/getdelim.c (getdelim): Remove unused variables.
8021
8022 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
8023
8024         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
8025         so that the code works even with ancient cpp.  Portability problem
8026         with GCC 2.7.2.1 reported by Thomas M.Ott.
8027
8028 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
8029
8030         * modules/regex (Depends-on): Add strcase.
8031
8032         * modules/gethostname (Licence): Change from GPL to LGPL, since
8033         gethostname.c is a trivial implementation of a standard library
8034         function.
8035         * modules/poll (License): Change from GPL to LGPL, since it's
8036         derived from LGPL code.
8037
8038 2005-09-27  Jim Meyering  <jim@meyering.net>
8039
8040         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
8041         HAVE_CONFIG_H.
8042
8043         * lib/intprops.h (signed_type_or_expr__): Define.
8044         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
8045         for unsigned types.
8046
8047 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8048
8049         * lib/verify.h (verify_expr): Remove, replacing with:
8050         (verify_true): New macro that returns true instead of void.
8051         (verify_type__): Remove.
8052         (verify): Use verify_true rather than verify_type__.
8053
8054 2005-09-26  Bruno Haible  <bruno@clisp.org>
8055
8056         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
8057         is necessary.
8058         (lib_SOURCES): Remove mbchar.c.
8059         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
8060         (Files): Add m4/mbrtowc.m4.
8061         * modules/mbiter: Likewise.
8062         * modules/mbuiter: Likewise.
8063
8064 2005-09-26  Bruno Haible  <bruno@clisp.org>
8065
8066         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
8067         compile mbchar.c if they are not both present.
8068         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
8069         * m4/mbiter.m4 (gl_MBITER): Likewise.
8070         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
8071         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
8072         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
8073
8074 2005-09-25  Jim Meyering  <jim@meyering.net>
8075
8076         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
8077         also uses socklen_t.
8078
8079 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8080
8081         * lib/utimens.c (ENOSYS): Define if not already defined.
8082         (futimens): Support having a null PATH if the file descriptor
8083         is nonnegative.
8084
8085         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
8086         Remove.
8087         (__attribute): Define to empty unless GCC 3.1 or later.
8088         This works around a core dump on OpenBSD 3.4, which has GCC
8089         2.95.3, which dumps core when given __attribute__(()).  It also
8090         simplifies other tests, since we really don't want to bother with
8091         worrying about which ancient version of GCC supported what.
8092         Original problem reported by Yoann Vandoorselaere, with part of
8093         the fix suggested by Derek Price.
8094
8095 2005-09-24  Jim Meyering  <jim@meyering.net>
8096
8097         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
8098         so we can once again use a positive bitfield width of 1 -- now we
8099         don't have to explain why we were using a bitfield width of 2.
8100
8101 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8102
8103         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
8104         and similarly for the other external symbols.  Problem reported
8105         by James Gallager.
8106
8107         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
8108         bug reported by Jim Meyering.
8109
8110         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
8111         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
8112         not needed, since socklen is a prerequisite module.
8113
8114 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8115
8116         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
8117         Problem reported by Eric Blake.
8118         (getaddrinfo): Initialize se so that it's not garbage.
8119         Redo internal storage allocation so that it doesn't make unportable
8120         assumptions about alignment.
8121         Fix a memory leak.
8122
8123         * lib/utimens.c (futimens): Use futimesat if available.
8124         Prefer it to futimes since it doesn't have the futimes bug.
8125
8126         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
8127         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
8128         Instead, declare a function that returns a pointer to an array,
8129         and use verify_type__ to declare the size of the array.
8130         Problem and germ of a solution reported by Bruno Haible.
8131         (verify_type__): Use 2, not 1, for bitfield size, to avoid
8132         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
8133
8134 2005-09-23  Jim Meyering  <jim@meyering.net>
8135
8136         Sync from coreutils.
8137         Correct build failure (socklen_t not defined) on at least
8138         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
8139         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
8140
8141 2005-09-23  Jim Meyering  <jim@meyering.net>
8142
8143         * modules/getaddrinfo (Depends-on): Add socklen.
8144
8145 2005-09-23  Bruno Haible  <bruno@clisp.org>
8146
8147         * tests/test-verify.c: New file.
8148
8149 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8150
8151         Sync from coreutils.
8152
8153         * modules/argmatch (Depends-on): Add verify.
8154         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
8155         unistd-safer.
8156         * modules/save-cwd (Depends-on): Likewise.
8157
8158         * modules/openat (Files): Add lib/openat-die.c.
8159         (Depends-on): Remove error, exitfail.
8160         Add dirname.
8161
8162         * modules/verify: New file.
8163         * MODULES.html.sh (Diagnostics <assert.h>): New section,
8164         with "verify" module.
8165
8166 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8167
8168         Sync from coreutils.
8169
8170         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
8171         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
8172         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
8173         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
8174         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
8175         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
8176         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
8177         Don't bother checking for string.h, stdlib.h, unistd.h.
8178         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
8179         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
8180         module's job.
8181         * m4/jm-macros.m4 (gl_MACROS): Likewise.
8182         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
8183
8184         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
8185         (gl_GETDATE): Use it.
8186
8187         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
8188
8189 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8190
8191         Sync from coreutils.
8192
8193         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
8194         stat-time.h.
8195         * lib/argmatch.h: Include verify.h
8196         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
8197         (ARGMATCH_ASSERT): Remove; unused.
8198         * lib/canonicalize.c: Assume STDC_HEADERS.
8199         * lib/exclude.c: Include "strcase.h".
8200         * lib/regex_internal.h [!defined _LIBC]: Likewise.
8201         * lib/getusershell.c: Include stdio--.h rather than stdio.h
8202         and stdio-safer.h.
8203         (getusershell): Call fopen, not fopen_safer.
8204         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
8205         Do not include unistd-safer.h.
8206         (save_cwd): Don't call fd_safer; no longer needed
8207         now that we include fcntl--.h.
8208
8209         * lib/getdate.y (relative_time): New type.
8210         (RELATIVE_TIME_0): New constant.
8211         (parser_control): Use relative_time instead of doing it ourselves.
8212         (%union): Add new relative_time rel member.
8213         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
8214         Now typeless.
8215         (relunit, relunit_snumber): Now of type rel.
8216         (zone, rel, relunit, get_date): Adjust to above changes.
8217
8218         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
8219         Do not include unistd-safer.h.
8220         (getloadavg): Don't call fd_safer; no longer needed
8221         now that we include fcntl--.h.
8222
8223         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
8224         (make_dir_parents): Treat ENOSYS like EEXIST.
8225
8226         Improve quality of diagnostics on restore_cwd failure.
8227         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
8228         (make_dir_parents): Last arg is now int * (for errno), not bool *.
8229         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
8230         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
8231         each time through the loop.  Do not diagnose restore_cwd failure;
8232         that is the caller's job (and perhaps the caller does not care).
8233
8234         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
8235         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
8236         If the file already exists but is not a directory, don't bother
8237         to try to make its parents.
8238         Close potential file descriptor leak if we can't chdir("/") (!).
8239         Don't always return true if chdir($PWD) fails; return true only
8240         if the requested action was done successfully (except for the
8241         chdir($PWD)).
8242         Don't log final directory unless we actually made it.
8243         Refactor to avoid duplicate code to fix up permissions.
8244         Don't attempt to fix up parent permissions if chdir($PWD) fails.
8245
8246         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
8247         to make it a bit faster and (I hope) clearer.
8248         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
8249         Fix bug in formats like %2N.
8250
8251         * lib/verify.h: New file.
8252
8253 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8254
8255         Sync from coreutils.
8256         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
8257
8258 2005-09-22  Jim Meyering  <jim@meyering.net>
8259
8260         Sync from coreutils.
8261
8262         * m4/lstat.m4 (gl_FUNC_LSTAT):
8263         Use AC_LIBSOURCES to require lstat.c and lstat.h.
8264         Remove obsolete comment.
8265         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
8266         * m4/xstrtod.m4: Likewise.
8267
8268         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
8269
8270 2005-09-22  Jim Meyering  <jim@meyering.net>
8271
8272         Sync from coreutils.
8273
8274         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
8275
8276         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
8277         the .tm_year member, since otherwise gcc-4.0 would now warn about
8278         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
8279
8280         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
8281         order to avoid an unsuppressible warning from gcc on 64-bit systems.
8282
8283         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
8284         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
8285         when run in a time zone for which daylight savings time is in effect
8286         for the starting date.
8287
8288         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
8289         stop us from restricting permissions of just-created absolute-named
8290         directories.
8291         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
8292         to restore initial working directory.
8293         * lib/mkdir-p.c (make_dir_parents): New parameter:
8294         different_working_dir, to tell caller if/when we change the working
8295         directory and are unable to return to the initial one.
8296         * lib/mkdir-p.h (make_dir_parents): Update prototype.
8297         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
8298         `return false'.  This fixes a bug introduced on 2004-07-30.
8299
8300         * lib/openat.c (fdopendir): Be sure to close the supplied
8301         file descriptor before returning.  This makes our replacement
8302         implementation a little closer to Solaris's, where fdopendir
8303         ties the file descriptor to the returned DIR* pointer.
8304         * lib/openat.c (unlinkat): New function.
8305         * lib/openat.h (unlinkat): Add prototype.
8306         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
8307         (openat_restore_fail): Rename from openat_restore_die.
8308         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
8309
8310         Provide an alternative to exiting immediately upon save_cwd or
8311         restore_cwd failure.  Now, an application can arrange e.g.,
8312         to perform a longjump in that case.
8313         * lib/openat.c: Include dirname.h.
8314         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
8315         (rpl_openat, fdopendir, fstatat): Call openat_save_die
8316         and openat_restore_die rather than calling error directly.
8317         Don't include "error.h" or "exitfail.h"; they're no longer needed.
8318
8319         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
8320         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
8321         define.
8322
8323         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
8324         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
8325                             int utc, int nanoseconds);
8326         Background:
8327         date should not have to allocate a megabyte of virtual memory to
8328         handle a format argument like +%1048575T.  When implemented with
8329         strftime, it must allocate such a buffer, use strftime to fill it
8330         in, print it, then free it.
8331         With fprintftime, it simply prints everything and exits.
8332         With no need for memory allocation, that's one fewer way to fail.
8333         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
8334         optional field width, not before, so we accept %9:z, not %:9z.
8335         (my_strftime): Be sure to use L_('x') for literals.
8336
8337         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
8338         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
8339         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
8340         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
8341         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
8342         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
8343         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
8344         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
8345         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
8346         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
8347         * lib/xgethostname.c, lib/xreadlink.c:
8348         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
8349
8350         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
8351         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
8352         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
8353         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
8354         and don't include <sys/file.h>).
8355
8356 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
8357
8358         Sync from coreutils.
8359
8360         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
8361         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
8362         [!LDAV_DONE]: Avoid unused variable warning.
8363
8364 2005-09-21  Bruno Haible  <bruno@clisp.org>
8365
8366         * lib/unicodeio.h (unicode_to_mb): New declaration.
8367
8368 2005-09-20  Derek Price  <derek@ximbiot.com>
8369
8370         * lib/getaddrinfo.c: Don't include <netdb.h> included from
8371         getaddrinfo.h.
8372
8373 2005-09-20  Bruno Haible  <bruno@clisp.org>
8374
8375         * gnulib-tool: Remove trailing slashes from the values specified for
8376         --source-base, --m4-base, --tests-base, --aux-dir.
8377         Suggested by Simon Josefsson <jas@extundo.com>.
8378
8379 2005-09-20  Bruno Haible  <bruno@clisp.org>
8380
8381         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
8382         func_modules_to_filelist, func_import, func_create_testdir): Make all
8383         sorting results locale-independent, so that gnulib-cache.m4 doesn't
8384         change when gnulib-tool is invoked in a different locale.
8385
8386 2005-09-19  Simon Josefsson  <jas@extundo.com>
8387
8388         * m4/socklen.m4: Fix typo.
8389
8390 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8391
8392         Use a consistent style for including <config.h>.
8393         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
8394         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
8395         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
8396         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
8397         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
8398         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
8399         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
8400         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
8401         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
8402         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
8403         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
8404         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
8405         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
8406         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
8407         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
8408         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
8409         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
8410         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
8411         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
8412         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
8413         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
8414         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
8415         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
8416         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
8417         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
8418         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
8419         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
8420         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
8421         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
8422         lib/xstrtoumax.c, lib/yesno.c:
8423         Standardize inclusion of config.h.
8424         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
8425         lib/inttostr.h:  Removed inclusion of config.h from header files.
8426         * lib/inttostr.c:  Adjusted in-tree users.
8427         * lib/timespec.h: Remove superfluous warning to include config.h.
8428         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
8429         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
8430         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
8431         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
8432         config.h with HAVE_CONFIG_H.
8433
8434 2005-09-19  Jim Meyering  <jim@meyering.net>
8435
8436         * modules/pathmax (License): Change to LGPL.
8437
8438 2005-09-19  Derek Price  <derek@ximbiot.com>
8439
8440         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
8441
8442 2005-09-19  Bruno Haible  <bruno@clisp.org>
8443
8444         * gnulib-tool (import): Provide default for --tests-base.
8445
8446 2005-09-19  Bruno Haible  <bruno@clisp.org>
8447
8448         * doc/quote.texi: New file, extracted from gnulib.texi.
8449         * doc/ctime.texi: New file, extracted from gnulib.texi.
8450         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
8451         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
8452         * doc/gnulib.texi: Include them.
8453
8454 2005-09-18  Bruno Haible  <bruno@clisp.org>
8455
8456         Portability fix.
8457         * gnulib-tool (func_readlink): New function.
8458         (func_ln_if_changed): Use it.
8459
8460 2005-09-18  Bruno Haible  <bruno@clisp.org>
8461
8462         * gnulib-tool: Support --with-tests also with --import.
8463         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
8464         (func_import): Use variables $testsbase and $inctests. Emit a
8465         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
8466         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
8467         SUBDIRS += $testsdir.
8468         (func_create_testdir): Update.
8469
8470 2005-09-18  Bruno Haible  <bruno@clisp.org>
8471
8472         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
8473         instead of $dry_run.
8474         (func_cp_if_changed, func_mv_if_changed): Remove functions.
8475         (func_ln_if_changed): Don't handle dry-run here.
8476         (func_import): In dry-run mode, detect more precisely which actions
8477         would be performed, and don't use "...ing" verbs.
8478
8479 2005-09-18  Bruno Haible  <bruno@clisp.org>
8480
8481         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
8482         (func_import): Use join on two temporary files instead of three nested
8483         loops, in order to determine which files are new or old.
8484
8485 2005-09-18  Bruno Haible  <bruno@clisp.org>
8486
8487         * gnulib-tool (func_import): Comment out code that spits out the
8488         new files with --dry-run.
8489
8490 2005-09-18  Bruno Haible  <bruno@clisp.org>
8491
8492         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
8493
8494 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8495
8496         * lib/stat-time.h: New file.
8497         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
8498         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
8499         in a different way.
8500         (timespec_cmp): New function.
8501         * lib/utimecmp.c: Include stat-time.h.
8502         (SYSCALL_RESOLUTION): Depend on whether various struct stat
8503         members exist, not on the obsolescent ST_MTIM_NSEC.
8504         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
8505
8506 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8507
8508         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
8509
8510 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8511
8512         * MODULES.html.sh (File system functions): Add stat-time.
8513         * modules/stat-time: New file.
8514         * modules/timespec (Files): Remove m4/st_mtim.m4; this
8515         is now done in a different way, by the stat-time module.
8516         * modules/utimecmp (Depends-on): Add stat-time.
8517
8518 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8519
8520         * m4/st_mtim.m4: Remove.  Superseded by...
8521         * m4/stat-time.m4: New file.
8522         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
8523         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
8524
8525 2005-09-15  Derek Price  <derek@ximbiot.com>
8526
8527         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
8528
8529 2005-09-15  Derek Price  <derek@ximbiot.com>
8530
8531         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
8532         * lib/regex_internal.c: Ditto, using this...
8533         (__GNUC_PREREQ): ...new macro.
8534         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
8535         using...
8536         (__GNUC_PREREQ): ...this new macro.
8537
8538         * lib/strstr.h: Include string.h. Define strstr as a macro here.
8539
8540 2005-09-15  Derek Price  <derek@ximbiot.com>
8541             Paul Eggert  <eggert@cs.ucla.edu>
8542
8543         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
8544         changes, consolidating in...
8545         * lib/regex_internal.h: ...this file.
8546
8547 2005-09-13  Jim Meyering  <jim@meyering.net>
8548
8549         * lib/canon-host.c: Filter through gnu indent and reword comments
8550         slightly.
8551         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
8552
8553 2005-09-13  Derek Price  <derek@ximbiot.com>
8554
8555         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
8556         failure.
8557         Reported by Jim Meyering  <jim@meyering.net>.
8558
8559 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
8560
8561         * lib/base64.c: Typo.
8562         (base64_encode): Put b64str in initialized data section.
8563
8564 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8565
8566         Merge glibc and coreutils changes into gnulib, plus a few
8567         extra fixes.
8568         * lib/md5.c: Use #error rather than a string.
8569         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
8570         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
8571         (__attribute__): Define to empty for non recent-GCC.
8572         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
8573         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
8574         Renamed from their non-__ counterparts, with new macros replacing
8575         them if not _LIBC.  Add __THROW attribute.
8576         (rol): Remove.
8577         (struct md5_ctx): Align buffer if using GCC.
8578         * lib/sha1.h (struct sha1_ctx): Likewise.
8579         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
8580         The old name was backwards.
8581         (NOTSWAP): Remove; not used.
8582         (rol): New macro, moved here from md5.h.
8583         (sha1_process_block): Remove a FIXME that doesn't make sense.
8584
8585 2005-09-12  Derek Price  <derek@ximbiot.com>
8586
8587         Return usable errors from canon-host.
8588         * lib/canon-host.h: New file.
8589         * lib/canon-host.c (canon_host): Wrap...
8590         (canon_host_r): ...this new function, which now relies exclusively on
8591         getaddrinfo.
8592         (ch_strerror): New function.
8593         (last_cherror): New global.
8594         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
8595         interface.
8596         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
8597         void *.
8598         (freeaddrinfo): Free ai->ai_canonname when set.
8599
8600 2005-09-12  Derek Price  <derek@ximbiot.com>
8601
8602         Make canon-host require getaddrinfo.
8603         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
8604         AC_LIBSOURCE canon-host.h.  Call...
8605         (gl_PREREQ_CANON_HOST): ...this new function, which requires
8606         gl_GETADDRINFO.
8607         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
8608
8609 2005-09-12  Derek Price  <derek@ximbiot.com>
8610
8611         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
8612         LGPL.
8613         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
8614
8615 2005-09-12  Derek Price  <derek@ximbiot.com>
8616
8617         * lib/gai_strerror.c: Include config.h when available.  Include
8618         getaddrinfo.h before other headers to test interface.
8619         Reported by Larry Jones <lawrence.jones@ugs.com>.
8620
8621 2005-09-12  Derek Price  <derek@ximbiot.com>
8622             Paul Eggert  <eggert@cs.ucla.edu>
8623
8624         * modules/glob (Files): Add glob-libc.h.
8625
8626 2005-09-12  Derek Price  <derek@ximbiot.com>
8627             Paul Eggert  <eggert@cs.ucla.edu>
8628
8629         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
8630         glob_.h, glob-libc.h.
8631         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
8632
8633 2005-09-12  Derek Price  <derek@ximbiot.com>
8634             Paul Eggert  <eggert@cs.ucla.edu>
8635
8636         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
8637         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
8638         protecting things that should be done only in gnulib contexts.
8639         * lib/glob_.h: New file, containing only the glob things needed for
8640         gnulib.
8641         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
8642         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
8643         (glob, globfree, glob_pattern_p): Now defined simply in terms of
8644         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
8645         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
8646         and to respect the namespace rules better.
8647
8648 2005-09-08  Simon Josefsson  <jas@extundo.com>
8649
8650         * modules/socklen: New file.
8651
8652 2005-09-08  Simon Josefsson  <jas@extundo.com>
8653
8654         * m4/socklen.m4: New file.
8655
8656 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8657
8658         * modules/utimens (Files): Add m4/utimbuf.m4, since
8659         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
8660         Reported by Sergey Poznyakoff.
8661
8662 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8663
8664         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
8665         definitions, since that's the preferred style in glibc.
8666         Fix a minor spacing issue, and update copyright notice to match
8667         glibc's.
8668
8669 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8670
8671         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
8672
8673 2005-09-06  Simon Josefsson  <jas@extundo.com>
8674
8675         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
8676         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
8677
8678 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8679
8680         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
8681         warning.
8682
8683 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8684
8685         * config/srclist.txt: Add glibc bug 1302.
8686
8687 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8688
8689         Change bitset word type from unsigned int to unsigned long int,
8690         as this has better performance on typical 64-bit hosts.
8691         Port bitset code to hosts with unusual word sizes.
8692         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
8693         (build_collating_symbol):
8694         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
8695         argument is a bitset.  This is merely a style issue, but it makes
8696         it clearer that an entire array is expected.
8697         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
8698         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
8699         Port to the case where bitset_word is not the same as unsigned int.
8700         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
8701         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
8702         Likewise.
8703         * lib/regexec.c (check_dst_limits_calc_pos_1,
8704         check_subexp_matching_top):
8705         (build_trtable, group_nodes_into_DFAstates):
8706         Likewise.
8707         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
8708         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
8709         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
8710         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
8711         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
8712         * lib/regcomp.c (optimize_subexps, lower_subexp):
8713         Work even if bitset_word has holes in its bitwise representation.
8714         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
8715         * lib/regexec.c (check_dst_limits_calc_pos_1,
8716         check_subexp_matching_top):
8717         Likewise.
8718         * lib/regex_internal.c (re_string_reconstruct):
8719         Don't assume UCHAR_MAX == 255.
8720         * lib/regex_internal.h (bitset_set_all): Likewise.
8721         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
8722         All uses changed.
8723         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
8724         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
8725         All uses changed.
8726         (BITSET_WORD_MAX): New macro.
8727         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
8728         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
8729         (bitset_empty, bitset_copy):
8730         Prefer sizeof (bitset) to multiplying it out ourselves.
8731         (bitset_not_merge): Remove; unused.
8732         (bitset_contain): Return bool, not unsigned int with one bit on.
8733         All callers changed.
8734         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
8735         alignment than re_node_set; do this by defining a new internal
8736         type struct dests_alloc and using it to allocate memory.
8737
8738 2005-09-05  Bruno Haible  <bruno@clisp.org>
8739
8740         * gnulib-tool (func_import): Fix comparison in handling of symbolic
8741         links.
8742
8743 2005-09-04  Martin Lambers <marlam@marlam.de>  (tiny change)
8744
8745         * modules/size_max (Makefile.am): Add size_max.h
8746
8747 2005-09-04  Derek Price  <derek@ximbiot.com>
8748
8749         * gnulib-tool (func_import): Fix reversed $symbolic logic.
8750
8751 2005-09-03  Simon Josefsson  <jas@extundo.com>
8752
8753         * gnulib-tool: Fix typo.
8754
8755 2005-09-03  Simon Josefsson  <jas@extundo.com>
8756
8757         * config/srclist.txt: Add glibc bug 1293.
8758
8759 2005-09-03  Derek Price  <derek@ximbiot.com>
8760
8761         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
8762         From Larry Jones <lawrence.jones@ugs.com>.
8763
8764 2005-09-02  Simon Josefsson  <jas@extundo.com>
8765
8766         * modules/socklen: New file.
8767
8768 2005-09-02  Simon Josefsson  <jas@extundo.com>
8769
8770         * modules/havelib: New module.
8771
8772         * modules/gettext, modules/iconv, modules/lock, modules/readline:
8773         Use havelib.
8774
8775 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8776
8777         Check for arithmetic overflow when calculating sizes, to prevent
8778         some buffer-overflow issues.  These patches are conservative, in the
8779         sense that when I couldn't determine whether an overflow was possible,
8780         I inserted a run-time check.
8781         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
8782         macros.
8783         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
8784         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
8785         (re_xnrealloc, re_x2nrealloc): New inline functions.
8786         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
8787         parse_bracket_exp):
8788         (build_equiv_class, build_charclass): Check for arithmetic overflow
8789         in size expression calculations.
8790         * lib/regex_internal.c (re_string_realloc_buffers):
8791         (build_wcs_upper_buffer, re_node_set_add_intersect):
8792         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
8793         (re_dfa_add_node, register_state): Likewise.
8794         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
8795         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
8796         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
8797         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
8798
8799 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8800
8801         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
8802         m4/ulonglong.m4.  Problem reported by Martin Lambers.
8803
8804 2005-09-02  Bruno Haible  <bruno@clisp.org>
8805
8806         Support for lib vs. lib64 distinction on biarch platforms.
8807         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
8808         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
8809         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
8810
8811 2005-09-02  Bruno Haible  <bruno@clisp.org>
8812
8813         * gnulib-tool (import): In the other first-use case, provide defaults
8814         as well.
8815
8816 2005-09-02  Bruno Haible  <bruno@clisp.org>
8817
8818         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
8819         patches not yet found in the latest gettext release.
8820
8821 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8822
8823         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
8824         to avoid a collision with bits/local_lim.h in glibc.
8825         All uses changed.  Problem reported by Dmitry V. Levin in
8826         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
8827
8828         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
8829         bugs in int versus size_t comparisons.
8830         (re_string_context_at): Fix bug where the code assumed that
8831         Idx is signed.
8832
8833         Use bool where appropriate.
8834         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
8835         All callers changed.
8836         (calc_eclosure_iter): Likewise, for ROOT arg.
8837         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
8838         (build_charclass_op): Likewise, for NON_MATCH arg.
8839         * lib/regex_internal.c (re_string_allocate, re_string_construct):
8840         (re_string_construct_common): Likewise, for ICASE arg.
8841         * lib/regexec.c (re_search_2_stub, re_search_stub):
8842         Likewise, for RET_LEN arg.
8843         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
8844         (set_regs): Likewise, for FL_BACKTRACK arg.
8845         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
8846         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
8847         (calc_eclosure_iter, parse_bracket_exp):
8848         Use bool for internal variables that are booleans.
8849         * lib/regexec.c (re_search_internal, check_matching,
8850         proceed_next_node):
8851         (set_regs, build_sifted_states, sift_states_bkref):
8852         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
8853         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
8854         (find_collation_sequence_value):
8855         Likewise.
8856         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
8857         (re_node_set_compare):
8858         Return bool, not int. All callers changed.
8859         * lib/regexec.c (check_halt_node_context, check_dst_limits):
8860         (build_trtable, check_node_accept): Likewise.
8861         * lib/regex_internal.h: Include stdbool.h.
8862
8863         Fix bugs uncovered when converting to bool.
8864         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
8865         failure instead of charging ahead blindly.
8866         * lib/regex_internal.c (register_state): Likewise.
8867         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
8868         for freeing internal storage.
8869         (group_nodes_into_DFA_states): Use unsigned int, not int, for
8870         bitset pieces used as boolean, to avoid undefined behavior
8871         on hosts that do int overflow checking.
8872
8873 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8874
8875         * config/srclist.txt: Add glibc bugs 1285-1287.
8876
8877 2005-09-01  Jim Meyering  <jim@meyering.net>
8878
8879         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
8880         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
8881         Require gl_STAT_MACROS, too.
8882
8883 2005-09-01  Bruno Haible  <bruno@clisp.org>
8884
8885         * gnulib-tool (import): In the first-use case, provide defaults.
8886
8887 2005-09-01  Bruno Haible  <bruno@clisp.org>
8888
8889         * gnulib-tool (func_import): Remove the .tmp files.
8890
8891 2005-09-01  Bruno Haible  <bruno@clisp.org>
8892
8893         * gnulib-tool (func_import): Fix handling of symbolic links.
8894
8895 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8896
8897         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
8898         old glibc regex code mishandles strings longer than 2**31 bytes.
8899         This patch fixes this when the regex code is used in gnulib
8900         (i.e., outside glibc).
8901
8902         This patch should not affect the use of the regex code inside
8903         glibc.  No doubt this problem also needs to be handled for glibc
8904         as well, but the result will be an incompatible change to the
8905         glibc ABI, and the old ABI will have to be supported too.  That
8906         can be the the subject for another patch.
8907
8908         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
8909         governing whether the rest of this patch is active.  By default,
8910         the macro is disabled and the patch has no effect.
8911         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
8912         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
8913         (struct re_pattern_buffer, re_search, re_search_2, re_match):
8914         (re_match_2, re_set_registers): Use the new types.
8915         * lib/regex_internal.h (Idx, re_hashval_t): New types.
8916         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
8917         New macros.
8918         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
8919         (re_string_context_at, bin_tree_t, re_dfastate_t):
8920         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
8921         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
8922         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
8923         (re_string_char_size_at, re_string_wchar_at):
8924         (re_string_elem_size_at):
8925         Use the new types and macros to port to 64-bit hosts.
8926         Use unsigned types for internal values, so that the code
8927         mostly works even for arrays larger than SSIZE_MAX.
8928         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
8929         (search_duplicated_node, calc_eclosure_iter, fetch_number):
8930         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
8931         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
8932         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
8933         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
8934         (calc_inveclosure, parse_dup_op, build_range_exp):
8935         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
8936         (fetch_number, create_token_tree, mark_opt_subexp):
8937         Likewise.
8938         * lib/regex_internal.c (re_string_construct_common,
8939         create_ci_newstate):
8940         (create_cd_newstate, re_string_allocate, re_string_construct):
8941         (re_string_realloc_buffers, build_wcs_upper_buffer):
8942         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
8943         (re_string_reconstruct, re_string_peek_byte_case):
8944         (re_string_fetch_byte_case, re_string_context_at):
8945         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
8946         (re_node_set_init_copy, re_node_set_add_intersect):
8947         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8948         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8949         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
8950         (re_acquire_state, re_acquire_state_context, register_state):
8951         Likewise.
8952         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
8953         search_cur_bkref_entry):
8954         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
8955         (re_search_internal, re_search_2_stub, re_search_stub)
8956         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
8957         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
8958         (update_cur_sifted_state, check_dst_limits):
8959         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
8960         (check_subexp_limits, sift_states_bkref, merge_state_array):
8961         (check_subexp_matching_top, get_subexp, get_subexp_sub):
8962         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
8963         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
8964         (expand_bkref_cache, check_node_accept_bytes):
8965         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
8966         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
8967         (acquire_init_state_context, check_halt_node_context):
8968         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
8969         (sift_states_backward, clean_state_log_if_needed):
8970         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
8971         (find_recover_state, transit_state_sb, transit_state_mb):
8972         (transit_state_bkref, build_trtable, match_ctx_clean):
8973         Likewise.
8974         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
8975         to work around an assumption that REG_MISSING is negative.
8976
8977         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
8978         (seek_collating_symbol_entry) [defined _LIBC]:
8979         (lookup_collation_sequence_value) [defined _LIBC]:
8980         (build_range_exp, build_collating_symbol) [defined _LIBC]:
8981         Use prototypes rather than old-style function definitions.
8982         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
8983         (transit_state_sb) [0]:
8984         (find_collation_sequence_value) [defined _LIBC]: Likewise.
8985
8986         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
8987         rm_eo.
8988
8989         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
8990         (optimize_subexps, lower_subexp):
8991         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
8992         since the signed shift might overflow.  Use 1u<<31 instead.
8993         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
8994         Likewise.
8995         * lib/regexec.c (check_dst_limits_calc_pos_1,
8996         check_subexp_matching_top): Likewise.
8997
8998         * lib/regcomp.c (optimize_subexps, lower_subexp):
8999         Use CHAR_BIT rather than 8, for clarity.
9000         * lib/regexec.c (check_dst_limits_calc_pos_1):
9001         (check_subexp_matching_top): Likewise.
9002         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
9003         have to worry about portability issues when shifting it left.
9004         Remove no-longer-needed test for table_size > 0.
9005         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
9006         in a word, as the resulting behavior is undefined.
9007         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
9008         in one case, a <= should have been an <, and in another case the
9009         whole test was missing.
9010         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
9011         the standard name CHAR_BIT.
9012         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
9013         this is not true on one's complement and signed-magnitude hosts.
9014
9015         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
9016         next_last_offset.
9017         (struct re_dfa_t): Remove unused member states_alloc.
9018         * lib/regcomp.c (init_dfa): Don't initialize unused members.
9019
9020 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9021
9022         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
9023         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
9024         and large-file glibc and in 32-bit large-file Solaris.
9025
9026 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9027
9028         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
9029         lengths fit in regoff_t; this isn't true if regoff_t is the same
9030         width as size_t.
9031         * lib/regex.c (re_search_internal): 5th arg is LAST_START
9032         (= START + RANGE) instead of RANGE.  This avoids overflow
9033         problems when regoff_t is the same width as size_t.
9034         All callers changed.
9035         (re_search_2_stub): Check for overflow when adding the
9036         sizes of the two strings.
9037         (re_search_stub): Check for overflow when adding START
9038         to RANGE; if it occurs, substitute the extreme value.
9039
9040 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9041
9042         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
9043
9044 2005-08-31  Jim Meyering  <jim@meyering.net>
9045
9046         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
9047         a pointer-to-const.
9048         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
9049         (register_state): Likewise.
9050         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
9051         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
9052         (group_nodes_into_DFAstates): Likewise.
9053
9054 2005-08-31  Jim Meyering  <jim@meyering.net>
9055
9056         * check-module: Add a FIXME comment.
9057
9058 2005-08-31  Eric Blake  <ebb9@byu.net>
9059
9060         * modules/unistd-safer (Files): Add unistd--.h.
9061         * modules/stdio-safer (Files): Add stdio--.h.
9062
9063 2005-08-31  Derek Price  <derek@ximbiot.com>
9064
9065         * lib/getdelim.c (getdelim): Return EOF on EOF.
9066         Reported by Larry Jones <lawrence.jones@ugs.com>.
9067
9068 2005-08-31  Bruno Haible  <bruno@clisp.org>
9069
9070         Avoid unnecessary diffs in the generated lib/Makefile.am.
9071         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
9072         the generated files.
9073         (func_import): Don't set cmd.
9074
9075 2005-08-31  Bruno Haible  <bruno@clisp.org>
9076
9077         * lib/strstr.c: Include <stddef.h>, for NULL.
9078         * lib/strcasestr.c: Likewise.
9079         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9080
9081 2005-08-31  Bruno Haible  <bruno@clisp.org>
9082
9083         * gnulib-tool: New option --macro-prefix.
9084         (func_import): Use macro_prefix.
9085         (import): Handle option --macro-prefix.
9086
9087 2005-08-31  Bruno Haible  <bruno@clisp.org>
9088
9089         * gnulib-tool (import): Rename most ac_* variables to cached_*.
9090         Also use new variables cached_lgpl, cached_libtool.
9091
9092 2005-08-31  Bruno Haible  <bruno@clisp.org>
9093
9094         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
9095         always instantiating them.
9096
9097 2005-08-31  Bruno Haible  <bruno@clisp.org>
9098
9099         * gnulib-tool (func_import): Read the previous cached settings
9100         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
9101         earlier added by gnulib but are now dropped. Warn when a gnulib file
9102         overwrites a non-gnulib file.
9103
9104 2005-08-31  Bruno Haible  <bruno@clisp.org>
9105
9106         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
9107         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
9108         projects that don't keep autogenerated files in CVS. Put into
9109         actioncmd only the specified modules, not the transitive closure.
9110
9111 2005-08-31  Bruno Haible  <bruno@clisp.org>
9112
9113         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
9114         Create directories that shall be filled.
9115         (import): Don't look for gl_* macros in configure.ac. Recurse across
9116         all directories containing a gnulib-cache.m4 files, if meaningful.
9117
9118 2005-08-31  Bruno Haible  <bruno@clisp.org>
9119
9120         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
9121         (import): Set seen_libtool when we see gl_LIBTOOL.
9122
9123 2005-08-31  Bruno Haible  <bruno@clisp.org>
9124
9125         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
9126         declaration macro definitions from generated gnulib.m4.
9127
9128 2005-08-30  "Oskar Liljeblad" <oskar@osk.mine.nu>
9129
9130         * lib/iconvme.h: Add prototype for iconv_alloc.
9131
9132 2005-08-29  Simon Josefsson  <jas@extundo.com>
9133
9134         * lib/iconvme.c: Fix errno.
9135
9136 2005-08-29  Bruno Haible  <bruno@clisp.org>
9137
9138         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
9139         that it works when the directory contains spaces.
9140
9141 2005-08-29  Bruno Haible  <bruno@clisp.org>
9142
9143         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
9144
9145 2005-08-29  Bruno Haible  <bruno@clisp.org>
9146
9147         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
9148         Emit more advice.
9149
9150 2005-08-29  Bruno Haible  <bruno@clisp.org>
9151         and Stepan Kasal  <kasal@ucw.cz>
9152
9153         * check-module: If more parameters are given, check each of them
9154         separately; add more exceptions, as noted by Jim Meyering.
9155         (check_module): New procedure.
9156         (%exempt_header): Now contains all exceptions.
9157
9158 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
9159
9160         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
9161
9162 2005-08-29  "Oskar Liljeblad" <oskar@osk.mine.nu>
9163
9164         * lib/iconvme.c: Split iconv_string into iconv_alloc.
9165
9166 2005-08-28  Bruno Haible  <bruno@clisp.org>
9167
9168         * m4/gnulib-tool.m4: New file.
9169
9170 2005-08-27  Jim Meyering  <jim@meyering.net>
9171
9172         * modules/unistd-safer (Files): Add pipe-safer.c.
9173         * modules/fcntl-safer (Files): Add creat-safer.c.
9174
9175 2005-08-27  Jim Meyering  <jim@meyering.net>
9176
9177         * m4/stdlib-safer.m4: New file.  From coreutils.
9178         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
9179         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
9180         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
9181         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
9182         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
9183
9184 2005-08-27  Jim Meyering  <jim@meyering.net>
9185
9186         * lib/fopen-safer.c: Merge minor changes from coreutils.
9187         * lib/dup-safer.c: Likewise.
9188         * lib/fd-safer.c: Likewise.
9189
9190         Merge from coreutils.
9191         * lib/stdio--.h: New file.
9192         * lib/stdlib--.h: New file.
9193         * lib/mkstemp-safer.c: New file.
9194
9195         GNU tar needs these.
9196         * lib/pipe-safer.c: New file.
9197         * lib/creat-safer.c: New file.
9198         * lib/fcntl--.h (creat): Define to creat_safer.
9199         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
9200         * lib/unistd--.h (pipe): Define to pipe_safer.
9201         * lib/unistd-safer.h: Declare pipe_safer.
9202
9203 2005-08-26  Simon Josefsson  <jas@extundo.com>
9204
9205         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
9206         Haible <bruno@clisp.org>.
9207
9208 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
9209
9210         * lib/regex_internal.h: Remove all references to
9211         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
9212         or better.
9213         (bitset_not, bitset_merge, bitset_not_merge):
9214         (bitset_mask, re_string_allocate, re_string_construct):
9215         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
9216         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
9217         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
9218         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
9219         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9220         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9221         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
9222         (re_acquire_state_context):
9223         Remove unnecessary forward decls.
9224         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
9225         Put __attribute at function definition,
9226         now that the function decl has been removed.
9227         * lib/regex_internal.c (re_string_peek_byte_case):
9228         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
9229         Likewise.
9230
9231 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
9232
9233         * m4/regex.m4: Add AC_PREREQ(2.50).
9234         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
9235
9236 2005-08-25  Simon Josefsson  <jas@extundo.com>
9237
9238         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
9239         __fsetlocking.
9240
9241 2005-08-25  Simon Josefsson  <jas@extundo.com>
9242
9243         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
9244         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
9245         GLIBC specific code.
9246
9247 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9248
9249         Make regex safe for g++.  This fixes one real bug (an "err"
9250         that should have been "*err").  g++ problem reported by
9251         Sam Steingold.
9252         * lib/regex_internal.h (re_calloc): New macro, consistent with
9253         re_malloc etc.  All callers of calloc changed to use re_calloc.
9254         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
9255         not int.  All callers changed.
9256         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
9257         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
9258         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
9259         (find_recover_state): Change "err" to "*err"; this fixes what
9260         appears to be a real bug.
9261         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
9262         versus int.
9263
9264 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9265
9266         * modules/regex (Depends-on): Add malloc, since the code
9267         assumes that !malloc(0) means failure.
9268
9269 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9270
9271         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
9272
9273         alloca modernization/simplification for regex.
9274         * lib/regex.c: Remove portability cruft for alloca.  This no longer
9275         needs to be at the start of the file, and can be moved into
9276         regex_internal.h and simplified.
9277         * lib/regex_internal.h: Include <alloca.h>.
9278         (__libc_use_alloca) [!defined _LIBC]: New macro.
9279         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
9280         now works outside glibc.
9281
9282 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9283
9284         * config/srclist.txt: Add glibc bugs 1241, 1245.
9285
9286 2005-08-25  Jim Meyering  <jim@meyering.net>
9287
9288         * lib/open-safer.c: Include <config.h>.
9289         Otherwise, we'd lose LARGEFILE support in any file using
9290         e.g. "fcntl--.h"
9291
9292 2005-08-25  Bruno Haible  <bruno@clisp.org>
9293
9294         * m4/minmax.m4: Require autoconf 2.52.
9295         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
9296         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
9297         alternatives of translit over the alphabet.
9298         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
9299
9300 2005-08-24  Simon Josefsson  <jas@extundo.com>
9301
9302         * tests/test-getpass.c: New file.
9303
9304 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9305
9306         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
9307         for GNU regex features.
9308
9309 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9310
9311         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
9312         * lib/regex.h (regerror): Likewise.
9313
9314         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
9315         requires this.  (The code never needed it.)
9316
9317         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
9318         All uses of recently-renamed identifiers changed to use the new,
9319         POSIX-compliant names.  The code will build and run just fine
9320         without these changes, but it's better to eat our own dog food
9321         and use the standard-conforming names.
9322
9323         * lib/regex.h: Fix a multitude of POSIX name space violations.
9324         These changes have an effect only for programs that define
9325         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
9326         do not change anything for programs compiled in the normal way.
9327         Also, there is no effect on the ABI.
9328
9329         (_REGEX_SOURCE): New macro.
9330         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
9331         defined and _GNU_SOURCE is not; this fixes a name space violation.
9332
9333         Rename the following macros to obey POSIX requirements.
9334         The old names are still visible as macros if _REGEX_SOURCE is defined.
9335         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
9336         RE_BACKSLASH_ESCAPE_IN_LISTS.
9337         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
9338         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
9339         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
9340         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
9341         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
9342         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
9343         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
9344         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
9345         (REG_INTERVALS): renamed from RE_INTERVALS.
9346         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
9347         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
9348         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
9349         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
9350         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
9351         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
9352         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
9353         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
9354         RE_UNMATCHED_RIGHT_PAREN_ORD.
9355         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
9356         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
9357         (REG_DEBUG): renamed from RE_DEBUG.
9358         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
9359         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
9360         unusual, since we can't clash with the POSIX REG_ICASE.
9361         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
9362         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
9363         (REG_NO_SUB): renamed from RE_NO_SUB.
9364         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
9365         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
9366         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
9367         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
9368         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
9369         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
9370         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
9371         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
9372         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
9373         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
9374         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
9375         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
9376         RE_SYNTAX_POSIX_MINIMAL_BASIC.
9377         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
9378         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
9379         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
9380         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
9381         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
9382         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
9383         (REG_FIXED): Renamed from REGS_FIXED.
9384         (REG_NREGS): Renamed from RE_NREGS.
9385
9386         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
9387         of other REG_* macros, since POSIX says the user is allowed to
9388         #undef these macros selectively.
9389
9390         (reg_errcode_t): Update comment stating what other tables need
9391         to be consistent.
9392
9393         Rename the following enum values to obey POSIX requirements.
9394         The old names are still visible as macros.
9395         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
9396         is not defined, since GNU is supposed to be a superset of POSIX as
9397         much as possible, and since we want reg_errcode_t to be a signed
9398         type for implementation consistency.
9399         (_REG_NOERROR): Renamed from REG_NOERROR.
9400         (_REG_NOMATCH): Renamed from REG_NOMATCH.
9401         (_REG_BADPAT): Renamed from REG_BADPAT.
9402         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
9403         (_REG_ECTYPE): Renamed from REG_ECTYPE.
9404         (_REG_EESCAPE): Renamed from REG_EESCAPE.
9405         (_REG_ESUBREG): Renamed from REG_ESUBREG.
9406         (_REG_EBRACK): Renamed from REG_EBRACK.
9407         (_REG_EPAREN): Renamed from REG_EPAREN.
9408         (_REG_EBRACE): Renamed from REG_EBRACE.
9409         (_REG_BADBR): Renamed from REG_BADBR.
9410         (_REG_ERANGE): Renamed from REG_ERANGE.
9411         (_REG_ESPACE): Renamed from REG_ESPACE.
9412         (_REG_BADRPT): Renamed from REG_BADRPT.
9413         (_REG_EEND): Renamed from REG_EEND.
9414         (_REG_ESIZE): Renamed from REG_ESIZE.
9415         (_REG_ERPAREN): Renamed from REG_ERPAREN.
9416         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
9417         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
9418         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
9419         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
9420
9421         (_REG_RE_NAME, _REG_RM_NAME): New macros.
9422         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
9423         changed.  But support the old name if the new one is not defined
9424         and if _REGEX_SOURCE.
9425
9426         Change the following member names in struct re_pattern_buffer.
9427         The old names are still supported if !_REGEX_SOURCE.
9428         The new names are always supported, regardless of _REGEX_SOURCE.
9429         (re_buffer): Renamed from buffer.
9430         (re_allocated): Renamed from allocated.
9431         (re_used): Renamed from used.
9432         (re_syntax): Renamed from syntax.
9433         (re_fastmap): Renamed from fastmap.
9434         (re_translate): Renamed from translate.
9435         (re_can_be_null): Renamed from can_be_null.
9436         (re_regs_allocated): Renamed from regs_allocated.
9437         (re_fastmap_accurate): Renamed from fastmap_accurate.
9438         (re_no_sub): Renamed from no_sub.
9439         (re_not_bol): Renamed from not_bol.
9440         (re_not_eol): Renamed from not_eol.
9441         (re_newline_anchor): Renamed from newline_anchor.
9442
9443         Change the following member names in struct re_registers.
9444         The old names are still supported if !_REGEX_SOURCE.
9445         The new names are always supported, regardless of _REGEX_SOURCE.
9446         (rm_num_regs): Renamed from num_regs.
9447         (rm_start): Renamed from start.
9448         (rm_end): Renamed from end.
9449
9450         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
9451         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
9452         Prepend __ to parameter names.
9453
9454         Undo yesterday's changes.
9455
9456 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9457
9458         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
9459         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
9460         lib/regex.c.
9461
9462 2005-08-24  Jim Meyering  <jim@meyering.net>
9463
9464         Sync from coreutils.
9465         * m4/fcntl-safer.m4: New file.
9466
9467         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
9468         and object files for this module.
9469
9470 2005-08-24  Jim Meyering  <jim@meyering.net>
9471
9472         Sync from coreutils.
9473         * lib/fcntl--.h, fcntl-safer.h, open-safer.c: New files.
9474
9475 2005-08-24  Jim Meyering  <jim@meyering.net>
9476
9477         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
9478         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
9479
9480 2005-08-24  Jim Meyering  <jim@meyering.net>
9481
9482         * modules/fcntl-safer: New module.
9483         * modules/fts (Depends-on): Add fcntl-safer.
9484         * MODULES.html.sh (File descriptor based Input/Output):
9485         Add fcntl-safer.
9486
9487 2005-08-24  Bruno Haible  <bruno@clisp.org>
9488
9489         Support for unit test modules.
9490         * modules/README: Mention tests modules.
9491         * modules/TEMPLATE-TESTS: New file.
9492         * gnulib-tool: New options --extract-tests-module, --with-tests and
9493         --tests-base (unused for the moment).
9494         (testsbase, inctests): New variables.
9495         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
9496         (func_verify_module): Exclude TEMPLATE-TESTS.
9497         (func_verify_nontests_module, func_verify_tests_module): New functions.
9498         (func_get_dependencies): Add implicit dependency for tests modules.
9499         (func_get_tests_module): New function.
9500         (func_modules_transitive_closure): When --with-tests was specified,
9501         include the unit tests as well, unless explicitly avoided.
9502         (func_emit_lib_Makefile_am): Ignore the tests modules here.
9503         (func_emit_tests_Makefile_am): New function.
9504         (func_create_testdir): When --with-tests was specified, emit a
9505         tests/ directory.
9506         * MODULES.html.sh (Future developments): Update.
9507
9508 2005-08-24  Bruno Haible  <bruno@clisp.org>
9509
9510         * modules/tls-tests: New file.
9511         * tests/test-tls.c: New file, from GNU gettext.
9512
9513 2005-08-24  Bruno Haible  <bruno@clisp.org>
9514
9515         * modules/lock-tests: New file.
9516         * tests/test-lock.c: New file, from GNU gettext.
9517
9518 2005-08-24  Bruno Haible  <bruno@clisp.org>
9519
9520         * lib/lock.h: Add multiple inclusion guard.
9521         * lib/tls.h: Add multiple inclusion guard.
9522
9523 2005-08-24  Bruno Haible  <bruno@clisp.org>
9524
9525         * gnulib-tool: Add support for the --aux-dir option to
9526         --create-testdir, --create-megatestdir, --test, --megatest.
9527         (func_create_testdir, func_create_megatestdir): Optionally emit a
9528         AC_CONFIG_AUX_DIR directive.
9529         (create-testdir, create-megatestdir, test, megatest): Provide a
9530         default value for $auxdir.
9531
9532 2005-08-24  Bruno Haible  <bruno@clisp.org>
9533
9534         * gnulib-tool (import): Use compound statement instead of subshell
9535         where possible.
9536
9537 2005-08-24  Bruno Haible  <bruno@clisp.org>
9538
9539         * gnulib-tool (import): Change --aux-dir default to "build-aux".
9540
9541 2005-08-24  Bruno Haible  <bruno@clisp.org>
9542
9543         * gnulib-tool (func_version): Update.
9544
9545 2005-08-24  Bruno Haible  <bruno@clisp.org>
9546
9547         * gnulib-tool (func_import, func_create_testdir,
9548         func_create_megatestdir): Quote all autoconf macro arguments.
9549
9550 2005-08-24  Bruno Haible  <bruno@clisp.org>
9551
9552         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
9553         option --force, because --force causes the aclocal.m4 of each
9554         subdirectory to be newer than the corresponding config.h.in.
9555
9556 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9557
9558         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
9559         All contents moved to gl_REGEX.
9560         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
9561         assume that it does.
9562
9563 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9564
9565         * lib/regex.h (REG_NOSYS)
9566         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
9567         Define, since POSIX requires it as of 2001.
9568         (_REG_ENOSYS)
9569         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
9570         New private symbol, used to keep the enum signed in all cases.
9571         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
9572         Youngman in
9573         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
9574
9575         * lib/regex_internal.c (re_string_skip_chars, register_state):
9576         (calc_state_hash):
9577         Remove forward decls; no longer needed now that we use prototypes.
9578         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
9579         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
9580         (clean_state_log_if_needed): Likewise.
9581
9582 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9583
9584         * config/srclist.txt: Add glibc bugs 1231-1233.
9585
9586 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9587
9588         Fix problems reported by Sam Steingold in
9589         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
9590         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
9591         assumed that reg_errcode_t is a signed type, which is not
9592         necessarily true if _XOPEN_SOURCE is not defined.
9593         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
9594         since some compilers warn about it otherwise.
9595
9596 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9597
9598         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
9599         (init_word_char, create_initial_state, duplicate_node_closure):
9600         (fetch_token, peek_token_bracket, build_range_exp):
9601         (build_collating_symbol): Remove forward decls; no longer needed
9602         now that we use prototypes.
9603
9604         * lib/regcomp.c:
9605         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
9606         (re_compile_fastmap_iter, regcomp, regerror, regfree):
9607         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
9608         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
9609         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
9610         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
9611         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
9612         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
9613         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
9614         (build_range_exp, build_collating_symbol, parse_bracket_exp):
9615         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
9616         (build_charclass, build_charclass_op, fetch_number, create_tree):
9617         (create_token_tree, mark_opt_subexp, duplicate_tree):
9618         Use prototypes rather than old-style definitions.
9619
9620         * lib/regex_internal.c:
9621         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
9622         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
9623         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
9624         (re_string_reconstruct, re_string_peek_byte_case):
9625         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
9626         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
9627         (re_node_set_init_copy, re_node_set_add_intersect):
9628         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9629         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9630         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
9631         (re_acquire_state, re_acquire_state_context, register_state):
9632         (create_ci_newstate, create_cd_newstate, free_state):
9633         Likewise.
9634         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
9635         re_search_2):
9636         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
9637         (re_search_internal, prune_impossible_nodes):
9638         (acquire_init_state_context, check_matching, static):
9639         (check_halt_node_context, check_halt_state_context, proceed_next_node):
9640         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
9641         (update_regs, sift_states_backward, build_sifted_states):
9642         (clean_state_log_if_needed, merge_state_array):
9643         (update_cur_sifted_state, add_epsilon_src_nodes):
9644         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
9645         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
9646         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
9647         (find_recover_state, check_subexp_matching_top, transit_state_mb):
9648         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
9649         (check_arrival, check_arrival_add_next_nodes):
9650         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
9651         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
9652         (check_node_accept_bytes, check_node_accept, extend_buffers):
9653         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
9654         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
9655         (sift_ctx_init):
9656         Likewise.
9657
9658         * lib/regex_internal.h:
9659         (re_string_allocate, re_string_construct, re_string_reconstruct):
9660         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
9661         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
9662         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
9663         (re_string_context_at, re_string_peek_byte_case):
9664         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
9665         is defined, since we now use prototypes always.
9666
9667         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
9668         C89 or better.  All uses removed.
9669
9670 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9671
9672         * config/srclist.txt: Add glibc bugs 1220-1227.
9673
9674 2005-08-20  Jim Meyering  <jim@meyering.net>
9675
9676         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
9677         of unused local, dfa.
9678
9679 2005-08-20  Bruno Haible  <bruno@clisp.org>
9680
9681         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
9682
9683 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
9686         (re_node_set_insert_last, re_dfa_add_node):
9687         Rename local variables to avoid GCC shadowing warnings.
9688
9689 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9690
9691         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
9692         [defined lint]: Suppress bogus uninitialized-variable warnings.
9693
9694         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
9695         and let the caller return REG_ESPACE if out of space.  This
9696         removes an uninitialied-variable warning with GCC 4.0.1, and also
9697         avoids taking the address of a local variable.  All callers
9698         changed.
9699
9700 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9701
9702         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
9703         $LIBCSRC/posix/regexec.c.
9704         Add glibc bug 1217 for regcomp.c.
9705
9706 2005-08-19  Jim Meyering  <jim@meyering.net>
9707
9708         * lib/regexec.c (proceed_next_node): Redo local variables to
9709         avoid GCC shadowing warnings.
9710
9711 2005-08-18  Bruno Haible  <bruno@clisp.org>
9712
9713         * lib/strstr.c (strstr): Fix return value in multibyte case.
9714         * lib/strcasestr.c (strcasestr): Likewise.
9715
9716 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9717
9718         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
9719
9720 2005-08-17  Jim Meyering  <jim@meyering.net>
9721
9722         Make the %s format (seconds since the epoch) work for a negative
9723         number and when used with a zero-padded field width, e.g. %015s.
9724
9725         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
9726         label so that it precedes the code to set `digits'.  Otherwise,
9727         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
9728         print `00-22'.  Now, it prints `-0022', as it should.
9729
9730 2005-08-17  Bruno Haible  <bruno@clisp.org>
9731
9732         * modules/strstr (Files): Add m4/mbrtowc.m4.
9733         (Depends-on): Add mbuiter.
9734
9735 2005-08-17  Bruno Haible  <bruno@clisp.org>
9736
9737         * modules/strcasestr: New file.
9738         * MODULES.html.sh (String handling, based on ANSI C 89): Add
9739         strcasestr.
9740
9741 2005-08-17  Bruno Haible  <bruno@clisp.org>
9742
9743         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
9744
9745 2005-08-17  Bruno Haible  <bruno@clisp.org>
9746
9747         * modules/mbuiter: New file.
9748         * MODULES.html.sh (Extended multibyte and wide character utilities):
9749         Add mbuiter.
9750
9751 2005-08-17  Bruno Haible  <bruno@clisp.org>
9752
9753         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
9754         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
9755
9756 2005-08-17  Bruno Haible  <bruno@clisp.org>
9757
9758         * m4/strcasestr.m4: New file.
9759
9760 2005-08-17  Bruno Haible  <bruno@clisp.org>
9761
9762         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
9763         * lib/strstr.c: Completely rewritten, with multibyte locale support.
9764
9765 2005-08-17  Bruno Haible  <bruno@clisp.org>
9766
9767         * lib/strcasestr.h: New file.
9768         * lib/strcasestr.c: New file.
9769
9770 2005-08-17  Bruno Haible  <bruno@clisp.org>
9771
9772         * lib/strcasecmp.c: Use mbuiter.h.
9773
9774 2005-08-17  Bruno Haible  <bruno@clisp.org>
9775
9776         * lib/mbuiter.h: New file.
9777
9778 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
9779
9780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
9781         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
9782         and gl_GETOPT are both invoked via different paths (as happens
9783         with GNU tar CVS because it uses both argp and getopt), the former
9784         wins.
9785
9786 2005-08-16  Bruno Haible  <bruno@clisp.org>
9787
9788         * modules/tls: New file.
9789         * MODULES.html.sh (Multithreading): Add tls.
9790
9791 2005-08-16  Bruno Haible  <bruno@clisp.org>
9792
9793         * modules/strnlen1: New file.
9794         * MODULES.html.sh (String handling): Add strnlen1.
9795
9796 2005-08-16  Bruno Haible  <bruno@clisp.org>
9797
9798         * modules/strcase (Files): Add m4/mbrtowc.m4.
9799         (Depends-on): Add strnlen1, mbchar.
9800
9801 2005-08-16  Bruno Haible  <bruno@clisp.org>
9802
9803         * modules/mbiter: New file.
9804         * MODULES.html.sh (Extended multibyte and wide character utilities):
9805         Add mbiter.
9806
9807 2005-08-16  Bruno Haible  <bruno@clisp.org>
9808
9809         * modules/mbfile: New file.
9810         * MODULES.html.sh (Extended multibyte and wide character utilities):
9811         Add mbfile.
9812
9813 2005-08-16  Bruno Haible  <bruno@clisp.org>
9814
9815         * modules/mbchar: New file.
9816         * MODULES.html.sh (Extended multibyte and wide character utilities):
9817         New section.
9818
9819 2005-08-16  Bruno Haible  <bruno@clisp.org>
9820
9821         * m4/tls.m4: New file, from GNU gettext.
9822
9823 2005-08-16  Bruno Haible  <bruno@clisp.org>
9824
9825         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
9826         always.
9827         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
9828
9829 2005-08-16  Bruno Haible  <bruno@clisp.org>
9830
9831         * m4/mbiter.m4: New file.
9832
9833 2005-08-16  Bruno Haible  <bruno@clisp.org>
9834
9835         * m4/mbfile.m4: New file.
9836
9837 2005-08-16  Bruno Haible  <bruno@clisp.org>
9838
9839         * m4/mbchar.m4: New file.
9840
9841 2005-08-16  Bruno Haible  <bruno@clisp.org>
9842
9843         * lib/tls.h: New file, from GNU gettext.
9844         * lib/tls.c: New file, from GNU gettext.
9845
9846 2005-08-16  Bruno Haible  <bruno@clisp.org>
9847
9848         * lib/strnlen1.h: New file.
9849         * lib/strnlen1.c: New file.
9850
9851 2005-08-16  Bruno Haible  <bruno@clisp.org>
9852
9853         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
9854         (mbi_init): Update.
9855         (mbi_avail, mbi_advance): Let the iteration end before the terminating
9856         NUL byte, not after it.
9857
9858 2005-08-16  Bruno Haible  <bruno@clisp.org>
9859
9860         * lib/strcase.h (strcasecmp): Add note in comments.
9861         * lib/strncasecmp.c: Use code from strcasecmp.c.
9862         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
9863         (strcasecmp): Work correctly in multibyte locales.
9864
9865 2005-08-16  Bruno Haible  <bruno@clisp.org>
9866
9867         * lib/mbiter.h: New file.
9868
9869 2005-08-16  Bruno Haible  <bruno@clisp.org>
9870
9871         * lib/mbfile.h: New file.
9872
9873 2005-08-16  Bruno Haible  <bruno@clisp.org>
9874
9875         * lib/mbchar.h: New file.
9876         * lib/mbchar.c: New file.
9877
9878 2005-08-16  Bruno Haible  <bruno@clisp.org>
9879
9880         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
9881         the valid ones. Makes the comparison operations transitive:
9882         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
9883         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
9884
9885 2005-08-15  Simon Josefsson  <jas@extundo.com>
9886
9887         * modules/ssize_t (License): Change to 'unlimited'.
9888
9889         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
9890
9891 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9892
9893         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
9894         Add comments for each pending glibc patch.
9895
9896 2005-08-15  Bruno Haible  <bruno@clisp.org>
9897
9898         * lib/regex.h (__restrict_arr): Don't define to __restrict if
9899         __cplusplus is defined.
9900
9901 2005-08-14  Jim Meyering  <jim@meyering.net>
9902
9903         Sync from coreutils.
9904
9905         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
9906         Use the hash-table-based cycle-detection code not just when
9907         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
9908         Reported by James Youngman in
9909         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
9910         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
9911         FTS_TIGHT_CYCLE_CHECK.
9912         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
9913         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
9914         once again.
9915         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
9916         * lib/fts.c (fd_safer): Remove decl.
9917         Include fcntl--.h rather than unistd-safer.h
9918         (fts_safe_changedir): Don't call fd_safer; no longer needed
9919         now that we include fcntl--.h.
9920
9921 2005-08-12  Simon Josefsson  <jas@extundo.com>
9922
9923         * modules/getndelim2: Use ssize_t module.
9924         * modules/getnline: Likewise.
9925         * modules/safe-read: Likewise.
9926         * modules/xreadlink: Likewise.
9927
9928         * modules/ssize_t: New file.
9929
9930 2005-08-12  Simon Josefsson  <jas@extundo.com>
9931
9932         * m4/readline.m4: Look for termcap, curses or ncurses if required.
9933
9934 2005-08-12  Simon Josefsson  <jas@extundo.com>
9935
9936         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9937         ssize_t.
9938
9939 2005-08-12  Simon Josefsson  <jas@extundo.com>
9940
9941         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
9942         readline, getdelim and check_version.
9943         (Support for systems lacking ISO C 99: Sizes of integer types):
9944         Add size_max.
9945
9946 2005-08-12  Bruno Haible  <bruno@clisp.org>
9947
9948         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
9949
9950 2005-08-11  Simon Josefsson  <jas@extundo.com>
9951
9952         * modules/readline: New file.
9953
9954         * modules/strnlen (Files): Add strnlen.h.
9955
9956 2005-08-11  Simon Josefsson  <jas@extundo.com>
9957
9958         * m4/readline.m4: New file.
9959
9960 2005-08-11  Simon Josefsson  <jas@extundo.com>
9961
9962         * lib/readline.h, readline.c: New file.
9963
9964 2005-08-11  Simon Josefsson  <jas@extundo.com>
9965
9966         * doc/gnulib.texi (Initial import, Finishing touches): Mention
9967         gl_AVOID.
9968
9969 2005-08-11  Bruno Haible  <bruno@clisp.org>
9970
9971         * lib/strnlen.h (strnlen): Change parameter name to match comment.
9972
9973 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
9974
9975         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
9976
9977 2005-08-10  Simon Josefsson  <jas@extundo.com>
9978
9979         * tests/test-iconvme.c: New file.
9980
9981 2005-08-10  Simon Josefsson  <jas@extundo.com>
9982
9983         * m4/strnlen.m4: New file.
9984
9985         * m4/strndup.m4: Don't check for strnlen declaration, done in
9986         strnlen.m4.
9987
9988 2005-08-10  Simon Josefsson  <jas@extundo.com>
9989
9990         * lib/strndup.c: Use strnlen.h.
9991
9992         * lib/strnlen.h: New file.
9993
9994 2005-08-08  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>  (tiny change)
9995
9996         * README: Typos.
9997
9998 2005-08-02  Simon Josefsson  <jas@extundo.com>
9999
10000         * modules/readline: New file.
10001
10002 2005-08-02  Simon Josefsson  <jas@extundo.com>
10003
10004         * modules/getdelim: New file.
10005
10006         * modules/getline: Rewrite, don't use getndelim2.
10007
10008 2005-08-02  Simon Josefsson  <jas@extundo.com>
10009
10010         * m4/getline.m4: Separate out getdelim stuff into separate module.
10011
10012         * m4/getdelim.m4: New file.
10013
10014 2005-08-02  Simon Josefsson  <jas@extundo.com>
10015
10016         * lib/getline.h, getline.c: Rewrite.
10017
10018         * lib/getdelim.h, getdelim.c: New files, ported from glibc.
10019
10020 2005-07-31  Bruno Haible  <bruno@clisp.org>
10021
10022         * lib/lock.h (gl_lock_initializer): New macro.
10023         (gl_lock_define_initialized): Use it.
10024         (gl_rwlock_initializer): New macro.
10025         (gl_rwlock_define_initialized): Use it.
10026         (gl_recursive_lock_initializer): New macro.
10027         (gl_recursive_lock_define_initialized): Use it.
10028
10029 2005-07-30  Karl Berry  <karl@gnu.org>
10030
10031         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
10032         Report from Ben Pfaff, regarding getopt.
10033
10034 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
10035
10036         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
10037         normal way.
10038         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
10039         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
10040         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
10041         (gl_GETOPT): Use the new macros.  Most of the implementation
10042         is moved to the new macros.  This is for programs like Emacs
10043         that don't want all the functionality of gl_GETOPT.
10044
10045 2005-07-26  Bruno Haible  <bruno@clisp.org>
10046
10047         * m4/lock.m4: Update from GNU gettext.
10048
10049 2005-07-26  Bruno Haible  <bruno@clisp.org>
10050
10051         * lib/lock.h: Update from GNU gettext.
10052         * lib/lock.c: Update from GNU gettext.
10053
10054 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10055
10056         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
10057         obsolescent AC_TRY_RUN.  Include the default includes files, for
10058         'exit'.
10059
10060 2005-07-24  Bruno Haible  <bruno@clisp.org>
10061
10062         * modules/visibility: New file.
10063         * MODULES.html.sh (Misc): Add visibility.
10064
10065 2005-07-24  Bruno Haible  <bruno@clisp.org>
10066
10067         * m4/visibility.m4: New file.
10068
10069 2005-07-24  Bruno Haible  <bruno@clisp.org>
10070
10071         * doc/visibility.texi: New file.
10072
10073 2005-07-22  Bruno Haible  <bruno@clisp.org>
10074
10075         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
10076         $(ALLOCA_H), redundant through BUILT_SOURCES.
10077         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
10078         redundant through BUILT_SOURCES.
10079         * modules/byteswap (Makefile.am): Remove explicit dependency on
10080         $(BYTESWAP_H), redundant through BUILT_SOURCES.
10081         * modules/fnmatch (Makefile.am): Remove explicit dependency on
10082         $(FNMATCH_H), redundant through BUILT_SOURCES.
10083         * modules/getopt (Makefile.am): Remove explicit dependency on
10084         $(GETOPT_H), redundant through BUILT_SOURCES.
10085         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
10086         redundant through BUILT_SOURCES.
10087         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
10088         redundant through BUILT_SOURCES.
10089         * modules/stdbool (Makefile.am): Remove explicit dependency on
10090         $(STDBOOL_H), redundant through BUILT_SOURCES.
10091         * modules/stdint (Makefile.am): Remove explicit dependency on
10092         $(STDINT_H), redundant through BUILT_SOURCES.
10093         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
10094         Remove explicit dependency on $(SYSEXITS_H).
10095         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
10096
10097 2005-07-18  Simon Josefsson  <jas@extundo.com>
10098
10099         * lib/check-version.c (check_version): Accept identical versions too.
10100
10101 2005-07-18  Bruno Haible  <bruno@clisp.org>
10102
10103         * modules/lock: New file.
10104         * MODULES.html.sh (Multithreading): New section.
10105
10106 2005-07-18  Bruno Haible  <bruno@clisp.org>
10107
10108         * m4/lock.m4: New file, from GNU gettext.
10109
10110 2005-07-18  Bruno Haible  <bruno@clisp.org>
10111
10112         * lib/lock.h: New file, from GNU gettext.
10113         * lib/lock.c: New file, from GNU gettext.
10114
10115 2005-07-18  Bruno Haible  <bruno@clisp.org>
10116
10117         * lib/lock.h (gl_once_t): New type.
10118         (gl_once_define, gl_once): New macros.
10119         * lib/lock.c (fresh_once): New variable.
10120         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
10121         functions.
10122
10123 2005-07-16  Simon Josefsson  <jas@extundo.com>
10124
10125         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
10126         workaround, suggested by Bruno.
10127
10128 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10129
10130         * modules/xalloc (Depends-on): Add xalloc-die.
10131         * modules/xvasprintf (Depends-on): Add xalloc-die.
10132
10133 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10134
10135         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
10136         with a minor change.
10137
10138 2005-07-15  Bruno Haible  <bruno@clisp.org>
10139
10140         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
10141         When using lib/poll.c, define poll as rpl_poll.
10142
10143 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
10144
10145         * modules/argp (Depends-on): Remove unlocked-io.
10146
10147 2005-07-14  Derek Price  <derek@ximbiot.com>
10148
10149         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
10150         for glob symlink bug.
10151
10152 2005-07-14  Bruno Haible  <bruno@clisp.org>
10153
10154         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
10155         Instead, test for *_unlocked function declarations directly.
10156
10157 2005-07-11  Simon Josefsson  <jas@extundo.com>
10158
10159         * modules/size_max: New file.
10160
10161         * modules/xsize: Depend on size_max module for size_max.m4.
10162
10163 2005-07-11  Simon Josefsson  <jas@extundo.com>
10164
10165         * lib/size_max.h: New file.
10166
10167 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
10168
10169         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
10170         copyright symbol and the year.
10171         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
10172         (version_etc_va): Use parameterized copyright notice.
10173         Reword to conform to the current GNU coding standards.
10174
10175 2005-07-11  Karl Berry  <karl@gnu.org>
10176
10177         * doc/gnulib.texi (Quoting): new node.
10178         (Initial import): more info, from Patrice.
10179
10180 2005-07-11  Bruno Haible  <bruno@clisp.org>
10181
10182         * gnulib-tool (func_usage): Document option --avoid.
10183         (Command line options): Handle --avoid.
10184         (func_acceptable): New function.
10185         (func_modules_transitive_closure): Use it.
10186
10187 2005-07-11  Bruno Haible  <bruno@clisp.org>
10188
10189         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
10190         Reported by Jim Meyering.
10191
10192 2005-07-10  Bruno Haible  <bruno@clisp.org>
10193
10194         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
10195         Needed when size_t is smaller than 'unsigned int'.
10196         Reported by Paul Eggert.
10197
10198 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10199
10200         * modules/argp (Depends-on): Add unlocked-io
10201
10202 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10203
10204         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
10205         block of defines.
10206
10207 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10208
10209         * config/srclist.txt: Comment out regcomp.c, since we have a porting
10210         fix now.
10211
10212 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
10213         and Paul Eggert  <eggert@cs.ucla.edu>
10214
10215         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
10216         in wint_t, not wchar_t.  Remove now-unnecessary cast.
10217
10218 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10219
10220         * modules/regex (Files): Add lib/regex_internal.c,
10221         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
10222         (Depends-on): Add extensions.
10223         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
10224
10225 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10226
10227         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
10228         pathconf.
10229         * m4/same.m4 (gl_SAME): Likewise.
10230         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
10231
10232         * m4/regex.m4: Adjust to new libc regex implementation.
10233         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
10234         all the .c and .h parts of (the new) regex.
10235         Quote the m4 stuff better.
10236         Check for RE_ICASE bug of old gnulib.
10237         Check for REG_STARTEND of recent libc.
10238         Rename local variables from jm_* to gl_*.
10239         Quote operand of "test -f".
10240         Say "recent enough" version of libc, not "version 2".
10241         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
10242         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
10243         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
10244         Remove check for btowc, isascii.
10245         Require AM_LANGINFO_CODESET.
10246
10247 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10248
10249         * lib/regex.c, regex.h: Sync from libc.
10250         * lib/regcomp.c, regexec_internal.c, regex_internal.h, regexec.c:
10251         New files, synced from libc, except that regex_internal.h
10252         currently has a small porting fix.
10253
10254 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10255
10256         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
10257         regex_internal.c, regexec.c.
10258         Add regex_internal.h too, but as a comment, since the libc version
10259         is currently broken in gnulib mode.
10260
10261 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10262
10263         Support programs like Emacs that use gnulib but not gettext.
10264         * MODULES.html.sh (Internationalization functions): Add gettext-h.
10265         * modules/gettext-h: New file.
10266         * modules/gettext (Files): Remove lib/gettext.h.
10267         (Depends-on): Add gettext-h.
10268         (Makefile.am): Remove lib_SOURCES.
10269         * modules/argmatch, modules/c-stack, modules/closeout:
10270         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
10271         * modules/execute, modules/file-type, modules/getaddrinfo:
10272         * modules/getopt, modules/human, modules/javacomp:
10273         * modules/javaexec, modules/mkdir-p, modules/obstack:
10274         * modules/openat, modules/pagealign_alloc, modules/pipe:
10275         * modules/quotearg, modules/regex, modules/rpmatch:
10276         * modules/unicodeio, modules/userspec, modules/version-etc:
10277         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
10278         * modules/xsetenv:
10279         Depend on gettext-h, not gettext.
10280
10281 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10282
10283         * gnulib-tool (func_import): Add support for 'public domain' license.
10284         * modules/alloca, modules/atexit, modules/memmove:
10285         Now public domain, not GPL.
10286         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
10287         * modules/realloc, modules/strerror, modules/strtod:
10288         Now LGPL, not GPL.
10289
10290 2005-07-05  Bruno Haible  <bruno@clisp.org>
10291
10292         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
10293         autoconf CVS. Needed for mingw.
10294
10295 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10296
10297         Remove the dependency of the strftime module on the tzset module.
10298         * modules/strftime (Depends-on): Remove dependency on tzset.
10299
10300 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10301
10302         Remove the dependency of the strftime module on the tzset module.
10303         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
10304         gl_FUNC_TZSET_CLOBBER.
10305
10306 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10307
10308         Remove the dependency of the strftime module on the tzset module.
10309         * lib/strftime.c (my_strftime)
10310         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
10311         Copy the input structure, to work around some of the bug with
10312         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
10313         Solaris releases, you should also use the tzset module, but we won't
10314         require it as a dependency any more since we don't want LGPLed code
10315         to depend on GPLed code.
10316
10317 2005-07-02  Jim Meyering  <jim@meyering.net>
10318
10319         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
10320         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
10321         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
10322         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
10323
10324 2005-07-02  Jim Meyering  <jim@meyering.net>
10325
10326         * lib/backupfile.c (backup_args): Change a `0' to NULL.
10327
10328 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10329
10330         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
10331         declares only 'struct timespec;' (!).
10332
10333 2005-07-01  Jim Meyering  <jim@meyering.net>
10334
10335         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
10336         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
10337         * lib/save-cwd.c, tempname.c:
10338         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10339         and don't include <sys/file.h>).
10340
10341 2005-06-29  Jim Meyering  <jim@meyering.net>
10342
10343         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
10344         type name.  Use the variable name instead.
10345         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
10346         Likewise.
10347
10348 2005-06-28  Simon Josefsson  <jas@extundo.com>
10349
10350         * modules/check-version (Files): Add check-version.m4.
10351
10352 2005-06-28  Simon Josefsson  <jas@extundo.com>
10353
10354         * m4/check-version.m4: New file, suggested by Jim Meyering
10355         <jim@meyering.net>.
10356
10357 2005-06-28  Simon Josefsson  <jas@extundo.com>
10358
10359         * lib/check-version.h, check-version.c: New files.
10360
10361 2005-06-28  Simon Josefsson  <jas@extundo.com>
10362
10363         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
10364         collision with global variable.  Better indentation.  Don't
10365         increment buffer pointer beyond buffer end.  Based on comments
10366         from Paul Eggert <eggert@cs.ucla.edu>.
10367
10368         * lib/base64.h: Indent.
10369
10370 2005-06-28  Simon Josefsson  <jas@extundo.com>
10371
10372         * doc/gnulib.texi (Library version handling): New section.
10373
10374 2005-06-28  Jim Meyering  <jim@meyering.net>
10375
10376         * check-module (find_included_lib_files): Hard-code another
10377         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
10378         but modules/fts-lgpl (correctly) does not list those files.
10379
10380         * modules/canonicalize (Files): Add lib/pathmax.h.
10381
10382 2005-06-25  Simon Josefsson  <jas@extundo.com>
10383
10384         * modules/check-version: New file.
10385
10386 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10387
10388         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
10389         initializer of struct addrinfo, as an indication that we don't
10390         care how many members the structure has.
10391
10392 2005-06-24  Derek Price  <derek@ximbiot.com>
10393         and Bruno Haible  <bruno@clisp.org>
10394
10395         Remove stat module & update lstat.
10396         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
10397         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10398         * m4/stat.m4: Remove this file.
10399
10400 2005-06-24  Derek Price  <derek@ximbiot.com>
10401         and Bruno Haible  <bruno@clisp.org>
10402
10403         Remove stat module & update lstat.
10404         * lib/stat.c: Remove this file...
10405         (slash_aware_lstat): ...moving this content and its support...
10406         * lib/lstat.c (rpl_lstat): ...into here.
10407         * lib/lstat.h: New file.
10408
10409 2005-06-24  Derek Price  <derek@ximbiot.com>
10410         and Bruno Haible  <bruno@clisp.org>
10411
10412         Remove stat module & update lstat.
10413         * config/srclist.txt (libc sources): Remove stat.
10414
10415 2005-06-24  Derek Price  <derek@ximbiot.com>
10416         and Bruno Haible  <bruno@clisp.org>
10417
10418         Remove stat module & update lstat.
10419         * MODULES.html.sh (stat): Remove.
10420         * MODULES.html: Regenerated.
10421         * modules/lstat (Description): Correct function name.
10422         (Files): Add "lstat.h".
10423         (Depends-on): Remove stat, add xalloc, stat-macros.
10424         * modules/stat: Remove this file.
10425         (Include): Add "lstat.h", remove <sys/stat.h>.
10426
10427 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10428
10429         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
10430         (ranged_convert): Don't save conversion in a temporary struct.
10431         This causes a warning with GCC 4.0.0, and anyway in the typical
10432         case it's not worth the extra 100 bytes or so of code.
10433         (ranged_convert, __mktime_internal): When calling a function via a
10434         pointer P, use P () rather than (*P) (), as we now assume C89 or
10435         better.
10436
10437 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
10438
10439         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
10440         "who -r" failed to give output.  Problem reported by Tim Waugh.
10441
10442         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
10443         (xcalloc): Use it to avoid needless tests.
10444         Problem reported by Jim Meyering.
10445
10446 2005-06-20  Derek Price  <derek@ximbiot.com>
10447
10448         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
10449         unnecessary for Autoconfs > 2.59c.
10450
10451 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
10452
10453         * lib/argp.h (__option_is_short): Check upper limit of
10454         __key. Isprint() requires its argument to have the value
10455         of an unsigned char or EOF.
10456
10457 2005-06-16  Jim Meyering  <jim@meyering.net>
10458
10459         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
10460         when either N or S is zero.
10461
10462 2005-06-16  Derek Price  <derek@ximbiot.com>
10463
10464         * m4/bison.m4: Declare YACC & YFLAGS precious.
10465
10466 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
10467
10468         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
10469         multibyte string or pattern, fall back on unibyte matching.
10470         Problem reported by James Youngman.
10471
10472 2005-06-08  Bruno Haible  <bruno@clisp.org>
10473
10474         * modules/csharpcomp: New file.
10475         * MODULES.html.sh (C#): Add csharpcomp.
10476
10477 2005-06-08  Bruno Haible  <bruno@clisp.org>
10478
10479         * m4/csharpcomp.m4: New file, from GNU gettext.
10480
10481 2005-06-08  Bruno Haible  <bruno@clisp.org>
10482
10483         * lib/csharpcomp.h: New file, from GNU gettext.
10484         * lib/csharpcomp.c: New file, from GNU gettext.
10485         * lib/csharpcomp.sh.in: New file, from GNU gettext.
10486
10487 2005-06-08  Bruno Haible  <bruno@clisp.org>
10488
10489         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
10490         warning on mingw.
10491
10492 2005-06-07  Derek Price  <derek@ximbiot.com>
10493
10494         Sync from CVS.
10495         * lib/glob_.h: Indent nested #ifdef.
10496
10497 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10498
10499         Sync from coreutils.
10500         Use "file name" when talking about file names, instead of "filename"
10501         or "path", as per the GNU coding standards.
10502         * lib/mkdir-p.c: Renamed from makepath.c.
10503         (make_dir_parents): Renamed from make_path.  All callers changed.
10504         * lib/mkdir-p.h: Likewise.  All includers changed.
10505         * lib/filenamecat.c: Renamed from path-concat.c.
10506         (file_name_concat): Renamed from path_concat.  All callers changed.
10507         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
10508         * lib/filenamecat.h: Likewise.  All includers changed.
10509         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
10510         in comments or local variable names.
10511         * lib/basename.c: Likewise.
10512         * lib/canonicalize.c, canonicalize.h: Likewise.
10513         * lib/dirname.c, dirname.h: Likewise.
10514         * lib/euidaccess.c: Likewise.
10515         * lib/exclude.c: Likewise
10516         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
10517         * lib/fsusage.c, fsuage.h: Likewise.
10518         * lib/fts.c, fts_.h: Likewise.
10519         * lib/getcwd.c: Likewise.
10520         * lib/getloadavg.c: Likewise.
10521         * lib/mkstemp.c: Likewise.
10522         * lib/mountlist.c, mountlist.h: Likewise.
10523         * lib/openat.c, openat.h: Likewise.
10524         * lib/readlink-stub.c: Likewise.
10525         * lib/readutmp.c, readutmp.h: Likewise.
10526         * lib/rename.c: Likewise.
10527         * lib/rmdir.c: Likewise.
10528         * lib/same.c: Likewise.
10529         * lib/savedir.c: Likewise.
10530         * lib/stripslash.c: Likewise.
10531         * lib/tempname.c: Likewise.
10532         * lib/xreadlink.c: Likewise.
10533         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
10534         All uses changed.
10535         * lib/exclude.h: Likewise.
10536
10537         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
10538         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10539         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
10540         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10541         * lib/pathmax.h: Include <limits.h> unconditionally, since other
10542         files have been getting away with it for years (MORE/BSD 4.3
10543         is extinct now).
10544         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
10545         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10546
10547         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
10548         Define to 256, not 255, as per modern POSIX.
10549
10550 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10551
10552         Sync from coreutils.
10553         Use "file name" when talking about file names, instead of "filename"
10554         or "path", as per the GNU coding standards.
10555         * MODULES.html.sh: mkdir-p renamed from makepath.
10556         filenamecat renamed from path-concat.
10557         * modules/filenamecat: Renamed from modules/path-concat.
10558         (Files): filenamecat.h and filenamecat.c renamed from
10559         path-concat.h and path-concat.c.
10560         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
10561         (Include): filenamecat.h, not path-concat.h.
10562         * modules/mkdir-p: Renamed from modules/makepath.
10563         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
10564         makepath.c.
10565         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
10566         (Include): mkdir-p.h, not makepath.h.
10567
10568 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10569
10570         Sync from coreutils.
10571         * m4/mkdir-p.m4: Renamed from makepath.m4.
10572         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
10573         Rename files from makepath.c to mkdir-p.c, and from
10574         makepath.h to mkdir-p.h.
10575         * m4/filenamecat.m4: Renamed from path-concat.m4.
10576         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
10577         Rename files from path-concat.c to filenamecat.c,
10578         and from path-concat.h to filenamecat.h.
10579         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
10580         "file name" in local variables or comments.
10581         * m4/rename.m4: Likewise.
10582
10583 2005-06-01  Bruno Haible  <bruno@clisp.org>
10584
10585         * modules/csharpexec: New file.
10586         * MODULES.html.sh (C#): New section.
10587
10588 2005-06-01  Bruno Haible  <bruno@clisp.org>
10589
10590         * m4/csharp.m4: New file, from GNU gettext.
10591         * m4/csharpexec.m4: New file, from GNU gettext.
10592
10593 2005-06-01  Bruno Haible  <bruno@clisp.org>
10594
10595         * lib/csharpexec.h: New file, from GNU gettext.
10596         * lib/csharpexec.c: New file, from GNU gettext.
10597         * lib/csharpexec.sh.in: New file, from GNU gettext.
10598
10599 2005-05-31  Derek Price  <derek@ximbiot.com>
10600             Paul Eggert  <eggert@cs.ucla.edu>
10601
10602         Sync from cvs.
10603         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
10604
10605 2005-05-31  Derek Price  <derek@ximbiot.com>
10606             Paul Eggert  <eggert@cs.ucla.edu>
10607
10608         Sync from cvs.
10609         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
10610
10611 2005-05-29  Derek Price  <derek@ximbiot.com>
10612
10613         * config/srclist.txt (glob_.h, glob.c): Add these files.
10614
10615 2005-05-29  Derek Price  <derek@ximbiot.com>
10616
10617         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
10618         * modules/glob: New file.
10619         * modules/getlogin_r: Add link to POSIX spec in description.
10620
10621 2005-05-29  Derek Price  <derek@ximbiot.com>
10622             Paul Eggert  <eggert@cs.ucla.edu>
10623
10624         * m4/glob.m4: New file.
10625
10626 2005-05-29  Derek Price  <derek@ximbiot.com>
10627             Paul Eggert  <eggert@cs.ucla.edu>
10628
10629         * lib/glob_.h, glob.c: New files.
10630
10631 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10632
10633         * modules/fts (Files): Remove m4/inttypes-pri.m4.
10634         * modules/fts-lgpl (Depends-on): Remove gettext.
10635
10636 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10637
10638         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
10639         and don't require gt_INTTYPES_PRI.
10640
10641 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10642
10643         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
10644
10645         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
10646         the configuration hassle isn't worth it.
10647         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
10648         (LONGEST_MODIFIER, PRIuMAX): Remove.
10649
10650 2005-05-27  Bruno Haible  <bruno@clisp.org>
10651
10652         * lib/getlogin_r.h: Remove second include of <stddef.h>.
10653
10654 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
10655
10656         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
10657         _POSIX_PTHREAD_SEMANTICS for Solaris.
10658
10659 2005-05-25  Derek Price  <derek@ximbiot.com>
10660
10661         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
10662
10663 2005-05-25  Derek Price  <derek@ximbiot.com>
10664             Paul Eggert  <eggert@cs.ucla.edu>
10665
10666         * modules/getlogin_r: New files.
10667
10668 2005-05-25  Derek Price  <derek@ximbiot.com>
10669             Paul Eggert  <eggert@cs.ucla.edu>
10670
10671         * m4/getlogin_r.m4: New files.
10672
10673 2005-05-25  Derek Price  <derek@ximbiot.com>
10674             Paul Eggert  <eggert@cs.ucla.edu>
10675
10676         * lib/getlogin_r.c, getlogin_r.h: New files.
10677
10678 2005-05-25  Bruno Haible  <bruno@clisp.org>
10679             Derek Price  <derek@ximbiot.com>
10680
10681         * lib/getlogin_r.h: Simplify API documentation.
10682
10683 2005-05-23  Derek Price  <derek@ximbiot.com>
10684
10685         * modules/minmax (Files): Add m4/minmax.m4.
10686         (configure.ac): Add gl_MINMAX.
10687
10688 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10689
10690         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
10691         so that unistd-safer.h (GPL'ed code) need not be included.
10692
10693 2005-05-22  Bruno Haible  <bruno@clisp.org>
10694
10695         * m4/minmax.m4: New file.
10696         Based on a patch by Derek Price <derek@ximbiot.com>.
10697
10698 2005-05-22  Bruno Haible  <bruno@clisp.org>
10699
10700         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
10701         (INT64_MIN): Fix definition.
10702         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
10703
10704         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
10705         NEED_SIGNED_INT_TYPES.
10706
10707         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
10708         HAVE_SYSTEM_INTTYPES.
10709
10710 2005-05-22  Bruno Haible  <bruno@clisp.org>
10711
10712         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
10713         Also include <sys/param.h> if it defines MIN, MAX.
10714         Based on a patch by Derek Price <derek@ximbiot.com>.
10715
10716 2005-05-21  Jim Meyering  <jim@meyering.net>
10717
10718         * modules/fts (Files): Add m4/inttypes-pri.m4.
10719         (Depends-on): Add lstat and remove gettext.  Alphabetize.
10720
10721 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10722
10723         New fts module.
10724         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
10725         (setup_dir, free_dir): New functions.
10726         (enter_dir, leave_dir): Define trivial
10727         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
10728         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
10729         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
10730         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
10731         Move to fts-cycle.c.
10732         (fts_open): Use setup_dir.
10733         (fts_close): Use free_dir.
10734         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
10735         This adds a label and some gotos, but the alternatives were messier.
10736         Check for memory allocation failure when entering a dir.
10737         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
10738         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
10739         (FTS): New member fts_cycle, that is a union that contains the
10740         old active_dir_ht and cycle_state.  All uses changed to mention
10741         fts_cycle.ht and fts_cycle.state.
10742         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
10743         fts.c, with the following changes:
10744         (setup_dir, free_dir): New functions.
10745         (enter_dir): Now returns bool.  Return true if successful, false
10746         if memory exhausted.  All callers changed.
10747         Do not bother partly cleaning up on
10748         memory allocation failure; that is free_dir's job.
10749         However, free ad if hash_insert fails, to avoid memory leak.
10750         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
10751         fts->fts_options to see which union member to use.
10752
10753 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10754
10755         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
10756         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
10757
10758 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10759
10760         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
10761
10762 2005-05-20  Jim Meyering  <jim@meyering.net>
10763
10764         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
10765         Now a macro, to pacify GCC.
10766
10767 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
10768
10769         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
10770         of -1.
10771
10772 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
10773
10774         * lib/chown.c (rpl_chown): Return -1 on failure.
10775
10776 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
10777
10778         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
10779         Don't check for stddef.h.
10780         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
10781         don't use its results.
10782         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
10783         since we include them unconditionally.  Don't require
10784         AM_STDBOOL_H, since stdbool is a prerequisite.
10785         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
10786         since we assume C89 or better.
10787         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
10788         as we don't use their results.
10789         Don't check for fchdir, memmove, memset, strrchr, as we use
10790         them unconditionally.
10791         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
10792         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
10793
10794 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
10795
10796         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
10797         Include <stddef.h> unconditionally, since we assume C89 now.
10798         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
10799         * lib/fts.c: Include fts_.h first, to check interface.
10800         Do not include intprops.h; no longer needed.
10801         Include cycle-check.h and hash.h, since fts_.h no longer does.
10802         Remove unnecessary casts of closedir to void.
10803         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
10804         decide whether to decrement nlinks.
10805         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
10806         (FTS): Use struct hash_table * instead of Hash_table, so that
10807         we no longer need to include hash.h here.
10808
10809 2005-05-18  Jim Meyering  <jim@meyering.net>
10810
10811         * modules/dirfd (License): Change to LGPL.  Most of the code
10812         is already in the public domain.
10813
10814 2005-05-18  Jim Meyering  <jim@meyering.net>
10815
10816         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
10817         Reported by Yoann Vandoorselaere.
10818
10819 2005-05-17  Jim Meyering  <jim@meyering.net>
10820
10821         * m4/fts.m4: New file, from coreutils.
10822
10823 2005-05-17  Jim Meyering  <jim@meyering.net>
10824
10825         * lib/fts.c, fts_.h: New files, from coreutils.
10826
10827 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10828
10829         Sync from coreutils.
10830         * m4/unlinkdir.m4: New file.
10831
10832 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10833
10834         Sync from coreutils.
10835         * lib/unlinkdir.c, unlinkdir.h: New files.
10836         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
10837         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
10838         White space changes only.
10839         * lib/makepath.c (make_path): Port to hosts where leading "//" is
10840         special.
10841         * lib/yesno.c: Include getline.h, not ctype.h.
10842         (yesno): Don't remove leading white space; POSIX doesn't allow it.
10843         Use getline to remove arbitrary restriction on response length.
10844
10845 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10846
10847         * config/srclist-update: Spell out "Street" in FSF postal
10848         mail address; this is the style the FSF seems to prefer.
10849
10850         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
10851         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
10852         this updates FSF postal mail address.
10853
10854         Sync from coreutils.
10855         * modules/unlinkdir: New file.
10856         * modules/yesno (Depends-on): Add getline.
10857         * MODULES.html.sh (File system functions): Add unlinkdir.
10858
10859 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10860
10861         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
10862         lib/strsep.h:
10863         Change the initial comment to refer to GPL, not LGPL.
10864         gnulib-tool will change it to LGPL as needed.
10865
10866         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
10867         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
10868         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
10869         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
10870         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
10871         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
10872         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
10873         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
10874         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
10875         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
10876         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
10877         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
10878         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
10879         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
10880         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
10881         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
10882         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
10883         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
10884         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
10885         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
10886         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
10887         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
10888         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
10889         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
10890         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
10891         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
10892         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
10893         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
10894         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
10895         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
10896         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
10897         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
10898         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
10899         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
10900         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
10901         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
10902         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
10903         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
10904         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
10905         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
10906         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
10907         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
10908         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
10909         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
10910         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
10911         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
10912         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
10913         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
10914         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
10915         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
10916         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
10917         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
10918         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
10919         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
10920         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
10921         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
10922         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
10923         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
10924         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
10925         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
10926         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
10927         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
10928         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
10929         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
10930         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
10931         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
10932         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
10933         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
10934         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
10935         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
10936         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
10937         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
10938         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
10939         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
10940         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
10941         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
10942         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
10943         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
10944         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
10945         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
10946         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
10947         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
10948         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
10949         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
10950         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
10951         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
10952         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
10953         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
10954         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
10955         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
10956         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
10957         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
10958         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
10959         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
10960         lib/yesno.c, lib/yesno.h:
10961         Update FSF postal mail address.
10962
10963 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10964
10965         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
10966         tests/test-memmem.c, tests/test-stpncpy.c:
10967         Update FSF postal mail address.
10968
10969 2005-05-13  Bruno Haible  <bruno@clisp.org>
10970
10971         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
10972         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
10973         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
10974         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
10975         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
10976         Add support for 64-bit integers in the MSVC compiler.
10977
10978 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
10979
10980         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
10981
10982 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
10983
10984         * gnulib-tool (func_import): Sort and uniquify recommended includes.
10985
10986 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10987
10988         * doc/getdate.texi (General date syntax): Don't say that date
10989         date --iso-8601=ns generates acceptable dates; it doesn't yet.
10990         Problem reported by Nic Ferrier.
10991
10992 2005-05-10  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10993
10994         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
10995         specified in ai_socktype. Fix invalid ai_protocol
10996         check. ai_protocol is usually set to 0 or depending on
10997         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
10998         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
10999         ai_socktype / ai_protocol in the returned addrinfo structure.
11000
11001 2005-05-10  Simon Josefsson  <jas@extundo.com>
11002
11003         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
11004         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11005
11006 2005-05-10  Karl Berry  <karl@gnu.org>
11007
11008         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
11009         (from http://www.gnu.org/licenses).
11010         * doc/COPYING.LIB: also rename to COPYING.LESSER.
11011         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
11012         fdl.texi suffices.
11013
11014 2005-05-10  Karl Berry  <karl@gnu.org>
11015
11016         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
11017         (COPYING.DOC): remove.
11018
11019         * config/srclist-update: new FSF address.
11020
11021 2005-05-10  Derek Price  <derek@ximbiot.com>
11022
11023         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
11024         possible.
11025
11026 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11027             Bruno Haible  <bruno@clisp.org>
11028
11029         * modules/inet_ntop: New file.
11030         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11031         inet_ntop.
11032
11033 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11034             Bruno Haible  <bruno@clisp.org>
11035
11036         * m4/inet_ntop.m4: New file.
11037
11038 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11039             Bruno Haible  <bruno@clisp.org>
11040
11041         * lib/inet_ntop.h: New file.
11042         * lib/inet_ntop.c: New file, from glibc with modifications.
11043
11044 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11045
11046         * modules/time_r (License): Change to LGPL.
11047         * modules/extensions (License): Change to LGPL.  Actually,
11048         the license is more permissive than that, but currently gnulib-tool
11049         doesn't know how to handle more-permissive licenses.
11050
11051         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
11052         Problem reported by Dave Love.
11053
11054 2005-05-08  Jim Meyering  <jim@meyering.net>
11055
11056         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
11057         blank.
11058
11059 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
11060
11061         * modules/argmatch (Depends-on): Add stdbool.
11062         * modules/backupfile (Depends-on): Likewise.
11063         * modules/chdir-long (Depends-on): Likewise.
11064         * modules/closeout (Depends-on): Likewise.
11065         * modules/cycle-check (Depends-on): Likewise.
11066         * modules/dirname (Depends-on): Likewise.
11067         * modules/fnmatch (Depends-on): Likewise.
11068         * modules/fsusage (Depends-on): Likewise.
11069         * modules/fwriteerror (Depends-on): Likewise.
11070         * modules/getcwd (Depends-on): Likewise.
11071         * modules/getloadavg (Depends-on): Likewise.
11072         * modules/hard-locale (Depends-on): Likewise.
11073         * modules/makepath (Depends-on): Likewise.
11074         * modules/mountlist (Depends-on): Likewise.
11075         * modules/nanosleep (Depends-on): Likewise.
11076         * modules/posixtm (Depends-on): Likewise.
11077         * modules/quotearg (Depends-on): Likewise.
11078         * modules/readtokens (Depends-on): Likewise.
11079         * modules/readtokens0 (Depends-on): Likewise.
11080         * modules/readutmp (Depends-on): Likewise.
11081         * modules/save-cwd (Depends-on): Likewise.
11082         * modules/strftime (Depends-on): Likewise.
11083         * modules/userspec (Depends-on): Likewise.
11084         * modules/utimecmp (Depends-on): Likewise.
11085         * modules/xgetcwd (Depends-on): Likewise.
11086         * modules/xnanosleep (Depends-on): Likewise.
11087         * modules/xstrtod (Depends-on): Likewise.
11088         * modules/yesno (Depends-on): Likewise.
11089
11090 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11091
11092         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
11093         needless checks.
11094
11095 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11096
11097         Merge from coreutils.  Among other things,
11098         add bulletproofing for cases where stdin, stdout, or stderr are closed.
11099         * lib/fd-safer.c: New file.
11100         * lib/fcntl-safer.h, open-safer.c: Remove.
11101         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
11102         * lib/dup-safer.c: Include unistd-safer.h first.
11103         Don't include errno.h.
11104         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
11105         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
11106         * lib/file-type.c: Rely on file-type.h change.
11107         * lib/getloadavg.c: Include unistd-safer.h.
11108         (getloadavg): Use safer open.
11109         * lib/getusershell.c: Include "stdio-safer.h".
11110         (getusershell): Use safer fopen.
11111         * lib/long-options.c (long_options): Use NULL rather than 0.
11112         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
11113         'free'.
11114         * lib/modechange.c: Likewise.
11115         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
11116         (MODE_DONE): New constant.
11117         (struct mode_change): Remove 'next' member.
11118         (make_node_op_equals): New function; like the old one of the
11119         same name, except it allocates an array.
11120         (mode_compile, mode_create_from_ref): Use it.
11121         (mode_compile): Allocate result as an array, not a linked list.
11122         Parse octal string ourself, so that we catch mistakes like "+0".
11123         (mode_adjust): Arg is an array, not a linked list.
11124         * lib/modechange.c: Include stat-macros.h, xalloc.h.
11125         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
11126         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
11127         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
11128         Remove.  This is now stat-macros.h's job.
11129         (talloc): Remove.  All callers replaced by xalloc, so that
11130         our invokers don't have to worry about reporting memory failures.
11131         (make_node_op_equals): Remove.
11132         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
11133         New constants.
11134         (struct mode_change): Moved here from modechange.h.
11135         (mode_append_entry): Remove.
11136         (mode_compile): Remove MASKED_OPS arg, since it encouraged
11137         apps to have incorrect behavior.  Use simpler algorithm for head
11138         and tail.  Don't futz with umask; that's now the job of mode_adjust.
11139         Detect more invalid usages rather than having somewhat-random behavior.
11140         Don't insert an "a=" action, as that leads to incorrect behavior.
11141         (mode_compile, mode_create_from_ref): Return NULL on error instead
11142         of an enum, since now there's only one way to have an error.  All
11143         callers changed.
11144         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
11145         at the correct time.  Simplify calculation of "+u" and its ilk.
11146         Don't mishandle "+X".
11147         (mode_free): Remove "register" and localize decls.
11148         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
11149         (struct mode_change): Move to modechange.c; callers don't
11150         need to see this stuff.
11151         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
11152         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
11153         (mode_change, mode_adjust): Reflect the new signatures noted above.
11154         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
11155         that might redefine system include files.
11156         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
11157         (my_usleep): Use NULL rather than (void *) 0.
11158         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
11159         Use siginterrupt to specify that system calls should be interrupted.
11160         (rpl_nanosleep): Move initialization of suspended closer to call of
11161         my_usleep.
11162         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
11163         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
11164         (desirable_utmp_entry): New function.
11165         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
11166         using x2nrealloc, to simplify logic.
11167         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
11168         size calculation.  Do not assume utmp file is a regular file.
11169         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
11170         (READ_UTMP_CHECK_PIDS): New constant.
11171         * lib/save-cwd.c: Include unistd-safer.h.
11172         (save_cwd): Use fd_safer.
11173         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
11174         [!_LIBC] Include "stat-macros.h" instead.
11175         * lib/unistd-safer.h (fd_safer): New decl.
11176
11177 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11178
11179         * modules/getloadavg (Depends-on): Add unistd-safer.
11180         * modules/getusershell (Depends-on): Add stdio-safer.
11181         * modules/lstat (Depends-on): Remove xalloc.
11182         * modules/mkstemp (Depends-on): Add stat-macros.
11183         * modules/modechange (Depends-on): Remove xstrtol.
11184         Add stat-macros, xalloc.
11185         * modules/save-cwd (Depends-on): Add unistd-safer.
11186         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
11187         * modules/unistd-safer (Files): Add lib/fd-safer.c
11188         (Makefile.am): Remove lib_SOURCES.
11189
11190         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
11191         Remove fcntl-safer; unistd-safer supersedes it.
11192
11193 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11194
11195         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
11196         AC_HEADER_STAT.
11197         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
11198         (gl_PREREQ_CHOWN): Remove.
11199         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
11200         it.  Don't require AC_HEADER_STAT.
11201         (gl_PREREQ_LSTAT): Remove.
11202         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
11203         Don't require AC_HEADER_STAT.
11204         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
11205         (gl_PREREQ_RMDIR): Remove.
11206         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
11207         mention stat-macros.h or AC_HEADER_STAT, since we'll make
11208         the stat-macros module a prerequisite.
11209         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
11210         * m4/filemode.m4 (gl_FILEMODE): Likewise.
11211         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
11212         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
11213         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
11214         variable names.
11215         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
11216         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
11217         variable prefixes.
11218         * m4/fcntl-safer.m4: Remove.
11219         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
11220         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
11221         Invoke gl_PREREQ_FD_SAFER.
11222         (gl_PREREQ_FD_SAFER): New macro.
11223         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
11224         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
11225         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
11226         Remove duplicate call to AC_LIBOBJ(readutmp).
11227         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
11228
11229         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
11230         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
11231
11232 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11233
11234         * MODULES.html.sh (Misc): Add byteswap.
11235
11236 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11237
11238         * modules/getcwd (Depends-on): Add extensions.
11239         * modules/openat (Depends-on): Likewise.
11240
11241 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11242
11243         * modules/byteswap: New file.
11244
11245 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11246
11247         * m4/byteswap.m4: New file.
11248
11249 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11250
11251         * lib/byteswap_.h: New file.
11252
11253 2005-04-25  Karl Berry  <karl@gnu.org>
11254
11255         * m4/gettext.m4: Update from GNU gettext 0.14.4.
11256
11257 2005-04-25  Albert Chin  <china@thewrittenword.com>
11258
11259         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
11260         Toolkit C bug.
11261
11262 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
11263
11264         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
11265         (func_ln_if_changed) Remove forcibly for no error message
11266         in case file does not exist.
11267
11268 2005-04-19  Simon Josefsson  <jas@extundo.com>
11269
11270         * gnulib-tool (Options): Make --symlink mean --symbolic.
11271
11272 2005-04-18  Oskar Liljeblad <oskar@osk.mine.nu>
11273
11274         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
11275
11276 2005-04-16  Simon Josefsson  <jas@extundo.com>
11277
11278         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
11279
11280 2005-04-15  Simon Josefsson  <jas@extundo.com>
11281
11282         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
11283
11284 2005-04-15  Simon Josefsson  <jas@extundo.com>
11285
11286         * gnulib-tool: Rename --symlink to --symbolic.
11287
11288 2005-04-15  Oskar Liljeblad <oskar@osk.mine.nu>
11289
11290         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
11291         symbolic links to files instead of copying/moving.  Add --aux-dir,
11292         specifying directory relative --dir where auxiliary build tools
11293         are placed.
11294
11295 2005-04-14  Bruno Haible  <bruno@clisp.org>
11296
11297         * modules/allocsa (License): Change to LGPL.
11298         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11299
11300 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11301
11302         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
11303         that "UTC +1 second" continues to work.  Problem reported
11304         by Dmitry V. Levin.
11305         (relunit_snumber): New rule.
11306         (relunit): Use it.
11307
11308 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11309
11310         * lib/getdate.y (universal_time_zone_table): New constant.
11311         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
11312         universal_time_zone_table.
11313         (lookup_zone): Prefer universal_time_zone_table to
11314         local_time_zone_table, so that "GMT" time stamps are allowed in
11315         London during the summer.  Problem reported by Ian Abbott.
11316
11317 2005-04-12  Jim Meyering  <jim@meyering.net>
11318
11319         * lib/human.c (humblock): Set *options even when returning due to
11320         xstrtoumax conversion failure.  Thanks to a used-uninitialized
11321         warning from gcc-4.
11322
11323 2005-04-09  Jim Meyering  <jim@meyering.net>
11324
11325         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
11326         -Wuninitialized: initialize tm0.tm_year.
11327
11328 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11329
11330         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
11331         count, since there's no maximum.  All uses changed.
11332         Add member dsts_seen.
11333         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
11334         not being INT_MAX.
11335         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
11336         Use pc_rels_seen to decide whther a date is absolute.
11337
11338         * lib/getdate.y (number): Don't overwrite year.
11339         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
11340         check.
11341
11342 2005-04-02  Simon Josefsson  <jas@extundo.com>
11343
11344         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
11345         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
11346
11347 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
11348
11349         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
11350         where no absolute path name can be longer than PATH_MAX.
11351
11352 2005-03-27  Jim Meyering  <jim@meyering.net>
11353
11354         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
11355
11356 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
11357
11358         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
11359         "one's complement" -> "ones' complement" in comment, as per Knuth.
11360         "value of type" -> "type or expression" in comment.
11361         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
11362
11363 2005-03-26  Jim Meyering  <jim@meyering.net>
11364
11365         Comment nits.
11366         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
11367         Correct typos: s/or/of/.
11368
11369 2005-03-26  Jim Meyering  <jim@meyering.net>
11370
11371         * modules/check-include-files: Move to ../ and rename to...
11372         * check-module: ...this.
11373
11374 2005-03-25  Jim Meyering  <jim@meyering.net>
11375
11376         * modules/xvasprintf (Files): Add xalloc.h.
11377
11378 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11379
11380         * modules/gettext (Files): config/config.rpath ->
11381         build-aux/config.rpath
11382         * modules/iconv (Files): Likewise.
11383         Problem reported by Oskar Liljeblad.
11384
11385 2005-03-23  Jim Meyering  <jim@meyering.net>
11386
11387         * modules/check-include-files: New script to check for
11388         missing dependencies, multiple includes, etc.
11389
11390         * modules/c-strtold (Depends-on): Add xalloc.
11391         * modules/c-strtod (Depends-on): Add xalloc.
11392         * modules/hash (Depends-on): Add xalloc.
11393         (Files): Remove lib/xalloc.h.
11394
11395         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
11396         * modules/userspec (Files): Add lib/inttostr.h.
11397
11398 2005-03-23  Jim Meyering  <jim@meyering.net>
11399
11400         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
11401
11402 2005-03-22  Jim Meyering  <jim@meyering.net>
11403
11404         * modules/stat-macros: New module.
11405         * modules/canonicalize, modules/euidaccess, modules/file-type,
11406         * modules/filemode, modules/lchown, modules/makepath,
11407         * modules/rmdir, modules/stat: Depend on new stat-macros module
11408         rather than listing lib/stat-macros.h manually.
11409         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
11410
11411 2005-03-22  Jim Meyering  <jim@meyering.net>
11412
11413         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
11414
11415 2005-03-22  Bruno Haible  <bruno@clisp.org>
11416
11417         * config/srclist.txt: Replace target directory 'config' with
11418         'build-aux'.
11419         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
11420         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
11421         ../build-aux/.
11422
11423 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
11424
11425         * modules/chdir-long (Depends-on): Add mempcpy.
11426
11427         * modules/acl, modules/backupfile, modules/c-strtod,
11428         modules/c-strtold, modules/canon-host, modules/canonicalize,
11429         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
11430         modules/exclude, modules/exitfail, modules/file-type,
11431         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
11432         modules/getdate, modules/getline, modules/getpagesize,
11433         modules/getpass, modules/getugroups, modules/group-member,
11434         modules/hard-locale, modules/hash, modules/human, modules/idcache,
11435         modules/inttostr, modules/long-options, modules/makepath,
11436         modules/md5, modules/memcasecmp, modules/memcoll,
11437         modules/modechange, modules/mountlist, modules/path-concat,
11438         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
11439         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
11440         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
11441         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
11442         modules/strftime, modules/strndup, modules/strverscmp,
11443         modules/timespec, modules/unlocked-io, modules/userspec,
11444         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
11445         modules/yesno:
11446         Remove lib_SOURCES line from Makefile.am section, as this is now
11447         done automatically by the corresponding Autoconf macro.
11448
11449 2005-03-21  Jim Meyering  <jim@meyering.net>
11450
11451         Changes imported from coreutils.
11452
11453         * lib/cycle-check.c: Don't include xalloc.h.
11454
11455         * lib/path-concat.c: Don't include assert.h.
11456         (path_concat): Remove assertion that would have triggered
11457         for ABASE starting with more than one slash.
11458         Reported by Andreas Schwab.
11459
11460         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
11461         properly when ABASE is an absolute file name.
11462         Correct the description of this function.
11463         Include <assert.h>.
11464         Add an assertion and a test driver.
11465         This fixes a bug introduced on 2004-07-02.
11466         Andreas Schwab reported the resulting failure of cp --parents:
11467         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
11468
11469 2005-03-21  Jim Meyering  <jim@meyering.net>
11470
11471         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
11472         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
11473
11474 2005-03-21  Jim Meyering  <jim@meyering.net>
11475         and  Paul Eggert  <eggert@cs.ucla.edu>
11476
11477         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
11478         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
11479         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
11480         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
11481         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
11482         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
11483         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
11484         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
11485         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
11486         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
11487         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
11488         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
11489         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
11490         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
11491         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
11492         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
11493         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
11494         for these modules.
11495
11496 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
11497
11498         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
11499         (which shouldn't happen), generate nothing instead of returning 0
11500         immediately, so that nstrftime (NULL, ...) doesn't return 0.
11501
11502 2005-03-16  Bruno Haible  <bruno@clisp.org>
11503
11504         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
11505         HAVE_LONGLONG_64BIT.
11506
11507 2005-03-16  Bruno Haible  <bruno@clisp.org>
11508
11509         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
11510         HAVE_LONGLONG_64BIT.
11511
11512 2005-03-16  Bruno Haible  <bruno@clisp.org>
11513
11514         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
11515         HAVE_LONGLONG_64BIT.
11516
11517 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
11518
11519         * lib/strftime.c (my_strftime): Prepend space to format so that we can
11520         reliably distinguish strftime failure from empty output on POSIX
11521         hosts.
11522
11523 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
11524
11525         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
11526         (iconv_string): Don't guess a size-zero buffer, as that might cause
11527         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
11528         result would be 'too large', where 'too large' is (heuristically)
11529         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
11530         overflow concerns.  This will prevent some unwanted malloc failures
11531         when the inputs are very large.
11532
11533 2005-03-15  Karl Berry  <karl@gnu.org>
11534
11535         * config/srclist.txt (config.rpath): from gettext.
11536         * config/config.rpath: update.
11537
11538 2005-03-15  Bruno Haible  <bruno@clisp.org>
11539
11540         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
11541         to 'negate'.
11542
11543         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
11544         variable.
11545
11546         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
11547         results.
11548
11549 2005-03-14  Simon Josefsson  <jas@extundo.com>
11550
11551         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
11552         <fx@gnu.org>.
11553
11554 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
11555
11556         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
11557         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
11558         intprops.h.
11559         * lib/strtol.c: Likewise.
11560
11561 2005-03-14  Jim Meyering  <jim@meyering.net>
11562
11563         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
11564         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
11565         to be nonzero so that we (and caller) can detect the difference
11566         between a valid zero-length expansion and an error return, even
11567         when the underlying strftime fails before writing anything into
11568         that location.
11569
11570 2005-03-14  Bruno Haible  <bruno@clisp.org>
11571
11572         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
11573         Update from GNU gettext 0.14.3.
11574
11575 2005-03-10  Jim Meyering  <jim@meyering.net>
11576
11577         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
11578
11579 2005-03-10  Jim Meyering  <jim@meyering.net>
11580
11581         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
11582         so that this module works on systems without fchdir.
11583
11584 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11585
11586         Factor int-properties macros into a single file, except for
11587         glibc-related files.
11588         * lib/intprops.h: New file.
11589         * lib/getloadavg.c: Include it instead of limits.h.
11590         (INT_STRLEN_BOUND): Remove.
11591         * lib/human.c: Include intprops.h.
11592         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
11593         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
11594         302/1000.
11595         * lib/inttostr.h: Include intprops.h instead of limits.h.
11596         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
11597         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
11598         for consistency with intprops.h.
11599         (time_t_is_integer, twos_complement_arithmetic): Use them.
11600         * lib/sig2str.h: Include <signal.h>, intprops.h.
11601         (INT_STRLEN_BOUND): Remove.
11602         * lib/strftime.c (TYPE_SIGNED): Remove.
11603         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
11604         * lib/strtol.c: Adjust comments to match intprops.h.
11605         * lib/userspec.c: Include intprops.h.
11606         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
11607         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
11608         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
11609         instead of rolling our own expressions.
11610         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
11611
11612         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
11613         instead of int.
11614         (my_strftime): Do not mishandle years close to INT_MAX, by doing
11615         the right thing even if adding 1900 would overflow.  Similarly
11616         for tm_mon + 1 and tm_yday + 1.
11617         Make %Y always equivalent to %C%y, and similarly for %G and %g.
11618         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
11619         (DO_SIGNED_NUMBER): New macro.
11620         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
11621
11622 2005-03-07  Bruno Haible  <bruno@clisp.org>
11623
11624         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
11625
11626 2005-03-07  Bruno Haible  <bruno@clisp.org>
11627
11628         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
11629
11630 2005-03-04  Derek R. Price  <derek@ximbiot.com>
11631
11632         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
11633         (func_import): Only replace files via --import when they have actually
11634         changed.
11635
11636 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11637
11638         * m4/mmap-anon.m4: New file.
11639         * m4/pagealign_alloc.m4: New file.
11640
11641 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11642             Bruno Haible  <bruno@clisp.org>
11643
11644         * modules/pagealign_alloc: New file.
11645         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
11646
11647 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11648             Bruno Haible  <bruno@clisp.org>
11649
11650         * lib/pagealign_alloc.h: New file.
11651         * lib/pagealign_alloc.c: New file.
11652
11653 2005-03-03  Bruno Haible  <bruno@clisp.org>
11654
11655         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
11656         Use an all-permissive copyright notice, recommended by RMS.
11657
11658 2005-03-02  Bruno Haible  <bruno@clisp.org>
11659
11660         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
11661         of AIX, the replacement has to be done only after <string.h> is
11662         included, therefore not in config.h. stpncpy.h does the replacement,
11663         and stpncpy.c uses it.
11664
11665 2005-03-02  Bruno Haible  <bruno@clisp.org>
11666
11667         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
11668         stpncpy.c uses it.
11669
11670 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11671
11672         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
11673         The workaround isn't strictly needed for POSIX conformance, and
11674         it's too much of a pain to configure and maintain.  We'll ask
11675         people to fix their kernels instead.
11676         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
11677         (NANOSLEEP_BUG_WORKAROUND): Remove.
11678         (xnanosleep): Remove the workaround.
11679
11680 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11681
11682         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
11683         Reported by Derek Price.
11684         (Include): Add "timespec.h".
11685
11686         * modules/xnanosleep (Depends-on): Remove gethrxtime.
11687
11688 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
11691         to detect nanosleep bug.
11692
11693 2005-03-01  Bruno Haible  <bruno@clisp.org>
11694
11695         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
11696
11697 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11698
11699         * modules/gethrxtime: New file.
11700         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
11701         (Depends-on): Add gethrxtime.
11702         (configure.ac): Add gl_XNANOSLEEP.
11703         (Makefile.am): Remove lib_SOURCES line.
11704
11705 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11706
11707         * m4/gethrxtime.m4, xnanosleep.m4: New files.
11708         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
11709
11710 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11711
11712         * lib/gethrxtime.h, gethrxtime.c, xtime.h: New files.
11713         * lib/timespec.h (gettime): Return void, since it always
11714         succeeds now.  All uses changed.
11715         * lib/gettime.c (gettime) Likewise.
11716         [HAVE_NANOTIME]: Prefer nanotime.
11717         Assume gettimeofday succeeds, as POSIX requires.
11718         Assime time () succeeds, since other code already does.
11719         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
11720         (timespec_subtract): Remove.
11721         (NANOSLEEP_BUG_WORKAROUND): New constant.
11722         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
11723         things considerably.  Use it only on GNU/Linux hosts, since the
11724         workaround shouldn't be needed elsewhere.
11725
11726 2005-02-24  Bruno Haible  <bruno@clisp.org>
11727
11728         * modules/gettext (Files): Add m4/glibc2.m4.
11729
11730 2005-02-24  Bruno Haible  <bruno@clisp.org>
11731
11732         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
11733         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
11734         * m4/progtest.m4:
11735         Update from GNU gettext 0.14.2.
11736         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
11737
11738 2005-02-24  Bruno Haible  <bruno@clisp.org>
11739
11740         * lib/localcharset.c: Update from GNU gettext 0.14.2.
11741         * lib/config.charset: Update from GNU gettext 0.14.2.
11742
11743 2005-02-24  Bruno Haible  <bruno@clisp.org>
11744
11745         * lib/gettext.h: Update from GNU gettext 0.14.2.
11746
11747 2005-02-23  Simon Josefsson  <jas@extundo.com>
11748
11749         * m4/iconvme.m4: New file.
11750
11751 2005-02-23  Jim Meyering  <jim@meyering.net>
11752
11753         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
11754         change.
11755         Thanks to Bruno Haible for catching it.
11756
11757 2005-02-22  Simon Josefsson  <jas@extundo.com>
11758
11759         * modules/iconvme: New file.
11760
11761         * MODULES.html.sh: Add iconvme.
11762
11763 2005-02-22  Simon Josefsson  <jas@extundo.com>
11764
11765         * lib/iconvme.h, iconvme.c: New files, from libc.
11766
11767 2005-02-22  Simon Josefsson  <jas@extundo.com>
11768
11769         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
11770
11771 2005-02-22  Jim Meyering  <jim@meyering.net>
11772
11773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
11774         s/ifndef/ifdef/.
11775
11776 2005-02-20  Neil Conway  <neilc@samurai.com>
11777
11778         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
11779         returned by OSX/Darwin if the specified buffer is not large
11780         enough for the hostname.
11781
11782 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11783
11784         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
11785         pass it to _help, otherwise the latter coredumps trying to
11786         dereference state.root_argp.
11787
11788 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11789
11790         * modules/chdir-long (Depends-on): Add memrchr.
11791         * modules/memrchr (Files): Add lib/memrchr.h.
11792         (Include): "memrchr.h".
11793
11794 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11795
11796         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
11797
11798 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11799
11800         * lib/memrchr.h: New file.
11801         * lib/chdir-long.c: Include it.
11802         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
11803         Don't bother including stddef.h.
11804
11805 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
11806
11807         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
11808         inclusion.
11809         Include <sys/types.h>, for dev_t.
11810         (ME_DUMMY, ME_REMOTE): Move from here....
11811         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
11812         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
11813         Dmitry V. Levin.
11814         Include mountlist.h first, to test the interface.
11815
11816 2005-01-29  Bruno Haible  <bruno@clisp.org>
11817
11818         * lib/progname.c (program_name): Initialize.
11819         Needed when linking statically on MacOS X.
11820
11821 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11822
11823         Sync from coreutils.
11824         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
11825         (Depends-on): Add c-strtod.
11826         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
11827
11828 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11829
11830         Sync from coreutils.
11831         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
11832
11833         Remove files that are specific to coreutils.
11834         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
11835
11836 2005-01-28  Bruno Haible  <bruno@clisp.org>
11837
11838         * modules/javacomp: New file.
11839         * MODULES.html.sh (Java): Add javacomp.
11840
11841 2005-01-28  Bruno Haible  <bruno@clisp.org>
11842
11843         * m4/javacomp.m4: New file, from GNU gettext.
11844
11845 2005-01-28  Bruno Haible  <bruno@clisp.org>
11846
11847         * lib/javacomp.sh.in: New file, from GNU gettext.
11848         * lib/javacomp.h: New file, from GNU gettext.
11849         * lib/javacomp.c: New file, from GNU gettext.
11850
11851 2005-01-26  Simon Josefsson  <jas@extundo.com>
11852
11853         * lib/gai_strerror.c: Use GPL in header.
11854
11855 2005-01-26  Bruno Haible  <bruno@clisp.org>
11856
11857         * modules/javaexec: New file.
11858         * MODULES.html.sh (Java): Add javaexec.
11859
11860 2005-01-26  Bruno Haible  <bruno@clisp.org>
11861
11862         * m4/javaexec.m4: New file, from GNU gettext.
11863
11864 2005-01-26  Bruno Haible  <bruno@clisp.org>
11865
11866         * lib/javaexec.sh.in: New file, from GNU gettext.
11867         * lib/javaexec.h: New file, from GNU gettext.
11868         * lib/javaexec.c: New file, from GNU gettext.
11869
11870 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11871
11872         * modules/lchown (Depends-on): Remove lchown.h
11873
11874 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11875
11876         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
11877         must be defined if the header file was not found, in order
11878         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
11879
11880 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11881
11882         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
11883         initializers for struct pentry_state.
11884         (__argp_error): Check return value of __asprintf
11885         (__argp_failure): Translate error message
11886
11887         * lib/argp-parse.c: Removed braces around the expansion of N_()
11888
11889 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11890
11891         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
11892         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
11893         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
11894         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
11895         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
11896         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
11897         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
11898         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
11899         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
11900         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
11901         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
11902         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
11903         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
11904         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
11905         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
11906         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
11907         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
11908         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
11909         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
11910         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
11911         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
11912         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
11913         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
11914         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
11915         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
11916         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
11917         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
11918         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
11919         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
11920         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
11921         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
11922         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
11923         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
11924         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
11925         xstrtol.m4, xstrtoumax.m4, yesno.m4:
11926         Use an all-permissive copyright notice, recommended by RMS.
11927
11928 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11929
11930         * modules/chdir-long (Depends-on): Remove mempcpy.
11931
11932 2005-01-21  Jim Meyering  <jim@meyering.net>
11933
11934         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
11935         same value as for Solaris 9.
11936
11937         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
11938         component length.  This included changing the parameter to be
11939         of type `char *' rather than `char const *'.
11940         * lib/chdir-long.h (chdir_long): Update prototype.
11941
11942         * lib/openat.c (fdopendir, fstatat): New functions.
11943         * lib/openat.h: Include headers required for use of DIR and struct
11944         stat.
11945         [AT_SYMLINK_NOFOLLOW]: Define.
11946         (fdopendir, fstatat): Add prototypes.
11947
11948 2005-01-21  Bruno Haible  <bruno@clisp.org>
11949
11950         * modules/classpath: New file.
11951         * MODULES.html.sh (Java): Add classpath.
11952
11953 2005-01-21  Bruno Haible  <bruno@clisp.org>
11954
11955         * lib/classpath.h: New file, from GNU gettext.
11956         * lib/classpath.c: New file, from GNU gettext.
11957
11958 2005-01-20  Simon Josefsson  <jas@extundo.com>
11959
11960         * modules/version-etc-fsf: New file.
11961
11962 2005-01-20  Simon Josefsson  <jas@extundo.com>
11963
11964         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
11965         * lib/version-etc.c: Remove version_etc_copyright.
11966         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
11967         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
11968
11969 2005-01-20  Simon Josefsson  <jas@extundo.com>
11970
11971         * lib/base64.h (isbase64): Add.
11972
11973         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
11974         using a unsigned prototype, don't inline.
11975         (base64_decode): Use it.
11976
11977 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11978
11979         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
11980         it.
11981
11982 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11983
11984         * lib/save-cwd.c (save_cwd): Remove code to support the case
11985         where fchdir is missing or flaky.
11986
11987 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11988
11989         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
11990
11991 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11992
11993         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
11994         AC_LIBSOURCES now does this.
11995         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
11996         with new ullong_max module.
11997
11998 2005-01-19  Bruno Haible  <bruno@clisp.org>
11999
12000         * modules/sh-quote: New file.
12001         * MODULES.html.sh (Executing programs): Add sh-quote.
12002
12003 2005-01-19  Bruno Haible  <bruno@clisp.org>
12004
12005         * lib/sh-quote.h: New file, from GNU gettext.
12006         * lib/sh-quote.c: New file, from GNU gettext.
12007
12008 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12009
12010         Merge from coreutils.
12011         * m4/ullong_max.m4: New file.
12012         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
12013         (gl_MACROS): Assume localeconv exists.
12014
12015 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12016
12017         Merge changes from coreutils, as described below in several
12018         changelogs dated today.
12019
12020         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
12021         (O_DIRECTORY): Remove; not needed here, since "." must be
12022         a directory.  All uses removed.
12023         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
12024         universal on Suns, and we also need to test for IRIX.
12025         Revamp code to use 'if' rather than '#if'.
12026         Avoid unnecessary comparison of cwd->desc to 0.
12027
12028         * lib/utimens.c (futimens): Robustify the previous patch, by checking
12029         for known valid error numbers rather than observed invalid ones.
12030
12031 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12032
12033         * modules/ullong_max: New file.
12034
12035         * modules/chdir-long, modules/openat: New files.
12036         * modules/save-cwd (Depends-on): Depend on chdir-long.
12037         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
12038
12039 2005-01-18  Jim Meyering  <jim@meyering.net>
12040
12041         Merge from coreutils.
12042         * m4/chdir-long.m4, openat.m4: New files.
12043         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
12044         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
12045         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
12046         is sane and DOES follow symlinks.  Besides, testing 20 different
12047         systems found no broken chown implementations.
12048         Prompted by a change in rsync's copy of this macro.
12049         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
12050
12051         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
12052
12053         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
12054         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
12055         NULL-means-set-to-current-time semantics.
12056         Remove temporary file immediately, rather than waiting
12057         for configure's at-exit trap code to do it.
12058
12059 2005-01-18  Jim Meyering  <jim@meyering.net>
12060
12061         * lib/version-etc.c (version_etc_copyright): Update copyright date.
12062
12063         * lib/utimens.c (futimens): Account for the fact that futimes
12064         can also fail with errno == ENOSYS or errno == ENOENT.
12065         Patch from Dmitry V. Levin.
12066
12067         Change the name of the robust chdir function from chdir to chdir_long.
12068         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
12069         (restore_cwd): Use chdir_long, not chdir.
12070         * lib/chdir-long.c: Renamed from chdir.c.
12071         * lib/chdir-long.h: Renamed from chdir.h.
12072         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
12073         Hurd.
12074
12075 2005-01-18  Bruno Haible  <bruno@clisp.org>
12076
12077         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
12078         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
12079         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
12080         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
12081         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
12082         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
12083         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
12084         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
12085         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
12086         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
12087         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
12088         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
12089         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
12090         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
12091         Use an all-permissive copyright notice, recommended by RMS.
12092
12093 2005-01-18  Bob Proulx  <bob@proulx.com>
12094
12095         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
12096         simplify offsetof() macro construct to avoid compile failure with
12097         native HP-UX 11.0 ANSI C compiler.
12098
12099 2005-01-17  Bruno Haible  <bruno@clisp.org>
12100
12101         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
12102         redundant because stpncpy.m4 takes care of it.
12103
12104 2005-01-17  Bruno Haible  <bruno@clisp.org>
12105
12106         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
12107
12108 2005-01-17  Bruno Haible  <bruno@clisp.org>
12109
12110         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
12111         used.
12112
12113 2005-01-17  Bruno Haible  <bruno@clisp.org>
12114
12115         * lib/fwriteerror.h (fwriteerror): Change specification to include
12116         fclose.
12117         * lib/fwriteerror.c: Include <stdbool.h>.
12118         (fwriteerror): At the end, close the file stream. Record whether
12119         stdout was already closed.
12120
12121 2005-01-17  Bruno Haible  <bruno@clisp.org>
12122
12123         * lib/execute.c (environ): Declare if needed.
12124         * lib/pipe.c (environ): Likewise.
12125         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
12126
12127 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12128
12129         * modules/argp: Depend on vsnprintf
12130
12131 2005-01-10  Jim Meyering  <jim@meyering.net>
12132
12133         * modules/closeout (Depends-on): Add atexit.
12134
12135 2005-01-06  Bruno Haible  <bruno@clisp.org>
12136
12137         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
12138
12139 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12140
12141         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
12142         definitions to be after all include files, to avoid collisions.
12143         Problem reported by Bob Proulx.
12144
12145 2005-01-04  Jim Meyering  <jim@meyering.net>
12146
12147         Changes imported from coreutils.
12148         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
12149         as the mkstemp template, use a temporary directory and an
12150         8.3-friendly template to avoid trouble on systems like DJGPP.
12151         Reported by Juan M. Guerrero via Stepan Kasal.
12152         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
12153         close. Remove the temporary directory right away, rather than waiting
12154         for configure's at-exit trap code to do it.
12155         Suggestion from Stepan Kasal.
12156
12157 2005-01-01  Simon Josefsson  <jas@extundo.com>
12158
12159         * gnulib-tool: Print #include directives when --import'ing.
12160
12161 2004-12-28  Simon Josefsson  <jas@extundo.com>
12162
12163         * tests/test-base64.c: Include required header files.  Remove
12164         unused variables.
12165
12166 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12167
12168         * modules/error (Depends-on): Remove gettext.
12169
12170 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12171
12172         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
12173         not needed.  This removes a dependency on the gettext module.
12174         [defined _LIBC]: Do not include <libintl.h>; not needed.
12175
12176 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
12177
12178         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
12179         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
12180
12181 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
12182
12183         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
12184         HAVE_DECL_STRTOLD.
12185
12186 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12187
12188         * modules/getdate (Depends-on): Remove alloca-opt.
12189
12190 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12191
12192         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
12193
12194 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12195
12196         * lib/argp-parse.c: Include <stddef.h>.
12197         (alignof, alignto): New macros.
12198         (parser_init): Don't assume that void * is aligned sufficiently
12199         for struct option.
12200
12201         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
12202         need to extend the stack.
12203         (YYINITDEPTH): New macro, so that the initial stack isn't overly
12204         large.
12205
12206 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12207
12208         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
12209
12210 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12211
12212         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
12213         (2004-10-24) change.  Apparently this was a false alarm.
12214
12215         * modules/getdate: Depend on alloca-opt, not alloca.
12216
12217 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12218
12219         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
12220         Remove now-obsolete comment about AIX.
12221         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
12222         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
12223         (YYMAXDEPTH): New macro.
12224
12225 2004-12-18  Simon Josefsson  <jas@extundo.com>
12226
12227         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
12228
12229 2004-12-18  Bruno Haible  <bruno@clisp.org>
12230
12231         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
12232
12233 2004-12-18  Bruno Haible  <bruno@clisp.org>
12234
12235         * lib/fatal-signal.c (fatal_signals): Make non-const.
12236         (init_fatal_signals): New function.
12237         (uninstall_handlers, install_handlers): Ignore signals that were set to
12238         SIG_IGN.
12239         (at_fatal_signal): Call init_fatal_signals.
12240         (init_fatal_signal_set): Likewise. Ignore signals that were set to
12241         SIG_IGN.
12242         Reported by Paul Eggert.
12243
12244 2004-12-18  Bruno Haible  <bruno@clisp.org>
12245
12246         * doc/alloca.texi: New file.
12247         * doc/alloca-opt.texi: New file.
12248
12249 2004-12-17  Jim Meyering  <jim@meyering.net>
12250
12251         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
12252         Otherwise, install-sh could exit with improper exit status when
12253         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
12254
12255 2004-12-16  Simon Josefsson  <jas@extundo.com>
12256
12257         * tests/test-base64.c: Add license.
12258
12259 2004-12-15  Stepan Kasal  <address@hidden>
12260
12261         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
12262
12263 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12264
12265         * modules/getcwd (Files): Add m4/d-ino.m4.
12266         Suggested by Mark D. Baushke.
12267
12268 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
12269
12270         * lib/getdate.y (textint): New member "negative".
12271         (time_zone_hhmm): New function.
12272         Expect 14 shift-reduce conflicts, not 13.
12273         (o_colon_minutes): New rule.
12274         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
12275         (yylex): Set the "negative" member of signed numbers.
12276
12277 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         * doc/getdate.texi (Time of day items, Time zone items):
12280         Describe new formats +00:00, UTC+00:00.
12281
12282 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
12283
12284         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
12285         spurious "-l"s.  Problem reported by Stepan Kasal.
12286
12287 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
12288
12289         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
12290         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
12291
12292 2004-12-04  Simon Josefsson  <jas@extundo.com>
12293
12294         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
12295         Vandoorselaere <yoann@prelude-ids.org>.
12296
12297 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12298
12299         Changes imported from coreutils.
12300         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
12301         exist.
12302         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
12303
12304 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12305
12306         Changes imported from coreutils.
12307         * lib/hard-locale.c: Assume <locale.h> exists.
12308         Include "strdup.h".
12309         (GLIBC_VERSION): New macro.
12310         (hard_locale): Assume setlocale exists.
12311         Rewrite to avoid #ifdef.
12312         Use strdup rather than malloc + strcpy.
12313         * lib/human.c: Assume <locale.h> exists.
12314         (human_readable): Assume localeconv exists.
12315
12316 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12317
12318         * modules/hard-locale (Depends-on): Add strdup.
12319
12320 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
12321
12322         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
12323         convert T2, not T.  (Imported from libc.)
12324
12325 2004-11-30  Simon Josefsson  <jas@extundo.com>
12326
12327         * modules/restrict (License): Change to LGPL.
12328
12329 2004-11-30  Simon Josefsson  <jas@extundo.com>
12330
12331         * m4/restrict.m4: Add copyright and copying conditions.
12332
12333 2004-11-30  Simon Josefsson  <jas@extundo.com>
12334
12335         * m4/base64.m4: New file.
12336
12337 2004-11-30  Simon Josefsson  <jas@extundo.com>
12338
12339         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
12340         base64.
12341
12342         * tests/test-base64.c: New file.
12343
12344         * modules/base64: New file.
12345
12346 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12347
12348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
12349         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
12350
12351         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
12352
12353 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12354
12355         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
12356         (__getcwd.c): Don't restore errno; glibc doesn't.
12357         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
12358         first, falling back to our code only if its results look suspicious.
12359         Ensure that the resulting buffer is only as large as necessary.
12360
12361         * lib/readutmp.c: Include readutmp.h first.
12362         Include <errno.h>, since readutmp.h no longer does that.
12363         * lib/readutmp.h: Don't include <errno.h>,
12364         <sys/param.h>, <time.h>; not needed to establish interface.
12365         (errno): Remove decl.
12366         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
12367         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
12368         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
12369
12370 2004-11-28  Simon Josefsson  <jas@extundo.com>
12371
12372         * lib/base64.h, base64.c: New file.
12373
12374 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
12375
12376         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
12377
12378 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
12379
12380         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
12381         (Depends-on): Remove pathmax, same.  Add mempcpy.
12382         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
12383         (Makefile.am): Append getcwd.h to lib_SOURCES.
12384         (Include): Add getcwd.h.
12385         (Maintainer): Change from Jim Meyering to "all, glibc",
12386         since getdate now uses intended-for-glibc code.
12387         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
12388         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
12389
12390 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12391
12392         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
12393         HP's ANSI C compiler.
12394         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
12395         Declaring int functions causes warnings on some modern systems and
12396         shouldn't be needed to compile on ancient ones.
12397         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
12398         defined.
12399
12400         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
12401         with the following changes.
12402         (__set_errno): Parenthesize properly.
12403         Include <stdbool.h>.
12404         (MIN, MAX, MATCHING_INO): New macros.
12405         (__getcwd): Define with prototype, not K&R form.
12406         Use heuristics to allocate default buffer on stack if possible.
12407         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
12408         behavior, and to avoid the PATH_MAX limit when computing
12409         ../../../../...
12410         Use MATCHING_INO to compare inode number to file.
12411         Check for arithmetic overflow in size calculations.
12412         Fix bug in reallocation of dot array that caused getcwd to fail
12413         on directories nested deeper than 75.
12414         Be more careful about saving errno on error.
12415         Do not use realloc; use only free+malloc, as this is a bit
12416         more flexible and avoids a needless copy operation.
12417         Do not inspect st_dev and st_ino for symbolic links; POSIX
12418         doesn't specify the latter.
12419         Check for closedir errors.
12420         Avoid needless casts.
12421         Use "#ifdef weak_alias" around weak_alias, to be like other
12422         glibc code.
12423         The following changes to getcwd.c have effect only when used in
12424         gnulib; they have no effect inside glibc proper.
12425         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
12426         as alloca isn't used.
12427         (alloca, __alloca): Likewise.
12428         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
12429         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
12430         unconditionally, as gnulib assumes C89 or better.
12431         Do not include <sys/param.h>.
12432         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
12433         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
12434         better.
12435         (NULL) [!defined NULL]: Remove; we assume C89 or better.
12436         Include <dirent.h> in a way that is compatible with modern Autoconf.
12437         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
12438         New macros, if not already defined.
12439         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
12440         Use "_LIBC", not "defined _LIBC", for consistency.
12441         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
12442         a mempcpy module.
12443         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
12444         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
12445         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
12446         credit only to Jim Meyering and adjust the copyright dates.
12447         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
12448         <stdlib.h>, <unistd.h>, "pathmax.h".
12449         Instead, include "xgetcwd.h" (first) and "getcwd.h".
12450         (INITIAL_BUFFER_SIZE): Remove.
12451         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
12452
12453 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12454
12455         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
12456         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
12457         Use the _ONCE methods, for efficiency.
12458         Check for fcntl.h.  In test program, include <errno.h>
12459         and <fcntl.h> if available.  Remove old K&R cruft from
12460         test program.  Check for common errors in GNU/Linux,
12461         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
12462         don't do AC_LIBOBJ, as that's getcwd.m4's job.
12463         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
12464         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
12465         name accordingly.
12466         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
12467         accommodate new getcwd.c.
12468         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
12469         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
12470         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
12471         that's all we need now.
12472
12473 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12474
12475         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
12476         argp-parse.c depends on getopt internals, that means we should
12477         always use our getopt, to be on the safe side.
12478         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
12479         order not to spoil the result of an eventual previous invocation
12480         of gl_GETOPT_SUBSTITUTE.
12481
12482 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12483
12484         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
12485         redefinition warnings. To avoid them, include the defines
12486         in `#if !defined __need_getopt ... #endif'. The only place
12487         where __getopt_argv_const is used is in definitions
12488         of getopt_long and getopt_long_only below, which are as well
12489         protected by `#ifndef __need_getopt'.
12490         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
12491         __need_getopt after including <stdio.h> and <unistd.h> These
12492         headers might have defined it.
12493
12494 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12495
12496         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
12497
12498 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12499
12500         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
12501         (futimens): New function, which uses futimes if available.
12502         (futimens, utimens): Support timespec==NULL, with same semantics
12503         as utime and utimens.
12504         * lib/utimens.h (futimens): New decl.
12505
12506 2004-11-23  Jim Meyering  <jim@meyering.net>
12507
12508         * lib/getopt_.h: Remove trailing blanks.
12509
12510 2004-11-23  Jim Meyering  <jim@meyering.net>
12511
12512         * lib/__fpending.c: Add comment.
12513
12514 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12515
12516         * modules/canonicalize (Depends-on): Add xreadlink.
12517         Problem reported by James Youngman.
12518
12519 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12520
12521         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
12522         New macros.
12523         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
12524         optopt): Use them instead of invoking ## directly; otherwise, the
12525         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
12526
12527 2004-11-19  Bruno Haible  <bruno@clisp.org>
12528
12529         * lib/strtok_r.c: Move comments from here...
12530         * lib/strtok_r.h: ... to here.
12531
12532 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12533
12534         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
12535         implementations that mishandle size_t overflow.
12536
12537 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12538
12539         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
12540         might fail.  Problem reported by Yoann Vandoorselaere.
12541         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
12542         implementations that mishandle size_t overflow.
12543
12544 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         * modules/canon-host (Depends-on): Add strdup.
12547
12548 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12549
12550         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
12551
12552 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12553
12554         * lib/canon-host.c: Include "strdup.h".
12555         (canon_host): Use getaddrinfo if available, so that IPv6 works.
12556         Use strdup instead of malloc/strcpy to duplicate strings.
12557
12558         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
12559         (human_space_before_unit): New constant.
12560         * lib/human.c (human_readable): Support it.
12561
12562         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
12563         (xgetcwd): Set errno correctly when failing.
12564         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
12565         the failure is actually due to a PATH_MAX problem.
12566
12567         Further getopt changes to make it more likely that glibc will
12568         buy the changes back.
12569         * lib/getopt.c (POSIXLY_CORRECT): New constant.
12570         (getopt): Use it, so to preserve glibc semantic
12571         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
12572         when compiling for libc.
12573         * lib/getopt_.h (__getopt_argv_const): Bring it back.
12574         (getopt_long, getopt_long_only): Use it.
12575
12576         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
12577         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
12578         (getopt): Argv is now char * const *, as per standard.
12579         (_getopt_internal_r, _getopt_internal): Argv is now char **,
12580         not char *__getopt_argv_const *.
12581         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
12582         _getopt_long_only_r): Likewise.
12583         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
12584         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
12585         _getopt_long_r, _getopt_long_only_r): Likewise.
12586         * lib/getopt_.h (__getopt_argv_const): Remove.
12587         (getopt): Argv is now char * const *, as per standard.
12588
12589         * lib/getdate.y (tORDINAL): New token.
12590         (day, relunit): Allow it for relative times.
12591         (relative_time_table): Use tORDINAL for ordinals.
12592
12593 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12594
12595         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
12596         Document that "second" isn't allowed as an ordinal number.
12597
12598 2004-11-16  Jim Meyering  <jim@meyering.net>
12599
12600         * modules/closeout (Depends-on): Add fpending.
12601
12602 2004-11-15  Jim Meyering  <jim@meyering.net>
12603
12604         * lib/closeout.c: Include "__fpending.h" once again.
12605         Include <stdbool.h>.
12606         (close_stdout): Don't fail just because stdout was closed initially,
12607         since some programs don't write to stdout in the normal course of
12608         operation (other than --version and --help), and we don't want this
12609         function to make e.g. `touch file >&-' fail.
12610         But do fail if it was closed and someone has tried to write to it.
12611         E.g., `printf foo >&-' must fail.
12612
12613 2004-11-13  Jim Meyering  <jim@meyering.net>
12614
12615         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
12616
12617 2004-11-12  Simon Josefsson  <jas@extundo.com>
12618
12619         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
12620         small doc fix is still pending.
12621
12622 2004-11-11  Simon Josefsson  <jas@extundo.com>
12623
12624         * modules/strtok_r: New file.
12625
12626         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12627         strtok_r.
12628
12629 2004-11-11  Simon Josefsson  <jas@extundo.com>
12630
12631         * m4/strtok_r.m4: New file.
12632
12633         * m4/getopt.m4: Replace opterr.
12634
12635 2004-11-11  Simon Josefsson  <jas@extundo.com>
12636
12637         * lib/strtok_r.h, strtok_r.c: New file.
12638
12639 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12640
12641         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
12642         of replacing opterr, getopt, etc.  This should handle the
12643         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
12644
12645 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12646
12647         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
12648         we can stop lying to compilers about the constness of argv when we
12649         are compiled outside glibc.
12650         (getopt, getopt_long, getopt_long_only): Use it.
12651         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
12652         _getopt_internal, getopt): Likewise.
12653         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
12654         _getopt_long_only_r): Likewise.
12655         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
12656         _getopt_long_r, _getopt_long_only_r): Likewise.
12657
12658         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
12659         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
12660         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
12661         the other external symbols.
12662         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
12663         declaration, since the above renaming now works around collisions.
12664
12665 2004-11-11  Jim Meyering  <jim@meyering.net>
12666
12667         * lib/linebreak.c: Remove trailing blanks.
12668         * lib/alloca_.h: Likewise.
12669         * lib/acosl.c: Likewise.
12670         * lib/euidaccess.c: Likewise.
12671         * lib/allocsa.h: Likewise.
12672
12673 2004-11-10  Simon Josefsson  <jas@extundo.com>
12674
12675         * m4/getaddrinfo.m4: New file.
12676
12677 2004-11-10  Simon Josefsson  <jas@extundo.com>
12678
12679         * lib/getaddrinfo.h, getaddrinfo.c: New files.
12680
12681 2004-11-10  Simon Josefsson  <jas@extundo.com>
12682
12683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12684         getaddrinfo.
12685
12686         * modules/getaddrinfo: New file.
12687
12688 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12689
12690         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
12691
12692 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12693
12694         * lib/mktime.c (SHR): New macro, which is a portable
12695         substitute for >> that should work even on Crays.
12696         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
12697         Problem reported by Mark D. Baushke in
12698         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
12699         * lib/getdate.y (SHR): Likewise.
12700         (tm_diff): Use it.
12701         * lib/strftime.c (SHR): Likewise.
12702         (tm_diff): Use it.
12703         * lib/quotearg.c (struct quoting_options): Use unsigned int for
12704         quote_these_too, so that right shifts are well defined.  All uses
12705         changed.
12706
12707 2004-11-10  Jim Meyering  <jim@meyering.net>
12708
12709         Ensure that no close failure goes unreported.
12710         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
12711         return early when it seems there's nothing to flush.
12712         Don't include __fpending.h.
12713
12714 2004-11-10  Jim Meyering  <jim@meyering.net>
12715
12716         * modules/closeout (Depends-on): Remove fpending.
12717
12718 2004-11-10  Jim Meyering  <jim@meyering.net>
12719
12720         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
12721
12722 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12723
12724         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
12725         gl_FUNC_STRFTIME.
12726         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
12727         and AC_REQUIRE when possible, to avoid duplicate checks.
12728         Check for <wchar.h>.
12729
12730 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12731
12732         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
12733
12734 2004-11-09  Bruno Haible  <bruno@clisp.org>
12735
12736         * m4/sockpfaf.m4: New file.
12737
12738 2004-11-05  Bruno Haible  <bruno@clisp.org>
12739
12740         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
12741         Reported by Mark D. Baushke <mdb@cvshome.org>.
12742
12743 2004-11-04  Bruno Haible  <bruno@clisp.org>
12744
12745         2004-09-11  Bruno Haible  <bruno@clisp.org>
12746                 * allocsa.valgrind: New file.
12747         2004-02-06  Bruno Haible  <bruno@clisp.org>
12748                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
12749                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
12750                 Reported by Christopher Seip <chris.seip@hp.com>.
12751
12752 2004-11-04  Bruno Haible  <bruno@clisp.org>
12753
12754         * modules/allocsa (Files): Add lib/allocsa.valgrind.
12755         (Makefile.am): Distribute it.
12756
12757 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12758
12759         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
12760         with errno == ERANGE if the buffer is too small.
12761         Problem reported by Mark D. Baushke.
12762
12763 2004-11-03  Albert Chin <china@thewrittenword.com>
12764             Paul Eggert  <eggert@cs.ucla.edu>
12765
12766         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
12767         equivalent, substitute $ac_type for equivalent type rather than
12768         blindly using uint32_t *always* which won't work if uint32_t is not
12769         available.  Define _UINT32_T to work around typedef of uint32_t if
12770         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
12771         2.5.1.
12772
12773 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12774
12775         * m4/jm-macros.m4: Sync from coreutils.
12776         (gl_MACROS): Check for mbrlen, for pathchk.
12777         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
12778
12779 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12780
12781         * lib/xreadlink.c (MAXSIZE): New macro.
12782         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
12783         size does not exceed MAXSIZE.  Avoid cast.
12784         As suggested by Mark D. Baushke in
12785         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
12786         if readlink fails with buffer size just under MAXSIZE, try again
12787         with MAXSIZE.
12788
12789 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12790
12791         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
12792
12793 2004-11-02  Derek R. Price  <derek@ximbiot.com>
12794         and  Paul Eggert  <eggert@cs.ucla.edu>
12795
12796         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
12797         (get_date): Overparenthesize to avoid GCC warning.
12798
12799 2004-11-02  Bruno Haible  <bruno@clisp.org>
12800
12801         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
12802         returns void.
12803
12804 2004-11-02  Bruno Haible  <bruno@clisp.org>
12805
12806         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
12807         function returns void.
12808
12809 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12810
12811         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
12812         fflush_unlocked, flockfile, funlockfile, funlockfile,
12813         fputs_unlocked, putc_unlocked.
12814
12815 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12816
12817         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
12818         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
12819         already declared.
12820
12821 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12822
12823         * modules/getdate (Files): Add doc/getdate.texi.
12824         (Depends-on): Add setenv, xalloc.
12825
12826 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12827
12828         * lib/getdate.y: Add support for TZ="foo" within a date string.
12829         Fix some bugs near time_t boundaries.  Reject dates with
12830         out-of-range components, e.g., "Sept 31".
12831         Include <stdlib.h>, "setenv.h", "xalloc.h".
12832         (ISDIGIT_LOCALE): Remove; unused.
12833         Note that the TZ and time functions used here are not reentrant.
12834         (mktime_ok, get_tz): New functions.
12835         (TZBUFSIZE): New constant.
12836         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
12837         This requires that we sometimes generate our own TZ="XXX..." setting.
12838
12839 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12840
12841         * doc/getdate.texi: New file, from coreutils with modifications for
12842         the new TZ parsing.
12843
12844 2004-10-27  Derek R. Price  <derek@ximbiot.com>
12845
12846         * lib/mktime.c (not_equal_tm): Remove redundant check.
12847
12848 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12849
12850         * modules/regex (lib_SOURCES): Add regex.c.
12851         Reported by James Youngman in
12852         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
12853
12854 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12855
12856         * lib/getdate.y: Use Bison 1.875 features, and some minor
12857         code cleanups.  This change does not affect semantics.
12858         Don't include <stdlib.h>; no longer needed.
12859         Don't include unlocked-io.h; only the "#if TEST" code uses
12860         stdio, and performance isn't crucial there.
12861         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
12862         Bison 1.875 features as described below.
12863         All uses of "PC." replaced by "pc->".
12864         (YYSTYPE): Add a forward declaration.
12865         (yylex, yyerror): Use full prototypes in forward decls.
12866         Use "%pure-parser" rather than obsolescent "%pure_parser".
12867         Use %parse-param and %lex-param instead of obsolescent
12868         YYPARSE_PARAM and YYLEX_PARAM.
12869         (meridian_table, month_and_day_table, time_units_table,
12870         relative_time_table, time_zone_table, military_table,
12871         lookup_zone, lookup_word, get_date):
12872         Use NULL instead of 0 where appropriate.
12873         (to_hour): Avoid abort (), to avoid a dependency on
12874         stdlib.h.
12875         (yyerror, yylex): Now accepts parser_control * arg.
12876         (main) [TEST]: Use '\0' rather than 0 for char.
12877
12878 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
12879
12880         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
12881
12882 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
12883
12884         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
12885         It's now the caller's responsibility to handle the case where
12886         !HAVE_GETPAGESIZE && !defined getpagesize.
12887
12888         * lib/mktime.c (leapyear): Arg is long int, not int.
12889
12890 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12891
12892         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
12893
12894 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
12895
12896         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
12897         missing.  Problem reported by James Youngman.
12898
12899 2004-10-16  Simon Josefsson  <jas@extundo.com>
12900
12901         * gnulib-tool: Fix comments.  Fix parse problem.
12902         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
12903
12904 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12905
12906         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
12907         implementation of getopt_long.  Problem reported by Alexander Taler in:
12908         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
12909
12910 2004-10-15  Bruno Haible  <bruno@clisp.org>
12911
12912         * gnulib-tool: Untabify. Initialize supplied_libname.
12913         (func_usage): More homogenous output.
12914         (func_modules_transitive_closure, func_modules_to_filelist,
12915         func_emit_lib_Makefile_am): New functions.
12916         (func_import): New function, extracted from big case statement. Use
12917         func_get_license, func_modules_transitive_closure,
12918         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
12919         opt_lgpl. Don't use test -a, as it's not portable.
12920         (func_create_testdir): Use func_modules_transitive_closure,
12921         func_modules_to_filelist, func_emit_lib_Makefile_am.
12922
12923 2004-10-15  Bruno Haible  <bruno@clisp.org>
12924
12925         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
12926
12927 2004-10-15  Bruno Haible  <bruno@clisp.org>
12928
12929         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
12930         the portions belonging to each module.
12931         Suggested by Derek Robert Price <derek@ximbiot.com>.
12932
12933 2004-10-12  Simon Josefsson  <jas@extundo.com>
12934
12935         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
12936         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
12937         to real functions.
12938
12939 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
12940
12941         * modules/vsnprintf: New file.
12942
12943 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
12944
12945         * m4/vsnprintf.m4: New file.
12946
12947 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
12948
12949         * lib/vsnprintf.h: New file.
12950         * lib/vsnprintf.c: New file.
12951
12952 2004-10-11  Bruno Haible  <bruno@clisp.org>
12953
12954         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
12955         vsnprintf.
12956
12957 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12958
12959         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
12960
12961 2004-10-07  Bruno Haible  <bruno@clisp.org>
12962
12963         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
12964         fits into the provided buffer.
12965
12966 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12967
12968         * lib/diacrit.c, diacrit.h: Add GPL notice.
12969
12970         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
12971         notice.
12972         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
12973         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
12974         This avoids a potential constant-folding bug.
12975
12976 2004-10-05  Bruno Haible  <bruno@clisp.org>
12977
12978         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
12979         for the declaration of strsep.
12980
12981 2004-10-05  Bruno Haible  <bruno@clisp.org>
12982
12983         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
12984
12985 2004-10-04  Simon Josefsson  <jas@extundo.com>
12986
12987         * modules/memmem: New file.
12988         * tests/test-memmem.c: New file.
12989         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
12990
12991 2004-10-04  Simon Josefsson  <jas@extundo.com>
12992
12993         * m4/memmem.m4: New file.
12994
12995 2004-10-04  Simon Josefsson  <jas@extundo.com>
12996
12997         * lib/memmem.h: New file.
12998         * lib/memmem.c: New file, taken from glibc.
12999
13000 2004-10-04  Simon Josefsson  <jas@extundo.com>
13001
13002         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
13003         '#ifdef USE_UNLOCKED_IO'.
13004
13005 2004-10-04  Simon Josefsson  <jas@extundo.com>
13006
13007         * config/srclist.txt: Add memmem from glibc.
13008
13009 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13010
13011         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
13012
13013         * modules/argmatch, modules/argp, modules/closeout, modules/error,
13014         modules/exclude, modules/getdate, modules/getline,
13015         modules/getndelim2, modules/getpass, modules/getpass-gnu,
13016         modules/getusershell, modules/linebuffer, modules/md5,
13017         modules/mountlist, modules/posixtm, modules/readtokens,
13018         modules/readutmp, modules/regex, modules/sha1,
13019         modules/version-etc, modules/yesno:
13020         Remove dependency on unlocked-io.
13021
13022 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13023
13024         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
13025
13026         * m4/unlocked-io.m4: Add copyright notice.
13027         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
13028
13029 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13030
13031         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
13032         * lib/xmalloc.c (xmemdup): Likewise.
13033         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
13034         XFREE): Remove these long-obsolescent macros.
13035         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
13036         * lib/xstrdup.c: Remove.
13037
13038         * lib/regex.c (re_comp): Cast gettext return value to char *,
13039         Problem reported by Martin Neitzel via Mark D. Baushke.
13040
13041 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13042
13043         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
13044         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
13045         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
13046         regex.c, sha1.c, version-etc.c, yesno.c:
13047         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
13048         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
13049         the includer's responsibility.
13050
13051         Sync from coreutils.
13052
13053         * lib/modechange.c (mode_compile): Don't decrement a pointer that
13054         points to the start of a string, as the C Standard says the
13055         resulting behavior is undefined.
13056
13057         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
13058         simple -> simple_backups, numbered_existing ->
13059         numbered_existing_backups, numbered -> numbered_backups
13060         to avoid shadowing problems.  All uses changed.
13061         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
13062         * lib/backupfile.c (check_extension, numbered_backup):
13063         Rename locals to avoid shadowing 'basename'.
13064         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
13065         once.
13066
13067         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
13068         * lib/.cvsignore: Add getopt.h.
13069
13070 2004-10-04  Bruno Haible  <bruno@clisp.org>
13071
13072         * modules/README: New file.
13073         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
13074         not a module.
13075
13076 2004-10-02  Jim Meyering  <jim@meyering.net>
13077
13078         * lib/dirfd.h, getpagesize.h: Add copyright notice.
13079
13080 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
13081
13082         * modules/strsep: New file.
13083
13084 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
13085
13086         * m4/strsep.m4: New file.
13087
13088 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
13089
13090         * lib/strsep.h: New file.
13091         * lib/strsep.c: New file.
13092
13093 2004-10-01  Simon Josefsson  <jas@extundo.com>
13094
13095         * lib/snprintf.c (snprintf): Handle size==0.
13096
13097 2004-10-01  Simon Josefsson  <jas@extundo.com>
13098             Bruno Haible  <bruno@clisp.org>
13099
13100         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
13101         (snprintf): Declare 'args'.
13102
13103 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         * lib/snprintf.c: Remove comments as to why each header is needed.
13106
13107 2004-10-01  Bruno Haible  <bruno@clisp.org>
13108
13109         * MODULES.html.sh: Add strsep.
13110
13111 2004-09-30  Simon Josefsson  <jas@extundo.com>
13112
13113         * modules/snprintf: New file.
13114
13115 2004-09-30  Simon Josefsson  <jas@extundo.com>
13116
13117         * m4/snprintf.m4: New file.
13118
13119 2004-09-30  Simon Josefsson  <jas@extundo.com>
13120
13121         * lib/snprintf.h, snprintf.c: New files.
13122
13123 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13124
13125         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
13126         (hol_entry_help): Never translate an empty string.
13127         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
13128         * lib/argp.h (OPTION_NO_TRANS): New option.
13129
13130 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13131
13132         * modules/argp (Maintainer): Replace Simon Josefsson
13133         by Sergey Poznyakoff.
13134
13135 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13136
13137         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
13138         changes merged back into glibc.
13139
13140 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13141
13142         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
13143
13144 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
13145
13146         * lib/xvasprintf.c: Include xalloc.h.
13147         (xvasprintf): Use xalloc_die, not xmalloc_die.
13148
13149 2004-09-29  Bruno Haible  <bruno@clisp.org>
13150
13151         * modules/alloca-opt: New file, derived from modules/alloca.
13152         * modules/allocsa: Depend on alloca-opt instead of alloca.
13153         * modules/setenv: Likewise.
13154         * modules/vasnprintf: Likewise.
13155         * MODULES.html.sh: Add alloca-opt.
13156
13157 2004-09-28  Simon Josefsson  <jas@extundo.com>
13158
13159         * gnulib-tool: New parameter --lgpl, to asseert that modules are
13160         LGPL, and to replace license template from GPL to LGPL.
13161
13162 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
13163
13164         * modules/dummy: Change license to LGPL.
13165
13166 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
13167
13168         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
13169
13170 2004-09-24  Simon Josefsson  <jas@extundo.com>
13171
13172         * modules/minmax (License): Change from GPL to LGPL.
13173
13174 2004-09-23  Simon Josefsson  <jas@extundo.com>
13175
13176         * gnulib-tool (--import): Typo.
13177
13178 2004-09-23  Simon Josefsson  <jas@extundo.com>
13179
13180         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
13181
13182 2004-09-22  Bruno Haible  <bruno@clisp.org>
13183
13184         * modules/*: Add 'License' field.
13185         * gnulib-tool: Accept --extract-license option.
13186         (func_get_license): New function.
13187
13188 2004-09-21  Bruno Haible  <bruno@clisp.org>
13189
13190         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
13191         Reported by Simon Josefsson.
13192
13193 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13194
13195         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
13196         gl_AC_TYPE_LONG_LONG.
13197
13198 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
13201
13202 2004-09-18  Simon Josefsson  <jas@extundo.com>
13203         and  Paul Eggert  <eggert@cs.ucla.edu>
13204
13205         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
13206         calls with autoreconf.  Define GL_LIB.
13207
13208 2004-09-14  Karl Berry  <karl@gnu.org>
13209
13210         * config/srclist.txt: unsync setenv.c, sigh.
13211
13212 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13213
13214         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
13215         Problem reported by Bruno Haible in:
13216         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
13217
13218 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13219
13220         * config/srclist.txt: Comment out argp-pvh.c.
13221
13222 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13223
13224         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
13225         in case some system header has #define'd it.  Problem reported by
13226         Soeren D. Schulze in
13227         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
13228
13229 2004-09-09  Karl Berry  <karl@gnu.org>
13230
13231         * regex.[ch]: delete from the root.  These were supposed to be
13232                 synced with emacs cvs, but this has not happened for about
13233                 a year, and anyway nothing else uses emacs regex.[ch].
13234                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
13235                 lib/regex[.ch] is untouched.
13236
13237 2004-09-09  Bruno Haible  <bruno@clisp.org>
13238
13239         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
13240
13241 2004-09-09  Bruno Haible  <bruno@clisp.org>
13242
13243         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
13244         modifications.
13245         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
13246
13247 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
13248
13249         * modules/xvasprintf: New file.
13250         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
13251
13252 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
13253
13254         * lib/xvasprintf.h: New file.
13255         * lib/xvasprintf.c: New file.
13256         * lib/xasprintf.c: New file.
13257
13258 2004-09-08  Bruno Haible  <bruno@clisp.org>
13259
13260         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
13261
13262 2004-09-08  Bruno Haible  <bruno@clisp.org>
13263
13264         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
13265         length is > INT_MAX.
13266         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
13267         more.
13268
13269 2004-09-08  Bruno Haible  <bruno@clisp.org>
13270
13271         * lib/stdint_.h: New file, taken from GNU clisp.
13272
13273 2004-09-08  Bruno Haible  <bruno@clisp.org>
13274             Oskar Liljeblad  <oskar@osk.mine.nu>
13275
13276         * modules/stdint: New file.
13277         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
13278
13279 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13280
13281         Import from coreutils.
13282         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
13283         strings on unbounded length.  alloca's performance benefits aren't
13284         that important here.
13285         (V_STRDUP): Remove.
13286         (parse_with_separator): New function, with most of the internals
13287         of the old parse_user_spec.  Allow user to omit both user and group,
13288         for compatibility with FreeBSD.
13289         Clone only the user name, not the entire spec.
13290         Do not set *uid, *gid unless entirely successful.
13291         Avoid memory leak in some failing cases.
13292         Fix regression for USER.GROUP reported by Dmitry V. Levin in
13293         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
13294         (parse_user_spec): Rewrite to use parse_with_separator.
13295
13296 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13297
13298         * modules/userspec: Don't depend on alloca.
13299
13300 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13301
13302         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
13303
13304 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13305
13306         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
13307         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
13308         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
13309
13310 2004-08-16  Simon Josefsson  <jas@extundo.com>
13311
13312         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
13313         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
13314         Add --dry-run for --import.
13315         Let user provided command line parameters override configure.ac
13316         settings.
13317
13318 2004-08-12  Simon Josefsson  <jas@extundo.com>
13319
13320         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
13321         as discussed with Paul Eggert in threads rooted at
13322         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
13323         and
13324         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
13325         Before, the test was empty, and relied on ELIDE_CODE in source
13326         code.)
13327         (gl_PREREQ_GETOPT): New macro.
13328         (gl_GETOPT): Use them.
13329
13330 2004-08-12  Simon Josefsson  <jas@extundo.com>
13331
13332         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
13333         * lib/getopt_.h: Renamed from getopt.h.
13334
13335 2004-08-12  Simon Josefsson  <jas@extundo.com>
13336
13337         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
13338         Change default library name from libfoo to libgnu.
13339         Now, if you have a configure.ac that says:
13340                 gl_SOURCE_BASE(gl)
13341                 gl_M4_BASE(gl/m4)
13342                 gl_MODULES(error getopt etcetera)
13343                 gl_INIT
13344         you can import all you need by running:
13345                 ../gnulib/gnulib-tool --import
13346
13347         * modules/getopt (Files): Rename getopt.h to getopt_.h.
13348         (Makefile.am): Rewrite, use logic from argz.
13349         (Include): Use <getopt.h> instead of "getopt.h".
13350
13351 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13352
13353         * modules/argp (Files): Add m4/unlocked-io.m4.
13354         (Depends-on): Add extensions.
13355
13356 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13357
13358         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
13359         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
13360         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
13361         Check for program_invocation_name, program_invocation_short_name,
13362         flockfile, funlockfile, features.h, _getopt_long_only_r.
13363
13364 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13365
13366         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
13367         its complicated substitute.
13368         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
13369         and program_invocation_name.
13370         (__argp_basename) [!_LIBC]: Remove; the only use was
13371         replaced by its body.
13372         (__argp_short_program_name): Change condition from
13373         !defined __argp_short_program_name to
13374         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
13375         to match argp-namefrob.h.
13376         (__argp_failure): Don't assume strerror_r returns char *.
13377         * lib/argp-parse.c (N_): Define unconditionally.
13378         (argp_default_options): Fill out initializers with 0 to avoid
13379         gcc warnings.
13380
13381 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13382
13383         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
13384         getopt1.c.
13385
13386 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13387
13388         Merge from coreutils.
13389
13390         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
13391
13392         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
13393         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
13394
13395 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13396
13397         Merge from coreutils.
13398
13399         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
13400         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
13401         for Reliant Unix 5.43.
13402
13403         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
13404         (union fooround): Use uintmax_t, not long int.
13405         The rest is a merge from libc:
13406         [defined _LIBC]: Include <shlib-compat.h>.
13407         (_obstack) [defined _LIBC]: Remove after 2.3.4.
13408
13409         * lib/settime.c (settime): Recode to avoid warning with
13410         Sun Forte C 6U2.
13411
13412         * lib/strverscmp.c: Convert to UTF-8.
13413
13414 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13415
13416         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
13417         m4/uintmax_t.m4.
13418
13419 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13420
13421         * modules/xalloc-die: New file.
13422         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
13423
13424         * modules/md5 (Files): Add m4/uint32_t.m4.
13425         * modules/sha1: Renamed from modules/sha.
13426         (Files):
13427         Rename lib/sha.h to lib/sha1.h.
13428         Rename lib/sha.c to lib/sha1.c.
13429         Rename m4/sha.m4 to m4/sha1.m4.
13430         (lib_SOURCES): Likewise.
13431         (configure.ac): Rename gl_SHA to gl_SHA1.
13432         (Include): sha.h -> sha1.h.
13433
13434 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13435
13436         * m4/uint32_t.m4, uintptr_t.m4: New files.
13437         * m4/sha1.m4: Renamed from sha.m4.
13438         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
13439
13440 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13441
13442         * lib/obstack.h (obstack_empty_p):
13443         Don't assume that chunk->contents is suitably aligned.
13444         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
13445         Likewise. Problem reported by Benno in
13446         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
13447
13448         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
13449         readable.  This could be improved further but it'd take some work.
13450
13451 2004-08-08  Simon Josefsson  <jas@extundo.com>
13452
13453         * modules/xgethostname (Depends-on): Remove exit and error (not
13454         used).
13455
13456         * modules/getpass-gnu: Add getpass.h.
13457         (Depends-on): Add stdbool.
13458         * modules/getpass: Add getpass.h.
13459
13460 2004-08-08  Simon Josefsson  <jas@extundo.com>
13461
13462         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
13463         Check getpass declaration.
13464
13465 2004-08-08  Simon Josefsson  <jas@extundo.com>
13466
13467         * lib/xgethostname.c: Don't include error.h (not used).
13468
13469         * lib/getpass.h: Add.
13470         * lib/getpass.c: Include getpass.h first.
13471
13472 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
13473
13474         * lib/xalloc-die.c: New files.
13475         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
13476         All uses removed.
13477         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
13478         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
13479         xalloc-die.c.
13480         (_, N_, xalloc_die): Move to xalloc-die.c.
13481         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
13482         so that we needn't mess with xalloc_msg_memory_exhausted.
13483
13484         * lib/sha1.h: Renamed from sha.h.
13485         (SHA1_H): Renamed from _SHA_H.
13486         (sha1_ctx): Renamed from sha_ctx.
13487         (sha1_init_ctx): Renamed from sha_init_ctx.
13488         (sha1_process_block): Renamed from sha_process_block.
13489         (sha1_process_bytes): Renamed from sha_process_bytes.
13490         (sha1_finish_ctx): Renamed from sha_finish_ctx.
13491         (sha1_read_ctx): Renamed from sha_read_ctx.
13492         (sha1_stream): Renamed from sha_stream.
13493         (sha1_buffer): Renamed from sha_buffer.
13494         * lib/sha1.c: Likewise; renamed from sha.c.
13495         Do not include <sys/types.h>.
13496         Include <stddef.h> rather than <stdlib.h>.
13497
13498 2004-08-08  Bruno Haible  <bruno@clisp.org>
13499
13500         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
13501         FILESYSTEM_PREFIX_LEN.
13502         * lib/progreloc.c: Likewise.
13503         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
13504
13505 2004-08-06  Simon Josefsson  <jas@extundo.com>
13506
13507         * modules/progname (Depends-on): Don't depend on stdbool.
13508
13509 2004-08-06  Simon Josefsson  <jas@extundo.com>
13510
13511         * modules/getsubopt: New file.
13512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13513         getsubopt.
13514
13515 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13516
13517         More merge from coreutils.
13518
13519         * m4/utimens.m4, utimecmp.m4: New files.
13520         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
13521         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
13522         prereq.m4, sha.m4: Import changes from coreutils.
13523
13524 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13525
13526         More merge from coreutils.
13527         * modules/raise, modules/readtokens0, modules/utimens,
13528         modules/utimecmp, module/xnanosleep: New files.
13529         * modules/strftime: Add lib/strftime.h.
13530         Change include from <time.h> to "strftime.h".
13531         * modules/yesno: Add lib/yesno.h.
13532         * modules/backupfile: Remove lib/addext.c.
13533         * modules/euidaccess: Add stat-macros.h.
13534         * modules/canonicalize, modules/euidaccess,
13535         modules/filemode, modules/lchown, modules/makepath,
13536         modules/rmdir, modules/stat: Likewise.
13537
13538 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13539
13540         Merge from tar.
13541         * lib/argp-help.c (make_hol, hol_append): Don't assume that
13542         SIZE_MAX is a valid preprocessor constant.
13543         (__argp_basename): Change from "#ifndef _LIBC"
13544         to "#ifndef __argp_short_program_name", so that
13545         we don't compile these functions for tar.
13546
13547         More merges from coreutils.
13548         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h,
13549         lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c,
13550         lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
13551         * lib/addext.c: Remove; no longer needed.
13552         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
13553         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
13554         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
13555         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
13556         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
13557         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
13558         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
13559         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
13560         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
13561         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13562         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
13563         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
13564         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
13565         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
13566         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
13567         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
13568         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
13569         Import changes from coreutils.
13570
13571 2004-08-05  Simon Josefsson  <jas@extundo.com>
13572
13573         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
13574
13575 2004-08-05  Simon Josefsson  <jas@extundo.com>
13576
13577         * m4/getsubopt.m4: New file.
13578
13579 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13580
13581         Merge from coreutils.
13582
13583         * m4/c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
13584         New files.
13585
13586         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
13587         FILESYSTEM_PREFIX_LEN ->
13588         FILE_SYSTEM_PREFIX_LEN.
13589         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
13590         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
13591         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
13592         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
13593
13594         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
13595         prerequisite modules now handle the DOS stuff.
13596         Don't check for unistd.h.
13597
13598 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13599
13600         Merge from coreutils.
13601
13602         * lib/.gdb-history: Remove; this doesn't belong here.
13603
13604         * lib/c-strtod.c, c-strtod.h, c-strtold.c, cycle-check.c,
13605         cycle-check.h, dev-ino.h, canonicalize.h, canonicalize.c,
13606         fcntl-safer.h, fcntl-safer.c, getcwd.c: New files.
13607
13608         * lib/dirname.h: Include <stdbool.h>.
13609         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
13610         for consistency with POSIX terminology.  All uses changed.
13611         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
13612         (strip_trailing_slashes): Use bool for booleans.
13613         * lib/stripslash.c (strip_trailing_slashes): Likewise.
13614
13615         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
13616         sometimes returns a positive errno value even when it succeeds.
13617         (print_errno_message) [!LIBC]: Fall back on strerror if
13618         __strerror_r fails.
13619
13620         * lib/path-concat.c (mempcpy): Don't define if a system header defines
13621         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
13622         (longest_relative_suffix): New function.
13623         (path_concat): Use it.  Assume first argument is not NULL.
13624         Port to DOS.  Omit redundant separators.
13625         Report an error instead of returning NULL.
13626         Use mempcpy instead of memcpy.
13627         (xpath_concat): Remove: not declared or used.
13628
13629         * lib/same.h: Include <stdbool.h>
13630         (same_name): Return bool, not int.
13631         * lib/same.c (same_name): Likewise.
13632         (errno): Don't declare; we assume C89 or better now.
13633
13634         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
13635         if not already defined.
13636
13637         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
13638         * lib/dup-safer.c (errno): Likewise.
13639
13640 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13641
13642         Merge from coreutils.
13643         * modules/c-strtod, modules/c-strtold, modules/canonicalize,
13644         modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
13645         * modules/path-concat: Don't depend on strdup.
13646
13647 2004-08-03  Simon Josefsson  <jas@extundo.com>
13648
13649         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
13650         * lib/progname.h: Don't include stdbool.h.
13651
13652 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13653
13654         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
13655         * MODULES.html.sh (func_all_modules): Remove fatal.
13656
13657 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13658
13659         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
13660
13661 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13662
13663         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
13664         working.
13665
13666 2004-08-02  Simon Josefsson  <jas@extundo.com>
13667
13668         * lib/getsubopt.h: New file, with comments from Bruno Haible.
13669         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
13670         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
13671
13672 2004-08-01  Simon Josefsson  <jas@extundo.com>
13673
13674         * lib/xgetdomainname.c: Include stdlib.h, for free().
13675
13676 2004-07-19  Bruno Haible  <bruno@clisp.org>
13677
13678         * MODULES.html.sh (func_all_modules): Add dummy.
13679
13680 2004-07-16  Simon Josefsson  <jas@extundo.com>
13681
13682         * modules/dummy: New file.
13683
13684 2004-07-16  Simon Josefsson  <jas@extundo.com>
13685
13686         * lib/dummy.c: New file.
13687
13688 2004-07-16  Bruno Haible  <bruno@clisp.org>
13689
13690         * lib/backupfile.h: Add extern "C" for C++.
13691         * lib/closeout.h: Likewise.
13692         * lib/copy-file.h: Likewise.
13693         * lib/findprog.h: Likewise.
13694         * lib/full-write.h: Likewise.
13695         * lib/pathname.h: Likewise.
13696         * lib/progname.h: Likewise.
13697         * lib/stpcpy.h: Likewise.
13698         * lib/stpncpy.h: Likewise.
13699         * lib/strcase.h: Likewise.
13700         * lib/strstr.h: Likewise.
13701         * lib/xalloc.h: Likewise.
13702
13703         * lib/mbswidth.h: Add extern "C" for C++.
13704         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
13705
13706 2004-07-13  Robert Millan  <robertmh@gnu.org>
13707
13708         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
13709
13710 2004-07-09  Simon Josefsson  <jas@extundo.com>
13711
13712         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
13713         failed without this.)
13714
13715 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13716
13717         * modules/chown (Files): Add lib/fchown-stub.c, since
13718         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
13719
13720 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13721
13722         * lib/fchown-stub.c: New file.
13723
13724 2004-06-24  Jim Meyering  <jim@meyering.net>
13725
13726         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
13727
13728 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13729
13730         * modules/argz: Omit "#include".
13731
13732         * MODULES.html.sh (func_all_modules): Add calloc, to match
13733         2004-06-01 addition of calloc module.
13734
13735 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13736
13737         * m4/argz.m4: New file, which is autoupdated from libtool.
13738
13739 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13740
13741         * lib/argz.c, argz_.h: New files, which are autoupdated from libtool.
13742
13743 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13744
13745         * config/srclist-update: Don't insist on "USA." before the
13746         close-comment, as libtool omits the period and puts the */ on a
13747         separate line.
13748         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
13749         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
13750
13751 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
13752
13753         * modules/argz: New file.
13754         * MODULES.html.sh (func_all_modules): Add argz.
13755
13756 2004-06-12  Jim Meyering  <jim@meyering.net>
13757         and  Paul Eggert  <eggert@cs.ucla.edu>
13758
13759         * modules/hash (Files): Add lib/xalloc.h.
13760         * modules/pipe (Depends-on): Add wait-process.
13761         * modules/stat (Depends-on): Add xalloc.
13762         * modules/userspec (Files): Add lib/userspec.h.
13763         * modules/xstrto
13764
13765         Upgrade from gettext-0.13.
13766         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
13767         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
13768         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
13769
13770 2004-06-10  Jim Meyering  <jim@meyering.net>
13771
13772         * lib/calloc.c: New file.
13773
13774 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13775
13776         * lib/getdate.y (yylex): Allow space between sign and number.
13777         Problem reported by Dan Jacobson.
13778
13779 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13780
13781         Merge from coreutils CVS.
13782
13783         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
13784         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
13785         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
13786         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
13787         xstrtol.m4: Fix copyright date and/or serial number.
13788
13789         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
13790         See if we need an fchown replacement.
13791         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
13792         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
13793         and use the replacement function if we detect either defect.
13794
13795         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
13796         gl_UTIMECMP.
13797
13798 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13799         and  Jim Meyering  <jim@meyering.net>
13800
13801         Merge from coreutils CVS.
13802
13803         * lib/stat-macros.h: New file, with contents from file-type.h
13804         and coreutils' system.h.
13805         * lib/file-type.c: Include "stat-macros.h".
13806         * lib/file-type.h (file_type): Move all macro definitions to new file,
13807         stat-macros.h.
13808
13809         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
13810         Wrap old code with this conditional.
13811         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
13812         function that does not dereference symlinks.
13813         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
13814
13815         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
13816         dependency problems.
13817         (xreadlink): Accept new arg SIZE, for efficiency.
13818         All decls and uses changed.
13819         * lib/xreadlink.h: Include <stddef.h>, for size_t.
13820
13821         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
13822         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
13823
13824         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
13825         sysexits.h.
13826
13827 2004-06-01  Jim Meyering  <jim@meyering.net>
13828
13829         * m4/calloc.m4: New file.
13830
13831 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
13832
13833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
13834         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
13835         Also, fix a typo in a diagnostic.
13836
13837 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
13838
13839         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
13840         or AC_FUNC_REALLOC.
13841
13842 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
13843
13844         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
13845         macros to be defined.
13846         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
13847         the allocator returns NULL because the requested size is zero.
13848
13849 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13850
13851         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
13852         var.  Add comment explaining why libc still defines it.  This
13853         merges the following patch from glibc:
13854         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
13855
13856 2004-05-20  Andreas Schwab  <schwab@suse.de>
13857
13858         * m4/free.m4: Replace free if it not known to work, not the other
13859         way round.
13860
13861 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13862
13863         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
13864         present in glibc since revision 1.1 of this file.
13865         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
13866         obstack_alignment_mask, obstack_alloc, obstack_base,
13867         obstack_blank, obstack_blank_fast, obstack_chunk_size,
13868         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
13869         obstack_grow0, obstack_init, obstack_int_grow,
13870         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
13871         obstack_next_free, obstack_object_size, obstack_ptr_grow,
13872         obstack_ptr_grow_fast, obstack_room): Remove declarations of
13873         nonexistent functions.
13874
13875 2004-05-18  Karl Berry  <karl@gnu.org>
13876
13877         * config/srclist.txt: break link for vasnprintf.c.
13878
13879 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13880
13881         Port obstack to the AS/400, where pointers are 16 bytes wide and
13882         you cannot cast an integer to a valid pointer.  This patch is
13883         currently waiting to be integrated into glibc; see
13884         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
13885
13886         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
13887         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
13888         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
13889         (struct obstack): temp member is now a union of a pointer and
13890         an integer, instead of an integer.  All integer uses changed.
13891         This does not affect the physical layout of struct obstack,
13892         except on hosts (like the AS/400) where the size or alignment of
13893         void * is greater than that of ptrdiff_t.
13894         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
13895         __STDC__)]: Store temporary in pointer member of union, not
13896         integer member.
13897         * lib/obstack.c: Include <stddef.h>, for offsetof.
13898         (struct fooalign): Remove; it doesn't need a name.
13899         (union fooround): Change double to long double, and add void *.
13900         (DEFAULT_ALIGNMENT): Use offsetof to compute.
13901         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
13902         not a macro.  Hence the values are always int; so remove all
13903         casts-to-int in uses.
13904
13905 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13906
13907         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
13908         we can get this patch merged into glibc.
13909
13910 2004-05-17  Derek R. Price  <derek@ximbiot.com>
13911             Paul Eggert  <eggert@cs.ucla.edu>
13912
13913         * m4/argp: Depend on alloca.
13914
13915 2004-05-17  Derek R. Price  <derek@ximbiot.com>
13916             Paul Eggert  <eggert@cs.ucla.edu>
13917
13918         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
13919         freecoding.
13920
13921 2004-05-17  Bruno Haible  <bruno@clisp.org>
13922
13923         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
13924         precision that consists of a '.' followed by an empty digit string.
13925         Patch by Tor Lillqvist <tml@iki.fi>.
13926
13927 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13928
13929         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
13930         for backward compatibility with older code.  We need our own
13931         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
13932         it under some other name, and our alloca.h will define it.
13933
13934 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13935             Derek Price  <derek@ximbiot.com>
13936
13937         * lib/alloca.c: Include <alloca.h>, to get our interface.
13938         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
13939         include <alloca.h> first.  Use C89 prototype for alloca; this
13940         requires including <stddef.h> for size_t.  Use extern "C" if C++.
13941         Use #elif for simplicity, since we can assume C89 now.
13942         Don't try to source the system alloca.h since it will not be found
13943         and to prevent recursively including its replacement.
13944         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
13945         * lib/regex.c: Likewise.
13946
13947 2004-05-16  Derek Price  <derek@ximbiot.com>
13948             Paul Eggert  <eggert@cs.ucla.edu>
13949
13950         getline cleanup.  This changes the getndelim2 API: both order of
13951         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
13952         no delimiter).
13953
13954         * lib/getline.c: Don't include stddef.h or stdio.h, since our
13955         interface does that.
13956         (getline): Always use getdelim, so that we don't have two
13957         copies of this code.
13958         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
13959         if available.
13960         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
13961         (GETNDELIM2_MAXIMUM): New macro.
13962         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
13963         instead of the old practice of delim2==0.  All callers changed.
13964         Return -1 on overflow, instead of returning junk.
13965         Do not set *linesize unless allocation succeeds.
13966         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
13967         that we include sys/types.h.
13968         * lib/getnline.h: Likewise.
13969         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
13970         (getndelim2): Reorder arguments.
13971         * lib/getnline.c (getnline, getndelim):
13972         Don't discard the NMAX argument.
13973         (getnline): Invoke getndelim, to avoid code duplication.
13974         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
13975         of (size_t) -1 by callers of the getnline family.
13976
13977 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13978
13979         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
13980         Check for gettimeofday.
13981         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
13982         Check for settimeofday, stime.
13983
13984 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13985
13986         * lib/nanosleep.c (suspended): Change its type from int to
13987         sig_atomic_t volatile.
13988         (first_call): Make it private to rpl_nanosleep, and have it
13989         be zero initially as that's a bit faster.
13990         (my_usleep): Round up fractional times instead of truncating them,
13991         as this is the usual meaning for 'sleep'.
13992
13993         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
13994         doesn't work.
13995         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
13996         (ENOSYS): Define if not defined.
13997         (settime): Fall back on stime if it exists and settimeofday fails.
13998         But don't bother with fallbacks if a method fails with errno == EPERM.
13999
14000 2004-05-11  Jim Meyering  <jim@meyering.net>
14001
14002         Prior to this change, the save_cwd caller required read access to the
14003         current directory on most systems (ones with the fchdir function).
14004
14005         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
14006         fails, try write-only, and finally, resort to using xgetcwd.
14007
14008 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
14009
14010         * lib/obstack.c, obstack.h: Import changes from libc.
14011
14012 2004-04-28  Bruno Haible  <bruno@clisp.org>
14013
14014         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
14015         also implicitly appends .exe to executables.
14016         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
14017         accepts Windows pathnames.
14018         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
14019         Treat Cygwin like Windows, since it now accepts Windows pathnames.
14020         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
14021         Treat Cygwin like Windows, since it now accepts Windows pathnames.
14022         Reported by Derek Robert Price <derek@ximbiot.com>.
14023
14024 2004-04-21  Karl Berry  <karl@gnu.org>
14025
14026         * config/srclist.txt (localcharset.c): break sync.
14027
14028 2004-04-20  Paul Eggert  <eggert@twinsun.com>
14029
14030         * m4/host-os.m4: Add a copyright notice.
14031
14032 2004-04-20  Jim Meyering  <jim@meyering.net>
14033
14034         Change UTILS_ to gl_ in AC_DEFINE'd names.
14035         Change utils_- and jm_-prefixed variables, too.
14036         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
14037         UTILS_FUNC_MKDIR_TRAILING_SLASH.
14038         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
14039
14040         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
14041         Don't emit trailing blanks.
14042         Also rename jm_-prefixed variables to have gl_ prefix.
14043
14044         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
14045         Also rename jm_-prefixed variables to have gl_ prefix.
14046
14047         * m4/jm-macros.m4: Reflect the renamings.
14048         * m4/prereq.m4: Likewise.
14049
14050 2004-04-20  Jim Meyering  <jim@meyering.net>
14051
14052         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
14053         memory.
14054
14055 2004-04-20  Jim Meyering  <jim@meyering.net>
14056             Bruno Haible  <bruno@clisp.org>
14057
14058         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
14059         memory when realloc fails.
14060
14061 2004-04-19  Jim Meyering  <jim@meyering.net>
14062
14063         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
14064         now that readutmp.c may call `free (0)'.
14065
14066 2004-04-19  Bruno Haible  <bruno@clisp.org>
14067
14068         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
14069         * m4/inttypes_h.m4: Likewise.
14070         * m4/stdint_h.m4: Likewise.
14071         * m4/intmax_t.m4: Likewise.
14072         * m4/uintmax_t.m4: Likewise.
14073
14074 2004-04-18  Jim Meyering  <jim@meyering.net>
14075
14076         * m4/prereq.m4: Don't forbid jm_ prefix.
14077
14078         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
14079         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
14080         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
14081         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
14082         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
14083         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
14084         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
14085         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
14086         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
14087         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
14088         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
14089         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
14090         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
14091         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
14092         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
14093         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
14094         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
14095         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
14096         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
14097
14098 2004-04-18  Jim Meyering  <jim@meyering.net>
14099
14100         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
14101         failure, don't leak memory and do call END_UTMP_ENT.
14102
14103 2004-04-16  Jim Meyering  <jim@meyering.net>
14104
14105         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
14106         coreutils' stat program.
14107         (gl_PREREQ): Don't require jm_PREREQ_STAT.
14108
14109 2004-04-11  Paul Eggert  <eggert@twinsun.com>
14110
14111         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
14112         C89.
14113         (CHAR_BIT): Remove, since we assume C89.
14114         Include <stdint.h> if available, as per current Autoconf CVS advice.
14115
14116 2004-03-31  Jim Meyering  <jim@meyering.net>
14117
14118         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
14119         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
14120         * m4/xalloc.m4: Likewise.
14121
14122 2004-03-30  Paul Eggert  <eggert@twinsun.com>
14123
14124         Merge from coreutils.
14125
14126         * m4/inttostr.m4: New file.
14127         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
14128         Require AM_STDBOOL_H and gl_TIMESPEC instead.
14129         Require gl_CLOCK_TIME.
14130         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
14131
14132 2004-03-30  Paul Eggert  <eggert@twinsun.com>
14133
14134         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
14135         not bool, to be more consistent with Unix conventions.
14136         Suggested by Bruno Haible.
14137
14138         Merge from coreutils.
14139
14140         * lib/imaxtostr.c, inttostr.c, inttostr.h, offtostr.c, umaxtostr.c:
14141         New files.
14142
14143         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
14144         the usual <time.h> dance.
14145         (get_date): Change signature to support fractional time stamps.
14146         All callers changed.
14147         * lib/getdate.y: Include "getdate.h" first, as we can now
14148         assume C89 and don't need to worry about 'const'.
14149         Similarly, include "unlocked-io.h" near start, not in middle.
14150         Include <limits.h>.
14151         (textint.value): Use long int rather than int.
14152         (textint.digits): Use size_t rather than int.
14153         (BILLION, LOG10_BILLION): New constants.
14154         (parser_control): New member rel_ns.  Members day_ordinal,
14155         time_zone, month, day, hour, minutes, rel_year, rel_month,
14156         rel_day, rel_hour, rel_minutes, rel_seconds
14157         are now long int, not int.  Member seconds is now struct timespec,
14158         not int.  New member timespec_seen.  Members dates_seen, days_seen,
14159         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
14160         not int.
14161         (%union.intval): Now long int, not int.
14162         New member timespec.
14163         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
14164         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
14165         (spec): Now is a timespec or an item list.
14166         (timespec, items): New nonterminals.
14167         (time, rel, relunit, number, get_date):
14168         Add support for fractional seconds.
14169         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
14170         (gmtime, localtime, mktime): Remove decls; not needed with C89.
14171         (to_hour): First arg is now long int, not int.
14172         (to_year): Returns long int, not int.
14173         Don't treat year -70 like 70.
14174         (tm_diff): Returns long int, not int.
14175         (lookup_word): Use bool instead of int when appropriate.
14176         (yylex): Use size_t for count, not int.
14177         Detect overflow when parsing large integer constants.
14178         Add support for fractions.
14179         (get_date): Make pointers 'const' if possible.
14180         Use more-portable code to detect integer overflow.
14181         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
14182         Don't use ctime; it's not reliable if the year has >4 digits.
14183
14184         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
14185         This is for compatibility with BSD.
14186
14187         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
14188         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
14189         From coreutils' system.h.
14190
14191         * lib/userspec.c: Don't include "posixver.h".
14192         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
14193         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
14194         compatible extension.  Simplify code by removing a boolean int
14195         that was always nonzero if a string was nonnull.
14196
14197 2004-03-30  Jim Meyering  <jim@meyering.net>
14198
14199         Merge from coreutils.
14200
14201         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
14202         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
14203         on some systems one must include <grp.h> before it.
14204         Reported by Christian Krackowizer.
14205
14206 2004-03-30  Jim Meyering  <jim@meyering.net>
14207
14208         Merge from coreutils.
14209
14210         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
14211
14212         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
14213         an empty input stream.
14214
14215         * lib/readtokens.c: Include <stdbool.h>.
14216         (readtoken): Use `size_t' rather than int/long.
14217         All callers adjusted.
14218         Use `bool' rather than `int' where appropriate.
14219         Use memset rather than an explicit loop.
14220         Use x2nrealloc rather than xrealloc.
14221         Allow the use of `\0' as a delimiter.
14222         (readtokens): Likewise.
14223         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
14224
14225 2004-03-30  Jim Meyering  <jim@meyering.net>
14226
14227         * m4/realloc.m4: Remove file, since now it does no more than
14228         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
14229         the `configure.ac' section of module/realloc.
14230         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
14231
14232 2004-03-30  Bruno Haible  <bruno@clisp.org>
14233
14234         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
14235         nonnull.
14236
14237 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14238
14239         Merge changes to getloadavg.c from coreutils and Emacs.
14240
14241         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
14242         Define to an expression, not to the empty string.
14243         Include cloexec.h and xalloc.h.
14244         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
14245         Use set_cloexec_flag rather than rolling our own.
14246         * lib/cloexec.c, cloexec.h: New files.
14247
14248 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14249
14250         * m4/cloexec.m4: New file.
14251
14252 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14253
14254         * lib/getopt.h: Sync with libc CVS.
14255
14256 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14257             Bruno Haible  <bruno@clisp.org>
14258
14259         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
14260         mbswidth.
14261
14262 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14263             Bruno Haible  <bruno@clisp.org>
14264
14265         * lib/mbswidth.h: Include <wchar.h> only if
14266         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
14267         <wchar.h>.
14268         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
14269
14270 2004-03-09  Paul Eggert  <eggert@twinsun.com>
14271
14272         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
14273         Sync with libc CVS.
14274         * lib/getopt_int.h: New file, also synced from libc.
14275
14276 2004-03-09  Paul Eggert  <eggert@twinsun.com>
14277
14278         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
14279         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
14280         Bring back getopt.c, getopt.h, getopt1.c.
14281
14282 2004-03-07  Paul Eggert  <eggert@twinsun.com>
14283
14284         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
14285         All uses changed.  Check for sa_sigaction member; this fixes
14286         a bug first reported by Jason Andrade in
14287         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
14288
14289 2004-03-07  Paul Eggert  <eggert@twinsun.com>
14290
14291         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
14292         '#if' expressions.  Unlike the code it replaces, it does not
14293         depend on (defined _SC_PAGESIZE).  However, it does depend on
14294         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
14295         first reported by Jason Andrade in
14296         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
14297
14298 2004-02-25  Simon Josefsson  <jas@extundo.com>
14299
14300         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
14301
14302 2004-02-25  Simon Josefsson  <jas@extundo.com>
14303
14304         * lib/strdup.h: New file.
14305         * lib/strdup.c: Include it.
14306         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
14307         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
14308
14309 2004-02-23  Karl Berry  <karl@gnu.org>
14310
14311         * doc/maintain.texi, standards.texi, make-stds.texi: new files
14312         (from fencepost.gnu.org:/gd/gnuorg).
14313
14314 2004-02-23  Karl Berry  <karl@gnu.org>
14315
14316         * config/srclistvars.sh (GNUORG) [karl]: redefine.
14317         * config/srclist.txt: add maintain/standards documents.
14318
14319 2004-02-18  Bruno Haible  <bruno@clisp.org>
14320
14321         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
14322         Reported by Derek Robert Price <derek@ximbiot.com>.
14323
14324 2004-02-16  Karl Berry  <karl@gnu.org>
14325
14326         * config/mkinstalldirs, install-sh: update from automake.
14327
14328 2004-02-06  Karl Berry  <karl@gnu.org>
14329
14330         * m4/po.m4: update from gettext 0.14.1.
14331
14332 2004-02-06  Karl Berry  <karl@gnu.org>
14333
14334         * lib/config.charset: update from gettext 0.14.1.
14335
14336 2004-02-05  Paul Eggert  <eggert@twinsun.com>
14337
14338         Add comments and code, prompted by suggestions from Bruno Haible
14339         for sh-quote.
14340         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
14341         describing the enum quoting_style values.
14342         * lib/quotearg.c (quotearg_alloc): New function.
14343         (quotearg_buffer_restyled): Treat lone { and } as special.
14344         Treat = as special.  Work around bug with older shells
14345         that "see" a '\' that is really the 2nd byte of a multibyte char.
14346         Quote empty string with shell_quoting_style.
14347
14348 2004-02-03  Bruno Haible  <bruno@clisp.org>
14349
14350         * m4/pipe.m4: New file, from GNU gettext.
14351
14352 2004-02-03  Bruno Haible  <bruno@clisp.org>
14353
14354         * lib/pipe.h: New file, from GNU gettext.
14355         * lib/pipe.c: New file, from GNU gettext.
14356
14357 2004-01-27  Bruno Haible  <bruno@clisp.org>
14358
14359         * m4/execute.m4: New file, from GNU gettext.
14360
14361 2004-01-27  Bruno Haible  <bruno@clisp.org>
14362
14363         * lib/execute.h: New file, from GNU gettext.
14364         * lib/execute.c: New file, from GNU gettext.
14365         * lib/w32spawn.h: New file, from GNU gettext.
14366
14367 2004-01-24  Paul Eggert  <eggert@twinsun.com>
14368
14369         Merge from diffutils.
14370
14371         * lib/file-type.c (file_type): Add typed memory objects.
14372         * lib/file-type.h (S_TYPEISTMO): New macro.
14373
14374         * lib/c-stack.h (c_stack_action): Remove argv argument.
14375         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
14376         (die): Don't calculate message unless segv_action returns.
14377         (get_stack_location, min_address_from_argv, max_address_from_argv,
14378         volatile stack_base, volatile_stack_size): Remove.
14379         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
14380         that every segmentation violation is a stack overflow.  (Ouch!)
14381         See Debian bug 136249 (still outstanding) for more info about why
14382         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
14383
14384 2004-01-24  Paul Eggert  <eggert@twinsun.com>
14385
14386         Exit-status fix from coreutils.
14387
14388         Use exit_failure consistently in place of EXIT_FAILURE,
14389         so that program exit statuses are consistent on failure.
14390
14391         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
14392         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
14393         * lib/argmatch.h: Comment fix to match the above.
14394         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
14395         Now a macro referring to exit_failure, instead of a separate
14396         variable.  Include "exitfail.h" to get it.
14397         * lib/xstrtol.h: Include "exitfail.h".
14398         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
14399
14400         * lib/long-options.c (parse_long_options): Use prototype
14401         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
14402         for clarity.
14403
14404 2004-01-21  Jim Meyering  <jim@meyering.net>
14405
14406         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
14407         so as not to conflict with a different-sized __mktime_internal
14408         function in GNU libc.
14409         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
14410         Problem building statically-linked `ls' reported by Michael Brunnbauer.
14411
14412 2004-01-20  Karl Berry  <karl@gnu.org>
14413
14414         * config/config.guess: update from config.
14415
14416         * config/srclistvars.sh: GNUWWWLICENSES for karl.
14417
14418 2004-01-20  Bruno Haible  <bruno@clisp.org>
14419
14420         Safer stack allocation.
14421         * lib/setenv.c: Include allocsa.h.
14422         (alloca): Remove fallback definition.
14423         (freea): Remove macro.
14424         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
14425         instead of freea.
14426
14427 2004-01-20  Bruno Haible  <bruno@clisp.org>
14428
14429         * m4/eealloc.m4: New file, from GNU gettext.
14430
14431 2004-01-20  Bruno Haible  <bruno@clisp.org>
14432
14433         * m4/allocsa.m4: New file, from GNU gettext.
14434
14435 2004-01-20  Bruno Haible  <bruno@clisp.org>
14436
14437         * lib/xallocsa.h: New file, from GNU gettext.
14438         * lib/xallocsa.c: New file, from GNU gettext.
14439
14440 2004-01-20  Bruno Haible  <bruno@clisp.org>
14441
14442         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
14443
14444 2004-01-20  Bruno Haible  <bruno@clisp.org>
14445
14446         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
14447         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
14448         specially.
14449
14450 2004-01-20  Bruno Haible  <bruno@clisp.org>
14451
14452         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
14453         patch.
14454
14455 2004-01-20  Bruno Haible  <bruno@clisp.org>
14456
14457         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
14458
14459 2004-01-20  Bruno Haible  <bruno@clisp.org>
14460
14461         * lib/eealloc.h: New file.
14462
14463 2004-01-20  Bruno Haible  <bruno@clisp.org>
14464
14465         * lib/binary-io.h: Avoid warnings on Cygwin.
14466
14467 2004-01-20  Bruno Haible  <bruno@clisp.org>
14468
14469         * lib/allocsa.h: New file, from GNU gettext.
14470         * lib/allocsa.c: New file, from GNU gettext.
14471
14472 2004-01-18  Karl Berry  <karl@gnu.org>
14473
14474         * doc/gpl.texi, lgpl.texi: new files.
14475
14476 2004-01-18  Karl Berry  <karl@gnu.org>
14477
14478         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
14479         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
14480
14481 2004-01-15  Paul Eggert  <eggert@twinsun.com>
14482
14483         Merge from coreutils.
14484
14485         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
14486         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
14487         (gl_DEFAULT_POSIX2_VERSION): Move
14488         the documentation from 'configure' into 'config.hin',
14489         so that 'configure --help' isn't burdened by it and
14490         we don't have to worry about its formatting there.
14491         Reword the documentation so that it's more succinct
14492         and can be run together into a single paragraph.
14493         * m4/same.m4 (gl_SAME): Check for pathconf.
14494
14495 2004-01-15  Paul Eggert  <eggert@twinsun.com>
14496
14497         Merge from coreutils.
14498
14499         * lib/posixver.c: Include posixver.h.
14500
14501         * lib/same.c: Include <stdbool.h>, <limits.h>.
14502         (_POSIX_NAME_MAX): Define if not defined.
14503         (MIN): New macro.
14504         (same_name): If file names are silently truncated, report
14505         that the file names are the same if they are the same after
14506         the silent truncation.
14507
14508         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
14509         conversion function.
14510         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
14511         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
14512         longer needed.
14513
14514 2004-01-15  Jim Meyering  <jim@meyering.net>
14515
14516         Merge from coreutils.
14517
14518         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
14519         if no library is required.
14520         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
14521         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
14522         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
14523         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
14524         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
14525         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
14526         value, $ac_cv_search_crypt, if it's "none required".
14527         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
14528         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
14529         not gl_FUNC_GETLOADAVG.
14530         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
14531         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
14532
14533 2004-01-15  Jim Meyering  <jim@meyering.net>
14534
14535         Merge from coreutils.
14536
14537         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
14538         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
14539         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
14540
14541         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
14542         optional configure-time default.
14543
14544         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14545
14546         * lib/xreadlink.c (xreadlink): Correct outdated comment.
14547
14548 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
14549
14550         Merge from coreutils.
14551
14552         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
14553         value, $ac_cv_search_nanosleep, if it's "none required".
14554
14555 2004-01-14  Paul Eggert  <eggert@twinsun.com>
14556
14557         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
14558         with like-named macro in fnmatch.c.
14559         (EXT): Use an internal constant instead.
14560
14561         Merge fnmatch patches from glibc.
14562         * lib/fnmatch.c (mbsinit): Remove define.
14563         Add libc_hidden_ver (__fnmatch, fnmatch).
14564         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
14565         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
14566
14567 2004-01-14  Karl Berry  <karl@gnu.org>
14568
14569         * config/install-sh: update from automake.
14570
14571 2004-01-13  Karl Berry  <karl@gnu.org>
14572
14573         * config/install-sh: update from automake.
14574
14575 2004-01-09  Karl Berry  <karl@gnu.org>
14576
14577         * config/install-sh: update from automake.
14578
14579 2004-01-05  Karl Berry  <karl@gnu.org>
14580
14581         * config/config.{sub,guess}: update from config.
14582
14583 2003-12-31  Karl Berry  <karl@gnu.org>
14584
14585         * config/depcomp: update from automake.
14586
14587 2003-12-14  Karl Berry  <karl@gnu.org>
14588
14589         * lib/config.charset: update from gettext-runtime.
14590
14591 2003-12-03  Paul Eggert  <eggert@twinsun.com>
14592
14593         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
14594         Bug reported by Alfred M. Szmidt.
14595
14596 2003-12-03  Bruno Haible  <bruno@clisp.org>
14597
14598         * m4/gettext.m4: Upgrade from gettext-0.13.
14599         * m4/po.m4: Upgrade from gettext-0.13.
14600         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
14601         * m4/intmax.m4: New file, from gettext-0.13.
14602         * m4/printf-posix.m4: New file, from gettext-0.13.
14603
14604 2003-11-29  Karl Berry  <karl@gnu.org>
14605
14606         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
14607
14608 2003-11-25  Paul Eggert  <eggert@twinsun.com>
14609             Bruno Haible  <bruno@clisp.org>
14610
14611         * lib/printf-parse.h: Don't include sys/types.h.
14612         (ARG_NONE): New macro.
14613         (char_directive): Change type of *arg_index fields to size_t.
14614         * lib/printf-parse.c: Don't include sys/types.h.
14615         (SSIZE_MAX): Remove macro.
14616         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
14617         Remove unnecessary overflow check.
14618         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
14619         fields.
14620
14621 2003-11-25  Bruno Haible  <bruno@clisp.org>
14622
14623         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
14624
14625 2003-11-25  Bruno Haible  <bruno@clisp.org>
14626
14627         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
14628         gt_TYPE_SSIZE_T.
14629
14630 2003-11-24  Paul Eggert  <eggert@twinsun.com>
14631
14632         * modules/alloca: Remove dependency on xalloc.
14633
14634 2003-11-24  Paul Eggert  <eggert@twinsun.com>
14635
14636         * lib/alloca.c: Remove dependency on xalloc module.
14637         (xalloc_die): Remove.
14638         (memory_full) [!defined emacs]: New macro.
14639         [!defined emacs]: Don't include xalloc.h.
14640         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
14641         address arithmetic overflows.  Change datatypes a bit to avoid
14642         unnecessary casts.
14643
14644 2003-11-22  Jim Meyering  <jim@meyering.net>
14645
14646         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
14647         s/size/size_t/.
14648
14649 2003-11-21  Karl Berry  <karl@gnu.org>
14650
14651         * config/config.{sub,guess}: update from config.
14652
14653 2003-11-18  Karl Berry  <karl@gnu.org>
14654
14655         * config/config.{sub,guess}: update from config.
14656
14657         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
14658
14659 2003-11-17  Paul Eggert  <eggert@twinsun.com>
14660
14661         * README: Mention that S+T cannot overflow if S is the size of
14662         an existing object and T is sufficiently small.
14663
14664 2003-11-17  Jim Meyering  <jim@meyering.net>
14665
14666         On systems without utime and without a utimes function capable of
14667         dealing with a NULL struct utimbuf* argument, this utime replacement
14668         could -- in unusual circumstances -- leak a file descriptor.
14669         * lib/utime.c: Include <unistd.h> and <errno.h>.
14670         (utime_null): Be sure to close `fd' and to preserve errno.
14671         Reported by Geoff Collyer via Arnold Robbins.
14672
14673 2003-11-17  Bruno Haible  <bruno@clisp.org>
14674
14675         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
14676         (Depends-on): Add xsize.
14677
14678 2003-11-17  Bruno Haible  <bruno@clisp.org>
14679
14680         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
14681
14682 2003-11-17  Bruno Haible  <bruno@clisp.org>
14683
14684         * lib/vasnprintf.c (alloca): Remove fallback definition.
14685         (freea): Remove definition.
14686         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
14687         Reported by Paul Eggert.
14688
14689 2003-11-16  Paul Eggert  <eggert@twinsun.com>
14690             Bruno Haible  <bruno@clisp.org>
14691
14692         Protect against address arithmetic overflow.
14693         * lib/printf-args.h: Include stddef.h.
14694         (arguments): Change type of field 'count' to size_t.
14695         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
14696         'unsigned int' where appropriate.
14697         * lib/printf-parse.h: Include sys/types.h.
14698         (char_directive): Change type of *arg_index fields to ssize_t.
14699         (char_directives): Change type of fields 'count', max_*_length to
14700         size_t.
14701         * lib/printf-parse.c: Include sys/types.h and xsize.h.
14702         (SSIZE_MAX): Define fallback value.
14703         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
14704         instead of 'int' where appropriate. Check a_allocated, d_allocated
14705         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
14706         * lib/vasnprintf.c: Include xsize.h.
14707         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
14708         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
14709         overflow. Avoid wraparound when converting a width or precision from
14710         decimal to binary.
14711
14712 2003-11-16  Bruno Haible  <bruno@clisp.org>
14713
14714         Update from GNU gettext.
14715         * lib/printf-parse.c: Generalize to it can be compiled for wide
14716         strings.
14717         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
14718         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
14719         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
14720         SNPRINTF): New macros.
14721         Don't include <alloca.h> if the file is used inside libintl.
14722         (local_wcslen): New function, for Solaris 2.5.1.
14723         (VASNPRINTF): Use it instead of wcslen.
14724
14725 2003-11-16  Bruno Haible  <bruno@clisp.org>
14726
14727         * lib/xsize.h (xmax): New function.
14728         (xsum, xsum3, xsum4): Declare as "pure" functions.
14729
14730 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14731
14732         * modules/xalloc (Files): Undo latest change, since xalloc.h
14733         no longer needs SIZE_MAX or PTRDIFF_MAX.
14734
14735 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14736
14737         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
14738         gl_PTRDIFF_MAX.
14739
14740 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14741
14742         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
14743         "return", to pacify some unknown compiler.  Problem reported
14744         by Joerg Schilling.
14745
14746 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14747
14748         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
14749         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
14750         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
14751         heuristic is just as accurate as far as we know, and it removes a
14752         dependency on size_max.m4 and ptrdiff_max.m4.
14753
14754 2003-11-11  Bruno Haible  <bruno@clisp.org>
14755
14756         * modules/xsize (Files): Add m4/size_max.m4.
14757         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
14758
14759 2003-11-11  Bruno Haible  <bruno@clisp.org>
14760
14761         * m4/size_max.m4: New file.
14762         * m4/ptrdiff_max.m4: New file.
14763         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
14764         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
14765         (gl_XALLOC): Invoke it.
14766
14767 2003-11-11  Bruno Haible  <bruno@clisp.org>
14768
14769         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
14770         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
14771         defined.
14772
14773 2003-11-10  Paul Eggert  <eggert@twinsun.com>
14774
14775         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
14776         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
14777         rejected some allocations of exactly SIZE_MAX - 2 bytes.
14778         From Bruno Haible.
14779         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
14780         not (size_t) -1, since it's defined here.
14781
14782 2003-11-09  Karl Berry  <karl@gnu.org>
14783
14784         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
14785
14786 2003-11-06  Paul Eggert  <eggert@twinsun.com>
14787
14788         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
14789         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
14790         Reject sizes of exactly SIZE_MAX bytes.
14791         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
14792         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
14793
14794 2003-11-05  Bruno Haible  <bruno@clisp.org>
14795
14796         * lib/xsize.h: Include limits.h, to avoid a possible collision with
14797         SIZE_MAX defined in <limits.h> on Solaris.
14798
14799 2003-11-04  Jim Meyering  <jim@meyering.net>
14800
14801         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
14802         variable names, rather than @VAR@.
14803         * modules/poll: Likewise.
14804
14805 2003-11-04  Bruno Haible  <bruno@clisp.org>
14806
14807         * modules/xsize: New file.
14808         * modules/linebreak: Depend on xsize.
14809         * MODULES.html.sh (func_all_modules): Add xsize.
14810
14811 2003-11-04  Bruno Haible  <bruno@clisp.org>
14812
14813         * m4/xsize.m4: New file.
14814
14815 2003-11-04  Bruno Haible  <bruno@clisp.org>
14816
14817         * lib/xsize.h: New file.
14818         * lib/linebreak.c: Include xsize.h.
14819         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
14820         argument for overflow.
14821         Suggested by Paul Eggert.
14822
14823 2003-11-03  Karl Berry  <karl@gnu.org>
14824
14825         * config/config.{guess,sub}: update from config.
14826
14827 2003-11-03  Jim Meyering  <jim@meyering.net>
14828
14829         * modules/userspec (lib_SOURCES): Add userspec.h.
14830         (Include): Add "userspec.h".
14831         Improve description.
14832
14833 2003-11-03  Jim Meyering  <jim@meyering.net>
14834
14835         * lib/userspec.c: Include "userspec.h".
14836         * lib/userspec.h: New file.
14837
14838 2003-11-03  Bruno Haible  <bruno@clisp.org>
14839
14840         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
14841
14842 2003-11-03  Bruno Haible  <bruno@clisp.org>
14843
14844         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
14845         available, to avoid (extremely rare) race condition.
14846         Suggested by Paul Eggert.
14847
14848 2003-11-02  Karl Berry  <karl@gnu.org>
14849
14850         * config/srclist.txt (vasprintf.c): sync broken, sigh.
14851
14852 2003-10-31  Paul Eggert  <eggert@twinsun.com>
14853
14854         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
14855         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
14856         (read_filesystem_list): Set and use me_type_malloced.
14857         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
14858         whatever the type happens to be), for brevity and consistency.
14859         Check for size calculation overflow on Alphas running OSF/1.
14860
14861 2003-10-31  Jim Meyering  <jim@meyering.net>
14862
14863         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
14864
14865         * lib/linebuffer.c: Include <string.h> for declaration of memset.
14866
14867 2003-10-30  Paul Eggert  <eggert@twinsun.com>
14868             Bruno Haible  <bruno@clisp.org>
14869
14870         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
14871         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
14872
14873 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14874
14875         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
14876         netbsd*-gnu*.  Suggested by Robert Millan.
14877
14878 2003-10-29  Paul Eggert  <eggert@twinsun.com>
14879
14880         * modules/group-member: Depend on stdbool.
14881
14882 2003-10-29  Paul Eggert  <eggert@twinsun.com>
14883
14884         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
14885
14886 2003-10-29  Paul Eggert  <eggert@twinsun.com>
14887
14888         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
14889         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
14890         after the 'gnu' in these cases.  This fixes some bugs in the
14891         previous change, and is based on suggestions by Robert Millan.
14892
14893 2003-10-29  Paul Eggert  <eggert@twinsun.com>
14894
14895         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
14896         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
14897         no longer needed.
14898         * lib/quotearg.c (quotearg_n_options): Use it.
14899         * lib/group-member.c: Include <stdbool.h>.
14900         (free_group_info): Arg is now const *; don't free arg.
14901         (get_group_info): Now returns bool and accepts struct group_info *,
14902         rather than returning a malloc'ed struct group_info *.
14903         All uses changed.  Check for overflow in internal size calculation.
14904
14905         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
14906         rather than xmalloc/xrealloc.
14907         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
14908         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
14909         conformance bug: the old code used a pointer after freeing the
14910         storage that it addressed.
14911         * lib/hash.c (hash_initialize): Simplify the code by using
14912         xalloc_oversized rather than doing it by hand.
14913         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
14914         the buffer preserved.  Use free and xmalloc instead.
14915         * lib/quotearg.c (quotearg_n_options): Likewise.
14916         Use a simpler test for size overflow.  Don't use xalloc_oversized
14917         because unsigned int might be wider than size_t (!); this suggests
14918         that we should switch from unsigned int to size_t for slot numbers.
14919
14920 2003-10-28  Paul Eggert  <eggert@twinsun.com>
14921
14922         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
14923         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
14924         NetBSD kernels.  Requested by Richard Stallman.
14925
14926 2003-10-27  Paul Eggert  <eggert@twinsun.com>
14927
14928         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
14929         to allocate the returned structure.  Do not allocate a subarray,
14930         as x2nrealloc will do that.
14931         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
14932         instead of xnrealloc.
14933         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
14934
14935 2003-10-27  Bruno Haible  <bruno@clisp.org>
14936
14937         * lib/stdbool_.h: Better support for BeOS.
14938
14939 2003-10-26  Paul Eggert  <eggert@twinsun.com>
14940
14941         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
14942         now uses inline.
14943
14944 2003-10-26  Paul Eggert  <eggert@twinsun.com>
14945
14946         * lib/xalloc.h (xalloc_oversized): New static inline function, for
14947         callers that want to do their own size-overflow checking.  Include
14948         <stdbool.h>, since xalloc_oversized returns bool.
14949         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
14950         to use xalloc_oversized.
14951
14952         Add two functions x2realloc, x2nrealloc, for programs that grow
14953         arrays dynamically by doubling their sizes.
14954         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
14955         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
14956         New functions.
14957
14958         Port to C99 semantics for 'inline' of external functions.
14959         Bug reported by Bruno Haible.
14960         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
14961         with the old contents of xnmalloc.
14962         (xnmalloc, xmalloc): Use it.
14963         (xnrealloc_inline): New static inline function,
14964         with the old contents of xnrealloc.
14965         (xnrealloc, xrealloc): Use it.
14966
14967         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
14968         that.
14969
14970 2003-10-26  Karl Berry  <karl@gnu.org>
14971
14972         * config/srclist.txt (COPYING.DOC): no longer available from
14973         /gd/gnuorg; don't know where the ultimate source is.
14974
14975 2003-10-25  Paul Eggert  <eggert@twinsun.com>
14976
14977         Fix several address-calculation bugs in the hash modules,
14978         plus some minor code cleanup.
14979
14980         * lib/hash.h: Include <stdbool.h>, for bool.
14981         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
14982         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
14983         hash_get_n_entries, hash_get_max_bucket_length,
14984         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
14985         hash_rehash): Use size_t rather than unsigned.
14986         * lib/hash.c (struct hash_table, hash_get_n_buckets,
14987         hash_get_n_buckets_used, hash_get_n_entries,
14988         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
14989         hash_get_entries, hash_do_for_each, hash_string, is_prime,
14990         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
14991         Likewise.
14992         (SIZE_MAX): Define if not defined.
14993         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
14994         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
14995         hash_print):
14996         Use const * when possible.
14997         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
14998         (check_tuning): Fix bug: if tuning parameters were very close to
14999         0 or 1, rounding errors could have caused subscript violations.
15000         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
15001         (hash_initialize): Add 'fail:' label
15002         to free table and return NULL, and use it to simplify code.
15003         Use calloc rather than clearing the storage ourself.
15004         (hash_initialize, hash_rehash): Check for arithmetic overflow in
15005         buffer size calculations.
15006         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
15007         Include <stddef.h>, for size_t.
15008         * lib/hash-pjw.c (hash_pjw): Likewise.
15009         Switch to method described by Bruno Haible.
15010         Include <limits.h>, for CHAR_BIT.
15011         (SIZE_BITS): New macro.
15012
15013 2003-10-23  Paul Eggert  <eggert@twinsun.com>
15014
15015         * m4/getline.m4 (AM_FUNC_GETLINE):
15016         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
15017         hosts.  Problem reported by Derek Robert Price in
15018         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
15019         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
15020         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
15021
15022 2003-10-21  Paul Eggert  <eggert@twinsun.com>
15023
15024         * lib/getndelim2.c (getndelim2): When size calculation overflows,
15025         ceiling the allocation at NMAX bytes rather than silently
15026         discarding input bytes before NMAX is reached.  This makes
15027         a difference only if NMAX exceeds SIZE_MAX / 2.
15028
15029         * lib/obstack.c: Merge from glibc.
15030         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
15031         Add libc_hidden_def (_obstack_newchunk).
15032         (_obstack_free) [! defined _LIBC]: Remove.
15033         [defined _LIBC]: Make a strong alias from obstack_free, rather than
15034         a clone of the function body.
15035         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
15036         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
15037
15038         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
15039         glibc.
15040         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
15041         arg to memcpy.
15042
15043         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
15044         (obstack_ptr_grow_fast, obstack_int_grow_fast):
15045         Don't use lvalue casts, as GCC plans to remove support for them
15046         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
15047         was also present in the non-GCC version, indicating that this
15048         code had always been buggy and had never been widely used.
15049         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
15050         Use the fast variant of each macro, rather than copying the
15051         definiens of the fast variant; that way, we'll be more likely to
15052         catch future bugs in the fast variants.
15053
15054 2003-10-20  Bruno Haible  <bruno@clisp.org>
15055
15056         * modules/wait-process: New file.
15057         * MODULES.html.sh (func_all_modules): Add wait-process.
15058
15059 2003-10-20  Bruno Haible  <bruno@clisp.org>
15060
15061         * m4/wait-process.m4: New file.
15062
15063 2003-10-20  Bruno Haible  <bruno@clisp.org>
15064
15065         * lib/wait-process.h: New file, from GNU gettext.
15066         * lib/wait-process.c: New file, from GNU gettext.
15067
15068 2003-10-19  Jim Meyering  <jim@meyering.net>
15069
15070         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
15071         HPUX 10.20.
15072
15073 2003-10-18  Karl Berry  <karl@gnu.org>
15074
15075         * config/config.guess: update from config.
15076
15077 2003-10-16  Paul Eggert  <eggert@twinsun.com>
15078
15079         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
15080         (getgroups): First arg is int, not size_t.
15081         Don't let 'free' mangle errno.
15082
15083 2003-10-16  Paul Eggert  <eggert@twinsun.com>
15084
15085         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
15086
15087 2003-10-16  Karl Berry  <karl@gnu.org>
15088
15089         * config/config.{guess,sub}: update from config.
15090
15091 2003-10-16  Jim Meyering  <jim@meyering.net>
15092
15093         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
15094         memcpy.
15095
15096 2003-10-15  Paul Eggert  <eggert@twinsun.com>
15097
15098         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
15099         (SIZE_MAX): Remove.
15100         (new_exclude, add_exclude_file): Initial size no longer needs to
15101         be a power of 2.
15102         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
15103         our own address arithmetic overflow checking.
15104
15105         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
15106         (fnmatch): Do not alloca more than 2000 wide characters;
15107         instead, use malloc for large buffers.
15108         Check for address arithmetic overflow, and return -1
15109         with errno set to ENOMEM in that case.
15110         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
15111         (NEW_PATTERN): Do not alloca more than 8000 bytes;
15112         instead, return -1.  Check for address arithmetic overflow.
15113
15114 2003-10-14  Paul Eggert  <eggert@twinsun.com>
15115
15116         Handle invalid suffixes and overflow independently, so that
15117         callers can treat them independently as needed.  Fix some bugs in
15118         suffix handling, e.g., "100k@" was not diagnosed as an invalid
15119         suffix for a human-readable blocksize.  The major caller-visible
15120         change is the addition of a new
15121         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
15122         that both overflow and suffix chars were found.
15123
15124         * lib/human.c (humblock): Don't check separately for invalid suffix
15125         char; that is xstrtoumax's job (now that its bug is fixed).
15126         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
15127         INTMAX_MAX]: New macros.
15128         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
15129         TYPE_MAXIMUM): New macros.
15130         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
15131         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
15132         if overflow occurs, as it's what __strtol does and it's more useful
15133         in practice.
15134         (__xstrtol): If __strtol reports some error other than ERANGE,
15135         reflect it to the caller as LONGINT_INVALID.  If it reports
15136         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
15137         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
15138         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
15139         value.
15140         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
15141         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
15142         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
15143         [defined UINTMAX_MAX]: New macros.
15144
15145 2003-10-14  Bruno Haible  <bruno@clisp.org>
15146
15147         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
15148
15149 2003-10-14  Bruno Haible  <bruno@clisp.org>
15150
15151         * m4/sig_atomic_t: New file, from GNU gettext.
15152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
15153
15154 2003-10-14  Bruno Haible  <bruno@clisp.org>
15155
15156         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
15157         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
15158         Also use volatile where needed.
15159
15160 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15161
15162         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
15163         Change maintainer from Bruno Haible to 'all'.
15164
15165 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15166
15167         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
15168
15169 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15170
15171         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
15172         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
15173         and define in terms of the other primitives.
15174         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
15175         (SIZE_MAX): Define if not already defined.
15176         (array_size_overflow): New function.
15177         (xalloc_die): Abort instead of exiting if 'error' returns.
15178         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
15179         (xmalloc, xrealloc): Use them.
15180         (xcalloc): Check for address arithmetic overflow.
15181         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
15182         a bit faster than strcpy.
15183
15184 2003-10-10  Simon Josefsson  <jas@extundo.com>
15185
15186         * modules/argp (Depends-on): Add restrict and strcase.
15187
15188 2003-10-10  Simon Josefsson  <jas@extundo.com>
15189
15190         * m4/argp.m4: Add AC_C_INLINE.
15191
15192 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15193
15194         Merge getpass from libc, plus a few fixes.
15195
15196         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
15197         Include <stdbool.h>.
15198         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
15199         __fsetlocking to empty.
15200         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
15201         do include <bits/libc-lock.h>.
15202         Do not include <fcntl.h>; not needed.
15203         [_LIBC]: Include <wchar.h>.
15204         (NOTCANCEL_MODE): New macro.
15205         (flockfile, funlockfile) [_LIBC]: New macros.
15206         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
15207         [!_LIBC]: New macros.
15208         (call_fclose): New function.
15209         (getpass): Use it.  Save tty stream separately; this simplifies the
15210         code and makes it more reliable if stdin happens to equal stdout.
15211         Invoke __fsetlocking on tty.
15212         Handle thread cancellation if needed.
15213         Namespace cleanup (use __tcgetattr, __getline).
15214         Use bool for Booleans.
15215         [USE_IN_LIBIO]: Handle wide streams.
15216         [!_LIBC]: Unconditionally do the fseek, since we don't know what
15217         stream might go where.
15218
15219         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
15220         doesn't have to include <stdio.h> before us.
15221         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
15222         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
15223         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
15224         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
15225         if not declared, so that we can use getpass.c code from libc without
15226         rewriting it.
15227         (flockfile, ftrylockfile, funlockfile): New macros.
15228
15229 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15230
15231         * modules/getpass: Depend on stdbool.
15232
15233 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15234
15235         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
15236
15237 2003-10-07  Karl Berry  <karl@gnu.org>
15238
15239         * config/config.{guess,sub}: update from config.
15240
15241 2003-10-06  Jim Meyering  <jim@meyering.net>
15242             Bruno Haible  <bruno@clisp.org>
15243
15244         This lets translators provide better translations for the
15245         "Written by ..." part of --version output.
15246         * lib/version-etc.h: Include stdarg.h.
15247         (version_etc_copyright): Declare as readonly.
15248         (version_etc): Make this function variadic with a NULL-terminated list
15249         of author name strings.
15250         (version_etc_va): New declaration.
15251         * lib/version-etc.c: Include stdarg.h, stdlib.h.
15252         (version_etc_copyright): Declare as readonly.
15253         (version_etc_va): New function. Provide a different translatable string
15254         for each possible number of authors < 10. Abbreviate when there are 10
15255         authors or more.
15256         (version_etc): Make this function variadic. Call version_etc_va.
15257         Suggestion from Gary V. Vaughan.
15258
15259         * lib/long-options.h (parse_long_options): Change prototype: the
15260         authors string is moved to the end and becomes variadic.
15261         * lib/long-options.c: Include stdarg.h.
15262         (parse_long_options): Make this function variadic, too.
15263         Call version_etc_va, not version_etc.
15264
15265 2003-10-06  Bruno Haible  <bruno@clisp.org>
15266
15267         * modules/version-etc-2: Remove file.
15268         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
15269
15270 2003-10-06  Bruno Haible  <bruno@clisp.org>
15271
15272         * modules/fatal-signal: New file.
15273         * MODULES.html.sh (func_all_modules): Add fatal-signal.
15274
15275 2003-10-06  Bruno Haible  <bruno@clisp.org>
15276
15277         * m4/fatal-signal.m4: New file.
15278         * m4/signalblocking.m4: New file, from GNU gettext.
15279
15280 2003-10-06  Bruno Haible  <bruno@clisp.org>
15281
15282         * lib/version-etc-2.h: Remove file.
15283         * lib/version-etc-2.c: Remove file.
15284
15285 2003-10-06  Bruno Haible  <bruno@clisp.org>
15286
15287         * lib/fatal-signal.h: New file, from GNU gettext.
15288         * lib/fatal-signal.c: New file, from GNU gettext.
15289
15290 2003-10-05  Paul Eggert  <eggert@twinsun.com>
15291
15292         * README: Rework advice for preventing empty .o files.
15293         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
15294         not <sys/types.h>.
15295
15296 2003-10-04  Karl Berry  <karl@gnu.org>
15297
15298         * lib/argp*: update from libc.
15299
15300 2003-10-04  Karl Berry  <karl@gnu.org>
15301
15302         * config/config.{guess,sub}: update from config.
15303
15304 2003-10-02  Bruno Haible  <bruno@clisp.org>
15305
15306         * modules/lchown (Include): Add lchown.h.
15307         * modules/time_r (Include): Use "..." syntax.
15308         * modules/xgetdomainname (Include): Add xgetdomainname.h.
15309
15310 2003-10-01  Simon Josefsson  <jas@extundo.com>
15311
15312         * MODULES.html.sh (func_all_modules): Move gethostname from section
15313         'based on' to section 'lacking' POSIX:2001.
15314
15315 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
15316
15317         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
15318         to output mode on the same stream.
15319
15320 2003-09-29  Paul Eggert  <eggert@twinsun.com>
15321
15322         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
15323         Fix arg typo in previous patch.
15324
15325 2003-09-28  Jim Meyering  <jim@meyering.net>
15326
15327         * lib/error.c: Correct cpp indentation.
15328
15329 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15330
15331         * modules/free: New file.
15332
15333 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15334
15335         * m4/free.m4: New file.
15336
15337 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15338
15339         * lib/minmax.h (MIN, MAX)
15340         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
15341         Omit the special code that used __typeof__, since we worry that
15342         it could be more trouble than it's worth.  See:
15343         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
15344         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
15345
15346         * lib/free.c: New file.
15347
15348 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
15349
15350         Trivial fixes to Makefile.am parts of module listings.
15351         * modules/strstr: Append strstr.h to lib_SOURCES.
15352         * modules/strcase: Likewise, for strcase.h.
15353
15354 2003-09-27  Karl Berry  <karl@gnu.org>
15355
15356         * config/mkinstalldirs: update from automake.
15357
15358 2003-09-26  Paul Eggert  <eggert@twinsun.com>
15359
15360         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
15361         (error_tail): Do not loop, reallocating temporary buffer, since
15362         the output cannot contain more wide characters than the input
15363         contains bytes, the size must be big enough already.  This avoids
15364         one potential size overflow calculation.  Check for size overflow
15365         when calculating temporary buffer size.  Free temporary buffer
15366         when done, if it was allocated with malloc; this plugs a memory
15367         leak.  Remove casts from void * to pointers, that are no longer
15368         needed now that we're assuming C89 or better.
15369
15370         Merge error changes from glibc.
15371
15372         * lib/error.c, error.h: Update copyright notice header to match glibc.
15373         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
15374         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
15375         Disable cancellation while printing error.
15376         * lib/error.h: Prepend __ to parameter names.
15377
15378 2003-09-26  Jim Meyering  <jim@meyering.net>
15379
15380         * lib/error.c (error_tail): Move some declarations
15381         into inner scope where the local variables are used.
15382
15383 2003-09-26  Bruno Haible  <bruno@clisp.org>
15384
15385         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
15386         stpncpy().
15387         Don't define stpncpy through config.h; it's now done through stpncpy.h.
15388
15389 2003-09-26  Bruno Haible  <bruno@clisp.org>
15390
15391         * lib/stpncpy.h (gnu_stpncpy): New declaration.
15392         (stpncpy): Define as alias for gnu_stpncpy.
15393         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
15394
15395 2003-09-25  Simon Josefsson  <jas@extundo.com>
15396
15397         * lib/xgetdomainname.h: New file.
15398         * lib/xgetdomainname.c: New file.
15399
15400 2003-09-25  Simon Josefsson  <jas@extundo.com>
15401             Bruno Haible  <bruno@clisp.org>
15402
15403         * modules/getdomainname: New file.
15404         * modules/xgetdomainname: New file.
15405         * MODULES.html.sh (func_all_modules): Add getdomainname,
15406         xgetdomainname.
15407
15408 2003-09-25  Simon Josefsson  <jas@extundo.com>
15409             Bruno Haible  <bruno@clisp.org>
15410
15411         * m4/getdomainname.m4: New file.
15412
15413 2003-09-25  Simon Josefsson  <jas@extundo.com>
15414             Bruno Haible  <bruno@clisp.org>
15415
15416         * lib/getdomainname.h: New file.
15417         * lib/getdomainname.c: New file.
15418
15419 2003-09-25  Karl Berry  <karl@gnu.org>
15420
15421         * lib/argp-fmtstream.c, argp-help.c: update from libc.
15422
15423 2003-09-25  Karl Berry  <karl@gnu.org>
15424
15425         * config/install-sh: update from automake.
15426
15427 2003-09-25  Bruno Haible  <bruno@clisp.org>
15428
15429         * modules/version-etc-2: New file, from modules/version-etc with
15430         modifications.
15431         * MODULES.html.sh (func_all_modules): Add version-etc-2.
15432
15433 2003-09-25  Bruno Haible  <bruno@clisp.org>
15434
15435         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
15436         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
15437
15438 2003-09-24  Simon Josefsson  <jas@extundo.com>
15439
15440         * modules/xgethostname: Add xgethostname.h.
15441
15442 2003-09-24  Paul Eggert  <eggert@twinsun.com>
15443
15444         * lib/linebuffer.c (freebuffer): Don't free the argument, just
15445         the buffer associated with the argument.  Bug reported by
15446         Simon Josefsson.
15447
15448 2003-09-24  Paul Eggert  <eggert@twinsun.com>
15449
15450         * README: Document assumptions that 'int' is at least 32 bits
15451         wide, that integer arithmetic is 2's complement without overflow,
15452         that there are no holes in integer values, that adding sizes of
15453         two nonoverlapping objects can't overflow, and that all-bits-zero
15454         yields scalar zero.  Fix spelling and capitalization typos.
15455
15456 2003-09-19  Karl Berry  <karl@gnu.org>
15457
15458         * lib/argp.h: update from libc.
15459
15460 2003-09-17  Paul Eggert  <eggert@twinsun.com>
15461
15462         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
15463         to avoid spurious warnings like "AC_RUN_IFELSE was called before
15464         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
15465
15466 2003-09-17  Paul Eggert  <eggert@twinsun.com>
15467
15468         * gnulib-tool: Use "test -h", not "test -L", for portability
15469         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
15470         (tags_regexp): Remove, since \| doesn't conform to POSIX.
15471         (sed_extract_prog): Issue s commands one-by-one, rather than
15472         using \| in one s command.
15473
15474 2003-09-16  Paul Eggert  <eggert@twinsun.com>
15475
15476         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
15477         input error, instead of returning NULL the next time we are called
15478         (and therefore losing track of errno).
15479
15480 2003-09-16  Bruno Haible  <bruno@clisp.org>
15481
15482         * gnulib-tool (func_create_testdir): Warn about duplicated
15483         dependencies.
15484
15485 2003-09-15  Paul Eggert  <eggert@twinsun.com>
15486
15487         * modules/argmatch, modules/fatal, modules/obstack,
15488         modules/xalloc, modules/xgethostname: Sort dependencies by
15489         importance, not alphabetically.
15490
15491 2003-09-15  Paul Eggert  <eggert@twinsun.com>
15492
15493         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
15494         fails, so that the caller gets the proper errno.
15495
15496         * lib/readutmp.c (read_utmp): Likewise.
15497         Check for fstat error.  Close stream and free storage
15498         when failing.
15499
15500 2003-09-14  Karl Berry  <karl@gnu.org>
15501
15502         * config/srclist.txt (strdup.c): disable for c89 changes.
15503
15504 2003-09-14  Jim Meyering  <jim@meyering.net>
15505
15506         * lib/getloadavg.c: Correct cpp indentation.
15507         * lib/strdup.c: Likewise.
15508         * lib/vasnprintf.c: Likewise.
15509
15510 2003-09-14  Bruno Haible  <bruno@clisp.org>
15511
15512         * modules/fwriteerror: New file.
15513         * MODULES.html.sh (func_all_modules): Add fwriteerror.
15514
15515 2003-09-14  Bruno Haible  <bruno@clisp.org>
15516
15517         * lib/fwriteerror.h: New file.
15518         * lib/fwriteerror.c: New file.
15519
15520 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15521
15522         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
15523         modules/xgethostname, modules/xalloc: Depend on exit.
15524
15525 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15526
15527         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
15528
15529         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
15530         and AC_MINIX, too, so that their extensions are available.
15531
15532         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
15533         This macro has been superseded by gl_BACKUPFILE.
15534
15535         More patches to assume C89 or better.
15536
15537         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
15538
15539         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
15540         unconditionally.
15541         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
15542         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
15543         Include <string.h>, <stdlib.h> unconditionally.
15544         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
15545         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
15546         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
15547         headers or for string.h.
15548         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
15549         or strtoul.
15550
15551         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
15552         headers.
15553         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
15554         * m4/userspec.m4 (gl_USERSPEC): Likewise.
15555         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
15556         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
15557         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
15558         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
15559         memcpy, memset.
15560         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
15561         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
15562         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
15563         strtol.
15564         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
15565         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
15566         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
15567         strtoul.
15568
15569 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15570
15571         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
15572         * lib/obstack.c [!defined _LIBC]: Likewise.
15573         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
15574         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
15575         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
15576
15577         More changes to assume C89 or better.
15578
15579         * lib/error.c (error_tail): Assume vprintf.
15580
15581         * lib/argmatch.c (getenv): Remove decl.
15582         * lib/progreloc.c (get_full_program_name): Define via prototype.
15583         * lib/setenv.c (clearenv): Likewise.
15584         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
15585         needed.
15586         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
15587         (malloc, memcpy): Remove decls.
15588         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
15589         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
15590         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
15591         (memcpy): Remove macro.
15592         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
15593         (__P): Remove.  All uses removed.
15594         (PTR): Remove.  All uses changed to void *.
15595         (CHAR_BIT, NULL): Remove.
15596         (spaces, zeros, memset_space, memset_zero)
15597         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
15598         Remove.
15599         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
15600         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
15601         Define with prototype.
15602         Remove now-unnecessary prototype decl.
15603         (extra_args_spec): Assume ANSI C.  All uses changed.
15604         (extra_args_spec_iso): Remove.
15605         (my_strftime, emacs_strftimeu): Define via prototype.
15606         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
15607         unconditionally.
15608         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
15609         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
15610         (strtoul, strtol): Remove decls.
15611         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
15612         LONG_MAX): Remove.
15613         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
15614         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
15615         (LOCALE_PARAM_PROTO): New macro.
15616         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
15617         (INTERNAL (strtol), strtol): Define with a prototype.
15618         (PARAMS): Remove.  All uses removed.
15619         * lib/tempname.c: Include <string.h> unconditionally.
15620         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
15621         * lib/xgethostname.c (main): Define with a prototype.
15622         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
15623         Include <stdlib.h> unconditionally.
15624         (calloc, malloc, realloc, free): Remove decls.
15625         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
15626         Include <stdlib.h> unconditionally.  Sort include file names.
15627         (strtod): Remove.
15628         (xstrtod): Define with a prototype.
15629         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
15630         (strtol, strtoul): Remove decls.
15631
15632 2003-09-11  Paul Eggert  <eggert@twinsun.com>
15633
15634         More patches to assume C89 or better.
15635         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
15636         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
15637         string.h, memchr, STDC_HEADERS.
15638
15639 2003-09-11  Paul Eggert  <eggert@twinsun.com>
15640
15641         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
15642         Include <stdlib.h>, <string.h> unconditionally.
15643         Remove now-unnecessary cast to char *.
15644         * lib/strnlen.c: Include <string.h> unconditionally.
15645         * lib/yesno.c (yesno): Define with a prototype.
15646
15647 2003-09-11  Bruno Haible  <bruno@clisp.org>
15648
15649         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
15650
15651 2003-09-10  Jim Meyering  <jim@meyering.net>
15652
15653         * lib/error.c: Correct indentation of cpp directives.
15654
15655 2003-09-10  Bruno Haible  <bruno@clisp.org>
15656
15657         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
15658         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
15659         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
15660         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
15661         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
15662         <stdlib.h> and <string.h> checks.
15663         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
15664         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
15665
15666 2003-09-10  Bruno Haible  <bruno@clisp.org>
15667
15668         * lib/strcspn.c: Include <string.h> unconditionally.
15669         * lib/strpbrk.c: Include <string.h> unconditionally.
15670         * lib/strstr.c: Include <string.h> unconditionally.
15671         * lib/unicodeio.c: Include <string.h> unconditionally.
15672         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
15673         * lib/unsetenv.c: Likewise.
15674         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
15675         * lib/yesno.c: Include <stdlib.h> unconditionally.
15676         (rpmatch): Add prototype.
15677
15678 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15679
15680         More patches to assume C89 or better.
15681         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
15682         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
15683         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
15684         or for string.h.
15685         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
15686         stdlib.h.
15687         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
15688         C headers.
15689         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
15690         string.h.
15691         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
15692         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
15693         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
15694         or for string.h.
15695         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
15696         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
15697         C headers.
15698         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
15699         memcpy.
15700         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
15701         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
15702         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
15703         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
15704         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
15705         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
15706         string.h, free.
15707         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
15708         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
15709         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
15710         C headers, or for string.h.
15711         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
15712         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
15713         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
15714         headers, memory.h, stdlib.h, string.h, strings.h.
15715         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
15716         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
15717         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
15718         strchr.
15719         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
15720         headers, memory.h, string.h.
15721         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
15722         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
15723         free.
15724         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
15725         headers.
15726         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
15727         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
15728         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
15729         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
15730         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
15731
15732 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15733
15734         More K&R removal.
15735
15736         * lib/acosl.c (main): Use a prototype.
15737         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
15738         tanl.c: Likewise.
15739
15740         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
15741
15742         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
15743         (getopt, etopt_long, getopt_long_only, _getopt_internal)
15744         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
15745         with a prototype.
15746         * lib/getopt.c (const): Remove macro.
15747         Include <string.h> unconditionally.
15748         (my_index): Remove; all uses changed to strchr.
15749         (strlen): Remove decl.
15750         (exchange): Remove forward decl; no longer needed.
15751         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
15752         Define with prototype.
15753         * lib/getopt1.c (const): Remove macro.
15754         (getopt_long, getopt_long_only, main): Define with prototype.
15755
15756         * lib/getugroups.c: Include <string.h> unconditionally.
15757
15758         * lib/getusershell.c: Include <stdlib.h> unconditionally.
15759         (getusershell, setusershell, endusershell, readname, main):
15760         Define with prototypes.
15761
15762         * lib/group-member.c: Include group-member.h first.
15763         Include <stdlib.h> unconditionally.
15764
15765         * lib/hard-locale.c: Include hard-locale.h first.
15766         Include <stdlib.h>, <string.h> unconditionally.
15767
15768         * lib/hash.c (free, malloc): Remove decls.
15769         Include <stdlib.h> unconditionally.
15770
15771         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
15772         (getenv): Do not declare.
15773
15774         * lib/idcache.c: Include <string.h> unconditionally.
15775
15776         * lib/long-options.c: Include long-options.h first, to test interface.
15777         Include <stdlib.h> unconditionally.
15778
15779         * lib/makepath.c: Include makepath.h first, to test interface.
15780         Include <stdlib.h> and <string.h> unconditionally.
15781
15782         * lib/linebuffer.c: Include <stdlib.h>.
15783         (free): Remove decl.
15784
15785         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
15786         stddef.h. rpl_malloc returns void *, not char *.
15787         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
15788         prototype.
15789
15790         * lib/md5.h: Include <limits.h> unconditionally.
15791         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
15792         (__P): Remove; all uses removed.
15793         * lib/md5.c: Include "md5.h" first.
15794         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
15795         md5_buffer, md5_process_bytes, md5_process_block):
15796         Define with prototypes.
15797         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
15798         * lib/sha.c: Include "sha.h" first.
15799         Include <stdlib.h>, <string.h> unconditionally.
15800
15801         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
15802         * lib/memcmp.c (__ptr_t): Likewise.
15803         * lib/memrchr.c (__ptr_t): Likewise.
15804         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
15805         Include <string.h> unconditionally.
15806         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
15807         * lib/memchr.c: Include <stdlib.h> unconditionally.
15808         * lib/memchr.c (LONG_MAX): Remove.
15809         * lib/memrchr.c (LONG_MAX): Likewise.
15810         * lib/memchr.c (__memchr): Define via a prototype.
15811         * lib/memrchr.c (__memrchr): Likewise.
15812         * lib/memcmp.c (__P): Remove, and remove all uses.
15813         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
15814         Remove forward decls; no longer needed.
15815         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
15816         Use types required by C89 in prototype.
15817
15818         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
15819         * lib/savedir.c: Likewise.
15820         * lib/mkdir.c (free): Remove decl.
15821         * lib/rmdir.c (rmdir): Define with a prototype.
15822         * lib/savedir.c: Include savedir.h first, to test interface.
15823
15824         * lib/mktime.c (STDC_HEADERS): Remove.
15825         Include <stdlib.h>, <string.h> unconditionally.
15826
15827         * lib/modechange.c: Include <stdlib.h> unconditionally.
15828         (malloc): Remove decl.
15829
15830         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
15831         (free): Remove decl.
15832
15833         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
15834         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
15835         (This type really should be intptr_t, but that's a C99ism.)
15836         (_obstack_memcpy): Remove: all uses changed to memcpy.
15837         Include <string.h> unconditionally.
15838         (struct obstack): Assume __STDC__ for types of members
15839         chunkfun, freefun, extra_arg.
15840         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
15841         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
15842         obstack_begin, obstack_specify_allocation,
15843         obstack_specify_allocation_with_arg, obstack_chunkfun,
15844         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
15845         Remove unprototyped decls and the macros that use them.
15846         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
15847         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
15848         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
15849         (defined __STDC__ && __STDC__)]:
15850         Remove nonprototyped code.
15851         Include <stdlib.h> unconditionally.
15852         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
15853         _obstack_allocated_p, _obstack_free, obstack_free,
15854         _obstack_memory_used, print_and_abort):
15855         Define using prototypes.
15856         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
15857         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
15858         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
15859         obstack_next_free, obstack_object_size, obstack_room) [0]:
15860         Remove unused, unprototyped code.
15861
15862         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
15863
15864         * lib/physmem.c (physmem_total, physmem_available, main): Define
15865         with prototypes.
15866
15867         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
15868         (main): Define with a prototype.
15869
15870         * lib/posixver.c (getenv): Remove decl.
15871
15872         * lib/putenv.c (malloc): Returns void *, not char *.
15873         Include <string.h> unconditionally.
15874         (strchr, memcpy, NULL): Do not define.
15875
15876         * lib/readtokens.c: Include readtokens.h first, to test interface.
15877         Include <stdlib.h>, <string.h> unconditionally.
15878         (init_tokenbuffer): Define with a prototype.
15879
15880         * lib/regex.c (PARAMS): Remove.  All uses removed.
15881         All uses of _RE_ARGS removed, too.
15882         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
15883         unconditionally.
15884         (bzero): Assume memset exists.
15885         (memcmp, memcpy, NULL): Remove.
15886         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
15887         char, or assignments to local vars of type signed char.
15888         (init_syntax_once, PREFIX(extract_number_and_incr),
15889         PREFIX(print_partial_compiled_pattern),
15890         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
15891         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
15892         PREFIX(regex_grow_registers), PREFIX(regex_compile),
15893         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
15894         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
15895         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
15896         wcs_compile_range, byte_compile_range, truncate_wchar,
15897         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
15898         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
15899         count_mbs_length, wcs_re_match_2_internal,
15900         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
15901         PREFIX(alt_match_null_string_p),
15902         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
15903         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
15904         regfree, PREFIX(extract_number)): Define with prototype.  Remove
15905         now-unnecessary declaration, if any.
15906         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
15907         regcomp, regexec):
15908         Remove now-unnecessary casts among pointer types.
15909         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
15910
15911         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
15912         (free): Remove decl.
15913
15914         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
15915
15916         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
15917         (free): Remove decl.
15918
15919         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
15920         * lib/xgetcwd.c: Likewise.
15921
15922         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
15923         (free): Remove decl.
15924
15925         * lib/strchrnul.c (strchrnul): Define with a prototype.
15926         Fix bug: c_in was not converted to char before searching.
15927
15928         The following changes are not K&R related:
15929
15930         * lib/group-member.h: Include <sys/types.h>, so that this file is
15931         self-contained.
15932         * lib/makepath.h: Likewise.
15933
15934         * lib/getusershell.c (readname, default_index, line_size, readname):
15935         Use size_t, not int, for sizes.
15936         (readname): If the size overflows, report an error instead of
15937         looping forever.
15938
15939 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15940
15941         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
15942         libc.
15943
15944 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15945
15946         * README: New section: portability guidelines.
15947
15948 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
15949
15950         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
15951         C89 spec.
15952
15953 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
15954
15955         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
15956
15957 2003-09-08  Paul Eggert  <eggert@twinsun.com>
15958
15959         Assume C89 or better; remove K&R cruft.
15960         A few of these changes were first proposed by Derek Robert Price
15961         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
15962
15963         * lib/addext.c: Include <string.h> unconditionally.
15964         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
15965         Don't declare getenv or malloc.
15966
15967         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
15968         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
15969         (NULL): Remove.
15970         (find_stack_direction, alloca): Use prototypes.
15971
15972         * lib/atexit.c (atexit): Define using a prototype.
15973
15974         * lib/basename.c, dirname.c, stripslash.c:
15975         Include <string.h> unconditionally.
15976
15977         * lib/bcopy.c: Include <stddef.h>.
15978         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
15979
15980         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
15981
15982         * lib/error.h (error, error_at_line, error_print_progname)
15983         [! (defined (__STDC__) && __STDC__)]: Remove decls.
15984         * lib/error.c: Include error.h first, to check interface.
15985         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
15986         (VA_START): Remove; all uses changeed to va_start.
15987         (exit, strerror): Remove decls.
15988         (error_print_progname): Prototype uncondionally.
15989         Don't include <errno.h>; no longer needed.
15990         (private_strerror): Remove.
15991         (error_tail): Always define.
15992         (error, error_at_line): Assume C89 or better; always use prototypes.
15993         * lib/fatal.c: Include "fatal.h" first, to test interface.
15994         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
15995         (VA_START): Remove; all uses changed to va_start.
15996         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
15997         this case.
15998         (exit): Remove decl.
15999         (fatal): Prototype unconditionally.  Assume va_start works.
16000         Abort at end, to pacify gcc.
16001
16002         * lib/euidaccess.c (main): Define with a prototype.
16003
16004         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
16005
16006         * lib/exitfail.c: Include <stdlib.h> unconditionally.
16007
16008         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
16009         prototypes.
16010         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
16011         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
16012         (getenv): Remove decl.
16013         (fnmatch): Define using a prototype.
16014         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
16015         (FCT): Define using a prototype.
16016
16017         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
16018
16019         * lib/gethostname.c: Include <stddef.h>.
16020         (gethostname): Define with prototype.  Length is size_t, not int.
16021
16022 2003-09-08  Paul Eggert  <eggert@twinsun.com>
16023
16024         Assume C89 or better; remove K&R cruft.
16025         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
16026         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
16027         string.h, getenv, malloc.
16028         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
16029         headers.
16030         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
16031         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
16032         do not check for strerror.
16033         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
16034         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
16035         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
16036         do not check for doprnt or vprintf.
16037         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
16038         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
16039
16040 2003-09-08  Paul Eggert  <eggert@twinsun.com>
16041
16042         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
16043         getversion.c should have been removed then, but was accidentally
16044         preserved.
16045
16046         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
16047         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
16048
16049 2003-09-08  Karl Berry  <karl@gnu.org>
16050
16051         * config/config.sub, config.guess, srclistvars.sh: update from savannah
16052                 config, forget about prep.
16053
16054         * config/depcomp, missing: update from automake.
16055
16056 2003-09-07  Paul Eggert  <eggert@twinsun.com>
16057
16058         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
16059         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
16060
16061 2003-09-07  Paul Eggert  <eggert@twinsun.com>
16062
16063         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
16064         copy_tm_result.  Bug reported by Simon Josefsson in
16065         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
16066
16067 2003-09-06  Paul Eggert  <eggert@twinsun.com>
16068
16069         * m4/time_r.m4: New file.
16070         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
16071         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
16072         is. Check for timegm declaration.
16073         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
16074         Do not check for gmtime_r.
16075         Replace mktime if __mktime_internal does not exist and if mktime
16076         hasn't been replaced already.
16077
16078 2003-09-06  Paul Eggert  <eggert@twinsun.com>
16079
16080         * lib/time_r.c, time_r.h: New files.
16081
16082         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
16083         __localtime_r.
16084         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
16085         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
16086
16087         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
16088         __gmtime_r.
16089         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
16090         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
16091         Include <time_r.h>.
16092
16093         * lib/timegm.c: Switch to glibc implementation, with the following
16094         changes:
16095         [defined HAVE_CONFIG_H]: Include <config.h>.
16096         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
16097         (__mktime_internal) [!defined _LIBC]: New decl.
16098         (__gmtime_r) [!defined _LIBC]: New macro and function.
16099         (timegm): Use a prototype, since gnulib assumes C89.
16100         Do not bother declaring tmp to be const, as it's not really usefu.
16101         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
16102         (timegm): Declare only if HAVE_DECL_TIMEGM.
16103
16104 2003-09-06  Paul Eggert  <eggert@twinsun.com>
16105
16106         * MODULES.html.sh (func_all_modules): Add time_r.
16107         * modules/time_r: New file.
16108         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
16109         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
16110
16111 2003-09-03  Paul Eggert  <eggert@twinsun.com>
16112
16113         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
16114         Bug reported by Lute Kamstra in
16115         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
16116
16117         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
16118         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
16119         course with correspondingly smaller numbers for tomorrow and
16120         yesterday.  From Tadayoshi Funaba.  Originally installed into
16121         sh-utils on 1999-08-07, but the patch got lost (I guess during the
16122         coreutils merge?).
16123
16124 2003-08-31  Simon Josefsson  <jas@extundo.com>
16125
16126         * modules/timegm: New file.
16127         * MODULES.html.sh (func_all_modules): Add timegm.
16128
16129 2003-08-31  Simon Josefsson  <jas@extundo.com>
16130
16131         * m4/timegm.m4: New file.
16132
16133 2003-08-31  Simon Josefsson  <jas@extundo.com>
16134
16135         * lib/timegm.h: New file.
16136         * lib/timegm.c: New file.  Based on
16137         wget-1.8.2/src/http.c:mktime_from_utc.
16138
16139 2003-08-31  Karl Berry  <karl@gnu.org>
16140
16141         * lib/argp.h: update from libc.
16142
16143 2003-08-28  Bruno Haible  <bruno@clisp.org>
16144
16145         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
16146         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
16147         followed by '#define fnmatch fnmatch_posix' gives an error.
16148
16149 2003-08-28  Bruno Haible  <bruno@clisp.org>
16150
16151         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
16152         warning on QNX, which defines O_BINARY to 000000.
16153
16154 2003-08-27  Jim Meyering  <jim@meyering.net>
16155
16156         * m4/mkstemp.m4: Require that the system mkstemp be able to create
16157         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
16158         would fail after 32.  Reported by Danny Levinson.  Details here:
16159         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
16160
16161 2003-08-24  Bruno Haible  <bruno@clisp.org>
16162
16163         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
16164         MSVC7 <stdio.h> is included later.
16165
16166 2003-08-22  Simon Josefsson  <jas@extundo.com>
16167
16168         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
16169
16170 2003-08-20  Karl Berry  <karl@gnu.org>
16171
16172         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
16173
16174 2003-08-20  Bruno Haible  <bruno@clisp.org>
16175
16176         * modules/progname: New file.
16177         * MODULES.html.sh (func_all_modules): Add progname.
16178
16179 2003-08-20  Bruno Haible  <bruno@clisp.org>
16180
16181         * lib/progname.h: New file, from GNU gettext.
16182         * lib/progname.c: New file, from GNU gettext.
16183         * lib/progreloc.c: New file, from GNU gettext.
16184
16185 2003-08-19  Jim Meyering  <jim@meyering.net>
16186
16187         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
16188         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
16189
16190 2003-08-19  Bruno Haible  <bruno@clisp.org>
16191
16192         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
16193         more.
16194
16195 2003-08-19  Bruno Haible  <bruno@clisp.org>
16196
16197         * lib/xstrdup.c: Assume <string.h> exists.
16198
16199 2003-08-18  Paul Eggert  <eggert@twinsun.com>
16200
16201         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
16202         in makefile rules.
16203
16204 2003-08-18  Jim Meyering  <jim@meyering.net>
16205
16206         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
16207         * m4/lib-ld.m4: Likewise.
16208
16209 2003-08-18  Jim Meyering  <jim@meyering.net>
16210
16211         * lib/setenv.h: Indent nested cpp directive.
16212         * lib/vasnprintf.c: Remove trailing blanks.
16213
16214 2003-08-17  Simon Josefsson  <jas@extundo.com>
16215
16216         * modules/xstrndup: New file.
16217         * MODULES.html.sh (func_all_modules): Add xstrndup.
16218
16219 2003-08-17  Simon Josefsson  <jas@extundo.com>
16220
16221         * modules/argp: Fix autoconf macro name. Add more dependencies.
16222
16223 2003-08-17  Simon Josefsson  <jas@extundo.com>
16224
16225         * m4/xstrndup.m4: New file.
16226
16227 2003-08-17  Simon Josefsson  <jas@extundo.com>
16228
16229         * m4/argp.m4: New file.
16230
16231 2003-08-17  Simon Josefsson  <jas@extundo.com>
16232             Bruno Haible  <bruno@clisp.org>
16233
16234         * lib/xstrndup.h: New file.
16235         * lib/xstrndup.c: New file.
16236
16237 2003-08-17  Bruno Haible  <bruno@clisp.org>
16238
16239         * modules/strndup (Files, Include): Add lib/strndup.h.
16240
16241 2003-08-17  Bruno Haible  <bruno@clisp.org>
16242
16243         * modules/euidaccess (Files): Add lib/euidaccess.h.
16244
16245 2003-08-17  Bruno Haible  <bruno@clisp.org>
16246
16247         * lib/strndup.h: New file.
16248
16249 2003-08-17  Bruno Haible  <bruno@clisp.org>
16250
16251         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
16252         like AC_GNU_SOURCE.
16253         * modules/extensions (configure.ac): Comment out the invocation of
16254         gl_USE_SYSTEM_EXTENSIONS.
16255
16256 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16257
16258         Merges from coreutils, etc.
16259         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
16260         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
16261         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
16262         fixing a typo.
16263         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
16264         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
16265
16266 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16267
16268         Document merge from coreutils.
16269         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
16270         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
16271         * modules/utime: Add m4/utimes-null.m4.
16272
16273 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16274
16275         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
16276         space, undoing this 2003-08-12 change:
16277         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
16278
16279 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16280
16281         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
16282         strtoul.c from libc, undoing this 2003-08-12 change:
16283         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
16284
16285 2003-08-16  Jim Meyering  <jim@meyering.net>
16286
16287         Merges from coreutils.
16288         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
16289         prefix.  Adjust cache variables similarly.  Create 500 rather than
16290         just 300 files, to exercise bug on Darwin6.5, too.
16291         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
16292         $missing_dir.
16293         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
16294         AM_SYS_POSIX_TERMIOS.
16295         Reported by mkc@mathdogs.com.
16296         Also change use of $am_cv_sys_posix_termios
16297         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
16298         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
16299         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
16300         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
16301         in /proc/mounts until it finds one with matching device number.  This
16302         is unnecessary when the FILE argument *is* a mount point.  No stat call
16303         is necessary in that case.  So, disable the statvfs-testing code on
16304         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
16305         as RedHat bug# 84846.
16306         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
16307         to 1MB, so as not to render systems with no stack size limit (e.g.,
16308         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
16309         Include <unistd.h>.  On some systems,
16310         it is required for the definition of _SC_PAGESIZE.
16311
16312 2003-08-16  Jim Meyering  <jim@meyering.net>
16313
16314         Merge from coreutils.
16315         * lib/xstrtoimax.c: #else #if -> #elif.
16316         * lib/xstrtoumax.c: Likewise.
16317
16318 2003-08-16  Jim Meyering  <jim@meyering.net>
16319
16320         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
16321         * m4/utimes.m4: Removed.
16322         * m4/utimes-null.m4: Renamed from utimes.m4.
16323
16324         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
16325         to 1MB, so as not to render systems with no stack size limit (e.g.,
16326         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
16327         Include <unistd.h>.  On some systems,
16328         it is required for the definition of _SC_PAGESIZE.
16329
16330 2003-08-16  Jim Meyering  <jim@meyering.net>
16331         and Paul Eggert  <eggert@cs.ucla.edu>
16332
16333         Merges from coreutils, etc.
16334
16335         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
16336         using the latest version from cvs.  This avoids problems with #line
16337         directives using a vendor (Sun) compiler.
16338         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
16339         Don't set GETGROUPS_LIB here; now it's
16340         done via getgroups.m4's wrapper function.
16341         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
16342         rather than just in sh-util/configure.in, so that the
16343         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
16344         same.
16345         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
16346         AC_FUNC_GETLOADAVG where to find getloadavg.c.
16347         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
16348         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
16349         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
16350         Remove code that is now done by the newly-required macros.
16351         Append $(EXEEXT) to DF_PROG.
16352         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
16353         Do not invoke or require the following here,
16354         since prereq.m4 or some gnulib .m4 now does this for us:
16355         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
16356         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
16357         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
16358         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
16359         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
16360         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
16361         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
16362         AC_FUNC_OBSTACK.
16363         Do not replace the following functions, as this is now the job
16364         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
16365         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
16366         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
16367         atexit getpass, strdup, getpagesize.
16368         Replace 'raise'.
16369         Do not check for the following functions, as this is now the job
16370         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
16371         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
16372         setregid.
16373         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
16374         Check for sys/sysctl.h.
16375         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
16376         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
16377         of checking for ssize_t ourselves.
16378
16379         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
16380         Require every macro that gnulib/modules/* suggests for us.
16381         (jm_PREREQ_ADDEXT): New macro.
16382         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
16383         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
16384
16385         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
16386         (gl_PHYSMEM): Use it.
16387         Also check for `table' function.
16388         Check for new headers and functions.
16389         Add check for sys/sysmp.h.
16390         With suggestions from Kaveh Ghazi.
16391         Ignore headers that are present but cannot be compiled.  This
16392         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
16393         C 5.4.
16394
16395 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16396
16397         Document merge from coreutils.
16398         * modules/userspec: Depend on posixver.
16399         * modules/strftime: Depend on tzset.
16400
16401 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16402
16403         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
16404         rather than tab, after '#' in shell-script copyright notices.
16405         Suggested by Bruno Haible.
16406
16407 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16408
16409         * config/srclist-update: Use three spaces, rather than tab, after '#'
16410         in shell-script copyright notices.  Suggested by Bruno Haible.
16411         Remove unnecessary parenthesization in regular expression.
16412
16413 2003-08-15  Jim Meyering  <jim@meyering.net>
16414
16415         Merge from coreutils.
16416         * lib/xgethostname.c: Include <stdlib.h>.
16417         (xghostname): Don't exit for anything other than memory-related
16418         failure; just return NULL.
16419         * lib/userspec.c: Include "posixver.h".
16420         (parse_user_spec): Accept `.' as a separator only
16421         in pre-POSIX-200112 mode.
16422         * lib/strtoimax.c: Use #elif rather than #else #if.
16423         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
16424         Remove function, now that we can rely on a working tzset function.
16425         [!_LIBC]: Ensure that the required autoconf test has been run.
16426         [!defined _NL_CURRENT && HAVE_STRFTIME]:
16427         Use underlying_strftime for %r.
16428         * lib/sha.c: Merge in some clean-up and optimization changes from
16429         glibc.
16430         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
16431         Ensure that it is a multiple of 64.
16432         Rearrange loop exit tests so as to avoid performing an
16433         additional fread after encountering an error or EOF.
16434         * lib/realloc.c: Update copyright date.
16435
16436 2003-08-15  Jim Meyering  <jim@meyering.net>
16437         and Paul Eggert  <eggert@twinsun.com>
16438
16439         Merge from coreutils.
16440         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
16441         member but strut utmpx does not.  Needed for AIX 4.3.3.
16442         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
16443
16444 2003-08-15  Jim Meyering  <jim@meyering.net>
16445         and Paul Eggert  <eggert@cs.ucla.edu>
16446
16447         Merges from coreutils, etc.
16448         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
16449         Require gl_FUNC_TZSET_CLOBBER.
16450         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
16451         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
16452         members.
16453
16454 2003-08-14  Paul Eggert  <eggert@twinsun.com>
16455
16456         Help the merge from coreutils.
16457         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
16458         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
16459         * m4/tzset.m4: Use it too.
16460
16461 2003-08-14  Paul Eggert  <eggert@twinsun.com>
16462
16463         * modules/tzset: New file.
16464
16465 2003-08-14  Jim Meyering  <jim@meyering.net>
16466
16467         Merges from coreutils.
16468         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
16469         variable names, rather than @FNMATCH_H@.
16470         * modules/alloca: Likewise for $(ALLOCA_H).
16471
16472         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
16473         the three copies of the literal target, `fnmatch.h'.
16474         * modules/alloca (alloca.h): Likewise.
16475
16476 2003-08-14  Jim Meyering  <jim@meyering.net>
16477
16478         Merge from coreutils.
16479         * m4/tzset.m4: New file.
16480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
16481         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
16482         otherwise, AIX 5.1 systems would end up using the latter.
16483         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
16484         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
16485         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
16486         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
16487
16488 2003-08-14  Jim Meyering  <jim@meyering.net>
16489
16490         Merge from coreutils.
16491         * lib/obstack.h: Whitespace changes.
16492         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
16493         and xcalloc return values.
16494         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
16495         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
16496         hang on OSF/1 5.1 for DIR on both local and remote file systems.
16497         Reported by (and fix confirmed by) Nelson H. F. Beebe.
16498         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
16499         error from mntctl.
16500         Use mntctl's return value to drive the entry-processing loop, since
16501         we can't rely on the value of the vmt_length member in the last
16502         entry.  On some systems doing so could result in exhausting
16503         virtual memory.  Based in part on a patch from Mike Jetzer.
16504
16505 2003-08-14  Jim Meyering  <jim@meyering.net>
16506         and Paul Eggert  <eggert@twinsun.com>
16507
16508         Merges from coreutils, plus other fixes.
16509         * lib/physmem.c: Merge in portability changes from gcc/libiberty
16510         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
16511         for credits and details.  Thanks to Kaveh Ghazi for helping
16512         to keep these files in sync.
16513         (ARRAY_SIZE): Define it.
16514         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
16515         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
16516         (memcasecmp): Don't assume size_t fits in unsigned int.
16517         Remove casts and duplicate code.
16518         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
16519         (memcpy): Remove definition.
16520         Merge in some clean-up and optimization changes from glibc.
16521         [BLOCKSIZE]: Move definition to top of file.
16522         Ensure that it is a multiple of 64.
16523         Rearrange loop exit tests so as to avoid performing an
16524         additional fread after encountering an error or EOF.
16525         * lib/md5.h (md5_uintptr): Define.
16526         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
16527         return to the initial working directory.  Preserve errno
16528         for caller.
16529         * lib/idcache.c: Include "xalloc.h".
16530         (xmalloc, xrealloc): Remove decls.
16531         (getuser): Remove casts no longer required in C89.
16532         * lib/human.c: Include stdio.h, for sprintf.
16533         * lib/group-member.c: Include "xalloc.h".
16534         (xmalloc, xrealloc): Remove decls.
16535         (get_group_info): Remove casts no longer required in C89.
16536         * lib/getusershell.c (readname): Remove casts no longer required in
16537         C89.
16538         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
16539         * lib/getline.c: Whitespace fix, from coreutils.
16540
16541 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16542
16543         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
16544         Check for isascii.
16545
16546         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
16547         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
16548         Undo previous (whitespace-only) change.
16549
16550 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16551
16552         * lib/exclude.c: Include <ctype.h>
16553         (IN_CTYPE_DOMAIN): New macro.
16554         (is_space): New fn.
16555         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
16556         and empty lines.
16557
16558         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
16559         Undo previous (whitespace-only) change.
16560
16561 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16562
16563         * config/srclist-update: Change update back to the old behavior,
16564         leaving whitespace alone.  Use one 'sed' command rather than a
16565         pipeline.
16566         (fixlicense): Now a variable, not a function.
16567         (remove_trailing_blanks): Remove.
16568         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
16569         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
16570         Undo previous (whitespace-only) change.
16571
16572 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16573
16574         Merge from coreutils.
16575         * modules/euidaccess: Add lib_SOURCES, include for new
16576         file euidaccess.h
16577
16578 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16579
16580         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
16581         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
16582         Normalize leading white space and remove trailing white space.
16583
16584         Merge from coreutils
16585         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
16586
16587         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
16588         0.12.1.  These files are now being upgraded automatically by
16589         ../config/srclist-update.
16590
16591 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16592
16593         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
16594         Normalize leading white space and remove trailing white space.
16595         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
16596         notice, as per ../config/srclist-update.
16597
16598         Merge from coreutils.
16599         * lib/euidaccess.h: New file.
16600         * lib/euidaccess.c: Include it.
16601         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
16602         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
16603         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
16604
16605 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16606
16607         * config/srclist-update: Add copyright notice.
16608         (remove_id_lines, remove_trailing_blanks): New constants.
16609         (fixfile): Use them to normalize spacing a bit in copied files.
16610         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
16611         Normalize leading white space and remove trailing white space.
16612
16613         * config/texinfo.tex: Sync with texinfo.
16614
16615         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
16616         strtoul.c from libc, to merge coreutils whitespace changes.
16617
16618         * config/srclist.txt: Get the following m4 files from gettext:
16619         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
16620         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
16621         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
16622         wint_t.m4.
16623
16624 2003-08-12  Karl Berry  <karl@gnu.org>
16625
16626         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
16627         been made.
16628
16629 2003-08-11  Paul Eggert  <eggert@twinsun.com>
16630
16631         * modules/gnu-source, m4/gnu-source.m4:
16632         Remove; we're assuming Autoconf 2.54 or later now.
16633         Suggested by Bruno Haible.
16634         * MODULES.html.sh (func_all_modules): Remove gnu-source.
16635
16636 2003-08-11  Bruno Haible  <bruno@clisp.org>
16637
16638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
16639
16640 2003-08-11  Bruno Haible  <bruno@clisp.org>
16641
16642         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
16643         (vasnprintf): Use it instead of wcslen.
16644
16645 2003-08-11  Bruno Haible  <bruno@clisp.org>
16646
16647         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
16648         value to ensure that _Bool promotes to int. Use #define for _Bool when
16649         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
16650
16651 2003-08-10  Karl Berry  <karl@gnu.org>
16652
16653         * lib/regex.h: update from libc (whitespace fix).
16654
16655 2003-08-09  Paul Eggert  <eggert@twinsun.com>
16656
16657         Merge some files from coreutils.  These changes were
16658         originally made by Jim Meyering.
16659         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
16660         many older Unixes require this.
16661         * lib/alloca.c (alloca): Remove cast to argument of free;
16662         no longer needed in C89.
16663         * lib/alloca_.h, regex.h: Fix white space to match
16664         what GNU indent does.
16665
16666 2003-08-09  Paul Eggert  <eggert@twinsun.com>
16667
16668         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
16669         apparently Emacs's Unicode mode got confused before my 2003-08-05
16670         checkin.
16671
16672 2003-08-08  Paul Eggert  <eggert@twinsun.com>
16673
16674         * m4/extensions.m4: New file.
16675         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
16676         Require gl_USE_SYSTEM_EXTENSIONS.
16677         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
16678         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
16679
16680 2003-08-08  Paul Eggert  <eggert@twinsun.com>
16681
16682         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
16683         * modules/extensions, modules/gnu-source: New files.
16684         * modules/timespec, modules/unlocked-io: Depend on extensions.
16685
16686 2003-08-07 Paul Eggert  <eggert@twinsun.com>
16687
16688         * modules/restrict: New file.
16689         * MODULES.html.sh (func_all_modules): Add restrict.
16690         * modules/regex: Depend on restrict.
16691
16692 2003-08-07  Paul Eggert  <eggert@twinsun.com>
16693
16694         * m4/restrict.m4: New file.
16695         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
16696
16697 2003-08-07  Bruno Haible  <bruno@clisp.org>
16698
16699         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
16700         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
16701
16702 2003-08-07  Bruno Haible  <bruno@clisp.org>
16703
16704         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
16705         makes the module 'getndelim2' compatible with the module 'getline'.
16706
16707 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16708
16709         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
16710         byte with "\201" to avoid glitches when editing that source file
16711         with multi-gnome-terminal.
16712
16713 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16714
16715         * lib/bumpalloc.h: Remove.
16716
16717 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16718
16719         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
16720         * modules/bumpalloc: Remove.
16721
16722 2003-08-04  Paul Eggert  <eggert@twinsun.com>
16723
16724         * lib/getloadavg.c: Change copyright notice and spacing to conform to
16725         GNU coding style.
16726
16727         Merge from coreutils.
16728         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
16729         1. From glibc.
16730         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
16731         from Karl Berry, implemented by Jim Meyering.
16732         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
16733         from Dmitry V. Levin.
16734         Remove anachronistic cast of xrealloc.
16735         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
16736         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
16737         type. Otherwise, it wouldn't compile with at least /bin/cc on
16738         ymp-cray-unicos9.0.2.X.
16739         Combine two mostly-identical uses of alloca into one.
16740         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
16741
16742 2003-08-04  Dave Love <d.love@dl.ac.uk>
16743
16744         [From Emacs.]
16745
16746         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
16747         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
16748         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
16749         obsolete NLIST_NAME_UNION.
16750         [__GNU__]: Undef BSD and FSCALE.
16751         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
16752
16753 2003-08-03  Paul Eggert  <eggert@twinsun.com>
16754
16755         * lib/stdbool_.h (_Bool): Make it signed char, instead of
16756         an enum type, so that it's guaranteed to promote to int.  See:
16757         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
16758
16759 2003-08-03  Karl Berry  <karl@gnu.org>
16760
16761         * config/depcomp: update from automake.
16762
16763 2003-07-31  Paul Eggert  <eggert@twinsun.com>
16764
16765         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
16766         (strerror): Don't assume that a printable int fits in 14 bytes.
16767
16768 2003-07-31  Bruno Haible  <bruno@clisp.org>
16769
16770         * modules/getpass-gnu: New file.
16771         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
16772
16773 2003-07-31  Bruno Haible  <bruno@clisp.org>
16774
16775         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
16776
16777 2003-07-24  Karl Berry  <karl@gnu.org>
16778
16779         * config/missing: update from automake.
16780
16781 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
16782             Bruno Haible  <bruno@clisp.org>
16783
16784         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
16785         * lib/getline.c (getline, getdelim): Likewise.
16786         Remove _GNU_SOURCE define; now it's defined in config.h through
16787         m4/getline.m4.
16788
16789 2003-07-23  Karl Berry  <karl@gnu.org>
16790
16791         * config/config.sub: update from prep.
16792
16793 2003-07-22  Paul Eggert  <eggert@twinsun.com>
16794
16795         * modules/xalloc (Depends-on): Add exitfail.
16796         * modules/xmemcoll: Likewise.
16797
16798 2003-07-22  Paul Eggert  <eggert@twinsun.com>
16799
16800         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
16801         over-parenthesization in macros.
16802
16803         Sync with coreutils.
16804
16805         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
16806         required by C99.
16807
16808         Use `exit_failure' for xalloc and xmemcoll instead of their own
16809         private exit-failure variables.
16810         * lib/xalloc.h (xalloc_exit_failure): Remove.
16811         * lib/xmalloc.c: Likewise.  Include exitfail.h.
16812         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
16813         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
16814         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
16815         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
16816
16817 2003-07-20  Jim Meyering  <jim@meyering.net>
16818
16819         * modules/closeout (Depends-on): Add exitfail.
16820         Suggestion from Bruno Haible.
16821
16822 2003-07-19  Karl Berry  <karl@gnu.org>
16823
16824         * config/config.sub: update from prep.
16825
16826 2003-07-18  Paul Eggert  <eggert@twinsun.com>
16827
16828         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
16829         Remove.
16830         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
16831         to test that it can stand by itself.  Include "exitfail.h".
16832         Clients should set exit_failure instead.
16833         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
16834
16835 2003-07-18  Bruno Haible  <bruno@clisp.org>
16836
16837         * modules/getndelim2: New file.
16838         * modules/getline: Share files with module getndelim2.
16839         * modules/getnline: Depend on getndelim2 instead of sharing files with
16840         it. Add getnline.c to lib_SOURCES.
16841         * MODULES.html.sh (func_all_modules): Add getndelim2.
16842
16843 2003-07-18  Bruno Haible  <bruno@clisp.org>
16844
16845         * m4/getndelim2.m4: New file.
16846         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
16847         invoke gl_PREREQ_GETNDELIM2.
16848         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
16849         gl_PREREQ_GETNDELIM2.
16850         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
16851         gl_GETNDELIM2.
16852
16853 2003-07-18  Bruno Haible  <bruno@clisp.org>
16854
16855         * lib/getndelim2.h: New file.
16856         * lib/getndelim2.c: Make into a module of its own. Include config.h,
16857         getndelim2.h.
16858         (getndelim2): Make non-static. Change return type to ssize_t.
16859         * lib/getline.h: Change argument names.
16860         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
16861         * lib/getnline.c: Include getndelim2.h.
16862
16863 2003-07-18  Andreas Schwab  <schwab@suse.de>
16864
16865         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
16866
16867 2003-07-17  Karl Berry  <karl@gnu.org>
16868
16869         * config/config.sub: update from prep.
16870
16871 2003-07-17  Bruno Haible  <bruno@clisp.org>
16872
16873         * modules/getnline: New file.
16874         * modules/getline: Add lib/getndelim2.c to source file list.
16875         * MODULES.html.sh (func_all_modules): Add getnline.
16876
16877 2003-07-17  Bruno Haible  <bruno@clisp.org>
16878
16879         * m4/getnline.m4: New file.
16880
16881 2003-07-17  Bruno Haible  <bruno@clisp.org>
16882
16883         * m4/Makefile.am.in: Remove file.
16884         * m4/Makefile.am: Remove file.
16885         * m4/Makefile.in: Remove file.
16886
16887 2003-07-17  Bruno Haible  <bruno@clisp.org>
16888
16889         * lib/getnline.h: New file.
16890         * lib/getnline.c: New file.
16891         * lib/getndelim2.c: New file, extracted from getline.c.
16892         (getndelim2): Renamed from getdelim2, with added nmax argument.
16893         * lib/getline.c: Include getndelim2.c.
16894         (getdelim2): Moved out to getndelim2.c.
16895         (getline, getdelim): Update.
16896
16897 2003-07-17  Bruno Haible  <bruno@clisp.org>
16898
16899         * lib/Makefile.am: Remove file.
16900         * lib/Makefile.in: Remove file.
16901
16902 2003-07-17  Bruno Haible  <bruno@clisp.org>
16903
16904         * configure.in: Remove file.
16905         * Makefile.in: Remove file.
16906
16907 2003-07-17  Bruno Haible  <bruno@clisp.org>
16908
16909         * MODULES.html.sh: Put the </BODY> right before </HTML>.
16910
16911 2003-07-16  Karl Berry  <karl@gnu.org>
16912
16913         * config/srclist-update: was running fixlicense twice, which caused
16914                 texinfo.tex to be nullified for some reason.  Simplify,
16915                 $gplsrc is no longer needed as far as I can see?
16916
16917 2003-07-16  Jim Meyering  <jim@meyering.net>
16918
16919         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
16920
16921 2003-07-15  Paul Eggert  <eggert@twinsun.com>
16922
16923         * config/srclist.txt: Get the following files from gettext-runtime/intl
16924         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
16925         ref-del.sin.  From Bruno Haible.
16926         * config/srclist-update (fixfile): Change grep pattern again, since the
16927         previous fix didn't work (there was another trailing $).  Use
16928         '[$]' to escape the $s.
16929
16930 2003-07-15  Karl Berry  <karl@gnu.org>
16931
16932         * lib/vasnprintf.c: update from gettext.
16933
16934 2003-07-15  Karl Berry  <karl@gnu.org>
16935
16936         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
16937         gets expanded when surrounded by '$'.
16938
16939 2003-07-15  Jim Meyering  <jim@meyering.net>
16940
16941         * modules/save-cwd: Don't depend on error.  From Derek Price.
16942
16943 2003-07-15  Jim Meyering  <jim@meyering.net>
16944
16945         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
16946
16947 2003-07-14  Simon Josefsson  <jas@extundo.com>
16948
16949         * modules/mempcpy: New file.
16950         * MODULES.html.sh (func_all_modules): Add mempcpy.
16951
16952 2003-07-14  Simon Josefsson  <jas@extundo.com>
16953
16954         * m4/mempcpy.m4: New file.
16955
16956 2003-07-14  Simon Josefsson  <jas@extundo.com>
16957
16958         * lib/mempcpy.h: New file.
16959         * lib/mempcpy.c: New file.
16960
16961 2003-07-14  Paul Eggert  <eggert@twinsun.com>
16962
16963         * modules/getdate, modules/posixtm: Depend on mktime.
16964
16965 2003-07-14  Paul Eggert  <eggert@twinsun.com>
16966
16967         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
16968         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
16969         unicodeio.c, unicodeio.h, unlocked-io.h:
16970         Switch from LGPL to GPL.
16971
16972 2003-07-14  Paul Eggert  <eggert@twinsun.com>
16973
16974         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
16975         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
16976         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
16977         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
16978         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
16979         updated automatically by ../config/srclist-update.  This changes
16980         their license from LPGL to GPL.
16981
16982 2003-07-14  Paul Eggert  <eggert@twinsun.com>
16983
16984         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
16985         assumed to refer to the root of the most recent stable gettext version.
16986         * config/srclistvars.sh: Add defaults for eggert.
16987         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
16988         Match "This program" as well as "The program".  This is needed
16989         for gettext.
16990
16991 2003-07-14  Jim Meyering  <jim@meyering.net>
16992
16993         Don't emit diagnostics.  Let callers do that.
16994         * lib/save-cwd.c: Don't include "error.h".
16995         (save_cwd): Don't call error.  Ensure that errno is valid
16996         when returning nonzero.
16997
16998         * lib/save-cwd.h (restore_cwd): Update prototype.
16999         * lib/save-cwd.c (restore_cwd): Remove two parameters.
17000         Simplify.  Don't call error upon failure.  Let callers do that.
17001         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
17002         when auditing is enabled.  But don't bother updating the #if.
17003
17004 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
17005
17006         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
17007         it breaks C++ compilation.
17008         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
17009
17010 2003-07-10  Simon Josefsson  <jas@extundo.com>
17011
17012         * modules/strchrnul (Makefile.am): Add strchrnul.h.
17013
17014 2003-07-10  Jim Meyering  <jim@meyering.net>
17015
17016         * m4/clock_time.m4: Remove trailing blank.
17017         * m4/intmax_t.m4: Likewise.
17018
17019 2003-07-10  Jim Meyering  <jim@meyering.net>
17020
17021         * lib/vasnprintf.c: Remove trailing blanks.
17022         Make cpp indentation consistent.
17023
17024 2003-07-09  Paul Eggert  <eggert@twinsun.com>
17025
17026         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
17027         posixver.c, strftime.c, strnlen.c, strverscmp.c:
17028         Switch from LGPL to GPL.
17029
17030 2003-07-09  Paul Eggert  <eggert@twinsun.com>
17031
17032         * config/srclist.txt: Sort sublists.  Add
17033         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
17034         that differ from gnulib for one reason or another; we'd like this list
17035         to be smaller but for now let's document what we have.
17036
17037 2003-07-08  Paul Eggert  <eggert@twinsun.com>
17038
17039         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
17040         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
17041         and sweeter "eval x=$x".
17042         * config/srclist.txt: Get lib/argp* from glibc.
17043
17044 2003-07-07  Paul Eggert  <eggert@twinsun.com>
17045
17046         * lib/mktime.c: Fix some boundary cases and remove need for floating
17047         point.
17048
17049         Issue a compile-time diagnostic if time_t is floating point, or if
17050         two's complement arithmetic is not in effect, or if arithmetic
17051         right shift does not propagate the sign.  These assumptions were
17052         all in the original code but they weren't checked.
17053
17054         (TIME_T_MIDPOINT, verify): New macros.
17055         (__isleap): Remove; it has integer overflow problems.
17056         (leapyear): New function, without those problems.
17057         (ydhms_tm_diff): Remove; splitting into two parts.
17058         (ydhms_diff): New function, containing the arithmetic part of
17059         the old ydhms_tm_diff function.  Issue a compile-time
17060         diagnostic if we are not using C99 integer division.
17061         Avoid casts when possible.
17062         (guess_time_tm): New function, containing the checking part of
17063         the old ydhms_tm_diff function.  Return the new value, rather than
17064         the difference between it and the old.  Accept a new argument T
17065         so that *T specifies the old value.  Check for overflow in the result.
17066
17067         (__mktime_internal): Use a time_t offset, not a long int offset.
17068         This undoes the 2003-06-04 change, which is no longer needed now
17069         that we have better overflow checking.
17070         (localtime_offset): Likewise.
17071
17072         (__mktime_internal): Avoid harmful overflow on hosts where time_t
17073         and long are 64-bit but int is only 32-bit.
17074         (ydhms_diff): Use long int to store year1 and yday1.
17075         Issue a compile-time diagnostic if long int is not wide enough.
17076
17077         (__mktime_internal): Use long int to store adjusted year and yday.
17078         Use plain C rather than preprocessor commands, if that doesn't
17079         affect efficiency.
17080         Check for overflow (and try to repair) after each probe
17081         rather than checking only at the very end.  This avoids some bugs
17082         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
17083         does not equal GMT offset at maximum time).
17084         Use integer to check for overflow rather than floating point; this
17085         is more portable to non-IEEE hosts, and is a tad faster.
17086         When we detect that we are oscillating between two values,
17087         don't check whether tm_isdst has the requested value, since
17088         we already know the answer.  When tm_isdst has the wrong value,
17089         use a different heuristic to find the right one, based on the
17090         extreme values actually observed in practice in tz2003a,
17091         rather than the (overly optimistic) "previous 3 calendar quarters".
17092
17093         (not_equal_tm, print_tm, check_result): Use "const T" rather than
17094         "T const" to accommodate glibc style.
17095         (check_result): Use less-confusing report format.  "long" -> "long int.
17096         (main): Likewise.
17097         Don't loop if the iteration overflows time_t.
17098         Allow a negative step in the iteration.
17099
17100 2003-07-06  Karl Berry  <karl@gnu.org>
17101
17102         * config/depcomp: update from automake.
17103         * config/config.sub: update from prep.
17104
17105 2003-07-03  Karl Berry  <karl@gnu.org>
17106
17107         * config/config.guess: update from prep.
17108
17109 2003-07-01  Paul Eggert  <eggert@twinsun.com>
17110
17111         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
17112         xreadlink.c now includes it unconditionally.
17113
17114 2003-07-01  Paul Eggert  <eggert@twinsun.com>
17115
17116         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
17117         having it depend on HAVE_SYS_TYPES_H.
17118
17119 2003-07-01  Bruno Haible  <bruno@clisp.org>
17120
17121         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
17122         <sys/types.h> should be sufficient.
17123         Reported by Paul Eggert.
17124
17125 2003-06-26  Karl Berry  <karl@gnu.org>
17126
17127         * config/depcomp: update from automake.
17128
17129 2003-06-26  Bruno Haible  <bruno@clisp.org>
17130
17131         * modules/human: Depend on module stdbool.
17132
17133 2003-06-25  Bruno Haible  <bruno@clisp.org>
17134
17135         * modules/readlink: New file.
17136         * modules/xreadlink: Depend on it.
17137         * MODULES.html.sh (func_all_modules): Add readlink.
17138
17139 2003-06-25  Bruno Haible  <bruno@clisp.org>
17140
17141         * m4/readlink.m4: New file.
17142
17143 2003-06-25  Bruno Haible  <bruno@clisp.org>
17144
17145         * lib/readlink.c: New file.
17146
17147 2003-06-22  Karl Berry  <karl@gnu.org>
17148
17149         * config/srclist.txt: update mkinstalldirs from automake.
17150         * config/mkinstalldirs: update.
17151
17152 2003-06-22  Bruno Haible  <bruno@clisp.org>
17153
17154         Portability to mingw32.
17155         * m4/ssize_t.m4: New file, from GNU gettext.
17156         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
17157         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
17158
17159 2003-06-22  Bruno Haible  <bruno@clisp.org>
17160
17161         * modules/safe-read: Add m4/ssize_t.m4.
17162         * modules/xreadlink: Add m4/ssize_t.m4.
17163
17164 2003-06-20  Bruno Haible  <bruno@clisp.org>
17165
17166         Assume C89, so PARAMS isn't needed.
17167         * lib/unicodeio.h (PARAMS): Remove.
17168         * lib/unicodeio.c: Don't use PARAMS.
17169
17170 2003-06-18  Karl Berry  <karl@gnu.org>
17171
17172         * config/config.{guess,sub}: update from prep.
17173
17174 2003-06-18  Jim Meyering  <jim@meyering.net>
17175
17176         Merge changes from coreutils.
17177         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
17178         Remove explicit declarations of xmalloc and realloc.
17179         Include xalloc.h.
17180         (read_utmp): Remove anachronistic cast of xmalloc.
17181
17182 2003-06-17  Paul Eggert  <eggert@twinsun.com>
17183
17184         Assume C89, so PARAMS isn't needed.
17185         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
17186         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
17187         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
17188         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
17189         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
17190         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
17191         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
17192         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
17193         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
17194         lib/xstrtod.h, lib/xstrtol.h: Likewise.
17195         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
17196         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
17197         no longer needed. Anyway, config.h should always be included before any
17198         other file.
17199
17200 2003-06-11  Simon Josefsson  <jas@extundo.com>
17201
17202         * modules/sysexits: New file.
17203         * MODULES.html.sh (func_all_modules): Add sysexits.
17204
17205 2003-06-11  Simon Josefsson  <jas@extundo.com>
17206
17207         * lib/sysexit_.h: New file.
17208
17209 2003-06-11  Derek Price  <derek@ximbiot.com>
17210
17211         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
17212         necessary.
17213
17214 2003-06-11  Bruno Haible  <bruno@clisp.org>
17215
17216         * m4/sysexits.m4: New file.
17217
17218 2003-06-10  Simon Josefsson <jas@extundo.com>
17219
17220         * lib/argp.h: New file, from glibc.
17221         * lib/argp-ba.c: New file, from glibc.
17222         * lib/argp-eexst.c: New file, from glibc.
17223         * lib/argp-fmtstream.c: New file, from glibc.
17224         * lib/argp-fmtstream.h: New file, from glibc.
17225         * lib/argp-fs-xinl.c: New file, from glibc.
17226         * lib/argp-help.c: New file, from glibc.
17227         * lib/argp-namefrob.h: New file, from glibc.
17228         * lib/argp-parse.c: New file, from glibc.
17229         * lib/argp-pv.c: New file, from glibc.
17230         * lib/argp-pvh.c: New file, from glibc.
17231         * lib/argp-xinl.c: New file, from glibc.
17232
17233 2003-06-10  Simon Josefsson  <jas@extundo.com>
17234
17235         * modules/strchrnul: New file.
17236
17237 2003-06-10  Simon Josefsson  <jas@extundo.com>
17238
17239         * modules/argp: New file.
17240
17241 2003-06-10  Simon Josefsson  <jas@extundo.com>
17242
17243         * m4/strchrnul.m4: New file.
17244
17245 2003-06-10  Simon Josefsson  <jas@extundo.com>
17246
17247         * lib/strchrnul.h: New file.
17248         * lib/strchrnul.c: New file.
17249
17250 2003-06-10  Bruno Haible  <bruno@clisp.org>
17251
17252         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
17253
17254 2003-06-07  Karl Berry  <karl@gnu.org>
17255
17256         * config/config.{guess,sub}: update from prep.
17257
17258 2003-06-07  Jim Meyering  <jim@meyering.net>
17259
17260         * modules/strtod: Use $(...) notation, not @...@ for
17261         AC_REPLACE'd variables.
17262         * modules/localcharset: Likewise.
17263
17264 2003-06-07  Jim Meyering  <jim@meyering.net>
17265
17266         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
17267         in place of my name in the copyright comment.
17268         Remove definition and uses of __P.
17269
17270         From coreutils.
17271         * lib/stat.c: Don't declare xmalloc explicitly.
17272         Instead, include "xalloc.h".
17273         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
17274         xrealloc, and xcalloc return values.
17275         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
17276         Improve comment.
17277         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
17278
17279 2003-06-07  Bruno Haible  <bruno@clisp.org>
17280
17281         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
17282         avoid AC_CONFIG_LINKS.
17283         * modules/fnmatch (Makefile.am): Use explicit creation rule for
17284         fnmatch.h, to avoid AC_CONFIG_LINKS.
17285         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
17286
17287 2003-06-07  Bruno Haible  <bruno@clisp.org>
17288
17289         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
17290         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
17291         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
17292         directory.
17293         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
17294         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
17295         directory.
17296
17297 2003-06-06  Jim Meyering  <jim@meyering.net>
17298
17299         Merge from coreutils.
17300         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
17301         Consolidate declarations and initializations of *_base* locals.
17302
17303         Merge from coreutils.
17304         This avoids a core dump on systems without GNU putenv,
17305         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
17306         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
17307         (unsetenv): New static function, from GNU libc.
17308         (rpl_putenv): Use it.
17309
17310         * lib/modechange.c: Remove trailing blanks.
17311
17312         Merge from coreutils.
17313         * lib/fsusage.c: Remove declaration of statfs.
17314         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
17315
17316         * lib/posixtm.c: Include <stdbool.h> unconditionally.
17317
17318 2003-06-06  Jim Meyering  <jim@meyering.net>
17319
17320         * lib/stdbool_.h: Renamed from stdbool.h.in.
17321
17322 2003-06-06  Jim Meyering  <jim@meyering.net>
17323             Bruno Haible  <bruno@clisp.org>
17324
17325         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
17326         Adjust Makefile.am snippet not to redirect directly to target.
17327         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
17328
17329 2003-06-05  Paul Eggert  <eggert@twinsun.com>
17330
17331         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
17332         mismatch, look in future quarters as well as past.  This fixes a
17333         bug when processing fall-backwards gaps immediately after a long
17334         period of daylight-saving time.
17335
17336         * lib/mktime.c: Assume freestanding C89 or better.
17337         (HAVE_LIMITS_H): Remove.  Assume it's 1.
17338         (__P): Remove; not used.
17339         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
17340         (mktime, not_equal_tm, print_tm, check_result,
17341         main): Use prototypes.  Use const * where appropriate.
17342         (main): Fix typo in testing code that uncovered by above changes.
17343         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
17344
17345 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17346
17347         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
17348         locale.h, localeconv.  This merges changes from coreutils.
17349
17350         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
17351         It can be removed after the next Autoconf is released.
17352         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
17353         needed.
17354
17355 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17356
17357         * lib/mktime.c: Fix Debian bug 177940
17358         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
17359         (localtime_offset): Now long int, not time_t, because we want it
17360         to be guaranteed to be signed.  All uses changed.
17361         (__mktime_internal): If overflow would occur when adding offset,
17362         don't add it.
17363
17364         Merge 'human' changes from coreutils.  Rewrite to support
17365         locale-specific notations like thousands separators.
17366         * lib/human.c: Simplify authorship notice.
17367         Include human.h immediately after config.h.
17368         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
17369         <limits.h>: Do not include, since human.h does.
17370         (SIZE_MAX, UINTMAX_MAX): New macros.
17371         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
17372         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
17373         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
17374         (power_letter): Renamed from suffixes.
17375         (generate_suffix_backwards): Remove.
17376         (adjust_value): Now takes int style (because of human.h changes)
17377         and long double value (for greater precision on some platforms).
17378         (group_number): New function.
17379         (human_readable): Use it.  Use integer options, not enum.
17380         Put the options before the sizes in the arg list.
17381         Support all the new options.
17382         The old human_readable function has been removed;
17383         use inttostr.h instead.
17384         (human_readable, default_block_size, humblock):
17385         Use uintmax_t, not int, for block sizes.
17386         (human_readable_inexact, block_size_types): Remove.
17387         (block_size_opts): New constant.
17388         (human_options): Renamed from human_block_size, with new signature
17389         that allows block sizes up to UINTMAX_MAX.  All callers changed.
17390         * lib/human.h: Add copyright and authorship notice.
17391         Include <limits.h> and <stdbool.h> unconditionally.
17392         (PARAMS): Remove.  All uses removed.
17393         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
17394         (enum human_inexact_style): Remove tag; now a nameless enum.
17395         (human_floor, human_ceiling, human_round_to_even): Now have
17396         values 2, 0, 1 rather than -1, 1, 0.
17397         (human_group_digits, human_suppress_point_zero, human_autoscale,
17398         human_base_1024, human_SI, human_B): New constants.
17399         (human_readable_inexact, human_block_size): Remove.
17400         (human_readable): Size args are now uintmax_t, not int.
17401         (human_options): New decl.
17402
17403         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
17404         unnecessary now that we assume C89 or better.  This change
17405         imported from coreutils.
17406
17407         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
17408         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
17409         in the 2003-05-30 sync from glibc.
17410
17411         .h files should stand alone, but we shouldn't include <sys/types.h>
17412         if we can get away with just <stddef.h>.
17413
17414         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
17415         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
17416         rather than <sys/types.h>, as we merely need size_t.
17417         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
17418         to get size_t.
17419         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
17420         Include <stdio.h>, to get FILE.
17421         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
17422         memcasecmp.h has included <stddef.h> and all we need is size_t.
17423         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
17424         our interface, instead of including <sys/types.h>
17425
17426 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17427
17428         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
17429         now, as glibc mktime is buggy on non-glibc systems.
17430
17431 2003-06-03  Karl Berry  <karl@gnu.org>
17432
17433         * config/config.sub: update from prep.
17434
17435 2003-06-02  Paul Eggert  <eggert@twinsun.com>
17436
17437         [from coreutils]
17438         Fix some minor time-related bugs with POSIX time arguments.
17439         Some valid time stamps were being rejected (notably -1, and
17440         time stamps before 1900 on 64-bit hosts).  And some invalid
17441         time stamps were being accepted, e.g. September 31.
17442
17443         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
17444         that we can return (time_t) -1 successfully.
17445         * lib/posixtm.c: Likewise.
17446         [HAVE_STDBOOL_H]: Include <stdbool.h>.
17447         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
17448         (t): Remove static var.
17449         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
17450         of static var.  All uses changed.
17451         (year): Do not reject years before 1900; they can occur with
17452         64-bit time_t.
17453         (posix_time_parse): Do not check for out-of-range components;
17454         that is now the caller's responsibility, since our checks were
17455         only approximations.
17456         (posixtime): Use mktime to check for out-of-range components,
17457         since it knows them exactly.
17458         If mktime returns (time_t) -1, check whether an error actually occurred
17459         by invoking localtime on -1.
17460         (main) [TEST_POSIXTIME]: Check for input data errors, and report
17461         posixtime failures better.
17462         Improve the test data (in comments only).
17463
17464 2003-06-02  Karl Berry  <karl@gnu.org>
17465
17466         * config/mkinstalldirs (version): new variable.
17467         (--version): new option.
17468         (usage): improve message.
17469
17470 2003-05-30  Karl Berry  <karl@gnu.org>
17471
17472         * lib/mktime.c: update from libc.
17473
17474 2003-05-30  Bruno Haible  <bruno@clisp.org>
17475
17476         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
17477         * config/config.rpath: Upgrade to gettext-0.12.1.
17478
17479 2003-05-30  Bruno Haible  <bruno@clisp.org>
17480
17481         * m4/gettext.m4: Upgrade to gettext-0.12.1.
17482         * m4/nls.m4: New file, from gettext-0.12.1.
17483         * m4/po.m4: New file, from gettext-0.12.1.
17484         * m4/progtest.m4: Upgrade to gettext-0.12.1.
17485
17486 2003-05-30  Bruno Haible  <bruno@clisp.org>
17487
17488         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
17489         * lib/localcharset.h: Likewise.
17490         * lib/localcharset.c: Likewise.
17491
17492 2003-05-29  Karl Berry  <karl@gnu.org>
17493
17494         * config/config.rpath: update from gettext.
17495
17496 2003-05-28  Paul Eggert  <eggert@twinsun.com>
17497
17498         Assume the headers required for C89 freestanding compilers.
17499         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
17500         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
17501         * m4/human.m4 (gl_HUMAN): Likewise.
17502         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
17503         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
17504         * m4/userspec.m4 (gl_USERSPEC): Likewise.
17505         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
17506         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17507         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
17508
17509 2003-05-28  Paul Eggert  <eggert@twinsun.com>
17510
17511         Assume the headers required for C89 freestanding compilers.
17512         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
17513         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
17514         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
17515         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
17516         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
17517         define, since <limits.h> is guaranteed to do that.
17518         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
17519         * lib/exclude.c: Include <stdbool.h> unconditionally.
17520         * lib/tempname.c: Include <stddef.h> unconditionally.
17521         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
17522         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
17523         <stddef.h> does that.
17524         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
17525         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
17526         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
17527         needed.
17528         * lib/xstrtol.c: Likewise.
17529         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
17530         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
17531
17532         * lib/addext.c (addext): Use assignment rather than cast, to avoid
17533         warnings on some platforms.
17534
17535         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
17536         arbitrarily.
17537
17538 2003-05-26  Jim Meyering  <jim@meyering.net>
17539
17540         Merge in a change from coreutils:
17541         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
17542         that is guaranteed to be `no'.  Use `no_such_member' to indicate
17543         that condition, rather than `-1' which is slightly misleading.
17544         Change the name of the cache variable to have the gl_ prefix.
17545         Prompted by a patch from Richard Dawe for DJGPP.
17546
17547 2003-05-24  Karl Berry  <karl@gnu.org>
17548
17549         * config/config.guess: update from prep.
17550
17551 2003-05-22  Karl Berry  <karl@gnu.org>
17552
17553         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
17554
17555 2003-05-20  Karl Berry  <karl@gnu.org>
17556
17557         * config/config.guess: update from prep.
17558
17559 2003-05-18  Karl Berry  <karl@gnu.org>
17560
17561         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
17562         might actually be set by the user.
17563
17564         * config/depcomp, install-sh, mdate-sh: update from automake.
17565
17566 2003-05-17  Bruno Haible  <bruno@clisp.org>
17567
17568         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
17569         invalid expansion for AC_EGREP_CPP.
17570         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17571         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17572         Suggested by Akim Demaille <akim@epita.fr> in
17573         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
17574
17575 2003-05-12  Jim Meyering  <jim@meyering.net>
17576
17577         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
17578         the space-padded-by-default conversion specifiers, %e, %k, %l.
17579
17580 2003-05-12  Bruno Haible  <bruno@clisp.org>
17581
17582         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
17583         the string is longer than 4 KB.
17584
17585 2003-05-11  Karl Berry  <karl@gnu.org>
17586
17587         * config/config.{guess,sub}: update from prep.
17588
17589 2003-05-09  Bruno Haible  <bruno@clisp.org>
17590
17591         * modules/error: Add m4/strerror_r.m4 to file list.
17592
17593 2003-05-03  Bruno Haible  <bruno@clisp.org>
17594
17595         Upgrade to Unicode-4.0.
17596         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
17597         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
17598         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
17599         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
17600         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
17601         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
17602         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
17603         Change width of U+E0100..U+E01EF from 1 to 0.
17604
17605 2003-04-25  Jim Meyering  <jim@meyering.net>
17606
17607         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
17608         of type size_t, not int.
17609
17610 2003-04-25  Bruno Haible  <bruno@clisp.org>
17611
17612         * lib/copy-file.c: Include <stddef.h>, for size_t.
17613
17614 2003-04-21  Paul Eggert  <eggert@twinsun.com>
17615
17616         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
17617         code which expansion is under static control.  Patch imported from
17618         Akim Demaille's patch to Bison; see
17619         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
17620
17621 2003-04-14  Bruno Haible  <bruno@clisp.org>
17622
17623         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
17624
17625 2003-04-11  Jim Meyering  <jim@meyering.net>
17626
17627         Merge changes from Coreutils.
17628
17629         2003-03-22  Jim Meyering  <jim@meyering.net>
17630
17631         * lib/strftime.c (widen): Cast alloca return value to proper type.
17632
17633         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
17634
17635         From GNU libc.
17636         * lib/strftime.c (my_strftime): Handle very large width
17637         specifications for numeric values correctly.  Improve checks for
17638         overflow.
17639
17640         2003-01-19  Jim Meyering  <jim@meyering.net>
17641
17642         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
17643         definitions.
17644         (nl_get_alt_digit) [! defined my_strftime]: Define.
17645         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
17646         _nl_get_alt_digit and _nl_get_walt_digit.
17647
17648         * lib/strftime.c (my_strftime): Merge in locale-related changes from
17649         libc. These changes have no effect outside of _LIBC.
17650
17651 2003-04-10  Bruno Haible  <bruno@clisp.org>
17652
17653         * modules/findprog: New file.
17654         * MODULES.html.sh (func_all_modules): Add it.
17655
17656 2003-04-10  Bruno Haible  <bruno@clisp.org>
17657
17658         * m4/findprog.m4: New file.
17659         * m4/eaccess.m4: New file.
17660
17661 2003-04-10  Bruno Haible  <bruno@clisp.org>
17662
17663         * lib/findprog.h: New file, from GNU gettext.
17664         * lib/findprog.c: New file, from GNU gettext.
17665
17666 2003-04-05  Jim Meyering  <jim@meyering.net>
17667
17668         Merge changes from Coreutils.
17669
17670         * lib/exclude.h (PARAMS): Remove definition and uses.
17671         * lib/exclude.c: Remove uses of `PARAMS'.
17672
17673         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
17674         Add test-cases for DOS filenames. Declare program_name.
17675         (main): Set up program_name.  Patch by Rich Dawe.
17676
17677         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
17678         error from mntctl.
17679         Use mntctl's return value to drive the entry-processing loop, since
17680         we can't rely on the value of the vmt_length member in the last
17681         entry.  On some systems doing so could result in exhausting
17682         virtual memory.  Based in part on a patch from Mike Jetzer.
17683
17684 2003-04-04  Bruno Haible  <bruno@clisp.org>
17685
17686         * modules/linebreak: New file.
17687         * MODULES.html.sh (func_all_modules): Add it.
17688
17689 2003-04-04  Bruno Haible  <bruno@clisp.org>
17690
17691         * m4/linebreak.m4: New file.
17692
17693 2003-04-04  Bruno Haible  <bruno@clisp.org>
17694
17695         * lib/linebreak.h: New file, from GNU gettext.
17696         * lib/linebreak.c: New file, from GNU gettext with slight
17697         modifications.
17698         * lib/lbrkprop.h: New file, from GNU gettext.
17699
17700 2003-04-03  Bruno Haible  <bruno@clisp.org>
17701
17702         * modules/utf8-ucs4: New file.
17703         * modules/utf16-ucs4: New file.
17704         * modules/ucs4-utf8: New file.
17705         * modules/ucs4-utf16: New file.
17706         * MODULES.html.sh (func_all_modules): Add them.
17707
17708 2003-04-03  Bruno Haible  <bruno@clisp.org>
17709
17710         * m4/utf-ucs4.m4: New file.
17711         * m4/ucs4-utf.m4: New file.
17712
17713 2003-04-03  Bruno Haible  <bruno@clisp.org>
17714
17715         * lib/utf8-ucs4.h: New file, from GNU gettext.
17716         * lib/utf16-ucs4.h: New file, from GNU gettext.
17717         * lib/ucs4-utf8.h: New file, from GNU gettext.
17718         * lib/ucs4-utf16.h: New file, from GNU gettext.
17719
17720 2003-04-02  Bruno Haible  <bruno@clisp.org>
17721
17722         * modules/binary-io: New file.
17723         * MODULES.html.sh (func_all_modules): Add it.
17724
17725 2003-04-02  Bruno Haible  <bruno@clisp.org>
17726
17727         * lib/binary-io.h: New file, from GNU gettext.
17728
17729 2003-04-01  Bruno Haible  <bruno@clisp.org>
17730
17731         * modules/pathname: New file.
17732         * MODULES.html.sh (func_all_modules): Add it.
17733
17734 2003-04-01  Bruno Haible  <bruno@clisp.org>
17735
17736         * lib/pathname.h: New file, from GNU gettext.
17737         * lib/concatpath.c: New file, from GNU gettext.
17738
17739 2003-03-30  Bruno Haible  <bruno@clisp.org>
17740
17741         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
17742
17743 2003-03-30  Bruno Haible  <bruno@clisp.org>
17744
17745         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
17746         function chown() doesn't exist.
17747
17748 2003-03-28  Bruno Haible  <bruno@clisp.org>
17749
17750         * modules/copy-file: New file.
17751         * MODULES.html.sh (func_all_modules): Add it.
17752
17753 2003-03-28  Bruno Haible  <bruno@clisp.org>
17754
17755         * m4/copy-file.m4: New file.
17756
17757 2003-03-28  Bruno Haible  <bruno@clisp.org>
17758
17759         * lib/copy-file.h: New file, from GNU gettext.
17760         * lib/copy-file.c: New file, from GNU gettext.
17761
17762 2003-03-18  Jim Meyering  <jim@meyering.net>
17763
17764         * lib/quote.c (quote_n): Fix typo in comment.
17765
17766 2003-03-18  Bruno Haible  <bruno@clisp.org>
17767
17768         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
17769         checking.
17770         * m4/onceonly_2_57.m4: Likewise.
17771
17772 2003-03-17  Bruno Haible  <bruno@clisp.org>
17773
17774         * m4/onceonly.m4: Require autoconf 2.54 or newer.
17775         (m4_quote): Remove macro.
17776         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
17777
17778 2003-03-14  Jim Meyering  <jim@meyering.net>
17779
17780         Merge changes from Coreutils.
17781         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
17782         to be const, in order to avoid warnings.
17783         (obstack_room): Likewise.
17784         (obstack_empty_p): Likewise.
17785
17786 2003-03-14  Bruno Haible  <bruno@clisp.org>
17787
17788         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
17789         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
17790
17791 2003-03-13  Paul Eggert  <eggert@twinsun.com>
17792
17793         Merge changes from Bison.
17794         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
17795         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
17796         when compiling Bison 1.875's `bitset bset = obstack_alloc
17797         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
17798         * lib/hash.c: Include <stdbool.h> unconditionally.
17799
17800 2003-03-13  Paul Eggert  <eggert@twinsun.com>
17801
17802         * m4/onceonly.m4 (m4_quote): New macro.
17803         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
17804         Quote AC_FOREACH variable-expansions properly.
17805
17806 2003-03-13  Paul Eggert  <eggert@twinsun.com>
17807
17808         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
17809
17810 2003-03-09  Paul Eggert  <eggert@twinsun.com>
17811
17812         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
17813         Reported by Bruce Becker; see:
17814         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
17815
17816 2003-03-03  Paul Eggert  <eggert@twinsun.com>
17817             Bruno Haible  <bruno@clisp.org>
17818
17819         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
17820         Reported by John Hughes, see
17821         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
17822
17823 2003-02-20  Bruno Haible  <bruno@clisp.org>
17824
17825         * MODULES.html.sh (func_all_modules): Add poll.
17826
17827 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
17828
17829         * modules/poll: New file.
17830
17831 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
17832
17833         * lib/poll_.h: New file.
17834         * lib/poll.c: New file.
17835
17836 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
17837
17838         * m4/poll.m4: New file.
17839
17840 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
17841
17842         * modules/mathl: New file.
17843
17844 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
17845
17846         * lib/mathl.h: New file.
17847         * lib/acosl.c: New file.
17848         * lib/asinl.c: New file.
17849         * lib/atanl.c: New file.
17850         * lib/ceill.c: New file.
17851         * lib/cosl.c: New file.
17852         * lib/expl.c: New file.
17853         * lib/floorl.c: New file.
17854         * lib/frexpl.c: New file.
17855         * lib/ldexpl.c: New file.
17856         * lib/logl.c: New file.
17857         * lib/sincosl.c: New file.
17858         * lib/sinl.c: New file.
17859         * lib/sqrtl.c: New file.
17860         * lib/tanl.c: New file.
17861         * lib/trigl.c: New file.
17862         * lib/trigl.h: New file.
17863
17864 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
17865
17866         * m4/mathl.m4: New file.
17867
17868 2003-02-18  Bruno Haible  <bruno@clisp.org>
17869
17870         * MODULES.html.sh (func_all_modules): Add mathl.
17871
17872 2003-02-17  Bruno Haible  <bruno@clisp.org>
17873
17874         * modules/mkdtemp: New module.
17875         * MODULES.html.sh (func_all_modules): Add it.
17876
17877 2003-02-17  Bruno Haible  <bruno@clisp.org>
17878
17879         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
17880
17881 2003-02-17  Bruno Haible  <bruno@clisp.org>
17882
17883         * lib/mkdtemp.h: New file, from GNU gettext.
17884         * lib/mkdtemp.c: New file, from GNU gettext.
17885
17886 2003-02-02  Jim Meyering  <jim@meyering.net>
17887
17888         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
17889         e.g. glibc-2.2.93.
17890
17891 2003-01-31  Bruno Haible  <bruno@clisp.org>
17892
17893         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
17894         'rpl_rename'.
17895         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
17896         'rpl_strnlen'.
17897         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
17898         'rpl_strtod'.
17899         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
17900         'rpl_utime'.
17901
17902 2003-01-31  Bruno Haible  <bruno@clisp.org>
17903
17904         * lib/rename.c: #undef rename before defining rpl_rename.
17905         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
17906
17907 2003-01-30  Bruno Haible  <bruno@clisp.org>
17908
17909         * modules/vasnprintf, modules/vasprintf: New modules.
17910         * MODULES.html.sh (func_all_modules): Add them.
17911
17912 2003-01-30  Bruno Haible  <bruno@clisp.org>
17913
17914         * m4/signed.m4: New file, from GNU gettext.
17915         * m4/longdouble.m4: New file, from GNU gettext.
17916         * m4/wchar_t.m4: New file, from GNU gettext.
17917         * m4/wint_t.m4: New file, from GNU gettext.
17918         * m4/vasnprintf.m4: New file.
17919         * m4/vasprintf.m4: New file.
17920
17921 2003-01-30  Bruno Haible  <bruno@clisp.org>
17922
17923         * lib/printf-args.h: New file, from GNU gettext.
17924         * lib/printf-args.c: New file, from GNU gettext.
17925         * lib/printf-parse.h: New file, from GNU gettext.
17926         * lib/printf-parse.c: New file, from GNU gettext.
17927         * lib/vasnprintf.h: New file, from GNU gettext.
17928         * lib/vasnprintf.c: New file, from GNU gettext.
17929         * lib/asnprintf.c: New file, from GNU gettext.
17930         * lib/vasprintf.h: New file, from GNU gettext with modifications.
17931         * lib/vasprintf.c: New file, from GNU gettext.
17932         * lib/asprintf.c: New file, from GNU gettext.
17933
17934 2003-01-29  Bruno Haible  <bruno@clisp.org>
17935
17936         * modules/stpncpy: New module.
17937         * MODULES.html.sh (func_all_modules): Add it.
17938
17939 2003-01-29  Bruno Haible  <bruno@clisp.org>
17940
17941         * m4/stpncpy.m4: New file.
17942
17943 2003-01-29  Bruno Haible  <bruno@clisp.org>
17944
17945         * lib/stpncpy.h: New file, from GNU gettext with modifications.
17946         * lib/stpncpy.c: New file, from GNU gettext with modifications.
17947
17948 2003-01-28  Bruno Haible  <bruno@clisp.org>
17949
17950         * modules/c-ctype: New module.
17951         * MODULES.html.sh (func_all_modules): Add it.
17952
17953 2003-01-28  Bruno Haible  <bruno@clisp.org>
17954
17955         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
17956         Paul Eggert.
17957         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
17958         Paul Eggert.
17959
17960 2003-01-27  Bruno Haible  <bruno@clisp.org>
17961
17962         * modules/xsetenv: New module.
17963         * MODULES.html.sh (func_all_modules): Add it.
17964
17965 2003-01-27  Bruno Haible  <bruno@clisp.org>
17966
17967         * lib/xsetenv.h: New file, from GNU gettext.
17968         * lib/xsetenv.c: New file, from GNU gettext.
17969
17970 2003-01-23  Jim Meyering  <jim@meyering.net>
17971
17972         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
17973         from working on systems without dirfd (at least Irix and OSF1/Tru64).
17974
17975 2003-01-23  Bruno Haible  <bruno@clisp.org>
17976
17977         * modules/minmax: New module.
17978         * MODULES.html.sh (func_all_modules): Add it.
17979
17980 2003-01-23  Bruno Haible  <bruno@clisp.org>
17981
17982         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
17983         Eggert.
17984
17985 2003-01-22  Bruno Haible  <bruno@clisp.org>
17986
17987         * modules/exit: New module.
17988         * MODULES.html.sh (func_all_modules): Add it.
17989
17990 2003-01-22  Bruno Haible  <bruno@clisp.org>
17991
17992         * lib/exit.h: New file, from GNU gettext.
17993
17994 2003-01-19  Bruno Haible  <bruno@clisp.org>
17995
17996         * gnulib-tool: Recognize option --extract-maintainer.
17997         (func_get_maintainer): New function.
17998         * modules/*: Add Maintainer entry.
17999
18000 2003-01-16  Jim Meyering  <jim@meyering.net>
18001
18002         * m4/regex.m4: The `regex' struct is both input and output.
18003         Initialize it before each use.  Patch by Tim Waugh.
18004
18005 2003-01-16  Bruno Haible  <bruno@clisp.org>
18006
18007         * MODULES.html.sh: Add a table of contents. Add the module name as
18008         leftmost column. Add hyperlinks.
18009
18010 2003-01-15  Bruno Haible  <bruno@clisp.org>
18011
18012         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
18013
18014 2003-01-15  Bruno Haible  <bruno@clisp.org>
18015
18016         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
18017         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
18018         suffix.
18019
18020 2003-01-15  Bruno Haible  <bruno@clisp.org>
18021
18022         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
18023
18024 2003-01-15  Bruno Haible  <bruno@clisp.org>
18025
18026         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
18027         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
18028
18029 2003-01-14  Jim Meyering  <jim@meyering.net>
18030
18031         * lib/same.c (same_name): Tweak a comment.
18032
18033 2003-01-14  Bruno Haible  <bruno@clisp.org>
18034
18035         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
18036         when a string comparison is sufficient.
18037
18038 2003-01-14  Bruno Haible  <bruno@clisp.org>
18039
18040         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
18041         'unsigned int'.
18042
18043 2003-01-14  Bruno Haible  <bruno@clisp.org>
18044
18045         * lib/hash-pjw.c: Add comment about low quality of this function.
18046
18047 2003-01-13  Bruno Haible  <bruno@clisp.org>
18048
18049         * modules/stpcpy: Distribute lib/stpcpy.h.
18050         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
18051
18052 2003-01-13  Bruno Haible  <bruno@clisp.org>
18053
18054         * modules/*: Add a description.
18055         * modules/strpbrk: Fix Makefile.am snippet.
18056         * modules/strtoimax: Fix dependencies.
18057         * modules/strtoumax: Likewise.
18058
18059 2003-01-13  Bruno Haible  <bruno@clisp.org>
18060
18061         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
18062         * modules/alloca (Makefile.am): All object files depend on alloca.h.
18063         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
18064
18065 2003-01-13  Bruno Haible  <bruno@clisp.org>
18066
18067         * gnulib-tool (func_create_testdir): Store config/* files in the main
18068         directory.
18069         * config.rpath: Move to ...
18070         * config/config.rpath: ... here.
18071         * modules/gettext: Contains config/config.rpath, not config.rpath.
18072         * modules/iconv: Likewise.
18073
18074 2003-01-12  Paul Eggert  <eggert@twinsun.com>
18075
18076         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
18077         to avoid collisions with libcurses and libreadline.
18078
18079         * m4/getstr.m4: Remove.
18080         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
18081
18082 2003-01-12  Paul Eggert  <eggert@twinsun.com>
18083
18084         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
18085         to avoid collisions with libcurses and libreadline.
18086
18087         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
18088         * lib/getstr.h, getstr.c: Remove.
18089         * lib/getline.c: Include "getline.h", to check interface.
18090         Move body of old getstr.c here: this defines MIN_CHUNK and
18091         declares getdelim2, which is renamed from getstr.
18092         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
18093
18094         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
18095         All uses changed.
18096         * lib/linebuffer.h: Likewise.
18097         (readline): Remove backward-compatibility macro.
18098
18099 2003-01-12  Paul Eggert  <eggert@twinsun.com>
18100
18101         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
18102         to avoid collisions with libcurses and libreadline.
18103         * getstr: Remove.
18104         * MODULES.html.sh: Remove getstr.
18105         * modules/getline: Depend on unlocked-io, not getstr.
18106
18107 2003-01-12  Jim Meyering  <jim@meyering.net>
18108
18109         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
18110
18111 2003-01-10  Bruno Haible  <bruno@clisp.org>
18112
18113         * modules/alloca: Change Makefile.am requirements. Simplify Include
18114         requirements. Add lib/alloca_.h to file list.
18115
18116 2003-01-10  Bruno Haible  <bruno@clisp.org>
18117
18118         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
18119
18120 2003-01-10  Bruno Haible  <bruno@clisp.org>
18121
18122         * lib/alloca_.h: New file.
18123         * lib/getdate.y: Unconditionally include alloca.h.
18124         * lib/makepath.c: Likewise.
18125         * lib/setenv.c: Likewise.
18126         * lib/userspec.c: Likewise.
18127
18128 2003-01-09  Karl Berry  <karl@gnu.org>
18129
18130         * MODULES.html.sh: include `dirname $0` in PATH, to find
18131         gnulib-tool.
18132
18133 2003-01-09  Bruno Haible  <bruno@clisp.org>
18134
18135         * modules/stdbool: Change configure.ac, Makefile.am requirements.
18136         Simplify Include requirements. Add lib/stdbool.h.in to file list.
18137
18138 2003-01-09  Bruno Haible  <bruno@clisp.org>
18139
18140         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
18141
18142 2003-01-09  Bruno Haible  <bruno@clisp.org>
18143
18144         * lib/stdbool.h.in: New file.
18145
18146 2003-01-09  Bruno Haible  <bruno@clisp.org>
18147
18148         * gnulib-tool (func_all_modules): Ignore files ending in ~.
18149         * MODULES.html.sh: Likewise.
18150
18151 2003-01-08  Jim Meyering  <jim@meyering.net>
18152
18153         * lib/full-write.c: Undefine and define-away `const' after inclusion
18154         of errno.h, not before.  Suggestion from Bruno Haible.
18155
18156 2003-01-08  Bruno Haible  <bruno@clisp.org>
18157
18158         * modules/full-read: Depend on full-write.
18159
18160 2003-01-08  Bruno Haible  <bruno@clisp.org>
18161
18162         * lib/safe-read.c: Include specification header first, to ensure its
18163         selfcontainedness.
18164         * lib/full-write.c: Likewise.
18165
18166 2003-01-07  Jim Meyering  <jim@meyering.net>
18167
18168         * lib/full-write.c: Rework so that it may serve to define full_read,
18169         too.
18170         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
18171
18172 2003-01-07  Bruno Haible  <bruno@clisp.org>
18173
18174         * lib/strtoimax.c: Include <stdint.h> as an alternative to
18175         <inttypes.h>.
18176         * lib/xstrtol.h: Likewise.
18177         * lib/xstrtoimax.c: Likewise.
18178         * lib/xstrtoumax.c: Likewise.
18179         * lib/human.h: Likewise.
18180
18181         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
18182         on systems that have <inttypes.h> but not <stdint.h>.
18183
18184 2003-01-07  Bruno Haible  <bruno@clisp.org>
18185
18186         * MODULES.html.sh: Add copyright notice.
18187         (missed_files): Omit CVS directory entries.
18188         (func_module): Make it work with sed-3.02.
18189         * MODULES.txt: Remove file.
18190
18191 2003-01-06  Jim Meyering  <jim@meyering.net>
18192
18193         * lib/version-etc.c: Update year in translatable copyright string.
18194
18195 2003-01-03  Karl Berry  <karl@gnu.org>
18196
18197         * config/config.{guess,sub}: update from prep.
18198
18199 2003-01-02  Karl Berry  <karl@gnu.org>
18200
18201         * doc/COPYING.DOC: belatedly updated to 1.2.
18202
18203 2003-01-01  Karl Berry  <karl@gnu.org>
18204
18205         * gnulib-tool (func_verify_module): report module name $module in
18206         error message, not $1.
18207         * gnulib-tool (create-testdir): don't complain if destdir couldn't
18208         be created, only if it doesn't exist.
18209         * gnulib-tool (last_checkin_date): don't expand the $Date here.
18210
18211 2002-12-31  Paul Eggert  <eggert@twinsun.com>
18212
18213         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
18214
18215 2002-12-31  Paul Eggert  <eggert@twinsun.com>
18216
18217         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
18218         memcmp if strcoll doesn't work.
18219
18220 2002-12-31  Bruno Haible  <bruno@clisp.org>
18221
18222         * lib/utime.c (utime_null): No need to call ftruncate if the file was
18223         nonempty.
18224
18225 2002-12-31  Bruno Haible  <bruno@clisp.org>
18226
18227         * lib/memcoll.c (STRCOLL): New macro.
18228         (memcoll): Use it.
18229
18230 2002-12-31  Bruno Haible  <bruno@clisp.org>
18231
18232         * lib/localcharset.h: New file.
18233         * lib/localcharset.c: Include it.
18234         * lib/unicodeio.c: Likewise.
18235
18236 2002-12-31  Bruno Haible  <bruno@clisp.org>
18237
18238         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
18239         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
18240
18241 2002-12-31  Bruno Haible  <bruno@clisp.org>
18242
18243         * lib/getline.h: Include <stddef.h>, for size_t.
18244
18245         * lib/unicodeio.h: Include <stddef.h>, for size_t.
18246         * lib/unicodeio.c: Don't include <stddef.h>.
18247
18248 2002-12-31  Bruno Haible  <bruno@clisp.org>
18249
18250         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
18251         HAVE_TM_ZONE.
18252
18253 2002-12-24  Karl Berry  <karl@gnu.org>
18254
18255         * config/config.guess: update from prep.
18256
18257 2002-12-24  Bruno Haible  <bruno@clisp.org>
18258
18259         General infrasructure.
18260         * m4/README: Rewritten.
18261         * m4/onceonly.m4: New file.
18262         * m4/onceonly_2_57.m4: New file.
18263
18264         Module atexit.
18265         * m4/atexit.m4: New file.
18266
18267         Module strtod.
18268         * m4/strtod.m4: New file.
18269
18270         Module strtol.
18271         * m4/strtol.m4: New file.
18272
18273         Module strtoul.
18274         * m4/strtoul.m4: New file.
18275
18276         Module memchr.
18277         * m4/memchr.m4: New file.
18278
18279         Module memcmp.
18280         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
18281         (jm_FUNC_MEMCMP): Invoke it.
18282
18283         Module memcpy.
18284         * m4/memcpy.m4: New file.
18285
18286         Module memmove.
18287         * m4/memmove.m4: New file.
18288
18289         Module memset.
18290         * m4/memset.m4: New file.
18291
18292         Module strcspn.
18293         * m4/strcspn.m4: New file.
18294
18295         Module strpbrk.
18296         * m4/strpbrk.m4: New file.
18297
18298         Module strstr.
18299         * m4/strstr.m4: New file.
18300
18301         Module strerror.
18302         * m4/strerror.m4: New file.
18303
18304         Module mktime.
18305         * m4/mktime.m4: Renamed from jm-mktime.m4.
18306         (gl_PREREQ_MKTIME): New macro.
18307         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
18308
18309         Module malloc.
18310         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
18311         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
18312         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
18313
18314         Module realloc.
18315         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
18316         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
18317         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
18318
18319         Module strftime.
18320         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
18321         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
18322         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
18323         gl_TM_GMTOFF.
18324         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
18325
18326         Module xalloc.
18327         * m4/xalloc.m4: New file.
18328
18329         Module alloca.
18330         * m4/alloca.m4: New file.
18331
18332         Module putenv.
18333         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
18334         (jm_FUNC_PUTENV): Invoke it.
18335
18336         Module setenv.
18337         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
18338         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
18339         when invoked twice.
18340         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
18341         gt_FUNC_SETENV.
18342
18343         Module memrchr.
18344         * m4/memrchr.m4: New file.
18345
18346         Module stpcpy.
18347         * m4/stpcpy.m4: New file.
18348
18349         Module strcase.
18350         * m4/strcase.m4: New file.
18351
18352         Module strdup.
18353         * m4/strdup.m4: New file.
18354
18355         Module strnlen.
18356         * m4/strnlen.m4: New file.
18357
18358         Module strndup.
18359         * m4/strndup.m4: New file.
18360
18361         Module xstrtod.
18362         * m4/xstrtod.m4: New file.
18363
18364         Module xstrtol.
18365         * m4/xstrtol.m4: New file.
18366
18367         Module getdate.
18368         * m4/getdate.m4: New file.
18369
18370         Module unlocked-io.
18371         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
18372         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
18373         * m4/jm-glibc-io.m4n: Remove file.
18374
18375         Module long-options.
18376         * m4/long-options.m4: New file.
18377
18378         Module md5.
18379         * m4/md5.m4: New file.
18380
18381         Module sha.
18382         * m4/sha.m4: New file.
18383
18384         Module getstr.
18385         * m4/getstr.m4: New file.
18386
18387         Module getline.
18388         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
18389         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
18390         <sys/types.h>, for size_t. Use the function name gnu_getline, not
18391         simply getline. Infoke gl_PREREQ_GETLINE.
18392
18393         Module obstack.
18394         * m4/obstack.m4: New file.
18395
18396         Module hash.
18397         * m4/hash.m4: New file.
18398
18399         Module readtokens.
18400         * m4/readtokens.m4: New file.
18401
18402         Module strverscmp.
18403         * m4/strverscmp.m4: New file.
18404
18405         Module stdbool.
18406         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
18407         OSF/1.
18408
18409         Module strtoll.
18410         * m4/strtoll.m4: New file.
18411
18412         Module strtoull.
18413         * m4/strtoull.m4: New file.
18414
18415         Module strtoimax.
18416         * m4/strtoimax.m4: New file.
18417
18418         Module strtoumax.
18419         * m4/strtoumax.m4: New file.
18420
18421         Module xstrtoimax.
18422         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
18423         jm_AC_PREREQ_XSTRTOIMAX.
18424         Moved the strtol prerequisites to strtol.m4.
18425         Moved the strtoll prerequisites to strtoll.m4.
18426         Moved the strtoimax prerequisites to strtoimax.m4.
18427
18428         Module xstrtoumax.
18429         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
18430         jm_AC_PREREQ_XSTRTOUMAX.
18431         Moved the strtoul prerequisites to strtoul.m4.
18432         Moved the strtoull prerequisites to strtoull.m4.
18433         Moved the strtoumax prerequisites to strtoumax.m4.
18434
18435         Module chown.
18436         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
18437         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
18438
18439         Module dup2.
18440         * m4/dup2.m4: New file.
18441
18442         Module ftruncate.
18443         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
18444         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
18445
18446         Module getgroups.
18447         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
18448         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
18449
18450         Module gettimeofday.
18451         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
18452         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
18453         gl_PREREQ_GETTIMEOFDAY.
18454
18455         Module mkdir.
18456         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
18457         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
18458
18459         Module mkstemp.
18460         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
18461         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
18462         jm_AC_TYPE_UINTMAX_T.
18463         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
18464
18465         Module stat.
18466         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
18467         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
18468
18469         Module lstat.
18470         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
18471         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
18472
18473         Module timespec.
18474         * m4/timespec.m4 (gl_TIMESPEC): New macro.
18475         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
18476         * m4/st_mtim.m4: Indentation.
18477
18478         Module nanosleep.
18479         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
18480         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
18481         gl_PREREQ_NANOSLEEP.
18482
18483         Module regex.
18484         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
18485         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
18486         (gl_REGEX): New macro.
18487
18488         Module rename.
18489         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
18490         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
18491
18492         Module rmdir.
18493         * m4/rmdir.m4: New file.
18494
18495         Module utime.
18496         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
18497         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
18498         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
18499
18500         Module dirname.
18501         * m4/dirname.m4: New file.
18502
18503         Module getopt.
18504         * m4/getopt.m4: New file.
18505
18506         Module unistd-safer.
18507         * m4/unistd-safer.m4: New file.
18508
18509         Module fnmatch.
18510         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
18511         declaration.
18512         (gl_PREREQ_FNMATCH_EXTRA): New macro.
18513         (gl_FUNC_FNMATCH_POSIX): New macro.
18514         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
18515         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
18516         simply fnmatch.
18517
18518         Module exclude.
18519         * m4/exclude.m4: New file.
18520
18521         Module human.
18522         * m4/human.m4: New file.
18523
18524         Module acl.
18525         * m4/acl.m4: Nop.
18526
18527         Module backupfile.
18528         * m4/backupfile.m4: New file.
18529         * m4/d-ino.m4: Indentation.
18530
18531         Module fsusage.
18532         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
18533         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
18534         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
18535
18536         Module dirfd.
18537         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
18538         requirements.
18539
18540         Module euidaccess.
18541         * m4/euidaccess.m4: New file.
18542
18543         Module file-type.
18544         * m4/file-type.m4: New file.
18545
18546         Module fileblocks.
18547         * m4/fileblocks.m4: New file.
18548
18549         Module filemode.
18550         * m4/filemode.m4: New file.
18551
18552         Module isdir.
18553         * m4/isdir.m4: New file.
18554
18555         Module lchown.
18556         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
18557         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
18558
18559         Module makepath.
18560         * m4/makepath.m4: New file.
18561
18562         Module modechange.
18563         * m4/modechange.m4: New file.
18564
18565         Module mountlist.
18566         * m4/mountlist.m4: New file.
18567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
18568         Indentation.
18569
18570         Module path-concat.
18571         * m4/path-concat.m4: New file.
18572
18573         Module pathmax.
18574         * m4/pathmax.m4: New file.
18575
18576         Module same.
18577         * m4/same.m4: New file.
18578
18579         Module save-cwd.
18580         * m4/save-cwd.m4: New file.
18581
18582         Module savedir.
18583         * m4/savedir.m4: New file.
18584
18585         Module xgetcwd.
18586         * m4/xgetcwd.m4: New file.
18587         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
18588
18589         Module xreadlink.
18590         * m4/xreadlink.m4: New file.
18591
18592         Module safe-read.
18593         * m4/safe-read.m4: New file.
18594
18595         Module safe-write.
18596         * m4/safe-write.m4: New file.
18597
18598         Module closeout.
18599         * m4/closeout.m4: New file.
18600
18601         Module stdio-safer.
18602         * m4/stdio-safer.m4: New file.
18603
18604         Module getpass.
18605         * m4/getpass.m4: New file.
18606
18607         Module getugroups.
18608         * m4/getugroups.m4: New file.
18609
18610         Module group-member.
18611         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
18612         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
18613
18614         Module idcache.
18615         * m4/idcache.m4: New file.
18616
18617         Module userspec.
18618         * m4/userspec.m4: New file.
18619
18620         Module gettime.
18621         * m4/clock_time.m4: New file.
18622         * m4/gettime.m4: New file.
18623
18624         Module settime.
18625         * m4/settime.m4: New file.
18626
18627         Module posixtm.
18628         * m4/posixtm.m4: New file.
18629
18630         Module gethostname.
18631         * m4/gethostname.m4: New file.
18632
18633         Module canon-host.
18634         * m4/canon-host.m4: New file.
18635
18636         Module gettext.
18637         * m4/codeset.m4: New file, from gettext-0.11.5.
18638         * m4/gettext.m4: New file, from gettext-0.11.5.
18639         * m4/glibc21.m4: New file, from gettext-0.11.5.
18640         * m4/iconv.m4: New file, from gettext-0.11.5.
18641         * m4/intdiv0.m4: New file, from gettext-0.11.5.
18642         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
18643         * m4/inttypes.m4: New file, from gettext-0.11.5.
18644         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
18645         * m4/isc-posix.m4: New file, from gettext-0.11.5.
18646         * m4/lcmessage.m4: New file, from gettext-0.11.5.
18647         * m4/lib-ld.m4: New file, from gettext-0.11.5.
18648         * m4/lib-link.m4: New file, from gettext-0.11.5.
18649         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
18650         * m4/progtest.m4: New file, from gettext-0.11.5.
18651         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
18652         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
18653         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
18654
18655         Module localcharset.
18656         * m4/localcharset.m4: New file.
18657
18658         Module hard-locale.
18659         * m4/hard-locale.m4: New file.
18660
18661         Module mbswidth.
18662         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
18663         onceonly macros.
18664         * m4/mbrtowc.m4: Add comment.
18665
18666         Module memcasecmp.
18667         * m4/memcasecmp.m4: New file.
18668
18669         Module memcoll.
18670         * m4/memcoll.m4: New file.
18671
18672         Module unicodeio.
18673         * m4/unicodeio.m4: New file.
18674
18675         Module rpmatch.
18676         * m4/rpmatch.m4: New file.
18677
18678         Module yesno.
18679         * m4/yesno.m4: New file.
18680
18681         Module exitfail.
18682         * m4/exitfail.m4: New file.
18683
18684         Module c-stack.
18685         * m4/c-stack.m4 (gl_C_STACK): New macro.
18686         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
18687
18688         Module error.
18689         * m4/error.m4 (gl_ERROR): New macro.
18690         (jm_PREREQ_ERROR): Use onceonly macros.
18691
18692         Module fatal.
18693         * m4/fatal.m4: New file.
18694
18695         Module getloadavg.
18696         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
18697         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
18698
18699         Module getpagesize.
18700         * m4/getpagesize.m4: New file.
18701
18702         Module getusershell.
18703         * m4/getusershell.m4: New file.
18704
18705         Module physmem.
18706         * m4/physmem.m4: New file.
18707
18708         Module posixver.
18709         * m4/posixver.m4: New file.
18710
18711         Module quotearg.
18712         * m4/quotearg.m4: New file.
18713
18714         Module quote.
18715         * m4/quote.m4: New file.
18716
18717         Module readutmp.
18718         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
18719
18720         Module sig2str.
18721         * m4/sig2str.m4: New file.
18722
18723         Other.
18724         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
18725         ulonglong.m4.
18726         * m4/intmax_t.m4: New file.
18727         * m4/d-type.m4: Indentation.
18728         * m4/jm-macros.m4: Update.
18729         * m4/prereq.m4 (jm_PREREQ): Update.
18730         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
18731         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
18732         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
18733         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
18734         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
18735         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
18736         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
18737         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
18738         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
18739         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
18740         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
18741         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
18742         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
18743         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
18744         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
18745         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
18746         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
18747         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
18748         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
18749
18750 2002-12-24  Bruno Haible  <bruno@clisp.org>
18751
18752         * MODULES.txt: Update according to m4/ changes.
18753
18754         Module gettext.
18755         * config.rpath: New file, from gettext-0.11.5.
18756
18757         * modules/*: New module descriptions.
18758         * gnulib-tool: New file.
18759         * MODULES.html.sh: New file.
18760
18761 2002-12-21  Karl Berry  <karl@gnu.org>
18762
18763         * doc/fdl.texi: update to version 1.2.
18764
18765 2002-12-19  Karl Berry  <karl@gnu.org>
18766
18767         * config/config.guess: update from prep.
18768
18769 2002-12-18  Bruno Haible  <bruno@clisp.org>
18770
18771         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
18772         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
18773
18774 2002-12-17  Bruno Haible  <bruno@clisp.org>
18775
18776         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
18777         stdlib.h, string.h.
18778
18779 2002-12-17  Bruno Haible  <bruno@clisp.org>
18780
18781         * lib/canon-host.c (strdup): Remove unused declaration.
18782
18783         * lib/fsusage.c: Include full_read.h.
18784         (get_fs_usage): Use full_read instead of safe_read.
18785
18786         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
18787
18788 2002-12-12  Karl Berry  <karl@gnu.org>
18789
18790         * config/config.guess: update from prep.
18791
18792 2002-12-11  Bruno Haible  <bruno@clisp.org>
18793
18794         * m4/setenv.m4: New file, from gettext-0.11.5.
18795
18796 2002-12-11  Bruno Haible  <bruno@clisp.org>
18797
18798         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
18799         not unsetenv().
18800         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
18801         modifications:
18802
18803         2002-12-11  Bruno Haible  <bruno@clisp.org>
18804
18805                 * setenv.c (alloca): Fall back to malloc.
18806                 (freea): New macro.
18807                 (setenv): Use freea() to free memory allocated with alloca().
18808
18809         2002-11-13  Bruno Haible  <bruno@clisp.org>
18810
18811                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
18812                 function declarations.
18813                 * unsetenv.c (unsetenv): Likewise.
18814
18815         2002-03-04  Bruno Haible  <bruno@clisp.org>
18816
18817                 Portability to AIX 4.3.3.
18818                 * unsetenv.c: New file, extracted from setenv.c.
18819                 * setenv.c: Move the unsetenv() function to unsetenv.c.
18820
18821         2001-12-20  Bruno Haible  <bruno@clisp.org>
18822
18823                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
18824                 use malloc instead. For SunOS 4.
18825
18826         2001-12-11  Bruno Haible  <bruno@clisp.org>
18827
18828                 * setenv.c: Declare alloca.
18829                 (compar_fn_t): New typedef.
18830                 (KNOWN_VALUE, STORE_VALUE): Use it.
18831
18832         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
18833         setenv.h.
18834
18835 2002-12-10  Paul Eggert  <eggert@twinsun.com>
18836
18837         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
18838         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
18839         Choose values that are less likely to collide with system fnmatch
18840         options.
18841         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
18842         defined (e.g., a pure POSIX system).
18843         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
18844         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
18845
18846 2002-12-06  Paul Eggert  <eggert@twinsun.com>
18847
18848         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
18849         a pain in practice to deal with generated m4 files.  This change
18850         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
18851
18852         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
18853         and jm-glibc-io.m4, as they are no longer a special case.
18854         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
18855         kludge and the auto-generation stuff.  Check only whether the
18856         functions are declared, not whether they exist, since older hosts
18857         that don't declare the functions can't use the optimization anyway.
18858
18859 2002-12-06  Jim Meyering  <jim@meyering.net>
18860
18861         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
18862
18863         Merge in changes from libc's misc/error.c, in preparation
18864         for the merge of gnulib's changes back into libc.
18865
18866         * lib/error.c (_): Define only if not already defined.
18867         Move definition to follow all #include directives.
18868         Include unlocked-io.h only if !_LIBC.
18869         [_LIBC]: Include <libio/libioP.h>.
18870         [USE_IN_LIBIO]: Include <libio/iolibio.h>
18871         (fflush): Tweak definition to use INTUSE.
18872         (putc): Define.
18873
18874 2002-12-05  Paul Eggert  <eggert@twinsun.com>
18875
18876         * lib/alloca.c [defined emacs]: Include "lisp.h".
18877         (xalloc_die) [defined emacs]: New macro.
18878         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
18879         [! defined emacs]: Include <xalloc.h>.
18880         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
18881         (pointer): Typedef to POINTER_TYPE *.
18882         (malloc): Remove decl; we now always use xmalloc.
18883         (alloca): Use old-style definition, since Emacs needs this.
18884         Check for arithmetic overflow when computing combined size.
18885
18886 2002-12-04  Paul Eggert  <eggert@twinsun.com>
18887
18888         Do not generate unlocked-io.h automatically, since it's easier to
18889         maintain it by hand.
18890
18891         * lib/unlocked-io.h: New file, from GNU diffutils,
18892         but with proper copyright notice and attribution.
18893         * lib/gen-uio: Remove.
18894         * lib/Makefile.am: Add copyright notice.
18895         (libfetish_a_SOURCES): Add unlocked-io.h.
18896         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
18897         (DISTCLEANFILES, io_functions): Remove macros.
18898         (EXTRA_DIST): Remove gen_uio.
18899         (unlocked-io.h): Remove rule.
18900
18901 2002-12-04  Jim Meyering  <jim@meyering.net>
18902
18903         Reflect the fact that stat.c and lstat.c are no longer generated.
18904         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
18905         (DISTCLEANFILES): Likewise.
18906         (EXTRA_DIST): Likewise.
18907         (all_local): Don't depend on stat.c or lstat.c.
18908         (stat.c, lstat.c): Remove rules.
18909         (EXTRA_DIST): Remove xstat.in.
18910
18911         * lib/xstat.in: Remove file.  Contents moved into stat.c.
18912         * lib/stat.c: New file.  Contents mostly from xstat.in.
18913         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
18914         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
18915
18916         * lib/safe-read.c: Rework so that it may serve to define safe_write,
18917         too.
18918         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
18919
18920 2002-12-03  Jim Meyering  <jim@meyering.net>
18921
18922         * lib/safe-read.c, safe-write.c: Change variable names and comments,
18923         but not semantics, to minimize the differences between these two files.
18924         (safe_read): Change comment to mention SAFE_READ_ERROR.
18925
18926         * lib/safe-read.c (IS_EINTR): Define.
18927         (safe_read): Use IS_EINTR in place of in-function cpp directives.
18928
18929 2002-12-02  Jim Meyering  <jim@meyering.net>
18930
18931         * lib/safe-read.c (EINTR): Define.
18932         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
18933         (INT_MAX): Provide fallback.
18934         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
18935
18936         * lib/safe-read.h (SAFE_READ_ERROR): Define.
18937
18938 2002-12-02  Bruno Haible  <bruno@clisp.org>
18939
18940         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
18941         Define, taken from safe-read.c.
18942         (INT_MAX): Provide fallback.
18943         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
18944         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
18945
18946         * lib/safe-read.c (EINTR): Remove definition.
18947         (safe_read): Don't use EINTR if it is absent.
18948
18949 2002-12-01  Jim Meyering  <jim@meyering.net>
18950
18951         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
18952         zero.
18953         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
18954
18955 2002-11-27  Paul Eggert  <eggert@twinsun.com>
18956
18957         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
18958         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
18959         with `if (! (value < limit)) abort ();', for readability.
18960
18961 2002-11-26  Karl Berry  <karl@gnu.org>
18962
18963         * lib/strdup.c: copy from libc again, with jim's ok.
18964         * lib/.cppi-disable: re-add strdup.c
18965
18966 2002-11-25  Karl Berry  <karl@gnu.org>
18967
18968         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
18969         instead of "strtol.c".
18970
18971 2002-11-25  Karl Berry  <karl@gnu.org>
18972
18973         * config/install-sh: update from automake for variable quoting, $0 in
18974         error msgs, etc.
18975
18976         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
18977         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
18978         entry.
18979
18980 2002-11-25  Jim Meyering  <jim@meyering.net>
18981
18982         * lib/mktime.c: Sync from libc, now that it has the latest fix.
18983
18984 2002-11-24  Karl Berry  <karl@gnu.org>
18985
18986         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
18987         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
18988
18989 2002-11-24  Jim Meyering  <jim@meyering.net>
18990
18991         Update from coreutils:
18992
18993         * lib/mktime.c: Merge in changes from libc.
18994
18995         Avoid a link-time failure on some Linux systems.
18996         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
18997         (otherwise).
18998         (__mon_yday): Declare with the STATIC attribute.
18999         (__mktime_internal): Likewise.
19000         Based on a report from Greg Schafer.
19001
19002 2002-11-23  Jim Meyering  <jim@meyering.net>
19003
19004         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
19005         Use `unsigned', not `int', as type of index.
19006
19007         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
19008
19009         * lib/fsusage.c: Remove unneeded parentheses around operands of
19010         `defined'.
19011
19012 2002-11-22  Paul Eggert  <eggert@twinsun.com>
19013
19014         * lib/quotearg.h: Allow multiple inclusion by surrounding with
19015         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
19016         so that we can be included first.
19017         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
19018         * lib/quotearg.c: Include quotearg.h immediately after config.h.
19019         No need to include stddef.h or sys/types.h any more.
19020         Surround local include files with "", not "<>".
19021         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
19022         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
19023         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
19024         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
19025         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
19026         (ISPRINT): Remove; no longer needed now that we assume C89.
19027
19028         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
19029         Preserve errno.
19030
19031         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
19032         quotearg_char): Use SIZE_MAX rather than
19033         (size_t) -1 when we are talking about "infinity".
19034
19035         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
19036
19037 2002-11-22  Paul Eggert  <eggert@twinsun.com>
19038
19039         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
19040         hint that one should use `if (! x) abort ();' rather than `assert
19041         (x);', and anyway it's one less thing to worry about configuring.
19042         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
19043         hash_rehash, hash_insert): Use abort rather than assert.
19044
19045 2002-11-22  Bruno Haible  <bruno@clisp.org>
19046
19047         * lib/safe-read.h: Assume C89. Add comments.
19048         (safe_read): Change return type to size_t.
19049         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
19050         byte counts > SSIZE_MAX correctly.
19051         * lib/safe-write.h: New file.
19052         * lib/safe-write.c: New file.
19053         * lib/full-read.h: New file.
19054         * lib/full-read.c: New file.
19055         * lib/full-write.h: Assume C89. Add comments.
19056         * lib/full-write.c: Include safe-write.h.
19057         (full_write): Rewritten to use safe_write.
19058         Suggested by Jim Meyering and Paul Eggert.
19059
19060 2002-11-21  Jim Meyering  <jim@meyering.net>
19061
19062         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
19063
19064         Merge in changes from the coreutils.
19065
19066         2002-09-25  Paul Eggert  <eggert@twinsun.com>
19067         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
19068         <stdint.h>.
19069         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
19070         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
19071         int.  Work more efficiently if X is the same width as uintmax_t.
19072         Do not compare X to -1, to avoid bogus compiler warning.
19073         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
19074         Don't assume that f_frsize and f_bsize are the same type.
19075
19076         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
19077         warning on FreeBSD.
19078
19079         * lib/makepath.c (make_path): Restore umask *before* creating the final
19080         component.
19081         (make_path): Minor reformatting.
19082
19083         * lib/xmalloc.c: Adjust to work with new autoconf macros,
19084         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
19085         HAVE_MALLOC/HAVE_REALLOC.
19086
19087         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
19088         dummy ones.  At least on GNU/Linux systems, `auto' means something
19089         else.
19090         From Michael Stone.
19091
19092 2002-11-21  Bruno Haible  <bruno@clisp.org>
19093
19094         Remove case insensitive option matching.
19095         * lib/argmatch.h (argcasematch): Remove declaration.
19096         (ARGCASEMATCH): Remove macro.
19097         (__xargmatch_internal): Remove case_sensitive argument.
19098         (XARGMATCH): Update.
19099         (XARGCASEMATCH): Remove macro.
19100         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
19101         case_sensitive argument.
19102         (argcasematch): Remove function.
19103         (__xargmatch_internal): Remove case_sensitive argument.
19104         (main): Use XARGMATCH instead of XARGCASEMATCH.
19105
19106         * lib/xmalloc.c: Change compile-time error message. Add comment about
19107         required autoconf version.
19108
19109 2002-11-20  Paul Eggert  <eggert@twinsun.com>
19110
19111         Merge argmatch cleanups from Bison.  Assume C89.
19112
19113         * lib/argmatch.c: Include config.h here, not in argmatch.h.
19114         Include stdlib.h, for EXIT_FAILURE.
19115         Always include <string.h>, since we assume C89.
19116         (EXIT_FAILURE): Remove pre-C89 bug workaround.
19117         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
19118         Include <stddef.h> instead, since it's all we need for size_t.
19119         (PARAMS): Remove.  All uses removed.
19120         (ARRAY_CARDINALITY): Do not bother to #undef.
19121         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
19122         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
19123         Remove unnecessary parentheses.
19124         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
19125         Insert necessary parentheses.
19126         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
19127         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
19128
19129 2002-11-19  Bruno Haible  <bruno@clisp.org>
19130
19131         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
19132         * lib/mbswidth.h: Include <stddef.h>, for size_t.
19133
19134         * lib/mbswidth.h (PARAMS): Remove macro.
19135         (mbswidth, mbsnwidth): Use ANSI C function declarations.
19136         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
19137
19138         * lib/gcd.h (PARAMS): Remove macro.
19139         (gcd): Use ANSI C function declarations.
19140         * lib/gcd.c (gcd): Likewise.
19141
19142 2002-11-15  Bruno Haible  <bruno@clisp.org>
19143
19144         * lib/strcspn.c: Include <stddef.h>.
19145         (strcspn): Use ANSI C function declaration. Change return type to
19146         size_t. Use NULL.
19147         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
19148         (strpbrk): Use NULL.
19149         * lib/strpbrk.h (PARAMS): Remove macro.
19150         (strpbrk): Use ANSI C function declaration.
19151         * lib/strstr.c: Don't include <sys/types.h>.
19152         * lib/strstr.h (PARAMS): Remove macro.
19153         (strstr): Use ANSI C function declarations.
19154
19155 2002-11-14  Karl Berry  <karl@gnu.org>
19156
19157         * config/mkinstalldirs: `do' on separate line, instead of
19158         `for var; do'.
19159
19160 2002-11-06  Bruno Haible  <bruno@clisp.org>
19161
19162         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
19163         * lib/gcd.c (gcd): Likewise.
19164
19165 2002-11-05  Bruno Haible  <bruno@clisp.org>
19166
19167         * lib/gcd.h: New file, from gettext-0.11.5.
19168         * lib/gcd.c: New file, from gettext-0.11.5.
19169
19170 2002-11-05  Bruno Haible  <bruno@clisp.org>
19171
19172         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19173         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19174         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19175         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19176
19177         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
19178         <libintl.h>.
19179         * lib/makepath.c: Include gettext.h instead of <locale.h> and
19180         <libintl.h>.
19181
19182         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
19183         * lib/human.c: Include gettext.h instead of <libintl.h>.
19184         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
19185         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
19186         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
19187         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
19188         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
19189         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
19190         (textdomain): Remove definition.
19191         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
19192
19193         * lib/long-options.c: Remove include of <libintl.h> and definition of
19194         _.
19195         * lib/same.c: Remove include of <libintl.h> and definition of _.
19196
19197 2002-11-04  Owen Taylor  <otaylor@redhat.com>
19198
19199         * lib/config.charset: A few additions for Solaris.
19200
19201 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
19202
19203         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
19204         * lib/localcharset.c (locale_charset): Declare as extern "C".
19205
19206 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
19207
19208         * lib/config.charset: msdos in uk_UA uses CP1125.
19209
19210 2002-11-04  Bruno Haible  <bruno@clisp.org>
19211
19212         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
19213         * lib/strcase.h: New file, from GNU gettext-0.11.5.
19214         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
19215         * lib/strstr.h: New file, from GNU gettext-0.11.5.
19216         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
19217
19218 2002-11-04  Bruno Haible  <bruno@clisp.org>
19219
19220         * lib/localcharset.c (locale_charset): Don't return an empty string.
19221
19222 2002-11-04  Bruno Haible  <bruno@clisp.org>
19223
19224         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
19225         aliases.
19226
19227 2002-11-04  Bruno Haible  <bruno@clisp.org>
19228
19229         * lib/config.charset: Update for newest glibc. Add canonical names
19230         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
19231
19232 2002-11-04  Bruno Haible  <bruno@clisp.org>
19233
19234         * lib/config.charset: Add support for NetBSD.
19235
19236 2002-11-04  Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
19239
19240 2002-11-01  Bruno Haible  <bruno@clisp.org>
19241
19242         * configure.in: Add AC_CONFIG_AUX_DIR call.
19243         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
19244         test/Makefile.
19245         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
19246
19247 2002-09-28  Karl Berry  <karl@gnu.org>
19248
19249         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
19250         installed automake until the next release, since changes have been
19251         made.
19252
19253 2002-09-25  Karl Berry  <karl@gnu.org>
19254
19255         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
19256         * lib/getopt*: copy from libc/posix.
19257         * lib/gettext.h: copy from gettext.
19258         * lib/.cppi-disable: add strdup.c, gettext.h.
19259
19260 2002-09-25  Karl Berry  <karl@gnu.org>
19261
19262         * config/srclist.txt: enable gettext.h check.
19263         * config/config.{guess,sub}: update from prep.
19264         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
19265                 from automake 1.6.3.
19266         See srclist*.
19267
19268 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
19269
19270         * regex.c (PATFETCH): Remove the translating fetch.
19271         (PATFETCH_RAW): Rename to PATFETCH.
19272         (set_image_of_range): New fun.
19273         (SET_RANGE_TABLE_WORK_AREA): Use it.
19274         (regex_compile): Don't translate the pattern chars so eagerly.
19275         Only do it when inserting an `exactn' bytecode or when handling
19276         a char-range.
19277         (mutually_exclusive_p): Avoid empty statement.
19278
19279 2002-07-06  Jim Meyering  <meyering@lucent.com>
19280
19281         * m4/README: Don't mention Makefile.am.in.
19282         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
19283
19284 2002-07-01  Jim Meyering  <meyering@lucent.com>
19285
19286         * lib/c-stack.c: Include sys/time.h.
19287         From Volker Borchert.
19288
19289 2002-06-26  Paul Eggert  <eggert@twinsun.com>
19290
19291         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
19292
19293 2002-06-26  Paul Eggert  <eggert@twinsun.com>
19294
19295         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
19296         New macro.  Use it uniformly instead of
19297         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
19298         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
19299         reported by Vin Shelton.
19300
19301 2002-06-22  Paul Eggert  <eggert@twinsun.com>
19302
19303         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
19304         Do not assume SA_SIGINFO behavior.
19305         Bug reported by Jim Meyering on NetBSD 1.5.2.
19306
19307 2002-06-22  Jim Meyering  <meyering@lucent.com>
19308
19309         * m4/c-stack.m4: New file, from diffutils-2.8.2.
19310         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
19311
19312         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
19313         now that configure.ac uses AC_GNU_SOURCE.
19314         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
19315         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
19316
19317         Update to latest tools.  Suggestions from Paul Eggert.
19318         * m4/stdbool.m4: New file, from diffutils-2.8.2.
19319         * m4/gnu-source.m4: Update from diffutils-2.8.2.
19320         * m4/fnmatch.m4: Likewise.
19321         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
19322         to AC_HEADER_STDBOOL
19323
19324 2002-06-22  Jim Meyering  <meyering@lucent.com>
19325
19326         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
19327         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
19328
19329 2002-06-22  Jim Meyering  <meyering@lucent.com>
19330
19331         * lib/c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
19332
19333         * lib/exitfail.c, exitfail.h: Likewise.
19334         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
19335
19336         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
19337         of fnmatch.h.
19338         (EXTRA_DIST): Add fnmatch_loop.c.
19339         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
19340
19341         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
19342         * lib/fnmatch.c: Update from diffutils-2.8.2.
19343         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
19344         * lib/fnmatch.h: Remove file.
19345
19346 2002-06-21  Jim Meyering  <meyering@lucent.com>
19347
19348         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
19349         * m4/mbrtowc.m4: Likewise.
19350
19351         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
19352         * m4/mbswidth.m4: Reflect name change:
19353         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
19354         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
19355
19356         * m4/lib-link.m4: Update from gettext-0.11.2.
19357         * m4/gettext.m4: Likewise.
19358
19359         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
19360         From Alfred M. Szmidt.
19361
19362 2002-06-18  Paul Eggert  <eggert@twinsun.com>
19363
19364         * lib/file-type.h: Report an error if neither S_ISREG nor
19365         S_IFREG is defined, instead of using a test specific to glibc
19366         2.2.  This should be safe, since POSIX requires S_ISREG and
19367         Unix Version 7 had S_IFREG.  We don't need to check for
19368         <sys/types.h> since we don't use any symbols that it defines.
19369
19370 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
19371
19372         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
19373         $@-t, so that each temporary file name is unique and valid in the first
19374         8 characters, for operation under DOS.
19375
19376 2002-06-15  Paul Eggert  <eggert@twinsun.com>
19377
19378         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
19379
19380 2002-06-15  Jim Meyering  <meyering@lucent.com>
19381
19382         Work even with DJGPP 2.03, which lacks support for symlinks.
19383         From Richard Dawe.
19384         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
19385         is defined.
19386         * lib/lchown.c (S_ISLNK): Likewise.
19387
19388 2002-06-15  Jim Meyering  <meyering@lucent.com>
19389
19390         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
19391         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
19392         have been included before this file.
19393
19394 2002-06-14  Jim Meyering  <meyering@lucent.com>
19395
19396         * lib/file-type.h: Use the version from diffutils-2.8.2.
19397         * lib/file-type.c: Likewise.
19398
19399 2002-06-07  Jim Meyering  <meyering@lucent.com>
19400
19401         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
19402         They're needed at least for NetBSD 1.5.2.
19403         ($statxfs_includes): Include those same headers.
19404         ($statxfs_includes): Include sys/vfs.h if available.
19405         ($statxfs_includes): Likewise for sys/statvfs.h.
19406         Check for the following members in both structs statfs and statvfs:
19407         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
19408
19409 2002-06-01  Jim Meyering  <meyering@lucent.com>
19410
19411         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
19412         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
19413
19414 2002-05-28  Jim Meyering  <meyering@lucent.com>
19415
19416         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
19417         Reported by Volker Borchert.
19418
19419 2002-05-27  Jim Meyering  <meyering@lucent.com>
19420
19421         Fix a problem seen only on nonconforming systems whereby ls.c's
19422         use of localtime, and then of gettimeofday would cause trouble:
19423         the localtime call used to initialize rpl_gettimeofday's save
19424         mechanism would clobber ls's current local time information so
19425         that in any long listing the first file would always be listed
19426         with date 1970-01-01.  Analysis by Volker Borchert.
19427
19428         * lib/gettimeofday.c (localtime): Undefine.
19429         (rpl_localtime): New function.
19430
19431 2002-05-27  Jim Meyering  <meyering@lucent.com>
19432
19433         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
19434         localtime.
19435
19436         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
19437         use the replacement function; it wouldn't resolve at link time.
19438         Reported by Volker Borchert.
19439
19440 2002-05-22  Jim Meyering  <meyering@lucent.com>
19441
19442         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
19443         file-type.h.
19444         * lib/file-type.h: New file.
19445         * lib/file-type.c (file_type): New file/function.  Extracted from
19446         diffutils.
19447
19448 2002-04-30  Jim Meyering  <meyering@lucent.com>
19449
19450         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
19451
19452 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19453
19454         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
19455
19456 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19457
19458         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
19459         Do not check for alloca.h (no longer used) or stdbool.h (was never
19460         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
19461
19462 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19463
19464         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
19465
19466 2002-04-29  Jim Meyering  <meyering@lucent.com>
19467
19468         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
19469         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
19470         Use AC_FUNC_STRNLEN here instead.
19471
19472         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
19473         With autoconf-2.53a, it's part of AC_PROG_CC.
19474
19475 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19476
19477         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
19478         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
19479
19480 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19481
19482         * lib/sig2str.h, sig2str.c: New files.
19483         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
19484
19485 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19486
19487         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
19488         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
19489         of 127, since 64 is the largest conceivable number for ancient
19490         nonstandard hosts.
19491         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
19492
19493 2002-04-28  Jim Meyering  <meyering@lucent.com>
19494
19495         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
19496
19497 2002-04-24  Jim Meyering  <meyering@lucent.com>
19498
19499         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
19500         (jm_PREREQ): Use it.
19501
19502         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
19503         mach/mach.h fcntl.h.
19504         Check for this function: setlocale.
19505
19506 2002-04-24  Jim Meyering  <meyering@lucent.com>
19507
19508         * lib/gettext.h: New file, from Gettext.
19509         * lib/Makefile.am (INCLUDES): Remove -I../intl.
19510         (libfetish_a_SOURCES): Add gettext.h.
19511
19512 2002-04-16  Jim Meyering  <meyering@lucent.com>
19513
19514         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
19515         ut_pid, ut_id, ut_exit.
19516
19517 2002-04-16  Jim Meyering  <meyering@lucent.com>
19518
19519         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
19520         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
19521         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
19522
19523 2002-04-12  Jim Meyering  <meyering@lucent.com>
19524
19525         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
19526         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
19527         existence of the getmntinfo function.  Needed for Darwin 5.3.
19528
19529         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
19530         This is necessary at least on Darwin 5.3.
19531
19532         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
19533         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
19534         strnlen.o in the library, and that makes some versions of ranlib
19535         object.
19536
19537 2002-04-12  Jim Meyering  <meyering@lucent.com>
19538
19539         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
19540
19541 2002-04-09  Jim Meyering  <meyering@lucent.com>
19542
19543         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
19544         to be more precise.  Rather than saying we're checking whether the
19545         function `works', say what we're testing.
19546         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
19547         Reported by Bruno Haible.
19548
19549 2002-03-10  Jim Meyering  <meyering@lucent.com>
19550
19551         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
19552         Suggestion from Santiago Vila.
19553
19554 2002-03-08  Jim Meyering  <meyering@lucent.com>
19555
19556         * lib/rename.c: Mention that this wrapper is needed also on
19557         mips-dec-ultrix4.4 systems.
19558
19559 2002-03-02  Jim Meyering  <meyering@lucent.com>
19560
19561         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
19562         not HAVE_CLOCK_SETTIME.
19563
19564 2002-02-27  Paul Eggert  <eggert@twinsun.com>
19565
19566         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
19567         Check for clock_settime.
19568
19569 2002-02-27  Paul Eggert  <eggert@twinsun.com>
19570
19571         * lib/nanosleep.h: Rename to....
19572         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
19573
19574         * lib/gettime.c: New file.
19575         * lib/settime.c: New file.
19576         * lib/stime.c: Remove.
19577
19578         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
19579         timespec.h.  Remove nanosleep.h.
19580
19581 2002-02-25  Paul Eggert  <eggert@twinsun.com>
19582
19583         * m4/acl.m4: New file.
19584         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
19585         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
19586
19587 2002-02-25  Paul Eggert  <eggert@twinsun.com>
19588
19589         * lib/acl.c, acl.h: New files.
19590         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
19591
19592 2002-02-24  Jim Meyering  <meyering@lucent.com>
19593
19594         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
19595         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
19596         cause trouble.  Reported by Nelson Beebe.
19597
19598 2002-02-23  Paul Eggert  <eggert@twinsun.com>
19599
19600         * lib/path-concat.c (xpath_concat): Reorder code to pacify
19601         compilers that don't know that xalloc_die never returns.
19602
19603 2002-02-20  Jim Meyering  <meyering@lucent.com>
19604
19605         * lib/getdate.c: Regenerate using bison-1.33.
19606
19607 2002-02-17  Jim Meyering  <meyering@lucent.com>
19608
19609         * config/config.guess (main): Don't use `head -1'; it's no longer
19610         portable. Use `sed 1q' instead.
19611
19612 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
19613
19614         * m4/codeset.m4: Upgrade to gettext-0.11.
19615         * m4/gettext.m4: Upgrade to gettext-0.11.
19616         * m4/glibc21.m4: Upgrade to gettext-0.11.
19617         * m4/iconv.m4: Upgrade to gettext-0.11.
19618         * m4/isc-posix.m4: Upgrade to gettext-0.11.
19619         * m4/lcmessage.m4: Upgrade to gettext-0.11.
19620         * m4/lib-ld.m4: New file, from gettext-0.11.
19621         * m4/lib-link.m4: New file, from gettext-0.11.
19622         * m4/lib-prefix.m4: New file, from gettext-0.11.
19623         * m4/progtest.m4: Upgrade to gettext-0.11.
19624
19625 2002-02-15  Paul Eggert  <eggert@twinsun.com>
19626
19627         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
19628         (jm_PREREQ): Use it.
19629
19630 2002-02-15  Paul Eggert  <eggert@twinsun.com>
19631
19632         * lib/posixver.c, posixver.h: New files.
19633         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
19634
19635 2002-02-02  Paul Eggert  <eggert@twinsun.com>
19636             Bruno Haible  <bruno@clisp.org>
19637
19638         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
19639         (fwrite_success_callback): New declaration.
19640         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
19641         print_unicode_char. Call failure callback instead of error.
19642         (fwrite_success_callback): New function.
19643         (exit_failure_callback): New function.
19644         (fallback_failure_callback): New function.
19645         (print_unicode_char): Call unicode_to_mb.
19646
19647 2002-01-26  Jim Meyering  <meyering@lucent.com>
19648
19649         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
19650         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
19651
19652 2002-01-26  Jim Meyering  <meyering@lucent.com>
19653
19654         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
19655
19656 2002-01-22  Paul Eggert  <eggert@twinsun.com>
19657
19658         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
19659
19660 2002-01-22  Jim Meyering  <meyering@lucent.com>
19661
19662         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
19663         Otherwise, some versions of automake would omit the rule that makes
19664         Makefile from Makefile.in.
19665
19666 2002-01-21  Paul Eggert  <eggert@twinsun.com>
19667
19668         * lib/xmemcoll.h, xmemcoll.c: New files.
19669         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
19670         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
19671         (memcoll): Set errno to zero if there is no error.
19672
19673         * lib/quotearg.c (quotearg_buffer_restyled):
19674         Fix bug with quoting buffers containing NUL when backslashing escapes.
19675         This bug was exposed by the other changes in this patch.
19676         (quotearg_n_options): New arg ARGSIZE.
19677         All callers changed.
19678         (quoting_options_from_style): New function.
19679         (quotearg_n_style): Use it.
19680         (quotearg_n_style_mem): New function.
19681
19682         * lib/quotearg.h (quotearg_n_style_mem): New function.
19683
19684 2002-01-19  Jim Meyering  <meyering@lucent.com>
19685
19686         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
19687         Remove useless quotes: DF_PROG="df".
19688         * m4/strnlen.m4: New file.
19689
19690 2002-01-16  Paul Eggert  <eggert@twinsun.com>
19691
19692         * lib/backupfile.c (ISDIGIT): Comment fix.
19693         * lib/getdate.y (ISDIGIT): Likewise.
19694         * lib/posixtm.c (ISDIGIT, year): Likewise.
19695         * lib/strverscmp.c (ISDIGIT): Likewise.
19696         * lib/userspec.c (ISDIGIT): Likewise.
19697
19698 2002-01-16  Jim Meyering  <meyering@lucent.com>
19699
19700         * lib/getdate.y: Add three semicolons, each just before a closing
19701         brace. Bison (as of version 1.31) no longer papers over that mistake.
19702
19703 2002-01-05  Jim Meyering  <meyering@lucent.com>
19704
19705         * lib/version-etc.c (version_etc_copyright): Update copyright year.
19706
19707 2001-12-19  Paul Eggert  <eggert@twinsun.com>
19708
19709         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
19710         not silently exit merely because the output buffer happens to
19711         have nothing pending.
19712
19713 2001-12-18  Paul Eggert  <eggert@twinsun.com>
19714
19715         See the big note in ../ChangeLog.
19716         * lib/human.c (suffixes): Prefer K to k for 1024.
19717         (generate_suffix_backwards): New function.
19718         (human_readable_inexact): Use it.
19719         * lib/xstrtol.c (__xstrtol): If there is no number but there
19720         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
19721         Accept 'K' as well as 'k'.
19722
19723 2001-12-15  Jim Meyering  <meyering@lucent.com>
19724
19725         * lib/regex.h (__restrict_arr): Update from libc.
19726
19727         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
19728         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
19729         (STREQ): Define.
19730
19731 2001-12-14  Jim Meyering  <meyering@lucent.com>
19732
19733         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
19734         Suggestion from Bruno Haible.
19735
19736 2001-12-10  Jim Meyering  <meyering@lucent.com>
19737
19738         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
19739         xrealloc, Instead, include "xalloc.h".
19740         (initbuffer): Don't cast xmalloc return value to char*.
19741         (readline): Reword comment.
19742         Don't cast xrealloc return value to char*
19743         Return NULL, not 0.
19744
19745 2001-12-09  Jim Meyering  <meyering@lucent.com>
19746
19747         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
19748         about `signed and unsigned type in conditional expression'.
19749         * lib/posixtm.c (posix_time_parse): Likewise.
19750
19751         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
19752
19753         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
19754         to avoid a pedantic warning.
19755
19756         * lib/getstr.c: Don't include assert.h.
19757         (getstr): Remove warning-evoking assertions.
19758         Return -1 if offset parameter is out of bounds.
19759         Change the type of a local from int to size_t.
19760
19761         * lib/strftime.c (my_strftime_localtime_r): Include this function
19762         definition in the `#if ! HAVE_TM_GMTOFF' block.
19763
19764         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
19765         Include xalloc.h instead.
19766
19767 2001-12-02  Jim Meyering  <meyering@lucent.com>
19768
19769         * lib/tempname.c: Don't declare getenv, thus reverting the change of
19770         2001-11-18.  It's no longer necessary, now that stdlib.h is always
19771         included.
19772
19773         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
19774         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
19775
19776 2001-11-30  Akim Demaille  <akim@epita.fr>
19777
19778         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
19779         before being defined.
19780
19781 2001-11-27  Paul Eggert  <eggert@twinsun.com>
19782
19783         * lib/quotearg.h (quotearg_n, quotearg_n_style):
19784         First arg is int, not unsigned.
19785         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
19786         (SIZE_MAX, UINT_MAX): New macros.
19787         (quotearg_n_options): Abort if N is negative.
19788         Avoid overflow check on hosts where size_t is 64 bits and int
19789         is 32 bits, as overflow is impossible there.
19790         Fix off-by-one typo that caused unnecessary reallocation.
19791
19792 2001-11-27  Jim Meyering  <meyering@lucent.com>
19793
19794         * lib/tempname.c: Merge with version from libc.
19795         * lib/regex.c: Likewise.
19796
19797         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
19798         systems for which STDC_HEADERS is 0, it was not included, resulting in
19799         a warning about an integer-to-pointer conversion problem with getenv.
19800         Reported by Volker Borchert.
19801
19802 2001-11-26  Jim Meyering  <meyering@lucent.com>
19803
19804         * lib/gtod.h: Remove file.
19805         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
19806         * lib/gettimeofday.c: Don't include gtod.h.
19807         (GTOD_init): Remove function.
19808         (rpl_gettimeofday): Do its job here instead, rather than aborting.
19809         Suggestion from Volker Borchert.
19810
19811 2001-11-23  Jim Meyering  <meyering@lucent.com>
19812
19813         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
19814         it.
19815         * lib/hash.c (struct hash_table): Define it here instead.
19816
19817 2001-11-22  Jim Meyering  <meyering@lucent.com>
19818
19819         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
19820
19821 2001-11-20  Jim Meyering  <meyering@lucent.com>
19822
19823         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
19824         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
19825
19826 2001-11-19  Jim Meyering  <meyering@lucent.com>
19827
19828         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
19829         directory.  Use "conftestXXXXXX" as the template.
19830         Suggestion from Paul Eggert.
19831
19832         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
19833         immediately, so the test doesn't mistakenly hit the max-open-files
19834         limit.
19835
19836 2001-11-18  Paul Eggert  <eggert@twinsun.com>
19837
19838         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
19839         (TEMPORARIES): New macro.
19840         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
19841         removes an artificial limitation (e.g. HP-UX 10.20, where
19842         TMP_MAX is 17576).
19843
19844 2001-11-18  Jim Meyering  <meyering@lucent.com>
19845
19846         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
19847
19848 2001-11-18  Jim Meyering  <meyering@lucent.com>
19849
19850         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
19851         on SunOS 4.
19852
19853         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
19854         files will be created before anything else.
19855
19856 2001-11-17 Paul Eggert  <eggert@twinsun.com>
19857
19858         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
19859         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
19860
19861 2001-11-17  Jim Meyering  <meyering@lucent.com>
19862
19863         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
19864         Prompted by a report from Bob Proulx.
19865
19866         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
19867         Instead, require UTILS_FUNC_MKSTEMP.
19868
19869 2001-11-17  Jim Meyering  <meyering@lucent.com>
19870
19871         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
19872         Now, that's done as part of AC_FUNC_STRTOD.
19873
19874 2001-11-17  Jim Meyering  <meyering@lucent.com>
19875
19876         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
19877         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
19878         rather than group writable.  Patch by Juan F. Codagnone.
19879
19880         * lib/readtokens.c: Remove explicit declarations of xmalloc and
19881         xrealloc, Instead, include "xalloc.h".
19882
19883         * lib/mountlist.c: Include unlocked-io.h after all system headers.
19884         Remove explicit declarations of xmalloc, xrealloc,
19885         and xstrdup.  Instead, include "xalloc.h".
19886
19887         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
19888         unlocked-io.h.
19889         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
19890         Likewise.
19891         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
19892
19893         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
19894         Reported by Padraig Brady.
19895
19896         * lib/mkstemp.c: #undef mkstemp.
19897         Include config.h.
19898         (rpl_mkstemp): Rename from mkstemp.
19899         Protoize.
19900
19901 2001-11-16  Jim Meyering  <meyering@lucent.com>
19902
19903         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
19904         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
19905         determine the amount of total physical memory, use pstat_getstatic.
19906         HPUX-11 doesn't define _SC_PHYS_PAGES.
19907         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
19908         If sysconf couldn't be used to determine the amount of available
19909         physical memory, use both pstat_getstatic and pstat_getdynamic.
19910         Based on a patch from Bob Proulx.
19911
19912 2001-11-10  Jim Meyering  <meyering@lucent.com>
19913
19914         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
19915         (jm_PREREQ): Use it.
19916
19917 2001-11-09  Jim Meyering  <meyering@lucent.com>
19918
19919         * m4/jm-macros.m4: Require autoconf-2.52f.
19920         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
19921         Use these AC_-prefixed names, not the AM_-prefixed ones.
19922
19923         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
19924
19925 2001-11-05  Jim Meyering  <meyering@lucent.com>
19926
19927         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
19928
19929 2001-11-04  Jim Meyering  <meyering@lucent.com>
19930
19931         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
19932         $DEFS.
19933
19934 2001-11-03  Jim Meyering  <meyering@lucent.com>
19935
19936         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
19937         of AC_DEFUN.
19938
19939         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
19940         know the name of the variable in the macro definition.
19941
19942 2001-11-03  Jim Meyering  <meyering@lucent.com>
19943
19944         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
19945         in argmatch_to_argument call.
19946
19947         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
19948         argument.
19949
19950         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
19951         e.g., a fault due to an attempt to free a NULL pointer.
19952
19953 2001-11-01  Jim Meyering  <meyering@lucent.com>
19954
19955         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
19956         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
19957
19958 2001-11-01  Jim Meyering  <meyering@lucent.com>
19959
19960         * lib/dirfd.c, dirfd.h: New files.
19961         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
19962
19963         * lib/hash.c (hash_print) [TESTING]: Clean up.
19964
19965 2001-10-22  Paul Eggert  <eggert@twinsun.com>
19966
19967         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
19968         to avoid a warning if -Wall.
19969
19970 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
19971
19972         * README: New file
19973         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
19974         (per RMS's instructions, this is now the canonical source)
19975         * lgpl/, gpl/: New directories.
19976
19977 2001-10-21  Paul Eggert  <eggert@twinsun.com>
19978
19979         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
19980
19981 2001-10-21  Jim Meyering  <meyering@lucent.com>
19982
19983         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
19984         this code would end up calling gettext even in packages built
19985         with --disable-nls.
19986         * lib/getopt.c (_): Likewise.
19987         * lib/regex.c (_): Likewise.
19988
19989 2001-10-20  Paul Eggert  <eggert@twinsun.com>
19990
19991         * m4/error.m4 (jm_PREREQ_ERROR):
19992         Do not invoke AC_CHECK_FUNCS with strerror_r, as
19993         AC_FUNC_STRERROR_R does that.
19994         Check for strerror declaration.
19995
19996         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
19997         are supposed to have them these days.
19998         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
19999         Merge changes from latest Autoconf CVS.
20000         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
20001         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
20002         POSIX decided to standardize on the int flavor of strerror_r.
20003
20004 2001-10-20  Paul Eggert  <eggert@twinsun.com>
20005
20006         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
20007         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
20008         Use strerror_r that is only a macro, even if it is not a function.
20009         (strerror): Check for HAVE_DECL_STRERROR before declaring.
20010         (private_strerror): Use prototypes, not old-style function definition.
20011         (print_errno_message): New function.
20012         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
20013         char*-flavored one.
20014         (error_tail, error, error_at_line): Use it.
20015
20016 2001-10-11  Jim Meyering  <meyering@lucent.com>
20017
20018         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
20019         and quote_n (1, ... to avoid clobbering a buffer.
20020
20021 2001-10-05  Jim Meyering  <meyering@lucent.com>
20022
20023         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
20024         hash-pjw.h.
20025         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
20026         * lib/hash-pjw.h: New file.
20027
20028 2001-09-30  Jim Meyering  <meyering@lucent.com>
20029
20030         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
20031         `struct fsstat' has the `f_fstypename' member.
20032         Use that to define FS_TYPE, which is now used to make
20033         the getfsstat link test tighter.
20034
20035 2001-09-30  Jim Meyering  <meyering@lucent.com>
20036
20037         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
20038         Include <sys/ucred.h>, for Apple Darwin.
20039         Include sys/mount.h and sys/fs_types.h only if available.
20040         (FS_TYPE): Define.
20041         (read_filesystem_list): Use FS_TYPE.
20042
20043 2001-09-29  Paul Eggert  <eggert@twinsun.com>
20044
20045         * lib/exclude.c (excluded_filename): 0 -> false, since it's
20046         a boolean context.
20047
20048 2001-09-29  Jim Meyering  <meyering@lucent.com>
20049
20050         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
20051         [one-argument getmntent function]): Include stdio.h before mntent.h.
20052         SunOS 4.1.x needs it for the declaration of `FILE'.
20053         Patch by Volker Borchert.
20054
20055         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
20056         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
20057         sys/fs_types.h, and make the link-test for getfsstat guard #include
20058         directives with appropriate #if HAVE_*_H tests so that we can
20059         detect getfsstat on Apple Darwin1.3.7 systems.
20060         Reported by Nelson Beebe.
20061         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
20062
20063 2001-09-28  Paul Eggert  <eggert@twinsun.com>
20064
20065         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
20066         #defines strtoimax.  Also treat the other strto* functions
20067         like strtoimax.
20068
20069         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
20070         Check for strtoul and strtoumax,
20071         as those declarations are made even in the signed case.
20072         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
20073         Likewise, for strtol and strtoimax.
20074
20075 2001-09-28  Paul Eggert  <eggert@twinsun.com>
20076
20077         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
20078         #defines strtoimax.  Also treat the other strto* functions
20079         like strtoimax.
20080
20081         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
20082         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
20083         (strtoimax, strtoumax): Do not declare if already defined as a macro.
20084
20085 2001-09-26  Jim Meyering  <meyering@lucent.com>
20086
20087         Most macros in unlocked-io.h had the wrong number of arguments.
20088         * lib/gen-uio: New script.
20089         (USE_UNLOCKED_IO): Define to 1 if not already defined.
20090         * lib/unlocked-io.hin: Remove file.
20091         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
20092         rather than trying to embed it here.
20093         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
20094         Reported by Padraig Brady.
20095
20096 2001-09-25  Volker Borchert  <bt@teknon.de>
20097
20098         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
20099         `result'.
20100
20101 2001-09-24  Jim Meyering  <meyering@lucent.com>
20102
20103         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
20104
20105 2001-09-23  Jim Meyering  <meyering@lucent.com>
20106
20107         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
20108         instead of the mere test for existence of mntent.h.  The latter
20109         would get a false-positive on AIX 3.4 systems.
20110         In the outer getmntent if-block, don't die if neither of the getmntent
20111         tests succeeds.  Instead, just fall through and continue with the
20112         remaining tests.
20113
20114 2001-09-23  Jim Meyering  <meyering@lucent.com>
20115
20116         * lib/mountlist.c: Remove useless parentheses in #if directives.
20117         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
20118         the deprecated MOUNTED symbol is no longer defined in mntent.h.
20119
20120 2001-09-22  Jim Meyering  <meyering@lucent.com>
20121
20122         * m4/gettext.m4: New file.  From gettext.
20123         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
20124         * m4/progtest.m4: Likewise
20125         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
20126         * m4/glibc21.m4: Likewise.
20127
20128         * m4/libintl.m4: Remove.  No longer used.
20129
20130 2001-09-22  Jim Meyering  <meyering@lucent.com>
20131
20132         * lib/localcharset.c: Update from latest gettext.
20133         * lib/config.charset: Likewise.
20134
20135 2001-09-20  Jim Meyering  <meyering@lucent.com>
20136
20137         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
20138         strtoimax.
20139         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
20140         strtoumax.
20141
20142 2001-09-20  Jim Meyering  <meyering@lucent.com>
20143
20144         * lib/xstrtol.c (strtoimax): Guard declaration with
20145         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
20146         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
20147         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
20148         (strtoumax): Likewise, for completeness (it wasn't necessary).
20149
20150 2001-09-17  Paul Eggert  <eggert@twinsun.com>
20151
20152         * lib/strtoimax.c (HAVE_LONG_LONG):
20153         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
20154         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
20155         to work around bug in IBM C compiler.
20156
20157 2001-09-17  Jim Meyering  <meyering@lucent.com>
20158
20159         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
20160         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
20161         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
20162         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
20163         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
20164         whenever the right hand side need not be expanded by the shell.
20165
20166 2001-09-16  Paul Eggert  <eggert@twinsun.com>
20167
20168         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
20169         library.  It's not correct, as some older glibcs are buggy.
20170         fnmatch wasn't fixed until glibc 2.2.
20171
20172         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
20173         special shell magic here.
20174
20175 2001-09-16  Jim Meyering  <meyering@lucent.com>
20176
20177         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
20178         * m4/jm-macros.m4: Require it.
20179
20180 2001-09-16  Jim Meyering  <meyering@lucent.com>
20181
20182         * lib/mkdir.c: New file.
20183
20184 2001-09-15  Jim Meyering  <meyering@lucent.com>
20185
20186         * m4/jm-macros.m4: Check for help2man.
20187
20188 2001-09-11  Jim Meyering  <meyering@lucent.com>
20189
20190         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
20191         The body, by Paul Eggert, was moved here from configure.in.
20192         * m4/jm-macros.m4: Require UTILS_HOST_OS.
20193
20194 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20195
20196         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
20197         (jm_PREREQ): Use it.
20198
20199 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20200
20201         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
20202         Use ssize_t, not int, to store result of readlink.
20203         Check for ssize_t overflow as well as size_t overflow,
20204         as POSIX says the result of readlink is implementation-defined
20205         when ssize_t overflows.
20206         Remove unnecessary cast to char*.
20207         Use free+malloc instead of realloc, as the storage doesn't need
20208         to be preserved and it's clearer and can be more efficient that way.
20209         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
20210         * lib/xreadlink.h (xreadlink): Update prototype.
20211
20212 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20213
20214         * lib/xgetcwd.c: Revert some of the previous change; intead,
20215         fix the HAVE_GETCWD_NULL code to behave more like the
20216         !HAVE_GETCWD_NULL code used to.
20217
20218         Include "xalloc.h".
20219         (xgetcwd): Do not return NULL when memory is exhausted; instead,
20220         invoke xalloc_die.
20221
20222 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20223
20224         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
20225         sys/param.h, as pathmax.h includes them.
20226
20227 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20228
20229         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
20230         (jm_PREREQ_XGETCWD): New macro.
20231
20232         * m4/getcwd.m4: New file.
20233
20234 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20235
20236         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
20237         like the HAVE_GETCWD_NULL code.
20238         Include pathmax.h if not HAVE_GETCWD.
20239         Do not include xalloc.h.
20240         (INITIAL_BUFFER_SIZE): New symbol.
20241         Do not use xmalloc / xrealloc, since the caller is responsible for
20242         handling errors.  Preserve errno around `free' during failure.
20243         Do not overrun buffer when using getwd.
20244
20245 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20246
20247         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
20248         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
20249         getcwd (NULL, 0).
20250
20251 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20252
20253         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
20254         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
20255         spotted by Jim Meyering.
20256
20257 2001-09-03  Jim Meyering  <meyering@lucent.com>
20258
20259         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
20260         failure.
20261
20262 2001-09-02  Jim Meyering  <meyering@lucent.com>
20263
20264         * lib/error.c: Update from GNU libc.
20265
20266 2001-09-01  Jim Meyering  <meyering@lucent.com>
20267
20268         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
20269         Used by df.
20270
20271 2001-09-01  Jim Meyering  <meyering@lucent.com>
20272
20273         * lib/xreadlink.c: New file.
20274         * lib/xreadlink.h: New file.
20275         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
20276         xreadlink.h.
20277
20278         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
20279         doesn't conflict with sparc Solaris 7's definition in
20280         /usr/include/sys/int_types.h.
20281
20282         * lib/exclude.c: Use `""', not `<>' to #include non-system header
20283         files.
20284         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
20285         and strncasecmp as r-values.  Unixware didn't have declarations.
20286
20287 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20288
20289         * lib/xstrtol.h: Add copyright notice.
20290         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
20291         LONGINT_INVALID_SUFFIX_CHAR.
20292
20293 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20294
20295         * lib/xstrtol.c (strtoimax): New decl.
20296
20297 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20298
20299         * lib/xgetcwd.c: Don't include pathmax.h.
20300         Include stdlib.h and unistd.h if available.
20301         Include xalloc.h.
20302         (xmalloc, xstrdup, free): Remove decls.
20303         (xgetcwd): Don't assume sizes fit in unsigned.
20304         Check for overflow when computing sizes.
20305         Simplify reallocation code.
20306
20307 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20308
20309         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
20310         a directory's st_size can have an arbitrary value, so the old
20311         usage could waste an arbitrary amount of memory.  All uses
20312         changed.
20313         * lib/savedir.h: Update prototype.
20314
20315 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20316
20317         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
20318
20319         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
20320         old strtoimax.c.
20321
20322         Also, make the following further changes to make this file's
20323         configuration more similar to that of strtol.c:
20324         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
20325         (strtoumax, uintmax_t, strtoull, strtol): Remove.
20326         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
20327         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
20328         changed to signed values.
20329
20330         And make the following changes as well:
20331         Fix copyright notice, as 1999 was missing.
20332         (verify): New macro.
20333         (strtoimax): Check sizes at compile-time, not run-time.
20334         Prefer strtol to strtoll if both work.
20335         (main): Remove; it was not that useful and was a pain to maintain.
20336
20337         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
20338
20339 2001-08-31  Jim Meyering  <meyering@lucent.com>
20340
20341         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
20342         Use an initial, malloc'd, buffer of length 128 rather than
20343         a statically allocated one of length 1024.
20344
20345 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20346
20347         Simplify code, partly by assuming autoconf 2.52 semantics.
20348
20349         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
20350
20351         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
20352         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
20353         All uses removed.
20354         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
20355         Move AC_REQUIRE to next-to-top level, to avoid confusion.
20356         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
20357         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
20358         jm_AC_HEADER_INTTYPES_H.
20359         * m4/jm-macros.m4 (jm_MACROS): Likewise.
20360
20361         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
20362
20363         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
20364         Quote first arg of AC_DEFUN.
20365         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
20366         since they are needed to parse the include file even if we need
20367         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
20368         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
20369         but with opposite signedness.
20370
20371 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20372
20373         Merge 'exclude' changes from tar 1.13.22.
20374         This fixes one or two unlikely storage allocation overflow bugs,
20375         but doesn't change user-visible behavior otherwise.
20376
20377 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20378
20379         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
20380         (jm_PREREQ_EXCLUDE): New macro.
20381
20382 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20383
20384         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
20385         tm to be declared.
20386
20387 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20388
20389         * lib/hash.c: Remove '2001' from copyright notice.
20390
20391 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20392
20393         * lib/full-write.h: New file.
20394         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
20395         * lib/full-write.c: Correct credits, as cccp.c no longer
20396         exists and anyway it was so heavily changed from the old cccp
20397         code as to be unrecognizable.  Include full-write.h.
20398         (full_write) Return size_t, with short writes meaning failure.
20399         All callers changed.  This fixes a bug with large buffers
20400         on 64-bit hosts.
20401         * lib/utime.c: Include full-write.h.
20402
20403 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20404
20405         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
20406         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
20407         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
20408         Include if available.
20409         (<xalloc.h>): Include
20410         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
20411         (verify): New macro.  Use it to verify that EXCLUDE macros do not
20412         collide with FNM macros.
20413         (struct patopts): New struct.
20414         (struct exclude): Use it, as exclude patterns now come with options.
20415         (new_exclude): Support above changes.
20416         (new_exclude, add_exclude_file):
20417         Initial size must now be a power of two to simplify overflow checking.
20418         (free_exclude, fnmatch_no_wildcards): New function.
20419         (excluded_filename): No longer requires options arg, as the options
20420         are determined by add_exclude.  Now returns bool, not int.
20421         (excluded_filename, add_exclude):
20422         Add support for the fancy new exclusion options.
20423         (add_exclude, add_exclude_file): Now takes int options arg.
20424         Check for arithmetic overflow when computing sizes.
20425         (add_exclude_file): xrealloc might modify errno, so don't
20426         realloc until after errno might be used.
20427
20428         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
20429         New macros.
20430         (free_exclude): New decl.
20431         (add_exclude, add_exclude_file): Now takes int options arg.
20432         (excluded_filename): No longer requires options arg, as the options
20433         are determined by add_exclude.  Now returns bool, not int.
20434
20435 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20436
20437         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
20438
20439 2001-08-27  Jim Meyering  <meyering@lucent.com>
20440
20441         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
20442
20443         * lib/version-etc.c (N_): Remove definition.
20444         Revert most of last change.
20445         Instead, simply don't mark the `Copyright...' string for translation.
20446         Based on advice from Paul Eggert.
20447
20448         * lib/strtoxmax.c: Tweak comment.
20449
20450 2001-08-26  Jim Meyering  <meyering@lucent.com>
20451
20452         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
20453
20454         * m4/xstrtoimax.m4: New file.
20455         * m4/xstrtoumax.m4: Add comments explaining why we
20456         AC_REPLACE_FUNCS(strtol).
20457
20458 2001-08-26  Jim Meyering  <meyering@lucent.com>
20459
20460         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
20461         of copyright with `%s' so translators don't get an untranslated
20462         message in 2002.
20463         (COPYRIGHT_YEAR): Define.
20464         (version_etc): Use fprintf rather than fputs.
20465         Suggestion from Ulrich Drepper.
20466
20467         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
20468
20469         * lib/strtoll.c: New file, from GNU libc.
20470         * lib/xstrtoimax.c: New file.
20471
20472         * lib/xstrtol.h: Add xstrtoimax.
20473         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
20474         * lib/strtoimax.c: New file.  Likewise, but first define
20475         STRTOUXMAX_SIGNED.
20476
20477         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
20478         ...
20479         * lib/strtoxmax.c: ... then renamed to this.
20480
20481 2001-08-18  Paul Eggert  <eggert@twinsun.com>
20482
20483         * m4/inttypes.m4: Add AC_PREREQ(2.13).
20484         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
20485         (jm_AC_TYPE_INTMAX_T): New macro.
20486         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
20487
20488         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
20489
20490         * m4/longlong.m4: Renamed from ulonglong.m4.
20491         * m4/inttypes.m4: Renamed from inttypes_h.m4.
20492         * m4/uintmax_t.m4: Removed.
20493
20494 2001-08-13  Paul Eggert  <eggert@twinsun.com>
20495
20496         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
20497         Port to Solaris 8, where 'sed' requires a space after the 'r'
20498         command, and where sh dislikes "$/".  Clean up the spacing a bit.
20499         Redirect output to $tmp just once.
20500
20501 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
20502
20503         * lib/addext.c (<errno.h>): Include.
20504         (errno): Declare if not defined.
20505         (addext): Work correctly when pathconf returns -1 and leaves
20506         errno alone because there is no limit.  Also, work even if
20507         pathconf returns a value greater than SIZE_MAX.
20508
20509 2001-08-12  Jim Meyering  <meyering@lucent.com>
20510
20511         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
20512         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
20513         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
20514         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
20515         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
20516         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
20517         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
20518         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
20519         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
20520         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
20521         utime.m4, utimes.m4, xstrtoumax.m4:
20522         Quote the first argument in each use of AC_DEFUN.
20523
20524 2001-08-12  Jim Meyering  <meyering@lucent.com>
20525
20526         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
20527         Simply `return getcwd (NULL, 0);'.
20528         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
20529         Use 1300 as initial value for length, not PATH_MAX.
20530
20531         * lib/pathmax.h: Clean up cpp syntax.
20532
20533 2001-08-12  Jim Meyering  <meyering@lucent.com>
20534
20535         * lib/gettimeofday.c: New file.
20536         * lib/gtod.h: New file.
20537         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
20538
20539 2001-08-05  Jim Meyering  <meyering@lucent.com>
20540
20541         * m4/jm-macros.m4: Require autoconf-2.52.
20542
20543 2001-08-04  Jim Meyering  <meyering@lucent.com>
20544
20545         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
20546         stmt, to get in sync with glibc.
20547
20548 2001-08-03  Paul Eggert  <eggert@twinsun.com>
20549
20550         The following changes are from gettext 0.10.39 as maintained by
20551         Bruno Haible.
20552
20553         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
20554         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
20555         with inverted sense.  All uses changed.
20556
20557         * lib/mbswidth.c: Don't include <limits.h>.
20558         Include <stdlib.h> and <string.h> unconditionally.
20559         (iswcntrl, mbsinit, ISCNTRL): New macros.
20560         (mbsnwidth): Use K&R style function declarations.
20561         Don't bother checking for MB_LEN_MAX == 1, since the compiler
20562         can optimize it when MB_CUR_MAX == 1.
20563         The width of control characters is zero, not 1.
20564
20565 2001-08-03  Paul Eggert  <eggert@twinsun.com>
20566
20567         The following changes are from gettext 0.10.39 as maintained by
20568         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
20569
20570         * m4/codeset.m4: Upgrade to serial AM1.
20571         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
20572         all uses changed.  Quote first arg of AC_DEFUN.
20573         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
20574
20575         * m4/iconv.m4: Upgrade to serial AM2.
20576         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
20577         Add --with-libconv-prefix.
20578         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
20579         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
20580         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
20581         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
20582         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
20583
20584         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
20585         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
20586         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
20587         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
20588         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
20589         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
20590         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20591         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
20592         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
20593
20594         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
20595         string.h any more.
20596
20597         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
20598         not the default value.
20599
20600         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
20601         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
20602         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
20603         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
20604         Also check for iswcntrl, used for wcwidth fallback.
20605         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
20606         to Autoconf 2.13.
20607
20608 2001-08-03  Jim Meyering  <meyering@lucent.com>
20609
20610         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
20611         as it was in the original.  Reported by Paul Eggert.
20612
20613 2001-07-16  Jim Meyering  <meyering@lucent.com>
20614
20615         * m4/gettimeofday.m4: New file.
20616         Prompted by a report from Bernhard Baehr.
20617
20618 2001-07-15  Jim Meyering  <meyering@lucent.com>
20619
20620         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
20621         stuff. Now it's in ../Makefile.cfg.
20622
20623 2001-07-15  Jim Meyering  <meyering@lucent.com>
20624
20625         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
20626         (BUILT_SOURCES): Add unlocked-io.h.
20627         (io_functions): Define.
20628         (unlocked-io.h): New rule.
20629         (DISTCLEANFILES): Add unlocked-io.h.
20630         (all-local): Depend on unlocked-io.h, to ensure it is created.
20631
20632         * lib/unlocked-io.hin: New file
20633
20634         * lib/regex.c: Update from glibc.
20635
20636 2001-07-05  Jim Meyering  <meyering@lucent.com>
20637
20638         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
20639         recommendation.
20640         (libfetish_a_SOURCES): Put all .h files here instead.
20641         Remove a thus-exposed (better checks in automake) duplicate and
20642         two unnecessary .h files.
20643
20644 2001-07-04  Jim Meyering  <meyering@lucent.com>
20645
20646         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
20647         that generates jm-glibc-io.m4 so that it doesn't trigger any make
20648         distcheck failure.
20649
20650 2001-07-02  Jim Meyering  <meyering@lucent.com>
20651
20652         The following changes were prompted by suggestions from Bruno Haible.
20653
20654         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
20655         is now generated.
20656         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
20657         definition of EXTRA_DIST.
20658         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
20659         ensure that the generated file is created/updated whenever the list
20660         of $(unlocked_functions) is changed.
20661         (jm-glibc-io.m4): New rule.
20662         (unlocked-io.h): New rule -- currently unused.
20663
20664 2001-06-24  Jim Meyering  <meyering@lucent.com>
20665
20666         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
20667         unmatched right bracket, rather than kludging it with an extra,
20668         falsely-matching quote in a comment.  Patch by Akim Demaille.
20669
20670 2001-06-11  Jim Meyering  <meyering@lucent.com>
20671
20672         * lib/regex.c: Update from GNU libc.
20673
20674 2001-05-27  Jim Meyering  <meyering@lucent.com>
20675
20676         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
20677         Check for ut_type in struct utmp.
20678
20679 2001-05-27  Jim Meyering  <meyering@lucent.com>
20680
20681         * lib/readutmp.h (UT_TYPE): Define.
20682
20683 2001-05-24  Jim Meyering  <meyering@lucent.com>
20684
20685         * lib/argmatch.c: Include "quote.h".
20686         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
20687         quote function.  Reported by Göran Uddeborg.
20688
20689 2001-05-22  Jim Meyering  <meyering@lucent.com>
20690
20691         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
20692         now that we use the package-supplied version unconditionally.
20693         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
20694
20695 2001-05-21  Jim Meyering  <meyering@lucent.com>
20696
20697         * m4/regex.m4: Change a couple backticks to single quotes to avoid
20698         shell syntax errors.
20699
20700 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
20701
20702         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
20703
20704 2001-05-20  Paul Eggert  <eggert@twinsun.com>
20705
20706         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
20707         Don't bother to check library strftime, since
20708         we'll be using our own my_strftime function anyway.
20709         Define my_strftime instead of strftime.
20710
20711 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
20712
20713         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
20714         which is not yet declared.
20715
20716 2001-05-15  Jim Meyering  <meyering@lucent.com>
20717
20718         * m4/regex.m4: Use proper quoting so brackets appear in the test
20719         program.
20720         Reported by, and with help from, Bruno Haible.
20721
20722 2001-05-13  Jim Meyering  <meyering@lucent.com>
20723
20724         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
20725         undefined.
20726
20727 2001-05-11  Paul Eggert  <eggert@twinsun.com>
20728
20729         dirname code cleanup.  base_name now behaves more compatibly
20730         with POSIX basename when given file names that have trailing
20731         slashes, and similarly for dir_name.  Add new primitives
20732         base_len and dir_len.  Put the directory-name-related decls
20733         into dirname.h.
20734
20735         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
20736         * lib/backupfile.c (base_name): Likewise.
20737         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
20738         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
20739         * lib/makepath.c (strip_trailing_slashes): Likewise.
20740         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
20741         ISSLASH): Likewise.
20742         * lib/rename.c (strip_trailing_slashes): Likewise.
20743         * lib/same.c (base_name): Likewise.
20744         * lib/stripslash.c (ISSLASH): Likewise.
20745
20746         * lib/addext.c: Include <dirname.h> after size_t is defined.
20747         * lib/backupfile.c: Likewise.
20748
20749         * lib/addext.c (addext): Use base_len to trim redundant
20750         trailing slashes instead of doing it ourselves.
20751         But do not trim the last slash if it is not redundant.
20752
20753         * lib/backupfile.c (find_backup_file_name,
20754         max_backup_version): Use base_len instead of rolling it ourselves.
20755         Handle the case of "" and (on DOS) "C:" correctly.
20756
20757         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
20758         needed. Include <string.h>, <dirname.h>.
20759         (base_name): Allow file names ending in slashes, other than names
20760         that are all slashes.  In this case, return the basename followed
20761         by the slashes.  This is more general, and can be used in places
20762         where the original base_name purposely had an assertion failure.
20763         (base_len): New function.
20764
20765         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
20766         Do not include <assert.h>; no longer needed.
20767         Include xalloc.h.
20768         (memrchr): Remove decl.
20769         (dir_name_r): Remove.
20770         (dir_len): Renamed from dirlen.  All callers changed.
20771         Rewrite in terms of base_name, for simplicity and consistency.
20772         (dir_name): Never return NULL.  All callers changed.
20773         Do not include <stdlib.h> in test program; no longer needed.
20774         return 0; is fine for test program.
20775
20776         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
20777         New macros.
20778         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
20779
20780         * lib/path-concat.c (path_concat): Use base_len to compute
20781         base length, not strlen; this means we cannot rely on memcpy
20782         to null-terminate.
20783
20784         * lib/same.c (STREQ): Remove.
20785         (same_name): Handle the case where the basename ends in trailing '/'.
20786
20787         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
20788         a slash was stripped.  Do not strip the last slash after a
20789         file system prefix.
20790
20791 2001-05-11  Paul Eggert  <eggert@twinsun.com>
20792
20793         * lib/Makefile.am (libfetish_a_SOURCES):
20794         Add strftime.c, since we now compile it on all hosts.
20795
20796         * lib/strftime.c (my_strftime):
20797         Define to nstrftime if emacs, but only if my_strftime is not defined.
20798         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
20799         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
20800         Add one more extra argument: a nanoseconds value.
20801         All uses changed.
20802         (ns): New macro.
20803         (my_strftime function): Add %N format.
20804         (emacs_strftimeu): Renamed from emacs_strftime,
20805         with extra ut argument.
20806
20807 2001-05-09  Paul Eggert  <eggert@twinsun.com>
20808
20809         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
20810
20811 2001-04-21  Jim Meyering  <meyering@lucent.com>
20812
20813         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
20814         doesn't interfere.
20815
20816 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
20817
20818         * m4/ftruncate.m4: Check for chsize.
20819         Link with ftruncate.o unconditionally if ftruncate is missing.
20820         This was required when cross-compiling to i586-mingw32msvc.
20821
20822 2001-04-08  Jim Meyering  <meyering@lucent.com>
20823
20824         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
20825         recomputed; that's necessary when the offset spans a DST transition.
20826         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
20827
20828 2001-04-02  Jim Meyering  <meyering@lucent.com>
20829
20830         * lib/regex.h, regex.c: Update from GNU libc.
20831
20832 2001-03-24  Jim Meyering  <meyering@lucent.com>
20833
20834         * m4/jm-macros.m4: Require autoconf-2.49d.
20835
20836 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
20837
20838         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
20839
20840 2001-03-19  Paul Eggert  <eggert@twinsun.com>
20841
20842         * lib/version-etc.c (version_etc_copyright): Update to 2001.
20843
20844 2001-03-17  Jim Meyering  <meyering@lucent.com>
20845
20846         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
20847         now that the version in autoconf is equivalent.
20848         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
20849
20850         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
20851         Suggestion from Akim Demaille.
20852
20853         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
20854         (jm_PREREQ_TEMPNAME): New function.
20855
20856 2001-03-16  Paul Eggert  <eggert@twinsun.com>
20857
20858         * lib/tempname.c (uint64_t): Define to uintmax_t if
20859         not defined, and if UINT64_MAX is not defined.
20860         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
20861         Reported by John David Anglin.
20862
20863 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
20864
20865         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
20866         resolve alias if codeset is empty.
20867         * lib/config.charset (BeOS): Use wildcard syntax.
20868
20869 2001-03-13  Jim Meyering  <meyering@lucent.com>
20870
20871         * lib/path-concat.c (path_concat)
20872         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
20873         concatenating e.g., `C:' and `foo'.
20874         From Bruno Haible.
20875
20876 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
20877
20878         * lib/localcharset.c (locale_charset): Don't use
20879         setlocale(LC_CTYPE,NULL). Don't return NULL.
20880         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
20881
20882 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
20883
20884         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
20885         support for DOS/DJGPP.
20886
20887 2001-03-01  Paul Eggert  <eggert@twinsun.com>
20888
20889         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
20890         lacks mkstemp.  Compile our own tempname.c if we compile our own
20891         mkstemp.c, as mkstemp relies on tempname.
20892
20893 2001-03-01  Jim Meyering  <meyering@lucent.com>
20894
20895         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
20896         AH_VERBATIM really does output its argument verbatim.
20897
20898 2001-02-28  Paul Eggert  <eggert@twinsun.com>
20899
20900         * lib/Makefile.am (libfetish_a_SOURCES):
20901         Add dup-safer.c, fopen-safer.c.
20902         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
20903
20904         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h,
20905         lib/unistd-safer.h: New files.
20906
20907 2001-02-25  Paul Eggert  <eggert@twinsun.com>
20908
20909         The mkstemp replacement is taken from glibc 2.2.2, with some
20910         portability fixes for use outside glibc, as follows:
20911
20912         * lib/tempname.c (struct_stat64): New macro.
20913         (direxists, __gen_tempname): Use it.
20914         This avoids a portability problem with Solaris 8.
20915
20916         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
20917         (<stddef.h>, <stdint.h>, <string.h>):
20918         Include only if STDC_HEADERS || _LIBC.
20919         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
20920         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
20921         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
20922         (__set_errno): Define this macro if <errno.h> doesn't.
20923         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
20924         Define these macros if <stdio.h> doesn't.
20925         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
20926         Define these macros if <sys/stat.h>
20927         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
20928         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
20929         __xstat64): Define if not _LIBC.
20930         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
20931         (__gen_tempname): Invoke gettimeofday only if
20932         HAVE_GETTIMEOFDAY || _LIBC;
20933         otherwise, fall back on plain "time".
20934         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
20935
20936         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
20937
20938         * lib/mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
20939
20940 2001-02-18  Paul Eggert  <eggert@twinsun.com>
20941
20942         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
20943
20944 2001-02-17  Paul Eggert  <eggert@twinsun.com>
20945
20946         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
20947         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
20948         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
20949         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
20950
20951 2001-02-17  Paul Eggert  <eggert@twinsun.com>
20952
20953         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
20954         Remove workaround macros for hosts that have mbrtowc but not
20955         mbstate_t, as we now insist on proper declarations for both
20956         before using mbrtowc.
20957
20958 2001-02-17  Jim Meyering  <meyering@lucent.com>
20959
20960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
20961         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
20962         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
20963         UnixWare 7.1.1.
20964
20965         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
20966         rather than AC_CACHE_VAL.
20967
20968 2001-02-17  Jim Meyering  <meyering@lucent.com>
20969
20970         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
20971         around included file name.
20972
20973         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
20974
20975         * lib/strftime.c: Update from GNU libc (the only changes were to
20976         comments).
20977
20978 2001-02-17  Jim Meyering  <meyering@lucent.com>
20979
20980         * lib/regex.c: Update from libc.
20981
20982 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
20983
20984         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
20985         clash.
20986
20987 2001-02-16  Paul Eggert  <eggert@twinsun.com>
20988
20989         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
20990         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
20991         Reported by Mark Hounschell via Paul Eggert.
20992
20993 2001-02-07  Jim Meyering  <meyering@lucent.com>
20994
20995         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
20996
20997 2001-02-05  Jim Meyering  <meyering@lucent.com>
20998
20999         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
21000         it includes the patch required for `large file' support with at least
21001         HP-UX's 10.20 /bin/cc.
21002
21003 2001-02-03  Jim Meyering  <meyering@lucent.com>
21004
21005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
21006         AS_IF, now that it works once again (mysteriously).
21007         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
21008
21009 2001-01-30  Jim Meyering  <meyering@lucent.com>
21010
21011         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
21012         * m4/chown.m4: Rename conftestchown to conftest.chown.
21013         * m4/rename.m4: s/conftestdir/conftest.d1/ and
21014         s/conftestdir2/conftest.d2/.
21015         * m4/utimes.m4: s/conftestdata/conftest.data/
21016         Inspired by Pavel Roskin's change in autoconf.
21017
21018 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
21019
21020         * lib/config.charset: Update for FreeBSD 4.2.
21021
21022 2001-01-27  Jim Meyering  <meyering@lucent.com>
21023
21024         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
21025         a use of AS_IF.
21026         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
21027
21028 2001-01-26  Jim Meyering  <meyering@lucent.com>
21029
21030         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
21031         quotearg.c includes it.
21032
21033 2001-01-26  Jim Meyering  <meyering@lucent.com>
21034
21035         * lib/quotearg.c: Include stddef.h.
21036         * lib/quote.c: Include stddef.h.
21037         Reported by Axel Kittenberger.
21038
21039         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
21040         line in double quotes so that it evokes a better diagnostic.
21041         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
21042         Reported by Axel Kittenberger.
21043
21044 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
21045
21046         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
21047         as if it was a `charset'.
21048
21049 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
21050
21051         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
21052         has const.
21053
21054 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
21055
21056         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
21057         to avoid a warning.  Add back 'const' to inptr.
21058
21059 2001-01-20  Jim Meyering  <meyering@lucent.com>
21060
21061         Be sure that headers are checked before used in code compiled
21062         for the type checks.
21063         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
21064         In place of that, invoke jm_CHECK_ALL_TYPES.
21065         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
21066         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
21067         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
21068         The check for ssize_t was mistakenly run before the test for unistd.h.
21069
21070         The configure-time check for stdbool.h was missing.
21071         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
21072         (jm_PREREQ_HASH): New function.
21073
21074 2001-01-17  Jim Meyering  <meyering@lucent.com>
21075
21076         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
21077         for autoconf-2.49c.
21078         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
21079
21080 2001-01-16  Jim Meyering  <meyering@lucent.com>
21081
21082         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
21083         From Bruno Haible.
21084
21085 2001-01-14  Jim Meyering  <meyering@lucent.com>
21086
21087         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
21088         foo and bar.  Create conftestdir/ in the script, not in the C code.
21089         Remove directories in the script, not in the C code.
21090         Remove conftestdir{,2} before trying to create the directory.
21091         Make the entire configure script fail if the mkdir fails.
21092
21093 2001-01-14  Jim Meyering  <meyering@lucent.com>
21094
21095         * lib/rename.c: New file.  From Volker Borchert.
21096         Include stdlib.h, string.h or strings.h, and xalloc.h.
21097         Use strip_trailing_slashes rather than open-coding it.
21098
21099 2001-01-03  Paul Eggert  <eggert@twinsun.com>
21100
21101         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
21102
21103 2001-01-03  Jim Meyering  <meyering@lucent.com>
21104
21105         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
21106         of local `inptr' to avoid warning with some system declarations of
21107         iconv.
21108
21109 2001-01-02  Volker Borchert  <bt@teknon.de>
21110
21111         * m4/rename.m4: New file.
21112         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
21113
21114 2001-01-01  Jim Meyering  <meyering@lucent.com>
21115
21116         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
21117         even on systems with utmpx.h.  It's necessary for the declaration of
21118         utmp's ut_user member.  Reported by Andreas Jaeger.
21119
21120         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
21121         available. They are required for the declarations of getgrgid and
21122         getpwuid resp.
21123         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
21124         Reported by Andreas Jaeger.
21125
21126 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
21127
21128         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
21129         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
21130         so `make install' also works in VPATH builds.
21131
21132 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
21133
21134         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
21135         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
21136         can be used in subdirectories.
21137
21138 2000-12-29  Paul Eggert  <eggert@twinsun.com>
21139
21140         * lib/modechange.c: Do not assume that mode_t uses the
21141         traditional octal encoding.  E.g. "chmod 1 FOO" should set
21142         the other-execute bit of FOO even if S_IXOTH != 1.
21143
21144         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
21145         WOTH, XOTH, ALLM): New macros.
21146         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
21147          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
21148         Use them.
21149         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
21150         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
21151         (mode_compile):
21152         No need to use uintmax_t; unsigned long is long enough.
21153         Don't bother to get suffix since we don't use it.
21154
21155 2000-12-26  Jim Meyering  <meyering@lucent.com>
21156
21157         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
21158         better with autoheader.
21159
21160 2000-12-24  Jim Meyering  <meyering@lucent.com>
21161
21162         * lib/hash.c (is_prime): Return explicit boolean values.
21163         (hash_get_first): Return NULL to appease Irix5.6's 89.
21164         Reported by Nelson Beebe.
21165
21166 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
21167
21168         * lib/localcharset.c (locale_charset): Add support for Win32.
21169
21170 2000-12-18  Paul Eggert  <eggert@twinsun.com>
21171
21172         * lib/physmem.h, physmem.c: New files.
21173
21174         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
21175         (noinst_HEADERS): Add physmem.h.
21176
21177         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
21178         't' for compatibility with Solaris 8 sort.
21179
21180 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
21181
21182         * lib/config.charset: Add support for BeOS.
21183
21184 2000-12-17  Jim Meyering  <meyering@lucent.com>
21185
21186         * m4/dos.m4 (jm_AC_DOS): New file and macro.
21187         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
21188
21189 2000-12-16  Jim Meyering  <meyering@lucent.com>
21190
21191         This bug had a serious impact on chown: `chown N:M FILE' (for integer
21192         N and M) would have treated it like `chown N:N FILE'.
21193
21194         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
21195
21196 2000-12-16  Jim Meyering  <meyering@lucent.com>
21197
21198         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
21199         SHELLS_FILE to a file name that's useful on djgpp systems.
21200         Include stdlib.h.
21201         (ADDITIONAL_DEFAULT_SHELLS): Define.
21202         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
21203         Based mostly on a patch from Prashant TR.
21204
21205 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
21206
21207         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
21208         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
21209         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
21210
21211 2000-12-08  Andreas Schwab  <schwab@suse.de>
21212
21213         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
21214         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
21215
21216 2000-12-07  Jim Meyering  <meyering@lucent.com>
21217
21218         * lib/stripslash.c (ISSLASH): Define.
21219         (strip_trailing_slashes): Use ISSLASH rather than comparing against
21220         `/'.
21221         From Prashant TR.
21222
21223         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
21224         (dir_name_r): Declare this function as static.
21225         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
21226         manifest itself on a name containing a mix of slashes and
21227         backslashes.
21228         Make this function work with names starting with a DOS-style
21229         drive letter and colon prefix.
21230         (dir_name): Append `.' if necessary.
21231         Based mostly on patches from Prashant TR and Eli Zaretskii.
21232
21233         * lib/dirname.h (dir_name_r): Remove prototype.
21234
21235 2000-12-06  Paul Eggert  <eggert@twinsun.com>
21236
21237         * m4/off_t-format.m4: Remove this file.
21238         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
21239
21240 2000-12-06  Jim Meyering  <meyering@lucent.com>
21241
21242         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
21243         replacement strtoull, we may well need the replacement strtoul, too.
21244         Check for declarations of strtoul and strtoull.
21245         Check for strtol.  Mainly as a cue to cause automake to include
21246         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
21247         Check for limits.h -- strtol.c needs it.
21248
21249 2000-12-05  Jim Meyering  <meyering@lucent.com>
21250
21251         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
21252
21253 2000-12-04  Jim Meyering  <meyering@lucent.com>
21254
21255         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
21256         Also include memory.h, stdlib.h, unistd.h if appropriate.
21257         Reported by Andreas Jaeger (conflicting declaration of malloc).
21258
21259 2000-12-02  Jim Meyering  <meyering@lucent.com>
21260
21261         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
21262         * m4/jm-macros.m4 (jm_MACROS): require it.
21263
21264 2000-12-02  Jim Meyering  <meyering@lucent.com>
21265
21266         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
21267
21268 2000-12-01  Paul Eggert  <eggert@twinsun.com>
21269
21270         * lib/memrchr.c: Include <config.h> before any system include file.
21271
21272 2000-11-30  Jim Meyering  <meyering@lucent.com>
21273
21274         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
21275
21276 2000-11-30  Jim Meyering  <meyering@lucent.com>
21277
21278         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
21279
21280 2000-11-29  Paul Eggert  <eggert@twinsun.com>
21281
21282         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
21283
21284 2000-11-26  Jim Meyering  <meyering@lucent.com>
21285
21286         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
21287
21288 2000-11-22  Paul Eggert  <eggert@twinsun.com>
21289
21290         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
21291         size of (size_t) -1; it's not portable.
21292
21293 2000-11-17  Jim Meyering  <meyering@lucent.com>
21294
21295         * lib/strstr.c: Update from GNU libc.
21296
21297 2000-11-17  Akim Demaille  <akim@epita.fr>
21298
21299         * lib/obstack.h: Formatting changes.
21300         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
21301         prevent type checking.
21302         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
21303         cast the value to (void *): assigning a `foo *' to a `void *'
21304         variable is valid.
21305         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
21306
21307 2000-11-16  Jim Meyering  <meyering@lucent.com>
21308
21309         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
21310
21311 2000-11-11  Jim Meyering  <meyering@lucent.com>
21312
21313         * lib/error.c: Add a couple #includes, merging from GNU libc version.
21314
21315 2000-11-10  Jim Meyering  <meyering@lucent.com>
21316
21317         * lib/obstack.h: Update from GNU libc.
21318         * lib/obstack.c: Likewise.
21319
21320 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
21321
21322         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
21323
21324 2000-11-06  Paul Eggert  <eggert@twinsun.com>
21325
21326         * lib/getusershell.c (setusershell): Use rewind rather than
21327         fseek/fseeko, to avoid configuration hassles with fseeko.
21328         Don't bother opening SHELLS_FILE if shellstream is NULL;
21329         it's not necessary.
21330
21331 2000-11-05  Jim Meyering  <meyering@lucent.com>
21332
21333         * lib/makepath.h (make_dir): Declare.
21334         * lib/makepath.c (make_dir): Remove `static' attribute.
21335         Tweak a comment.
21336
21337 2000-11-04  Jim Meyering  <meyering@lucent.com>
21338
21339         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
21340
21341 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
21342
21343         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
21344         last one in a bucket, advance to the next bucket.
21345
21346 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
21347
21348         * lib/fnmatch.c: Do not comment out all the code if we are using
21349         the GNU C library, because in some cases we are replacing buggy
21350         code in the GNU C library itself.
21351
21352 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
21353
21354         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
21355         (regex_compile): Catch bogus \(\1\).
21356
21357 2000-10-30  Paul Eggert  <eggert@twinsun.com>
21358
21359         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
21360         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
21361         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
21362
21363 2000-10-30  Paul Eggert  <eggert@twinsun.com>
21364
21365         * lib/error.h, getline.h, modechange.h:
21366         Remove "2000" from Copyright line, as the file hasn't been
21367         changed this year other than in the copyright notice.
21368
21369         * lib/xalloc.h: Add "2000" to Copyright line, as this file
21370         was changed this year.
21371
21372 2000-10-29  Jim Meyering  <meyering@lucent.com>
21373
21374         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
21375         renaming.
21376         * m4/ls-mntd-fs.m4: Likewise
21377
21378 2000-10-29  Jim Meyering  <meyering@lucent.com>
21379
21380         * lib/xstat.in: Fix grammar in comment.
21381
21382 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
21383
21384         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
21385         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
21386         doesn't define __restrict_arr.
21387
21388 2000-10-28  Jim Meyering  <meyering@lucent.com>
21389
21390         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
21391         (jm_PREREQ_MEMCHR): New function.
21392
21393 2000-10-28  Jim Meyering  <meyering@lucent.com>
21394
21395         * lib/memchr.c: Update from libc.
21396         Adjust for portability:
21397         [HAVE_STDLIB_H]: Include stdlib.h.
21398         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
21399         Undef __memchr, too.
21400         [!weak_alias]: Define __memchr to memchr.
21401
21402         * lib/regex.c: Update from libc.
21403         * lib/regex.h: Likewise.
21404         * lib/getopt1.c: Likewise.
21405         * lib/memcmp.c: Likewise.
21406
21407         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
21408         Avoid using fseek, when possible -- it's broken by design.
21409         Patch by Ulrich Drepper.
21410
21411 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
21412
21413         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
21414         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
21415         Giving in to popular pressure to shut up the compiler with casts.
21416
21417 2000-10-26  Jim Meyering  <meyering@lucent.com>
21418
21419         * lib/strftime.c: Update from libc.
21420
21421 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
21422
21423         * regex.c: More `unsigned char' -> `re_char' changes.
21424         Also change several `int' into `re_wchar_t'.
21425         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
21426         (PUSH_FAILURE_POINTER): Don't cast any more.
21427         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
21428         We want GCC to complain, since this piece of code makes
21429         re_match non-reentrant, which *should* be fixed.
21430         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
21431         (EXTEND_BUFFER): Use RETALLOC.
21432         (SET_LIST_BIT): Don't cast.
21433         (re_wchar_t): New type.
21434         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
21435         that those two functions will always properly return.
21436         (IMMEDIATE_QUIT_CHECK): Cast to void.
21437         (analyse_first): Use recursion rather than an explicit stack.
21438         (re_compile_fastmap): Can't fail anymore.
21439         (re_search_2): Don't check re_compile_fastmap for failure.
21440         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
21441         Now also sets the new value (passed in a new argument).
21442         (re_match_2_internal): Use it.
21443         Also, use a new var `reg' of type size_t when looping through regs
21444         rather than reuse the inappropriate `mcnt'.
21445
21446 2000-10-25  Jim Meyering  <meyering@lucent.com>
21447
21448         * lib/obstack.c: Update from libc.
21449
21450 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
21451
21452         * regex.c (regex_compile): Change the way of handling a range from
21453         a char less than 256 to a char not less than 256.
21454
21455 2000-10-24  Andrew Innes  <andrewi@gnu.org>
21456
21457         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
21458         NT-Emacs only.
21459         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
21460         so that re_search functions only quit when callers expect them to.
21461
21462 2000-10-23  Jim Meyering  <meyering@lucent.com>
21463
21464         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
21465         wrong.  That set_locale call must not have any side effects.
21466         From Paul Eggert.
21467
21468 2000-10-22  Jim Meyering  <meyering@lucent.com>
21469
21470         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
21471         [CYCLIC]: Remove now-unused definition.
21472
21473         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
21474         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
21475         Suggestion from Ulrich Drepper.
21476
21477 2000-10-21  Jim Meyering  <meyering@lucent.com>
21478
21479         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
21480         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
21481         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
21482
21483 2000-10-21  Jim Meyering  <meyering@lucent.com>
21484
21485         * lib/dirname.c (memrchr): Declare if necessary.
21486         (dir_name): Remove the restriction that there be no
21487         trailing slashes.  Now, this code skips past them, effectively
21488         ignoring them.
21489         [TEST_DIRNAME] (main): New unit tests.
21490
21491         * lib/memrchr.c: New file from GNU libc.
21492         Undef __memrchr, too.
21493         [!weak_alias]: Define __memrchr to memrchr.
21494         Guard weak_alias use with `#ifdef weak_alias'.
21495
21496 2000-10-21  Jim Meyering  <meyering@lucent.com>
21497
21498         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
21499         (dir_name): Use dir_name_r.
21500         * lib/dirname.h (dir_name_r): Declare it.
21501
21502 2000-10-17  Jim Meyering  <meyering@lucent.com>
21503
21504         * lib/quote.h (PARAMS): Define and use.
21505         Reported by Akim Demaille.
21506
21507         * lib/getopt.c: Update from libc.
21508
21509 2000-10-16  Jim Meyering  <meyering@lucent.com>
21510
21511         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
21512         setlocale.
21513         From Jan Fedak.
21514
21515 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
21516
21517         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
21518
21519 2000-09-25  Jim Meyering  <meyering@lucent.com>
21520
21521         * lib/md5.h (rol): Define (from GnuPG).
21522
21523         * lib/sha.c: Give credit (GnuPG) where due.
21524         (M): Use rol rather than open-coding it.
21525         Add a FIXME comment.
21526
21527 2000-09-21  Jim Meyering  <meyering@lucent.com>
21528
21529         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
21530         Reported by Michael Stone.
21531
21532 2000-09-20  Jim Meyering  <meyering@lucent.com>
21533
21534         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
21535         (noinst_HEADERS): Add sha.h.
21536         Based on code from Scott G. Miller and from GnuPG.
21537
21538 2000-09-18  Jim Meyering  <meyering@lucent.com>
21539
21540         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
21541         LIBS. Otherwise, everyone ends up linking with -lelf for some
21542         configurations.
21543         Reported by Mike Stone.
21544
21545 2000-09-15  Jim Meyering  <meyering@lucent.com>
21546
21547         * lib/regex.c: Update from libc.
21548
21549 2000-09-10  Jim Meyering  <meyering@lucent.com>
21550
21551         * lib/getopt.c (_getopt_internal): Update from glibc.
21552
21553 2000-09-09  Jim Meyering  <meyering@lucent.com>
21554
21555         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
21556         think it should be used as a general replacement for isascii.
21557         * lib/fnmatch.c: Likewise.
21558         * lib/mbswidth.c: Likewise
21559         * lib/regex.c: Likewise.
21560
21561         Don't use atoi.
21562         * lib/userspec.c: Include sys/param.h and limits.h.
21563         Include xstrtol.h.
21564         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21565         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
21566         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
21567         UID, GID.  Check range.
21568
21569 2000-09-06  Jim Meyering  <meyering@lucent.com>
21570
21571         * lib/getopt.c (_getopt_internal): Update from glibc.
21572
21573 2000-08-30  Jim Meyering  <meyering@lucent.com>
21574
21575         * lib/strftime.c: Merge in changes from GNU libc.
21576
21577 2000-08-26  Jim Meyering  <meyering@lucent.com>
21578
21579         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
21580         * m4/fpending.m4: New file.
21581
21582 2000-08-26  Jim Meyering  <meyering@lucent.com>
21583
21584         * lib/closeout.c: Include "__fpending.h".
21585         (close_stdout_status): Return right away if there's nothing to flush.
21586
21587         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
21588         * lib/__fpending.c: New file.
21589         * lib/__fpending.h: New file.
21590
21591 2000-08-20  Jim Meyering  <meyering@lucent.com>
21592
21593         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
21594         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
21595         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
21596
21597 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
21598
21599         Improve fileutils installation on systems where running
21600         programs (like install) can't be unlinked.
21601         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
21602         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
21603
21604 2000-08-07  Paul Eggert  <eggert@twinsun.com>
21605
21606         Standardize on "memory exhausted" instead of "Memory exhausted"
21607         or "virtual memory exhausted".
21608         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
21609         "virtual memory exhausted".
21610         * lib/same.c (same_name): Invoke xalloc_die instead of printing
21611         our own message.
21612         * lib/userspec.c (parse_user_spec): Likewise.
21613         * lib/bumpalloc.h: comment fix
21614         * lib/same.c, userspec.c: Include xalloc.h.
21615
21616         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
21617         not char *const and pointing to a constant array.
21618         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
21619         (xrealloc): Comment fix.
21620
21621         * lib/userspec.c (parse_user_spec):
21622         Don't translate a message until just before returning,
21623         to avoid unnecessary translation.
21624
21625 2000-08-07  Jim Meyering  <meyering@lucent.com>
21626
21627         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
21628         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
21629         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
21630         getgroups.c, gethostname.c, getopt.h, group-member.c,
21631         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
21632         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
21633         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
21634         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
21635         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
21636         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
21637         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
21638         yesno.c: Back out Copyright date changes for each file with no change
21639         this year.  This eases coordination with other programs using the same
21640         source code modules.  From Paul Eggert.
21641
21642 2000-08-06  Paul Eggert  <eggert@twinsun.com>
21643
21644         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
21645         not char, for compatibility with glibc 2.1.3 strftime.c.
21646
21647 2000-08-03  Greg McGary  <greg@mcgary.org>
21648
21649         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
21650         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
21651         (EXTEND_BUFFER): Use them.
21652
21653 2000-08-01  Jim Meyering  <meyering@lucent.com>
21654
21655         * lib/dirname.c (ISSLASH): Define.
21656         (BACKSLASH_IS_PATH_SEPARATOR): Define.
21657         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
21658         both `\' and `/' may be use as path separators.
21659         Based on a patch from Prashant TR.
21660
21661 2000-07-31  Paul Eggert  <eggert@twinsun.com>
21662
21663         * lib/quotearg.c (quotearg_n_options): Don't make the initial
21664         slot vector a constant, since it might get modified.
21665
21666 2000-07-31  Jim Meyering  <meyering@lucent.com>
21667
21668         * lib/xmalloc.c: Use `virtual memory exhausted', not
21669         `Memory exhausted'.
21670         * lib/obstack.c (print_and_abort): Likewise.
21671
21672 2000-07-30  Paul Eggert  <eggert@twinsun.com>
21673
21674         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
21675         buffer, so that the caller can always quote one small
21676         component of a "memory exhausted" message in slot 0.
21677         From a suggestion by Jim Meyering.
21678
21679 2000-07-30  Jim Meyering  <meyering@lucent.com>
21680
21681         * lib/makepath.c (make_path): Quote the other instance, too.
21682
21683         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
21684         (STATIC_BUF_SIZE): Define.
21685         (quotearg_n_options): Use only statically allocated storage when
21686         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
21687         than STATIC_BUF_SIZE.
21688
21689 2000-07-29  Jim Meyering  <meyering@lucent.com>
21690
21691         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
21692         * lib/dirname.c (dir_name): Likewise.
21693
21694         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
21695         `/'.
21696
21697         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
21698         (dir_name): Assert that there are no trailing slashes.
21699
21700 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
21701
21702         * lib/mbswidth.h (mbswidth): Add a flags argument.
21703         (mbswidth): New declaration.
21704         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
21705         * lib/mbswidth.c (mbswidth): Add a flags argument.
21706         (mbsnwidth): New function.
21707
21708 2000-07-24  Jim Meyering  <meyering@lucent.com>
21709
21710         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
21711
21712 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21713
21714         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
21715
21716 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21717
21718         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
21719         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
21720         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
21721         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
21722         invoke multibyte primitives.
21723
21724 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21725
21726         * lib/quotearg.c:
21727         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
21728         so that mbstate_t is always defined.
21729
21730         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
21731         be 1 in at least one GCC installation, and this configuration
21732         error is likely to be common.  Ignoring MB_LEN_MAX hurts
21733         performance on hosts that have mbrtowc but have only unibyte
21734         locales, but I assume these hosts are rare.
21735
21736 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21737
21738         * lib/mbswidth.c (_XOPEN_SOURCE):
21739         Don't define; this causes problems on Solaris 7.
21740         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
21741
21742 2000-07-23  Jim Meyering  <meyering@lucent.com>
21743
21744         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
21745         too: getgrgid, getpwuid, getuid.
21746
21747 2000-07-23  Jim Meyering  <meyering@lucent.com>
21748
21749         * lib/basename.c (base_name): Add an assertion.
21750
21751 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
21752
21753         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
21754         shadow its mbsinit function.
21755
21756 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
21757
21758         * lib/mbswidth.h: New file.
21759         * lib/mbswidth.c: New file.
21760         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
21761         (noinst_HEADERS): Add mbswidth.h.
21762
21763 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
21764
21765         * lib/config.charset: Add support for FreeBSD. Improve support for
21766         HP-UX and IRIX 6.
21767
21768 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
21769
21770         * m4/mbswidth.m4: New file.
21771         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
21772
21773 2000-07-15  Jim Meyering  <meyering@lucent.com>
21774
21775         * lib/makepath.c: Include quote.h.
21776         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
21777         corresponding argument in a `quote (...)' call.
21778         Give better diagnostics.
21779
21780         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
21781         (noinst_HEADERS): Add quote.h.
21782
21783         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
21784         from tar's src/misc.c.
21785         * lib/quote.h: New file.  Prototypes for same.
21786
21787 2000-07-14  Paul Eggert  <eggert@twinsun.com>
21788
21789         From a suggestion by Bruno Haible.
21790         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
21791         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
21792         to decide whether to define the BeOS workaround macro;
21793         this adjusts to the change to AC_MBSTATE_T.
21794
21795 2000-07-14  Jim Meyering  <meyering@lucent.com>
21796
21797         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
21798         jm_AC_TYPE_UINTMAX_T.
21799
21800 2000-07-13  Paul Eggert  <eggert@twinsun.com>
21801
21802         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
21803
21804         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
21805         quotearg_buffer_restyled): Add support for
21806         clocale_quoting_style.  Undo previous change to
21807         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
21808         and "{RIGHT QUOTATION MARK}" msgids.
21809
21810 2000-07-10  Paul Eggert  <eggert@twinsun.com>
21811
21812         From a suggestion by Bruno Haible.
21813         * m4/mbstate_t.m4 (AC_MBSTATE_T):
21814         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
21815         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
21816         and mbstate_t, to a single-part test that simply defines mbstate_t.
21817         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
21818         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
21819
21820 2000-07-10  Jim Meyering  <meyering@lucent.com>
21821
21822         * m4/strerror_r.m4: Mirror the correction made in autoconf.
21823
21824         * m4/gnu-source.m4: Output to confdefs.h directly.
21825         Suggestion from Akim Demaille.
21826
21827 2000-07-09  Paul Eggert  <eggert@twinsun.com>
21828
21829         The old behavior of quoting `like this' doesn't look good with
21830         newer, ISO-style fonts.  See:
21831         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
21832
21833         Instead, quote "like this" by default.  Let the translator
21834         tailor the locale-specific quoting behavior by providing
21835         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
21836
21837         * lib/quotearg.c (N_): New macro.
21838         (gettext_default): New function.
21839         (quotearg_buffer_restyled): Use
21840         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
21841         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
21842
21843 2000-07-09  Jim Meyering  <meyering@lucent.com>
21844
21845         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
21846         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
21847
21848         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
21849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
21850
21851 2000-07-09  Jim Meyering  <meyering@lucent.com>
21852
21853         * lib/Most files: Update copyright dates to include 2000.
21854
21855 2000-07-08  Jim Meyering  <meyering@lucent.com>
21856
21857         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
21858         if not defined.
21859         (xgethostname): Remove now-unnecessary #ifdef.
21860         Move declaration of `err' into loop where it's used.
21861
21862 2000-07-05  Paul Eggert  <eggert@twinsun.com>
21863         and Bruno Haible  <haible@clisp.cons.org>
21864
21865         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
21866         only if the test for an object-type mbstate_t fails.  This
21867         prevents us from mistakenly reporting that mbstate_t is a
21868         system object type after we "#define mbstate_t int" to work
21869         around its lack.
21870
21871 2000-07-05  Paul Eggert  <eggert@twinsun.com>
21872         and Bruno Haible  <haible@clisp.cons.org>
21873
21874         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
21875
21876 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
21877
21878         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
21879         to strerror_r.
21880         Include <ctype.h> for use of isalpha.
21881
21882 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
21883
21884         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
21885         by allocating a larger buffer. Test the gethostname return value for
21886         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
21887         returns an error and ENAMETOOLONG isn't defined.
21888
21889 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
21890
21891         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
21892         dimension.
21893
21894 2000-07-04  Jim Meyering  <meyering@lucent.com>
21895
21896         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
21897         of the deprecated AC_CHECKING.
21898
21899 2000-07-04  Jim Meyering  <meyering@lucent.com>
21900
21901         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
21902         Reported by Bruno Haible.
21903
21904 2000-07-04  Jim Meyering  <meyering@lucent.com>
21905
21906         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
21907         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
21908         lacks mbrtowc.
21909
21910 2000-07-03  Paul Eggert  <eggert@twinsun.com>
21911
21912         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
21913         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
21914
21915 2000-07-03  Paul Eggert  <eggert@twinsun.com>
21916         and Bruno Haible  <haible@clisp.cons.org>
21917
21918         * lib/quotearg.c (mbrtowc):
21919         Assign to *pwc, and return 1 only if result is nonzero.
21920         (iswprint): Use ISPRINT when substituting our own mbrtowc.
21921
21922 2000-07-03  Jim Meyering  <meyering@lucent.com>
21923
21924         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
21925
21926 2000-07-03  Jim Meyering  <meyering@lucent.com>
21927
21928         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
21929         This is necessary to get a definition of e.g., UTMP_FILE on
21930         HP-UX 10.20.
21931         From Bob Proulx.
21932
21933 2000-07-02  Jim Meyering  <meyering@lucent.com>
21934
21935         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
21936
21937         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
21938         AC_LIBOBJ(function_name).
21939         * m4/chown.m4: Likewise.
21940         * m4/fnmatch.m4: Likewise.
21941         * m4/ftruncate.m4: Likewise.
21942         * m4/getgroups.m4: Likewise.
21943         * m4/getline.m4: Likewise.
21944         * m4/group-member.m4: Likewise.
21945         * m4/jm-macros.m4: Likewise.
21946         * m4/lstat.m4: Likewise.
21947         * m4/malloc.m4: Likewise.
21948         * m4/memcmp.m4: Likewise.
21949         * m4/nanosleep.m4: Likewise.
21950         * m4/putenv.m4: Likewise.
21951         * m4/realloc.m4: Likewise.
21952         * m4/regex.m4: Likewise.
21953         * m4/stat.m4: Likewise.
21954         * m4/strftime.m4: Likewise.
21955
21956 2000-07-02  Jim Meyering  <meyering@lucent.com>
21957
21958         * lib/quotearg.c (mbstate_t): Don't define here.
21959
21960 2000-07-02  Jim Meyering  <meyering@lucent.com>
21961
21962         * lib/nanosleep.c (SIGCONT): Define if not already defined.
21963
21964 2000-07-01  Jim Meyering  <meyering@lucent.com>
21965
21966         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
21967
21968 2000-07-01  Jim Meyering  <meyering@lucent.com>
21969
21970         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
21971         problem.
21972
21973 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
21974
21975         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
21976         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
21977
21978 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
21979
21980         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
21981         per change in ../m4/ls-mntd-fs.m4.
21982         (read_filesystem_list): Ignore symbolic links.
21983
21984 2000-06-29  Jim Meyering  <meyering@lucent.com>
21985
21986         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
21987         for declaration of strcmp.
21988
21989         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
21990
21991         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
21992         Avoid warning by casting result to `char *' to remove `const'.
21993
21994 2000-06-28  Jim Meyering  <meyering@lucent.com>
21995
21996         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
21997         included by quotearg.c, for which we perform this test.  From
21998         Bruno Haible.
21999
22000 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
22001
22002         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
22003         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
22004         <utmpx.h> exists, put readutmp.o into LIBOBJS.
22005
22006 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
22007
22008         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
22009
22010 2000-06-26  Paul Eggert  <eggert@twinsun.com>
22011
22012         savedir now sets errno on failure and invokes xmalloc to get memory.
22013         Fix a couple of other minor bugs while we're at it.
22014
22015         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
22016         (NAMLEN): Remove macro.
22017         (malloc, realloc): Remove decls.
22018         (stpcpy): Likewise.
22019         ("xalloc.h"): Include.
22020         (NAME_SIZE_DEFAULT): New macro.
22021         (savedir): Use xmalloc / xrealloc to allocate memory.
22022         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
22023         Skip "" directory entries.
22024         Use strlen to calculate directory entry length, since the old method
22025         is rarely used these days and isn't worth supporting.
22026         Don't use a pointer after freeing it.
22027         Check for integer overflow when calculating allocation size.
22028         Use memcpy to copy entries, instead of stpcpy.
22029         Set errno properly when returning NULL.
22030         Check for readdir error.
22031
22032 2000-06-26  Jim Meyering  <meyering@lucent.com>
22033
22034         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
22035
22036 2000-06-25  Jim Meyering  <meyering@lucent.com>
22037
22038         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
22039         Linux header bug when _XOPEN_SOURCE is defined to 500.
22040
22041 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
22042
22043         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
22044         deficiency.
22045
22046 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
22047
22048         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
22049         Include xalloc.h.
22050         Don't include <stdlib.h>.  Don't declare malloc, realloc.
22051
22052 2000-06-24  Jim Meyering  <meyering@lucent.com>
22053
22054         * m4/strerror_r.m4: Revive this file -- to try out an experimental
22055         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
22056         for which strerror does return char*, but which lacks a conveniently
22057         accessible declaration of the function.  If the compile-test says
22058         strerror_r doesn't work, then resort to a `run'-test that works on
22059         BeOS and segfaults on DEC Unix.
22060
22061 2000-06-24  Jim Meyering  <meyering@lucent.com>
22062
22063         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
22064
22065 2000-06-23  Paul Eggert  <eggert@twinsun.com>
22066
22067         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
22068         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
22069
22070 2000-06-23  Paul Eggert  <eggert@twinsun.com>
22071
22072         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
22073         (mbrtowc, mbstate_t): Define substitutes if
22074         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
22075         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
22076         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
22077
22078 2000-06-23  Jim Meyering  <meyering@lucent.com>
22079
22080         * m4/afs.m4: Add missing AC_MSG_RESULT.
22081         Reported by Bruno Haible.
22082
22083         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
22084         Suggestion from Bruno Haible.
22085
22086 2000-06-23  Jim Meyering  <meyering@lucent.com>
22087
22088         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
22089
22090 2000-06-21  Jim Meyering  <meyering@lucent.com>
22091
22092         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
22093
22094 2000-06-21  Jim Meyering  <meyering@lucent.com>
22095
22096         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
22097         (noinst_HEADERS): Add getstr.h.
22098
22099         * lib/getline.c (getstr): Move into a separate file.
22100         * lib/getstr.c (getstr): New file, extracted from getline.c, with
22101         the following changes: new parameter, delim2; both delim[12]
22102         parameters have type `int', not `char'.  The latter would lose
22103         with 8-bit delimiters.
22104         * lib/getstr.h: New file.
22105
22106 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22107
22108         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
22109         than 1024, return a memory chunk of least possible size, instead
22110         of size PATH_MAX + 2. In the loop, increment the size proportionally.
22111         Use free/xmalloc instead of xrealloc to avoid copying for very long
22112         paths.
22113
22114 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22115
22116         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
22117         the empty string.
22118
22119 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22120
22121         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
22122         address, not strdup.  Include <stdlib.h> and don't declare free().
22123
22124 2000-06-19  Jim Meyering  <meyering@lucent.com>
22125
22126         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
22127
22128 2000-06-18  Jim Meyering  <meyering@lucent.com>
22129
22130         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
22131
22132         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
22133         `checking whether...' message to be consistent with that of the
22134         lstat test.
22135
22136 2000-06-18  Jim Meyering  <meyering@lucent.com>
22137
22138         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
22139         Besides, these days every porting target provides a mkdir function.
22140
22141         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
22142         needed. (this snippet comes from src/system.h).
22143
22144 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
22145
22146         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
22147
22148 2000-06-15  Paul Eggert  <eggert@twinsun.com>
22149
22150         * lib/human.c (adjust_value): New function.
22151         (human_readable_inexact): Apply rounding style even when
22152         printing approximate values.
22153
22154 2000-06-14  Paul Eggert  <eggert@twinsun.com>
22155
22156         * lib/human.c (human_readable_inexact): Allow an input block
22157         size that is not a multiple of the output block size, and vice versa.
22158         Reported by Piergiorgio Sartor.
22159
22160 2000-06-14  Paul Eggert  <eggert@twinsun.com>
22161
22162         * lib/getdate.y (get_date): Apply relative times after time
22163         zone indicator, not before.  Reported by Todd A. Jacobs.
22164
22165 2000-06-13  Jim Meyering  <meyering@lucent.com>
22166
22167         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
22168
22169         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
22170
22171 2000-06-12  Paul Eggert  <eggert@twinsun.com>
22172
22173         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
22174
22175 2000-06-12  Jim Meyering  <meyering@lucent.com>
22176
22177         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
22178         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
22179         optional argument.
22180         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
22181         the optional argument, `lib'.
22182
22183 2000-06-08  Jim Meyering  <meyering@lucent.com>
22184
22185         * m4/largefile.m4: Remove file (now that it's part of autoconf).
22186
22187 2000-06-04  Paul Eggert  <eggert@twinsun.com>
22188
22189         Rewrite largefile configuration so that we don't need to run
22190         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
22191         AC_CANONICAL_HOST in configure.in -- jmm]
22192
22193         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
22194         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
22195         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
22196         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
22197         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
22198         All uses changed.
22199         Instead of inspecting the output of getconf, try to compile the
22200         test program without and with the macro definition.
22201         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
22202         for getconf.  Instead, check for the needed flags by compiling
22203         test programs.
22204
22205 2000-06-04  Paul Eggert  <eggert@twinsun.com>
22206
22207         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
22208
22209 2000-06-04  Jim Meyering  <meyering@lucent.com>
22210
22211         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
22212         SunOS 4.1.4 for which gid_t is an unsigned type.
22213
22214 2000-06-03  Jim Meyering  <meyering@lucent.com>
22215
22216         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
22217         now that autoconf requires that.
22218
22219         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
22220         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
22221         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
22222
22223 2000-06-03  Jim Meyering  <meyering@lucent.com>
22224
22225         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
22226
22227 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
22228
22229         * m4/glibc21.m4: New file.
22230         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
22231
22232 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
22233
22234         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
22235         newer, don't install charset.alias.
22236         * lib/config.charset: Change the Linux/glibc rules so they become empty
22237         on glibc-2.1 or newer.
22238
22239 2000-06-02  Jim Meyering  <meyering@lucent.com>
22240
22241         * lib/mountlist.c: Back out last change.  Instead, do this...
22242         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
22243         me_dummy member using the same `ignore'-testing code.
22244         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
22245         fs_type strings.
22246         From Mark D. Roth.
22247
22248 2000-05-29  Jim Meyering  <meyering@lucent.com>
22249
22250         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
22251         mounts with the `ignore' attribute.  Based on a patch from
22252         Mark D. Roth.
22253
22254 2000-05-28  Jim Meyering  <meyering@lucent.com>
22255
22256         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
22257         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22258         * m4/stat.m4: Likewise.
22259         * m4/lstat.m4: Likewise.
22260         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
22261
22262         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
22263         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
22264
22265 2000-05-26  Jim Meyering  <meyering@lucent.com>
22266
22267         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
22268
22269 2000-05-24  Jim Meyering  <meyering@lucent.com>
22270
22271         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
22272         autoconf requires that.
22273         * m4/lib-check.m4: Likewise.
22274         * m4/jm-macros.m4: Likewise.
22275         * m4/strftime.m4: Likewise.
22276
22277         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
22278         AC_CHECK_DECLS, now that autoconf requires that.
22279
22280 2000-05-22  Jim Meyering  <meyering@lucent.com>
22281
22282         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22283         * m4/lstat.m4: Likewise.
22284
22285 2000-05-22  Jim Meyering  <meyering@lucent.com>
22286
22287         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
22288
22289 2000-05-20  Jim Meyering  <meyering@lucent.com>
22290
22291         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
22292         (jm_PREREQ): Use it.
22293
22294 2000-05-18  Jim Meyering  <meyering@lucent.com>
22295
22296         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
22297         back, too, since it may have been modified by allocate_entry.
22298         (hash_delete): Rewrite to use neither the assignment operator
22299         nor the comma operator in an if-expression.
22300
22301 2000-05-15  Paul Eggert  <eggert@twinsun.com>
22302
22303         * lib/closeout.c:
22304         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
22305         Remove; no longer needed.
22306         "quotearg.h": Add include.
22307         (file_name): Do not bother to explicitly initialize to NULL; it's less
22308         efficient on some hosts.
22309         (close_stdout_status): Remove test as to whether stdout was already
22310         closed; it breaks for the case "echo x | sort >&-".
22311         Quote file name colons.
22312         Do not assume that _("write error") lacks format strings.
22313
22314 2000-05-15  Jim Meyering  <meyering@lucent.com>
22315
22316         * lib/version-etc.c (version_etc_copyright): Update the copyright
22317         string used in all --version output.
22318
22319 2000-05-14  Jim Meyering  <meyering@lucent.com>
22320
22321         * lib/closeout.c (close_stdout_set_file_name): New function.
22322         (close_stdout_status): Use new file-scoped global.
22323         Return right away if fstat says the stdout file descriptor is invalid.
22324         * lib/closeout.h (close_stdout_set_file_name): Declare.
22325
22326 2000-05-10  Jim Meyering  <meyering@lucent.com>
22327
22328         * lib/closeout.c [default_exit_status]: New file-scoped variable.
22329         (close_stdout_set_status): New function.
22330         * lib/closeout.h (close_stdout_set_status): Declare.
22331
22332 2000-05-09  Jim Meyering  <meyering@lucent.com>
22333
22334         * m4/gettext.m4: Rename this...
22335         * m4/libintl.m4: ...to this.
22336
22337 2000-05-08  Jim Meyering  <meyering@lucent.com>
22338
22339         * lib/long-options.c: Don't include closeout.h.
22340         (parse_long_options): Don't call close_stdout for --version.
22341
22342 2000-05-06  Paul Eggert  <eggert@twinsun.com>
22343
22344         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
22345         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
22346         2.1.3 bug.  This avoids a clash when files like regex.c define
22347         _GNU_SOURCE.
22348
22349 2000-05-06  Jim Meyering  <meyering@lucent.com>
22350
22351         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
22352         (AC_REPLACE_FUNCS): Add strnlen.
22353
22354         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
22355         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
22356
22357         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
22358         AC_SEARCH_LIBS call for nanosleep.
22359         (LIB_NANOSLEEP): Set and AC_SUBST.
22360
22361 2000-05-06  Jim Meyering  <meyering@lucent.com>
22362
22363         * lib/strnlen.c: Undefine __strnlen and strnlen.
22364         [!weak_alias]: Define __strnlen to strnlen.
22365
22366         * lib/atexit.c: New file, from libiberty.
22367
22368 2000-05-06  Jim Meyering  <meyering@lucent.com>
22369
22370         * lib/closeout.c (close_stdout_status): Also check for errors on the
22371         stderr stream.
22372
22373 2000-05-05  Jim Meyering  <meyering@lucent.com>
22374
22375         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
22376         AC_SEARCH_LIBS call for clock_gettime.
22377         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
22378
22379         * m4/search-libs.m4: Update from autoconf.
22380
22381         su doesn't work on Solaris 2.6.
22382         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
22383         <shadow.h>.  Reported by Dragos Harabor.
22384
22385 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
22386
22387         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
22388         memcpy instead of xmalloc, xrealloc, path_concat.
22389         (locale_charset): Treat empty environment variables as absent.
22390         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
22391
22392 2000-05-04  Jim Meyering  <meyering@lucent.com>
22393
22394         * lib/getopt.c: Update from glibc.
22395         * lib/obstack.c: Likewise.
22396         * lib/obstack.h: Likewise.
22397         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
22398         file
22399
22400         * lib/regex.h: Likewise.
22401         * lib/strndup.c: Likewise.
22402         * lib/strnlen.c: New file, from glibc.
22403
22404 2000-05-03  Jim Meyering  <meyering@lucent.com>
22405
22406         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
22407
22408 2000-05-02  Paul Eggert  <eggert@twinsun.com>
22409
22410         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
22411         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
22412         compile-time test, rather than inspecting host and OS, to
22413         decide whether to define _LARGEFILE_SOURCE.
22414
22415 2000-05-01  Jim Meyering  <meyering@lucent.com>
22416
22417         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
22418
22419         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
22420         Based on a patch from Bruno Haible.
22421
22422 2000-05-01  Jim Meyering  <meyering@lucent.com>
22423
22424         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
22425
22426 2000-04-29  Jim Meyering  <meyering@lucent.com>
22427
22428         * lib/path-concat.c: Declare strdup only if it's not defined.
22429         * lib/canon-host.c: Likewise.
22430
22431 2000-04-28  Jim Meyering  <meyering@lucent.com>
22432
22433         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
22434         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
22435         is included first, then limits.h is included by locale.h by libintl.h.
22436         From John David Anglin.
22437
22438 2000-04-25  Jim Meyering  <meyering@lucent.com>
22439
22440         * lib/makepath.c (S_IRWXUGO): Define.
22441         (make_path): Always perform explicit chmod if MODE specifies any
22442         of the `special' permission bits.  Prompted by a bug report against
22443         install from Mate Wierdl and Joost van Baal.
22444
22445 2000-04-18  Jim Meyering  <meyering@lucent.com>
22446
22447         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
22448         (jm_PREREQ): Use it.
22449
22450 2000-04-18  Jim Meyering  <meyering@lucent.com>
22451
22452         * lib/README: New file.
22453
22454         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
22455         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
22456
22457 2000-04-17  Jim Meyering  <meyering@lucent.com>
22458
22459         Get it right :-)
22460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
22461         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
22462         Suggestion from Akim Demaille.
22463
22464 2000-04-17  Jim Meyering  <meyering@lucent.com>
22465
22466         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
22467         the definition of it to rpl_strftime also defined-away the system's
22468         declaration.
22469
22470 2000-04-15  Jim Meyering  <meyering@lucent.com>
22471
22472         Use `C' to denote so-called `contiguous' files, the same way
22473         that tar does.
22474         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
22475         (ftypelet): Use S_ISCTG.
22476         From Michael Deutschmann.
22477
22478 2000-04-14  Jim Meyering  <meyering@lucent.com>
22479
22480         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
22481         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
22482         clobbered.
22483
22484 2000-04-14  Jim Meyering  <meyering@lucent.com>
22485
22486         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
22487
22488 2000-04-13  Jim Meyering  <meyering@lucent.com>
22489
22490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
22491         AH_VERBATIM to insert required #ifndef into config.h.in.
22492         Suggestion from Akim Demaille.
22493
22494 2000-04-12  Jim Meyering  <meyering@lucent.com>
22495
22496         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
22497         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
22498         Christian Krackowizer.
22499
22500         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
22501         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
22502         (AC_SYS_LARGEFILE): Require.
22503         (AM_C_PROTOTYPES): Require.
22504
22505 2000-04-08  Jim Meyering  <meyering@lucent.com>
22506
22507         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
22508         names don't conflict.  Reported by Eli Zaretskii.
22509
22510 2000-04-07  Jim Meyering  <meyering@lucent.com>
22511
22512         * lib/putenv.c: Move inclusion of errno.h so it follows that of
22513         sys/types.h, to work around system header problems on AIX 3.2.5.
22514         From Bruno Haible.
22515
22516 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
22517
22518         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
22519         bug.  Deal with the different error behavior of Irix iconv.
22520
22521 2000-04-05  Paul Eggert  <eggert@twinsun.com>
22522
22523         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
22524         IRIX if the installer said otherwise.
22525
22526 2000-04-05  Jim Meyering  <meyering@lucent.com>
22527
22528         Portability tweaks required for ultrix4.3.
22529         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
22530         (jm_CHECK_DECLS): Add getutent to the list of functions.
22531         (_jm_DECL_HEADERS): Add utmpx.h.
22532         From John David Anglin.
22533
22534         * m4/strftime.m4: Back out the 2000-04-02 change.
22535         Instead of that change, simply undefine putenv in the test program.
22536
22537 2000-04-05  Jim Meyering  <meyering@lucent.com>
22538
22539         Portability tweaks required for ultrix4.3.
22540         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
22541         getutent.
22542         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
22543         * lib/canon-host.c: Declare strdup.
22544         * lib/path-concat.c: Likewise.
22545         From John David Anglin.
22546
22547 2000-04-04  Jim Meyering  <meyering@lucent.com>
22548
22549         Be more DOS 8.3-friendly.
22550         * lib/ref-add.sin: Renamed from ref-add.sed.in.
22551         * lib/ref-del.sin: Renamed from ref-del.sed.in.
22552         * lib/Makefile.am: Reflect renaming.
22553         Reported by Eli Zaretskii.
22554
22555         Use a temporary file name that won't clash with `charset.alias'
22556         in the DOS 8.3 name space.
22557         * lib/Makefile.am (charset_tmp): Define.
22558         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
22559         (uninstall-local): Likewise.
22560         Reported by Eli Zaretskii.
22561
22562 2000-04-03  Jim Meyering  <meyering@lucent.com>
22563
22564         * m4/gettext.m4: Fix typo in comment.
22565
22566         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
22567         textutils/configure.in).  Suggestion from Paul Eggert.
22568         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
22569
22570 2000-04-02  Paul Eggert  <eggert@twinsun.com>
22571
22572         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
22573         variable in the shell rather than using putenv, which isn't
22574         portable.  This avoids the configure-time inter-test dependency
22575         on the potentially-renamed putenv function.
22576
22577 2000-03-30  Paul Eggert  <eggert@twinsun.com>
22578
22579         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
22580         before checking struct stat.st_blksize, so that
22581         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
22582
22583 2000-03-29  Paul Eggert  <eggert@twinsun.com>
22584
22585         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
22586         since strftime.c uses HAVE_STRFTIME to decide whether to use
22587         the underlying strftime.
22588
22589 2000-03-29  Paul Eggert  <eggert@twinsun.com>
22590
22591         * lib/time/strftime.c (my_strftime): Make sure we call the system
22592         strftime, not ourselves, when invoking the underlying strftime.
22593
22594 2000-03-24  Jim Meyering  <meyering@lucent.com>
22595
22596         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
22597         (charset_alias): Define.
22598         (install-exec-local): Factor out common code.
22599         (uninstall-local): Split lines longer than 80.
22600         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
22601         (SUFFIXES): Define.
22602         (.sed.in.sed): New rule.  Don't redirect directly to $@.
22603         (CLEANFILES): Add ref-add.sed and ref-del.sed.
22604
22605 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
22606
22607         * lib/config.charset: Output a line containing "Packages using this
22608         file".
22609         * lib/ref-add.sed.in, ref-del.sed.in: New files.
22610         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
22611         ref-del.sed): New rules.
22612
22613 2000-03-17  Jim Meyering  <meyering@lucent.com>
22614
22615         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
22616         Otherwise, include <strings.h>
22617
22618 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
22619
22620         * lib/unicodeio.c (utf8_wctomb): New function.
22621         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
22622         format instead of in UCS-4 with platform dependent endianness.
22623
22624 2000-03-10  Jim Meyering  <meyering@lucent.com>
22625
22626         * m4/lib-check.m4: Look for getspnam in -lgen, too.
22627         From Marco Franzen.
22628
22629 2000-03-07  Paul Eggert  <eggert@twinsun.com>
22630
22631         * lib/savedir.c (savedir): Work even if directory size is
22632         negative; this can happen with some screwy NFS configurations.
22633
22634 2000-03-06  Jim Meyering  <meyering@lucent.com>
22635
22636         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
22637         if it's NULL (because we ran out of memory).  From Bruno Haible.
22638
22639 2000-03-05  Jim Meyering  <meyering@lucent.com>
22640
22641         * lib/localcharset.c ("path-concat.h"): Include.
22642         (get_charset_aliases): Use path_concat instead of ANSI string
22643         concatenation.
22644
22645         * lib/unicodeio.h (PARAMS): Define.
22646         Use it to guard prototype.
22647
22648 2000-03-04  Jim Meyering  <meyering@lucent.com>
22649
22650         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
22651         for lib/localcharset.c.
22652
22653 2000-03-04  Jim Meyering  <meyering@lucent.com>
22654
22655         * lib/Makefile.am (install-exec-local): Create $(libdir) before
22656         installing into it.
22657         (uninstall-local): Uncomment this rule so `make distcheck' works
22658         once again.
22659
22660         * lib/unicodeio.c (<errno.h>): Include it.
22661         (errno): Declare if not defined.
22662
22663         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
22664
22665         * lib/config.charset: New version, incorporating remarks from a linux
22666         i18n mailing list.  From Bruno Haible.
22667
22668 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
22669
22670         * m4/codeset.m4: New file.
22671         * m4/iconv.m4: New file.
22672         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
22673
22674 2000-03-03  Jim Meyering  <meyering@lucent.com>
22675
22676         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
22677
22678 2000-03-02  Jim Meyering  <meyering@lucent.com>
22679
22680         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
22681         the messages come out on separate lines.
22682
22683         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
22684         rather than jm_CHECK_DECLARATIONS.
22685         * m4/decl.m4: Remove now-unused file.
22686
22687         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
22688         geteuid.
22689
22690 2000-03-02  Jim Meyering  <meyering@lucent.com>
22691
22692         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
22693
22694 2000-03-01  Jim Meyering  <meyering@lucent.com>
22695
22696         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
22697         * lib/unicodeio.c: Likewise.
22698
22699 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
22700
22701         * lib/config.charset: New file.
22702         * lib/localcharset.c: New file.
22703         * lib/unicodeio.h, unicodeio.c: New files.
22704         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
22705         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
22706         (noinst_HEADERS): Add unicodeio.h.
22707         (all-local, install-exec-local, charset.alias): New targets.
22708
22709 2000-02-28  Paul Eggert  <eggert@twinsun.com>
22710
22711         * lib/quotearg.c (ALERT_CHAR): New macro.
22712         (quotearg_buffer_restyled): Use it.
22713
22714 2000-02-27  Jim Meyering  <meyering@lucent.com>
22715
22716         * m4/check-decl.m4: Add getenv to the list.
22717
22718 2000-02-27  Jim Meyering  <meyering@lucent.com>
22719
22720         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
22721         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
22722
22723         * lib/backupfile.c: Guard inclusion of stdlib.h with
22724         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
22725         Declare malloc if needed.
22726
22727         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
22728         `#ifndef HAVE_DECL..'
22729         now that autoconf always defines the HAVE_DECL_ symbols.
22730         * lib/human.c: Likewise.
22731         * lib/same.c: Likewise.
22732         * lib/strtoumax.c: Likewise.
22733
22734         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
22735         declaration check was not run.
22736         * lib/hash.c: Likewise.
22737         * lib/human.c: Likewise.
22738         * lib/same.c: Likewise.
22739         * lib/strtoumax.c: Likewise.
22740
22741         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
22742         `.', then first look up the entire `.'-containing string as a login
22743         name.
22744
22745 2000-02-23  Jim Meyering  <meyering@lucent.com>
22746
22747         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
22748         in place of my hack.
22749
22750 2000-02-18  Paul Eggert  <eggert@twinsun.com>
22751
22752         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
22753         (textint): New typedef.
22754         (parser_control): Member year changed from int to textint.
22755         All uses changed.
22756         (YYSTYPE): Removed; replaced by %union with int and textint members.
22757         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
22758         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
22759         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
22760         (tSNUMBER, tUNUMBER): Now of type <textintval>.
22761         (date, number, to_year): Use width of number in digits, not its value,
22762         to determine whether it's a 2-digit year, or a 2-digit time.
22763         (yylex): Store number of digits of numeric tokens.
22764         Reported by John Kendall.
22765
22766         (parser_control): Changed from struct parser_control to typedef (for
22767         consistency).  All uses changed.
22768
22769         (tID): Removed; not used.
22770         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
22771
22772 2000-02-14  Paul Eggert  <eggert@twinsun.com>
22773
22774         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
22775         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
22776
22777 2000-02-12  Jim Meyering  <meyering@lucent.com>
22778
22779         * lib/userspec.c (ISDIGIT): Define it.
22780         (isdigit): Remove definition.
22781         (is_number): Use ISDIGIT, not isdigit.
22782         <libintl.h>: Include.
22783         (_ and N_): Define.
22784         (parse_user_spec): Mark translatable strings.
22785
22786 2000-02-10  Jim Meyering  <meyering@lucent.com>
22787
22788         With these changes, nanosleep.[ch] are finally enough like the other
22789         lib/* replacement files to compile on a few more losing systems.
22790
22791         * lib/nanosleep.h: Don't include config.h.
22792         Remove prototype from declaration of nanosleep.
22793         (PARAMS): Remove now-unneeded definition.
22794         * lib/nanosleep.c: #undef nanosleep.
22795         (rpl_nanosleep): Rename from nanosleep.
22796
22797 2000-02-10  Jim Meyering  <meyering@lucent.com>
22798
22799         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
22800         gnu_nanosleep to rpl_nanosleep.
22801
22802 2000-02-09  Jim Meyering  <meyering@lucent.com>
22803
22804         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
22805         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
22806
22807 2000-02-08  Akim Demaille  <akim@epita.fr>
22808
22809         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
22810         `[' and `]' and remove uses of `changequote'.
22811         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
22812         (AC_SYS_LARGEFILE): Likewise.
22813         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22814         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
22815         of changequote.
22816         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
22817         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
22818         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
22819         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
22820
22821 2000-02-05  Jim Meyering  <meyering@lucent.com>
22822
22823         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
22824         Remove explicit use of AC_HEADER_TIME.  It is required by
22825         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
22826         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
22827         in autoconf whereby the expansion of the latter ended up preceding
22828         the expansion of its prerequisite, AC_HEADER_TIME.
22829         Reported by Volker Borchert.
22830
22831 2000-02-03  Jim Meyering  <meyering@lucent.com>
22832
22833         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
22834
22835 2000-02-03  Jim Meyering  <meyering@lucent.com>
22836
22837         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
22838         rather than with `#if HAVE_UTMPNAME'.
22839
22840 2000-02-02  Jim Meyering  <meyering@lucent.com>
22841
22842         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
22843         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
22844         Reported by Eli Zaretskii.
22845
22846 2000-02-01  Jim Meyering  <meyering@lucent.com>
22847
22848         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
22849
22850 2000-01-31  Jim Meyering  <meyering@lucent.com>
22851
22852         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
22853         functions.  Add the time.h and sys/time.h headers along with the
22854         AC_REQUIRE'ment of AC_HEADER_TIME.
22855
22856 2000-01-31  Jim Meyering  <meyering@lucent.com>
22857
22858         * lib/nanosleep.h (nanosleep): Guard declaration with
22859         `#if ! HAVE_DECL_NANOSLEEP'.
22860         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
22861         the declaration in that vendor's sys/timers.h.
22862         Reported by Christian Krackowizer.
22863
22864         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
22865         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
22866         (ISPRINT): Likewise.
22867         Reported by Tom Tromey.
22868
22869 2000-01-30  Jim Meyering  <meyering@lucent.com>
22870
22871         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
22872
22873         * m4/prereq.m4 (utmp_includes): Define.
22874         Check for ut_user and ut_name members in both struct utmpx
22875         and struct utmp.
22876
22877 2000-01-30  Jim Meyering  <meyering@lucent.com>
22878
22879         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
22880         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
22881         header files where only utmpx.ut_user is declared.
22882
22883         * lib/readutmp.h (UT_USER): Define.
22884
22885 2000-01-29  Jim Meyering  <meyering@lucent.com>
22886
22887         * m4/lib-check.m4: New file containing library-related checks from
22888         fileutils and sh-utils (textutils had none).
22889
22890 2000-01-28  Jim Meyering  <meyering@lucent.com>
22891
22892         * m4/perl.m4: Change format of warning message to look more like that
22893         from the missing script.  Suggestion from François Pinard.
22894
22895 2000-01-25  Jim Meyering  <meyering@lucent.com>
22896
22897         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
22898         well as time.h in the compile check.
22899         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
22900         Fix typo in cross-compiling case: s/yes/no/.
22901
22902 2000-01-23  Jim Meyering  <meyering@lucent.com>
22903
22904         * m4/jm-macros.m4: Move df-related tests here from
22905         fileutils/configure.in
22906
22907         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
22908         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
22909
22910         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
22911         s/space/ac_fsusage_space/.
22912         (jm_FILE_SYSTEM_USAGE): Take two parameters.
22913
22914         * m4/ftruncate.m4: New file (derived from part of
22915         fileutils/configure.in).
22916         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
22917         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
22918
22919         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
22920         AC_SUBST these here, rather than just in sh-util/configure.in, so
22921         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
22922         all the same.
22923         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
22924         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
22925         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
22926         (AC_SUBST(POW_LIBM)): Likewise.
22927         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
22928
22929 2000-01-23  Jim Meyering  <meyering@lucent.com>
22930
22931         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
22932         obstack.c.
22933
22934 2000-01-22  Jim Meyering  <meyering@lucent.com>
22935
22936         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
22937
22938         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
22939
22940         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
22941         configure.in
22942         (AC_CHECK_HEADERS): Likewise for sh-utils.
22943         (AC_CHECK_HEADERS): Likewise for textutils.
22944         Merge the three lists of headers.
22945
22946         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
22947         from fileutils' configure.in.
22948
22949         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
22950         code. Moved tests into their own function (_jm_DECL_HEADERS) in
22951         check-decl.m4.
22952
22953         * m4/check-decl.m4: Use #if rather than #ifdef.
22954         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
22955         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
22956         (_jm_DECL_HEADERS): Define new function.
22957         (jm_CHECK_DECLARATIONS): Require it.
22958
22959 2000-01-22  Jim Meyering  <meyering@lucent.com>
22960
22961         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
22962         [! HAVE_DECL_STRTOULL]: Declare strtoull.
22963         Required for some AIX systems.  Reported by Christian Krackowizer.
22964         [TESTING] (main): New function.
22965
22966         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
22967         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
22968         letters.
22969
22970         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
22971         iswprint.
22972
22973         * lib/strverscmp.c (ISDIGIT): Define.
22974         (strverscmp): Use ISDIGIT, not isdigit.
22975
22976 2000-01-19  Jim Meyering  <meyering@lucent.com>
22977
22978         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
22979         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
22980         defines `struct timespec' in <sys/time.h>
22981
22982         * m4/c-bs-a.m4: Remove uses of changequote altogether.
22983         Thanks to Akim for explaining.
22984
22985 2000-01-17  Paul Eggert  <eggert@twinsun.com>
22986
22987         * lib/nanosleep.c (nanosleep):
22988         Don't use SA_INTERRUPT to decide whether to call sigaction, as
22989         POSIX.1 doesn't require SA_INTERRUPT and some systems
22990         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
22991         it's been part of POSIX.1 since day 1 (in 1988).
22992
22993 2000-01-17  Jim Meyering  <meyering@lucent.com>
22994
22995         * lib/interlock: Remove unused file.  Reported by François Pinard.
22996
22997 2000-01-16  Paul Eggert  <eggert@twinsun.com>
22998
22999         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
23000         alert, backslash, formfeed, and vertical tab unnecessarily in
23001         shell quoting style.
23002
23003 2000-01-16  Jim Meyering  <meyering@lucent.com>
23004
23005         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
23006         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
23007         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
23008         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
23009
23010 2000-01-16  Jim Meyering  <meyering@lucent.com>
23011
23012         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
23013         because the latter didn't work.
23014
23015 2000-01-15  Jim Meyering  <meyering@lucent.com>
23016
23017         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
23018         (AC_REPLACE_FUNCS): Add memcpy and memset.
23019         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
23020         Add strpbrk.
23021         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
23022
23023 2000-01-12  Jim Meyering  <meyering@lucent.com>
23024
23025         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
23026         (jm_PREREQ): Use it.
23027         (jm_PREREQ_READUTMP): New macro.
23028         (jm_PREREQ): Use it.
23029
23030 2000-01-11  Paul Eggert  <eggert@twinsun.com>
23031
23032         Quote multibyte characters correctly.
23033         * m4/c-bs-a.m4: New file.
23034         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
23035         (jm_PREREQ): Use it.
23036
23037 2000-01-11  Paul Eggert  <eggert@twinsun.com>
23038
23039         * m4/uintmax_t.m4: Port to autoconf 2.13.
23040
23041 2000-01-08  Jim Meyering  <meyering@ascend.com>
23042
23043         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
23044         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
23045
23046 2000-01-04  Jim Meyering  <meyering@ascend.com>
23047
23048         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
23049         jm_STRUCT_DIRENT_D_TYPE.
23050         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
23051         jm_STRUCT_DIRENT_D_INO.
23052         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
23053         jm_STRUCT_UTIMBUF.
23054         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
23055         renamings.
23056         * m4/utime.m4: Likewise.
23057
23058         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
23059         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
23060
23061 2000-01-03  Paul Eggert  <eggert@twinsun.com>
23062
23063         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
23064         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
23065
23066 2000-01-02  Jim Meyering  <meyering@ascend.com>
23067
23068         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
23069         remember if this is necessary.
23070
23071 1999-12-26  Jim Meyering  <meyering@ascend.com>
23072
23073         * m4/jm-macros.m4: Use it here.
23074         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
23075
23076 1999-12-23  Jim Meyering  <meyering@ascend.com>
23077
23078         * m4/jm-macros.m4: Check for clock_gettime (moved from
23079         fileutils/configure.in)
23080         Check for gettimeofday.
23081
23082 1999-12-20  Jim Meyering  <meyering@ascend.com>
23083
23084         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
23085         autoconf-2.14a-1999-12-20.
23086
23087 1999-12-19  Jim Meyering  <meyering@ascend.com>
23088
23089         * m4/lstat-slash.m4: New file.
23090         * m4/jm-macros.m4: Use the new macro:
23091         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23092
23093 1999-12-07  Jim Meyering  <meyering@ascend.com>
23094
23095         * m4/perl.m4: Require that File::Compare be available, too.
23096         Too many systems seem to lack it.
23097
23098         * m4/strftime.m4: Add checks for most of the cpp macros tested in
23099         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
23100
23101 1999-11-18  Paul Eggert  <eggert@twinsun.com>
23102
23103         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
23104         problem with the QNX 4.25 shell, which doesn't propagate exit
23105         status of failed commands inside shell assignments.
23106
23107 1999-11-17  Jim Meyering  <meyering@ascend.com>
23108
23109         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
23110
23111 1999-11-07  Jim Meyering  <meyering@ascend.com>
23112
23113         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
23114
23115 1999-11-06  Jim Meyering  <meyering@ascend.com>
23116
23117         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
23118         * m4/jm-macros.m4 (jm_MACROS): Use it here.
23119
23120 1999-11-05  Jim Meyering  <meyering@ascend.com>
23121
23122         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
23123         configure.in of textutils, fileutils, and sh-utils into this one
23124         (shared between those packages) file.
23125         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
23126         AC_STRUCT_ST_BLKSIZE.
23127
23128 1999-11-03  Jim Meyering  <meyering@ascend.com>
23129
23130         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
23131         of AC_CHECK_TYPE checks includes unistd.h.
23132         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
23133         Suggestion from Akim Demaille.
23134
23135 1999-10-30  Jim Meyering  <meyering@ascend.com>
23136
23137         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
23138         m4-quoted string.
23139         * m4/ls-mntd-fs.m4: Likewise.
23140         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
23141         * m4/jm-winsz1.m4: Likewise.
23142
23143         * m4/const.m4: Remove file, since the fix made it into the experimental
23144         version of autoconf.
23145         * m4/mktime.m4: Likewise.
23146
23147         * m4/check-type.m4: Remove file, now that the latest version of
23148         AC_CHECK_TYPE takes a third arg to specify additional #includes.
23149
23150         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
23151         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
23152         AC_CHECK_TYPE.
23153
23154 1999-10-04  Jim Meyering  <meyering@ascend.com>
23155
23156         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
23157
23158 1999-09-22  Paul Eggert  <eggert@twinsun.com>
23159
23160         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
23161         2.95.1 bug with HP-UX 10.20.
23162
23163 1999-09-17  Jim Meyering  <meyering@ascend.com>
23164
23165         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
23166         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
23167         due to missing strdup (against sh-utils-2.0).
23168
23169 1999-08-29  Jim Meyering  <meyering@ascend.com>
23170
23171         * m4/jm-macros.m4: Require jm_BISON.
23172         * m4/bison.m4: New file.
23173
23174 1999-08-17  Paul Eggert  <eggert@twinsun.com>
23175
23176         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
23177         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
23178
23179 1999-08-05  Jim Meyering  <meyering@ascend.com>
23180
23181         * m4/getline.m4: Rename test file from conftestdata to conftest.data
23182         to avoid conflicts with `conftest' on 8+3 filesystems.
23183         Suggestion from Eli Zaretskii.
23184
23185 1999-08-04  Jim Meyering  <meyering@ascend.com>
23186
23187         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
23188         fileutils and sh-utils (textutils's getline test was inadequate).
23189         (AM_FUNC_GETLINE): Run this test.
23190         (AC_CHECK_FUNCS): Check for getdelim.
23191         Reported by Bob Proulx.
23192
23193 1999-08-02  Jim Meyering  <meyering@ascend.com>
23194
23195         * m4/jm-macros.m4: Add a comment.
23196
23197 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23198
23199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
23200         <inttypes.h> defines strtoumax as a macro (and not as a
23201         function).
23202
23203 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23204
23205         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
23206         that we can shift, multiply and divide unsigned long long
23207         values; Ultrix cc can't do it.
23208
23209 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23210
23211         * m4/mktime.m4: New file, which is a preview of what should appear
23212         in the next public autoconf release.
23213
23214 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23215
23216         * m4/lfs.m4: Remove this file.
23217         * m4/largefile.m4: New file.  It contains the old contents of
23218         lfs.m4, except that all names with prefix AC_LFS have been
23219         changed to use the prefix AC_SYS_LARGEFILE instead, to be
23220         compatible with future autoconf versions.  Also, some minor m4
23221         quoting problems have been fixed.
23222
23223 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23224
23225         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
23226         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
23227         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
23228         and simplify the shell code.
23229
23230 1999-08-01  Jim Meyering  <meyering@ascend.com>
23231
23232         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
23233         m4.
23234
23235 1999-07-20  Jim Meyering  <meyering@ascend.com>
23236
23237         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
23238
23239 1999-07-15  Jim Meyering  <meyering@ascend.com>
23240
23241         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
23242
23243 1999-05-22  Jim Meyering  <meyering@ascend.com>
23244
23245         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
23246
23247 1999-05-20  Jim Meyering  <meyering@ascend.com>
23248
23249         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
23250         Add a colon after each `then' in case $4 is empty.
23251
23252 1999-05-16  Jim Meyering  <meyering@ascend.com>
23253
23254         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
23255
23256 1999-05-10  Jim Meyering  <meyering@ascend.com>
23257
23258         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
23259
23260         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
23261         AC_FUNC_MKTIME.
23262
23263 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
23264
23265         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
23266
23267 1999-05-04  Paul Eggert  <eggert@twinsun.com>
23268
23269         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
23270         not CPPFLAGS, so that linking works correctly in IRIX.
23271
23272 1999-04-30  Paul Eggert  <eggert@twinsun.com>
23273
23274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
23275
23276 1999-04-20  Paul Eggert  <eggert@twinsun.com>
23277
23278         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
23279         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
23280         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
23281         jm_AC_TYPE_UNSIGNED_LONG_LONG.
23282         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
23283
23284         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
23285
23286 1999-04-20  Jim Meyering  <meyering@ascend.com>
23287
23288         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
23289         AC_REPLACE xstroull if necessary.  From Paul Eggert.
23290         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
23291
23292 1999-04-18  Jim Meyering  <meyering@ascend.com>
23293
23294         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
23295         * m4/jm-macros.m4: Use it.
23296
23297 1999-04-06  Jim Meyering  <meyering@ascend.com>
23298
23299         * m4/strftime.m4: Remove test for %f.
23300
23301 1999-03-29  Jim Meyering  <meyering@ascend.com>
23302
23303         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
23304         superset of the AC_TYPE_* checks in the textutils, fileutils,
23305         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
23306         AC_TYPE_PID_T.
23307
23308 1999-03-28  Jim Meyering  <meyering@ascend.com>
23309
23310         * m4/jm-macros.m4: Define GNU_PACKAGE here.
23311         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
23312         replaced e.g., in the *.sh files of the sh-utils.
23313
23314 1999-03-20  Jim Meyering  <meyering@ascend.com>
23315
23316         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
23317         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
23318         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
23319
23320 1999-03-19  Jim Meyering  <meyering@ascend.com>
23321
23322         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
23323
23324 1999-03-12  Jim Meyering  <meyering@ascend.com>
23325
23326         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
23327
23328 1999-03-07  Jim Meyering  <meyering@ascend.com>
23329
23330         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
23331         declared.
23332
23333 1999-02-17  Jim Meyering  <meyering@ascend.com>
23334
23335         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
23336         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
23337
23338 1999-02-07  Jim Meyering  <meyering@ascend.com>
23339
23340         * m4/group-member.m4: New file -- extracted from sh-utils'
23341         configure.in.
23342
23343         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
23344         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
23345
23346 1999-02-06  Jim Meyering  <meyering@ascend.com>
23347
23348         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
23349         * m4/fnmatch.m4: Likewise.
23350         * m4/getgroups.m4: Likewise.
23351         * m4/lstat.m4: Likewise.
23352         * m4/malloc.m4: Likewise.
23353         * m4/putenv.m4: Likewise.
23354         * m4/realloc.m4: Likewise.
23355         * m4/regex.m4: Likewise.
23356         * m4/stat.m4: Likewise.
23357         * m4/strftime.m4: Likewise.
23358         Suggestion from Alain Magloire.
23359
23360         * m4/chown.m4: Use `.$ac_objext', not `.o'.
23361         * m4/fnmatch.m4: Likewise.
23362         * m4/getgroups.m4: Likewise.
23363         * m4/getline.m4: Likewise.
23364         * m4/lstat.m4: Likewise.
23365         * m4/malloc.m4: Likewise.
23366         * m4/memcmp.m4: Likewise.
23367         * m4/putenv.m4: Likewise.
23368         * m4/realloc.m4: Likewise.
23369         * m4/regex.m4: Likewise.
23370         * m4/stat.m4: Likewise.
23371         * m4/strftime.m4: Likewise.
23372         Suggestion from Alain Magloire.
23373
23374         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
23375         an argument.
23376
23377         * m4/regex.m4: Add a run-time Test for proper operation of
23378         re_compile_pattern.
23379
23380 1999-01-31  Jim Meyering  <meyering@ascend.com>
23381
23382         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
23383
23384 1999-01-30  Jim Meyering  <meyering@ascend.com>
23385
23386         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
23387
23388         * m4/jm-mktime.m4: Make this a wrapper around the official
23389         AM_FUNC_MKTIME rather than my private copy, now that the official one
23390         is up to date.
23391         * m4/mktime.m4: Remove file.
23392
23393         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
23394         * m4/uptime.m4: Likewise.
23395         * m4/uintmax_t.m4: Likewise.
23396
23397 1999-01-28  Jim Meyering  <meyering@ascend.com>
23398
23399         * m4/jm-macros.m4: Use jm_AFS.
23400         * m4/afs.m4: New file (from fileutils' configure.in).
23401
23402         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
23403         * m4/chown.m4: Likewise.
23404         * m4/d-ino.m4: Likewise.
23405         * m4/d-type.m4: Likewise.
23406         * m4/fnmatch.m4: Likewise.
23407         * m4/getgroups.m4: Likewise.
23408         * m4/gettext.m4: Likewise.
23409         * m4/jm-mktime.m4: Likewise.
23410         * m4/jm-winsz2.m4: Likewise.
23411         * m4/lcmessage.m4: Likewise.
23412         * m4/ls-mntd-fs.m4: Likewise.
23413         * m4/malloc.m4: Likewise.
23414         * m4/memcmp.m4: Likewise.
23415         * m4/putenv.m4: Likewise.
23416         * m4/realloc.m4: Likewise.
23417         * m4/st_mtim.m4: Likewise.
23418         * m4/strftime.m4: Likewise.
23419
23420 1999-01-16  Jim Meyering  <meyering@ascend.com>
23421
23422         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
23423         (ARGMATCH_DIE_DECL): Define.
23424
23425 1999-01-12  Jim Meyering  <meyering@ascend.com>
23426
23427         * m4/Makefile.am.in: Rewrite to avoid using fmt.
23428         Reported by Lars Hecking.
23429
23430 1999-01-10  Jim Meyering  <meyering@ascend.com>
23431
23432         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
23433         gross kludge.
23434         * m4/inttypes_h.m4: Likewise.
23435         * m4/lstat.m4: Likewise.
23436         * m4/malloc.m4: Likewise.
23437         * m4/readdir.m4: Likewise.
23438         * m4/realloc.m4: Likewise.
23439         * m4/st_dm_mode.m4: Likewise.
23440         * m4/stat.m4: Likewise.
23441         * m4/utimbuf.m4: Likewise.
23442         * m4/utimes.m4: Likewise.
23443
23444         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
23445         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
23446         comments in config.h.in are meaningful.
23447
23448         * m4/jm-macros.m4: Require autoconf-2.13 here.
23449
23450         * m4/regex.m4: By default, don't use the included regex.c on systems
23451         with glibc 2.  Suggestion from Uli Drepper.
23452
23453 1999-01-02  Jim Meyering  <meyering@ascend.com>
23454
23455         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
23456
23457 1998-12-18  Jim Meyering  <meyering@ascend.com>
23458
23459         * m4/Makefile.am.in (Makefile.am): Simplify rule.
23460         Based on a suggestion from Lars Hecking.
23461
23462 1998-11-16  Paul Eggert  <eggert@twinsun.com>
23463
23464         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
23465
23466 1998-11-16  Jim Meyering  <meyering@ascend.com>
23467
23468         * m4/lfs.m4: Double-quote the `uname...` expression.
23469
23470 1998-11-14  Jim Meyering  <meyering@ascend.com>
23471
23472         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
23473         * m4/stat.m4: Likewise.
23474
23475 1998-11-03  Jim Meyering  <meyering@ascend.com>
23476
23477         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
23478         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
23479
23480 1998-10-18  Jim Meyering  <meyering@ascend.com>
23481
23482         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
23483
23484 1998-10-17  Jim Meyering  <meyering@ascend.com>
23485
23486         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
23487         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
23488         calls for those previously hard-coded headers.  Instead, take a new
23489         parameter.
23490         (jm_CHECK_DECLARATIONS): Reflect interface change.
23491         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
23492         (jm_CHECK_DECL_LOCALTIME_R): New macro.
23493
23494         * m4/mktime.m4: Test for spring-forward gap before long-running test.
23495
23496 1998-10-14  Jim Meyering  <meyering@ascend.com>
23497
23498         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
23499         instead of "TZ=America/Vancouver".  From Paul Eggert.
23500
23501 1998-10-11  Jim Meyering  <meyering@ascend.com>
23502
23503         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
23504         This adds a test for a recently added compatibility fix for mktime.c.
23505         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
23506
23507 1998-09-27  Jim Meyering  <meyering@ascend.com>
23508
23509         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
23510
23511         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
23512         ../configure.in, including a change from Gordon Matzigkeit to allow
23513         cross-compiling for the Hurd.
23514
23515         * m4/glibc.m4: New file/macro to test for the GNU C Library
23516         versions 1 and 2.  From Gordon Matzigkeit.
23517         Indent.
23518
23519 1998-09-21  Jim Meyering  <meyering@ascend.com>
23520
23521         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
23522
23523 1998-08-18  Paul Eggert  <eggert@twinsun.com>
23524
23525         Port nanosecond-resolution times to UnixWare 2.1.2 and
23526         pedantic Solaris 2.6.
23527
23528         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
23529         AC_STRUCT_ST_MTIM.
23530         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
23531         Generate name of ns member, instead of just 1 or undef.
23532         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
23533
23534 1998-08-15  Jim Meyering  <meyering@ascend.com>
23535
23536         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
23537         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
23538         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
23539         instead of jm_TYPE_SSIZE_T.
23540
23541 1998-08-12  Jim Meyering  <meyering@ascend.com>
23542
23543         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
23544
23545 1998-08-02  Jim Meyering  <meyering@ascend.com>
23546
23547         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
23548         in acconfig.h manually.
23549
23550 1998-07-31  Paul Eggert  <eggert@twinsun.com>
23551
23552         * m4/st_mtim.m4: New file.
23553
23554 1998-07-28  Jim Meyering  <meyering@ascend.com>
23555
23556         * m4/utimes.m4: Undef stat.
23557
23558 1998-07-25  Jim Meyering  <meyering@ascend.com>
23559
23560         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
23561         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
23562
23563 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
23564
23565         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
23566         uid and gid actually remain unchanged.
23567
23568 1998-07-07  Jim Meyering  <meyering@ascend.com>
23569
23570         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
23571
23572 1998-07-04  Jim Meyering  <meyering@ascend.com>
23573
23574         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
23575         to prove that this macro can be used in packages without regex.c.
23576
23577 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
23578
23579         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
23580         is to be used.
23581
23582 1998-07-03  Jim Meyering  <meyering@ascend.com>
23583
23584         * m4/gettext.m4: Add -lintl if it's found to be necessary.
23585
23586         * m4/gettext.m4: New file -- from gettext-0.10.35.
23587         * m4/lcmessage.m4: Likewise.
23588         * m4/progtest.m4: Likewise.
23589
23590         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
23591         * m4/jm-macros.m4: Require the new macro.
23592
23593 1998-06-29  Jim Meyering  <meyering@ascend.com>
23594
23595         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
23596         for the definition of NGROUPS (used in a system header included
23597         by sys/mount.h).
23598
23599 1998-06-28  Jim Meyering  <meyering@ascend.com>
23600
23601         * m4/ls-mntd-fs.m4: New file.
23602         * m4/fstypename.m4: New file.
23603
23604         * m4/jm-macros.m4: Require the new macro.
23605         * m4/jm-glibc-io.m4: New file.
23606
23607 1998-05-19  Jim Meyering  <meyering@ascend.com>
23608
23609         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
23610         * m4/lchown.m4: New file.
23611
23612         * m4/Makefile.am.in: New file.
23613         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
23614
23615 1998-05-14  Jim Meyering  <meyering@ascend.com>
23616
23617         * m4/Makefile.am (EXTRA_DIST): Add them.
23618         * m4/jm-macros.m4: New file.
23619         * m4/utimbuf.m4: New file.
23620
23621 1998-05-12  Jim Meyering  <meyering@ascend.com>
23622
23623         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
23624
23625 1998-05-11  Jim Meyering  <meyering@ascend.com>
23626
23627         * m4/isc-posix.m4: New file.
23628
23629 1998-05-10  Jim Meyering  <meyering@ascend.com>
23630
23631         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
23632
23633 1998-05-09  Jim Meyering  <meyering@ascend.com>
23634
23635         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
23636         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
23637         with automake.
23638
23639         * m4/ssize_t.m4: New file.
23640         * m4/mktime.m4: Remove file -- the new automake has this now.
23641
23642 1998-04-26  Jim Meyering  <meyering@ascend.com>
23643
23644         * m4/assert.m4: New file.
23645         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
23646
23647 1998-04-05  Jim Meyering  <meyering@ascend.com>
23648
23649         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
23650         (jm_PREREQ): Use it here.
23651
23652 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
23653
23654         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
23655         in acconfig.h.
23656
23657 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
23658
23659         * m4/prereq.m4: New file.
23660         * m4/error.m4: New file.
23661         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
23662
23663 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
23664
23665         * m4/getline.m4: Don't set am_cv_func_working_getline before the
23666         cache-check for the same variable -- that defeated the purpose of
23667         the test; the test program was never run.  This was a problem only
23668         on systems with losing getline functions -- HP-UX 10.20 is one.
23669         Reported by Bjorn Helgaas.
23670
23671 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
23672
23673         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
23674
23675 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
23676
23677         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
23678
23679         * m4/const.m4: New file.  Use an initializer in this declaration
23680         typedef int charset[2]; const charset x;
23681         Reported by Bob Glickstein.
23682
23683 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
23684
23685         * m4/chown.m4: Fix reversed types on -1 args to chown.
23686         From Kaveh Ghazi.
23687
23688 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
23689
23690         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
23691         Add lseek and memchr.
23692
23693         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
23694         T.E.Dickey <dickey@clark.net> said that some older preprocessors
23695         have a 20-character limit on names.
23696
23697 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
23698
23699         * m4/inttypes_h.m4: New file.
23700         * m4/uintmax_t.m4: New file.
23701         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
23702
23703 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
23704   Free Software Foundation, Inc.
23705 Copying and distribution of this file, with or without modification,
23706 are permitted provided the copyright notice and this notice are preserved.