Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
[gnulib.git] / ChangeLog
1 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2
3         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
4         stat-macros.h is now for our own macros, whereas stat_h is for
5         macros in the <sys/stat.h> name space.
6         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
7         (STAT_MACROS_H): Remove.
8         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
10         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
11         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
12         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
13         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
14         Move these macros to ...
15         * lib/stat_.h: here.  Don't include stat-macros.h.
16         * lib/canonicalize.c: Don't include stat-macros.h.
17         * lib/chown.c: Likewise.
18         * lib/euidaccess.c: Likewise.
19         * lib/file-type.c: Likewise.
20         * lib/filemode.c: Likewise.
21         * lib/glob.c: Likewise.
22         * lib/isapipe.c: Likewise.
23         * lib/lchown.c: Likewise.
24         * lib/lstat.c: Likewise.
25         * lib/mkdir-p.c: Likewise.
26         * lib/rmdir.c: Likewise.
27         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
28         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
29         unless mkdir isn't declared, to speed up 'configure'.
30         Always create sys/stat.h, since it's unlikely any real sys/stat.h
31         would define all the S_* symbols.
32         * modules/canonicalize (Depends-on):
33         Depend on sys_stat, not stat-macros.
34         * modules/chown: Likewise.
35         * modules/euidaccess: Likewise.
36         * modules/filemode: Likewise.
37         * modules/file-type: Likewise.
38         * modules/glob: Likewise.
39         * modules/isapipe: Likewise.
40         * modules/lchown: Likewise.
41         * modules/lstat: Likewise.
42         * modules/mkancesdirs: Likewise.
43         * modules/rmdir: Likewise.
44         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45         * modules/modechange: Likewise.
46         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
47         (configure.ac): Remove gl_STAT_MACROS.
48         * modules/sys_stat (Depends-on): Remove stat-macros.
49
50 2006-10-27  Bruno Haible  <bruno@clisp.org>
51
52         * m4/signed.m4: Remove file.
53         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54         invocation.
55         * modules/vasnprintf (Files): Remove m4/signed.m4.
56
57 2006-10-27  Bruno Haible  <bruno@clisp.org>
58
59         Update to GNU gettext 0.16.
60         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61         m4/inttypes-h.m4, m4/signed.m4.
62         * m4/gettext.m4: Update to GNU gettext 0.16.
63         * m4/intl.m4: New file, from GNU gettext.
64         * m4/intldir.m4: New file, from GNU gettext.
65         * config/srclist.txt: Update
66
67 2006-10-27  Eric Blake  <ebb9@byu.net>
68
69         * MODULES.html.sh: Document tempname.
70         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71         dependencies.
72         (Files): Move lib/tempname.c...
73         * modules/tempname: ...to this new module.
74         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75         (gl_PREREQ_TEMPNAME): Move...
76         * m4/tempname.m4: ...to this new file.
77         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
78         * modules/sys_stat (Depends-on): Add stat-macros.
79         * lib/stat_.h (includes): Pick up stat macros.
80         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
81         if stat macros are broken.
82         * lib/tempname.c (includes): No need to include "stat-macros.h".
83         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
84         (direxists, __path_search) [!_LIBC]: Don't compile these in
85         gnulib; the tmpdir module covers that.
86         * lib/tempname.h: New file.
87
88 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
89
90         * COPYING: Explain how gnulib-tool converts licence headers.
91         Almost all wording by Eric Blake.
92
93 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
94
95         * lib/mbchar.h (is_basic_table): Make read-only.
96         * lib/mbchar.c (is_basic_table): Likewise.
97         Reported by John Darrington.
98
99 2006-10-25  Bruno Haible  <bruno@clisp.org>
100
101         * lib/progname.h (set_program_name): Undefine before defining.
102
103 2006-10-25  Bruno Haible  <bruno@clisp.org>
104
105         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
106         false for non-gcc C++ compilers.
107         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
108
109 2006-10-24  Bruno Haible  <bruno@clisp.org>
110
111         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
112         iconv implementations like Irix iconv.
113
114 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
115
116         * modules/vararrays: New file.
117         * m4/vararrays.m4: New file, taken from diffutils.
118         * MODULES.html.sh: New module vararrays.
119
120 2006-10-24  Karl Berry  <karl@gnu.org>
121
122         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
123         Don't call GNU Unix.
124
125 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
126
127         * users.txt: Add Libtool.
128
129         Sync from Libtool:
130
131         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
132
133         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
134         to gnulib's policy of including config.h unconditionally.
135
136 2006-10-24  Bruno Haible  <bruno@clisp.org>
137
138         * modules/wcwidth (Files): Add m4/wint_t.m4.
139         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
140         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
141
142 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
143
144         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
145         to pacify GCC with some -W flags enabled.  Problem reported by
146         Bruno Haible.
147
148 2006-10-24  Jim Meyering  <jim@meyering.net>
149
150         * MODULES.html.sh: Remove uinttostr.  It's not a module.
151         Reported by Karl Berry.
152
153 2006-10-23  Bruno Haible  <bruno@clisp.org>
154
155         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
156
157 2006-10-24  Bruno Haible  <bruno@clisp.org>
158
159         * lib/gl_list.h: Use C comment style, not C++ comment style.
160
161 2006-10-23  Eric Blake  <ebb9@byu.net>
162
163         * lib/getaddrinfo.c (includes): Add missing include.
164
165 2006-10-23  Bruno Haible  <bruno@clisp.org>
166             Paul Eggert  <eggert@cs.ucla.edu>
167
168         Ability to rename obstack_free.
169         * lib/obstack.h (__obstack_free): New macro. Declare instead of
170         obstack_free.
171         (obstack_free): Invoke the __obstack_free macro.
172         * lib/obstack.c (obstack_free): Use __obstack_free macro.
173
174 2006-10-23  Bruno Haible  <bruno@clisp.org>
175             Paul Eggert  <eggert@cs.ucla.edu>
176
177         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
178         __argc, __argv from the declaration. (They are defined as macros on
179         mingw.)
180
181 2006-10-22  Bruno Haible  <bruno@clisp.org>
182
183         * doc/gnulib-intro.texi: New file.
184         * doc/gnulib.texi: Include it.
185
186 2006-10-21  Bruno Haible  <bruno@clisp.org>
187
188         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
189         "Introduction", "Miscellanous Notes", "Particular Modules".
190
191 2006-10-21  Bruno Haible  <bruno@clisp.org>
192
193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
194         Change mostlyclean-local rule to avoid sh syntax error from bash
195         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
196
197 2006-10-23  Jim Meyering  <jim@meyering.net>
198
199         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
200         in place of snprintf.
201
202         * modules/inttostr (Files): Add lib/uinttostr.c.
203         * lib/uinttostr.c (inttostr): New file/function.
204         * lib/inttostr.h (uinttostr): Declare.
205         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
206         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
207         Add uinttostr.
208         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
209
210 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
211
212         * lib/canonicalize.c (ELOOP): Define if not already defined.
213         Problem reported by Bruno Haible in
214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
215
216 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
217
218         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
219         Problem reported by Perry Smith and Ville Laurikari.
220
221         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
222         uses.
223
224 2006-10-19  Bruno Haible  <bruno@clisp.org>
225
226         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
227         for mingw.
228
229 2006-10-19  Bruno Haible  <bruno@clisp.org>
230
231         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
232         Needed for mingw.
233
234 2006-10-19  Bruno Haible  <bruno@clisp.org>
235
236         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
237
238 2006-10-19  Bruno Haible  <bruno@clisp.org>
239
240         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
241         it.
242
243 2006-10-19  Bruno Haible  <bruno@clisp.org>
244
245         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
246         invocation.
247
248 2006-10-19  Bruno Haible  <bruno@clisp.org>
249
250         * gnulib-tool (func_create_testdir): Don't include ftruncate and
251         mountlist by default.
252
253 2006-10-16  Bruno Haible  <bruno@clisp.org>
254
255         * lib/c-strstr.c: Include c-strstr.h.
256
257 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
258
259         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
260         in a slash.
261
262 2006-10-18  Bruno Haible  <bruno@clisp.org>
263
264         * lib/lock.h [C++]: Wrap definitions in extern "C".
265
266 2006-10-18  Bruno Haible  <bruno@clisp.org>
267
268         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
269         gl_LIBOBJS list.
270
271 2006-10-18  Bruno Haible  <bruno@clisp.org>
272
273         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
274
275 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
276
277         * lib/xstrtol.h: Include gettext.h.
278         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
279         Problem reported by Eric Blake.
280         * modules/xstrtol (Depends-on): Add gettext-h.
281
282 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
283
284         * lib/strftime.c (advance): New macro.
285         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
286         incomplete type, so you can't add 0 to it.  Problem and patch
287         reported by Eelco Dolstra for dietlibc.
288
289 2006-10-18  Jim Meyering  <jim@meyering.net>
290
291         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
292         type for a local, and rename it: s/up/user_proc/.
293
294 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
295
296         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
297         READ_UTMP_USER_PROCESS.
298         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
299
300 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
301
302         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
303         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
304
305 2006-10-17  Eric Blake  <ebb9@byu.net>
306
307         * lib/sigprocmask.c (sigprocmask): Fix typo.
308
309         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
310
311         * modules/clean-temp (Makefile.am): Don't add to make output...
312         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
313         config.h.
314
315 2006-10-17  Bruno Haible  <bruno@clisp.org>
316
317         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
318         differently if DEFAULT_TEXT_DOMAIN is set.
319
320 2006-10-16  Bruno Haible  <bruno@clisp.org>
321
322         * lib/clean-temp.c: Include fwriteerror.h.
323
324 2006-10-16  Bruno Haible  <bruno@clisp.org>
325
326         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
327
328 2006-10-16  Bruno Haible  <bruno@clisp.org>
329
330         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
331         * lib/sigprocmask.h: Include <sys/types.h>.
332         (sigset_t): Use the system's definition if present.
333
334 2006-10-17  Eric Blake  <ebb9@byu.net>
335
336         * lib/xvasprintf.c (includes): Assume config.h.
337         * lib/xasprintf.c (includes): Likewise.
338
339 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
340
341         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
342         at least as wide as intmax_t.
343
344 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
345
346         (Imported from Automake.)
347         * build-aux/gnupload: Update to version 1.1 of directive file.
348
349 2006-10-16  Eric Blake  <ebb9@byu.net>
350
351         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
352         match Automake 1.10a.
353
354 2006-10-14  Bruno Haible  <bruno@clisp.org>
355
356         * modules/sigprocmask: New file.
357         * lib/sigprocmask.h: New file.
358         * lib/sigprocmask.c: New file.
359         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
360         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
361         request sigprocmask.o.
362         (gl_PREREQ_SIGPROCMASK): New macro.
363         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
364         (Depends-on): Add sigprocmask.
365         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
366         gt_SIGNALBLOCKING. Test for 'raise' only once.
367         * lib/fatal-signal.c: Include sigprocmask.h.
368         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
369         unblock_fatal_signals): Define always.
370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
371         sigprocmask.
372
373 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
374
375         Sync from Automake.
376         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
377         which incorrectly sets the mode of an existing destination
378         directory.  In some cases the unpatched install-sh could do the
379         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
380         system.  We hope this is rare in practice, but it's clearly worth
381         fixing.  Problem reported by Alex Unleashed in
382         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
383         Also, don't bother to check for -m bugs unless we're using -m;
384         suggested by Stepan Kasal.
385
386 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
387
388         Sync from Automake.
389         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
390         `-c' flag, so they appear at the same position as in %FASTDEP%
391         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
392         which ignores unknown options only after the first non-option.
393         Bug report against M4 by Nelson H. F. Beebe.
394
395 2006-10-13  Jim Meyering  <jim@meyering.net>
396
397         Fix a bug in yesterday's change.
398         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
399         p->fts_statp->st_dev would be used uninitialized.
400         Ensures that we always call fts_stat on the very first entry.
401         Miklos Szeredi reported that find -xdev stopped working.
402
403 2006-10-12  Bruno Haible  <bruno@clisp.org>
404
405         * gnulib-tool (func_get_automake_snippet): Append an automatically
406         computed EXTRA_DIST augmentation.
407         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
408         * modules/alloca-opt (Makefile.am): Likewise.
409         * modules/allocsa (Makefile.am): Likewise.
410         * modules/arcfour (Makefile.am): Likewise.
411         * modules/arctwo (Makefile.am): Likewise.
412         * modules/argmatch (Makefile.am): Likewise.
413         * modules/argz (Makefile.am): Likewise.
414         * modules/atexit (Makefile.am): Likewise.
415         * modules/backupfile (Makefile.am): Likewise.
416         * modules/byteswap (Makefile.am): Likewise.
417         * modules/c-strtod (Makefile.am): Likewise.
418         * modules/c-strtold (Makefile.am): Likewise.
419         * modules/calloc (Makefile.am): Likewise.
420         * modules/canon-host (Makefile.am): Likewise.
421         * modules/canonicalize (Makefile.am): Likewise.
422         * modules/chdir-long (Makefile.am): Likewise.
423         * modules/chdir-safer (Makefile.am): Likewise.
424         * modules/check-version (Makefile.am): Likewise.
425         * modules/chown (Makefile.am): Likewise.
426         * modules/cloexec (Makefile.am): Likewise.
427         * modules/close-stream (Makefile.am): Likewise.
428         * modules/closeout (Makefile.am): Likewise.
429         * modules/crc (Makefile.am): Likewise.
430         * modules/csharpexec (Makefile.am): Likewise.
431         * modules/cycle-check (Makefile.am): Likewise.
432         * modules/des (Makefile.am): Likewise.
433         * modules/dev-ino (Makefile.am): Likewise.
434         * modules/dirfd (Makefile.am): Likewise.
435         * modules/dirname (Makefile.am): Likewise.
436         * modules/dup2 (Makefile.am): Likewise.
437         * modules/eealloc (Makefile.am): Likewise.
438         * modules/error (Makefile.am): Likewise.
439         * modules/euidaccess (Makefile.am): Likewise.
440         * modules/exclude (Makefile.am): Likewise.
441         * modules/exitfail (Makefile.am): Likewise.
442         * modules/fcntl-safer (Makefile.am): Likewise.
443         * modules/fcntl (Makefile.am): Likewise.
444         * modules/file-type (Makefile.am): Likewise.
445         * modules/fileblocks (Makefile.am): Likewise.
446         * modules/filemode (Makefile.am): Likewise.
447         * modules/filenamecat (Makefile.am): Likewise.
448         * modules/fnmatch (Makefile.am): Likewise.
449         * modules/fopen-safer (Makefile.am): Likewise.
450         * modules/fpending (Makefile.am): Likewise.
451         * modules/fprintftime (Makefile.am): Likewise.
452         * modules/free (Makefile.am): Likewise.
453         * modules/fsusage (Makefile.am): Likewise.
454         * modules/ftruncate (Makefile.am): Likewise.
455         * modules/fts (Makefile.am): Likewise.
456         * modules/gc-arcfour (Makefile.am): Likewise.
457         * modules/gc-des (Makefile.am): Likewise.
458         * modules/gc-hmac-md5 (Makefile.am): Likewise.
459         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
460         * modules/gc-md4 (Makefile.am): Likewise.
461         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
462         * modules/gc-sha1 (Makefile.am): Likewise.
463         * modules/gc (Makefile.am): Likewise.
464         * modules/getaddrinfo (Makefile.am): Likewise.
465         * modules/getcwd (Makefile.am): Likewise.
466         * modules/getdelim (Makefile.am): Likewise.
467         * modules/getdomainname (Makefile.am): Likewise.
468         * modules/getgroups (Makefile.am): Likewise.
469         * modules/gethostname (Makefile.am): Likewise.
470         * modules/gethrxtime (Makefile.am): Likewise.
471         * modules/getline (Makefile.am): Likewise.
472         * modules/getloadavg (Makefile.am): Likewise.
473         * modules/getlogin_r (Makefile.am): Likewise.
474         * modules/getndelim2 (Makefile.am): Likewise.
475         * modules/getopt (Makefile.am): Likewise.
476         * modules/getpagesize (Makefile.am): Likewise.
477         * modules/getpass-gnu (Makefile.am): Likewise.
478         * modules/getpass (Makefile.am): Likewise.
479         * modules/getsubopt (Makefile.am): Likewise.
480         * modules/gettime (Makefile.am): Likewise.
481         * modules/gettimeofday (Makefile.am): Likewise.
482         * modules/getugroups (Makefile.am): Likewise.
483         * modules/getusershell (Makefile.am): Likewise.
484         * modules/glob (Makefile.am): Likewise.
485         * modules/group-member (Makefile.am): Likewise.
486         * modules/hard-locale (Makefile.am): Likewise.
487         * modules/hash (Makefile.am): Likewise.
488         * modules/hmac-md5 (Makefile.am): Likewise.
489         * modules/hmac-sha1 (Makefile.am): Likewise.
490         * modules/human (Makefile.am): Likewise.
491         * modules/idcache (Makefile.am): Likewise.
492         * modules/imaxabs (Makefile.am): Likewise.
493         * modules/imaxdiv (Makefile.am): Likewise.
494         * modules/inet_ntop (Makefile.am): Likewise.
495         * modules/inet_pton (Makefile.am): Likewise.
496         * modules/intprops (Makefile.am): Likewise.
497         * modules/inttostr (Makefile.am): Likewise.
498         * modules/inttypes (Makefile.am): Likewise.
499         * modules/isapipe (Makefile.am): Likewise.
500         * modules/javaversion (Makefile.am): Likewise.
501         * modules/lchmod (Makefile.am): Likewise.
502         * modules/lchown (Makefile.am): Likewise.
503         * modules/localcharset (Makefile.am): Likewise.
504         * modules/long-options (Makefile.am): Likewise.
505         * modules/lstat (Makefile.am): Likewise.
506         * modules/malloc (Makefile.am): Likewise.
507         * modules/mathl (Makefile.am): Likewise.
508         * modules/mbchar (Makefile.am): Likewise.
509         * modules/md2 (Makefile.am): Likewise.
510         * modules/md4 (Makefile.am): Likewise.
511         * modules/md5 (Makefile.am): Likewise.
512         * modules/memcasecmp (Makefile.am): Likewise.
513         * modules/memchr (Makefile.am): Likewise.
514         * modules/memcmp (Makefile.am): Likewise.
515         * modules/memcoll (Makefile.am): Likewise.
516         * modules/memcpy (Makefile.am): Likewise.
517         * modules/memmem (Makefile.am): Likewise.
518         * modules/memmove (Makefile.am): Likewise.
519         * modules/mempcpy (Makefile.am): Likewise.
520         * modules/memrchr (Makefile.am): Likewise.
521         * modules/memset (Makefile.am): Likewise.
522         * modules/memxor (Makefile.am): Likewise.
523         * modules/mkancesdirs (Makefile.am): Likewise.
524         * modules/mkdir-p (Makefile.am): Likewise.
525         * modules/mkdir (Makefile.am): Likewise.
526         * modules/mkdtemp (Makefile.am): Likewise.
527         * modules/mkstemp (Makefile.am): Likewise.
528         * modules/mktime (Makefile.am): Likewise.
529         * modules/modechange (Makefile.am): Likewise.
530         * modules/mountlist (Makefile.am): Likewise.
531         * modules/nanosleep (Makefile.am): Likewise.
532         * modules/obstack (Makefile.am): Likewise.
533         * modules/openat (Makefile.am): Likewise.
534         * modules/pagealign_alloc (Makefile.am): Likewise.
535         * modules/pathmax (Makefile.am): Likewise.
536         * modules/physmem (Makefile.am): Likewise.
537         * modules/poll (Makefile.am): Likewise.
538         * modules/posixtm (Makefile.am): Likewise.
539         * modules/posixver (Makefile.am): Likewise.
540         * modules/putenv (Makefile.am): Likewise.
541         * modules/quote (Makefile.am): Likewise.
542         * modules/quotearg (Makefile.am): Likewise.
543         * modules/raise (Makefile.am): Likewise.
544         * modules/read-file (Makefile.am): Likewise.
545         * modules/readline (Makefile.am): Likewise.
546         * modules/readlink (Makefile.am): Likewise.
547         * modules/readtokens (Makefile.am): Likewise.
548         * modules/readutmp (Makefile.am): Likewise.
549         * modules/realloc (Makefile.am): Likewise.
550         * modules/regex (Makefile.am): Likewise.
551         * modules/rename-dest-slash (Makefile.am): Likewise.
552         * modules/rename (Makefile.am): Likewise.
553         * modules/rijndael (Makefile.am): Likewise.
554         * modules/rmdir (Makefile.am): Likewise.
555         * modules/rpmatch (Makefile.am): Likewise.
556         * modules/safe-read (Makefile.am): Likewise.
557         * modules/safe-write (Makefile.am): Likewise.
558         * modules/same-inode (Makefile.am): Likewise.
559         * modules/same (Makefile.am): Likewise.
560         * modules/save-cwd (Makefile.am): Likewise.
561         * modules/savedir (Makefile.am): Likewise.
562         * modules/setenv (Makefile.am): Likewise.
563         * modules/settime (Makefile.am): Likewise.
564         * modules/sha1 (Makefile.am): Likewise.
565         * modules/sig2str (Makefile.am): Likewise.
566         * modules/snprintf (Makefile.am): Likewise.
567         * modules/stat-macros (Makefile.am): Likewise.
568         * modules/stat-time (Makefile.am): Likewise.
569         * modules/stdbool (Makefile.am): Likewise.
570         * modules/stdint (Makefile.am): Likewise.
571         * modules/stdlib-safer (Makefile.am): Likewise.
572         * modules/stpcpy (Makefile.am): Likewise.
573         * modules/stpncpy (Makefile.am): Likewise.
574         * modules/strcase (Makefile.am): Likewise.
575         * modules/strcasestr (Makefile.am): Likewise.
576         * modules/strchrnul (Makefile.am): Likewise.
577         * modules/strcspn (Makefile.am): Likewise.
578         * modules/strdup (Makefile.am): Likewise.
579         * modules/strerror (Makefile.am): Likewise.
580         * modules/strftime (Makefile.am): Likewise.
581         * modules/strndup (Makefile.am): Likewise.
582         * modules/strnlen (Makefile.am): Likewise.
583         * modules/strpbrk (Makefile.am): Likewise.
584         * modules/strsep (Makefile.am): Likewise.
585         * modules/strstr (Makefile.am): Likewise.
586         * modules/strtod (Makefile.am): Likewise.
587         * modules/strtoimax (Makefile.am): Likewise.
588         * modules/strtok_r (Makefile.am): Likewise.
589         * modules/strtol (Makefile.am): Likewise.
590         * modules/strtoll (Makefile.am): Likewise.
591         * modules/strtoul (Makefile.am): Likewise.
592         * modules/strtoull (Makefile.am): Likewise.
593         * modules/strtoumax (Makefile.am): Likewise.
594         * modules/strverscmp (Makefile.am): Likewise.
595         * modules/sys_socket (Makefile.am): Likewise.
596         * modules/sys_stat (Makefile.am): Likewise.
597         * modules/sysexits (Makefile.am): Likewise.
598         * modules/time_r (Makefile.am): Likewise.
599         * modules/timegm (Makefile.am): Likewise.
600         * modules/timespec (Makefile.am): Likewise.
601         * modules/tmpfile-safer (Makefile.am): Likewise.
602         * modules/trim (Makefile.am): Likewise.
603         * modules/unistd-safer (Makefile.am): Likewise.
604         * modules/unlinkdir (Makefile.am): Likewise.
605         * modules/unlocked-io (Makefile.am): Likewise.
606         * modules/userspec (Makefile.am): Likewise.
607         * modules/utime (Makefile.am): Likewise.
608         * modules/utimecmp (Makefile.am): Likewise.
609         * modules/utimens (Makefile.am): Likewise.
610         * modules/vasnprintf (Makefile.am): Likewise.
611         * modules/vasprintf (Makefile.am): Likewise.
612         * modules/vsnprintf (Makefile.am): Likewise.
613         * modules/xalloc (Makefile.am): Likewise.
614         * modules/xgetcwd (Makefile.am): Likewise.
615         * modules/xnanosleep (Makefile.am): Likewise.
616         * modules/xreadlink (Makefile.am): Likewise.
617         * modules/xstrtod (Makefile.am): Likewise.
618         * modules/xstrtol (Makefile.am): Likewise.
619         * modules/xstrtold (Makefile.am): Likewise.
620         * modules/yesno (Makefile.am): Likewise.
621         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
622
623 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
624
625         * modules/error (Makefile.am): Distribute files through
626         EXTRA_DIST, not lib_SOURCES.
627
628 2006-10-12  Eric Blake  <ebb9@byu.net>
629
630         * modules/error (Makefile.am): Distribute files in /lib.
631         * modules/obstack (Makefile.am): Likewise.
632
633 2006-10-12  Bruno Haible  <bruno@clisp.org>
634
635         * modules/acl (Makefile.am): Distribute all files in lib/ through
636         EXTRA_DIST.
637         * modules/arcfour (Makefile.am): Likewise.
638         * modules/arctwo (Makefile.am): Likewise.
639         * modules/argmatch (Makefile.am): Likewise.
640         * modules/argz (Makefile.am): Likewise.
641         * modules/atexit (Makefile.am): Likewise.
642         * modules/backupfile (Makefile.am): Likewise.
643         * modules/c-strtod (Makefile.am): Likewise.
644         * modules/c-strtold (Makefile.am): Likewise.
645         * modules/calloc (Makefile.am): Likewise.
646         * modules/canon-host (Makefile.am): Likewise.
647         * modules/canonicalize (Makefile.am): Likewise.
648         * modules/chdir-long (Makefile.am): Likewise.
649         * modules/chdir-safer (Makefile.am): Likewise.
650         * modules/check-version (Makefile.am): Likewise.
651         * modules/chown (Makefile.am): Likewise.
652         * modules/cloexec (Makefile.am): Likewise.
653         * modules/close-stream (Makefile.am): Likewise.
654         * modules/closeout (Makefile.am): Likewise.
655         * modules/crc (Makefile.am): Likewise.
656         * modules/cycle-check (Makefile.am): Likewise.
657         * modules/des (Makefile.am): Likewise.
658         * modules/dirfd (Makefile.am): Likewise.
659         * modules/dirname (Makefile.am): Likewise.
660         * modules/dup2 (Makefile.am): Likewise.
661         * modules/euidaccess (Makefile.am): Likewise.
662         * modules/exclude (Makefile.am): Likewise.
663         * modules/exitfail (Makefile.am): Likewise.
664         * modules/fcntl-safer (Makefile.am): Likewise.
665         * modules/file-type (Makefile.am): Likewise.
666         * modules/fileblocks (Makefile.am): Likewise.
667         * modules/filemode (Makefile.am): Likewise.
668         * modules/filenamecat (Makefile.am): Likewise.
669         * modules/fnmatch (Makefile.am): Likewise.
670         * modules/fopen-safer (Makefile.am): Likewise.
671         * modules/fpending (Makefile.am): Likewise.
672         * modules/fprintftime (Makefile.am): Likewise.
673         * modules/free (Makefile.am): Likewise.
674         * modules/fsusage (Makefile.am): Likewise.
675         * modules/ftruncate (Makefile.am): Likewise.
676         * modules/fts (Makefile.am): Likewise.
677         * modules/gc (Makefile.am): Likewise.
678         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
679         * modules/getaddrinfo (Makefile.am): Likewise.
680         * modules/getcwd (Makefile.am): Likewise.
681         * modules/getdelim (Makefile.am): Likewise.
682         * modules/getdomainname (Makefile.am): Likewise.
683         * modules/getgroups (Makefile.am): Likewise.
684         * modules/gethostname (Makefile.am): Likewise.
685         * modules/gethrxtime (Makefile.am): Likewise.
686         * modules/getline (Makefile.am): Likewise.
687         * modules/getloadavg (Makefile.am): Likewise.
688         * modules/getlogin_r (Makefile.am): Likewise.
689         * modules/getopt (Makefile.am): Likewise.
690         * modules/getpass (Makefile.am): Likewise.
691         * modules/getpass-gnu (Makefile.am): Likewise.
692         * modules/getsubopt (Makefile.am): Likewise.
693         * modules/gettime (Makefile.am): Likewise.
694         * modules/gettimeofday (Makefile.am): Likewise.
695         * modules/getugroups (Makefile.am): Likewise.
696         * modules/getusershell (Makefile.am): Likewise.
697         * modules/glob (Makefile.am): Likewise.
698         * modules/group-member (Makefile.am): Likewise.
699         * modules/hard-locale (Makefile.am): Likewise.
700         * modules/hash (Makefile.am): Likewise.
701         * modules/hmac-md5 (Makefile.am): Likewise.
702         * modules/hmac-sha1 (Makefile.am): Likewise.
703         * modules/human (Makefile.am): Likewise.
704         * modules/idcache (Makefile.am): Likewise.
705         * modules/imaxabs (Makefile.am): Likewise.
706         * modules/imaxdiv (Makefile.am): Likewise.
707         * modules/inet_ntop (Makefile.am): Likewise.
708         * modules/inet_pton (Makefile.am): Likewise.
709         * modules/inttostr (Makefile.am): Likewise.
710         * modules/isapipe (Makefile.am): Likewise.
711         * modules/lchown (Makefile.am): Likewise.
712         * modules/long-options (Makefile.am): Likewise.
713         * modules/lstat (Makefile.am): Likewise.
714         * modules/malloc (Makefile.am): Likewise.
715         * modules/mathl (Makefile.am): Likewise.
716         * modules/mbchar (Makefile.am): Likewise.
717         * modules/md2 (Makefile.am): Likewise.
718         * modules/md4 (Makefile.am): Likewise.
719         * modules/md5 (Makefile.am): Likewise.
720         * modules/memcasecmp (Makefile.am): Likewise.
721         * modules/memchr (Makefile.am): Likewise.
722         * modules/memcmp (Makefile.am): Likewise.
723         * modules/memcoll (Makefile.am): Likewise.
724         * modules/memcpy (Makefile.am): Likewise.
725         * modules/memmem (Makefile.am): Likewise.
726         * modules/memmove (Makefile.am): Likewise.
727         * modules/mempcpy (Makefile.am): Likewise.
728         * modules/memrchr (Makefile.am): Likewise.
729         * modules/memset (Makefile.am): Likewise.
730         * modules/memxor (Makefile.am): Likewise.
731         * modules/mkancesdirs (Makefile.am): Likewise.
732         * modules/mkdir (Makefile.am): Likewise.
733         * modules/mkdir-p (Makefile.am): Likewise.
734         * modules/mkdtemp (Makefile.am): Likewise.
735         * modules/mkstemp (Makefile.am): Likewise.
736         * modules/mktime (Makefile.am): Likewise.
737         * modules/modechange (Makefile.am): Likewise.
738         * modules/mountlist (Makefile.am): Likewise.
739         * modules/nanosleep (Makefile.am): Likewise.
740         * modules/openat (Makefile.am): Likewise.
741         * modules/pagealign_alloc (Makefile.am): Likewise.
742         * modules/physmem (Makefile.am): Likewise.
743         * modules/poll (Makefile.am): Likewise.
744         * modules/posixtm (Makefile.am): Likewise.
745         * modules/posixver (Makefile.am): Likewise.
746         * modules/putenv (Makefile.am): Likewise.
747         * modules/quote (Makefile.am): Likewise.
748         * modules/quotearg (Makefile.am): Likewise.
749         * modules/raise (Makefile.am): Likewise.
750         * modules/read-file (Makefile.am): Likewise.
751         * modules/readline (Makefile.am): Likewise.
752         * modules/readlink (Makefile.am): Likewise.
753         * modules/readtokens (Makefile.am): Likewise.
754         * modules/readutmp (Makefile.am): Likewise.
755         * modules/realloc (Makefile.am): Likewise.
756         * modules/regex (Makefile.am): Likewise.
757         * modules/rename (Makefile.am): Likewise.
758         * modules/rename-dest-slash (Makefile.am): Likewise.
759         * modules/rijndael (Makefile.am): Likewise.
760         * modules/rmdir (Makefile.am): Likewise.
761         * modules/rpmatch (Makefile.am): Likewise.
762         * modules/safe-read (Makefile.am): Likewise.
763         * modules/safe-write (Makefile.am): Likewise.
764         * modules/same (Makefile.am): Likewise.
765         * modules/save-cwd (Makefile.am): Likewise.
766         * modules/savedir (Makefile.am): Likewise.
767         * modules/setenv (Makefile.am): Likewise.
768         * modules/settime (Makefile.am): Likewise.
769         * modules/sha1 (Makefile.am): Likewise.
770         * modules/sig2str (Makefile.am): Likewise.
771         * modules/snprintf (Makefile.am): Likewise.
772         * modules/stdlib-safer (Makefile.am): Likewise.
773         * modules/stpcpy (Makefile.am): Likewise.
774         * modules/stpncpy (Makefile.am): Likewise.
775         * modules/strcase (Makefile.am): Likewise.
776         * modules/strcasestr (Makefile.am): Likewise.
777         * modules/strchrnul (Makefile.am): Likewise.
778         * modules/strcspn (Makefile.am): Likewise.
779         * modules/strdup (Makefile.am): Likewise.
780         * modules/strerror (Makefile.am): Likewise.
781         * modules/strftime (Makefile.am): Likewise.
782         * modules/strndup (Makefile.am): Likewise.
783         * modules/strnlen (Makefile.am): Likewise.
784         * modules/strpbrk (Makefile.am): Likewise.
785         * modules/strsep (Makefile.am): Likewise.
786         * modules/strstr (Makefile.am): Likewise.
787         * modules/strtod (Makefile.am): Likewise.
788         * modules/strtoimax (Makefile.am): Likewise.
789         * modules/strtok_r (Makefile.am): Likewise.
790         * modules/strtol (Makefile.am): Likewise.
791         * modules/strtoll (Makefile.am): Likewise.
792         * modules/strtoul (Makefile.am): Likewise.
793         * modules/strtoull (Makefile.am): Likewise.
794         * modules/strtoumax (Makefile.am): Likewise.
795         * modules/strverscmp (Makefile.am): Likewise.
796         * modules/time_r (Makefile.am): Likewise.
797         * modules/timegm (Makefile.am): Likewise.
798         * modules/tmpfile-safer (Makefile.am): Likewise.
799         * modules/unistd-safer (Makefile.am): Likewise.
800         * modules/unlinkdir (Makefile.am): Likewise.
801         * modules/userspec (Makefile.am): Likewise.
802         * modules/utime (Makefile.am): Likewise.
803         * modules/utimecmp (Makefile.am): Likewise.
804         * modules/utimens (Makefile.am): Likewise.
805         * modules/vasnprintf (Makefile.am): Likewise.
806         * modules/vasprintf (Makefile.am): Likewise.
807         * modules/vsnprintf (Makefile.am): Likewise.
808         * modules/xalloc (Makefile.am): Likewise.
809         * modules/xgetcwd (Makefile.am): Likewise.
810         * modules/xnanosleep (Makefile.am): Likewise.
811         * modules/xreadlink (Makefile.am): Likewise.
812         * modules/xstrtod (Makefile.am): Likewise.
813         * modules/xstrtol (Makefile.am): Likewise.
814         * modules/xstrtold (Makefile.am): Likewise.
815         * modules/yesno (Makefile.am): Likewise.
816
817 2006-10-12  Jim Meyering  <jim@meyering.net>
818
819         * m4/getloadavg.m4: Revert the change below.
820
821         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
822         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
823         fail with a symlink, which is what coreutils' ./bootstrap now
824         creates by default.
825
826 2006-10-12  Bruno Haible  <bruno@clisp.org>
827
828         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
829         mingw.
830         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
831         MSVC and mingw explicitly.
832
833 2006-10-11  Simon Josefsson  <jas@extundo.com>
834             Bruno Haible  <bruno@clisp.org>
835
836         Add support for multiple gnulib-tool invocations in the scope of a
837         single configure.ac file.
838         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
839         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
840         with the same contents as the _LIBADD variable.
841         (func_emit_initmacro_start, func_emit_initmacro_end,
842         func_emit_initmacro_done): New functions.
843         (func_import, func_create_testdir): Invoke them. Allow the identifiers
844         gl_LIBOBJS and gl_LTLIBOBJS.
845
846 2006-10-11  Bruno Haible  <bruno@clisp.org>
847
848         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
849         (func_create_testdir): Don't create po/Makefile.am, don't invoke
850         autoreconf. Instead, invoke autopoint explicitly but move back the
851         *.m4 files from gnulib.
852
853 2006-10-11  Bruno Haible  <bruno@clisp.org>
854
855         * gnulib-tool (func_usage): Make module names after --create-testdir
856         optional.
857         (func_create_testdir): If no module was specified, use nearly all
858         modules.
859
860 2006-10-12  Jim Meyering  <jim@meyering.net>
861
862         Big performance improvement for fts-based tools that use FTS_NOSTAT.
863         Avoid spurious inode-mismatch problems on non-POSIX file systems.
864         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
865         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
866         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
867         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
868         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
869         (fts_set_stat_required): New function.
870         (fts_open): Defer the calls to fts_stat, if possible or requested.
871         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
872         into fts_stat itself.
873         (fts_read): Perform any required (deferred) fts_stat call.
874         (fts_build): Likewise, for the directory we're about to open and read.
875         In the readdir loop, carefully decide whether each entry will require
876         an eventual call to fts_stat, using dirent.d_type info if available.
877         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
878         a command line argument into this function.  Update all callers.
879         Map a return value of FTS_DOT to FTS_D for a command line argument.
880         * modules/fts (Depends-on): Add d-type.  Alphabetize.
881         Thanks to Miklos Szeredi for his tenacity and for the initial
882         bug report about "find" failing on a FUSE-based file system.
883
884         * lib/fts.c (fts_open): Use consistent indentation.
885
886 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
887
888         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
889         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
890         reported by Jim Meyering.  All uses of cache variables renamed
891         to match Autoconf's.
892         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
893         the other one.
894
895         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
896         Fix misspelling in diagnostic.
897
898 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
899
900         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
901         defined.  Problem reported by Matthew Woehlke.
902
903         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
904         Add support for Tandem NonStop R series.
905         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
906         Use new macro.
907
908         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
909         (has_trailing_slash): Omit size arg; all callers changed.
910         Omit 'inline', since it doesn't help performance and we'd
911         need to configure it.
912         Don't count //, ///, etc. as having a trailing slash.
913         As a side effect, this removes a C99ism reported by Matthew Woehlke.
914         (rpl_rename_dest_slash): On failure, use rename's errno rather
915         than (in some cases) an incorrect or junk errno.
916         Simplify code by removing need to compute length; this does
917         cause it to make two passes instead of one over the file name,
918         but it's worth it.
919
920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
921         change, since Autoconf's version may no longer be appropriate now
922         that we are using CVS Autoconf's version.  Add support for Tandem.
923
924 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
925             Bruno Haible  <bruno@clisp.org>
926
927         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
928         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
929         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
930         gl_AC_TYPE_LONG_LONG.
931
932         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
933         instead of HAVE_LONG_LONG.
934         * lib/printf-args.c (printf_fetchargs): Likewise.
935         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
936         * lib/vasnprintf.c (VASNPRINTF): Likewise.
937         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
938         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
939         gl_AC_TYPE_LONG_LONG.
940
941 2006-10-11  Bruno Haible  <bruno@clisp.org>
942
943         * m4/longlong.m4: Add comments.
944         * m4/ulonglong.m4: Likewise.
945
946 2006-10-10  Bruno Haible  <bruno@clisp.org>
947
948         Make it possible to #define stpcpy, strdup to aliases.
949         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
950         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
951
952 2006-10-10  Bruno Haible  <bruno@clisp.org>
953
954         Make it possible to #define gcd to an alias.
955         * lib/gcd.c: Include config.h.
956
957 2006-10-10  Bruno Haible  <bruno@clisp.org>
958
959         Make it possible to #define c_isascii to an alias.
960         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
961         defined. Undefine the macros before defining them, to avoid gcc
962         warnings.
963         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
964         define NO_C_CTYPE_MACROS early.
965
966 2006-10-10  Bruno Haible  <bruno@clisp.org>
967
968         Make it possible to #define set_program_name to an alias.
969         * lib/progname.c: Don't undefine set_program_name; instead, undefine
970         ENABLE_RELOCATABLE early.
971
972 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
973
974         Port to Tandem NSK OSS, which has 64-bit signed int but at most
975         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
976         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
977         More generally, don't assume that 64-bit signed int is available
978         if unsigned int is, and vice versa.
979         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
980         unsigned symbols, not on their signed counterparts.
981         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
982         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
983         (UINT64_C, UINTMAX_C):
984         Likewise.
985         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
986         unsigned counterparts.
987         (Have_long_long, Unsigned): New macros.
988         (Int): Renamed from INT.
989         (strtoimax): Use the new macros.
990         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
991         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
992         * modules/inttypes (inttypes.h): Substitute
993         HAVE_UNSIGNED_LONG_LONG_INT.
994         * modules/stdint (stdint.h): Likewise.
995         (Files): Add m4/ulonglong.m4.
996
997 2006-10-10  Bruno Haible  <bruno@clisp.org>
998
999         Fix a gcc -Wshadow warning.
1000         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
1001         to 'bucket'.
1002         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
1003         gl_linked_indexof_from_to): Likewise.
1004         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
1005         Likewise.
1006         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
1007         Likewise.
1008         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
1009         Reported by Eric Blake.
1010
1011 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
1012
1013         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
1014         for NetBSD.  Problem reported by Bruno Haible.
1015
1016 2006-10-09  Jim Meyering  <jim@meyering.net>
1017
1018         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
1019         Patch from Bruno Haible.
1020
1021 2006-10-09  Jim Meyering  <jim@meyering.net>
1022
1023         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
1024         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
1025         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
1026
1027 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         Don't include <config.h> twice; this doesn't work in some cases,
1030         e.g., when config.h has "#define intmax_t long long int" and
1031         we include <config.h>, <inttypes.h>, <config.h> in that order.
1032         Problem reported by Matthew Woehlke in:
1033         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
1034         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
1035         * lib/fts-cycle.c: Don't include config.h.
1036         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
1037         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
1038         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
1039         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
1040         inttypes.h.
1041         * lib/xstrtoumax.c: Likewise.
1042         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
1043         __strtol and the like, so that this module is more like its siblings.
1044         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
1045         Remove; no longer needed now that we assume gnulib inttypes.h.
1046
1047 2006-10-08  Bruno Haible  <bruno@clisp.org>
1048
1049         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
1050         option.
1051
1052 2006-10-07  Jim Meyering  <jim@meyering.net>
1053
1054         * modules/inttypes (inttypes.h): Revert what seems to have been
1055         an inadvertent part of today's change: use "|", not "/" in the
1056         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
1057
1058 2006-10-07  Bruno Haible  <bruno@clisp.org>
1059
1060         * modules/sublist: New file.
1061
1062 2006-10-07  Bruno Haible  <bruno@clisp.org>
1063
1064         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
1065         * modules/argz (argz.h): Likewise.
1066         * modules/arpa_inet (arpa/inet.h): Likewise.
1067         * modules/byteswap (byteswap.h): Likewise.
1068         * modules/configmake (configmake.h): Likewise.
1069         * modules/fcntl (fcntl.h): Likewise.
1070         * modules/fnmatch (fnmatch.h): Likewise.
1071         * modules/getopt (getopt.h): Likewise.
1072         * modules/glob (glob.h): Likewise.
1073         * modules/inttypes (inttypes.h): Likewise.
1074         * modules/netinet_in (netinet/in.h): Likewise.
1075         * modules/poll (poll.h): Likewise.
1076         * modules/stdbool (stdbool.h): Likewise.
1077         * modules/stdint (stdint.h): Likewise.
1078         * modules/sys_select (sys/select.h): Likewise.
1079         * modules/sys_socket (sys/socket.h): Likewise.
1080         * modules/sys_stat (sys/stat.h): Likewise.
1081         * modules/sysexits (sysexits.h): Likewise.
1082         * modules/unistd (unistd.h): Likewise.
1083         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1084         Add a "DO NOT EDIT" comment to the generated file.
1085         (func_import): Likewise for gnulib-comp.m4.
1086
1087 2006-10-07  Bruno Haible  <bruno@clisp.org>
1088
1089         * lib/gl_sublist.h: New file.
1090         * lib/gl_sublist.c: New file.
1091
1092 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
1093
1094         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
1095         name (relative to the original working directory) and the file
1096         name component (relative to the temporary working directory).  All
1097         callers changed.
1098         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
1099         * lib/mkdir-p.c (make_dir_parents): Likewise.
1100         * lib/mkdir-p.h (make_dir_parents): Likewise.
1101
1102 2006-10-06  Eric Blake  <ebb9@byu.net>
1103
1104         Define several macros for use by the clean-temp module.
1105         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
1106         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
1107         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
1108
1109         * lib/clean-temp.h (close_stream_temp): New declaration.
1110         * lib/clean-temp.c (includes): Pull in headers according to what
1111         other modules are in use.
1112         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
1113
1114 2006-10-06  Bruno Haible  <bruno@clisp.org>
1115
1116         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
1117         instead of fopen, fwriteerror.
1118
1119 2006-10-06  Bruno Haible  <bruno@clisp.org>
1120
1121         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
1122         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
1123         int.
1124         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
1125         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
1126         Return an error indicator.
1127         Suggested by Eric Blake.
1128
1129 2006-10-06  Bruno Haible  <bruno@clisp.org>
1130
1131         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
1132         Reported by Eric Blake.
1133
1134 2006-10-06  Bruno Haible  <bruno@clisp.org>
1135
1136         * modules/closeout (Description): Mention stderr too.
1137
1138 2006-10-06  Bruno Haible  <bruno@clisp.org>
1139         and Paul Eggert  <eggert@cs.ucla.edu>
1140
1141         * lib/closeout.c (close_stdout): Also close stderr.
1142         * lib/closeout.h: Update comment.
1143
1144 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1145
1146         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
1147         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
1148         * lib/dirchownmod.c: Include lchown.h.
1149         * lib/lchown.c: Don't include files that lchown.h now includes.
1150         Don't declare chown, since lchown.h now does that.
1151         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
1152         (lchown): Define to rpl_chown if lchown is declared but
1153         does not exist.  Declare using a prototype if lchown is not
1154         declared.  Add a copyright notice.
1155         * lib/mkstemp.h: Include <unistd.h>.
1156         * lib/openat.c: Include lchown.h.
1157
1158         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
1159         we now test for that separately.
1160         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
1161         rather than O_NOFOLLOW, when testing whether it's possible to
1162         avoid a race condition reliably.
1163         * lib/savewd.c (savewd_chdir): Likewise.
1164
1165         Remove macros that are no longer needed now that stdint.h is
1166         reliable.
1167         * lib/fsusage.c (UINTMAX_MAX): Remove.
1168         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
1169         * lib/utimecmp.c (SIZE_MAX): Remove.
1170
1171         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
1172
1173         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
1174         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
1175         O_NOATIME works.
1176
1177 2006-10-05  Bruno Haible  <bruno@clisp.org>
1178
1179         * lib/gl_list.h (gl_sortedlist_search_from_to,
1180         gl_sortedlist_indexof_from_to): New declarations.
1181         (gl_list_implementation): New fields sortedlist_search_from_to,
1182         sortedlist_indexof_from_to.
1183         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
1184         inline functions.
1185         * lib/gl_list.c (gl_sortedlist_search_from_to,
1186         gl_sortedlist_indexof_from_to): New functions.
1187         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
1188         function.
1189         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
1190         (gl_array_sortedlist_search_from_to): New function.
1191         (gl_array_list_implementation): Update.
1192         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
1193         function.
1194         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
1195         (gl_carray_sortedlist_search_from_to): New function.
1196         (gl_carray_list_implementation): Update.
1197         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
1198         gl_linked_sortedlist_indexof_from_to): New functions.
1199         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1200         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1201         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
1202         gl_tree_sortedlist_indexof_from_to): New functions.
1203         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1204         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1205         Update.
1206         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1207         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
1208         Update.
1209
1210 2006-10-05  Bruno Haible  <bruno@clisp.org>
1211
1212         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
1213         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
1214         (struct gl_list_implementation): Add fields search_from_to,
1215         indexof_from_to. Remove fields search, indexof.
1216         (gl_list_search): Use the search_from_to method.
1217         (gl_list_search_from, gl_list_search_from_to): New functions.
1218         (gl_list_indexof): Use the indexof_from_to method.
1219         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
1220         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
1221         (gl_list_search_from, gl_list_search_from_to): New functions.
1222         (gl_list_indexof): Use the indexof_from_to method.
1223         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
1224         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
1225         gl_array_indexof. Add start_index, end_index arguments.
1226         (gl_array_search_from_to): Renamed from gl_array_search. Add
1227         start_index, end_index arguments.
1228         (gl_array_remove, gl_array_list_implementation): Update.
1229         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
1230         gl_carray_indexof. Add start_index, end_index arguments.
1231         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
1232         start_index, end_index arguments.
1233         (gl_carray_remove, gl_carray_list_implementation): Update.
1234         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
1235         gl_linked_search. Add start_index, end_index arguments.
1236         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
1237         start_index, end_index arguments.
1238         (gl_linked_remove): Update.
1239         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1240         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1241         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
1242         field to 'size_t'.
1243         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
1244         gl_tree_search. Add start_index, end_index arguments.
1245         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
1246         start_index, end_index arguments.
1247         (gl_tree_remove): Update.
1248         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1249         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1250         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
1251         function.
1252         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
1253         gl_tree_search. Add start_index, end_index arguments.
1254         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
1255         start_index, end_index arguments.
1256         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1257         Update.
1258         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1259
1260 2006-10-05  Bruno Haible  <bruno@clisp.org>
1261
1262         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
1263
1264         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1265         fwriteerror_temp): New declarations.
1266         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
1267         (descriptors): New variable.
1268         (cleanup): First, close the descriptors.
1269         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
1270         fclose_temp, fwriteerror_temp): New functions.
1271
1272 2006-10-04  Jim Meyering  <jim@meyering.net>
1273
1274         * lib/fts.c (fts_open): Tiny comment change.
1275
1276 2006-10-04  Bruno Haible  <bruno@clisp.org>
1277
1278         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
1279         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
1280         gl_LOCK_BODY.
1281         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
1282         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
1283         gl_LOCK_EARLY_BODY.
1284         (gl_LOCK): Require gl_LOCK_BODY.
1285
1286 2006-10-04  Bruno Haible  <bruno@clisp.org>
1287
1288         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
1289         (gl_oset_search_atleast): New declaration.
1290         (struct gl_oset_implementation): Add field 'search_atleast'.
1291         (gl_oset_search_atleast): New inline function.
1292         * lib/gl_oset.c (gl_oset_search_atleast): New function.
1293         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
1294         (gl_array_oset_implementation): Update.
1295         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
1296         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
1297         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
1298
1299 2006-10-04  Bruno Haible  <bruno@clisp.org>
1300
1301         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
1302
1303 2006-10-03  Bruno Haible  <bruno@clisp.org>
1304
1305         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
1306         from gl_avltreehash_list_implementation.
1307
1308 2006-10-03  Bruno Haible  <bruno@clisp.org>
1309
1310         * lib/gl_oset.c (gl_oset_add): Fix return type.
1311
1312 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
1313
1314         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
1315
1316 2006-10-02  Eric Blake  <ebb9@byu.net>
1317
1318         * modules/strnlen (Depends-on): Add extensions.
1319
1320 2006-10-02  Eric Blake  <ebb9@byu.net>
1321
1322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
1323         definition in 2.60+.
1324
1325 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1326
1327         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
1328         checks.
1329
1330 2006-10-02  Bruno Haible  <bruno@clisp.org>
1331
1332         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
1333         to the AUTOMAKE_OPTIONS.
1334         Reported by Jim Meyering.
1335
1336 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
1337
1338         Work around bug in Solaris 10 /proc file system:
1339         /proc/self/fd/NNN/.. isn't the parent directory of
1340         the directory whose file descriptor is NNN.  This needs to
1341         be worked around at run time, not compile time, since a
1342         program might be built on Solaris 8, where things work, and
1343         run on Solaris 10.
1344         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
1345         to use the following interface instead:
1346         (OPENAT_BUFFER_SIZE): New macro.
1347         (openat_proc_name): New function.
1348         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
1349         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
1350         Likewise.
1351         * lib/openat-proc.c: New file.
1352         * modules/openat (Files): Add lib/openat-proc.c.
1353         (Depends-on): Add same-inode, stdbool.
1354         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
1355
1356 2006-09-29  Bruno Haible  <bruno@clisp.org>
1357
1358         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
1359         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
1360         argument. Set stdout_closed before testing for ferror, not after.
1361         (fwriteerror, fwriteerror_no_ebadf): New functions.
1362
1363 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1364
1365         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
1366
1367 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
1368
1369         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
1370         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
1371
1372 2006-09-28  Jim Meyering  <jim@meyering.net>
1373
1374         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
1375         Include <unistd.h>.
1376
1377 2006-09-28  Bruno Haible  <bruno@clisp.org>
1378
1379         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
1380         * modules/linkedhash-list (Depends-on): Likewise.
1381         * modules/rbtreehash-list (Depends-on): Likewise.
1382
1383 2006-09-28  Bruno Haible  <bruno@clisp.org>
1384
1385         * lib/strndup.h: Simplify the redefinition of strndup.
1386         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
1387         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
1388
1389 2006-09-28  Bruno Haible  <bruno@clisp.org>
1390
1391         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
1392         * lib/gl_linkedhash_list.c: Likewise.
1393         * lib/gl_rbtreehash_list.c: Likewise.
1394
1395 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
1396
1397         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
1398         getaddrinfo.
1399
1400         * lib/__fpending.h: Don't include <stdio_ext.h> unless
1401         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
1402         it causes <stdio_ext.h> to cause a compile-time error.
1403         Problem reported by Nelson H. F. Beebe.
1404         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
1405         of HAVE_DECL___PENDING.
1406
1407         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
1408         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
1409         declaration.
1410
1411 2006-09-27  Jim Meyering  <jim@meyering.net>
1412
1413         This file could end up with a definition for a function
1414         named __strndup, rather than rpl_strndup on a system with
1415         incomplete weak_alias support.
1416         * lib/strndup.c (strndup): Rename from __strndup.
1417         Remove #defines that used to map __strndup to strndup.
1418         Don't use K&R prototypes.
1419         Remove LIBC-related code, since this file is not sync'd with glibc.
1420         * lib/strndup.h: Revamp, accordingly.
1421         * m4/strndup.m4: Modernize.
1422
1423 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1424
1425         * modules/savewd (Depends-on): Add 'raise'.
1426         * lib/savewd.c: Include <signal.h>, for 'raise'.
1427
1428 2006-09-26  Jim Meyering  <jim@meyering.net>
1429
1430         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
1431         when we detect Darwin 8.7.0's acl_get_file bug.
1432         Rearrange to perform the new (below) run-test while $LIBS
1433         contains any acl-related library.  Set USE_ACL at the end.
1434         (gl_ACL_GET_FILE): New function.
1435
1436 2006-09-26  Eric Blake  <ebb9@byu.net>
1437
1438         * lib/verror.c: Include <config.h> unconditionally.
1439
1440 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1441
1442         * modules/clock-time (Maintainer): Add self.
1443         * modules/getlogin_r (Depends-on): Add extensions.
1444
1445 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1446
1447         * modules/clock-time: New module.
1448         * modules/nanosleep (Depends-on): Add clock-time.
1449         * modules/gethrxtime (Depends-on): Likewise.
1450         * modules/gettime (Depends-on): Likewise.
1451         * modules/settime (Depends-on): Likewise.
1452
1453         * modules/fts-lgpl: Depend on openat.
1454         * modules/mkancesdirs: Depend on savewd.
1455         * modules/mkdir-p: Likewise.
1456
1457 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1458
1459         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
1460
1461         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
1462         `gl_have_arbitrary_file_name_length_limit' to
1463         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
1464         actually works between configure runs.
1465
1466 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1467             Bruno Haible  <bruno@clisp.org>
1468
1469         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
1470
1471 2006-09-25  Jim Meyering  <jim@meyering.net>
1472
1473         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
1474         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
1475
1476 2006-09-25  Eric Blake  <ebb9@byu.net>
1477
1478         * gnulib-tool (func_import, func_create_testdir): Fix typos in
1479         exec's in 2006-09-18 patch when shuffling fds.
1480
1481 2006-09-25  Bruno Haible  <bruno@clisp.org>
1482
1483         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
1484         Reported by Jim Meyering.
1485
1486 2006-09-24  Jim Meyering  <jim@meyering.net>
1487
1488         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
1489         compare a pointer against a literal "0".  That caused failures with
1490         at least HP-UX's hpcc.
1491
1492 2006-09-22  Simon Josefsson  <jas@extundo.com>
1493
1494         * modules/gc-sha1:
1495         * modules/gc-md4:
1496         * modules/gc-hmac-sha1:
1497         * modules/gc-hmac-md5:
1498         * modules/gc-des:
1499         * modules/gc-arcfour: Distribute more files.
1500
1501 2006-09-22  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1502
1503         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
1504         (gl_linked_iterator_from_to): Initialize struct completely.
1505         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
1506         (gl_tree_iterator_from_to): Likewise
1507         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
1508         * lib/gl_array_list.c [lint] (gl_array_iterator)
1509         (gl_array_iterator_from_to): Likewise.
1510         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
1511         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
1512         (gl_carray_iterator_from_to): Likewise.
1513
1514         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
1515         * lib/md4.c (md4_process_block): Remove unused variable.
1516         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
1517         parentheses for clarity.
1518
1519 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1520
1521         * modules/bison-i18n (Depends-on): Add gettext.
1522
1523 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1524
1525         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
1526         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1527         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
1528         also add missing comma that caused broken test.
1529         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
1530         stdlib.h, for `abort'.
1531         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
1532         variables.
1533         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
1534         include unistd.h if present, for `rmdir'.
1535         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
1536         variables.
1537         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
1538         in the process include standard headers for prototypes.
1539         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
1540         gets declared on GNU/Linux.
1541         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
1542         unistd.h, for `rmdir'.
1543         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
1544
1545         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
1546         always true.
1547         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
1548
1549         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
1550
1551 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1552
1553         * gnulib-tool (func_version): Create output all at once.  This
1554         may help avoid triggering unnecessary SIGPIPEs, and at any
1555         rate it doesn't hurt.
1556
1557 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1558             Bruno Haible  <bruno@clisp.org>
1559
1560         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
1561         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1562         * m4/signed.m4 (bh_C_SIGNED): Likewise.
1563
1564         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
1565         (gl_FUNC_VASPRINTF): Invoke it.
1566
1567 2006-09-22  Bruno Haible  <bruno@clisp.org>
1568
1569         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
1570         getloadavg.c as first argument.
1571
1572 2006-09-22  Bruno Haible  <bruno@clisp.org>
1573
1574         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
1575         at the beginning of the gl_INIT macro.
1576         * modules/getloadavg (configure.ac): Pass $gl_source_base to
1577         gl_GETLOADAVG.
1578
1579 2006-09-22  Bruno Haible  <bruno@clisp.org>
1580
1581         * gnulib-tool (func_create_megatestdir): Don't include the config-h
1582         module.
1583         Suggested by Ralf Wildenhues.
1584
1585 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1586
1587         Import this patch from libc:
1588
1589         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1590
1591         * lib/regex_internal.c (re_string_reconstruct): Handle
1592         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1593         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1594         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1595         re_string_context_at.
1596
1597         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
1598         now requires it.
1599         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
1600         gl_REGEX now does it for us.
1601         (gl_REGEX): Add test taken from
1602         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
1603
1604         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
1605         Check that large offsets work.  Modernize Autoconf usages.
1606         Prefer "yes" to mean a good thing rather than a bad.
1607         Don't put "#define mkstemp" in config.h, as this might interfere
1608         with standard system headers that "#define mkstemp mkstemp64".
1609
1610         * modules/mkstemp (Depends-on): Add extensions, so that
1611         mkstemp is visible on some platforms.
1612         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
1613         (Include): Change to "mkstemp.h" from <stdlib.h>.
1614         (Files): Add mkstemp.h.
1615
1616         * lib/mkstemp.h: New file, since some standard headers
1617         #define mkstemp.
1618         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
1619         Include "mkstemp.h".
1620         Make the _LIBC code resemble glibc original more,
1621         e.g., use K&R style.
1622         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
1623         (mkstemp): Remove, since mkstemp.h does this for us.
1624         * lib/stdlib--.h: Include mkstemp.h.
1625
1626         Import this patch from libc:
1627
1628         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
1629
1630         * lib/tempname.c (__gen_tempname): Change attempts_min
1631         into a macro.  Use preprocessor to decide how to initialize
1632         attempts [Coverity CID 67].
1633
1634 2006-09-20  Bruno Haible  <bruno@clisp.org>
1635
1636         * lib/mkdtemp.c: Import from libc.
1637         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
1638                 * sysdeps/posix/tempname.c (__gen_tempname): Change
1639                 attempts_min into a macro.  Use preprocessor to decide how to
1640                 initialize attempts [Coverity CID 67].
1641         2001-11-27  Paul Eggert  <eggert@twinsun.com>
1642                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1643                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1644
1645 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1646
1647         * gnulib-tool (func_exit): New function, to allow to pass the
1648         exit status portably through the trap.  Use everywhere.
1649         (--help, --version): Signal a write error.
1650         (trap): catch SIGPIPE, for write errors.
1651         Exit at the end of the trap, with the correct exit status.
1652
1653 2006-09-19  Karl Berry  <karl@gnu.org>
1654
1655         * doc/gnulib.texi: note about the license texinfo files.
1656
1657 2006-09-19  Eric Blake  <ebb9@byu.net>
1658
1659         * gnulib-tool: Avoid space-tab.
1660
1661 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1662
1663         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
1664         that prevented coreutils 6.1 from building.  Problem reported
1665         by Petter Reinholdtsen.
1666
1667 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         * gnulib-tool (avoidlist): Fix typo that broke options like
1670         --avoid=lock that are used by coreutils bootstrap.
1671
1672 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
1673
1674         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
1675         more systematically.
1676
1677 2006-09-18  Jim Meyering  <jim@meyering.net>
1678
1679         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
1680
1681 2006-09-18  Bruno Haible  <bruno@clisp.org>
1682
1683         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
1684
1685 2006-09-18  Bruno Haible  <bruno@clisp.org>
1686
1687         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
1688         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
1689         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
1690         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
1691         * m4/gettext.m4: Require autoconf >= 2.52.
1692         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
1693         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
1694         of gl_cv_header_inttypes_h.
1695
1696 2006-09-18  Bruno Haible  <bruno@clisp.org>
1697
1698         * lib/javaversion.c: Include configmake.h.
1699
1700 2006-09-18  Bruno Haible  <bruno@clisp.org>
1701
1702         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
1703         avoid that the while loops be executed in a subshell.
1704
1705 2006-09-18  Bruno Haible  <bruno@clisp.org>
1706
1707         * MODULES.html.sh (func_module): Break long lines.
1708         Suggested by Bruce Korb <bkorb@gnu.org>.
1709
1710 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1711
1712         Speed up by a factor of 1.12.
1713         * gnulib-tool (nl): New variable.
1714         (func_import): Rewrite include directive extraction to only read each
1715         directive once.
1716
1717 2006-09-17  Bruno Haible  <bruno@clisp.org>
1718
1719         * modules/javaversion (Makefile.am): Remove DEFS setting.
1720         (Depends-on): Add configmake, for PKGDATADIR definition.
1721
1722 2006-09-17  Bruno Haible  <bruno@clisp.org>
1723
1724         * gnulib-tool (func_create_testdir): Rewrite all files at once.
1725
1726 2006-09-17  Bruno Haible  <bruno@clisp.org>
1727
1728         * gnulib-tool (func_append): New function, stolen from libtool.m4.
1729         (func_modules_transitive_closure, func_modules_add_dummy,
1730         func_modules_to_filelist, func_import, func_create_testdir,
1731         func_create_megatestdir, ...): Use it wherever possible.
1732         Suggested by Ralf Wildenhues.
1733
1734 2006-09-16  Karl Berry  <karl@gnu.org>
1735
1736         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
1737         to avoid sectioning errors.
1738         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
1739         [ifinfo]: blank line after @center-ed titles.
1740         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
1741         Spell FSF address consistently with others.
1742         (These changes approved by rms.)
1743
1744 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1745
1746         Speed up by a factor of 1.61.
1747         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
1748         already checked module names again.
1749
1750 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1751
1752         Speed up by a factor of 1.13.
1753         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
1754         for new_files, and the input to func_add_or_update.
1755
1756 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1757
1758         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
1759         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
1760
1761 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1762
1763         * modules/mkancesdirs (Depends-on): Add fcntl.
1764         * modules/savewd: New file.
1765         * MODULES.html.sh (File system functions): Add savewd.
1766
1767         * modules/configmake (Makefile.am): Add support for the
1768         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
1769
1770 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1771
1772         * m4/savewd.m4: New file.
1773
1774 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1775
1776         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
1777         (dirchownmod): New arg FD.  All callers changed.
1778         Use FD rather than opening the directory ourself, as opening is
1779         now the caller's responsibility.
1780         * lib/dirchownmod.h: Likewise.
1781         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
1782         hosts that require <sys/types.h> before <sys/stat.h>.  Include
1783         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
1784         (test_dir): Remove.
1785         (mkancesdirs): Return length of prefix of FILE that has already
1786         been made, or -2 if there is a child doing the work.  Redo
1787         algorithm so that it is O(N) rather than O(N**2).  Optimize away
1788         ".", and treat ".." specially since it might stray back into
1789         already-created areas.  Use a subprocess if necessary.  New arg
1790         WD; all users changed.  MAKE_DIR function should now return 1
1791         if it creates a directory that is not readable.  Return -2 if
1792         a child process is spun off.
1793         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
1794         Adjust signature to match code.
1795         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
1796         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
1797         all users changed.
1798         * lib/savewd.c, savewd.h: New files.
1799
1800 2006-09-15  Jim Meyering  <jim@meyering.net>
1801
1802         * modules/rename-dest-slash: New module.
1803         * MODULES.html.sh (posix_compat): Add it here.
1804
1805         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
1806
1807 2006-09-15  Jim Meyering  <jim@meyering.net>
1808
1809         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
1810         file.
1811
1812         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
1813
1814 2006-09-15  Jim Meyering  <jim@meyering.net>
1815
1816         * lib/rename-dest-slash.c (has_trailing_slash): Use
1817         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
1818         (rpl_rename_dest_slash): Perform the cheaper trailing slash
1819         test before testing whether SRC is a directory.
1820         Suggestions from Bruno Haible.
1821
1822         Avoid a warning about an unused variable.
1823         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
1824         into the #ifdef block where it's used.
1825
1826         * lib/rename-dest-slash.c: New file.
1827
1828 2006-09-14  Bruno Haible  <bruno@clisp.org>
1829
1830         * lib/allocsa.c: Include <config.h> unconditionally.
1831         * lib/asnprintf.c: Likewise.
1832         * lib/asprintf.c: Likewise.
1833         * lib/c-strcasecmp.c: Likewise.
1834         * lib/c-strcasestr.c: Likewise.
1835         * lib/c-strncasecmp.c: Likewise.
1836         * lib/c-strstr.c: Likewise.
1837         * lib/classpath.c: Likewise.
1838         * lib/clean-temp.c: Likewise.
1839         * lib/concatpath.c: Likewise.
1840         * lib/copy-file.c: Likewise.
1841         * lib/csharpcomp.c: Likewise.
1842         * lib/csharpexec.c: Likewise.
1843         * lib/execute.c: Likewise.
1844         * lib/fatal-signal.c: Likewise.
1845         * lib/findprog.c: Likewise.
1846         * lib/fwriteerror.c: Likewise.
1847         * lib/gl_array_list.c: Likewise.
1848         * lib/gl_array_oset.c: Likewise.
1849         * lib/gl_avltree_list.c: Likewise.
1850         * lib/gl_avltree_oset.c: Likewise.
1851         * lib/gl_avltreehash_list.c: Likewise.
1852         * lib/gl_carray_list.c: Likewise.
1853         * lib/gl_linked_list.c: Likewise.
1854         * lib/gl_linkedhash_list.c: Likewise.
1855         * lib/gl_list.c: Likewise.
1856         * lib/gl_oset.c: Likewise.
1857         * lib/gl_rbtree_list.c: Likewise.
1858         * lib/gl_rbtree_oset.c: Likewise.
1859         * lib/gl_rbtreehash_list.c: Likewise.
1860         * lib/imaxabs.c: Likewise.
1861         * lib/imaxdiv.c: Likewise.
1862         * lib/javacomp.c: Likewise.
1863         * lib/javaexec.c: Likewise.
1864         * lib/javaversion.c: Likewise.
1865         * lib/linebreak.c: Likewise.
1866         * lib/localcharset.c: Likewise.
1867         * lib/lock.c: Likewise.
1868         * lib/mbchar.c: Likewise.
1869         * lib/mbswidth.c: Likewise.
1870         * lib/mkdtemp.c: Likewise.
1871         * lib/pipe.c: Likewise.
1872         * lib/printf-args.c: Likewise.
1873         * lib/printf-parse.c: Likewise.
1874         * lib/progname.c: Likewise.
1875         * lib/progreloc.c: Likewise.
1876         * lib/readlink.c: Likewise.
1877         * lib/sh-quote.c: Likewise.
1878         * lib/stpcpy.c: Likewise.
1879         * lib/stpncpy.c: Likewise.
1880         * lib/strcasecmp.c: Likewise.
1881         * lib/strcasestr.c: Likewise.
1882         * lib/strcspn.c: Likewise.
1883         * lib/striconv.c: Likewise.
1884         * lib/strncasecmp.c: Likewise.
1885         * lib/strnlen1.c: Likewise.
1886         * lib/strstr.c: Likewise.
1887         * lib/strtok_r.c: Likewise.
1888         * lib/tls.c: Likewise.
1889         * lib/tmpdir.c: Likewise.
1890         * lib/unicodeio.c: Likewise.
1891         * lib/unsetenv.c: Likewise.
1892         * lib/vasnprintf.c: Likewise.
1893         * lib/vasprintf.c: Likewise.
1894         * lib/wait-process.c: Likewise.
1895         * lib/xallocsa.c: Likewise.
1896         * lib/xsetenv.c: Likewise.
1897         * lib/xstriconv.c: Likewise.
1898
1899 2006-09-13  Simon Josefsson  <jas@extundo.com>
1900
1901         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
1902         that internally, suggested by Ralf Wildenhues
1903         <Ralf.Wildenhues@gmx.de>.
1904
1905 2006-09-13  Simon Josefsson  <jas@extundo.com>
1906
1907         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
1908         @LIBOBJS@.
1909         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1910
1911 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1912
1913         * lib/_fpending.c: Include <config.h> unconditionally, since we no
1914         longer worry about uses that don't define HAVE_CONFIG_H.
1915         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
1916         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
1917         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
1918         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
1919         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
1920         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
1921         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
1922         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
1923         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
1924         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
1925         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
1926         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
1927         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
1928         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
1929         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
1930         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
1931         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
1932         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
1933         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
1934         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
1935         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
1936         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
1937         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
1938         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
1939         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
1940         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
1941         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
1942         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
1943         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
1944         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
1945         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
1946         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
1947         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
1948         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
1949         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
1950         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
1951         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
1952         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
1953         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
1954         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
1955         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
1956         Likewise.
1957
1958 2006-09-13  Eric Blake  <ebb9@byu.net>
1959
1960         * lib/getopt.c: Fix typo in last commit.
1961
1962 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1963
1964         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
1965         dgettext.
1966
1967 2006-09-12  Jim Meyering  <jim@meyering.net>
1968
1969         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
1970         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
1971         Reported by Nelson H. F. Beebe.
1972
1973 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
1974
1975         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
1976         program_invocation_name and program_invocation_short_name are
1977         initialized.
1978         * lib/argp-namefrob.h: Move declarations of program_invocation_name
1979         and program_invocation_short_name to argp.h, so they are visible
1980         to user programs.
1981         * lib/argp.h: Likewise
1982
1983 2006-09-10  Bruno Haible  <bruno@clisp.org>
1984
1985         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
1986         m4/inttypes_h.m4, m4/uintmax_t.m4.
1987
1988 2006-09-10  Bruno Haible  <bruno@clisp.org>
1989
1990         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
1991         gl_AC_TYPE_UINTMAX_T.
1992
1993 2006-09-10  Bruno Haible  <bruno@clisp.org>
1994
1995         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
1996
1997 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
1998
1999         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
2000         convention.  Text proposed by Bruno Haible.
2001         (struct argp_option): Document the use of N_() wrappers.
2002
2003         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
2004         '\v', and translate the two parts separately, instead of feeding
2005         the whole string to gettext.  This allows to exclude
2006         '\v' from the strings visible to the translator by writing doc
2007         strings as N_("..") "\v" N_("..").
2008
2009 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2010
2011         * config/srclist.txt: Undo latest change; the bug was fixed.
2012
2013 2006-09-09  Bruno Haible  <bruno@clisp.org>
2014
2015         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
2016         assignments if building a library without libtool.
2017         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
2018         in func_emit_lib_Makefile_am.
2019         (func_import): When building a static library libfoo.a, arrange to
2020         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
2021         (func_create_testdir): Likewise.
2022         * modules/gc (configure.ac, Makefile.am): If building statically,
2023         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
2024         * modules/iconvme (configure.ac, Makefile.am): Likewise.
2025         * modules/striconv (configure.ac, Makefile.am): Likewise.
2026         Based on a suggestion by Ralf Wildenhues.
2027
2028 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2029
2030         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
2031         Check for unistd.h too, since Autoconf doesn't assume POSIX.
2032         Also:
2033
2034         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2035         Add year_2050_test to catch glibc bug 2821
2036         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
2037
2038         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2039         Prefer #ifdef to #if.
2040
2041         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
2042         Return from 'main' instead of calling 'exit'.
2043
2044 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2045
2046         * lib/mktime.c (guess_time_tm): Fix bug where mktime
2047         returned the maximum time_t value rather than (time_t) -1.
2048         Problem originally reported by William Bardwell
2049         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
2050
2051         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
2052         Moved to here ...
2053         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
2054         ... from here.
2055
2056 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
2059         2821 is fixed.
2060
2061 2006-09-08  Jim Meyering  <jim@meyering.net>
2062
2063         Don't make generated files read-only.  That would bother too many
2064         people.  However, do retain the ability to work when targets are
2065         read-only: remove the destination and temporary files before writing
2066         them (when generated via sed or echo), or by using the -f option for
2067         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
2068         * modules/alloca-opt, modules/argz, modules/arpa_inet:
2069         * modules/byteswap, modules/configmake, modules/fcntl:
2070         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
2071         * modules/localcharset, modules/netinet_in, modules/poll:
2072         * modules/stdbool, modules/stdint, modules/sys_select:
2073         * modules/sys_socket, modules/sys_stat, modules/sysexits:
2074
2075 2006-09-08  Jim Meyering  <jim@meyering.net>
2076
2077         Avoid new build failure on FreeBSD 6.0.
2078         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
2079         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
2080         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
2081
2082 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2083
2084         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
2085
2086 2006-09-07  Jim Meyering  <jim@meyering.net>
2087
2088         Fix global typo in last change: use chmod u-w, not chmod u-x.
2089         Spotted by Paul Eggert and Bruce Korb.
2090         * modules/alloca-opt, modules/argz, modules/arpa_inet:
2091         * modules/byteswap, modules/configmake, modules/fcntl:
2092         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
2093         * modules/localcharset, modules/netinet_in, modules/poll:
2094         * modules/stdbool, modules/stdint, modules/sys_select:
2095         * modules/sys_socket, modules/sys_stat, modules/sysexits:
2096
2097 2006-09-06  Jim Meyering  <jim@meyering.net>
2098
2099         Make generated files be read-only.
2100         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
2101         Ensure that each generated file is now read-only.
2102         * modules/argz: Likewise.
2103         * modules/arpa_inet: Likewise.
2104         * modules/byteswap: Likewise.
2105         * modules/configmake: Likewise.
2106         * modules/fcntl: Likewise.
2107         * modules/fnmatch: Likewise.
2108         * modules/getopt: Likewise.
2109         * modules/glob: Likewise.
2110         * modules/inttypes: Likewise.
2111         * modules/netinet_in: Likewise.
2112         * modules/poll: Likewise.
2113         * modules/stdbool: Likewise.
2114         * modules/stdint: Likewise.
2115         * modules/sys_select: Likewise.
2116         * modules/sys_socket: Likewise.
2117         * modules/sys_stat: Likewise.
2118         * modules/sysexits: Likewise.
2119         * modules/localcharset: Same as above, but continue using temporary
2120         file named "t-$@" (why different?) rather than the "$@-t" used
2121         everywhere else.
2122
2123         * modules/sysexits (Makefile.am): Replace literal occurrences
2124         of "sysexit.h" more readable, and more consistent, "$@".
2125
2126 2006-09-06  Bruno Haible  <bruno@clisp.org>
2127
2128         * modules/striconv: New file.
2129         * modules/xstriconv: New file.
2130         * MODULES.html.sh (Internationalization functions): Add striconv,
2131         xstriconv.
2132
2133 2006-09-06  Bruno Haible  <bruno@clisp.org>
2134
2135         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
2136         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
2137         not using libtool correctly.
2138
2139 2006-09-06  Bruno Haible  <bruno@clisp.org>
2140
2141         * lib/striconv.h: New file.
2142         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
2143         iconvstring.c.
2144         * lib/xstriconv.h: New file.
2145         * lib/xstriconv.c: New file.
2146
2147 2006-09-06  Bruno Haible  <bruno@clisp.org>
2148
2149         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2150         lib_..._LDFLAGS.
2151
2152 2006-09-05  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2153
2154         * lib/argz_.h: Sync from Libtool.
2155
2156         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
2157                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2158
2159         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
2160
2161 2006-09-05  Davide Angelocola <davide.angelocola@tiscali.it>
2162
2163         * modules/trim: New file.
2164
2165 2006-09-05  Davide Angelocola <davide.angelocola@tiscali.it>
2166
2167         * lib/trim.h: New file.
2168         * lib/trim.c: New file.
2169
2170 2006-09-05  Bruno Haible  <bruno@clisp.org>
2171
2172         * MODULES.html.sh (String handling): Add trim.
2173
2174 2006-09-04  Karl Berry  <karl@gnu.org>
2175
2176         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
2177         until next release.
2178
2179 2006-09-03  Bruno Haible  <bruno@clisp.org>
2180
2181         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
2182         correctly.
2183
2184 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2185
2186         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
2187         not gl_GETLOADAVG.  Omit unneeded semicolons.
2188         Problems reported by Ralf Wildenhues in
2189         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
2190         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
2191         at the end, which is the usual gnulib style.
2192
2193         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
2194         of doing all the work ourselves.
2195         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
2196         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
2197
2198 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2199
2200         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
2201         Problem reported by Ralf Wildenhues in
2202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
2203
2204         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
2205         HAVE_STRUCT_STATFS_F_FSTYPENAME.
2206
2207 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2208
2209         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
2210         yesterday's patch by changing test -n to test -z.
2211
2212 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         * modules/getloadavg (Files): Add m4/getloadavg.m4.
2215         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
2216         the former is now obsolescent.
2217
2218         * modules/chdir-long (Depends-on): Add fcntl.
2219
2220 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2221
2222         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
2223         obsolescent, and programs should use gnulib instead.
2224         * m4/getloadavg.m4: New file, with contents taken from Autoconf
2225         but with prefixes changed.
2226
2227 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2228
2229         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
2230         or stdbool.h, because they might not exist while configuring.
2231
2232         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
2233         Don't include unistd.h or limits.h; not needed, since chdir-long.h
2234         does that for us.
2235         (O_DIRECTORY): Remove.
2236
2237 2006-08-31  Eric Blake  <ebb9@byu.net>
2238
2239         * gnulib-tool: Don't let emacs change spaces to TAB.
2240
2241 2006-08-31  Bruno Haible  <bruno@clisp.org>
2242
2243         * gnulib-tool: When calling func_import more than once, do it in a
2244         subshell.
2245         Reported by Eric Blake <ebb9@byu.net>.
2246
2247 2006-08-31  Bruno Haible  <bruno@clisp.org>
2248
2249         * gnulib-tool (nl): Remove variable.
2250         (sed_transform_lib_file): Use more robust test for config-h module.
2251         (func_import): Fix typo in 2006-08-25 patch.
2252
2253 2006-08-31  Bruno Haible  <bruno@clisp.org>
2254
2255         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
2256         specified, augment Makefile.am variables instead of assigning them.
2257
2258 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2259
2260         Work around a bug in both the Linux and SunOS 64-bit kernels:
2261         nanosleep mishandles sleeps for longer than 2**31 seconds.
2262         Problem reported by Frank v Waveren in
2263         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
2264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
2265         Check for nanosleep bug.
2266         (LIB_NANOSLEEP): Append clock_gettime library if needed.
2267
2268 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2269
2270         Work around a bug in both the Linux and SunOS 64-bit kernels:
2271         nanosleep mishandles sleeps for longer than 2**31 seconds.
2272         Problem reported by Frank v Waveren in
2273         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
2274         * lib/nanosleep.c (BILLION): New constant.
2275         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
2276         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
2277         implementation.
2278
2279 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         * modules/nanosleep (Depends-on): Add gettime.
2282
2283 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2284         and Simon Josefsson  <jas@extundo.com>
2285         and Oskar Liljeblad  <oskar@osk.mine.nu>
2286
2287         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
2288         * gnulib-tool (func_import): New license type 'unmodifiable license
2289         text'.
2290         * modules/fdl: Use it.  Longer description.
2291         * module/gpl, module/lgpl: New files.
2292
2293 2006-08-30  Jim Meyering  <jim@meyering.net>
2294
2295         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
2296         shadowing the parameter.
2297
2298 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2299
2300         Sync from Libtool:
2301
2302         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2303
2304         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
2305         sharing with gnulib.  Report by Eric Blake.
2306
2307 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2308
2309         * modules/isapipe: New file.
2310         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
2311
2312 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2313
2314         * modules/configmake (Makefile.am): Add a comment, and omit
2315         the CONFIGMAKE_ prefix from generated macro names.  Suggested
2316         by Bruno Haible.
2317
2318 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2319
2320         * m4/isapipe.m4: New file.
2321
2322 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2323
2324         * lib/isapipe.c, isapipe.h: New files.
2325
2326 2006-08-29  Jim Meyering  <jim@meyering.net>
2327
2328         * modules/configmake (Makefile.am): Make configmake.h depend on
2329         Makefile.  Otherwise, a stale configmake.h could hang around.
2330
2331 2006-08-29  Eric Blake  <ebb9@byu.net>
2332
2333         * lib/error.c (error_at_line, print_errno_message): Match libc, after
2334         resolution of upstream bug 3044.
2335
2336 2006-08-29  Bruno Haible  <bruno@clisp.org>
2337
2338         * modules/localcharset (Depends-on): Add configmake.
2339         (Makefile.am): Remove setting of LIBDIR through DEFS.
2340
2341 2006-08-29  Bruno Haible  <bruno@clisp.org>
2342
2343         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
2344         defined.
2345
2346 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2347
2348         * modules/fcntl: New file.
2349         * modules/chdir-safer (Depends-on): Add fcntl.
2350         * modules/fts: Likewise.
2351         * modules/mkdir-p: Likewise.
2352
2353         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
2354         This undoes the most recent change, since we're now addressing the
2355         problem in a different way.
2356
2357         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
2358         into output, since the output might be called Makefile.am even
2359         if $makefile_name is something different.
2360         (func_import): Use $makefile_am rather than
2361         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
2362         empty.
2363
2364         * modules/inttypes (Files): Add m4/inttypes-h.m4.
2365
2366 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2367
2368         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
2369         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
2370         recent change to stdint.m4, since we're now addressing the problem in a
2371         different way.
2372
2373 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2374
2375         * m4/fcntl_h.m4: New file.
2376
2377 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2378
2379         * lib/fcntl_.h: New file.
2380         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
2381         the fcntl module.
2382         * lib/dirchownmod.c: Likewise.
2383         * lib/fts.c: Likewise.
2384
2385         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
2386         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
2387         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
2388         just before including <inttypes.h>, to avoid circular inclusion.
2389
2390 2006-08-28  Jim Meyering  <jim@meyering.net>
2391
2392         * doc/visibility.texi: Actually read and correct the grammar of the
2393         sentence affected by yesterday's change.
2394
2395 2006-08-28  Eric Blake  <ebb9@byu.net>
2396
2397         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
2398         needs wrapper.
2399
2400 2006-08-28  Eric Blake  <ebb9@byu.net>
2401
2402         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
2403
2404 2006-08-28  Eric Blake  <ebb9@byu.net>
2405
2406         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
2407
2408 2006-08-28  Bruno Haible  <bruno@clisp.org>
2409
2410         * modules/c-strstr: New file, from GNU gettext.
2411         * MODULES.html.sh (String handling): Add c-strstr.
2412
2413 2006-08-28  Bruno Haible  <bruno@clisp.org>
2414
2415         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
2416         macros.
2417         Reported by Eric Blake.
2418
2419 2006-08-28  Bruno Haible  <bruno@clisp.org>
2420
2421         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
2422         (VASNPRINTF): Return a string of length > INT_MAX without failing.
2423         * lib/vasprintf.c: Include errno.h, limits.h.
2424         (EOVERFLOW): New fallback definition.
2425         (vasprintf): Test here whether the string length is > INT_MAX.
2426         * lib/vsnprintf.c: Include errno.h, limits.h.
2427         (EOVERFLOW): New fallback definition.
2428         (vsnprintf): Fix bug when generated string was too long for the buffer.
2429         Test here whether the string length is > INT_MAX.
2430
2431 2006-08-28  Bruno Haible  <bruno@clisp.org>
2432
2433         * lib/inttypes_.h (SCNX*): Remove definitions.
2434         Reported by Eric Blake.
2435
2436 2006-08-28  Bruno Haible  <bruno@clisp.org>
2437
2438         * lib/c-strstr.h: New file, from GNU gettext.
2439         * lib/c-strstr.c: New file, from GNU gettext.
2440
2441 2006-08-28  Bruno Haible  <bruno@clisp.org>
2442
2443         * gnulib-tool: Reorder some statements.
2444
2445 2006-08-28  Bruno Haible  <bruno@clisp.org>
2446
2447         * gnulib-tool: New option --makefile-name.
2448         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
2449         $makefile_name.
2450         (func_import): Write $makefile_name to the cache file, and read it from
2451         there unless explicitly specified. Use $makefile_name as file name
2452         instead of Makefile.am. Adjust the recommendations accordingly.
2453
2454 2006-08-28  Bruno Haible  <bruno@clisp.org>
2455
2456         * gnulib-tool (func_verify_module): Check against misapplying patch.
2457
2458 2006-08-28  Bruno Haible  <bruno@clisp.org>
2459
2460         * gnulib-tool (func_relativize, func_relconcat): New functions.
2461         Give an error if --local-dir is given with --update.
2462         Remove trailing slashes from $local_gnulib_dir.
2463         (func_import): Store the relativized $local_gnulib_dir in
2464         gnulib-cache.m4, and read it from there if not specified explicitly.
2465
2466 2006-08-28  Bruno Haible  <bruno@clisp.org>
2467
2468         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
2469         is the current directory. Respect also $local_gnulib_dir.
2470
2471 2006-08-28  Bruno Haible  <bruno@clisp.org>
2472             Simon Josefsson  <jas@extundo.com>
2473
2474         BeOS portability.
2475         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
2476
2477 2006-08-27  Jim Meyering  <jim@meyering.net>
2478
2479         * doc/visibility.texi: Remove duplicate word: "pointer".
2480
2481 2006-08-26  Bruno Haible  <bruno@clisp.org>
2482
2483         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
2484         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
2485         (Makefile.am): Create inttypes.h from inttypes_.h.
2486         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
2487
2488         * modules/imaxabs: New file.
2489
2490         * modules/imaxdiv: New file.
2491
2492 2006-08-26  Bruno Haible  <bruno@clisp.org>
2493
2494         * m4/inttypes.m4: New file.
2495         * m4/_inttypes_h.m4: Remove file.
2496         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
2497         PRI_MACROS_BROKEN.
2498         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
2499
2500         * m4/imaxabs.m4: New file.
2501
2502         * m4/imaxdiv.m4: New file.
2503
2504 2006-08-26  Bruno Haible  <bruno@clisp.org>
2505
2506         * lib/inttypes_.h: New file.
2507         * lib/inttypes.h: Remove file.
2508         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
2509
2510         * lib/imaxabs.c: New file.
2511
2512         * lib/imaxdiv.c: New file.
2513
2514 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2515
2516         New config-h module, so that "make" output needn't be cluttered
2517         by -DHAVE_CONFIG_H.
2518         * MODULES.html.sh (Support for building libraries and executables):
2519         Add config-h.
2520         * modules/config-h: New file.
2521         * gnulib-tool (nl, sed_transform_lib_file): New vars.
2522         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
2523         the config-h module is used.
2524
2525         New configmake module, so that "make" output needn't be cluttered
2526         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
2527         * MODULES.html.sh (Support for building libraries and executables):
2528         Add configmake.
2529         * modules/configmake: New file.
2530
2531 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2532
2533         * m4/config-h.m4: New file.
2534
2535 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2536
2537         * config/srclist.txt: Add elisp-comp.
2538
2539 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2540
2541         * MODULES.html.sh (Support for building libraries and executables):
2542         Add elisp-comp.
2543         * build-aux/elisp-comp: New file.
2544         * modules/elisp-comp: New file.
2545
2546 2006-08-24  Bruno Haible <bruno@clisp.org>
2547
2548         * gnulib-tool (func_create_testdir): Use non-default values of
2549         sourcebase and m4base.
2550
2551 2006-08-24  Bruno Haible <bruno@clisp.org>
2552
2553         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
2554         HTML structure.
2555
2556 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2557
2558         * modules/openat (Depends-on): Add lchown.
2559
2560 2006-08-23  Bruno Haible <bruno@clisp.org>
2561
2562         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
2563         of gl_LOCK_EARLY instead of gl_LOCK.
2564
2565 2006-08-23  Bruno Haible  <bruno@clisp.org>
2566
2567         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
2568         on OSF/1 to no.
2569         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
2570
2571 2006-08-23  Bruno Haible  <bruno@clisp.org>
2572
2573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
2574         as unusable.
2575
2576         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
2577         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
2578         (gl_LOCK): New macro.
2579
2580 2006-08-22  Simon Josefsson  <jas@extundo.com>
2581
2582         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
2583         to md5 module.
2584
2585 2006-08-22  Simon Josefsson  <jas@extundo.com>
2586
2587         * MODULES.html.sh: Add "Support for maintaining and release
2588         projects".
2589
2590         * build-aux/gnupload: New file, from coreutils.
2591
2592 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2593
2594         Avoid the need for AC_LIBSOURCES in m4 macros.
2595         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
2596         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
2597         * modules/check-version (EXTRA_DIST): Add check-version.h.
2598         * modules/crc (EXTRA_DIST): Add crc.h.
2599         * modules/des (EXTRA_DIST): Add des.h.
2600         * modules/gc (EXTRA_DIST): Add gc.h.
2601         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
2602         * modules/getline (EXTRA_DIST): Add getline.h.
2603         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
2604         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
2605         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
2606         * modules/md2 (EXTRA_DIST): Add md2.h.
2607         * modules/md4 (EXTRA_DIST): Add md4.h.
2608         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
2609         * modules/read-file (EXTRA_DIST): Add read-file.h.
2610         * modules/readline (EXTRA_DIST): Add readline.h.
2611         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
2612         rijndael-api-fst.h.
2613
2614 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2615
2616         * m4/rijndael.m4 (gl_ARCFOUR):
2617         * m4/arctwo.m4 (gl_ARCTWO):
2618         * m4/check-version.m4 (gl_CHECK_VERSION):
2619         * m4/crc.m4 (gl_CRC):
2620         * m4/des.m4 (gl_DES):
2621         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
2622         * m4/gc.m4 (gl_GC):
2623         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
2624         * m4/getline.m4 (gl_FUNC_GETLINE):
2625         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
2626         * m4/hmac-md5.m4 (gl_HMAC_MD5):
2627         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
2628         * m4/md2.m4 (gl_MD2):
2629         * m4/md4.m4 (gl_MD4):
2630         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
2631         * m4/read-file.m4 (gl_FUNC_READ_FILE):
2632         * m4/readline.m4 (gl_FUNC_READLINE):
2633         * m4/rijndael.m4 (gl_RIJNDAEL):
2634         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
2635         to get the necessary .h files and whatnot.
2636
2637 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2638
2639         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
2640         gnulib rather than the other way around.
2641         * config/srclistvars.sh (COREUTILS): Remove.
2642
2643 2006-08-22  Jim Meyering  <jim@meyering.net>
2644
2645         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
2646
2647         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
2648
2649 2006-08-22  Eric Blake  <ebb9@byu.net>
2650
2651         * modules/regexprops-generic: New file.
2652         * MODULES.html.sh (Support for building documentation): List it.
2653
2654 2006-08-22  Eric Blake  <ebb9@byu.net>
2655
2656         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
2657         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2658         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
2659         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2660
2661 2006-08-22  Bruno Haible <bruno@clisp.org>
2662
2663         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
2664         and lib_LTLIBRARIES like the other lib_* variables.
2665
2666 2006-08-22  Bruno Haible <bruno@clisp.org>
2667
2668         * build-aux/x-to-1.in: New file, from GNU gettext.
2669
2670 2006-08-22  Bruno Haible  <bruno@clisp.org>
2671
2672         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
2673         <utmpx.h> exists.
2674
2675 2006-08-22  Bruno Haible  <bruno@clisp.org>
2676
2677         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
2678         <utmpx.h> exists.
2679
2680 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2681
2682         BeOS portability.
2683         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
2684         exist.
2685         Problem reported by Bruno Haible.
2686
2687 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2688
2689         Avoid the need for AC_LIBSOURCES in m4 macros.
2690         * modules/acl (EXTRA_DIST): Add acl.h.
2691         * modules/argmatch (Files): Add m4/argmatch.m4.
2692         (configure.ac): Add gl_ARGMATCH.
2693         (EXTRA_DIST): Renamed from lib_SOURCES, for
2694         consistency with the other modules.  Remove argmatch.c.
2695         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
2696         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
2697         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
2698         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
2699         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
2700         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
2701         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
2702         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
2703         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
2704         * modules/closeout (EXTRA_DIST): Add closeout.h.
2705         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
2706         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
2707         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
2708         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
2709         dirname.h; remove basename.c and stripslash.c.
2710         * modules/exclude (EXTRA_DIST): Add exclude.h.
2711         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
2712         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
2713         * modules/file-type (EXTRA_DIST): Add file-type.h.
2714         * modules/filemode (EXTRA_DIST): Add filemode.h.
2715         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
2716         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
2717         * modules/fpending (EXTRA_DIST): Add __fpending.h.
2718         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
2719         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
2720         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
2721         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
2722         * modules/getdate (EXTRA_DIST): Add getdate.c.
2723         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
2724         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
2725         * modules/getpass (EXTRA_DIST): Add getpass.h.
2726         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
2727         * modules/group-member (EXTRA_DIST): Add group-member.h.
2728         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
2729         * modules/hash (EXTRA_DIST): Add hash.h.
2730         * modules/human (EXTRA_DIST): Add human.h.
2731         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
2732         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
2733         * modules/lchown (EXTRA_DIST): Add lchown.h.
2734         * modules/long-options (EXTRA_DIST): Add long-options.h.
2735         * modules/lstat (EXTRA_DIST): Add lstat.h.
2736         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
2737         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
2738         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
2739         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
2740         * modules/memxor (EXTRA_DIST): Add memxor.h.
2741         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
2742         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
2743         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
2744         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
2745         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
2746         * modules/physmem (EXTRA_DIST): Add physmem.h.
2747         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
2748         * modules/posixver (EXTRA_DIST): Add posixver.h.
2749         * modules/quote (EXTRA_DIST): Add quote.h.
2750         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
2751         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
2752         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
2753         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
2754         regex_internal.h regexec.c.
2755         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
2756         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
2757         * modules/same (EXTRA_DIST): Add same.h.
2758         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
2759         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
2760         * modules/savedir (EXTRA_DIST): Add savedir.h.
2761         * modules/sha1 (EXTRA_DIST): Add sha1.h.
2762         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
2763         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
2764         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
2765         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
2766         * modules/strdup (EXTRA_DIST): Add strdup.h.
2767         * modules/strftime (EXTRA_DIST): Add strftime.h.
2768         * modules/strndup (EXTRA_DIST): Add strndup.h.
2769         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
2770         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
2771         * modules/time_r (EXTRA_DIST): Add time_r.h.
2772         * modules/timespec (EXTRA_DIST): Add timespec.h.
2773         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
2774         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
2775         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
2776         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
2777         * modules/userspec (EXTRA_DIST): Add userspec.h.
2778         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
2779         * modules/utimens (EXTRA_DIST): Add utimens.h.
2780         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
2781         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
2782         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
2783         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
2784         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
2785         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
2786         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
2787         * modules/yesno (EXTRA_DIST): Add yesno.h.
2788
2789 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2790
2791         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
2792
2793         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
2794         * m4/dev-ino.m4, same-inode.m4: Remove.
2795
2796         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
2797         * m4/acl.m4 (AC_FUNC_ACL):
2798         * m4/backupfile.m4 (gl_BACKUPFILE):
2799         * m4/c-strtod.m4 (gl_C99_STRTOLD):
2800         * m4/canon-host.m4 (gl_CANON_HOST):
2801         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2802         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
2803         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
2804         * m4/cloexec.m4 (gl_CLOEXEC):
2805         * m4/close-stream.m4 (gl_CLOSE_STREAM):
2806         * m4/closeout.m4 (gl_CLOSEOUT):
2807         * m4/dirfd.m4 (gl_FUNC_DIRFD):
2808         * m4/dirname.m4 (gl_DIRNAME):
2809         * m4/exclude.m4 (gl_EXCLUDE):
2810         * m4/exitfail.m4 (gl_EXITFAIL):
2811         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
2812         * m4/file-type.m4 (gl_FILE_TYPE):
2813         * m4/filemode.m4 (gl_FILEMODE):
2814         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
2815         * m4/fpending.m4 (gl_FUNC_FPENDING):
2816         * m4/fprintftime.m4 (gl_FPRINTFTIME):
2817         * m4/fts.m4 (gl_FUNC_FTS):
2818         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
2819         * m4/getdate.m4 (gl_GETDATE):
2820         * m4/gethrxtime.m4 (gl_GETHRXTIME):
2821         * m4/getpagesize.m4 (gl_GETPAGESIZE):
2822         * m4/getpass.m4 (gl_FUNC_GETPASS):
2823         * m4/gettime.m4 (gl_GETTIME):
2824         * m4/getugroups.m4 (gl_GETUGROUPS):
2825         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
2826         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
2827         * m4/hard-locale.m4 (gl_HARD_LOCALE):
2828         * m4/hash.m4 (gl_HASH):
2829         * m4/idcache.m4 (gl_IDCACHE):
2830         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
2831         * m4/lchown.m4 (gl_FUNC_LCHOWN):
2832         * m4/long-options.m4 (gl_LONG_OPTIONS):
2833         * m4/lstat.m4 (gl_FUNC_LSTAT):
2834         * m4/md5.m4 (gl_MD5):
2835         * m4/memcasecmp.m4 (gl_MEMCASECMP):
2836         * m4/memcoll.m4 (gl_MEMCOLL):
2837         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
2838         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
2839         * m4/memxor.m4 (gl_MEMXOR):
2840         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
2841         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
2842         * m4/modechange.m4 (gl_MODECHANGE):
2843         * m4/mountlist.m4 (gl_MOUNTLIST):
2844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2845         * m4/openat.m4 (gl_FUNC_OPENAT):
2846         * m4/pathmax.m4 (gl_PATHMAX):
2847         * m4/physmem.m4 (gl_PHYSMEM):
2848         * m4/posixtm.m4 (gl_POSIXTM):
2849         * m4/posixver.m4 (gl_POSIXVER):
2850         * m4/quote.m4 (gl_QUOTE):
2851         * m4/quotearg.m4 (gl_QUOTEARG):
2852         * m4/readtokens.m4 (gl_READTOKENS):
2853         * m4/readutmp.m4 (gl_READUTMP):
2854         * m4/regex.m4 (gl_REGEX):
2855         * m4/safe-read.m4 (gl_SAFE_READ):
2856         * m4/safe-write.m4 (gl_SAFE_WRITE):
2857         * m4/same.m4 (gl_SAME):
2858         * m4/save-cwd.m4 (gl_SAVE_CWD):
2859         * m4/savedir.m4 (gl_SAVEDIR):
2860         * m4/settime.m4 (gl_SETTIME):
2861         * m4/sha1.m4 (gl_SHA1):
2862         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
2863         * m4/stat-macros.m4 (gl_STAT_MACROS):
2864         * m4/stat-time.m4 (gl_STAT_TIME):
2865         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
2866         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
2867         * m4/strdup.m4 (gl_FUNC_STRDUP):
2868         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
2869         * m4/strndup.m4 (gl_FUNC_STRNDUP):
2870         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
2871         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
2872         * m4/time_r.m4 (gl_TIME_R):
2873         * m4/timespec.m4 (gl_TIMESPEC):
2874         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
2875         * m4/unlinkdir.m4 (gl_UNLINKDIR):
2876         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
2877         * m4/userspec.m4 (gl_USERSPEC):
2878         * m4/utimecmp.m4 (gl_UTIMECMP):
2879         * m4/utimens.m4 (gl_UTIMENS):
2880         * m4/xalloc.m4 (gl_XALLOC):
2881         * m4/xgetcwd.m4 (gl_XGETCWD):
2882         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
2883         * m4/xreadlink.m4 (gl_XREADLINK):
2884         * m4/xstrtod.m4 (gl_XSTRTOD):
2885         * m4/yesno.m4 (gl_YESNO):
2886         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
2887         to get the necessary .h files and whatnot.
2888
2889 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
2890             Bruno Haible <bruno@clisp.org>
2891
2892         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
2893         /bin/sh understanding of '!' conditional negation.
2894
2895 2006-08-21  Jim Meyering  <jim@meyering.net>
2896
2897         * modules/openat (Depends-on): Really alphabetize.
2898
2899         * modules/acl (Depends-on): Add error and quote.
2900
2901         * check-module (find_included_lib_files): Add at-func.c to the
2902         ok-to-include-more-than-once white list.
2903
2904         * modules/openat (Depends-on): Add lstat.  Alphabetize.
2905
2906 2006-08-21  Bruno Haible <bruno@clisp.org>
2907
2908         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2909         Emit a pkgdata_DATA variable only if some snippets add contents to it.
2910         Reported by Martin Lambers <marlam@marlam.de>.
2911
2912 2006-08-21  Bruno Haible <bruno@clisp.org>
2913
2914         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
2915         specify an installation location, don't emit a noinst_LIBRARIES or
2916         noinst_LTLIBRARIES assignment.
2917
2918 2006-08-21  Bruno Haible  <bruno@clisp.org>
2919
2920         BeOS portability.
2921         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
2922         BeOS has mbrtowc() but no <wctype.h>.
2923
2924 2006-08-21  Bruno Haible  <bruno@clisp.org>
2925
2926         BeOS portability.
2927         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
2928         exist.
2929
2930 2006-08-21  Bruno Haible  <bruno@clisp.org>
2931
2932         BeOS portability.
2933         * lib/mbchar.h: Include <wctype.h> only if it exists.
2934
2935 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2936
2937         Remove files that are no longer needed by their respective modules.
2938         * m4/obstack.m4: Remove.
2939         * m4/strerror_r.m4: Remove.
2940         * m4/uint32_t.m4: Remove.
2941         * m4/uintptr_t.m4: Remove.
2942         * m4/ullong_max.m4: Remove.
2943         * m4/xstrtoimax.m4: Remove.
2944         * m4/xstrtoumax.m4: Remove.
2945
2946         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
2947         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
2948         dependencies now capture this.
2949
2950         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2951         Do not use AC_LIBSOURCES, since gnulib modules now do this.
2952         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
2953         * m4/human.m4 (gl_HUMAN): Likewise.
2954         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
2955         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
2956
2957         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
2958
2959         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
2960         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
2961         stdint.
2962         * m4/human.m4 (gl_HUMAN): Likewise.
2963         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
2964         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
2965         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
2966         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
2967         * m4/xstrtol (gl_XSTRTOL): Likewise.
2968
2969         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
2970         AC_TYPE_LONG_LONG_INT.
2971         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
2972         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
2973         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
2974         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
2975
2976         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
2977         on stdbool.
2978
2979         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
2980         (gl_PREREQ_XSTRTOUL): Remove.
2981
2982         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
2983
2984         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
2985         mode.
2986
2987 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2988
2989         Add and change modules to make it easier for coreutils to use
2990         gnulib-tool.
2991         * modules/backupfile (Files): Remove m4/d-ino.m4.
2992         (Depends-on): Add d-ino.
2993         * modules/cycle-check (Depends-on): Add stdint.
2994         (lib_SOURCES): Add cycle-check.h.
2995         * modules/d-ino: New module.
2996         * modules/d-type: New module.
2997         * modules/error (Files): Remove m4/strerror_r.m4.
2998         * modules/filemode (Files): Add m4/st_dm_mode.m4.
2999         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
3000         m4/inttypes_h.m4, m4/uintmax_t.m4.
3001         (Depends-on): Add stdint.
3002         (lib_SOURCES): Add fsusage.h.
3003         * modules/getcwd (Files): Remove d-ino.m4.
3004         (Depends-on): Add d-ino.
3005         * modules/getndelim2 (Depends-on): Add stdint.
3006         * modules/glob (Files): Remove m4/d-type.m4.
3007         (Depends-on): Add d-type.
3008         * modules/host-os: New module.
3009         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
3010         m4/inttypes_h.m4, m4/uintmax_t.m4.
3011         * Depends-on: Add stdint.
3012         (lib_SOURCES): Add human.h.
3013         * modules/inttostr (Files): Remove m4/intmax_t.m4,
3014         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
3015         m4/uintmax_t.m4, m4/ulonglong.m4.
3016         (Depends-on): Add stdint.
3017         (EXTRA_DIST): Add inttostr.h.
3018         * modules/lchmod: New module.
3019         * modules/link-follow: New module.
3020         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
3021         (Depends-on): Add lchmod.
3022         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
3023         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
3024         (Depends-on): Add stdint.
3025         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
3026         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
3027         (Depends-on): Add stdint.
3028         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
3029         * modules/perl: New module.
3030         * modules/regex (Depends-on): Add stdint.
3031         * modules/rmdir-errno: New module.
3032         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
3033         m4/intmax_t.m4.
3034         (Depends-on): Add stdint.
3035         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
3036         m4/uintmax_t.m4.
3037         (Depends-on): Add stdint.
3038         * modules/unlink-busy: New module.
3039         * modules/utimecmp (Depends-on): Add stdint.
3040         * modules/uptime: New module.
3041         * modules/winsz-ioctl: New module.
3042         * modules/winsz-termios: New module.
3043         * modules/xnanosleep (Depends-on): Add nanosleep.
3044         * modules/ullong_max: Remove.
3045         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
3046         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
3047         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
3048         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
3049         (Depends-on): Add inttypes.
3050         (lib_SOURCES): Add xstrtol.h.
3051         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
3052         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
3053         * MODULES.html.sh: Move 'assert' into the assert section.
3054         Move 'dummy' into the linking section.
3055         Remove ullong_max.
3056         Add section for compatibility checks for POSIX:2001 functions,
3057         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
3058         winsz-ioctl, and winsz-termios into it.
3059         Add lchmod.
3060         Add top-level Misc section and put host-os, perl, and uptime
3061         into it.
3062
3063 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3064
3065         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
3066         now assume the stdint module.  Do not include inttypes.h.
3067         * lib/fsusage.h: Likewise.
3068         * lib/getndelim2.c: Likewise.
3069         * lib/human.h: Likewise.
3070         * lib/inttostr.h: Likewise.
3071         * lib/obstack.c: Likewise.
3072         * lib/regex_internal.h: Likewise.
3073         * lib/tempname.c: Likewise.
3074         * lib/utimecmp.c: Likewise.
3075         * lib/xstrtol.h: Likewise.
3076
3077         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
3078
3079         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
3080         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
3081         * lib/xtime.h: Likewise.
3082
3083 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3084
3085         * modules/openat (Files): Add lib/fchmodat.c.
3086         Fixes problem reported by Jay Youngman.
3087
3088 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3089
3090         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
3091         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
3092
3093 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3094             Bruno Haible  <bruno@clisp.org>
3095
3096         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
3097         and is a script that invokes bison. Tighten the code. Add comments.
3098
3099 2006-08-18  Jim Meyering  <jim@meyering.net>
3100
3101         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
3102         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
3103         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
3104         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
3105
3106 2006-08-18  Bruno Haible  <bruno@clisp.org>
3107
3108         * modules/bison-i18n: New file.
3109         * MODULES.html.sh (Internationalization functions): Add it.
3110
3111 2006-08-18  Bruno Haible  <bruno@clisp.org>
3112
3113         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
3114         sys/statvfs.h. When getmntinfo was found, check its declaration and
3115         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
3116
3117 2006-08-18  Bruno Haible  <bruno@clisp.org>
3118
3119         * m4/bison-i18n.m4: New file, from bison.
3120
3121 2006-08-18  Bruno Haible  <bruno@clisp.org>
3122
3123         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
3124         (ME_DUMMY): Treat "kernfs" as a dummy.
3125         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
3126
3127 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3128
3129         Update from coreutils.
3130
3131         2006-08-15  Jim Meyering  <jim@meyering.net>
3132
3133         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
3134
3135         2006-01-17  Jim Meyering  <jim@meyering.net>
3136
3137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
3138
3139         2006-01-11  Jim Meyering  <jim@meyering.net>
3140
3141         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
3142         Check for the lchmod function.
3143
3144 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3145
3146         Update from coreutils.
3147
3148         * lib/__fpending.h: Add copyright notice.
3149         * lib/fprintftime.h: Likewise.
3150         * lib/savedir.c: Use (C) in copyright notice.
3151         * lib/savedir.h: Likewise.
3152
3153         2006-08-15  Jim Meyering  <jim@meyering.net>
3154
3155         * lib/at-func.c: New file, with the logic of all emulated at-functions.
3156         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
3157         in support of the EXPECTED_ERRNO macro.
3158         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
3159         definitions.  Instead, define the appropriate symbols and include
3160         "at-func.c".
3161         * lib/mkdirat.c (mkdirat): Likewise.
3162         * lib/fchmodat.c (fchmodat): Likewise.
3163         (ENOSYS): Remove definition.
3164         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
3165         it.  Don't include "unistd--.h" -- it wasn't ever used.
3166
3167         2006-01-17  Jim Meyering  <jim@meyering.net>
3168
3169         Rewrite fts.c not to change the current working directory,
3170         by using openat, fstatat, fdopendir, etc..
3171
3172         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
3173         (HAVE_OPENAT_SUPPORT): Define.
3174         [_LIBC] (fchdir): Don't undef or define; no longer used.
3175         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
3176         Now, this `function' always succeeds, and consumes its file descriptor
3177         parameter -- so callers must not close such FDs.  Update callers.
3178         (diropen_fd, opendirat, cwd_advance_fd): New functions.
3179         (diropen): Add parameter, SP.  Adjust all callers.
3180         Implement using diropen_fd, rather than open.
3181         (fts_open): Initialize new member, fts_cwd_fd.
3182         Remove fts_rft-setting code.
3183         (fts_close): Close fts_cwd_fd, if necessary.
3184         (__opendir2): Define in terms of opendir or opendirat,
3185         depending on whether the FST_NOCHDIR flag is set.
3186         (fts_build): Since fts_safe_changedir consumes its FD, and since
3187         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
3188         and close the dup'd file descriptor upon failure.
3189         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
3190         (fts_safe_changedir): Tweak semantics to reflect that this function
3191         now calls cwd_advance_fd and hence consumes its FD argument.
3192         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
3193         [struct FTS] (fts_rft): Remove now-unused member.
3194         [struct FTS] (fts_cycle.state): Improve comment.
3195
3196         * lib/openat.c (openat_needs_fchdir): New function.
3197         * lib/openat.h (openat_needs_fchdir): Declare it.
3198
3199 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3200
3201         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
3202         Problem and fix reported by Pádraig Brady in
3203         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
3204
3205 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3206
3207         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
3208
3209 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3210
3211         * lib/memcoll.c (memcoll): Optimize for the common case where the
3212         arguments are bytewise equal.
3213
3214 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3215
3216         * doc/regexprops-generic.texi: Add a copyright notice.
3217
3218 2006-08-15  Bruno Haible  <bruno@clisp.org>
3219
3220         * modules/tmpdir (License): Change to LGPL.
3221
3222 2006-08-15  Bruno Haible  <bruno@clisp.org>
3223
3224         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
3225         module.
3226
3227 2006-08-14  Simon Josefsson  <jas@extundo.com>
3228
3229         * config/srclist.txt: Add gnupload.
3230
3231 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3232
3233         Change copyright notice from LGPL 2 to GPL 2, since that's the
3234         standard form used in the gnulib repository.
3235         * tests/test-lock.c: Likewise.
3236         * tests/test-stdint.c: Likewise.
3237         * tests/test-tls.c: Likewise.
3238
3239         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
3240         prelude-manager.  User shorter URLs for GNU projects, without '?'.
3241         Add copyright notice.
3242
3243         * check-module: Add copyright notice.  Output a copyright
3244         notice if "--version" is specified.
3245         * modules/COPYING: New file.
3246         * tests/test-getaddrinfo.c: Add copyright notice.
3247         * tests/test-verify.c: Likewise.
3248
3249 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3250
3251         Change copyright notice from LGPL 2 to GPL 2, since that's the
3252         standard form used in the gnulib repository.
3253         * lib/lock.c: LGPL -> GPL.
3254         * lib/lock.h: Likewise.
3255         * lib/strnlen1.c: Likewise.
3256         * lib/strnlen1.h: Likewise.
3257         * lib/tls.c: Likewise.
3258         * lib/tls.h: Likewise.
3259         * lib/tmpdir.c: Likewise.
3260
3261         * lib/TODO: Remove; this belongs only in coreutils.
3262
3263 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3264
3265         Add copyright notices to long-enough files that lack them, since
3266         otherwise the files aren't clearly free.  Use the same notice that
3267         getdate.texi already uses.
3268         * doc/alloca-opt.texi: Add copyright notice.
3269         * doc/alloca.texi: Likewise.
3270         * doc/ctime.texi: Likewise.
3271         * doc/functions.texi: Likewise.
3272         * doc/gcd.texi: Likewise.
3273         * doc/gnulib-tool.texi: Likewise.
3274         * doc/inet_ntoa.texi: Likewise.
3275         * doc/visibility.texi: Likewise.
3276
3277         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
3278         * doc/quote.texi: Add copyright notice.
3279
3280         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
3281         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
3282         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
3283         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
3284         is now obsolete, and give a pointer to the Sun list.
3285         Add copyright notice.
3286
3287 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3288
3289         * config/srclistvars.sh: Add copyright notice.
3290
3291 2006-08-14  Eric Blake  <ebb9@byu.net>
3292
3293         Import the following change from libc:
3294
3295         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
3296
3297         Upstream bug 2997.
3298         * lib/misc/error.c: Add space between program name and message if file
3299         name is missing.
3300
3301 2006-08-12  Karl Berry  <karl@gnu.org>
3302
3303         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
3304         remove, these originate in gnulib now.
3305
3306 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3307
3308         * doc/Makefile (standards.info standards.html standards.dvi):
3309         Also depend on make-stds.texi.
3310
3311 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3312
3313         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
3314         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
3315
3316         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
3317         in wchar_t.  Problem reported by Eric Blake.
3318
3319         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
3320         LEN is smaller than SIZE.  Suggested by Bruno Haible.
3321         Also, help the compiler to keep LEN in a register.
3322
3323 2006-08-11  Eric Blake  <ebb9@byu.net>
3324
3325         * users.txt: Sort.  Add tar.
3326
3327 2006-08-11  Bruno Haible  <bruno@clisp.org>
3328
3329         * users.txt: New file.
3330
3331 2006-08-11  Bruno Haible  <bruno@clisp.org>
3332
3333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
3334         before <wchar.h>. Needed for OSF/1 and BSD/OS.
3335
3336 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3337
3338         * modules/snprintf (Depends-on): Remove minmax.
3339         (Maintainer): Add self and Bruno.
3340
3341 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3342
3343         * lib/.cppi-disable: Add snprintf.h, socket_.h.
3344         * lib/snprintf.c: Include <errno.h> and <limits.h>.
3345         (EOVERFLOW): Define if the system does not.
3346         Do not include "minmax.h"; it wasn't used.
3347         (snprintf): Don't assume size_t promotes to an unsigned type.
3348         Fix bug when generated string was too long for the buffer: the
3349         buffer's contents are supposed to be the initial prefix of the
3350         output.  Don't assume vasnprintf returns EOVERFLOW if the size
3351         exceeds INT_MAX; do the check ourselves.
3352
3353         Import the following changes from libc:
3354
3355         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
3356
3357         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
3358         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
3359         set wc to the byte which couldn't be converted.
3360         (re_string_reconstruct): Don't clear valid_raw_len before calling
3361         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
3362         tip_context using re_string_context_at.
3363
3364         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
3365
3366         * lib/posix/regex.h: g++ still cannot handled [restrict].
3367
3368         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
3369
3370         * lib/posix/regex.h: Remove special handling for VMS.
3371
3372 2006-08-10  Jim Meyering  <jim@meyering.net>
3373
3374         * modules/same-inode: New module.
3375         * modules/dev-ino: New module.
3376         * modules/cycle-check: Depend on these modules, rather than simply
3377         including their .h files.
3378         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
3379         required via m4/cycle-check.m4.
3380         * modules/same: Depend on new same-inode module, rather than
3381         including same-inode.h.
3382         * modules/chdir-safer: New file.
3383
3384         * modules/chown (Depends-on): Add stat-macros.
3385
3386 2006-08-10  Jim Meyering  <jim@meyering.net>
3387
3388         * m4/cycle-check.m4: New file.
3389         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
3390         * m4/dev-ino.m4, same-inode.m4: New files.
3391
3392 2006-08-10  Eric Blake  <ebb9@byu.net>
3393
3394         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
3395         in from original proposal.
3396
3397 2006-08-10  Eric Blake  <ebb9@byu.net>
3398         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3399
3400         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
3401         namespace.
3402
3403 2006-08-10  Bruno Haible  <bruno@clisp.org>
3404
3405         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
3406         as well.
3407
3408 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3409
3410         Sync from coreutils.
3411
3412         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
3413
3414         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
3415         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
3416
3417 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3418
3419         * modules/restrict: Remove; no longer needed now that we assume
3420         Autoconf 2.59 or later.
3421         * MODULES.html.sh: Remove 'restrict'.
3422         * modules/argp (Depends-on): Remove 'restrict'.
3423         * modules/base64 (Depends-on): Likewise.
3424         * modules/gc (Depends-on): Likewise.
3425         * modules/getaddrinfo (Depends-on): Likewise.
3426         * modules/glob (Depends-on): Likewise.
3427         * modules/inet_ntop (Depends-on): Likewise.
3428         * modules/inet_pton (Depends-on): Likewise.
3429         * modules/memxor (Depends-on): Likewise.
3430         * modules/regex (Depends-on): Likewise.
3431         * modules/strtok_r (Depends-on): Likewise.
3432         * modules/time_r (Depends-on): Likewise.
3433
3434 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3435
3436         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
3437         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
3438         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
3439         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
3440         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3441         * m4/memxor.m4 (gl_MEMXOR): Likewise.
3442         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
3443         gl_C_RESTRICT replaced by AC_C_RESTRICT.
3444
3445         Merge from coreutils.
3446         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
3447         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
3448         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3449         * m4/time_r.m4 (gl_TIME_R): Likewise.
3450
3451 2006-08-09  Karl Berry  <karl@gnu.org>
3452
3453         * config/srclist.txt: no more gettext-tools, per Bruno.
3454
3455 2006-08-08  Eric Blake  <ebb9@byu.net>
3456
3457         * modules/verror: New module.
3458         * MODULES.html.sh: Document it.
3459
3460 2006-08-08  Eric Blake  <ebb9@byu.net>
3461
3462         * lib/verror.h, verror.c: New files.
3463
3464 2006-08-08  Eric Blake  <ebb9@byu.net>
3465
3466         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
3467         verror_at_line output complies with GNU Coding Standards even when
3468         file is NULL.
3469
3470 2006-08-07  Bruno Haible  <bruno@clisp.org>
3471
3472         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
3473         versions of AIX.
3474         Reported by Ralf Wildenhues.
3475
3476 2006-08-07  Bruno Haible  <bruno@clisp.org>
3477
3478         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
3479         in an AC_DEFUN. Needed so that the autoconf snippets can use
3480         AC_REQUIRE.
3481
3482 2006-08-06  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3483
3484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3485         Initialize pkgdata_DATA.
3486         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
3487         overriding it.
3488
3489 2006-08-06  Eric Blake  <ebb9@byu.net>
3490
3491         * lib/error.h: Fold in some upstream changes from glibc.
3492         * lib/error.c: Likewise.
3493
3494 2006-08-04  Bruno Haible  <bruno@clisp.org>
3495
3496         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3497         Make the mostlyclean-local rule depend on mostlyclean-generic.
3498         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
3499
3500 2006-07-31  Bruno Haible  <bruno@clisp.org>
3501
3502         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
3503         <stdlib.h>, <string.h>.
3504
3505 2006-07-30  Bruno Haible  <bruno@clisp.org>
3506
3507         * modules/readlink (License): Change to LGPL.
3508
3509 2006-07-30  Bruno Haible  <bruno@clisp.org>
3510
3511         * modules/javaversion (Makefile.am): Distribute javaversion.java and
3512         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
3513         set PKGDATADIR to point to it.
3514
3515 2006-07-30  Bruno Haible  <bruno@clisp.org>
3516
3517         * modules/csharpexec (configure.ac): Comment out macro invocation.
3518         * modules/javaexec (configure.ac): Likewise.
3519         * modules/javacomp-script (configure.ac): Likewise.
3520
3521         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
3522
3523 2006-07-30  Bruno Haible  <bruno@clisp.org>
3524
3525         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
3526         linked-list.
3527
3528 2006-07-30  Bruno Haible  <bruno@clisp.org>
3529
3530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
3531
3532 2006-07-30  Bruno Haible  <bruno@clisp.org>
3533
3534         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3535         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
3536         get removed.
3537
3538 2006-07-29  Bruno Haible  <bruno@clisp.org>
3539
3540         Make it possible for gnulib-tool to work with locally modified or
3541         augmented gnulib repositories.
3542         * gnulib-tool (func_usage): Document --local-dir option.
3543         (local_gnulib_dir): New variable.
3544         Handle --local-dir option.
3545         (func_lookup_file): New function.
3546         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
3547         (func_get_description, func_get_filelist, func_get_description,
3548         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
3549         func_get_automake_snippet, func_get_include_directive,
3550         func_get_license, func_get_maintainer): Use func_lookup_file.
3551         (func_import, func_create_testdir): Use func_lookup_file.
3552
3553 2006-07-29  Bruno Haible  <bruno@clisp.org>
3554
3555         * modules/setenv (Depends-on): Add unistd.
3556
3557 2006-07-29  Bruno Haible  <bruno@clisp.org>
3558
3559         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
3560
3561 2006-07-29  Bruno Haible  <bruno@clisp.org>
3562
3563         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
3564
3565 2006-07-29  Bruno Haible  <bruno@clisp.org>
3566
3567         * gnulib-tool (import, update): If there is no Makefile.am, look at
3568         aclocal.m4, instead of bailing out.
3569
3570 2006-07-29  Bruno Haible  <bruno@clisp.org>
3571
3572         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
3573         Categorize the options by when they are useful.
3574
3575 2006-07-29  Bruno Haible  <bruno@clisp.org>
3576
3577         * gnulib-tool (func_usage): Document option --no-libtool.
3578         Handle option --no-libtool.
3579         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
3580         for changed semantics of $libtool variable.
3581         (func_import): Likewise. If libtool is not used, show this through
3582         an option --no-libtool.
3583         (func_create_testdir): Update.
3584
3585 2006-07-29  Bruno Haible  <bruno@clisp.org>
3586
3587         * gnulib-tool (func_import): Extend error message about missing
3588         --doc-base.
3589
3590 2006-07-29  Bruno Haible  <bruno@clisp.org>
3591
3592         * gnulib-tool (func_import): Don't create the $docbase directory if
3593         there is no file to store there.
3594
3595 2006-07-29  Bruno Haible  <bruno@clisp.org>
3596
3597         * gnulib-tool (autoconf_minversion): If a --dir option is given and
3598         relevant, look for configure.ac there, not in the current directory.
3599         Also use a simple search for AC_PREREQ, not "autoconf --trace".
3600
3601 2006-07-29  Bruno Haible  <bruno@clisp.org>
3602
3603         * gnulib-tool (SORT): New variable.
3604         (func_usage): Undocument --assume-autoconf option.
3605         Remove --assume-autoconf option handling.
3606         (autoconf_minversion): Determine from the contents of configure.ac.
3607         (func_import): Remove autoconf_minversion handling.
3608         Suggested by Eric Blake.
3609
3610 2006-07-29  Bruno Haible  <bruno@clisp.org>
3611
3612         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
3613
3614 2006-07-29  Bruno Haible  <bruno@clisp.org>
3615
3616         * config/srclist.txt (*setenv.[ch]): Remove rules.
3617
3618 2006-07-28  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3619
3620         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
3621
3622 2006-07-28  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3623
3624         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
3625         arpa/inet.h.
3626
3627 2006-07-28  Simon Josefsson  <jas@extundo.com>
3628
3629         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
3630         * modules/inet_pton (Depends-on): Likewise.
3631
3632 2006-07-28  Simon Josefsson  <jas@extundo.com>
3633
3634         * m4/netinet_in_h.m4: New file.
3635
3636 2006-07-28  Simon Josefsson  <jas@extundo.com>
3637
3638         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
3639         #include's.
3640
3641 2006-07-28  Simon Josefsson  <jas@extundo.com>
3642
3643         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
3644         #include's.
3645
3646 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
3647
3648         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
3649         setgid on directories only if they set these bits.
3650         * lib/modechange.h: Remove obsolete comment about masks.
3651
3652 2006-07-28  Eric Blake  <ebb9@byu.net>
3653
3654         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
3655         macro expansion.
3656
3657 2006-07-28  Bruno Haible <bruno@clisp.org>
3658
3659         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
3660
3661 2006-07-28  Bruno Haible  <bruno@clisp.org>
3662
3663         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
3664
3665 2006-07-28  Bruno Haible  <bruno@clisp.org>
3666
3667         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3668         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3669         Define fallbacks.
3670         Avoids link error on FreeBSD 4.x.
3671         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3672
3673         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
3674         encoding.
3675         * lib/mbswidth.c (iswcntrl): Likewise.
3676
3677 2006-07-27  Bruno Haible  <bruno@clisp.org>
3678
3679         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
3680         test.
3681
3682 2006-07-27  Bruno Haible  <bruno@clisp.org>
3683
3684         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
3685         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
3686         defined.
3687
3688 2006-07-26  Eric Blake  <ebb9@byu.net>
3689
3690         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
3691
3692 2006-07-26  Eric Blake  <ebb9@byu.net>
3693
3694         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
3695         like mingw that lack mkstemp.
3696         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
3697         avoid compilation warning on mingw.
3698
3699 2006-07-26  Bruno Haible  <bruno@clisp.org>
3700
3701         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
3702         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
3703         INT_FAST*_MIN, INTPTR_MIN.
3704
3705 2006-07-25  Bruno Haible  <bruno@clisp.org>
3706
3707         * modules/version-etc (Depends-on): Add stdarg.
3708
3709 2006-07-25  Bruno Haible  <bruno@clisp.org>
3710
3711         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
3712         complex commands.
3713
3714 2006-07-25  Bruno Haible  <bruno@clisp.org>
3715
3716         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
3717         defined in <stdarg.h> or config.h.
3718
3719 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3720
3721         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
3722         (gl_STDIO_SAFER): Remove.
3723
3724 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3725
3726         * MODULES.html.sh (File stream based Input/Output):
3727         Add fopen-safer, tmpfile-safer; remove stdio-safer.
3728         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
3729         * modules/fopen-safer, modules/tmpfile-safer: New files.
3730         * modules/stdio-safer: Remove.
3731
3732 2006-07-24  Bruno Haible  <bruno@clisp.org>
3733
3734         * modules/tmpdir: New file.
3735         * MODULES.html.sh (File system functions): Add it.
3736
3737 2006-07-24  Bruno Haible  <bruno@clisp.org>
3738
3739         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
3740         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
3741
3742 2006-07-24  Bruno Haible  <bruno@clisp.org>
3743
3744         * modules/clean-temp: New file.
3745
3746 2006-07-24  Bruno Haible  <bruno@clisp.org>
3747
3748         * m4/tmpdir.m4: New file, from GNU gettext.
3749
3750 2006-07-24  Bruno Haible  <bruno@clisp.org>
3751
3752         * lib/tmpdir.h: New file, from GNU gettext.
3753         * lib/tmpdir.c: New file, from GNU gettext.
3754
3755 2006-07-24  Bruno Haible  <bruno@clisp.org>
3756
3757         * lib/clean-temp.h: New file, from GNU gettext.
3758         * lib/clean-temp.c: New file, from GNU gettext.
3759
3760 2006-07-23  Eric Blake  <ebb9@byu.net>
3761
3762         * modules/stdio-safer (Files): Add tmpfile-safer.c.
3763         (Depends-on): Add binary-io.
3764
3765 2006-07-23  Eric Blake  <ebb9@byu.net>
3766
3767         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
3768
3769 2006-07-23  Eric Blake  <ebb9@byu.net>
3770
3771         * lib/tmpfile-safer.c: New file.
3772         * lib/stdio-safer.h (fopen_safer): Add prototype.
3773         * lib/stdio--.h (tmpfile): Make safer.
3774
3775 2006-07-23  Bruno Haible  <bruno@clisp.org>
3776
3777         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
3778         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
3779         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
3780         gl_linked_remove_at): Use it.
3781
3782 2006-07-22  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3783         and Simon Josefsson <jas@extundo.com>
3784
3785         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
3786
3787         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
3788
3789 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3790
3791         * modules/close-stream: New file.
3792         * modules/closeout (Description): Make it clear that it exits
3793         with a diagnostic on error.
3794         (Depends-on): Add close-stream.  Remove fpending, stdbool.
3795         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
3796
3797 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3798
3799         * m4/close-stream.m4: New file.
3800
3801 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3802
3803         * lib/close-stream.c, close-stream.h: New files.
3804
3805 2006-07-22  Bruno Haible  <bruno@clisp.org>
3806
3807         Merge from GNU gettext 0.15.
3808
3809         2006-05-01  Bruno Haible  <bruno@clisp.org>
3810
3811                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
3812
3813         2006-07-22  Bruno Haible  <bruno@clisp.org>
3814
3815                 * modules/javaversion: New file.
3816                 * MODULES.html.sh (Java): Add javaversion.
3817
3818         2006-03-12  Bruno Haible  <bruno@clisp.org>
3819
3820                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
3821
3822         2005-12-04  Bruno Haible  <bruno@clisp.org>
3823
3824                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
3825                 (untested).
3826
3827         2006-06-21  Bruno Haible  <bruno@clisp.org>
3828
3829                 Avoid warnings from recent versions of mcs.
3830                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
3831                 -o, -L, -r any more. Use options documented since mcs-1.0
3832                 instead. Similarly for -g.
3833
3834         2005-12-04  Bruno Haible  <bruno@clisp.org>
3835
3836                 * build-aux/csharpcomp.sh.in: Suffix for resources is
3837                 .resources, not .resource.
3838
3839         2005-07-09  Bruno Haible  <bruno@clisp.org>
3840
3841                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
3842                 add a .dll suffix.
3843                 Reported by Mark Junker <mjscod@gmx.de>.
3844
3845         2006-07-22  Bruno Haible  <bruno@clisp.org>
3846
3847                 * modules/gettext: Upgrade to gettext-0.15.
3848                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
3849                 m4/visibility.m4.
3850                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
3851
3852 2006-07-22  Bruno Haible  <bruno@clisp.org>
3853
3854         Merge from GNU gettext 0.15.
3855
3856         2006-03-25  Bruno Haible  <bruno@clisp.org>
3857
3858                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
3859
3860         2006-07-21  Bruno Haible  <bruno@clisp.org>
3861
3862                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
3863                 "1.1".
3864
3865         2006-05-09  Bruno Haible  <bruno@clisp.org>
3866
3867                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
3868                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
3869                 for the conftestver execution.
3870
3871         2006-05-01  Bruno Haible  <bruno@clisp.org>
3872
3873                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
3874                 optional target-version argument. Verify that the compiler
3875                 groks source of the specified source-version, or add -source
3876                 option as necessary. Verify that the compiler produces
3877                 bytecode in the specified target-version, or add -target and
3878                 -source options as necessary. Make the result of the test
3879                 available as variable CONF_JAVAC. Also log error output in
3880                 config.log.
3881
3882         2006-03-11  Bruno Haible  <bruno@clisp.org>
3883
3884                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
3885
3886         2006-05-09  Bruno Haible  <bruno@clisp.org>
3887
3888                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
3889                 CLASSPATH_SEPARATOR to a semicolon.
3890
3891         2006-03-12  Bruno Haible  <bruno@clisp.org>
3892
3893                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
3894                 available as variable CONF_JAVA, for subsequent autoconf
3895                 tests. Also log error output in config.log.
3896
3897         2006-07-19  Bruno Haible  <bruno@clisp.org>
3898
3899                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
3900                 that getline works on glibc2 systems. Needed to avoid trouble
3901                 in relocatable.c.
3902                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
3903
3904         2005-12-04  Bruno Haible  <bruno@clisp.org>
3905
3906                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
3907                 launcher (untested).
3908
3909         2005-12-04  Bruno Haible  <bruno@clisp.org>
3910
3911                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
3912
3913         2006-07-22  Bruno Haible  <bruno@clisp.org>
3914
3915                 * gettext.m4: Update from GNU gettext-0.15.
3916                 * nls.m4: Likewise.
3917                 * po.m4: Likewise.
3918                 * inttypes-pri.m4: Likewise.
3919                 * inttypes-h.m4: Renamed from inttypes.m4.
3920                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
3921
3922 2006-07-22  Bruno Haible  <bruno@clisp.org>
3923
3924         Merge from GNU gettext 0.15.
3925
3926         2005-07-05  Bruno Haible  <bruno@clisp.org>
3927
3928                 * printf-args.c (printf_fetchargs): Work around broken
3929                 definition of wint_t on mingw.
3930
3931         2005-02-12  Bruno Haible  <bruno@clisp.org>
3932
3933                 * xallocsa.h: Add extern "C" for C++.
3934
3935         2006-05-17  Bruno Haible  <bruno@clisp.org>
3936
3937                 Cygwin portability.
3938                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
3939
3940         2006-04-30  Bruno Haible  <bruno@clisp.org>
3941
3942                 * progreloc.c: Include <mach-o/dyld.h> if available.
3943                 (find_executable): Use _NSGetExecutablePath when possible.
3944
3945         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
3946
3947                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
3948                 function.
3949
3950         2005-12-29  Bruno Haible  <bruno@clisp.org>
3951
3952                 * progreloc.c (set_program_name_and_installdir): Fix
3953                 compilation error.
3954
3955         2005-12-04  Bruno Haible  <bruno@clisp.org>
3956
3957                 Cygwin portability.
3958                 * progreloc.c: Include <windows.h> also on Cygwin.
3959                 (find_executable): Add support for Cygwin.
3960                 (set_program_name_and_installdir): Handle also platforms with
3961                 nonempty EXEEXT.
3962
3963         2006-07-11  Bruno Haible  <bruno@clisp.org>
3964
3965                 * javacomp.c: Fix a comment.
3966                 Reported by Jim Meyering.
3967
3968         2006-04-30  Bruno Haible  <bruno@clisp.org>
3969
3970                 * javacomp.h (compile_java_class): Add source_version,
3971                 target_version arguments.
3972                 * javacomp.c: Rewritten to choose only a compiler that
3973                 respects the specified source_version and target_version.
3974
3975         2006-06-27  Bruno Haible  <bruno@clisp.org>
3976
3977                 Assume correct S_ISDIR macro.
3978                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
3979
3980         2006-07-22  Bruno Haible  <bruno@clisp.org>
3981
3982                 * javaversion.h: New file, from GNU gettext.
3983                 * javaversion.c: New file, from GNU gettext.
3984                 * javaversion.java: New file, from GNU gettext.
3985                 * javaversion.class: New file, from GNU gettext.
3986
3987         2006-05-17  Bruno Haible  <bruno@clisp.org>
3988
3989                 Cygwin portability.
3990                 * javaexec.c (execute_java_class): Test for jview program
3991                 also on Cygwin.
3992
3993         2006-04-09  Bruno Haible  <bruno@clisp.org>
3994
3995                 * fatal-signal.c: Don't include string.h.
3996                 (at_fatal_signal): Use a copying loop instead of memcpy.
3997
3998         2005-12-04  Bruno Haible  <bruno@clisp.org>
3999
4000                 * csharpexec.c: Add support for 'clix' launcher (untested).
4001                 (execute_csharp_using_sscli): New function.
4002                 (execute_csharp_program): Call it.
4003
4004         2006-06-21  Bruno Haible  <bruno@clisp.org>
4005
4006                 Avoid warnings from recent versions of mcs.
4007                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
4008                 -o, -L, -r any more. Use options documented since mcs-1.0
4009                 instead. Similarly for -g.
4010
4011         2005-07-09  Bruno Haible  <bruno@clisp.org>
4012
4013                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
4014                 add a .dll suffix.
4015                 Reported by Mark Junker <mjscod@gmx.de>.
4016
4017         2006-06-17  Bruno Haible  <bruno@clisp.org>
4018
4019                 * config.charset: Update for NetBSD 3.0.
4020
4021         2006-05-17  Bruno Haible  <bruno@clisp.org>
4022
4023                 Cygwin portability.
4024                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
4025
4026         2006-05-16  Bruno Haible  <bruno@clisp.org>
4027
4028                 * localcharset.c [CYGWIN]: Include <windows.h>.
4029                 (get_charset_aliases): For Cygwin, return the same CPxxx
4030                 aliases list as under WIN32.
4031                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
4032                 the environment variables. Fall back to GetACP().
4033
4034         2006-04-05  Bruno Haible  <bruno@clisp.org>
4035
4036                 * config.charset: Update Juan Manuel Guerrero's address.
4037
4038         2005-02-12  Bruno Haible  <bruno@clisp.org>
4039
4040                 * allocsa.h: Add extern "C" for C++.
4041
4042         2005-02-10  Bruno Haible  <bruno@clisp.org>
4043
4044                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
4045                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
4046
4047         2006-07-22  Bruno Haible  <bruno@clisp.org>
4048
4049                 * gettext.h: Update to GNU gettext-0.15.
4050
4051 2006-07-22  Bruno Haible  <bruno@clisp.org>
4052
4053         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
4054         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
4055         lib-prefix.m4, longdouble.m4, ssize_t.m4.
4056
4057 2006-07-21  Eric Blake  <ebb9@byu.net>
4058
4059         * modules/stdlib-safer: New file.
4060         * MODULES.html.sh (File stream based Input/Output): Add
4061         stdlib-safer.
4062
4063 2006-07-21  Eric Blake  <ebb9@byu.net>
4064
4065         * lib/stdlib-safer.h: New file from coreutils, required by
4066         stdlib--.h.
4067
4068 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4069
4070         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
4071
4072 2006-07-20  Bruno Haible  <bruno@clisp.org>
4073
4074         * gnulib-tool: Recognize new option --assume-autoconf.
4075         (autoconf_minversion): New variable.
4076         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
4077
4078 2006-07-20  Bruno Haible  <bruno@clisp.org>
4079
4080         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
4081
4082 2006-07-19  Derek R. Price  <derek@ximbiot.com>
4083
4084         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
4085         Reindent and repaginate.
4086
4087 2006-07-19  Derek Price  <derek@ximbiot.com>
4088
4089         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
4090         Correct grammar.
4091
4092 2006-07-17  Bruno Haible  <bruno@clisp.org>
4093
4094         * modules/list: New file.
4095         * modules/array-list: New file.
4096         * modules/carray-list, modules/carray-list-tests: New files.
4097         * modules/linked-list, modules/linked-list-tests: New files.
4098         * modules/avltree-list, modules/avltree-list-tests: New files.
4099         * modules/rbtree-list, modules/rbtree-list-tests: New files.
4100         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
4101         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
4102         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
4103         * modules/oset: New file.
4104         * modules/array-oset: New file.
4105         * modules/avltree-oset, modules/avltree-oset-tests: New files.
4106         * modules/rbtree-oset, rbtree-oset-tests: New files.
4107         * tests/test-carray_list.c: New file.
4108         * tests/test-linked_list.c: New file.
4109         * tests/test-avltree_list.c: New file.
4110         * tests/test-rbtree_list.c: New file.
4111         * tests/test-linkedhash_list.c: New file.
4112         * tests/test-avltreehash_list.c: New file.
4113         * tests/test-rbtreehash_list.c: New file.
4114         * tests/test-avltree_oset.c: New file.
4115         * tests/test-rbtree_oset.c: New file.
4116         * MODULES.html.sh (Container data structures): New section.
4117
4118 2006-07-17  Bruno Haible  <bruno@clisp.org>
4119
4120         * m4/gl_list.m4: New file.
4121
4122 2006-07-17  Bruno Haible  <bruno@clisp.org>
4123
4124         * lib/gl_list.h: New file.
4125         * lib/gl_list.c: New file.
4126         * lib/gl_array_list.h: New file.
4127         * lib/gl_array_list.c: New file.
4128         * lib/gl_carray_list.h: New file.
4129         * lib/gl_carray_list.c: New file.
4130         * lib/gl_linked_list.h: New file.
4131         * lib/gl_linked_list.c: New file.
4132         * lib/gl_anylinked_list1.h: New file.
4133         * lib/gl_anylinked_list2.h: New file.
4134         * lib/gl_avltree_list.h: New file.
4135         * lib/gl_avltree_list.c: New file.
4136         * lib/gl_anyavltree_list1.h: New file.
4137         * lib/gl_anyavltree_list2.h: New file.
4138         * lib/gl_rbtree_list.h: New file.
4139         * lib/gl_rbtree_list.c: New file.
4140         * lib/gl_anyrbtree_list1.h: New file.
4141         * lib/gl_anyrbtree_list2.h: New file.
4142         * lib/gl_anytree_list1.h: New file.
4143         * lib/gl_anytree_list2.h: New file.
4144         * lib/gl_linkedhash_list.h: New file.
4145         * lib/gl_linkedhash_list.c: New file.
4146         * lib/gl_anyhash_list1.h: New file.
4147         * lib/gl_anyhash_list2.h: New file.
4148         * lib/gl_avltreehash_list.h: New file.
4149         * lib/gl_avltreehash_list.c: New file.
4150         * lib/gl_rbtreehash_list.h: New file.
4151         * lib/gl_rbtreehash_list.c: New file.
4152         * lib/gl_anytreehash_list1.h: New file.
4153         * lib/gl_anytreehash_list2.h: New file.
4154
4155         * lib/gl_oset.h: New file.
4156         * lib/gl_oset.c: New file.
4157         * lib/gl_array_oset.h: New file.
4158         * lib/gl_array_oset.c: New file.
4159         * lib/gl_avltree_oset.h: New file.
4160         * lib/gl_avltree_oset.c: New file.
4161         * lib/gl_rbtree_oset.h: New file.
4162         * lib/gl_rbtree_oset.c: New file.
4163         * lib/gl_anytree_oset.h: New file.
4164
4165 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4166
4167         * m4/mkancesdirs.m4: New file.
4168         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
4169         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
4170         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
4171         it.
4172
4173 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4174
4175         * lib/dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h:
4176         New files.
4177         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
4178         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
4179         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
4180         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
4181         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
4182         callers changed.  Revamp internals significantly, by not
4183         attempting to create directories that are temporarily more
4184         permissive than the final results.  Do not attempt to use
4185         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
4186         This removes some race conditions, fixes some bugs, and simplifies
4187         things.  Use new dirchownmod function to do owner and mode changes.
4188         * lib/mkdir-p.h: Likewise.
4189         * lib/modechange.c (octal_to_mode): New function.
4190         (struct mode_change): New member mentioned.
4191         (make_node_op_equals): New arg mentioned.  All callers changed.
4192         (mode_compile): Keep track of which mode bits the user has explicitly
4193         mentioned.
4194         (mode_adjust): New arg DIR, so that we implement the X op correctly.
4195         New arg PMODE_BITS, to keep track of which mode bits the user
4196         mentioned; it treats S_ISUID and S_ISGID speciall.
4197         All callers changed.
4198         * lib/modechange.h: Likewise.
4199
4200 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4201
4202         * MODULES.html.sh: Add mkancestors.
4203         * modules/mkancesdirs: New module.
4204         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
4205         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
4206         The chdir-safer and afs files are now orphans; I'll remove them
4207         unless someone speaks up.
4208         Add lib/dirchownmod.c, lib/dirchownmod.h.
4209         (Depends-on): Remove alloca, chown, save-cwd, dirname.
4210         Add lchown, mkancesdirs.
4211         (Maintainer): Add self.
4212
4213 2006-07-15  Karl Berry  <karl@gnu.org>
4214
4215         * gnulib-tool: help message wording/arrangement.
4216
4217 2006-07-14  Simon Josefsson  <jas@extundo.com>
4218
4219         * doc/gnulib.texi (Libtool and Windows): New section.
4220
4221 2006-07-12  Simon Josefsson  <jas@extundo.com>
4222
4223         * modules/gendocs (License): Fix license, approved by Karl.
4224
4225 2006-07-12  Eric Blake  <ebb9@byu.net>
4226
4227         * MODULES.html.sh: Add gendocs.
4228
4229 2006-07-11  Eric Blake  <ebb9@byu.net>
4230
4231         * modules/fdl: New module, to install doc/fdl.texi.
4232         * MODULES.html.sh: Add new section for documentation modules.
4233         * gnulib-tool: Avoid space-tab.
4234         (--doc-base): New option, to manage files from doc.
4235
4236 2006-07-11  Eric Blake  <ebb9@byu.net>
4237
4238         * m4/absolute-header.m4: Fix comments to match recent change.
4239
4240 2006-07-11  Eric Blake  <ebb9@byu.net>
4241
4242         * gnulib-tool: List --doc-base before --tests-base.
4243
4244 2006-07-11  Derek R. Price  <derek@ximbiot.com>
4245
4246         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
4247
4248 2006-07-11  Bruno Haible  <bruno@clisp.org>
4249
4250         * README: Mention where to put documentation.
4251
4252 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4253
4254         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
4255
4256 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4257
4258         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
4259         to stdint.m4.
4260
4261 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4262
4263         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
4264         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
4265         "no/such/file/stdint.h" when there is no such file, so that
4266         the resulting C code can be parsed by dodgy compilers.
4267         Problems reported by Bob Proulx.
4268
4269 2006-07-10  Derek R. Price  <derek@ximbiot.com>
4270
4271         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
4272         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
4273         macros into the GNU _D_EXACT_NAMLEN.
4274         * lib/savedir.c:  Likewise.
4275         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
4276
4277 2006-07-10  Derek R. Price  <derek@ximbiot.com>
4278         and Paul Eggert  <eggert@cs.ucla.edu>
4279
4280         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
4281         * m4/savedir.m4:
4282         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
4283         macros into the GNU _D_EXACT_NAMLEN.
4284
4285 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4286
4287         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
4288         around the absolute name, to work around a problem with the HP-UX
4289         11.23 native C compiler, reported by Bob Proulx.
4290
4291 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4292
4293         * doc/maintain.texi, make-stds.texi: Sync from
4294         <http://savannah.gnu.org/projects/gnustandards>.
4295
4296 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4297
4298         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
4299
4300 2006-07-09  Jim Meyering  <jim@meyering.net>
4301
4302         * m4/glob.m4: Remove a doubled word in a comment.
4303
4304 2006-07-09  Jim Meyering  <jim@meyering.net>
4305
4306         * lib/argp-pv.c: Remove a doubled word in a comment.
4307         * lib/check-version.c (check_version): Likewise.
4308         * lib/javacomp.c (compile_java_class): Likewise.
4309
4310 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4311
4312         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
4313         for the benefit of people using Autoconf 2.60.  If you want to
4314         support older Autoconf versions you can copy m4/onceonly_2_57.m4
4315         (or m4/onceonly.m4, if pre-2.57) manually.
4316
4317 2006-07-08  Jim Meyering  <jim@meyering.net>
4318
4319         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
4320         comment.
4321         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
4322         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
4323         comment.
4324
4325 2006-07-08  Jim Meyering  <jim@meyering.net>
4326
4327         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
4328
4329 2006-07-07  Simon Josefsson  <jas@extundo.com>
4330
4331         * tests/test-crc.c: Change expected crc value, the test vector
4332         were probably computed using the old broken crc.c?
4333
4334 2006-07-06  Simon Josefsson  <jas@extundo.com>
4335
4336         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
4337         now the canonical place for the M4 file).
4338
4339         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
4340         from the sys_socket dependency now.
4341
4342         * modules/inet_pton (Files): Ditto.
4343
4344         * modules/inet_ntop (Files): Ditto.
4345
4346 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
4347
4348         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
4349         not gl_PREREQ_GETUSERSHELL.
4350
4351 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4352
4353         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
4354         with only one argument, for Autoconf 2.60.
4355         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
4356         expand to nothing, so add a shell command to avoid syntax error.
4357         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4358
4359 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4360
4361         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
4362
4363 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4364
4365         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
4366         no longer needed.  Check for isblank decl.
4367         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
4368         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
4369         of existence.
4370
4371 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4372
4373         * lib/getloadavg.c: Use __VMS, not VMS.
4374         * lib/getopt.c: Likewise.
4375         * lib/getpagesize.h: Likewise.
4376         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
4377         and probably does not work.
4378
4379 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4380
4381         * lib/.cppi-disable: Add wcwidth.
4382         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
4383         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
4384         (ISGRAPH): Remove.  All uses changed to isgraph.
4385         (FOLD) [!defined _LIBC]: Remove special case.
4386         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
4387         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
4388         HAVE_ISBLANK.
4389         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
4390         case.
4391
4392 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
4393
4394         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
4395         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
4396         brackets.  Other minor changes to suppress some compiler
4397         warnings.
4398
4399 2006-07-06  Derek R. Price  <derek@ximbiot.com>
4400         and Paul Eggert  <eggert@cs.ucla.edu>
4401
4402         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
4403         of invoking obsolescent AC_HEADER_DIRENT macro.
4404         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4405         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4407         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4408         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
4409         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4410         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
4411         * m4/readdir.m4: Remove; no longer needed.
4412
4413 2006-07-06  Derek R. Price  <derek@ximbiot.com>
4414         and Paul Eggert  <eggert@cs.ucla.edu>
4415
4416         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
4417         Don't worry about this obsolete case any more.
4418         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
4419         directories.
4420         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
4421         worry about this obsolete case any more.
4422         * lib/fts.c: Likewise.
4423         * lib/getcwd.c: Likewise.
4424         * lib/glob.h: Likewise.
4425         * lib/savedir.c: Likewise.
4426
4427 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4428
4429         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
4430         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
4431         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
4432         needed.
4433         All uses removed.
4434         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4435         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
4436         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
4437         needed.
4438         * m4/getdate.m4 (gl_GETDATE): Likewise.
4439         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
4440         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
4441         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4442         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4443         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
4444         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
4445         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
4446         needed.
4447
4448 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4449
4450         * lib/memcasecmp.c: Include <limits.h>.
4451         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
4452         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
4453         Don't assume isdigit succeeds only on '0' through '9'.
4454
4455 2006-07-05  Eric Blake  <ebb9@byu.net>
4456
4457         * modules/getaddrinfo (Depends-on): Add snprintf.
4458
4459 2006-07-05  Eric Blake  <ebb9@byu.net>
4460
4461         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
4462         to avoid 'header present but could not be compiled' on cygwin.
4463
4464 2006-07-05  Eric Blake  <ebb9@byu.net>
4465
4466         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
4467         missing from netdb.h.
4468         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
4469
4470 2006-07-05  Derek R. Price  <derek@ximbiot.com>
4471
4472         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
4473         no longer needed.
4474         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
4475         * m4/getdate.m4 (gl_GETDATE): Likewise.
4476         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
4477         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
4478         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4479         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4480         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
4481
4482 2006-07-05  Derek R. Price  <derek@ximbiot.com>
4483
4484         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
4485         All uses of is_space replaced by isspace.
4486         * lib/exit.h: Don't talk about STDC_HEADERS.
4487         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
4488         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
4489         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
4490         replaced by isprint etc.
4491         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
4492         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
4493         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
4494         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
4495         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
4496         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
4497
4498 2006-07-05  Bruno Haible  <bruno@clisp.org>
4499
4500         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
4501         the function exists, before testing against AIX.
4502         Reported by Martin Lambers <marlam@marlam.de>.
4503
4504 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4505
4506         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
4507         From Mark D. Baushke.
4508
4509 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4510
4511         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
4512         to the absolute name, not just one, to bypass Sun C 5.8's
4513         "warning: #include of /usr/include/... may be non-portable".
4514
4515 2006-07-04  Eric Blake  <ebb9@byu.net>
4516
4517         * modules/dirname-tests: New test module.
4518         * tests/test-dirname.c: New file, replacing dirname.c
4519         TEST_DIRNAME section that was recently deleted.
4520
4521 2006-07-04  Bruno Haible  <bruno@clisp.org>
4522
4523         Assume ANSI C header files and <ctype.h> functions.
4524         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
4525         (mbsnwidth): Use isprint, iscntrl instead.
4526
4527 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4528
4529         Merge from coreutils.
4530         * MODULES.html.sh: Add xstrtold.
4531         * modules/xstrtold: New file.
4532         * modules/cycle-check (Files): Add lib/same-inode.h.
4533         * modules/dirname (Files): Add m4/double-slash-root.m4.
4534         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
4535         * modules/mkdir-p (Files): Add lib/same-inode.h.
4536         * modules/same (Files): Add lib/same-inode.h.
4537
4538 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4539
4540         * m4/absolute-header.m4: Renamed from full-header-path.m4.
4541         This is to keep the terminology clean; POSIX talks about
4542         "absolute pathnames", not "full pathnames", but the GNU
4543         Coding Standards say to use "path" for something else;
4544         so use "absolute" to keep both sides happy.
4545         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
4546         Set gl_absolute_header, not gl_full_header_path.
4547         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
4548         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
4549         All uses changed.
4550
4551         Merge from coreutils.
4552
4553         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4554
4555         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
4556         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
4557         want to require the building of c-strtod.o.
4558         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
4559         needs -lm directly.
4560         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
4561
4562         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
4563
4564         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
4565         --as-needed option if available.  Problem reported by Albert Chin in
4566         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
4567         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
4568         cc merely issues a bunch of annoying warnings for --as-needed
4569         (this problem was reported by Bob Proulx).  Also, try linking with
4570         -lm to detect a bug in binutils 2.16 (this problem was reported
4571         by Ralf Wildenhues).
4572
4573         2006-06-18  Jim Meyering  <jim@meyering.net>
4574
4575         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
4576         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
4577         macro.
4578         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
4579         also check for glibc-2.4's abort-inducing bug.
4580
4581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
4582         Low-probability clean-up should be to use rmdir to get rid of
4583         the just-created directory, not unlink.
4584
4585         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
4586         configure fail, and request a bug report to inform us about it.
4587         Add a comment that, barring reports to the contrary, in 2007 we'll
4588         assume ftruncate is universally available.
4589
4590         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
4591
4592         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
4593
4594         2006-03-12  Jim Meyering  <jim@meyering.net>
4595
4596         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
4597         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
4598         * m4/same.m4 (gl_SAME): Likewise.
4599         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
4600
4601         2006-03-11  Eric Blake  <ebb9@byu.net>
4602
4603         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
4604         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
4605         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
4606         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
4607
4608 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4609
4610         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
4611         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
4612         reported by Mark D. Baushke, one in
4613         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
4614
4615         Merge from coreutils.
4616
4617         * lib/.cppi-disable: Add stdint_.h.
4618         * lib/.cvsignore: Add stdint.h.
4619
4620         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4621
4622         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
4623         both double and long double versions.
4624         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
4625         * lib/xstrtold.c: New file.
4626         * lib/xstrtod.h (xstrtold): New decl.
4627
4628         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4629
4630         * lib/filemode.c (setst): Remove.
4631         (strmode): Rewrite to avoid setst.  This makes the code shorter,
4632         (arguably) clearer, and the generated code is a bit smaller on my
4633         Debian GNU/Linux stable x86 host.
4634
4635         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
4636
4637         * lib/filemode.c: Include "filemode.h" first, to test the interface.
4638         Assume that filemode.h includes sys/types.h and sys/stat.h.
4639         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
4640         (ftypelet): Reorder to put common cases first, for efficiency.
4641         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
4642         to do 'M'.
4643         (strmode): Renamed from mode_string, and now stores 12 bytes instead
4644         of 10, for compatibility with FreeBSD.  All callers changed.
4645         (filemodestring): Now stores 12 bytes instead of 10, and sets file
4646         types that can't be deduced solely from st_mode.  First arg is now a
4647         const pointer.
4648         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
4649         (strmode): Renamed from mode_string.
4650         (filemodestring): New decl.
4651         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
4652         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
4653         needed.
4654         (S_ISPORT, S_ISWHT): New macros, if not already defined.
4655
4656         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4657
4658         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
4659         fsusage.h now does that.  Include fsusage.h first, to test interface.
4660         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
4661         at most one method (the old code could have generated decls that
4662         didn't conform to C89, not that this was ever exercised).
4663         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
4664
4665         2006-03-19  Jim Meyering  <jim@meyering.net>
4666
4667         Work even in a chroot where d_ino values for entries in "/"
4668         don't match the stat.st_ino values for the same names.
4669         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
4670         number, iterate through all entries again, using lstat instead.
4671         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
4672         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
4673
4674         * lib/getcwd.c (__getcwd): Clarify a comment.
4675         Use memcpy in place of a call to strcpy.
4676
4677         2006-03-12  Jim Meyering  <jim@meyering.net>
4678
4679         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
4680         matches that of the current directory (which we're about to chdir ".."
4681         out of), then save the dev-ino of the parent, instead.
4682
4683         * lib/same-inode.h (SAME_INODE): New file/macro.
4684         * lib/chdir-safer.c (SAME_INODE): Remove definition.
4685         Include "same-inode.h", instead.
4686         * lib/same.c: Likewise.
4687         * lib/cycle-check.h: Include "same-inode.h".
4688         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
4689         * lib/cycle-check.c (SAME_INODE): Remove definition.
4690         * lib/root-dev-ino.h: Include "same-inode.h".
4691
4692         2006-03-11  Eric Blake  <ebb9@byu.net>
4693
4694         * lib/same.c (same_name): s/base_name/last_component/
4695         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
4696         * lib/filenamecat.c (file_name_concat): Likewise.
4697
4698         2006-03-11  Eric Blake  <ebb9@byu.net>,
4699                     Paul Eggert  <eggert@cs.ucla.edu>
4700
4701         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
4702         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
4703         drive prefix.
4704         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
4705         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
4706         (last_component): New method.
4707         * lib/dirname.c (dir_len): Determine when drive letters need a
4708         subsequent slash.  Preserve // when it is special.
4709         (dir_name): Don't append dot when drive letter is absolute.
4710         [TEST_DIRNAME]: Move into a full-blown gnulib test.
4711         * lib/basename.c (base_name): New semantics - malloc the result.
4712         Preserve // when it is special.  Preserve relative files that look
4713         like drive letters.
4714         (base_len): Preserve // when it is special.
4715         (last_component): New method, similar to old base_name semantics.
4716         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
4717         base_name.  Strip redundant slashes from ///.
4718
4719 2006-07-03  Jim Meyering  <jim@meyering.net>
4720
4721         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
4722         macro is used before the first cycle_check call.
4723
4724 2006-07-03  Eric Blake  <ebb9@byu.net>
4725
4726         * modules/dirname (Depends-on): Add xstrndup.
4727
4728 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4729
4730         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
4731         test cases, so that config.log is a bit easier to follow.
4732
4733 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4734
4735         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
4736         both are 64 bits, since this seems to be the tradition, and this
4737         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
4738         we ever run into a host that prefers long long to long in this
4739         case, we'll need another configure-time test.  Problem reported by
4740         Jim Meyering.
4741
4742 2006-07-02  Eric Blake  <ebb9@byu.net>
4743
4744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
4745
4746 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4747
4748         * modules/inttypes (Depends-on): No longer depends on stdint.
4749         * modules/stdint (Description): Say more about assumptions.
4750         Say that the fast types might differ.  Say macros are used.
4751         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
4752         (Makefile.am): Revise list of substituted symbols to match
4753         new stdint.m4.
4754         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
4755         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
4756         * tests/test-stdint.c (verify_same_types)
4757         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
4758         the code conforms to C99/C89.
4759         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
4760         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
4761
4762 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4763
4764         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
4765         but fix a bug, by requiring at least 64 bits.
4766         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4767         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
4768         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
4769         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
4770
4771         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
4772         changes.  Make 2.59 a prerequisite.  Check and substitute for
4773         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
4774         inttypes.h.  Do not use special include files; just use the
4775         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
4776         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
4777         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
4778         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
4779         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
4780         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
4781         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
4782         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
4783         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
4784         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
4785         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
4786         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
4787         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
4788         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
4789         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
4790         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
4791         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
4792         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
4793         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
4794         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
4795         WINT_MAX.  Check for C99 conformance more strictly, by detecting
4796         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
4797         not check for things that C99 does not require, e.g., int8_t.  If
4798         a test isn't needed unless <stdint.h> isn't working, and is
4799         unlikely to be needed for any other reason, then don't do it
4800         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
4801         size_t, since we assume C89 freestanding at least.  Do not check
4802         for sig_atomic_t, wchar_t, or wint_t, since the code now does
4803         the right thing even if the types are not defined.  Instead use:
4804         (gl_STDINT_TYPE_PROPERTIES): New macro.
4805         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
4806         testing whether <sys/types.h> clashes, as Autoconf does this for
4807         us now.  All uses removed.
4808         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
4809         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
4810         (gl_CHECK_TYPE_SAME):
4811         Remove; no longer needed.
4812         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
4813         exists, since we'll return 0 anyway in that case.
4814         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
4815
4816 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4817
4818         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
4819         possible collision with system files.
4820         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
4821         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
4822         WCHAR_MIN and WCHAR_MAX in this case.
4823         (<stddef.h>): Do not include; no longer needed.
4824         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
4825         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
4826         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
4827         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
4828         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
4829         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
4830         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
4831         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
4832         !defined(__c99))]: Include in this case too, since it's harmless
4833         now.
4834         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
4835         dangerous to do so.
4836         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
4837         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
4838         (_STDINT_MIN, _STDINT_MAX): New macros.
4839         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
4840         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
4841         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
4842         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
4843         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
4844         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
4845         macros, not typedefs; this simplifies things quite a bit.
4846         Use long int for all types narrower than int64_t.
4847         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
4848         Define in terms of long long int or int64_t or long int,
4849         not int64_t or int32_t.  This saves some compile-time testing.
4850         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
4851         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
4852         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
4853         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
4854         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
4855         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
4856         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
4857         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4858         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
4859         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
4860         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
4861         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
4862         undef any previous version and define our own version, for
4863         simplicity and consistency with the new macros for types.
4864         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
4865         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
4866         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
4867         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
4868         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
4869         @WINT_T_SUFFIX@ to keep things simple here.
4870         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
4871         Simplify by assuming typical 8/16/32/64 host, since we're
4872         already doing that elsewhere anyway.
4873         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
4874         and assume long long int is 64 bits if available.  This
4875         speeds up 'configure'.
4876
4877 2006-07-01  Eric Blake  <ebb9@byu.net>
4878
4879         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
4880         Reported by Andreas Buening.
4881
4882 2006-07-01  Eric Blake  <ebb9@byu.net>
4883
4884         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
4885
4886 2006-06-30  Jim Hyslop <jhyslop@dreampossible.ca>  (tiny change)
4887
4888         * lib/getaddrinfo.c: fixed typo
4889
4890 2006-06-29  Jim Meyering  <jim@meyering.net>
4891
4892         * modules/strftime (Maintainer): Add my name, since with the
4893         FPRINTFTIME changes strftime.c has forked from glibc.
4894
4895 2006-06-29  Eric Blake  <ebb9@byu.net>
4896
4897         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
4898
4899 2006-06-29  Eric Blake  <ebb9@byu.net>
4900
4901         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
4902
4903 2006-06-29  Eric Blake  <ebb9@byu.net>
4904
4905         * lib/stat_.h: New file.
4906
4907 2006-06-29  Eric Blake  <ebb9@byu.net>
4908
4909         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
4910         unused static function.
4911
4912 2006-06-29  Eric Blake  <ebb9@byu.net>
4913
4914         * doc/functions.texi (Function Portability): Document missing lstat
4915         on mingw.
4916
4917 2006-06-29  Eric Blake  <ebb9@byu.net>
4918
4919         * MODULES.html.sh: Add sys_stat.
4920         * modules/sys_stat: New module.
4921         * modules/mkstemp (Depends-on): Add sys_stat.
4922
4923 2006-06-29  Derek R. Price  <derek@ximbiot.com>
4924
4925         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
4926
4927 2006-06-29  Derek R. Price  <derek@ximbiot.com>
4928
4929         * m4/c-bs-a.m4: Removed.
4930
4931 2006-06-29  Derek R. Price  <derek@ximbiot.com>
4932
4933         * lib/strftime.c: Assume strftime() exists.
4934
4935 2006-06-29  Derek Price  <derek@ximbiot.com>
4936
4937         * modules/c-bs-a: Removed - \a is C89.
4938         * MODULES.html.sh: Remove c-bs-a.
4939
4940 2006-06-29  Bruno Haible  <bruno@clisp.org>
4941
4942         * modules/wcwidth (License): Change to LGPL.
4943
4944 2006-06-28  Simon Josefsson  <jas@extundo.com>
4945
4946         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
4947         on _WIN32.
4948
4949         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
4950         getnameinfo.
4951
4952 2006-06-28  Simon Josefsson  <jas@extundo.com>
4953
4954         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
4955
4956 2006-06-28  Simon Josefsson  <jas@extundo.com>
4957
4958         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
4959         functions there.  It will succeed on Windows XP, but on Windows
4960         2000 and (presumably) earlier, it will fail, and use the internal
4961         re-implementation.
4962         (use_win32_p): New function.
4963         (getaddrinfo): Use strtoul on servname, to support numeric ports.
4964         Support AI_NUMERICSERV to disable getservbyname.
4965         (getnameinfo): New function, only supports
4966         NI_NUMERICHOST|NI_NUMERICSERV for now.
4967
4968         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
4969         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
4970         getnameinfo.
4971
4972 2006-06-28  Eric Blake  <ebb9@byu.net>
4973
4974         * modules/wcwidth: New file.
4975         * modules/mbchar (Depends-on): Add wcwidth.
4976         * modules/mbswidth (Depends-on): Add wcwidth.
4977         * MODULES.html.sh: Add wcwidth.
4978
4979 2006-06-28  Eric Blake  <ebb9@byu.net>
4980
4981         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
4982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
4983
4984 2006-06-28  Eric Blake  <ebb9@byu.net>
4985
4986         * lib/xvasprintf.h: Fix comments.
4987
4988 2006-06-28  Eric Blake  <ebb9@byu.net>
4989
4990         * lib/mbchar.h (wcwidth): Include wcwidth.h.
4991         * lib/mbswidth.c (wcwidth): Move from here...
4992         * lib/wcwidth.h: ...to this new file.
4993
4994 2006-06-28  Derek R. Price  <derek@ximbiot.com>
4995
4996         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
4997
4998         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
4999         it's obsolete.
5000         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
5001
5002 2006-06-28  Derek R. Price  <derek@ximbiot.com>
5003
5004         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
5005         Autoconf 2.60 says this stuff was obsolete.
5006
5007 2006-06-28  Bruno Haible  <bruno@clisp.org>
5008
5009         * modules/wcwidth (Files): Add m4/wchar_t.m4.
5010
5011 2006-06-28  Bruno Haible  <bruno@clisp.org>
5012
5013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
5014         gt_TYPE_WCHAR_T.
5015
5016 2006-06-28  Bruno Haible  <bruno@clisp.org>
5017
5018         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
5019         declaration for wcwidth.
5020         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
5021
5022 2006-06-28  Bruno Haible  <bruno@clisp.org>
5023
5024         * lib/mkdtemp.c [MINGW]: Include <io.h>.
5025         (mkdir): Define using _mkdir.
5026
5027 2006-06-28  Bruno Haible  <bruno@clisp.org>
5028
5029         * lib/getaddrinfo.h: Fix POSIX URL.
5030         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
5031         _WIN32.
5032         (use_win32_p): Make static.
5033         (getaddrinfo): Reject service name if it is empty or does not consist
5034         solely of decimal digits, or if its value is > 65535.
5035         (getnameinfo): Remove useless casts.
5036
5037 2006-06-27  Simon Josefsson  <jas@extundo.com>
5038
5039         * modules/sys_select: New file, suggested by Bruno Haible, Paul
5040         Eggert and Martin Lambers.
5041
5042 2006-06-27  Simon Josefsson  <jas@extundo.com>
5043
5044         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
5045         Eggert and Martin Lambers.
5046
5047 2006-06-27  Bruno Haible  <bruno@clisp.org>
5048
5049         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
5050         result to 0, not to empty.
5051         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
5052
5053 2006-06-27  Bruno Haible  <bruno@clisp.org>
5054
5055         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
5056
5057 2006-06-26  Simon Josefsson  <jas@extundo.com>
5058
5059         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
5060         present.
5061
5062 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
5063
5064         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
5065         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
5066         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
5067
5068 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
5069
5070         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
5071
5072 2006-06-26  Bruno Haible  <bruno@clisp.org>
5073
5074         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
5075
5076 2006-06-26  Bruno Haible  <bruno@clisp.org>
5077
5078         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
5079
5080 2006-06-26  Bruno Haible  <bruno@clisp.org>
5081
5082         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
5083         SGI C compiler in pre-C99 mode.
5084         Suggested by Mark D. Baushke and Larry Jones.
5085
5086 2006-06-26  Bruno Haible  <bruno@clisp.org>
5087
5088         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
5089         WCHAR_MAX.
5090         Reported by Mark D. Baushke and Larry Jones.
5091
5092 2006-06-26  Bruno Haible  <bruno@clisp.org>
5093
5094         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
5095         in pre-C99 mode.
5096         Suggested by Mark D. Baushke and Larry Jones.
5097
5098 2006-06-23  Simon Josefsson  <jas@extundo.com>
5099             Bruno Haible  <bruno@clisp.org>
5100
5101         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
5102         Emit mostlyclean-local rule.
5103         (func_emit_tests_Makefile_am): Likewise.
5104         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
5105
5106 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
5107
5108         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
5109
5110 2006-06-23  Bruno Haible  <bruno@clisp.org>
5111
5112         * tests/test-stdint.c: Update to match ISO C 99 Technical
5113         Corrigendum 1.
5114
5115 2006-06-23  Bruno Haible  <bruno@clisp.org>
5116
5117         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
5118
5119 2006-06-23  Bruno Haible  <bruno@clisp.org>
5120
5121         * lib/stdint_.h: Treat IRIX like OpenBSD.
5122
5123 2006-06-23  Bruno Haible  <bruno@clisp.org>
5124
5125         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
5126         ISO C 99 Technical Corrigendum 1.
5127
5128 2006-06-22  Simon Josefsson  <jas@extundo.com>
5129
5130         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
5131         MinGW.
5132
5133 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
5134
5135         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
5136         needed.  Some compiler complained about some of them.  Problem reported
5137         by Larry Jones in
5138         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
5139
5140 2006-06-21  Simon Josefsson  <jas@extundo.com>
5141
5142         * tests/test-getaddrinfo.c: New file.
5143
5144         * modules/getaddrinfo-tests: New file.
5145
5146         * MODULES.html.sh: Add inet_pton.
5147
5148         * modules/inet_pton: New file.
5149
5150 2006-06-21  Simon Josefsson  <jas@extundo.com>
5151
5152         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
5153         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
5154         of using the (limited) gnulib implementation on Windows XP.
5155
5156         * m4/inet_pton.m4: New file.
5157
5158 2006-06-21  Simon Josefsson  <jas@extundo.com>
5159
5160         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
5161         variable.
5162
5163         * lib/socket_.h: Don't define WINVER.
5164
5165         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
5166         slightly modified to work in gnulib.
5167
5168 2006-06-21  Simon Josefsson  <jas@extundo.com>
5169
5170         * doc/gnulib.texi (Windows sockets): Add.
5171
5172 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
5173
5174         * lib/read-file.c (fread_file): Start with buffer allocation of
5175         0 bytes rather than 1 byte; this simplifies the code.
5176         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
5177         code to free buffer and save/restore errno.
5178         (internal_read_file): Remove unused local.
5179
5180 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5181
5182         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
5183         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
5184         Problem reported by Denis Excoffier in
5185         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
5186
5187 2006-06-19  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5188
5189         * modules/sys_socket, modules/socklen: Include sys/types since
5190         FreeBSD 4.x's sys/socket.h needs it.
5191
5192 2006-06-19  Simon Josefsson  <jas@extundo.com>
5193
5194         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
5195
5196 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5197
5198         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
5199
5200 2006-06-19  Bruno Haible  <bruno@clisp.org>
5201
5202         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
5203         and FULL_PATH_INTTYPES_H in angle brackets.
5204         Reported by Mark D. Baushke <mdb@gnu.org>.
5205
5206 2006-06-17  Eric Blake  <ebb9@byu.net>
5207
5208         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
5209         errno.
5210
5211 2006-06-17  Bruno Haible  <bruno@clisp.org>
5212
5213         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
5214         <sys/inttypes.h>.
5215
5216 2006-06-17  Bruno Haible  <bruno@clisp.org>
5217
5218         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
5219         whether errno is declared. Assume <errno.h> declares errno.
5220
5221 2006-06-17  Bruno Haible  <bruno@clisp.org>
5222
5223         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
5224
5225 2006-06-17  Bruno Haible  <bruno@clisp.org>
5226
5227         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
5228         problem on Solaris 2.5.1.
5229
5230 2006-06-16  Eric Blake  <ebb9@byu.net>
5231
5232         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
5233         * lib/unicodeio.c [!defined errno]: Likewise.
5234         * lib/strtol.c [!defined errno]: Likewise.
5235         * lib/strtod.c [!defined errno]: Likewise.
5236
5237 2006-06-15  Eric Blake  <ebb9@byu.net>
5238
5239         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
5240
5241 2006-06-15  Eric Blake  <ebb9@byu.net>
5242
5243         * config/srclist.txt (ssize_t.m4): Lose sync.
5244
5245 2006-06-15  Bruno Haible  <bruno@clisp.org>
5246
5247         * modules/stdint (Files): Include m4/full-header-path.m4,
5248         m4/size_max.m4, m4/wchar_t.m4.
5249         (Makefile.am): Many more substitutions.
5250         * modules/stdint-tests: New file.
5251         * tests/test-stdint.c: New file.
5252
5253 2006-06-15  Bruno Haible  <bruno@clisp.org>
5254
5255         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
5256         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
5257         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
5258         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
5259         gl_CHECK_TYPE_SAME): New macros.
5260
5261 2006-06-15  Bruno Haible  <bruno@clisp.org>
5262
5263         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
5264
5265 2006-06-15  Bruno Haible  <bruno@clisp.org>
5266
5267         * lib/stdint_.h: Rewritten to be fully auto-configured.
5268         Fixes bug on HP-UX/IA64.
5269
5270 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
5271
5272         * lib/getdate.y (__attribute__): Don't define if already defined.
5273         Problem reported by Larry Jones.
5274         * lib/utimens.c (__attribute__): Likewise.
5275
5276 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5277
5278         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
5279         reported by Andreas Schwab.
5280
5281 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5282             Bruno Haible  <bruno@clisp.org>
5283
5284         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
5285         check for the declaration of strnlen and a run test that exposes the
5286         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
5287         rpl_strndup.
5288
5289 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5290             Bruno Haible  <bruno@clisp.org>
5291
5292         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
5293
5294 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5295
5296         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
5297         compile test, for Tru64 4.0D.
5298
5299 2006-05-28  Karl Berry  <karl@gnu.org>
5300
5301         * config/srclist.txt (printf-args.c): lose sync.
5302
5303 2006-05-26  Martin Lambers  <marlam@marlam.de>
5304
5305         * lib/getpass.c: Updates the test for the native W32 API, and adds
5306         missing includes, thus fixing compilation warnings.
5307
5308 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
5309
5310         * lib/exclude.c (exclude_fnmatch): New function.
5311         (excluded_file_name): Call exclude_fnmatch.
5312         * lib/exclude.h (excluded_file_name): New prototype
5313
5314 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5315
5316         * lib/tempname.c (small_open, large_open): New macros.
5317         (__open, __open64) [!_LIBC]: Remove.
5318         (__gen_tempname): Use small_open and large_open instead of __open
5319         and __open64.  This fixes a portability bug on HP-UX 11.11i
5320         reported by Simon Wing-Tang in
5321         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
5322
5323 2006-05-24  Bruno Haible  <bruno@clisp.org>
5324
5325         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
5326         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
5327         Reported by Thorsten Maerz <torte@netztorte.de> via
5328         Aaron Stone <aaron@serendipity.cx>.
5329
5330 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5331
5332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
5333         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
5334         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
5335         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
5336         not really conditional on the cache.
5337         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
5338
5339 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5340
5341         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
5342         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
5343         (my_usleep): Don't mishandle maximum value.
5344
5345 2006-05-19  Jim Meyering  <jim@meyering.net>
5346
5347         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
5348
5349 2006-05-17  Bruno Haible  <bruno@clisp.org>
5350
5351         Cygwin portability.
5352         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
5353
5354 2006-05-17  Bruno Haible  <bruno@clisp.org>
5355
5356         * lib/stdint_.h: Fix recognition of Cygwin.
5357
5358 2006-05-15  Bruno Haible  <bruno@clisp.org>
5359
5360         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
5361         on libtool patch by Ralf Wildenhues.
5362
5363 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5364
5365         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
5366         test for C99 conformance; (bool) 0.5 is an integer constant
5367         expression, but (bool) -0.5 is not.  Problem reported by Fedor
5368         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
5369
5370 2006-05-11  Simon Josefsson  <jas@extundo.com>
5371
5372         * m4/xvasprintf.m4: Fix obvious typo.
5373
5374 2006-05-11  Jim Meyering  <jim@meyering.net>
5375
5376         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
5377         James Lemley.
5378
5379 2006-05-10  Simon Josefsson  <jas@extundo.com>
5380
5381         * lib/md4.c: Typo fix, update copyright years.
5382         (K1, K2): Don't use L because it turn computations into 64-bit on
5383         64-bit platforms.
5384
5385 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5386
5387         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
5388         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
5389         unwanted sign propagation, e.g., on hosts with 64-bit int.
5390         There still are some problems with reeelly weird theoretical hosts
5391         (e.g., 33-bit int) but it's not worth worrying about now.
5392         * lib/sha1.c (rol): Likewise.
5393         (K1, K2, K3, K4): Remove unnecessary L suffix.
5394
5395 2006-05-10  Bruno Haible  <bruno@clisp.org>
5396
5397         * lib/des.c: Cast to avoid warnings.
5398
5399 2006-05-09  Bruno Haible  <bruno@clisp.org>
5400
5401         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
5402         (Depends-on): Depend also on xsize, stdarg.
5403         (configure.ac): Add gl_XVASPRINTF.
5404
5405 2006-05-09  Bruno Haible  <bruno@clisp.org>
5406
5407         * m4/xvasprintf.m4: New file.
5408
5409 2006-05-09  Bruno Haible  <bruno@clisp.org>
5410
5411         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
5412         (EOVERFLOW): Define fallback value.
5413         (xstrcat): New function.
5414         (xvasprintf): Recognize the special case of a string concatenation.
5415
5416 2006-05-08  Eric Blake  <ebb9@byu.net>
5417
5418         * gnulib-tool (func_version): Base copyright year on CVS date.
5419         (func_emit_copyright_notice): New function.
5420         (func_emit_lib_Makefile_am): Use it.
5421         (func_emit_tests_Makefile_am): Likewise.
5422         (func_import): Likewise.
5423
5424 2006-05-08  Bruno Haible  <bruno@clisp.org>
5425
5426         * modules/stdarg: New file.
5427         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
5428
5429 2006-05-08  Bruno Haible  <bruno@clisp.org>
5430
5431         * m4/stdarg.m4: New file, from GNU gettext.
5432
5433 2006-05-08  Bruno Haible  <bruno@clisp.org>
5434
5435         * config/srclist.txt (build-aux/config.rpath): different from latest
5436         release.
5437
5438 2006-05-08  Bruno Haible  <bruno@clisp.org>
5439
5440         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
5441
5442 2006-05-05  Jim Meyering  <jim@meyering.net>
5443
5444         * m4/warning.m4: New file, derived from bison's file by the same name.
5445
5446 2006-05-03  Bruno Haible  <bruno@clisp.org>
5447
5448         * lib/stdint_.h: Shorter URL.
5449         * lib/inttypes.h: Likewise.
5450
5451 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5452
5453         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
5454
5455 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5456
5457         * lib/verify.h: Document the internals better.  Most of this change
5458         was written by Bruno Haible.
5459
5460 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5461
5462         * doc/verify.texi: New file, partly based on a proposal by
5463         Bruno Haible.
5464
5465 2006-05-02  Bruno Haible  <bruno@clisp.org>
5466
5467         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
5468         test from here...
5469         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
5470
5471 2006-04-29  Bruno Haible  <bruno@clisp.org>
5472
5473         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
5474         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
5475
5476 2006-04-29  Bruno Haible  <bruno@clisp.org>
5477
5478         * gnulib-tool: Make --update option actually work.
5479
5480 2006-04-29  Bruno Haible  <bruno@clisp.org>
5481
5482         * doc/gcd.texi: New file.
5483         * doc/gnulib.texi: Include it.
5484
5485 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5486
5487         * lib/getdate.y (get_date): When adding relative date, start with the
5488         initial time, not with the result of the first mktime call.
5489
5490 2006-04-25  Bruno Haible  <bruno@clisp.org>
5491
5492         * gnulib-tool (func_import): Output the include directives in three
5493         blocks, sorted separately.
5494         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5495
5496 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5497
5498         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
5499         to define main with arguments, for C++.  Reported by Eric Blake.
5500         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5501         Prefer 'int main ()' to 'int main (void)', for C++.
5502         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5503         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
5504         for 'main', for C99 and C++.
5505
5506 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5507
5508         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
5509         Don't assume that exit status -1 is valid.
5510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5511         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5512         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5513         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
5514         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
5515         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
5516         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
5517         functions can be used without declaring them, or that you can
5518         exit with status -1.
5519         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
5520
5521 2006-04-24  Karl Berry  <karl@gnu.org>
5522
5523         * config/srclist.txt (longdouble.m4): sync lost.
5524
5525 2006-04-24  Eric Blake  <ebb9@byu.net>
5526
5527         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
5528
5529 2006-04-24  Bruno Haible  <bruno@clisp.org>
5530
5531         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
5532         poll() implementation in AIX.
5533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5534
5535 2006-04-24  Bruno Haible  <bruno@clisp.org>
5536
5537         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
5538         assigned exactly once.
5539
5540 2006-04-23  Claudio Fontana  <claudio@gnu.org>
5541             Bruno Haible  <bruno@clisp.org>
5542
5543         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
5544         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
5545         for AM_CPPFLAGS.
5546
5547 2006-04-23  Bruno Haible  <bruno@clisp.org>
5548
5549         * modules/copy-file: Depend on unistd.
5550         * modules/execute: Likewise.
5551         * modules/fatal-signal: Likewise.
5552         * modules/findprog: Likewise.
5553         * modules/mkdtemp : Likewise.
5554         * modules/pipe: Likewise.
5555         * modules/wait-process: Likewise.
5556
5557 2006-04-23  Bruno Haible  <bruno@clisp.org>
5558
5559         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
5560         condition was already detected.
5561         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5562
5563 2006-04-23  Bruno Haible  <bruno@clisp.org>
5564
5565         * lib/copy-file.c: Include <unistd.h> unconditionally.
5566         * lib/execute.c: Likewise.
5567         * lib/fatal-signal.c: Likewise.
5568         * lib/findprog.c: Likewise.
5569         * lib/mkdtemp.c: Likewise.
5570         * lib/pipe.h: Likewise.
5571         * lib/pipe.c: Likewise.
5572         * lib/wait-process.h: Likewise.
5573
5574 2006-04-23  Bruno Haible  <bruno@clisp.org>
5575
5576         * gnulib-tool (func_usage): Fix --import description. Document
5577         --update.
5578         (func_import): Create temporary file in a temporary directory, if
5579         --dry-run is specified. Silence errors from 'grep' when there are no
5580         m4 files in $m4dir.
5581         (func_create_testdir): Silence errors from 'grep' when there are no
5582         m4 files in $m4dir.
5583         Reported by Karl Berry <karl@freefriends.org>.
5584
5585 2006-04-20  Bruno Haible  <bruno@clisp.org>
5586
5587         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
5588         one argument, so that the code will be portable to Autoconf 2.60.
5589         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
5590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5591         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
5592
5593 2006-04-19  Derek Price  <derek@ximbiot.com>
5594             Eric Blake  <ebb9@byu.net>
5595
5596         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
5597         rather than "/full/path.h".  Update comment to match.  Shorten &
5598         generalize m4_translit call via AS_TR_CPP.
5599
5600 2006-04-19  Derek Price  <derek@ximbiot.com>
5601             Eric Blake  <ebb9@byu.net>
5602
5603         * lib/inttypes.h: Correct grammar in comment.
5604
5605 2006-04-18  Derek Price  <derek@ximbiot.com>
5606             Paul Eggert  <eggert@cs.ucla.edu>
5607
5608         * modules/inttypes: New file.
5609         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
5610
5611 2006-04-18  Derek Price  <derek@ximbiot.com>
5612             Paul Eggert  <eggert@cs.ucla.edu>
5613
5614         * m4/_inttypes_h.m4, full-header-path.m4, include_next: New files.
5615
5616 2006-04-18  Derek Price  <derek@ximbiot.com>
5617             Paul Eggert  <eggert@cs.ucla.edu>
5618
5619         * lib/inttypes.h: New file.
5620         * lib/strtoimax.c: Assume <inttypes.h>.
5621
5622 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
5623
5624         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
5625         isn't mounted.  Problem reported by Kir Kolyshkin.
5626
5627 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
5628
5629         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
5630         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
5631         Derek R. Price.
5632         * lib/regex.h (RE_DUP_MAX): Update comment to match current
5633         implementation.
5634
5635 2006-04-12  Eric Blake  <ebb9@byu.net>
5636
5637         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
5638         is now done automatically by the corresponding Autoconf macro.
5639
5640 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
5641
5642         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
5643         time_r.h.
5644
5645 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5646
5647         Merge regex changes from libc, removing some of our
5648         POSIX-conformance changes that were rejected and redoing them in a
5649         less-intrusive way.
5650
5651         * lib/regcomp.c (re_compile_internal, init_dfa):
5652         Length arg is now size_t, not Idx.  All uses changed.
5653         (peek_token): Forward decl now says internal_function.
5654         (__re_error_msgid, __re_error_msgid_idx):
5655         Now static rather than extern with attribute_hidden.
5656         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
5657         For some reason libc prefers K&R style defns for external functions.
5658         (regerror) [!defined _LIBC]: Likewise.
5659         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
5660         (seek_collating_symbol_entry, lookup_collation_sequence_value):
5661         (build_range_exp, build_collating_symbol):
5662         Use K&R-style defn.
5663         (re_compile_fastmap): Use '\0' to memset, not 0.
5664         (utf8_sb_map): Make the calculations more obvious.
5665         (init_dfa, parse_bracket_exp, build_charclass_op):
5666         Call calloc and cast result, as glibc does.
5667         (init_word_char, fetch_token, peek_token, peek_token_bracket):
5668         (build_range_exp, build_collating_symbol):
5669         Now internal functions.
5670
5671         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
5672
5673         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
5674         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
5675         Don't depend on VMS; depend on __VMS instead, for POSIX
5676         namespace cleanness.
5677         (regoff_t): Define to ssize_t, not long int.
5678
5679         Remove the REG_ macros named below.  Instead, make the old names
5680         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
5681         __USE_GNU_REGEX.
5682         (REG_BACKSLASH_ESCAPE_IN_LISTS):
5683         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
5684         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
5685         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
5686         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
5687         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
5688         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
5689         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
5690         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
5691         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
5692         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
5693         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
5694         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
5695         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
5696         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
5697         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
5698         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
5699         (REG_NREGS):
5700         Remove.  All uses replaced by the old RE_* names.
5701         (RE_BACKSLASH_ESCAPE_IN_LISTS):
5702         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
5703         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
5704         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
5705         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
5706         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
5707         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
5708         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
5709         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
5710         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
5711         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
5712         Don't bother having these macros be independent of each others'
5713         values, since they no longer exist in the POSIX name space.
5714
5715         Rename the following member names back to their old names,
5716         unless !__USE_GNU_REGEX.  All uses changed back.
5717         (buffer): Renamed from re_buffer.
5718         (allocated): Renamed from re_allocated.
5719         (used): Renamed from re_used.
5720         (syntax): Renamed from re_syntax.
5721         (fastmap): Renamed from re_fastmap.
5722         (translate): Renamed from re_translate.
5723         (can_be_null): Renamed from re_can_be_null.
5724         (regs_allocated): Renamed from re_regs_allocated.
5725         (fastmap_accurate): Renamed from re_fastmap_accurate.
5726         (no_sub): Renamed from re_no_sub.
5727         (not_bol): Renamed from re_not_bol.
5728         (not_eol): Renamed from re_not_eol.
5729         (newline_anchor): Renamed from re_newline_anchor.
5730         (num_regs): Renamed from rm_num_regs.
5731         (start): Renamed from rm_start.
5732         (end): Renamed from rm_end.
5733
5734         (free_state): Move up a bit.
5735
5736         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
5737         #define to be empty.
5738         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
5739         when that is what is intended.
5740         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
5741         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
5742         (MAX): New macro.
5743         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
5744         All uses changed back to re_malloc, etc.  It's now the caller's
5745         responsibility to check for overflow; all callers changed.
5746         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
5747         (re_x2nrealloc): Remove.
5748         (free_state): Remove decl.
5749
5750         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
5751         (re_set_registers, re_exec):
5752         Use K&R-style defn.
5753
5754         2006-01-31  Roland McGrath  <roland@redhat.com>
5755
5756         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
5757         Reported by Mike Frysinger <vapier@gentoo.org>.
5758
5759         2006-01-15  Andreas Jaeger  <aj@suse.de>
5760
5761         [BZ #1950]
5762         * lib/regex_internal.c (re_string_reconstruct): Adjust for
5763         build_wcs_upper_buffer change.
5764         (build_wcs_upper_buffer): Change return type.
5765
5766         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
5767
5768         * lib/regex_internal.h: Include <stdint.h> if available.
5769
5770         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
5771
5772         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
5773
5774         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
5775
5776         * lib/regcomp.c: Adjust for changed secondary hash function.
5777
5778         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
5779
5780         * lib/regex.h: Pretty printing.
5781         Clean up namespace a bit.
5782
5783         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
5784
5785         * lib/regexec.c (update_cur_sifted_state, check_arrival,
5786         check_arrival_add_next_nodes): Avoid using uninitialized variable.
5787
5788         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5789                     Ulrich Drepper  <drepper@redhat.com>
5790
5791         [BZ #1302]
5792         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
5793         changed.
5794         (bitset_word_t): Renamed from bitset_word.  All uses changed.
5795
5796         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
5797
5798         [BZ #281]
5799         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
5800         * lib/regcomp.c: Remove unnecessary uses of
5801         unsigned RE_TRANSLATE_TYPE.
5802         * lib/regex_internal.h: Likewise.
5803         * lib/regex_internal.c: Likewise.
5804         * lib/regexec.c: Likewise.
5805         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
5806
5807         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
5808
5809         * lib/regexec.c (find_recover_state): Remove unnecessary
5810         initialization.
5811         (transit_state_bkref): Make DFA a const pointer.
5812         (get_subexp): Likewise.
5813         (check_arrival): Likewise.
5814         (update_cur_sifted_state): Likewise.
5815         (re_search_internal): Likewise.
5816         (prune_impossible_nodes): Likewise.
5817         (acquire_init_state_context): Likewise.
5818         (proceed_next_node): Likewise.
5819         (set_regs): Likewise.
5820         (free_fail_stack_return): Likewise.
5821         (check_arrival_expand_ecl): Mark DFA parameter as const.
5822         (check_arrival_expand_ecl_sub): Likewise.
5823         (check_subexp_limits): Likewise.
5824         (sub_epsilon_src_nodes):  Likewise.
5825         (add_epsilon_src_nodes):  Likewise.
5826         (merge_state_array): Likewise.
5827         (update_regs): Likewise.
5828         (build_trtable): Likewise.
5829         (sift_states_backward): Mark MCTX parameter as const.
5830         (build_sifted_states): Likewise.
5831         (update_cur_sifted_state): Likewise.
5832         (sift_states_mkref): Likewise.
5833         (check_arrival_expand_ecl): Mark eclosure as const.
5834         (check_dst_limits_calc_pos_1): Likewise.
5835         * lib/regex_internal.h (re_match_context_t): Make dfa a const
5836         pointer.
5837
5838         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
5839
5840         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
5841         (transit_state_sb): Likewise.
5842         (transit_state_mb): Likewise.
5843         (sift_states_iter_mb): Likewise.
5844         (check_arrival_add_next_nodes): Likewise.
5845         (check_node_accept_bytes): Change first parameter to pointer-to-const.
5846         [_LIBC] (re_search_2_stub): Use mempcpy.
5847
5848         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
5849         mbrtowc for very simple UTF-8 case.
5850
5851         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
5852         a pointer-to-const.
5853         (re_acquire_state_context): Likewise.
5854         * lib/regex_internal.h: Adjust prototypes.
5855
5856         * lib/regex.c: Prevent using C++ compilers.
5857
5858         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
5859         (re_acquire_state_context): Likewise.
5860
5861 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5862
5863         * modules/regex (Depends-on): Add ssize_t.
5864
5865 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5866
5867         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
5868         translation table.
5869
5870 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5871
5872         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
5873
5874 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
5875             Bruno Haible  <bruno@clisp.org>
5876
5877         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
5878         <sys/types.h> and <inttypes.h>.
5879
5880 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5881
5882         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
5883         `__error_t_defined', so argp.h will not typedef the former.
5884
5885 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
5886
5887         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
5888         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
5889         glibc names.  Even if glibc is changed to conform to POSIX, the
5890         traditional names will be available anyway, since regex depends on
5891         the extensions module.  Also, fix a longstanding typo in the
5892         implementation of Spencer ERE test #75 from grep 2.3.  Problems
5893         reported by Emanuele Giaquinta.  Also, change sense of cached
5894         variable, so that the message makes sense.
5895
5896 2006-03-24  Simon Josefsson  <jas@extundo.com>
5897
5898         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
5899         including some doc fixes.
5900         (base64_encode_alloc): Fix +1 bug on allocation failures.
5901
5902 2006-03-24  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5903
5904         * lib/base64.c (base64_encode): Do not read past end of array with
5905         unsanitized input on systems with CHAR_BIT > 8.
5906
5907 2006-03-24  Eric Blake  <ebb9@byu.net>
5908
5909         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
5910
5911 2006-03-22  Karl Berry  <karl@gnu.org>
5912
5913         * config/srclist.txt (*setenv.[ch]): get from coreutils.
5914         * config/srclistvars.sh (COREUTILS): new var.
5915
5916 2006-03-17  Jim Meyering  <jim@meyering.net>
5917
5918         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
5919         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
5920
5921 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5922
5923         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
5924         no longer needs it.  Instead, check that regoff_t is as least
5925         as wide as ptrdiff_t.
5926
5927         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
5928         so that our regex.h stays compatible with the installed regex.
5929         This is helpful for installers who configure --without-included-regex.
5930         Problem reported by Emanuele Giaquinta.
5931
5932 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5933
5934         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
5935         Typedef to long int, not to off_, as POSIX will likely change
5936         in that direction.
5937
5938 2006-03-15  Eric Blake  <ebb9@byu.net>
5939
5940         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
5941
5942 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
5943
5944         * lib/argp-help.c (validate_uparams): Fix typo
5945         * lib/argp-parse.c (argp_default_options): Consistently begin help
5946         messages with a lowercase letter.
5947
5948 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
5949
5950         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
5951         overrun buffers and shouldn't be used (much as gets shouldn't be
5952         used).
5953         * lib/time_r.c (asctime_r, ctime_r): Likewise.
5954
5955 2006-03-08  Simon Josefsson  <jas@extundo.com>
5956
5957         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
5958         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5959
5960 2006-03-08  Simon Josefsson  <jas@extundo.com>
5961
5962         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
5963         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5964
5965 2006-03-08  Simon Josefsson  <jas@extundo.com>
5966
5967         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
5968         signal that configure disabled the device.
5969
5970 2006-03-08  Simon Josefsson  <jas@extundo.com>
5971
5972         * build-aux/maint.mk: Fix refresh-po, to handle no translated
5973         languages.
5974
5975 2006-03-07  Simon Josefsson  <jas@extundo.com>
5976
5977         * modules/getopt (Depends-on): Add unistd.
5978
5979         * modules/unistd: New file.
5980
5981 2006-03-07  Simon Josefsson  <jas@extundo.com>
5982
5983         * modules/gc-random: New file.
5984
5985 2006-03-07  Simon Josefsson  <jas@extundo.com>
5986
5987         * m4/unistd_h.m4: New file.
5988
5989 2006-03-07  Simon Josefsson  <jas@extundo.com>
5990
5991         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
5992         test to be side-effect free by storing the result in the cache
5993         variable gl_cv_lib_readline, and moving the assignment of
5994         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
5995         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5996
5997 2006-03-07  Simon Josefsson  <jas@extundo.com>
5998
5999         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
6000         error on missing devices (the functions will return an error).
6001
6002         * m4/gc.m4: Move random stuff to gc-random.m4
6003
6004 2006-03-07  Simon Josefsson  <jas@extundo.com>
6005
6006         * lib/unistd_.h: New file.
6007
6008 2006-03-07  Simon Josefsson  <jas@extundo.com>
6009
6010         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
6011
6012 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6013
6014         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
6015         Problem reported by Juan Manuel Guerrero.
6016
6017 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6018
6019         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
6020         the unistd module.
6021         * lib/getlogin_r.c: Likewise.
6022         * lib/getlogin_r.h: Likewise.
6023         * lib/glob.c: Likewise.
6024         * lib/pagealign_alloc.c: Likewise.
6025         * lib/unistd_.h: Remove; no longer needed.
6026
6027 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6028
6029         * MODULES.html.sh (Support for systems lacking POSIX:2001):
6030         Add unistd.
6031         * modules/c-stack (Depends-on): Add unistd.
6032         * modules/getlogin_r: Likewise.
6033         * modules/glob: Likewise.
6034         * modules/pagealign_alloc: Likewise.
6035         * modules/unistd (Files): Remove lib/unistd_.h.
6036         (EXTRA_DIST): Remove.
6037         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
6038         need unistd_.h.
6039         (MOSTLYCLEANFILES): Remove unistd.h-t.
6040
6041 2006-03-03  Simon Josefsson  <jas@extundo.com>
6042
6043         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
6044
6045 2006-03-03  Simon Josefsson  <jas@extundo.com>
6046
6047         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
6048         libidn and bison.
6049
6050 2006-03-03  Simon Josefsson  <jas@extundo.com>
6051
6052         * build-aux/maint.mk: Add indent target.
6053
6054 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
6055
6056         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
6057         our replacement poll.h in any case, to avoid a differing
6058         declaration from a system header.  Seen on AIX.
6059
6060 2006-03-01  Simon Josefsson  <jas@extundo.com>
6061
6062         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
6063         <kasal@ucw.cz>.
6064
6065 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
6066
6067         * modules/gettime (Depends-on): Add extensions module.
6068         * modules/nanosleep (Depends-on): Likewise.
6069         * modules/settime (Depends-on): Likewise.
6070
6071 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
6072
6073         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
6074         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
6075         pedantically.
6076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6077         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
6078
6079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
6080         not "==".  Reported by Ralf Wildenhues.
6081
6082 2006-03-01  Karl Berry  <karl@gnu.org>
6083
6084         * doc/Copyright/request-*: new files, synced from gnuorg.
6085
6086 2006-03-01  Karl Berry  <karl@gnu.org>
6087
6088         * config/srclist.txt (Copyright/*): new entries.
6089
6090 2006-02-28  Simon Josefsson  <jas@extundo.com>
6091
6092         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
6093
6094 2006-02-27  Simon Josefsson  <jas@extundo.com>
6095
6096         * lib/base64.h: Indent #define's.  From Jim Meyering
6097         <jim@meyering.net>.
6098
6099 2006-02-27  Jim Meyering  <jim@meyering.net>
6100
6101         Revert the change of 2006-02-24, so these files can continue
6102         to be sync'd from gettext.
6103         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
6104         of `config.h'.
6105
6106 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6107
6108         * modules/intprops: New file.
6109         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
6110         Add intprops.
6111         * modules/getloadavg (Files): Remove lib/intprops.h.
6112         (Depends-on): Add intprops.
6113         * modules/human: Likewise.
6114         * modules/inttostr: Likewise.
6115         * modules/openat: Likewise.
6116         * modules/sig2str: Likewise.
6117         * modules/userspec: Likewise.
6118         * modules/utimecmp: Likewise.
6119         * modules/xnanosleep: Likewise.
6120         * modules/xstrtol: Likewise.
6121
6122 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
6123
6124         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
6125         * modules/lock-tests (TESTS): Use $(EXEEXT).
6126         * modules/tls-tests: Likewise.
6127         * modules/argp-tests: Likewise.
6128         (check_PROGRAMS): New var, replacing...
6129         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
6130
6131 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6132
6133         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
6134         `config.h'.
6135
6136 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6137
6138         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
6139
6140 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6141
6142         Sync from coreutils.
6143         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
6144         gl_CHDIR_SAFER.
6145
6146 2006-02-22  Jim Meyering  <jim@meyering.net>
6147
6148         Sync from coreutils.
6149         * m4/chdir-safer.m4: New file.
6150
6151 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6152
6153         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
6154         AT_FDCWD exceeds INT_MAX.
6155         * lib/openat.h (AT_FDCWD): Likewise.
6156
6157 2006-02-17  Eric Blake  <address@hidden>
6158
6159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
6160
6161 2006-02-16  Simon Josefsson  <jas@extundo.com>
6162
6163         * modules/getaddrinfo (Depends-on): Add sys_socket.
6164
6165 2006-02-15  Simon Josefsson  <jas@extundo.com>
6166
6167         * build-aux/maint.mk: Add dsyntax-check rule.
6168
6169 2006-02-15  Eric Blake  <ebb9@byu.net>
6170
6171         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
6172         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
6173         'present but cannot compile' warnings on cygwin.
6174         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
6175         use ws2tcpip.h if sys/socket.h works.
6176         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
6177         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
6178
6179 2006-02-14  Simon Josefsson  <jas@extundo.com>
6180
6181         * modules/maintainer-makefile (Files): Rename.
6182
6183         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
6184         and (the local) Makefile.cfg to maint-cfg.mk.
6185
6186         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
6187         to the latter.
6188
6189         * modules/maintainer-makefile: New module.
6190
6191         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
6192         severaly stripped to make it possible to build it up from scratch
6193         with reliable tests.
6194
6195         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
6196         fixes to permit overriding the default actions when configure and
6197         makefile are not available.
6198
6199 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6200
6201         Sync from coreutils.
6202         * modules/lstat (Depends-on): Don't depend on xalloc.
6203         (License): Change from GPL to LGPL, since this is now simply a
6204         replacement for a libc function.
6205
6206 2006-02-14  Jim Meyering  <jim@meyering.net>
6207
6208         Sync from coreutils.
6209
6210         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
6211         failure on deficient systems, and simplify gnulib lgpl dependencies.
6212         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
6213         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
6214
6215         * lib/xalloc-die.c: Remove unused definition of N_.
6216
6217 2006-02-14  Jim Meyering  <jim@meyering.net>
6218
6219         Sync from coreutils.
6220         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
6221         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
6222         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
6223         double-quote uses of that variable, to accommodate the rare case in
6224         which getmntent is available in none of the libraries checked.  This
6225         happens at least on FreeBSD 5.0.
6226
6227 2006-02-13  Simon Josefsson  <jas@extundo.com>
6228
6229         * gnulib-tool (Usage): Fix --import, from
6230         karl@freefriends.org (Karl Berry).
6231
6232 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
6233
6234         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
6235
6236 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
6237
6238         * lib/argp-namefrob.h: Restore changes accidentally lost during the
6239         "autoupdate" on 2005-12-12.
6240
6241 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6242
6243         * modules/closeout (Depends-on): Remove atexit.
6244
6245 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6246
6247         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
6248         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
6249
6250 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
6251
6252         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
6253         __EXTENSIONS__ if this causes compilation to fail.  Problem
6254         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
6255         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
6256
6257 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6258
6259         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
6260         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
6261         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
6262         All uses changed.
6263
6264 2006-01-26  Simon Josefsson  <jas@extundo.com>
6265
6266         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
6267         prototype is visible on mingw32.
6268
6269         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
6270         for mingw32.
6271
6272         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
6273         mingw32).
6274
6275 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
6276
6277         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
6278         attempt to open for write; this always fails, at least on POSIX
6279         hosts.  This reinstates the 2006-01-09 change, which was
6280         inadvertently removed.
6281
6282 2006-01-26  Bruno Haible  <bruno@clisp.org>
6283
6284         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
6285         Reported by Paul Eggert.
6286
6287 2006-01-26  Bruno Haible  <bruno@clisp.org>
6288             Paul Eggert  <eggert@cs.ucla.edu>
6289
6290         * lib/stdbool_.h (_Bool)
6291         [(! (defined __cplusplus || defined __BEOS__)
6292           && !defined __GNUC__
6293           && !(defined __HP_cc || defined __xlc__
6294                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
6295                || defined __sgi))]:
6296         #define to signed char in these cases too; this simplifies
6297         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
6298         etc., separately) and makes it more conservative.
6299
6300 2006-01-25  Simon Josefsson  <jas@extundo.com>
6301
6302         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
6303         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
6304         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
6305
6306 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6307
6308         * lib/argp-namefrob.h: Bugfix. Remove stray #
6309
6310 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6311
6312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
6313         so that we test the test.
6314         Check for yet another HP-UX cc bug involving *bool |= bool.
6315
6316 2006-01-25  Karl Berry  <karl@gnu.org>
6317
6318         * config/srclist.txt (vasnprintf.c): sync lost.
6319
6320 2006-01-25  Jim Meyering  <jim@meyering.net>
6321
6322         Sync from the stable (b5) branch of coreutils:
6323
6324         * lib/fts.c (fts_children): Don't let close() clobber errno from
6325         failed fchdir().
6326
6327         * lib/fts.c (fts_stat): When following a symlink-to-directory,
6328         don't necessarily interpret stat-fails+lstat-succeeds as indicating
6329         a dangling symlink.  That can also happen at least for ELOOP.
6330         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
6331         FYI, this bug predates the inclusion of fts.c in coreutils.
6332
6333         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
6334         in their own block, so pre-c99 compilers don't object.
6335
6336         Avoid the double-free (first in fts_read, second in fts_close) that
6337         would occur when an `active' directory is made inaccessible (e.g.,
6338         via chmod a-x) during a traversal.
6339         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
6340         before returning.  Reproduce this failure by
6341         mkdir -p a/b; cd a; chmod a-x . b
6342         Reported by Stavros Passas.
6343
6344 2006-01-25  Jim Meyering  <jim@meyering.net>
6345
6346         * lib/fileblocks.c: Remove more useless parentheses.
6347         * lib/readutmp.h: Likewise.
6348
6349 2006-01-25  Bruno Haible  <bruno@clisp.org>
6350
6351         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
6352         warnings.
6353         Reported by Paul Eggert.
6354
6355 2006-01-25  Bruno Haible  <bruno@clisp.org>
6356
6357         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
6358         rid of a trap command. For Solaris sh.
6359         Reported by Mark D. Baushke <mdb@gnu.org>.
6360
6361 2006-01-24  Simon Josefsson  <jas@extundo.com>
6362
6363         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
6364         Bruno.
6365
6366 2006-01-24  Karl Berry  <karl@gnu.org>
6367
6368         * config/srclist.txt (argp-namefrob.h): sync lost.
6369
6370 2006-01-24  Jim Meyering  <jim@meyering.net>
6371
6372         * modules/openat (Files): Add lib/intprops.h.
6373         From Mark D. Baushke.
6374
6375 2006-01-24  Jim Meyering  <jim@meyering.net>
6376
6377         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
6378         Reported by Mark D. Baushke.
6379
6380 2006-01-24  Jim Meyering  <jim@meyering.net>
6381
6382         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
6383
6384 2006-01-24  Bruno Haible  <bruno@clisp.org>
6385
6386         * modules/strnlen (Maintainer): Change from glibc to all.
6387
6388 2006-01-24  Bruno Haible  <bruno@clisp.org>
6389
6390         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
6391         Patch by Paul Eggert.
6392
6393 2006-01-24  Bruno Haible  <bruno@clisp.org>
6394
6395         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
6396         already has it.
6397         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
6398         2005-11-26.
6399
6400         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
6401         'signed char' to avoid problems with the built-in _Bool type.
6402         Reported by Paul Eggert on 2005-11-26.
6403
6404 2006-01-24  Bruno Haible  <bruno@clisp.org>
6405
6406         * gnulib-tool (func_import): Avoid constructing complicated sed
6407         expressions inside backquote.
6408         Report and solution by Mark D. Baushke <mdb@gnu.org>.
6409
6410 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
6411
6412         These changes imported from libc.
6413         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
6414         test and two separate function calls.
6415         * lib/strndup.c (__strndup): Add libc_hidden_def.
6416
6417 2006-01-23  Simon Josefsson  <jas@extundo.com>
6418
6419         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
6420         Remove the test_*_SOURCES variable: automake infers it by default.
6421         * modules/tls-tests: Likewise.
6422
6423 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6424
6425         Work around porting bugs reported by Dieter in
6426         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
6427         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
6428         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
6429         Include "getopt.h" first, to check interface.
6430         (getenv): Declare only if defined HAVE_DECL_GETENV &&
6431         !HAVE_DECL_GETENV.
6432         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
6433         (__strndup): Revert to K&R-style function dfns, the glibc style.
6434         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
6435         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
6436         Include strnlen.h first, to get prototype properly.
6437         (strnlen): Renamed from __strnlen.
6438         Remove weak alias.
6439
6440 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6441
6442         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
6443
6444 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6445
6446         * config/srclist.txt: Adjust to reflect glibc reorganization.
6447         This affects only comments.
6448
6449 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
6450
6451          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
6452          Reported by Bruce Korb <bkorb@gnu.org>.
6453
6454 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
6455
6456         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
6457         to pacify gcc -Wswitch-default.
6458
6459 2006-01-22  Bruno Haible  <bruno@clisp.org>
6460
6461         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
6462         temporary buffer for sprintf, take into account the precision also
6463         for 'd', 'i', 'u', 'o', 'x', 'X'.
6464
6465 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
6466
6467         * modules/argp-tests: New module
6468         * tests/test-argp.c: New file
6469         * tests/test-argp-2.sh: New file
6470
6471 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
6472
6473         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
6474         (__argp_base_name): Removed
6475         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
6476         typo.
6477         (__argp_base_name): Provide macro definition or extern declaration
6478         depending on the configuration
6479
6480 2006-01-20  Simon Josefsson  <jas@extundo.com>
6481
6482         * modules/inet_ntop (Depends-on): Depend on sys_socket.
6483
6484 2006-01-20  Simon Josefsson  <jas@extundo.com>
6485
6486         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
6487
6488 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
6489
6490         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
6491         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
6492         Suggested by Bruno Haible.
6493
6494 2006-01-20  Karl Berry  <karl@gnu.org>
6495
6496         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
6497         until changes propagate, I guess.
6498
6499 2006-01-19  Simon Josefsson  <jas@extundo.com>
6500
6501         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
6502
6503 2006-01-19  Simon Josefsson  <jas@extundo.com>
6504
6505         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
6506
6507 2006-01-19  Simon Josefsson  <jas@extundo.com>
6508
6509         * gnulib-tool: Set check_PROGRAMS.
6510
6511         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
6512         modules/des-tests, modules/gc-arcfour-tests,
6513         modules/gc-arctwo-tests, modules/gc-des-tests,
6514         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
6515         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
6516         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
6517         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
6518         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
6519         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
6520         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
6521         test_*_SOURCES.
6522
6523 2006-01-18  Simon Josefsson  <jas@extundo.com>
6524
6525         * modules/socklen (Depends-on): Depend on sys_socket.
6526
6527 2006-01-18  Simon Josefsson  <jas@extundo.com>
6528
6529         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
6530         modules/des-tests, modules/gc-arcfour-tests,
6531         modules/gc-arctwo-tests, modules/gc-des-tests,
6532         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
6533         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
6534         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
6535         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
6536         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
6537         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
6538         $(EXEEXT) to automake TESTS variable, for mingw32.
6539
6540 2006-01-17  Simon Josefsson  <jas@extundo.com>
6541
6542         * modules/socklen (Include): Need sys/socket.h.
6543
6544 2006-01-17  Bruno Haible  <bruno@clisp.org>
6545
6546         * modules/ssize_t (Include): Add <sys/types.h>.
6547
6548 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
6549
6550         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
6551         it's not portable and it doesn't work with cross-compiles.
6552         Problem reported by Bruno Haible.  Fix missing-$ typo in
6553         'test "gl_cv_ignore_unused_libraries" ...' that prevented
6554         -zignore from being used with Sun's C compiler.
6555
6556 2006-01-12  Simon Josefsson  <jas@extundo.com>
6557
6558         * lib/base64.c: Fix warning, reported by Bruno Haible
6559         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
6560
6561 2006-01-12  Bruno Haible  <bruno@clisp.org>
6562
6563         * modules/ldd: New file.
6564         * build-aux/ldd.sh.in: New file.
6565         * MODULES.html.sh (Support for building libraries and executables): Add
6566         ldd.
6567
6568 2006-01-12  Bruno Haible  <bruno@clisp.org>
6569
6570         * m4/ldd.m4: New file.
6571
6572 2006-01-12  Bruno Haible  <bruno@clisp.org>
6573
6574         * gnulib-tool (func_import, func_create_testdir): Don't go into an
6575         endless loop while replacing $auxdir with build-aux.
6576
6577 2006-01-11  Simon Josefsson  <jas@extundo.com>
6578
6579         * lib/stdint_.h (SIZE_MAX): Add missing (.
6580
6581 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6582
6583         Sync from coreutils.
6584         * lib/md5.c: Fix commentary typos.
6585         (alignof, UNALIGNED_P): No need for a GCC-specific version.
6586         * lib/md5.h (__attribute__): Remove; unused.
6587         * lib/sha1.c: Fix commentary to match md5 better.
6588         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
6589         so that we don't need to worry about alignment.  All uses changed.
6590         This merges the 2005-10-28 md5 change into sha1.
6591
6592 2006-01-11  Jim Meyering  <jim@meyering.net>
6593
6594         Sync from coreutils.
6595         * lib/md5.c (OP): Fix spacing.
6596
6597 2006-01-11  Bruno Haible  <bruno@clisp.org>
6598
6599         Ensure automatic ordering between gl_LOCK and gl_ARGP.
6600         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
6601         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
6602
6603 2006-01-11  Bruno Haible  <bruno@clisp.org>
6604
6605         Ensure automatic ordering between gl_LOCK and gl_ARGP.
6606         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
6607         the "early" section as well.
6608
6609 2006-01-11  Bruno Haible  <bruno@clisp.org>
6610
6611         Avoid "ar: no archive members specified" error on MacOS X.
6612         * gnulib-tool (func_modules_add_dummy): New function.
6613         (func_import, func_create_testdir): Invoke it.
6614
6615 2006-01-11  Bruno Haible  <bruno@clisp.org>
6616
6617         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
6618         with $auxdir in AC_CONFIG_FILES statements.
6619
6620 2006-01-11  Bruno Haible  <bruno@clisp.org>
6621
6622         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6623         Initialize also noinst_HEADERS to empty.
6624
6625 2006-01-11  Bruno Haible  <bruno@clisp.org>
6626
6627         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
6628         variables.
6629         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
6630         autoreconf.
6631
6632 2006-01-11  Bruno Haible  <bruno@clisp.org>
6633
6634         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
6635         overridable by the user.
6636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6637
6638 2006-01-10  Simon Josefsson  <jas@extundo.com>
6639
6640         * modules/sys_socket: New file.
6641
6642 2006-01-10  Simon Josefsson  <jas@extundo.com>
6643
6644         * m4/sys_socket_h.m4: New file.
6645
6646 2006-01-10  Simon Josefsson  <jas@extundo.com>
6647
6648         * lib/socket_.h: New file.
6649
6650 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6651
6652         * modules/readutmp (Maintainer): Add myself.
6653
6654 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6655
6656         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
6657         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
6658         People who are still concerned with buggy memcmp implementations
6659         can invoke gl_FUNC_MEMCMP themselves.
6660
6661 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         * lib/regex_internal.h (BITSET_WORD_BITS):
6664         Work around a bug in 64-bit PGC (before version 6.1-2), where the
6665         preprocessor mishandles large unsigned values as if they were signed.
6666         Problem reported by Claudio Fontana in
6667         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
6668
6669 2006-01-10  Jim Meyering  <jim@meyering.net>
6670
6671         Avoid the double-free (first in fts_read, second in fts_close) that
6672         would occur when an `active' directory is made inaccessible (e.g.,
6673         via chmod a-x) during a traversal.
6674         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
6675         before returning.  Reproduce this failure by
6676         mkdir -p a/b; cd a; chmod a-x . b
6677         Reported by Stavros Passas.
6678
6679         Sync from coreutils.
6680         * lib/sha1.c: Tweak grammar in a comment.
6681
6682 2006-01-10  Jim Meyering  <jim@meyering.net>
6683
6684         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
6685         Patch by Joerg Sonnenberger.
6686
6687 2006-01-10  Bruno Haible  <bruno@clisp.org>
6688
6689         * modules/readutmp: Depend on module free.
6690         * modules/strtok_r: Depend on module restrict.
6691
6692 2006-01-10  Bruno Haible  <bruno@clisp.org>
6693
6694         * modules/gettext (configure.ac): Add an invocation of
6695         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
6696
6697 2006-01-10  Bruno Haible  <bruno@clisp.org>
6698
6699         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
6700         Reported by Werner Lemberg <wl@gnu.org>.
6701
6702 2006-01-10  Bruno Haible  <bruno@clisp.org>
6703
6704         * lib/localcharset.c: Update from GNU gettext.
6705
6706 2006-01-10  Bruno Haible  <bruno@clisp.org>
6707
6708         * lib/argp.h (__const): Remove macro. Use const instead.
6709         * lib/argp-fmtstream.h (__const): Likewise.
6710         * lib/glob_.h (__const): Remove macro.
6711         * lib/glob-libc.h: Use const instead of __const.
6712
6713 2006-01-10  Bruno Haible  <bruno@clisp.org>
6714
6715         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
6716         variable.
6717         Needed to avoid an automake error regarding the 'gettext' module.
6718
6719 2006-01-09  Simon Josefsson  <jas@extundo.com>
6720
6721         * modules/inet_ntop (Depends-on): Add restrict.
6722
6723 2006-01-09  Simon Josefsson  <jas@extundo.com>
6724
6725         * modules/gc-rijndael-tests (License): Put under LGPL.
6726
6727         * modules/gc-des-tests (License): Likewise.
6728
6729         * modules/gc-arcfour-tests (License): Likewise.
6730
6731         * modules/gc-arctwo-tests (License): Likewise.
6732
6733         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
6734
6735         * modules/gc-hmac-sha1-tests (Files): Likewise.
6736
6737         * modules/gc-hmac-md5-tests (License): Likewise.
6738
6739         * modules/gc-sha1-tests (License): Likewise.
6740
6741         * modules/gc-md5-tests (License): Likewise.
6742
6743         * modules/gc-md4-tests (License): Likewise.
6744
6745         * modules/gc-md2-tests (License): Likewise.
6746
6747         * modules/gc-tests (License): Likewise.
6748
6749         * modules/des-tests (License): Likewise.
6750
6751         * modules/md4-tests (License): Likewise.
6752
6753         * modules/md2-tests (License): Likewise.
6754
6755 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6756
6757         Sync from coreutils:
6758
6759         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
6760         * modules/lib-ignore: New file.
6761         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
6762         chdir-safer.m4, lchmod.m4.
6763         * modules/openat: Add mkdirat.c, openat-priv.h.
6764
6765 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6766
6767         Sync from coreutils.
6768         * m4/lib-ignore.m4: New file.
6769         * m4/lchmod.m4: New file.
6770
6771 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6772
6773         Sync from coreutils.
6774         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
6775         for write access: POSIX says that must fail.
6776         * lib/fts.c (diropen): Likewise.
6777         * lib/save-cwd.c (save_cwd): Likewise.
6778         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
6779         well, for minor improvements on hosts that lack O_DIRECTORY.
6780         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
6781         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
6782         Fall back on chown if open failed with EACCES.
6783
6784         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
6785         Report an error at compile-time if only a 1-second nominal clock
6786         resolution is found.
6787
6788         * lib/lchmod.h: New file.
6789         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
6790         (make_dir_parents): Use lchown rather than chown, and
6791         lchmod rather than chmod.
6792
6793         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
6794         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
6795         "proc" reported by n0dalus.
6796
6797         * lib/mountlist.c: Include <limits.h>.
6798         (dev_from_mount_options)
6799         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
6800         New function.  It no longer assumes "dev=" has the System V meaning
6801         on Linux (since it doesn't).  It also parses "dev=" more carefully.
6802         (read_file_system_list)
6803         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
6804         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
6805         dev= in that case.
6806
6807         * lib/posixtm.h (PDS_PRE_2000): New macro.
6808         * lib/posixtm.c (year): Arg is now syntax_bits rather than
6809         allow_century.  All usages changed.  Reject dates outside the range
6810         1969-1999 if PDS_PRE_2000 is used.
6811
6812 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6813
6814         Sync from coreutils.
6815         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
6816         (Time of day items): Mention the possibility of leap seconds.
6817         Problem reported by Dr. David Alan Gilbert.
6818
6819 2006-01-09  Jim Meyering  <jim@meyering.net>
6820
6821         Sync from coreutils.
6822
6823         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
6824
6825         * lib/chdir-safer.h, chdir-safer.c: New files.
6826
6827         * lib/modechange.c (mode_compile): Reject an invalid mode string
6828         that starts with an octal digit.  From Andreas Gruenbacher.
6829
6830         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
6831         and dup to open_safer and dup_safer, respectively.
6832         (openat_permissive): Fix typo in comment.
6833
6834         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
6835         "gettext.h"; either no longer needed or are guaranteed by openat.h.
6836         (_): Remove; no longer needed.
6837         (openat): Renamed from rpl_openat; no need for rpl_openat
6838         since openat.h renames openat for us.
6839         Replace most of the body with a call to openat_permissive,
6840         to avoid duplicate code.
6841         Port to (probably hypothetical) environments were mode_t is
6842         wider than int.
6843         (openat_permissive): Require mode arg, so that we can check
6844         types better.  Put it just after flags.  Change cwd failure
6845         indicator from pointer-to-bool to pointer-to-errno-value.
6846         All callers changed.
6847         Invoke openat_save_fail and/or openat_restore_fail if
6848         cwd_errno is null, so that openat can call us.
6849         (openat_permissive, fdopendir, fstatat, unlinkat):
6850         Simplify errno handling to avoid some duplicate code,
6851         as it's OK to set errno on success.
6852         * lib/openat.h: Revamp code so that function macros depend on
6853         __OPENAT_PREFIX only, not also on AT_FDCWD.
6854         (openat_ro): Remove.  Caller changed to use openat_permissive.
6855         (openat_permissive): Now a macro, if not a function.
6856         (openat_restore_fail, openat_save_fail): Now always functions,
6857         since mkdirat needs them even if __OPENAT_PREFIX is defined.
6858
6859         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
6860         and openat.c.
6861         * lib/mkdirat.c: Include openat-priv.h.
6862         Remove definitions of macros defined therein.
6863         * lib/openat.c: Likewise.
6864
6865         * lib/mkdirat.c (mkdirat): New file and function.
6866         * lib/openat.h (mkdirat): Declare.
6867
6868         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
6869
6870         * lib/openat.h (openat_permissive): Declare.
6871         (openat_ro): Define.
6872
6873         * lib/openat.c (EXPECTED_ERRNO): New macro.
6874         (openat_permissive): New function -- used in remove.c rewrite.
6875         (all functions): Set errno just before returning, only if there
6876         was an actual failure.
6877         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
6878
6879         Emulate openat-family functions using Linux's procfs, if possible.
6880         Idea and some code based on Ulrich Drepper's glibc changes.
6881
6882         * lib/openat.c: (BUILD_PROC_NAME): New macro.
6883         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
6884         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
6885         before falling back on save_cwd and restore_cwd.
6886         (fdopendir, fstatat, unlinkat): Likewise.
6887
6888         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
6889         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
6890
6891         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
6892         as second argument to va_arg.  Otherwise, some versions of gcc
6893         warn that `if this code is reached, the program will abort'.
6894
6895 2006-01-09  Jim Meyering  <jim@meyering.net>
6896
6897         Sync from coreutils.
6898         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
6899         Require openat-priv.h.
6900
6901 2006-01-09  Bruno Haible  <bruno@clisp.org>
6902
6903         * modules/strnlen (Include): Use strnlen.h.
6904
6905 2006-01-09  Bruno Haible  <bruno@clisp.org>
6906
6907         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
6908
6909 2006-01-09  Bruno Haible  <bruno@clisp.org>
6910
6911         * lib/sysexit_.h (EX_OK): New macro.
6912         Suggested by Martin Lambers <marlam@marlam.de>.
6913
6914 2006-01-09  Bruno Haible  <bruno@clisp.org>
6915
6916         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
6917         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
6918
6919 2006-01-09  Bruno Haible  <bruno@clisp.org>
6920
6921         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
6922         numbers.
6923
6924 2006-01-09  Bruno Haible  <bruno@clisp.org>
6925
6926         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
6927         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
6928         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
6929         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
6930
6931 2006-01-09  Bruno Haible  <bruno@clisp.org>
6932
6933         * build-aux/javacomp.sh.in: New file, moved from lib/.
6934         * modules/javacomp-script (Files): Update.
6935         (configure.ac): Add AC_CONFIG_FILES invocation.
6936         (EXTRA_DIST): Remove variable.
6937
6938         * build-aux/javaexec.sh.in: New file, moved from lib/.
6939         * modules/javaexec (Files): Update.
6940         (configure.ac): Add AC_CONFIG_FILES invocation.
6941         (EXTRA_DIST): Remove javaexec.sh.in.
6942
6943         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
6944         * modules/csharpcomp-script (Files): Update.
6945         (configure.ac): Add AC_CONFIG_FILES invocation.
6946         (EXTRA_DIST): Remove variable.
6947
6948         * build-aux/csharpexec.sh.in: New file, moved from lib/.
6949         * modules/csharpexec (Files): Update.
6950         (configure.ac): Add AC_CONFIG_FILES invocation.
6951         (EXTRA_DIST): Remove csharpexec.sh.in.
6952
6953 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
6954
6955         Sync from coreutils.
6956
6957         Add POSIX ACL support
6958         * lib/acl.h (copy_acl, set_acl): Add declarations.
6959         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
6960         systems other than Linux.
6961         (chmod_or_fchmod): New function: use fchmod when possible,
6962         and chmod otherwise.
6963         (file_has_acl): Add a POSIX ACL implementation, with a
6964         Linux-specific subcase.
6965         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
6966         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
6967         acls are unsupported.
6968         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
6969         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
6970         are unsupported.
6971
6972 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
6973
6974         Sync from coreutils.
6975         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
6976
6977 2006-01-07  Bruno Haible  <bruno@clisp.org>
6978
6979         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
6980         gl_EARLY.
6981
6982 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6983
6984         * lib/strftime.c (tzname): Don't declare if it is already #defined.
6985         Problem reported for Mingw by Mark Junker.
6986
6987 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6988
6989         * README: Gnulib normally doesn't generate a tarball.
6990
6991 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6992
6993         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
6994         long int, not int, for nanosecond counts, so that people who are
6995         used to POSIX struct timespec won't be surprised.  Reported by Jim
6996         Meyering.
6997
6998 2005-12-28  Bruno Haible  <bruno@clisp.org>
6999
7000         * build-aux/config.rpath: Update from GNU gettext.
7001
7002 2005-12-16  Jim Meyering  <jim@meyering.net>
7003
7004         * modules/fprintftime: New module.
7005         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
7006
7007 2005-12-16  Jim Meyering  <jim@meyering.net>
7008
7009         * m4/fprintftime.m4: New file.
7010
7011 2005-12-16  Jim Meyering  <jim@meyering.net>
7012
7013         * lib/fprintftime.c, fprintftime.h: New files.
7014
7015 2005-12-15  Simon Josefsson  <jas@extundo.com>
7016
7017         * modules/socklen (configure.ac): Fix M4 macro name, to align with
7018         new m4/socklen.m4.
7019
7020 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7021
7022         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
7023         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
7024
7025 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7026
7027         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
7028         * lib/argp-help.c (fill_in_uparams): Check if the constructed
7029         struct uparams is valid. Fall back to the default values if it is
7030         not.
7031
7032 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7033
7034         * modules/argp (Files): Add argp-pin.c
7035         (Depends-on): dirname
7036         (lib_SOURCES): Add argp-pin.c
7037
7038 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7039
7040         * m4/argp.m4:  Check if program_invocation_name and
7041         program_invocation_short_name are declared and define appropriate
7042         macros if they are not.
7043
7044 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7045
7046         * lib/argp-help.c (__argp_base_name): New function
7047         (__argp_short_program_name): Rewrite using __argp_base_name
7048         * lib/argp-namefrob.h: Define program_invocation_name and
7049         program_invocation_short_name if requested
7050         (__argp_base_name): Add prototype
7051         * lib/argp-parse.c (argp_def): Use gettext wrappers
7052         (argp_default_parser): Use __argp_base_name
7053         * lib/argp-pin.c: New file. Defines program_invocation_name and
7054         program_invocation_short_name on systems that lack them.
7055
7056 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
7057
7058         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
7059         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
7060         porting problem reported by Georg Schwarz in
7061         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
7062
7063 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
7064
7065         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
7066         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
7067         porting problem reported by Georg Schwarz in
7068         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
7069
7070 2005-12-05  Bruno Haible  <bruno@clisp.org>
7071
7072         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
7073         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
7074         Reported by Mark Junker <mjscod@gmx.de>.
7075
7076 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7077
7078         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
7079         Use implementation from Albert Chin, with some
7080         comments/corrections by Stepan Kasal and myself.
7081
7082 2005-12-02  Bruno Haible  <bruno@clisp.org>
7083
7084         * gnulib-tool (func_import): Accept GPLed build tool modules when
7085         --lgpl is given.
7086         * modules/csharpcomp-script: New file.
7087         * modules/csharpcomp: Depend on it.
7088         * modules/javacomp-script: New file.
7089         * modules/javacomp: Depend on it.
7090         Suggested by Simon Josefsson.
7091
7092 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7093
7094         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
7095         statement, to work around an HP-UX 10.20 compiler bug reported by
7096         Peter O'Gorman.
7097
7098 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
7099
7100         * modules/savedir (Depends-on): Add openat.
7101
7102 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
7103
7104         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
7105         (uintmax_t) [defined uintmax_t]: Do not declare.
7106         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
7107         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
7108         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
7109         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
7110         sake of portability to weird hosts that C allows (though we don't
7111         know of any practical examples).
7112
7113         * lib/savedir.h (fdsavedir): New decl.
7114         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
7115         contains most of the former guts of savedir.
7116         (savedir): Use savedirstream.
7117         Include "openat.h".
7118
7119 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7120
7121         * modules/obstack (Files): Add m4/ulonglong.m4.
7122         Problem reported by Davide Angelocola.
7123
7124 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7125
7126         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
7127         coreutils no longer futzes with rounding modes.
7128
7129 2005-11-14  Jim Meyering  <jim@meyering.net>
7130
7131         * lib/mkstemp-safer.c: Include <config.h>, required for possible
7132         replacement of mkstemp.
7133
7134 2005-11-10  Simon Josefsson  <jas@extundo.com>
7135
7136         * lib/readline.c: Remove EOL.
7137
7138 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7139
7140         * modules/gethrxtime (Depends-on): Add gettime.
7141
7142 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7143
7144         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
7145         or gettimeofday; no longer needed.
7146
7147 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7148
7149         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
7150         time business.
7151         (gethrxtime) [! (HAVE_NANOUPTIME
7152         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
7153         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
7154         our own approximation.
7155
7156 2005-11-08  Eric Blake  <ebb9@byu.net>
7157
7158         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
7159
7160 2005-11-08  Eric Blake  <ebb9@byu.net>
7161
7162         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
7163
7164 2005-11-04  Bruno Haible  <bruno@clisp.org>
7165
7166         * gnulib-tool: Implement --update mode.
7167
7168 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7169
7170         Fix porting problem reported by Theodoros V. Kalamatianos.
7171         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
7172         Don't assume that futimes failing means we must fail.
7173
7174 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7175
7176         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
7177         variables to suggest the intended function of the PATH_MAX check.
7178
7179 2005-10-30  Kean Johnston  <jkj@sco.com>
7180
7181         Trivial changes to support SCO systems.
7182         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
7183         as PATH_MAX.
7184         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
7185         where __ptr is null when no I/O is pending.
7186
7187 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
7188
7189         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
7190         leave errno alone.  Problem reported by Dmitry V. Levin.
7191
7192 2005-10-28  Simon Josefsson  <jas@extundo.com>
7193
7194         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
7195         Test more.
7196
7197         * tests/test-gc-md2.c, tests/test-md2.c: New files.
7198
7199         * modules/md2, modules/md2-tests: New files.
7200
7201 2005-10-28  Simon Josefsson  <jas@extundo.com>
7202
7203         * m4/inet_ntop.m4: More tests.
7204
7205         * m4/gc-md2.m4, md2.m4: New file.
7206
7207 2005-10-28  Simon Josefsson  <jas@extundo.com>
7208
7209         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
7210         "restrict" keywords, as per POSIX.  Protect the function
7211         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
7212         Don't use K&R prototypes.  Check the sprintf return values.
7213         Re-define EAFNOSUPPORT if not present.  Indent.
7214
7215         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
7216         suggested by Bruno Haible <bruno@clisp.org>.
7217
7218         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
7219
7220         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
7221
7222         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
7223         libgcrypt).
7224
7225         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
7226
7227         * lib/md2.h, md2.c: New files.
7228
7229 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
7230
7231         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
7232         errno alone.  Problem reported by Frederic Jolliton.
7233
7234 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7235
7236         * modules/verify (License): Change from GPL to LGPL.  This is a
7237         tiny module and there are apparently near-equivalents that are
7238         under the BSD license.
7239
7240 2005-10-24  Simon Josefsson  <jas@extundo.com>
7241
7242         * modules/sha1: Relicense to LGPL.
7243
7244 2005-10-24  Simon Josefsson  <jas@extundo.com>
7245
7246         * lib/md4.h: Shrink buffer size, now that we changed the type.
7247
7248 2005-10-23  Simon Josefsson  <jas@extundo.com>
7249
7250         * gnulib-tool (func_import): Fix --tests-base.
7251
7252 2005-10-22  Simon Josefsson  <jas@extundo.com>
7253
7254         * modules/arcfour (Depends-on): Need stdint.
7255
7256 2005-10-22  Simon Josefsson  <jas@extundo.com>
7257
7258         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
7259         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
7260
7261 2005-10-22  Simon Josefsson  <jas@extundo.com>
7262
7263         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
7264         suggested by Bruno Haible <bruno@clisp.org>.
7265
7266 2005-10-22  Simon Josefsson  <jas@extundo.com>
7267
7268         * lib/crc.h: Include stddef.h, for size_t.
7269
7270 2005-10-22  Simon Josefsson  <jas@extundo.com>
7271
7272         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
7273         arcfour_context struct (simplify test vector testing in GNU
7274         Shishi).
7275
7276 2005-10-21  Simon Josefsson  <jas@extundo.com>
7277
7278         * modules/des, modules/des-tests: New files.
7279
7280         * modules/gc-des, modules/gc-des-tests: New files.
7281
7282         * tests/test-des.c, tests/test-gc-des.c: New file.
7283
7284 2005-10-21  Simon Josefsson  <jas@extundo.com>
7285
7286         * modules/arctwo, modules/arctwo-tests: New files.
7287
7288         * tests/test-arctwo.c: New file.
7289
7290         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
7291
7292         * tests/test-gc-arctwo.c: New file.
7293
7294 2005-10-21  Simon Josefsson  <jas@extundo.com>
7295
7296         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
7297         Bruno Haible <bruno@clisp.org>.
7298
7299         * m4/gc-des.m4: New file.
7300
7301 2005-10-21  Simon Josefsson  <jas@extundo.com>
7302
7303         * m4/arctwo.m4: New file.
7304
7305         * m4/gc-arctwo.m4: New file.
7306
7307 2005-10-21  Simon Josefsson  <jas@extundo.com>
7308
7309         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
7310         block.
7311
7312 2005-10-21  Simon Josefsson  <jas@extundo.com>
7313
7314         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
7315         <bruno@clisp.org>.
7316
7317         * lib/hmac-sha1.c (hmac_sha1): Likewise.
7318
7319         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
7320         Bruno Haible <bruno@clisp.org>.
7321
7322         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
7323         <bruno@clisp.org>.
7324
7325 2005-10-21  Simon Josefsson  <jas@extundo.com>
7326
7327         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
7328
7329 2005-10-21  Simon Josefsson  <jas@extundo.com>
7330
7331         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
7332
7333 2005-10-21  Simon Josefsson  <jas@extundo.com>
7334
7335         * lib/des.h, des.c: New files.
7336
7337         * lib/gc-gnulib.c: Support DES.c
7338
7339 2005-10-21  Simon Josefsson  <jas@extundo.com>
7340
7341         * lib/arctwo.h, arctwo.c: New files.
7342
7343         * lib/gc-gnulib.c: Support ARCTWO.
7344
7345 2005-10-21  Simon Josefsson  <jas@extundo.com>
7346
7347         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
7348         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7349
7350 2005-10-21  Simon Josefsson  <jas@extundo.com>
7351
7352         * gnulib-tool (func_import, func_create_testdir): Define automake
7353         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
7354         Makefile.am snippet),
7355         suggested by Bruno Haible <bruno@clisp.org>.
7356
7357         * modules/gc (Makefile.am): Use it.
7358
7359 2005-10-21  Bruno Haible  <bruno@clisp.org>
7360
7361         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
7362         patch.
7363
7364 2005-10-19  Simon Josefsson  <jas@extundo.com>
7365
7366         * tests/test-gc-rijndael.c: New file.
7367
7368         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
7369
7370 2005-10-19  Simon Josefsson  <jas@extundo.com>
7371
7372         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
7373         interface too.
7374
7375 2005-10-19  Simon Josefsson  <jas@extundo.com>
7376
7377         * tests/test-gc-arcfour.c: New file.
7378
7379         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
7380
7381 2005-10-19  Simon Josefsson  <jas@extundo.com>
7382
7383         * modules/gc-md4, modules/gc-md4-tests: New file.
7384
7385         * tests/test-gc-md4.c: New file.
7386
7387 2005-10-19  Simon Josefsson  <jas@extundo.com>
7388
7389         * m4/gc-md4.m4: New file.
7390
7391 2005-10-19  Simon Josefsson  <jas@extundo.com>
7392
7393         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
7394         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
7395         <kasal@ucw.cz>.
7396
7397 2005-10-19  Simon Josefsson  <jas@extundo.com>
7398
7399         * m4/gc-arcfour.m4: New file.
7400
7401         * m4/gc-rijndael.m4: New file.
7402
7403 2005-10-19  Simon Josefsson  <jas@extundo.com>
7404
7405         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
7406
7407 2005-10-19  Simon Josefsson  <jas@extundo.com>
7408
7409         * lib/gc-gnulib.c: Support ARCFOUR.
7410
7411 2005-10-19  Simon Josefsson  <jas@extundo.com>
7412
7413         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
7414         support.
7415
7416         * lib/gc.h: Add ECB enum type.
7417
7418         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
7419
7420 2005-10-18  Simon Josefsson  <jas@extundo.com>
7421
7422         * tests/test-md5.c: New file.
7423
7424         * modules/md5-tests: New file.
7425
7426 2005-10-18  Simon Josefsson  <jas@extundo.com>
7427
7428         * tests/test-md4.c: New file.
7429
7430         * modules/md4, modules/md4-tests: New files.
7431
7432 2005-10-18  Simon Josefsson  <jas@extundo.com>
7433
7434         * m4/md4.m4: New file.
7435
7436 2005-10-18  Simon Josefsson  <jas@extundo.com>
7437
7438         * lib/md4.h, md4.c: New files, based on md5.?.
7439
7440 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
7441
7442         * gnulib-tool (func_create_testdir): Omit the second check whether
7443         BUILT_SOURCES in nonempty.
7444
7445 2005-10-17  Simon Josefsson  <jas@extundo.com>
7446
7447         * tests/test-rijndael.c: New file.
7448
7449 2005-10-17  Simon Josefsson  <jas@extundo.com>
7450
7451         * modules/sha1: Depend on stdint instead of md5.
7452
7453         * modules/md5: Depend on stdint, remove uint32_t.
7454
7455 2005-10-17  Simon Josefsson  <jas@extundo.com>
7456
7457         * modules/gc-sha1-tests: New file.
7458
7459         * tests/test-gc-sha1.c: New file.
7460
7461 2005-10-17  Simon Josefsson  <jas@extundo.com>
7462
7463         * m4/md5.m4: Remove call to uint32_t.m4.
7464
7465 2005-10-17  Simon Josefsson  <jas@extundo.com>
7466
7467         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
7468
7469         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
7470         md5.h.
7471
7472         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
7473
7474         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
7475
7476 2005-10-17  Simon Josefsson  <jas@extundo.com>
7477
7478         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
7479
7480 2005-10-17  Simon Josefsson  <jas@extundo.com>
7481
7482         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
7483
7484 2005-10-17  Simon Josefsson  <jas@extundo.com>
7485
7486         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
7487
7488         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
7489
7490 2005-10-17  Bruno Haible  <bruno@clisp.org>
7491
7492         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
7493         that it can also be used in a test.
7494
7495 2005-10-16  Bruno Haible  <bruno@clisp.org>
7496
7497         * gnulib-tool (func_emit_tests_Makefile_am): Also define
7498         TESTS_ENVIRONMENT, so that individual tests can augment it.
7499
7500         * gnulib-tool (func_create_testdir): Use an intermediate target for
7501         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
7502         macros, like $(ALLOCA_H), which cannot be passed through the command
7503         line.
7504
7505 2005-10-15  Simon Josefsson  <jas@extundo.com>
7506
7507         * modules/rijndael-tests: New file.
7508
7509         * modules/rijndael: New file.
7510
7511 2005-10-15  Simon Josefsson  <jas@extundo.com>
7512
7513         * m4/rijndael.m4: New file.
7514
7515 2005-10-15  Simon Josefsson  <jas@extundo.com>
7516
7517         * lib/rijndael-api-fst.h, rijndael-api-fst.c: New files.
7518
7519         * lib/rijndael-alg-fst.h, rijndael-alg-fst.c: New files.
7520
7521 2005-10-14  Simon Josefsson  <jas@extundo.com>
7522
7523         * tests/test-arcfour.c: New file.
7524
7525         * modules/arcfour, modules/arcfour-tests: New files.
7526
7527 2005-10-14  Simon Josefsson  <jas@extundo.com>
7528
7529         * m4/arcfour.m4: New file.
7530
7531 2005-10-14  Simon Josefsson  <jas@extundo.com>
7532
7533         * lib/arcfour.h, arcfour.c: New files.
7534
7535 2005-10-14  Roland McGrath  <roland@redhat.com>
7536
7537         Import from libc.  [BZ #1331]
7538         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
7539         macro argument.
7540         Reported by Matej Vela <vela@debian.org>.
7541
7542 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7543
7544         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
7545         include <wchar.h>; no longer needed.
7546
7547 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7548
7549         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
7550
7551 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
7552         and  Ulrich Drepper  <drepper@redhat.com>
7553
7554         Import from libc.
7555         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
7556         instead of inline stream orientation test and two separate
7557         function calls.  Pay no attention to USE_IN_LIBIO.
7558
7559 2005-10-13  Simon Josefsson  <jas@extundo.com>
7560
7561         * modules/gc-hmac-md5-tests: New file.
7562
7563         * tests/test-gc-hmac-sha1.c: New file.
7564
7565         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
7566
7567         * modules/gc-hmac-md5-tests: New file.
7568
7569         * tests/test-gc-md5.c: New file.
7570
7571         * modules/gc-md5-tests: New file.
7572
7573 2005-10-13  Simon Josefsson  <jas@extundo.com>
7574
7575         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
7576         Move memory allocation outside of loop.
7577
7578 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7579
7580         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
7581         intermediate directory is in a read-only file system.  Problem
7582         reported by Eric Blake.
7583
7584 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
7585
7586         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
7587
7588 2005-10-12  Simon Josefsson  <jas@extundo.com>
7589
7590         * tests/test-hmac-sha1.c: New file.
7591
7592         * modules/hmac-sha1-tests: New file.
7593
7594         * modules/hmac-sha1: New file.
7595
7596 2005-10-12  Simon Josefsson  <jas@extundo.com>
7597
7598         * modules/gc-sha1: New file.
7599
7600 2005-10-12  Simon Josefsson  <jas@extundo.com>
7601
7602         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
7603
7604         * tests/test-gc-pbkdf2-sha1.c: New file.
7605
7606 2005-10-12  Simon Josefsson  <jas@extundo.com>
7607
7608         * modules/gc-md5, modules/gc-hmac-md5: New files.
7609
7610         * modules/gc (Files): Remove md5, memxor and hmac files.
7611
7612 2005-10-12  Simon Josefsson  <jas@extundo.com>
7613
7614         * m4/gc-pbkdf2-sha1.m4: New file.
7615
7616         * m4/gc-hmac-sha1.m4: New file.
7617
7618         * m4/gc-sha1: New file.
7619
7620         * m4/hmac-sha1.m4: New file.
7621
7622 2005-10-12  Simon Josefsson  <jas@extundo.com>
7623
7624         * m4/gc-md5.m4, gc-hmac-md5: New files.
7625
7626         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
7627
7628 2005-10-12  Simon Josefsson  <jas@extundo.com>
7629
7630         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
7631         suggested by Bruno Haible <bruno@clisp.org>.
7632
7633 2005-10-12  Simon Josefsson  <jas@extundo.com>
7634
7635         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
7636
7637 2005-10-12  Simon Josefsson  <jas@extundo.com>
7638
7639         * lib/gc-pbkdf2-sha1.c: New file.
7640
7641         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
7642
7643 2005-10-12  Simon Josefsson  <jas@extundo.com>
7644
7645         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
7646
7647         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
7648
7649 2005-10-12  Simon Josefsson  <jas@extundo.com>
7650
7651         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
7652         GC_USE_HMAC_MD5, respectively.
7653
7654         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
7655         (gc_md5): Fix typo.
7656
7657         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
7658
7659         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
7660
7661         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
7662
7663 2005-10-12  Bruno Haible  <bruno@clisp.org>
7664
7665         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
7666         Reported by Stepan Kasal <kasal@ucw.cz>.
7667
7668 2005-10-11  Simon Josefsson  <jas@extundo.com>
7669
7670         * tests/test-crc.c: New file.
7671
7672         * modules/crc, modules/crc-tests: New files.
7673
7674 2005-10-11  Simon Josefsson  <jas@extundo.com>
7675
7676         * m4/crc.m4: New file.
7677
7678 2005-10-11  Simon Josefsson  <jas@extundo.com>
7679
7680         * lib/gc.h: Add gc_hash and gc_hash_buffer.
7681
7682         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
7683
7684         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
7685
7686 2005-10-11  Simon Josefsson  <jas@extundo.com>
7687
7688         * lib/crc.h, crc.c: New files.
7689
7690         * lib/gc.h (gc_hash_buffer): Add doc.
7691
7692 2005-10-11  Bruno Haible  <bruno@clisp.org>
7693
7694         * modules/c-strcasestr: New file.
7695         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
7696
7697 2005-10-11  Bruno Haible  <bruno@clisp.org>
7698
7699         * modules/c-strcase: New file.
7700         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
7701
7702 2005-10-11  Bruno Haible  <bruno@clisp.org>
7703
7704         * lib/strcasecmp.c: Include limits.h.
7705         (strcasecmp): Avoid integer overflow on exotic platforms.
7706         * lib/strncasecmp.c: Include limits.h.
7707         (strncasecmp): Avoid integer overflow on exotic platforms.
7708         Reported by Paul Eggert.
7709
7710 2005-10-11  Bruno Haible  <bruno@clisp.org>
7711
7712         * lib/c-strcasestr.h: New file, from GNU gettext.
7713         * lib/c-strcasestr.c: New file, from GNU gettext.
7714
7715 2005-10-11  Bruno Haible  <bruno@clisp.org>
7716
7717         * lib/c-strcase.h: New file, from GNU gettext.
7718         * lib/c-strcasecmp.c: New file, from GNU gettext.
7719         * lib/c-strncasecmp.c: New file, from GNU gettext.
7720
7721 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7722
7723         * modules/mempcpy (License): GPL -> LGPL.
7724         * modules/strchrnul (License): Likewise.
7725         * modules/sysexits (License): Likewise.
7726
7727 2005-10-08  Simon Josefsson  <jas@extundo.com>
7728
7729         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
7730
7731 2005-10-07  Simon Josefsson  <jas@extundo.com>
7732
7733         * m4/memxor.m4: Remove gl_C_RESTRICT call.
7734
7735 2005-10-06  Simon Josefsson  <jas@extundo.com>
7736
7737         * tests/test-hmac-md5.c: New file.
7738
7739         * modules/hmac-md5-tests: New file.
7740
7741         * modules/hmac-md5: New file.
7742
7743 2005-10-06  Simon Josefsson  <jas@extundo.com>
7744
7745         * m4/hmac-md5.m4: New file.
7746
7747         * m4/memxor.m4: Require gl_C_RESTRICT.
7748
7749 2005-10-06  Simon Josefsson  <jas@extundo.com>
7750
7751         * lib/memxor.c (memxor): Avoid casts and warnings.
7752
7753 2005-10-06  Simon Josefsson  <jas@extundo.com>
7754
7755         * lib/hmac-md5.c: New file.
7756
7757         * lib/hmac.h: New file.
7758
7759 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
7760
7761         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
7762         promotes to int, not unsigned int, to catch the AIX 5.3
7763         compiler bug.
7764
7765 2005-10-05  Simon Josefsson  <jas@extundo.com>
7766
7767         * modules/memxor: New file.
7768
7769         * modules/iconv (Files): Move config.rpath to havelib, it is used
7770         there.
7771
7772         * modules/havelib (Files): Add config.rpath.
7773
7774 2005-10-05  Simon Josefsson  <jas@extundo.com>
7775
7776         * m4/memxor.m4: New file.
7777
7778 2005-10-05  Simon Josefsson  <jas@extundo.com>
7779
7780         * lib/memxor.c (memxor): Fix compiler error.
7781
7782         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
7783         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
7784
7785         * lib/memxor.h, memxor.c: New files.
7786
7787         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
7788         we assume all systems have it, suggested by Jim Meyering
7789         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
7790         any systems lack sys/socket.h; mingw32 is known to lack it, but we
7791         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
7792         same reasons.
7793
7794 2005-10-05  Simon Josefsson  <jas@extundo.com>
7795
7796         * config/srclist.txt: Add glibc bug 1423 for md5.h.
7797
7798 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7799
7800         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
7801         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
7802         needed, since the source code now assumes these .h files.
7803
7804 2005-10-05  Derek Price  <derek@ximbiot.com>
7805
7806         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
7807
7808 2005-10-05  Bruno Haible  <bruno@clisp.org>
7809
7810         * modules/stdint (License): Change to LGPL.
7811
7812 2005-10-04  Simon Josefsson  <jas@extundo.com>
7813
7814         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
7815         D. Baushke" <mdb@gnu.org>.
7816
7817 2005-10-04  Bruno Haible  <bruno@clisp.org>
7818
7819         * lib/verify.h (verify_true): Provide alternative definition for C++.
7820
7821 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7822
7823         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
7824         (SSIZE_MAX): New macro, if not already defined.
7825         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
7826         than 2 GiB.
7827
7828 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7829
7830         Sync from coreutils.
7831         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
7832         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
7833         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
7834         ULLONG_MAX doesn't work with 2.7.2.1.
7835
7836 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7837
7838         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
7839         From Ben Pfaff.
7840
7841         * modules/exclude (Depends-on): Depend on verify.
7842         * modules/strtoimax (Depends-on): Likewise.
7843         * modules/utimecmp (Depends-on): Likewise.
7844
7845 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7846
7847         * lib/exclude.c: Include verify.h.
7848         (verify): Remove.  All callers changed to use verify.h's version.
7849         * lib/strtoimax.c: Likewise.
7850         * lib/utimecmp.c: Likewis.e
7851
7852         Sync from coreutils.
7853         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
7854         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
7855         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
7856         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
7857         bother returning ENOSYS if settimeofday or stime fails; just let
7858         them return whatever errno they want to return.
7859         * lib/utimens.c: Include unistd.h, for dup2.
7860         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
7861         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
7862
7863 2005-10-02  Jim Meyering  <jim@meyering.net>
7864
7865         Sync from coreutils.
7866         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
7867         from glibc-2.2.5 that fails for read-only files.
7868
7869 2005-10-02  Jim Meyering  <jim@meyering.net>
7870
7871         Sync from coreutils.
7872         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
7873         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
7874         `#if HAVE_CONFIG_H'.
7875         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
7876         Remove AT_FDCWD test.
7877         Do not consume the fd unless successful.
7878         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
7879         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
7880         block, so that we don't even try to compile it if settimeofday is
7881         available.  This works around a compilation failure on OSF1 V5.1,
7882         due to stime requiring a `long int*' while tv_sec is `int'.
7883
7884 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
7885
7886         Sync from coreutils.
7887         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
7888         against `yes', rather than just testing for nonempty.
7889
7890 2005-10-01  Simon Josefsson  <jas@extundo.com>
7891
7892         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
7893         and Darwin.
7894
7895         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
7896         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
7897         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
7898         freeaddrinfo and gai_strerror are declared by the POSIX headers.
7899         Check if struct addrinfo is declared.
7900
7901 2005-10-01  Simon Josefsson  <jas@extundo.com>
7902
7903         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
7904         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
7905         AI_* and EAI_* definitions.  Protect function declarations.
7906
7907 2005-10-01  Jim Meyering  <jim@meyering.net>
7908
7909         Sync from coreutils.
7910
7911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
7912         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
7913         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
7914         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
7915         in the inet and nsl libraries.  Required on Solaris 5.7.
7916
7917 2005-10-01  Jim Meyering  <jim@meyering.net>
7918
7919         Sync from coreutils.
7920         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
7921         in the inet and nsl libraries.  Required on Solaris 5.7.
7922
7923 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
7924
7925         * lib/getdelim.c (getdelim): Remove unused variables.
7926
7927 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
7928
7929         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
7930         so that the code works even with ancient cpp.  Portability problem
7931         with GCC 2.7.2.1 reported by Thomas M.Ott.
7932
7933 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
7934
7935         * modules/regex (Depends-on): Add strcase.
7936
7937         * modules/gethostname (Licence): Change from GPL to LGPL, since
7938         gethostname.c is a trivial implementation of a standard library
7939         function.
7940         * modules/poll (License): Change from GPL to LGPL, since it's
7941         derived from LGPL code.
7942
7943 2005-09-27  Jim Meyering  <jim@meyering.net>
7944
7945         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
7946         HAVE_CONFIG_H.
7947
7948         * lib/intprops.h (signed_type_or_expr__): Define.
7949         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
7950         for unsigned types.
7951
7952 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7953
7954         * lib/verify.h (verify_expr): Remove, replacing with:
7955         (verify_true): New macro that returns true instead of void.
7956         (verify_type__): Remove.
7957         (verify): Use verify_true rather than verify_type__.
7958
7959 2005-09-26  Bruno Haible  <bruno@clisp.org>
7960
7961         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
7962         is necessary.
7963         (lib_SOURCES): Remove mbchar.c.
7964         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
7965         (Files): Add m4/mbrtowc.m4.
7966         * modules/mbiter: Likewise.
7967         * modules/mbuiter: Likewise.
7968
7969 2005-09-26  Bruno Haible  <bruno@clisp.org>
7970
7971         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
7972         compile mbchar.c if they are not both present.
7973         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
7974         * m4/mbiter.m4 (gl_MBITER): Likewise.
7975         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
7976         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
7977         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
7978
7979 2005-09-25  Jim Meyering  <jim@meyering.net>
7980
7981         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
7982         also uses socklen_t.
7983
7984 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7985
7986         * lib/utimens.c (ENOSYS): Define if not already defined.
7987         (futimens): Support having a null PATH if the file descriptor
7988         is nonnegative.
7989
7990         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
7991         Remove.
7992         (__attribute): Define to empty unless GCC 3.1 or later.
7993         This works around a core dump on OpenBSD 3.4, which has GCC
7994         2.95.3, which dumps core when given __attribute__(()).  It also
7995         simplifies other tests, since we really don't want to bother with
7996         worrying about which ancient version of GCC supported what.
7997         Original problem reported by Yoann Vandoorselaere, with part of
7998         the fix suggested by Derek Price.
7999
8000 2005-09-24  Jim Meyering  <jim@meyering.net>
8001
8002         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
8003         so we can once again use a positive bitfield width of 1 -- now we
8004         don't have to explain why we were using a bitfield width of 2.
8005
8006 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8007
8008         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
8009         and similarly for the other external symbols.  Problem reported
8010         by James Gallager.
8011
8012         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
8013         bug reported by Jim Meyering.
8014
8015         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
8016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
8017         not needed, since socklen is a prerequisite module.
8018
8019 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8020
8021         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
8022         Problem reported by Eric Blake.
8023         (getaddrinfo): Initialize se so that it's not garbage.
8024         Redo internal storage allocation so that it doesn't make unportable
8025         assumptions about alignment.
8026         Fix a memory leak.
8027
8028         * lib/utimens.c (futimens): Use futimesat if available.
8029         Prefer it to futimes since it doesn't have the futimes bug.
8030
8031         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
8032         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
8033         Instead, declare a function that returns a pointer to an array,
8034         and use verify_type__ to declare the size of the array.
8035         Problem and germ of a solution reported by Bruno Haible.
8036         (verify_type__): Use 2, not 1, for bitfield size, to avoid
8037         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
8038
8039 2005-09-23  Jim Meyering  <jim@meyering.net>
8040
8041         Sync from coreutils.
8042         Correct build failure (socklen_t not defined) on at least
8043         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
8044         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
8045
8046 2005-09-23  Jim Meyering  <jim@meyering.net>
8047
8048         * modules/getaddrinfo (Depends-on): Add socklen.
8049
8050 2005-09-23  Bruno Haible  <bruno@clisp.org>
8051
8052         * tests/test-verify.c: New file.
8053
8054 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8055
8056         Sync from coreutils.
8057
8058         * modules/argmatch (Depends-on): Add verify.
8059         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
8060         unistd-safer.
8061         * modules/save-cwd (Depends-on): Likewise.
8062
8063         * modules/openat (Files): Add lib/openat-die.c.
8064         (Depends-on): Remove error, exitfail.
8065         Add dirname.
8066
8067         * modules/verify: New file.
8068         * MODULES.html.sh (Diagnostics <assert.h>): New section,
8069         with "verify" module.
8070
8071 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8072
8073         Sync from coreutils.
8074
8075         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
8076         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
8077         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
8078         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
8079         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
8080         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
8081         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
8082         Don't bother checking for string.h, stdlib.h, unistd.h.
8083         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
8084         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
8085         module's job.
8086         * m4/jm-macros.m4 (gl_MACROS): Likewise.
8087         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
8088
8089         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
8090         (gl_GETDATE): Use it.
8091
8092         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
8093
8094 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8095
8096         Sync from coreutils.
8097
8098         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
8099         stat-time.h.
8100         * lib/argmatch.h: Include verify.h
8101         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
8102         (ARGMATCH_ASSERT): Remove; unused.
8103         * lib/canonicalize.c: Assume STDC_HEADERS.
8104         * lib/exclude.c: Include "strcase.h".
8105         * lib/regex_internal.h [!defined _LIBC]: Likewise.
8106         * lib/getusershell.c: Include stdio--.h rather than stdio.h
8107         and stdio-safer.h.
8108         (getusershell): Call fopen, not fopen_safer.
8109         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
8110         Do not include unistd-safer.h.
8111         (save_cwd): Don't call fd_safer; no longer needed
8112         now that we include fcntl--.h.
8113
8114         * lib/getdate.y (relative_time): New type.
8115         (RELATIVE_TIME_0): New constant.
8116         (parser_control): Use relative_time instead of doing it ourselves.
8117         (%union): Add new relative_time rel member.
8118         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
8119         Now typeless.
8120         (relunit, relunit_snumber): Now of type rel.
8121         (zone, rel, relunit, get_date): Adjust to above changes.
8122
8123         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
8124         Do not include unistd-safer.h.
8125         (getloadavg): Don't call fd_safer; no longer needed
8126         now that we include fcntl--.h.
8127
8128         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
8129         (make_dir_parents): Treat ENOSYS like EEXIST.
8130
8131         Improve quality of diagnostics on restore_cwd failure.
8132         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
8133         (make_dir_parents): Last arg is now int * (for errno), not bool *.
8134         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
8135         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
8136         each time through the loop.  Do not diagnose restore_cwd failure;
8137         that is the caller's job (and perhaps the caller does not care).
8138
8139         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
8140         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
8141         If the file already exists but is not a directory, don't bother
8142         to try to make its parents.
8143         Close potential file descriptor leak if we can't chdir("/") (!).
8144         Don't always return true if chdir($PWD) fails; return true only
8145         if the requested action was done successfully (except for the
8146         chdir($PWD)).
8147         Don't log final directory unless we actually made it.
8148         Refactor to avoid duplicate code to fix up permissions.
8149         Don't attempt to fix up parent permissions if chdir($PWD) fails.
8150
8151         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
8152         to make it a bit faster and (I hope) clearer.
8153         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
8154         Fix bug in formats like %2N.
8155
8156         * lib/verify.h: New file.
8157
8158 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8159
8160         Sync from coreutils.
8161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
8162
8163 2005-09-22  Jim Meyering  <jim@meyering.net>
8164
8165         Sync from coreutils.
8166
8167         * m4/lstat.m4 (gl_FUNC_LSTAT):
8168         Use AC_LIBSOURCES to require lstat.c and lstat.h.
8169         Remove obsolete comment.
8170         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
8171         * m4/xstrtod.m4: Likewise.
8172
8173         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
8174
8175 2005-09-22  Jim Meyering  <jim@meyering.net>
8176
8177         Sync from coreutils.
8178
8179         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
8180
8181         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
8182         the .tm_year member, since otherwise gcc-4.0 would now warn about
8183         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
8184
8185         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
8186         order to avoid an unsuppressible warning from gcc on 64-bit systems.
8187
8188         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
8189         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
8190         when run in a time zone for which daylight savings time is in effect
8191         for the starting date.
8192
8193         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
8194         stop us from restricting permissions of just-created absolute-named
8195         directories.
8196         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
8197         to restore initial working directory.
8198         * lib/mkdir-p.c (make_dir_parents): New parameter:
8199         different_working_dir, to tell caller if/when we change the working
8200         directory and are unable to return to the initial one.
8201         * lib/mkdir-p.h (make_dir_parents): Update prototype.
8202         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
8203         `return false'.  This fixes a bug introduced on 2004-07-30.
8204
8205         * lib/openat.c (fdopendir): Be sure to close the supplied
8206         file descriptor before returning.  This makes our replacement
8207         implementation a little closer to Solaris's, where fdopendir
8208         ties the file descriptor to the returned DIR* pointer.
8209         * lib/openat.c (unlinkat): New function.
8210         * lib/openat.h (unlinkat): Add prototype.
8211         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
8212         (openat_restore_fail): Rename from openat_restore_die.
8213         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
8214
8215         Provide an alternative to exiting immediately upon save_cwd or
8216         restore_cwd failure.  Now, an application can arrange e.g.,
8217         to perform a longjump in that case.
8218         * lib/openat.c: Include dirname.h.
8219         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
8220         (rpl_openat, fdopendir, fstatat): Call openat_save_die
8221         and openat_restore_die rather than calling error directly.
8222         Don't include "error.h" or "exitfail.h"; they're no longer needed.
8223
8224         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
8225         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
8226         define.
8227
8228         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
8229         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
8230                             int utc, int nanoseconds);
8231         Background:
8232         date should not have to allocate a megabyte of virtual memory to
8233         handle a format argument like +%1048575T.  When implemented with
8234         strftime, it must allocate such a buffer, use strftime to fill it
8235         in, print it, then free it.
8236         With fprintftime, it simply prints everything and exits.
8237         With no need for memory allocation, that's one fewer way to fail.
8238         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
8239         optional field width, not before, so we accept %9:z, not %:9z.
8240         (my_strftime): Be sure to use L_('x') for literals.
8241
8242         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
8243         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
8244         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
8245         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
8246         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
8247         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
8248         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
8249         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
8250         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
8251         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
8252         * lib/xgethostname.c, lib/xreadlink.c:
8253         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
8254
8255         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
8256         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
8257         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
8258         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
8259         and don't include <sys/file.h>).
8260
8261 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
8262
8263         Sync from coreutils.
8264
8265         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
8266         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
8267         [!LDAV_DONE]: Avoid unused variable warning.
8268
8269 2005-09-21  Bruno Haible  <bruno@clisp.org>
8270
8271         * lib/unicodeio.h (unicode_to_mb): New declaration.
8272
8273 2005-09-20  Derek Price  <derek@ximbiot.com>
8274
8275         * lib/getaddrinfo.c: Don't include <netdb.h> included from
8276         getaddrinfo.h.
8277
8278 2005-09-20  Bruno Haible  <bruno@clisp.org>
8279
8280         * gnulib-tool: Remove trailing slashes from the values specified for
8281         --source-base, --m4-base, --tests-base, --aux-dir.
8282         Suggested by Simon Josefsson <jas@extundo.com>.
8283
8284 2005-09-20  Bruno Haible  <bruno@clisp.org>
8285
8286         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
8287         func_modules_to_filelist, func_import, func_create_testdir): Make all
8288         sorting results locale-independent, so that gnulib-cache.m4 doesn't
8289         change when gnulib-tool is invoked in a different locale.
8290
8291 2005-09-19  Simon Josefsson  <jas@extundo.com>
8292
8293         * m4/socklen.m4: Fix typo.
8294
8295 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8296
8297         Use a consistent style for including <config.h>.
8298         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
8299         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
8300         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
8301         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
8302         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
8303         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
8304         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
8305         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
8306         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
8307         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
8308         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
8309         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
8310         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
8311         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
8312         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
8313         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
8314         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
8315         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
8316         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
8317         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
8318         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
8319         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
8320         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
8321         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
8322         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
8323         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
8324         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
8325         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
8326         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
8327         lib/xstrtoumax.c, lib/yesno.c:
8328         Standardize inclusion of config.h.
8329         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
8330         lib/inttostr.h:  Removed inclusion of config.h from header files.
8331         * lib/inttostr.c:  Adjusted in-tree users.
8332         * lib/timespec.h: Remove superfluous warning to include config.h.
8333         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
8334         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
8335         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
8336         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
8337         config.h with HAVE_CONFIG_H.
8338
8339 2005-09-19  Jim Meyering  <jim@meyering.net>
8340
8341         * modules/pathmax (License): Change to LGPL.
8342
8343 2005-09-19  Derek Price  <derek@ximbiot.com>
8344
8345         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
8346
8347 2005-09-19  Bruno Haible  <bruno@clisp.org>
8348
8349         * gnulib-tool (import): Provide default for --tests-base.
8350
8351 2005-09-19  Bruno Haible  <bruno@clisp.org>
8352
8353         * doc/quote.texi: New file, extracted from gnulib.texi.
8354         * doc/ctime.texi: New file, extracted from gnulib.texi.
8355         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
8356         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
8357         * doc/gnulib.texi: Include them.
8358
8359 2005-09-18  Bruno Haible  <bruno@clisp.org>
8360
8361         Portability fix.
8362         * gnulib-tool (func_readlink): New function.
8363         (func_ln_if_changed): Use it.
8364
8365 2005-09-18  Bruno Haible  <bruno@clisp.org>
8366
8367         * gnulib-tool: Support --with-tests also with --import.
8368         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
8369         (func_import): Use variables $testsbase and $inctests. Emit a
8370         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
8371         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
8372         SUBDIRS += $testsdir.
8373         (func_create_testdir): Update.
8374
8375 2005-09-18  Bruno Haible  <bruno@clisp.org>
8376
8377         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
8378         instead of $dry_run.
8379         (func_cp_if_changed, func_mv_if_changed): Remove functions.
8380         (func_ln_if_changed): Don't handle dry-run here.
8381         (func_import): In dry-run mode, detect more precisely which actions
8382         would be performed, and don't use "...ing" verbs.
8383
8384 2005-09-18  Bruno Haible  <bruno@clisp.org>
8385
8386         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
8387         (func_import): Use join on two temporary files instead of three nested
8388         loops, in order to determine which files are new or old.
8389
8390 2005-09-18  Bruno Haible  <bruno@clisp.org>
8391
8392         * gnulib-tool (func_import): Comment out code that spits out the
8393         new files with --dry-run.
8394
8395 2005-09-18  Bruno Haible  <bruno@clisp.org>
8396
8397         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
8398
8399 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8400
8401         * lib/stat-time.h: New file.
8402         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
8403         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
8404         in a different way.
8405         (timespec_cmp): New function.
8406         * lib/utimecmp.c: Include stat-time.h.
8407         (SYSCALL_RESOLUTION): Depend on whether various struct stat
8408         members exist, not on the obsolescent ST_MTIM_NSEC.
8409         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
8410
8411 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8412
8413         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
8414
8415 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8416
8417         * MODULES.html.sh (File system functions): Add stat-time.
8418         * modules/stat-time: New file.
8419         * modules/timespec (Files): Remove m4/st_mtim.m4; this
8420         is now done in a different way, by the stat-time module.
8421         * modules/utimecmp (Depends-on): Add stat-time.
8422
8423 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8424
8425         * m4/st_mtim.m4: Remove.  Superseded by...
8426         * m4/stat-time.m4: New file.
8427         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
8428         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
8429
8430 2005-09-15  Derek Price  <derek@ximbiot.com>
8431
8432         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
8433
8434 2005-09-15  Derek Price  <derek@ximbiot.com>
8435
8436         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
8437         * lib/regex_internal.c: Ditto, using this...
8438         (__GNUC_PREREQ): ...new macro.
8439         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
8440         using...
8441         (__GNUC_PREREQ): ...this new macro.
8442
8443         * lib/strstr.h: Include string.h. Define strstr as a macro here.
8444
8445 2005-09-15  Derek Price  <derek@ximbiot.com>
8446             Paul Eggert  <eggert@cs.ucla.edu>
8447
8448         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
8449         changes, consolidating in...
8450         * lib/regex_internal.h: ...this file.
8451
8452 2005-09-13  Jim Meyering  <jim@meyering.net>
8453
8454         * lib/canon-host.c: Filter through gnu indent and reword comments
8455         slightly.
8456         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
8457
8458 2005-09-13  Derek Price  <derek@ximbiot.com>
8459
8460         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
8461         failure.
8462         Reported by Jim Meyering  <jim@meyering.net>.
8463
8464 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
8465
8466         * lib/base64.c: Typo.
8467         (base64_encode): Put b64str in initialized data section.
8468
8469 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8470
8471         Merge glibc and coreutils changes into gnulib, plus a few
8472         extra fixes.
8473         * lib/md5.c: Use #error rather than a string.
8474         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
8475         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
8476         (__attribute__): Define to empty for non recent-GCC.
8477         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
8478         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
8479         Renamed from their non-__ counterparts, with new macros replacing
8480         them if not _LIBC.  Add __THROW attribute.
8481         (rol): Remove.
8482         (struct md5_ctx): Align buffer if using GCC.
8483         * lib/sha1.h (struct sha1_ctx): Likewise.
8484         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
8485         The old name was backwards.
8486         (NOTSWAP): Remove; not used.
8487         (rol): New macro, moved here from md5.h.
8488         (sha1_process_block): Remove a FIXME that doesn't make sense.
8489
8490 2005-09-12  Derek Price  <derek@ximbiot.com>
8491
8492         Return usable errors from canon-host.
8493         * lib/canon-host.h: New file.
8494         * lib/canon-host.c (canon_host): Wrap...
8495         (canon_host_r): ...this new function, which now relies exclusively on
8496         getaddrinfo.
8497         (ch_strerror): New function.
8498         (last_cherror): New global.
8499         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
8500         interface.
8501         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
8502         void *.
8503         (freeaddrinfo): Free ai->ai_canonname when set.
8504
8505 2005-09-12  Derek Price  <derek@ximbiot.com>
8506
8507         Make canon-host require getaddrinfo.
8508         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
8509         AC_LIBSOURCE canon-host.h.  Call...
8510         (gl_PREREQ_CANON_HOST): ...this new function, which requires
8511         gl_GETADDRINFO.
8512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
8513
8514 2005-09-12  Derek Price  <derek@ximbiot.com>
8515
8516         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
8517         LGPL.
8518         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
8519
8520 2005-09-12  Derek Price  <derek@ximbiot.com>
8521
8522         * lib/gai_strerror.c: Include config.h when available.  Include
8523         getaddrinfo.h before other headers to test interface.
8524         Reported by Larry Jones <lawrence.jones@ugs.com>.
8525
8526 2005-09-12  Derek Price  <derek@ximbiot.com>
8527             Paul Eggert  <eggert@cs.ucla.edu>
8528
8529         * modules/glob (Files): Add glob-libc.h.
8530
8531 2005-09-12  Derek Price  <derek@ximbiot.com>
8532             Paul Eggert  <eggert@cs.ucla.edu>
8533
8534         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
8535         glob_.h, glob-libc.h.
8536         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
8537
8538 2005-09-12  Derek Price  <derek@ximbiot.com>
8539             Paul Eggert  <eggert@cs.ucla.edu>
8540
8541         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
8542         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
8543         protecting things that should be done only in gnulib contexts.
8544         * lib/glob_.h: New file, containing only the glob things needed for
8545         gnulib.
8546         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
8547         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
8548         (glob, globfree, glob_pattern_p): Now defined simply in terms of
8549         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
8550         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
8551         and to respect the namespace rules better.
8552
8553 2005-09-08  Simon Josefsson  <jas@extundo.com>
8554
8555         * modules/socklen: New file.
8556
8557 2005-09-08  Simon Josefsson  <jas@extundo.com>
8558
8559         * m4/socklen.m4: New file.
8560
8561 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8562
8563         * modules/utimens (Files): Add m4/utimbuf.m4, since
8564         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
8565         Reported by Sergey Poznyakoff.
8566
8567 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8568
8569         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
8570         definitions, since that's the preferred style in glibc.
8571         Fix a minor spacing issue, and update copyright notice to match
8572         glibc's.
8573
8574 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8575
8576         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
8577
8578 2005-09-06  Simon Josefsson  <jas@extundo.com>
8579
8580         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
8581         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
8582
8583 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8584
8585         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
8586         warning.
8587
8588 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8589
8590         * config/srclist.txt: Add glibc bug 1302.
8591
8592 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8593
8594         Change bitset word type from unsigned int to unsigned long int,
8595         as this has better performance on typical 64-bit hosts.
8596         Port bitset code to hosts with unusual word sizes.
8597         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
8598         (build_collating_symbol):
8599         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
8600         argument is a bitset.  This is merely a style issue, but it makes
8601         it clearer that an entire array is expected.
8602         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
8603         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
8604         Port to the case where bitset_word is not the same as unsigned int.
8605         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
8606         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
8607         Likewise.
8608         * lib/regexec.c (check_dst_limits_calc_pos_1,
8609         check_subexp_matching_top):
8610         (build_trtable, group_nodes_into_DFAstates):
8611         Likewise.
8612         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
8613         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
8614         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
8615         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
8616         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
8617         * lib/regcomp.c (optimize_subexps, lower_subexp):
8618         Work even if bitset_word has holes in its bitwise representation.
8619         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
8620         * lib/regexec.c (check_dst_limits_calc_pos_1,
8621         check_subexp_matching_top):
8622         Likewise.
8623         * lib/regex_internal.c (re_string_reconstruct):
8624         Don't assume UCHAR_MAX == 255.
8625         * lib/regex_internal.h (bitset_set_all): Likewise.
8626         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
8627         All uses changed.
8628         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
8629         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
8630         All uses changed.
8631         (BITSET_WORD_MAX): New macro.
8632         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
8633         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
8634         (bitset_empty, bitset_copy):
8635         Prefer sizeof (bitset) to multiplying it out ourselves.
8636         (bitset_not_merge): Remove; unused.
8637         (bitset_contain): Return bool, not unsigned int with one bit on.
8638         All callers changed.
8639         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
8640         alignment than re_node_set; do this by defining a new internal
8641         type struct dests_alloc and using it to allocate memory.
8642
8643 2005-09-05  Bruno Haible  <bruno@clisp.org>
8644
8645         * gnulib-tool (func_import): Fix comparison in handling of symbolic
8646         links.
8647
8648 2005-09-04  Martin Lambers <marlam@marlam.de>  (tiny change)
8649
8650         * modules/size_max (Makefile.am): Add size_max.h
8651
8652 2005-09-04  Derek Price  <derek@ximbiot.com>
8653
8654         * gnulib-tool (func_import): Fix reversed $symbolic logic.
8655
8656 2005-09-03  Simon Josefsson  <jas@extundo.com>
8657
8658         * gnulib-tool: Fix typo.
8659
8660 2005-09-03  Simon Josefsson  <jas@extundo.com>
8661
8662         * config/srclist.txt: Add glibc bug 1293.
8663
8664 2005-09-03  Derek Price  <derek@ximbiot.com>
8665
8666         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
8667         From Larry Jones <lawrence.jones@ugs.com>.
8668
8669 2005-09-02  Simon Josefsson  <jas@extundo.com>
8670
8671         * modules/socklen: New file.
8672
8673 2005-09-02  Simon Josefsson  <jas@extundo.com>
8674
8675         * modules/havelib: New module.
8676
8677         * modules/gettext, modules/iconv, modules/lock, modules/readline:
8678         Use havelib.
8679
8680 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8681
8682         Check for arithmetic overflow when calculating sizes, to prevent
8683         some buffer-overflow issues.  These patches are conservative, in the
8684         sense that when I couldn't determine whether an overflow was possible,
8685         I inserted a run-time check.
8686         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
8687         macros.
8688         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
8689         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
8690         (re_xnrealloc, re_x2nrealloc): New inline functions.
8691         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
8692         parse_bracket_exp):
8693         (build_equiv_class, build_charclass): Check for arithmetic overflow
8694         in size expression calculations.
8695         * lib/regex_internal.c (re_string_realloc_buffers):
8696         (build_wcs_upper_buffer, re_node_set_add_intersect):
8697         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
8698         (re_dfa_add_node, register_state): Likewise.
8699         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
8700         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
8701         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
8702         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
8703
8704 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8705
8706         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
8707         m4/ulonglong.m4.  Problem reported by Martin Lambers.
8708
8709 2005-09-02  Bruno Haible  <bruno@clisp.org>
8710
8711         Support for lib vs. lib64 distinction on biarch platforms.
8712         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
8713         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
8714         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
8715
8716 2005-09-02  Bruno Haible  <bruno@clisp.org>
8717
8718         * gnulib-tool (import): In the other first-use case, provide defaults
8719         as well.
8720
8721 2005-09-02  Bruno Haible  <bruno@clisp.org>
8722
8723         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
8724         patches not yet found in the latest gettext release.
8725
8726 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8727
8728         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
8729         to avoid a collision with bits/local_lim.h in glibc.
8730         All uses changed.  Problem reported by Dmitry V. Levin in
8731         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
8732
8733         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
8734         bugs in int versus size_t comparisons.
8735         (re_string_context_at): Fix bug where the code assumed that
8736         Idx is signed.
8737
8738         Use bool where appropriate.
8739         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
8740         All callers changed.
8741         (calc_eclosure_iter): Likewise, for ROOT arg.
8742         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
8743         (build_charclass_op): Likewise, for NON_MATCH arg.
8744         * lib/regex_internal.c (re_string_allocate, re_string_construct):
8745         (re_string_construct_common): Likewise, for ICASE arg.
8746         * lib/regexec.c (re_search_2_stub, re_search_stub):
8747         Likewise, for RET_LEN arg.
8748         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
8749         (set_regs): Likewise, for FL_BACKTRACK arg.
8750         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
8751         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
8752         (calc_eclosure_iter, parse_bracket_exp):
8753         Use bool for internal variables that are booleans.
8754         * lib/regexec.c (re_search_internal, check_matching,
8755         proceed_next_node):
8756         (set_regs, build_sifted_states, sift_states_bkref):
8757         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
8758         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
8759         (find_collation_sequence_value):
8760         Likewise.
8761         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
8762         (re_node_set_compare):
8763         Return bool, not int. All callers changed.
8764         * lib/regexec.c (check_halt_node_context, check_dst_limits):
8765         (build_trtable, check_node_accept): Likewise.
8766         * lib/regex_internal.h: Include stdbool.h.
8767
8768         Fix bugs uncovered when converting to bool.
8769         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
8770         failure instead of charging ahead blindly.
8771         * lib/regex_internal.c (register_state): Likewise.
8772         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
8773         for freeing internal storage.
8774         (group_nodes_into_DFA_states): Use unsigned int, not int, for
8775         bitset pieces used as boolean, to avoid undefined behavior
8776         on hosts that do int overflow checking.
8777
8778 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8779
8780         * config/srclist.txt: Add glibc bugs 1285-1287.
8781
8782 2005-09-01  Jim Meyering  <jim@meyering.net>
8783
8784         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
8785         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
8786         Require gl_STAT_MACROS, too.
8787
8788 2005-09-01  Bruno Haible  <bruno@clisp.org>
8789
8790         * gnulib-tool (import): In the first-use case, provide defaults.
8791
8792 2005-09-01  Bruno Haible  <bruno@clisp.org>
8793
8794         * gnulib-tool (func_import): Remove the .tmp files.
8795
8796 2005-09-01  Bruno Haible  <bruno@clisp.org>
8797
8798         * gnulib-tool (func_import): Fix handling of symbolic links.
8799
8800 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8801
8802         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
8803         old glibc regex code mishandles strings longer than 2**31 bytes.
8804         This patch fixes this when the regex code is used in gnulib
8805         (i.e., outside glibc).
8806
8807         This patch should not affect the use of the regex code inside
8808         glibc.  No doubt this problem also needs to be handled for glibc
8809         as well, but the result will be an incompatible change to the
8810         glibc ABI, and the old ABI will have to be supported too.  That
8811         can be the the subject for another patch.
8812
8813         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
8814         governing whether the rest of this patch is active.  By default,
8815         the macro is disabled and the patch has no effect.
8816         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
8817         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
8818         (struct re_pattern_buffer, re_search, re_search_2, re_match):
8819         (re_match_2, re_set_registers): Use the new types.
8820         * lib/regex_internal.h (Idx, re_hashval_t): New types.
8821         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
8822         New macros.
8823         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
8824         (re_string_context_at, bin_tree_t, re_dfastate_t):
8825         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
8826         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
8827         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
8828         (re_string_char_size_at, re_string_wchar_at):
8829         (re_string_elem_size_at):
8830         Use the new types and macros to port to 64-bit hosts.
8831         Use unsigned types for internal values, so that the code
8832         mostly works even for arrays larger than SSIZE_MAX.
8833         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
8834         (search_duplicated_node, calc_eclosure_iter, fetch_number):
8835         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
8836         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
8837         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
8838         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
8839         (calc_inveclosure, parse_dup_op, build_range_exp):
8840         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
8841         (fetch_number, create_token_tree, mark_opt_subexp):
8842         Likewise.
8843         * lib/regex_internal.c (re_string_construct_common,
8844         create_ci_newstate):
8845         (create_cd_newstate, re_string_allocate, re_string_construct):
8846         (re_string_realloc_buffers, build_wcs_upper_buffer):
8847         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
8848         (re_string_reconstruct, re_string_peek_byte_case):
8849         (re_string_fetch_byte_case, re_string_context_at):
8850         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
8851         (re_node_set_init_copy, re_node_set_add_intersect):
8852         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8853         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8854         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
8855         (re_acquire_state, re_acquire_state_context, register_state):
8856         Likewise.
8857         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
8858         search_cur_bkref_entry):
8859         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
8860         (re_search_internal, re_search_2_stub, re_search_stub)
8861         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
8862         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
8863         (update_cur_sifted_state, check_dst_limits):
8864         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
8865         (check_subexp_limits, sift_states_bkref, merge_state_array):
8866         (check_subexp_matching_top, get_subexp, get_subexp_sub):
8867         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
8868         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
8869         (expand_bkref_cache, check_node_accept_bytes):
8870         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
8871         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
8872         (acquire_init_state_context, check_halt_node_context):
8873         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
8874         (sift_states_backward, clean_state_log_if_needed):
8875         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
8876         (find_recover_state, transit_state_sb, transit_state_mb):
8877         (transit_state_bkref, build_trtable, match_ctx_clean):
8878         Likewise.
8879         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
8880         to work around an assumption that REG_MISSING is negative.
8881
8882         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
8883         (seek_collating_symbol_entry) [defined _LIBC]:
8884         (lookup_collation_sequence_value) [defined _LIBC]:
8885         (build_range_exp, build_collating_symbol) [defined _LIBC]:
8886         Use prototypes rather than old-style function definitions.
8887         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
8888         (transit_state_sb) [0]:
8889         (find_collation_sequence_value) [defined _LIBC]: Likewise.
8890
8891         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
8892         rm_eo.
8893
8894         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
8895         (optimize_subexps, lower_subexp):
8896         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
8897         since the signed shift might overflow.  Use 1u<<31 instead.
8898         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
8899         Likewise.
8900         * lib/regexec.c (check_dst_limits_calc_pos_1,
8901         check_subexp_matching_top): Likewise.
8902
8903         * lib/regcomp.c (optimize_subexps, lower_subexp):
8904         Use CHAR_BIT rather than 8, for clarity.
8905         * lib/regexec.c (check_dst_limits_calc_pos_1):
8906         (check_subexp_matching_top): Likewise.
8907         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
8908         have to worry about portability issues when shifting it left.
8909         Remove no-longer-needed test for table_size > 0.
8910         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
8911         in a word, as the resulting behavior is undefined.
8912         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
8913         in one case, a <= should have been an <, and in another case the
8914         whole test was missing.
8915         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
8916         the standard name CHAR_BIT.
8917         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
8918         this is not true on one's complement and signed-magnitude hosts.
8919
8920         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
8921         next_last_offset.
8922         (struct re_dfa_t): Remove unused member states_alloc.
8923         * lib/regcomp.c (init_dfa): Don't initialize unused members.
8924
8925 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8926
8927         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
8928         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
8929         and large-file glibc and in 32-bit large-file Solaris.
8930
8931 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8932
8933         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
8934         lengths fit in regoff_t; this isn't true if regoff_t is the same
8935         width as size_t.
8936         * lib/regex.c (re_search_internal): 5th arg is LAST_START
8937         (= START + RANGE) instead of RANGE.  This avoids overflow
8938         problems when regoff_t is the same width as size_t.
8939         All callers changed.
8940         (re_search_2_stub): Check for overflow when adding the
8941         sizes of the two strings.
8942         (re_search_stub): Check for overflow when adding START
8943         to RANGE; if it occurs, substitute the extreme value.
8944
8945 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8946
8947         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
8948
8949 2005-08-31  Jim Meyering  <jim@meyering.net>
8950
8951         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
8952         a pointer-to-const.
8953         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
8954         (register_state): Likewise.
8955         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
8956         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
8957         (group_nodes_into_DFAstates): Likewise.
8958
8959 2005-08-31  Jim Meyering  <jim@meyering.net>
8960
8961         * check-module: Add a FIXME comment.
8962
8963 2005-08-31  Eric Blake  <ebb9@byu.net>
8964
8965         * modules/unistd-safer (Files): Add unistd--.h.
8966         * modules/stdio-safer (Files): Add stdio--.h.
8967
8968 2005-08-31  Derek Price  <derek@ximbiot.com>
8969
8970         * lib/getdelim.c (getdelim): Return EOF on EOF.
8971         Reported by Larry Jones <lawrence.jones@ugs.com>.
8972
8973 2005-08-31  Bruno Haible  <bruno@clisp.org>
8974
8975         Avoid unnecessary diffs in the generated lib/Makefile.am.
8976         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
8977         the generated files.
8978         (func_import): Don't set cmd.
8979
8980 2005-08-31  Bruno Haible  <bruno@clisp.org>
8981
8982         * lib/strstr.c: Include <stddef.h>, for NULL.
8983         * lib/strcasestr.c: Likewise.
8984         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8985
8986 2005-08-31  Bruno Haible  <bruno@clisp.org>
8987
8988         * gnulib-tool: New option --macro-prefix.
8989         (func_import): Use macro_prefix.
8990         (import): Handle option --macro-prefix.
8991
8992 2005-08-31  Bruno Haible  <bruno@clisp.org>
8993
8994         * gnulib-tool (import): Rename most ac_* variables to cached_*.
8995         Also use new variables cached_lgpl, cached_libtool.
8996
8997 2005-08-31  Bruno Haible  <bruno@clisp.org>
8998
8999         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
9000         always instantiating them.
9001
9002 2005-08-31  Bruno Haible  <bruno@clisp.org>
9003
9004         * gnulib-tool (func_import): Read the previous cached settings
9005         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
9006         earlier added by gnulib but are now dropped. Warn when a gnulib file
9007         overwrites a non-gnulib file.
9008
9009 2005-08-31  Bruno Haible  <bruno@clisp.org>
9010
9011         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
9012         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
9013         projects that don't keep autogenerated files in CVS. Put into
9014         actioncmd only the specified modules, not the transitive closure.
9015
9016 2005-08-31  Bruno Haible  <bruno@clisp.org>
9017
9018         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
9019         Create directories that shall be filled.
9020         (import): Don't look for gl_* macros in configure.ac. Recurse across
9021         all directories containing a gnulib-cache.m4 files, if meaningful.
9022
9023 2005-08-31  Bruno Haible  <bruno@clisp.org>
9024
9025         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
9026         (import): Set seen_libtool when we see gl_LIBTOOL.
9027
9028 2005-08-31  Bruno Haible  <bruno@clisp.org>
9029
9030         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
9031         declaration macro definitions from generated gnulib.m4.
9032
9033 2005-08-30  "Oskar Liljeblad" <oskar@osk.mine.nu>
9034
9035         * lib/iconvme.h: Add prototype for iconv_alloc.
9036
9037 2005-08-29  Simon Josefsson  <jas@extundo.com>
9038
9039         * lib/iconvme.c: Fix errno.
9040
9041 2005-08-29  Bruno Haible  <bruno@clisp.org>
9042
9043         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
9044         that it works when the directory contains spaces.
9045
9046 2005-08-29  Bruno Haible  <bruno@clisp.org>
9047
9048         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
9049
9050 2005-08-29  Bruno Haible  <bruno@clisp.org>
9051
9052         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
9053         Emit more advice.
9054
9055 2005-08-29  Bruno Haible  <bruno@clisp.org>
9056         and Stepan Kasal  <kasal@ucw.cz>
9057
9058         * check-module: If more parameters are given, check each of them
9059         separately; add more exceptions, as noted by Jim Meyering.
9060         (check_module): New procedure.
9061         (%exempt_header): Now contains all exceptions.
9062
9063 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
9064
9065         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
9066
9067 2005-08-29  "Oskar Liljeblad" <oskar@osk.mine.nu>
9068
9069         * lib/iconvme.c: Split iconv_string into iconv_alloc.
9070
9071 2005-08-28  Bruno Haible  <bruno@clisp.org>
9072
9073         * m4/gnulib-tool.m4: New file.
9074
9075 2005-08-27  Jim Meyering  <jim@meyering.net>
9076
9077         * modules/unistd-safer (Files): Add pipe-safer.c.
9078         * modules/fcntl-safer (Files): Add creat-safer.c.
9079
9080 2005-08-27  Jim Meyering  <jim@meyering.net>
9081
9082         * m4/stdlib-safer.m4: New file.  From coreutils.
9083         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
9084         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
9085         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
9086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
9087         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
9088
9089 2005-08-27  Jim Meyering  <jim@meyering.net>
9090
9091         * lib/fopen-safer.c: Merge minor changes from coreutils.
9092         * lib/dup-safer.c: Likewise.
9093         * lib/fd-safer.c: Likewise.
9094
9095         Merge from coreutils.
9096         * lib/stdio--.h: New file.
9097         * lib/stdlib--.h: New file.
9098         * lib/mkstemp-safer.c: New file.
9099
9100         GNU tar needs these.
9101         * lib/pipe-safer.c: New file.
9102         * lib/creat-safer.c: New file.
9103         * lib/fcntl--.h (creat): Define to creat_safer.
9104         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
9105         * lib/unistd--.h (pipe): Define to pipe_safer.
9106         * lib/unistd-safer.h: Declare pipe_safer.
9107
9108 2005-08-26  Simon Josefsson  <jas@extundo.com>
9109
9110         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
9111         Haible <bruno@clisp.org>.
9112
9113 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
9114
9115         * lib/regex_internal.h: Remove all references to
9116         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
9117         or better.
9118         (bitset_not, bitset_merge, bitset_not_merge):
9119         (bitset_mask, re_string_allocate, re_string_construct):
9120         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
9121         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
9122         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
9123         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
9124         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9125         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9126         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
9127         (re_acquire_state_context):
9128         Remove unnecessary forward decls.
9129         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
9130         Put __attribute at function definition,
9131         now that the function decl has been removed.
9132         * lib/regex_internal.c (re_string_peek_byte_case):
9133         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
9134         Likewise.
9135
9136 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
9137
9138         * m4/regex.m4: Add AC_PREREQ(2.50).
9139         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
9140
9141 2005-08-25  Simon Josefsson  <jas@extundo.com>
9142
9143         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
9144         __fsetlocking.
9145
9146 2005-08-25  Simon Josefsson  <jas@extundo.com>
9147
9148         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
9149         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
9150         GLIBC specific code.
9151
9152 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9153
9154         Make regex safe for g++.  This fixes one real bug (an "err"
9155         that should have been "*err").  g++ problem reported by
9156         Sam Steingold.
9157         * lib/regex_internal.h (re_calloc): New macro, consistent with
9158         re_malloc etc.  All callers of calloc changed to use re_calloc.
9159         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
9160         not int.  All callers changed.
9161         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
9162         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
9163         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
9164         (find_recover_state): Change "err" to "*err"; this fixes what
9165         appears to be a real bug.
9166         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
9167         versus int.
9168
9169 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9170
9171         * modules/regex (Depends-on): Add malloc, since the code
9172         assumes that !malloc(0) means failure.
9173
9174 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9175
9176         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
9177
9178         alloca modernization/simplification for regex.
9179         * lib/regex.c: Remove portability cruft for alloca.  This no longer
9180         needs to be at the start of the file, and can be moved into
9181         regex_internal.h and simplified.
9182         * lib/regex_internal.h: Include <alloca.h>.
9183         (__libc_use_alloca) [!defined _LIBC]: New macro.
9184         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
9185         now works outside glibc.
9186
9187 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9188
9189         * config/srclist.txt: Add glibc bugs 1241, 1245.
9190
9191 2005-08-25  Jim Meyering  <jim@meyering.net>
9192
9193         * lib/open-safer.c: Include <config.h>.
9194         Otherwise, we'd lose LARGEFILE support in any file using
9195         e.g. "fcntl--.h"
9196
9197 2005-08-25  Bruno Haible  <bruno@clisp.org>
9198
9199         * m4/minmax.m4: Require autoconf 2.52.
9200         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
9201         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
9202         alternatives of translit over the alphabet.
9203         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
9204
9205 2005-08-24  Simon Josefsson  <jas@extundo.com>
9206
9207         * tests/test-getpass.c: New file.
9208
9209 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9210
9211         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
9212         for GNU regex features.
9213
9214 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9215
9216         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
9217         * lib/regex.h (regerror): Likewise.
9218
9219         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
9220         requires this.  (The code never needed it.)
9221
9222         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
9223         All uses of recently-renamed identifiers changed to use the new,
9224         POSIX-compliant names.  The code will build and run just fine
9225         without these changes, but it's better to eat our own dog food
9226         and use the standard-conforming names.
9227
9228         * lib/regex.h: Fix a multitude of POSIX name space violations.
9229         These changes have an effect only for programs that define
9230         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
9231         do not change anything for programs compiled in the normal way.
9232         Also, there is no effect on the ABI.
9233
9234         (_REGEX_SOURCE): New macro.
9235         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
9236         defined and _GNU_SOURCE is not; this fixes a name space violation.
9237
9238         Rename the following macros to obey POSIX requirements.
9239         The old names are still visible as macros if _REGEX_SOURCE is defined.
9240         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
9241         RE_BACKSLASH_ESCAPE_IN_LISTS.
9242         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
9243         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
9244         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
9245         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
9246         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
9247         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
9248         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
9249         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
9250         (REG_INTERVALS): renamed from RE_INTERVALS.
9251         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
9252         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
9253         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
9254         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
9255         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
9256         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
9257         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
9258         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
9259         RE_UNMATCHED_RIGHT_PAREN_ORD.
9260         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
9261         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
9262         (REG_DEBUG): renamed from RE_DEBUG.
9263         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
9264         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
9265         unusual, since we can't clash with the POSIX REG_ICASE.
9266         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
9267         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
9268         (REG_NO_SUB): renamed from RE_NO_SUB.
9269         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
9270         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
9271         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
9272         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
9273         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
9274         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
9275         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
9276         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
9277         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
9278         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
9279         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
9280         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
9281         RE_SYNTAX_POSIX_MINIMAL_BASIC.
9282         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
9283         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
9284         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
9285         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
9286         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
9287         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
9288         (REG_FIXED): Renamed from REGS_FIXED.
9289         (REG_NREGS): Renamed from RE_NREGS.
9290
9291         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
9292         of other REG_* macros, since POSIX says the user is allowed to
9293         #undef these macros selectively.
9294
9295         (reg_errcode_t): Update comment stating what other tables need
9296         to be consistent.
9297
9298         Rename the following enum values to obey POSIX requirements.
9299         The old names are still visible as macros.
9300         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
9301         is not defined, since GNU is supposed to be a superset of POSIX as
9302         much as possible, and since we want reg_errcode_t to be a signed
9303         type for implementation consistency.
9304         (_REG_NOERROR): Renamed from REG_NOERROR.
9305         (_REG_NOMATCH): Renamed from REG_NOMATCH.
9306         (_REG_BADPAT): Renamed from REG_BADPAT.
9307         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
9308         (_REG_ECTYPE): Renamed from REG_ECTYPE.
9309         (_REG_EESCAPE): Renamed from REG_EESCAPE.
9310         (_REG_ESUBREG): Renamed from REG_ESUBREG.
9311         (_REG_EBRACK): Renamed from REG_EBRACK.
9312         (_REG_EPAREN): Renamed from REG_EPAREN.
9313         (_REG_EBRACE): Renamed from REG_EBRACE.
9314         (_REG_BADBR): Renamed from REG_BADBR.
9315         (_REG_ERANGE): Renamed from REG_ERANGE.
9316         (_REG_ESPACE): Renamed from REG_ESPACE.
9317         (_REG_BADRPT): Renamed from REG_BADRPT.
9318         (_REG_EEND): Renamed from REG_EEND.
9319         (_REG_ESIZE): Renamed from REG_ESIZE.
9320         (_REG_ERPAREN): Renamed from REG_ERPAREN.
9321         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
9322         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
9323         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
9324         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
9325
9326         (_REG_RE_NAME, _REG_RM_NAME): New macros.
9327         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
9328         changed.  But support the old name if the new one is not defined
9329         and if _REGEX_SOURCE.
9330
9331         Change the following member names in struct re_pattern_buffer.
9332         The old names are still supported if !_REGEX_SOURCE.
9333         The new names are always supported, regardless of _REGEX_SOURCE.
9334         (re_buffer): Renamed from buffer.
9335         (re_allocated): Renamed from allocated.
9336         (re_used): Renamed from used.
9337         (re_syntax): Renamed from syntax.
9338         (re_fastmap): Renamed from fastmap.
9339         (re_translate): Renamed from translate.
9340         (re_can_be_null): Renamed from can_be_null.
9341         (re_regs_allocated): Renamed from regs_allocated.
9342         (re_fastmap_accurate): Renamed from fastmap_accurate.
9343         (re_no_sub): Renamed from no_sub.
9344         (re_not_bol): Renamed from not_bol.
9345         (re_not_eol): Renamed from not_eol.
9346         (re_newline_anchor): Renamed from newline_anchor.
9347
9348         Change the following member names in struct re_registers.
9349         The old names are still supported if !_REGEX_SOURCE.
9350         The new names are always supported, regardless of _REGEX_SOURCE.
9351         (rm_num_regs): Renamed from num_regs.
9352         (rm_start): Renamed from start.
9353         (rm_end): Renamed from end.
9354
9355         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
9356         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
9357         Prepend __ to parameter names.
9358
9359         Undo yesterday's changes.
9360
9361 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9362
9363         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
9364         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
9365         lib/regex.c.
9366
9367 2005-08-24  Jim Meyering  <jim@meyering.net>
9368
9369         Sync from coreutils.
9370         * m4/fcntl-safer.m4: New file.
9371
9372         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
9373         and object files for this module.
9374
9375 2005-08-24  Jim Meyering  <jim@meyering.net>
9376
9377         Sync from coreutils.
9378         * lib/fcntl--.h, fcntl-safer.h, open-safer.c: New files.
9379
9380 2005-08-24  Jim Meyering  <jim@meyering.net>
9381
9382         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
9383         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
9384
9385 2005-08-24  Jim Meyering  <jim@meyering.net>
9386
9387         * modules/fcntl-safer: New module.
9388         * modules/fts (Depends-on): Add fcntl-safer.
9389         * MODULES.html.sh (File descriptor based Input/Output):
9390         Add fcntl-safer.
9391
9392 2005-08-24  Bruno Haible  <bruno@clisp.org>
9393
9394         Support for unit test modules.
9395         * modules/README: Mention tests modules.
9396         * modules/TEMPLATE-TESTS: New file.
9397         * gnulib-tool: New options --extract-tests-module, --with-tests and
9398         --tests-base (unused for the moment).
9399         (testsbase, inctests): New variables.
9400         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
9401         (func_verify_module): Exclude TEMPLATE-TESTS.
9402         (func_verify_nontests_module, func_verify_tests_module): New functions.
9403         (func_get_dependencies): Add implicit dependency for tests modules.
9404         (func_get_tests_module): New function.
9405         (func_modules_transitive_closure): When --with-tests was specified,
9406         include the unit tests as well, unless explicitly avoided.
9407         (func_emit_lib_Makefile_am): Ignore the tests modules here.
9408         (func_emit_tests_Makefile_am): New function.
9409         (func_create_testdir): When --with-tests was specified, emit a
9410         tests/ directory.
9411         * MODULES.html.sh (Future developments): Update.
9412
9413 2005-08-24  Bruno Haible  <bruno@clisp.org>
9414
9415         * modules/tls-tests: New file.
9416         * tests/test-tls.c: New file, from GNU gettext.
9417
9418 2005-08-24  Bruno Haible  <bruno@clisp.org>
9419
9420         * modules/lock-tests: New file.
9421         * tests/test-lock.c: New file, from GNU gettext.
9422
9423 2005-08-24  Bruno Haible  <bruno@clisp.org>
9424
9425         * lib/lock.h: Add multiple inclusion guard.
9426         * lib/tls.h: Add multiple inclusion guard.
9427
9428 2005-08-24  Bruno Haible  <bruno@clisp.org>
9429
9430         * gnulib-tool: Add support for the --aux-dir option to
9431         --create-testdir, --create-megatestdir, --test, --megatest.
9432         (func_create_testdir, func_create_megatestdir): Optionally emit a
9433         AC_CONFIG_AUX_DIR directive.
9434         (create-testdir, create-megatestdir, test, megatest): Provide a
9435         default value for $auxdir.
9436
9437 2005-08-24  Bruno Haible  <bruno@clisp.org>
9438
9439         * gnulib-tool (import): Use compound statement instead of subshell
9440         where possible.
9441
9442 2005-08-24  Bruno Haible  <bruno@clisp.org>
9443
9444         * gnulib-tool (import): Change --aux-dir default to "build-aux".
9445
9446 2005-08-24  Bruno Haible  <bruno@clisp.org>
9447
9448         * gnulib-tool (func_version): Update.
9449
9450 2005-08-24  Bruno Haible  <bruno@clisp.org>
9451
9452         * gnulib-tool (func_import, func_create_testdir,
9453         func_create_megatestdir): Quote all autoconf macro arguments.
9454
9455 2005-08-24  Bruno Haible  <bruno@clisp.org>
9456
9457         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
9458         option --force, because --force causes the aclocal.m4 of each
9459         subdirectory to be newer than the corresponding config.h.in.
9460
9461 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9462
9463         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
9464         All contents moved to gl_REGEX.
9465         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
9466         assume that it does.
9467
9468 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9469
9470         * lib/regex.h (REG_NOSYS)
9471         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
9472         Define, since POSIX requires it as of 2001.
9473         (_REG_ENOSYS)
9474         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
9475         New private symbol, used to keep the enum signed in all cases.
9476         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
9477         Youngman in
9478         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
9479
9480         * lib/regex_internal.c (re_string_skip_chars, register_state):
9481         (calc_state_hash):
9482         Remove forward decls; no longer needed now that we use prototypes.
9483         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
9484         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
9485         (clean_state_log_if_needed): Likewise.
9486
9487 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9488
9489         * config/srclist.txt: Add glibc bugs 1231-1233.
9490
9491 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9492
9493         Fix problems reported by Sam Steingold in
9494         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
9495         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
9496         assumed that reg_errcode_t is a signed type, which is not
9497         necessarily true if _XOPEN_SOURCE is not defined.
9498         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
9499         since some compilers warn about it otherwise.
9500
9501 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9502
9503         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
9504         (init_word_char, create_initial_state, duplicate_node_closure):
9505         (fetch_token, peek_token_bracket, build_range_exp):
9506         (build_collating_symbol): Remove forward decls; no longer needed
9507         now that we use prototypes.
9508
9509         * lib/regcomp.c:
9510         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
9511         (re_compile_fastmap_iter, regcomp, regerror, regfree):
9512         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
9513         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
9514         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
9515         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
9516         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
9517         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
9518         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
9519         (build_range_exp, build_collating_symbol, parse_bracket_exp):
9520         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
9521         (build_charclass, build_charclass_op, fetch_number, create_tree):
9522         (create_token_tree, mark_opt_subexp, duplicate_tree):
9523         Use prototypes rather than old-style definitions.
9524
9525         * lib/regex_internal.c:
9526         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
9527         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
9528         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
9529         (re_string_reconstruct, re_string_peek_byte_case):
9530         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
9531         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
9532         (re_node_set_init_copy, re_node_set_add_intersect):
9533         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9534         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9535         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
9536         (re_acquire_state, re_acquire_state_context, register_state):
9537         (create_ci_newstate, create_cd_newstate, free_state):
9538         Likewise.
9539         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
9540         re_search_2):
9541         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
9542         (re_search_internal, prune_impossible_nodes):
9543         (acquire_init_state_context, check_matching, static):
9544         (check_halt_node_context, check_halt_state_context, proceed_next_node):
9545         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
9546         (update_regs, sift_states_backward, build_sifted_states):
9547         (clean_state_log_if_needed, merge_state_array):
9548         (update_cur_sifted_state, add_epsilon_src_nodes):
9549         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
9550         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
9551         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
9552         (find_recover_state, check_subexp_matching_top, transit_state_mb):
9553         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
9554         (check_arrival, check_arrival_add_next_nodes):
9555         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
9556         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
9557         (check_node_accept_bytes, check_node_accept, extend_buffers):
9558         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
9559         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
9560         (sift_ctx_init):
9561         Likewise.
9562
9563         * lib/regex_internal.h:
9564         (re_string_allocate, re_string_construct, re_string_reconstruct):
9565         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
9566         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
9567         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
9568         (re_string_context_at, re_string_peek_byte_case):
9569         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
9570         is defined, since we now use prototypes always.
9571
9572         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
9573         C89 or better.  All uses removed.
9574
9575 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9576
9577         * config/srclist.txt: Add glibc bugs 1220-1227.
9578
9579 2005-08-20  Jim Meyering  <jim@meyering.net>
9580
9581         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
9582         of unused local, dfa.
9583
9584 2005-08-20  Bruno Haible  <bruno@clisp.org>
9585
9586         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
9587
9588 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9589
9590         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
9591         (re_node_set_insert_last, re_dfa_add_node):
9592         Rename local variables to avoid GCC shadowing warnings.
9593
9594 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9595
9596         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
9597         [defined lint]: Suppress bogus uninitialized-variable warnings.
9598
9599         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
9600         and let the caller return REG_ESPACE if out of space.  This
9601         removes an uninitialied-variable warning with GCC 4.0.1, and also
9602         avoids taking the address of a local variable.  All callers
9603         changed.
9604
9605 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9606
9607         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
9608         $LIBCSRC/posix/regexec.c.
9609         Add glibc bug 1217 for regcomp.c.
9610
9611 2005-08-19  Jim Meyering  <jim@meyering.net>
9612
9613         * lib/regexec.c (proceed_next_node): Redo local variables to
9614         avoid GCC shadowing warnings.
9615
9616 2005-08-18  Bruno Haible  <bruno@clisp.org>
9617
9618         * lib/strstr.c (strstr): Fix return value in multibyte case.
9619         * lib/strcasestr.c (strcasestr): Likewise.
9620
9621 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9622
9623         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
9624
9625 2005-08-17  Jim Meyering  <jim@meyering.net>
9626
9627         Make the %s format (seconds since the epoch) work for a negative
9628         number and when used with a zero-padded field width, e.g. %015s.
9629
9630         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
9631         label so that it precedes the code to set `digits'.  Otherwise,
9632         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
9633         print `00-22'.  Now, it prints `-0022', as it should.
9634
9635 2005-08-17  Bruno Haible  <bruno@clisp.org>
9636
9637         * modules/strstr (Files): Add m4/mbrtowc.m4.
9638         (Depends-on): Add mbuiter.
9639
9640 2005-08-17  Bruno Haible  <bruno@clisp.org>
9641
9642         * modules/strcasestr: New file.
9643         * MODULES.html.sh (String handling, based on ANSI C 89): Add
9644         strcasestr.
9645
9646 2005-08-17  Bruno Haible  <bruno@clisp.org>
9647
9648         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
9649
9650 2005-08-17  Bruno Haible  <bruno@clisp.org>
9651
9652         * modules/mbuiter: New file.
9653         * MODULES.html.sh (Extended multibyte and wide character utilities):
9654         Add mbuiter.
9655
9656 2005-08-17  Bruno Haible  <bruno@clisp.org>
9657
9658         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
9659         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
9660
9661 2005-08-17  Bruno Haible  <bruno@clisp.org>
9662
9663         * m4/strcasestr.m4: New file.
9664
9665 2005-08-17  Bruno Haible  <bruno@clisp.org>
9666
9667         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
9668         * lib/strstr.c: Completely rewritten, with multibyte locale support.
9669
9670 2005-08-17  Bruno Haible  <bruno@clisp.org>
9671
9672         * lib/strcasestr.h: New file.
9673         * lib/strcasestr.c: New file.
9674
9675 2005-08-17  Bruno Haible  <bruno@clisp.org>
9676
9677         * lib/strcasecmp.c: Use mbuiter.h.
9678
9679 2005-08-17  Bruno Haible  <bruno@clisp.org>
9680
9681         * lib/mbuiter.h: New file.
9682
9683 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
9686         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
9687         and gl_GETOPT are both invoked via different paths (as happens
9688         with GNU tar CVS because it uses both argp and getopt), the former
9689         wins.
9690
9691 2005-08-16  Bruno Haible  <bruno@clisp.org>
9692
9693         * modules/tls: New file.
9694         * MODULES.html.sh (Multithreading): Add tls.
9695
9696 2005-08-16  Bruno Haible  <bruno@clisp.org>
9697
9698         * modules/strnlen1: New file.
9699         * MODULES.html.sh (String handling): Add strnlen1.
9700
9701 2005-08-16  Bruno Haible  <bruno@clisp.org>
9702
9703         * modules/strcase (Files): Add m4/mbrtowc.m4.
9704         (Depends-on): Add strnlen1, mbchar.
9705
9706 2005-08-16  Bruno Haible  <bruno@clisp.org>
9707
9708         * modules/mbiter: New file.
9709         * MODULES.html.sh (Extended multibyte and wide character utilities):
9710         Add mbiter.
9711
9712 2005-08-16  Bruno Haible  <bruno@clisp.org>
9713
9714         * modules/mbfile: New file.
9715         * MODULES.html.sh (Extended multibyte and wide character utilities):
9716         Add mbfile.
9717
9718 2005-08-16  Bruno Haible  <bruno@clisp.org>
9719
9720         * modules/mbchar: New file.
9721         * MODULES.html.sh (Extended multibyte and wide character utilities):
9722         New section.
9723
9724 2005-08-16  Bruno Haible  <bruno@clisp.org>
9725
9726         * m4/tls.m4: New file, from GNU gettext.
9727
9728 2005-08-16  Bruno Haible  <bruno@clisp.org>
9729
9730         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
9731         always.
9732         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
9733
9734 2005-08-16  Bruno Haible  <bruno@clisp.org>
9735
9736         * m4/mbiter.m4: New file.
9737
9738 2005-08-16  Bruno Haible  <bruno@clisp.org>
9739
9740         * m4/mbfile.m4: New file.
9741
9742 2005-08-16  Bruno Haible  <bruno@clisp.org>
9743
9744         * m4/mbchar.m4: New file.
9745
9746 2005-08-16  Bruno Haible  <bruno@clisp.org>
9747
9748         * lib/tls.h: New file, from GNU gettext.
9749         * lib/tls.c: New file, from GNU gettext.
9750
9751 2005-08-16  Bruno Haible  <bruno@clisp.org>
9752
9753         * lib/strnlen1.h: New file.
9754         * lib/strnlen1.c: New file.
9755
9756 2005-08-16  Bruno Haible  <bruno@clisp.org>
9757
9758         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
9759         (mbi_init): Update.
9760         (mbi_avail, mbi_advance): Let the iteration end before the terminating
9761         NUL byte, not after it.
9762
9763 2005-08-16  Bruno Haible  <bruno@clisp.org>
9764
9765         * lib/strcase.h (strcasecmp): Add note in comments.
9766         * lib/strncasecmp.c: Use code from strcasecmp.c.
9767         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
9768         (strcasecmp): Work correctly in multibyte locales.
9769
9770 2005-08-16  Bruno Haible  <bruno@clisp.org>
9771
9772         * lib/mbiter.h: New file.
9773
9774 2005-08-16  Bruno Haible  <bruno@clisp.org>
9775
9776         * lib/mbfile.h: New file.
9777
9778 2005-08-16  Bruno Haible  <bruno@clisp.org>
9779
9780         * lib/mbchar.h: New file.
9781         * lib/mbchar.c: New file.
9782
9783 2005-08-16  Bruno Haible  <bruno@clisp.org>
9784
9785         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
9786         the valid ones. Makes the comparison operations transitive:
9787         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
9788         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
9789
9790 2005-08-15  Simon Josefsson  <jas@extundo.com>
9791
9792         * modules/ssize_t (License): Change to 'unlimited'.
9793
9794         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
9795
9796 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9797
9798         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
9799         Add comments for each pending glibc patch.
9800
9801 2005-08-15  Bruno Haible  <bruno@clisp.org>
9802
9803         * lib/regex.h (__restrict_arr): Don't define to __restrict if
9804         __cplusplus is defined.
9805
9806 2005-08-14  Jim Meyering  <jim@meyering.net>
9807
9808         Sync from coreutils.
9809
9810         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
9811         Use the hash-table-based cycle-detection code not just when
9812         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
9813         Reported by James Youngman in
9814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
9815         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
9816         FTS_TIGHT_CYCLE_CHECK.
9817         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
9818         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
9819         once again.
9820         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
9821         * lib/fts.c (fd_safer): Remove decl.
9822         Include fcntl--.h rather than unistd-safer.h
9823         (fts_safe_changedir): Don't call fd_safer; no longer needed
9824         now that we include fcntl--.h.
9825
9826 2005-08-12  Simon Josefsson  <jas@extundo.com>
9827
9828         * modules/getndelim2: Use ssize_t module.
9829         * modules/getnline: Likewise.
9830         * modules/safe-read: Likewise.
9831         * modules/xreadlink: Likewise.
9832
9833         * modules/ssize_t: New file.
9834
9835 2005-08-12  Simon Josefsson  <jas@extundo.com>
9836
9837         * m4/readline.m4: Look for termcap, curses or ncurses if required.
9838
9839 2005-08-12  Simon Josefsson  <jas@extundo.com>
9840
9841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9842         ssize_t.
9843
9844 2005-08-12  Simon Josefsson  <jas@extundo.com>
9845
9846         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
9847         readline, getdelim and check_version.
9848         (Support for systems lacking ISO C 99: Sizes of integer types):
9849         Add size_max.
9850
9851 2005-08-12  Bruno Haible  <bruno@clisp.org>
9852
9853         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
9854
9855 2005-08-11  Simon Josefsson  <jas@extundo.com>
9856
9857         * modules/readline: New file.
9858
9859         * modules/strnlen (Files): Add strnlen.h.
9860
9861 2005-08-11  Simon Josefsson  <jas@extundo.com>
9862
9863         * m4/readline.m4: New file.
9864
9865 2005-08-11  Simon Josefsson  <jas@extundo.com>
9866
9867         * lib/readline.h, readline.c: New file.
9868
9869 2005-08-11  Simon Josefsson  <jas@extundo.com>
9870
9871         * doc/gnulib.texi (Initial import, Finishing touches): Mention
9872         gl_AVOID.
9873
9874 2005-08-11  Bruno Haible  <bruno@clisp.org>
9875
9876         * lib/strnlen.h (strnlen): Change parameter name to match comment.
9877
9878 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
9879
9880         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
9881
9882 2005-08-10  Simon Josefsson  <jas@extundo.com>
9883
9884         * tests/test-iconvme.c: New file.
9885
9886 2005-08-10  Simon Josefsson  <jas@extundo.com>
9887
9888         * m4/strnlen.m4: New file.
9889
9890         * m4/strndup.m4: Don't check for strnlen declaration, done in
9891         strnlen.m4.
9892
9893 2005-08-10  Simon Josefsson  <jas@extundo.com>
9894
9895         * lib/strndup.c: Use strnlen.h.
9896
9897         * lib/strnlen.h: New file.
9898
9899 2005-08-08  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>  (tiny change)
9900
9901         * README: Typos.
9902
9903 2005-08-02  Simon Josefsson  <jas@extundo.com>
9904
9905         * modules/readline: New file.
9906
9907 2005-08-02  Simon Josefsson  <jas@extundo.com>
9908
9909         * modules/getdelim: New file.
9910
9911         * modules/getline: Rewrite, don't use getndelim2.
9912
9913 2005-08-02  Simon Josefsson  <jas@extundo.com>
9914
9915         * m4/getline.m4: Separate out getdelim stuff into separate module.
9916
9917         * m4/getdelim.m4: New file.
9918
9919 2005-08-02  Simon Josefsson  <jas@extundo.com>
9920
9921         * lib/getline.h, getline.c: Rewrite.
9922
9923         * lib/getdelim.h, getdelim.c: New files, ported from glibc.
9924
9925 2005-07-31  Bruno Haible  <bruno@clisp.org>
9926
9927         * lib/lock.h (gl_lock_initializer): New macro.
9928         (gl_lock_define_initialized): Use it.
9929         (gl_rwlock_initializer): New macro.
9930         (gl_rwlock_define_initialized): Use it.
9931         (gl_recursive_lock_initializer): New macro.
9932         (gl_recursive_lock_define_initialized): Use it.
9933
9934 2005-07-30  Karl Berry  <karl@gnu.org>
9935
9936         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
9937         Report from Ben Pfaff, regarding getopt.
9938
9939 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
9940
9941         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
9942         normal way.
9943         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
9944         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
9945         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
9946         (gl_GETOPT): Use the new macros.  Most of the implementation
9947         is moved to the new macros.  This is for programs like Emacs
9948         that don't want all the functionality of gl_GETOPT.
9949
9950 2005-07-26  Bruno Haible  <bruno@clisp.org>
9951
9952         * m4/lock.m4: Update from GNU gettext.
9953
9954 2005-07-26  Bruno Haible  <bruno@clisp.org>
9955
9956         * lib/lock.h: Update from GNU gettext.
9957         * lib/lock.c: Update from GNU gettext.
9958
9959 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9960
9961         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
9962         obsolescent AC_TRY_RUN.  Include the default includes files, for
9963         'exit'.
9964
9965 2005-07-24  Bruno Haible  <bruno@clisp.org>
9966
9967         * modules/visibility: New file.
9968         * MODULES.html.sh (Misc): Add visibility.
9969
9970 2005-07-24  Bruno Haible  <bruno@clisp.org>
9971
9972         * m4/visibility.m4: New file.
9973
9974 2005-07-24  Bruno Haible  <bruno@clisp.org>
9975
9976         * doc/visibility.texi: New file.
9977
9978 2005-07-22  Bruno Haible  <bruno@clisp.org>
9979
9980         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
9981         $(ALLOCA_H), redundant through BUILT_SOURCES.
9982         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
9983         redundant through BUILT_SOURCES.
9984         * modules/byteswap (Makefile.am): Remove explicit dependency on
9985         $(BYTESWAP_H), redundant through BUILT_SOURCES.
9986         * modules/fnmatch (Makefile.am): Remove explicit dependency on
9987         $(FNMATCH_H), redundant through BUILT_SOURCES.
9988         * modules/getopt (Makefile.am): Remove explicit dependency on
9989         $(GETOPT_H), redundant through BUILT_SOURCES.
9990         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
9991         redundant through BUILT_SOURCES.
9992         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
9993         redundant through BUILT_SOURCES.
9994         * modules/stdbool (Makefile.am): Remove explicit dependency on
9995         $(STDBOOL_H), redundant through BUILT_SOURCES.
9996         * modules/stdint (Makefile.am): Remove explicit dependency on
9997         $(STDINT_H), redundant through BUILT_SOURCES.
9998         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
9999         Remove explicit dependency on $(SYSEXITS_H).
10000         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
10001
10002 2005-07-18  Simon Josefsson  <jas@extundo.com>
10003
10004         * lib/check-version.c (check_version): Accept identical versions too.
10005
10006 2005-07-18  Bruno Haible  <bruno@clisp.org>
10007
10008         * modules/lock: New file.
10009         * MODULES.html.sh (Multithreading): New section.
10010
10011 2005-07-18  Bruno Haible  <bruno@clisp.org>
10012
10013         * m4/lock.m4: New file, from GNU gettext.
10014
10015 2005-07-18  Bruno Haible  <bruno@clisp.org>
10016
10017         * lib/lock.h: New file, from GNU gettext.
10018         * lib/lock.c: New file, from GNU gettext.
10019
10020 2005-07-18  Bruno Haible  <bruno@clisp.org>
10021
10022         * lib/lock.h (gl_once_t): New type.
10023         (gl_once_define, gl_once): New macros.
10024         * lib/lock.c (fresh_once): New variable.
10025         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
10026         functions.
10027
10028 2005-07-16  Simon Josefsson  <jas@extundo.com>
10029
10030         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
10031         workaround, suggested by Bruno.
10032
10033 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10034
10035         * modules/xalloc (Depends-on): Add xalloc-die.
10036         * modules/xvasprintf (Depends-on): Add xalloc-die.
10037
10038 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10039
10040         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
10041         with a minor change.
10042
10043 2005-07-15  Bruno Haible  <bruno@clisp.org>
10044
10045         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
10046         When using lib/poll.c, define poll as rpl_poll.
10047
10048 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
10049
10050         * modules/argp (Depends-on): Remove unlocked-io.
10051
10052 2005-07-14  Derek Price  <derek@ximbiot.com>
10053
10054         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
10055         for glob symlink bug.
10056
10057 2005-07-14  Bruno Haible  <bruno@clisp.org>
10058
10059         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
10060         Instead, test for *_unlocked function declarations directly.
10061
10062 2005-07-11  Simon Josefsson  <jas@extundo.com>
10063
10064         * modules/size_max: New file.
10065
10066         * modules/xsize: Depend on size_max module for size_max.m4.
10067
10068 2005-07-11  Simon Josefsson  <jas@extundo.com>
10069
10070         * lib/size_max.h: New file.
10071
10072 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
10073
10074         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
10075         copyright symbol and the year.
10076         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
10077         (version_etc_va): Use parameterized copyright notice.
10078         Reword to conform to the current GNU coding standards.
10079
10080 2005-07-11  Karl Berry  <karl@gnu.org>
10081
10082         * doc/gnulib.texi (Quoting): new node.
10083         (Initial import): more info, from Patrice.
10084
10085 2005-07-11  Bruno Haible  <bruno@clisp.org>
10086
10087         * gnulib-tool (func_usage): Document option --avoid.
10088         (Command line options): Handle --avoid.
10089         (func_acceptable): New function.
10090         (func_modules_transitive_closure): Use it.
10091
10092 2005-07-11  Bruno Haible  <bruno@clisp.org>
10093
10094         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
10095         Reported by Jim Meyering.
10096
10097 2005-07-10  Bruno Haible  <bruno@clisp.org>
10098
10099         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
10100         Needed when size_t is smaller than 'unsigned int'.
10101         Reported by Paul Eggert.
10102
10103 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10104
10105         * modules/argp (Depends-on): Add unlocked-io
10106
10107 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10108
10109         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
10110         block of defines.
10111
10112 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10113
10114         * config/srclist.txt: Comment out regcomp.c, since we have a porting
10115         fix now.
10116
10117 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
10118         and Paul Eggert  <eggert@cs.ucla.edu>
10119
10120         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
10121         in wint_t, not wchar_t.  Remove now-unnecessary cast.
10122
10123 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10124
10125         * modules/regex (Files): Add lib/regex_internal.c,
10126         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
10127         (Depends-on): Add extensions.
10128         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
10129
10130 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10131
10132         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
10133         pathconf.
10134         * m4/same.m4 (gl_SAME): Likewise.
10135         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
10136
10137         * m4/regex.m4: Adjust to new libc regex implementation.
10138         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
10139         all the .c and .h parts of (the new) regex.
10140         Quote the m4 stuff better.
10141         Check for RE_ICASE bug of old gnulib.
10142         Check for REG_STARTEND of recent libc.
10143         Rename local variables from jm_* to gl_*.
10144         Quote operand of "test -f".
10145         Say "recent enough" version of libc, not "version 2".
10146         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
10147         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
10148         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
10149         Remove check for btowc, isascii.
10150         Require AM_LANGINFO_CODESET.
10151
10152 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10153
10154         * lib/regex.c, regex.h: Sync from libc.
10155         * lib/regcomp.c, regexec_internal.c, regex_internal.h, regexec.c:
10156         New files, synced from libc, except that regex_internal.h
10157         currently has a small porting fix.
10158
10159 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10160
10161         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
10162         regex_internal.c, regexec.c.
10163         Add regex_internal.h too, but as a comment, since the libc version
10164         is currently broken in gnulib mode.
10165
10166 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10167
10168         Support programs like Emacs that use gnulib but not gettext.
10169         * MODULES.html.sh (Internationalization functions): Add gettext-h.
10170         * modules/gettext-h: New file.
10171         * modules/gettext (Files): Remove lib/gettext.h.
10172         (Depends-on): Add gettext-h.
10173         (Makefile.am): Remove lib_SOURCES.
10174         * modules/argmatch, modules/c-stack, modules/closeout:
10175         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
10176         * modules/execute, modules/file-type, modules/getaddrinfo:
10177         * modules/getopt, modules/human, modules/javacomp:
10178         * modules/javaexec, modules/mkdir-p, modules/obstack:
10179         * modules/openat, modules/pagealign_alloc, modules/pipe:
10180         * modules/quotearg, modules/regex, modules/rpmatch:
10181         * modules/unicodeio, modules/userspec, modules/version-etc:
10182         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
10183         * modules/xsetenv:
10184         Depend on gettext-h, not gettext.
10185
10186 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10187
10188         * gnulib-tool (func_import): Add support for 'public domain' license.
10189         * modules/alloca, modules/atexit, modules/memmove:
10190         Now public domain, not GPL.
10191         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
10192         * modules/realloc, modules/strerror, modules/strtod:
10193         Now LGPL, not GPL.
10194
10195 2005-07-05  Bruno Haible  <bruno@clisp.org>
10196
10197         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
10198         autoconf CVS. Needed for mingw.
10199
10200 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10201
10202         Remove the dependency of the strftime module on the tzset module.
10203         * modules/strftime (Depends-on): Remove dependency on tzset.
10204
10205 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10206
10207         Remove the dependency of the strftime module on the tzset module.
10208         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
10209         gl_FUNC_TZSET_CLOBBER.
10210
10211 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10212
10213         Remove the dependency of the strftime module on the tzset module.
10214         * lib/strftime.c (my_strftime)
10215         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
10216         Copy the input structure, to work around some of the bug with
10217         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
10218         Solaris releases, you should also use the tzset module, but we won't
10219         require it as a dependency any more since we don't want LGPLed code
10220         to depend on GPLed code.
10221
10222 2005-07-02  Jim Meyering  <jim@meyering.net>
10223
10224         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
10225         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
10226         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
10227         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
10228
10229 2005-07-02  Jim Meyering  <jim@meyering.net>
10230
10231         * lib/backupfile.c (backup_args): Change a `0' to NULL.
10232
10233 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10234
10235         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
10236         declares only 'struct timespec;' (!).
10237
10238 2005-07-01  Jim Meyering  <jim@meyering.net>
10239
10240         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
10241         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
10242         * lib/save-cwd.c, tempname.c:
10243         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10244         and don't include <sys/file.h>).
10245
10246 2005-06-29  Jim Meyering  <jim@meyering.net>
10247
10248         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
10249         type name.  Use the variable name instead.
10250         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
10251         Likewise.
10252
10253 2005-06-28  Simon Josefsson  <jas@extundo.com>
10254
10255         * modules/check-version (Files): Add check-version.m4.
10256
10257 2005-06-28  Simon Josefsson  <jas@extundo.com>
10258
10259         * m4/check-version.m4: New file, suggested by Jim Meyering
10260         <jim@meyering.net>.
10261
10262 2005-06-28  Simon Josefsson  <jas@extundo.com>
10263
10264         * lib/check-version.h, check-version.c: New files.
10265
10266 2005-06-28  Simon Josefsson  <jas@extundo.com>
10267
10268         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
10269         collision with global variable.  Better indentation.  Don't
10270         increment buffer pointer beyond buffer end.  Based on comments
10271         from Paul Eggert <eggert@cs.ucla.edu>.
10272
10273         * lib/base64.h: Indent.
10274
10275 2005-06-28  Simon Josefsson  <jas@extundo.com>
10276
10277         * doc/gnulib.texi (Library version handling): New section.
10278
10279 2005-06-28  Jim Meyering  <jim@meyering.net>
10280
10281         * check-module (find_included_lib_files): Hard-code another
10282         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
10283         but modules/fts-lgpl (correctly) does not list those files.
10284
10285         * modules/canonicalize (Files): Add lib/pathmax.h.
10286
10287 2005-06-25  Simon Josefsson  <jas@extundo.com>
10288
10289         * modules/check-version: New file.
10290
10291 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10292
10293         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
10294         initializer of struct addrinfo, as an indication that we don't
10295         care how many members the structure has.
10296
10297 2005-06-24  Derek Price  <derek@ximbiot.com>
10298         and Bruno Haible  <bruno@clisp.org>
10299
10300         Remove stat module & update lstat.
10301         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
10302         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10303         * m4/stat.m4: Remove this file.
10304
10305 2005-06-24  Derek Price  <derek@ximbiot.com>
10306         and Bruno Haible  <bruno@clisp.org>
10307
10308         Remove stat module & update lstat.
10309         * lib/stat.c: Remove this file...
10310         (slash_aware_lstat): ...moving this content and its support...
10311         * lib/lstat.c (rpl_lstat): ...into here.
10312         * lib/lstat.h: New file.
10313
10314 2005-06-24  Derek Price  <derek@ximbiot.com>
10315         and Bruno Haible  <bruno@clisp.org>
10316
10317         Remove stat module & update lstat.
10318         * config/srclist.txt (libc sources): Remove stat.
10319
10320 2005-06-24  Derek Price  <derek@ximbiot.com>
10321         and Bruno Haible  <bruno@clisp.org>
10322
10323         Remove stat module & update lstat.
10324         * MODULES.html.sh (stat): Remove.
10325         * MODULES.html: Regenerated.
10326         * modules/lstat (Description): Correct function name.
10327         (Files): Add "lstat.h".
10328         (Depends-on): Remove stat, add xalloc, stat-macros.
10329         * modules/stat: Remove this file.
10330         (Include): Add "lstat.h", remove <sys/stat.h>.
10331
10332 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10333
10334         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
10335         (ranged_convert): Don't save conversion in a temporary struct.
10336         This causes a warning with GCC 4.0.0, and anyway in the typical
10337         case it's not worth the extra 100 bytes or so of code.
10338         (ranged_convert, __mktime_internal): When calling a function via a
10339         pointer P, use P () rather than (*P) (), as we now assume C89 or
10340         better.
10341
10342 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
10343
10344         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
10345         "who -r" failed to give output.  Problem reported by Tim Waugh.
10346
10347         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
10348         (xcalloc): Use it to avoid needless tests.
10349         Problem reported by Jim Meyering.
10350
10351 2005-06-20  Derek Price  <derek@ximbiot.com>
10352
10353         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
10354         unnecessary for Autoconfs > 2.59c.
10355
10356 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
10357
10358         * lib/argp.h (__option_is_short): Check upper limit of
10359         __key. Isprint() requires its argument to have the value
10360         of an unsigned char or EOF.
10361
10362 2005-06-16  Jim Meyering  <jim@meyering.net>
10363
10364         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
10365         when either N or S is zero.
10366
10367 2005-06-16  Derek Price  <derek@ximbiot.com>
10368
10369         * m4/bison.m4: Declare YACC & YFLAGS precious.
10370
10371 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
10372
10373         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
10374         multibyte string or pattern, fall back on unibyte matching.
10375         Problem reported by James Youngman.
10376
10377 2005-06-08  Bruno Haible  <bruno@clisp.org>
10378
10379         * modules/csharpcomp: New file.
10380         * MODULES.html.sh (C#): Add csharpcomp.
10381
10382 2005-06-08  Bruno Haible  <bruno@clisp.org>
10383
10384         * m4/csharpcomp.m4: New file, from GNU gettext.
10385
10386 2005-06-08  Bruno Haible  <bruno@clisp.org>
10387
10388         * lib/csharpcomp.h: New file, from GNU gettext.
10389         * lib/csharpcomp.c: New file, from GNU gettext.
10390         * lib/csharpcomp.sh.in: New file, from GNU gettext.
10391
10392 2005-06-08  Bruno Haible  <bruno@clisp.org>
10393
10394         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
10395         warning on mingw.
10396
10397 2005-06-07  Derek Price  <derek@ximbiot.com>
10398
10399         Sync from CVS.
10400         * lib/glob_.h: Indent nested #ifdef.
10401
10402 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         Sync from coreutils.
10405         Use "file name" when talking about file names, instead of "filename"
10406         or "path", as per the GNU coding standards.
10407         * lib/mkdir-p.c: Renamed from makepath.c.
10408         (make_dir_parents): Renamed from make_path.  All callers changed.
10409         * lib/mkdir-p.h: Likewise.  All includers changed.
10410         * lib/filenamecat.c: Renamed from path-concat.c.
10411         (file_name_concat): Renamed from path_concat.  All callers changed.
10412         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
10413         * lib/filenamecat.h: Likewise.  All includers changed.
10414         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
10415         in comments or local variable names.
10416         * lib/basename.c: Likewise.
10417         * lib/canonicalize.c, canonicalize.h: Likewise.
10418         * lib/dirname.c, dirname.h: Likewise.
10419         * lib/euidaccess.c: Likewise.
10420         * lib/exclude.c: Likewise
10421         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
10422         * lib/fsusage.c, fsuage.h: Likewise.
10423         * lib/fts.c, fts_.h: Likewise.
10424         * lib/getcwd.c: Likewise.
10425         * lib/getloadavg.c: Likewise.
10426         * lib/mkstemp.c: Likewise.
10427         * lib/mountlist.c, mountlist.h: Likewise.
10428         * lib/openat.c, openat.h: Likewise.
10429         * lib/readlink-stub.c: Likewise.
10430         * lib/readutmp.c, readutmp.h: Likewise.
10431         * lib/rename.c: Likewise.
10432         * lib/rmdir.c: Likewise.
10433         * lib/same.c: Likewise.
10434         * lib/savedir.c: Likewise.
10435         * lib/stripslash.c: Likewise.
10436         * lib/tempname.c: Likewise.
10437         * lib/xreadlink.c: Likewise.
10438         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
10439         All uses changed.
10440         * lib/exclude.h: Likewise.
10441
10442         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
10443         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10444         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
10445         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10446         * lib/pathmax.h: Include <limits.h> unconditionally, since other
10447         files have been getting away with it for years (MORE/BSD 4.3
10448         is extinct now).
10449         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
10450         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10451
10452         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
10453         Define to 256, not 255, as per modern POSIX.
10454
10455 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10456
10457         Sync from coreutils.
10458         Use "file name" when talking about file names, instead of "filename"
10459         or "path", as per the GNU coding standards.
10460         * MODULES.html.sh: mkdir-p renamed from makepath.
10461         filenamecat renamed from path-concat.
10462         * modules/filenamecat: Renamed from modules/path-concat.
10463         (Files): filenamecat.h and filenamecat.c renamed from
10464         path-concat.h and path-concat.c.
10465         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
10466         (Include): filenamecat.h, not path-concat.h.
10467         * modules/mkdir-p: Renamed from modules/makepath.
10468         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
10469         makepath.c.
10470         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
10471         (Include): mkdir-p.h, not makepath.h.
10472
10473 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10474
10475         Sync from coreutils.
10476         * m4/mkdir-p.m4: Renamed from makepath.m4.
10477         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
10478         Rename files from makepath.c to mkdir-p.c, and from
10479         makepath.h to mkdir-p.h.
10480         * m4/filenamecat.m4: Renamed from path-concat.m4.
10481         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
10482         Rename files from path-concat.c to filenamecat.c,
10483         and from path-concat.h to filenamecat.h.
10484         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
10485         "file name" in local variables or comments.
10486         * m4/rename.m4: Likewise.
10487
10488 2005-06-01  Bruno Haible  <bruno@clisp.org>
10489
10490         * modules/csharpexec: New file.
10491         * MODULES.html.sh (C#): New section.
10492
10493 2005-06-01  Bruno Haible  <bruno@clisp.org>
10494
10495         * m4/csharp.m4: New file, from GNU gettext.
10496         * m4/csharpexec.m4: New file, from GNU gettext.
10497
10498 2005-06-01  Bruno Haible  <bruno@clisp.org>
10499
10500         * lib/csharpexec.h: New file, from GNU gettext.
10501         * lib/csharpexec.c: New file, from GNU gettext.
10502         * lib/csharpexec.sh.in: New file, from GNU gettext.
10503
10504 2005-05-31  Derek Price  <derek@ximbiot.com>
10505             Paul Eggert  <eggert@cs.ucla.edu>
10506
10507         Sync from cvs.
10508         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
10509
10510 2005-05-31  Derek Price  <derek@ximbiot.com>
10511             Paul Eggert  <eggert@cs.ucla.edu>
10512
10513         Sync from cvs.
10514         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
10515
10516 2005-05-29  Derek Price  <derek@ximbiot.com>
10517
10518         * config/srclist.txt (glob_.h, glob.c): Add these files.
10519
10520 2005-05-29  Derek Price  <derek@ximbiot.com>
10521
10522         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
10523         * modules/glob: New file.
10524         * modules/getlogin_r: Add link to POSIX spec in description.
10525
10526 2005-05-29  Derek Price  <derek@ximbiot.com>
10527             Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         * m4/glob.m4: New file.
10530
10531 2005-05-29  Derek Price  <derek@ximbiot.com>
10532             Paul Eggert  <eggert@cs.ucla.edu>
10533
10534         * lib/glob_.h, glob.c: New files.
10535
10536 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10537
10538         * modules/fts (Files): Remove m4/inttypes-pri.m4.
10539         * modules/fts-lgpl (Depends-on): Remove gettext.
10540
10541 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10542
10543         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
10544         and don't require gt_INTTYPES_PRI.
10545
10546 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10547
10548         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
10549
10550         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
10551         the configuration hassle isn't worth it.
10552         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
10553         (LONGEST_MODIFIER, PRIuMAX): Remove.
10554
10555 2005-05-27  Bruno Haible  <bruno@clisp.org>
10556
10557         * lib/getlogin_r.h: Remove second include of <stddef.h>.
10558
10559 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
10560
10561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
10562         _POSIX_PTHREAD_SEMANTICS for Solaris.
10563
10564 2005-05-25  Derek Price  <derek@ximbiot.com>
10565
10566         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
10567
10568 2005-05-25  Derek Price  <derek@ximbiot.com>
10569             Paul Eggert  <eggert@cs.ucla.edu>
10570
10571         * modules/getlogin_r: New files.
10572
10573 2005-05-25  Derek Price  <derek@ximbiot.com>
10574             Paul Eggert  <eggert@cs.ucla.edu>
10575
10576         * m4/getlogin_r.m4: New files.
10577
10578 2005-05-25  Derek Price  <derek@ximbiot.com>
10579             Paul Eggert  <eggert@cs.ucla.edu>
10580
10581         * lib/getlogin_r.c, getlogin_r.h: New files.
10582
10583 2005-05-25  Bruno Haible  <bruno@clisp.org>
10584             Derek Price  <derek@ximbiot.com>
10585
10586         * lib/getlogin_r.h: Simplify API documentation.
10587
10588 2005-05-23  Derek Price  <derek@ximbiot.com>
10589
10590         * modules/minmax (Files): Add m4/minmax.m4.
10591         (configure.ac): Add gl_MINMAX.
10592
10593 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10594
10595         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
10596         so that unistd-safer.h (GPL'ed code) need not be included.
10597
10598 2005-05-22  Bruno Haible  <bruno@clisp.org>
10599
10600         * m4/minmax.m4: New file.
10601         Based on a patch by Derek Price <derek@ximbiot.com>.
10602
10603 2005-05-22  Bruno Haible  <bruno@clisp.org>
10604
10605         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
10606         (INT64_MIN): Fix definition.
10607         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
10608
10609         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
10610         NEED_SIGNED_INT_TYPES.
10611
10612         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
10613         HAVE_SYSTEM_INTTYPES.
10614
10615 2005-05-22  Bruno Haible  <bruno@clisp.org>
10616
10617         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
10618         Also include <sys/param.h> if it defines MIN, MAX.
10619         Based on a patch by Derek Price <derek@ximbiot.com>.
10620
10621 2005-05-21  Jim Meyering  <jim@meyering.net>
10622
10623         * modules/fts (Files): Add m4/inttypes-pri.m4.
10624         (Depends-on): Add lstat and remove gettext.  Alphabetize.
10625
10626 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10627
10628         New fts module.
10629         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
10630         (setup_dir, free_dir): New functions.
10631         (enter_dir, leave_dir): Define trivial
10632         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
10633         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
10634         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
10635         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
10636         Move to fts-cycle.c.
10637         (fts_open): Use setup_dir.
10638         (fts_close): Use free_dir.
10639         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
10640         This adds a label and some gotos, but the alternatives were messier.
10641         Check for memory allocation failure when entering a dir.
10642         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
10643         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
10644         (FTS): New member fts_cycle, that is a union that contains the
10645         old active_dir_ht and cycle_state.  All uses changed to mention
10646         fts_cycle.ht and fts_cycle.state.
10647         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
10648         fts.c, with the following changes:
10649         (setup_dir, free_dir): New functions.
10650         (enter_dir): Now returns bool.  Return true if successful, false
10651         if memory exhausted.  All callers changed.
10652         Do not bother partly cleaning up on
10653         memory allocation failure; that is free_dir's job.
10654         However, free ad if hash_insert fails, to avoid memory leak.
10655         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
10656         fts->fts_options to see which union member to use.
10657
10658 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10659
10660         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
10661         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
10662
10663 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10664
10665         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
10666
10667 2005-05-20  Jim Meyering  <jim@meyering.net>
10668
10669         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
10670         Now a macro, to pacify GCC.
10671
10672 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
10673
10674         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
10675         of -1.
10676
10677 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
10678
10679         * lib/chown.c (rpl_chown): Return -1 on failure.
10680
10681 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
10682
10683         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
10684         Don't check for stddef.h.
10685         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
10686         don't use its results.
10687         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
10688         since we include them unconditionally.  Don't require
10689         AM_STDBOOL_H, since stdbool is a prerequisite.
10690         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
10691         since we assume C89 or better.
10692         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
10693         as we don't use their results.
10694         Don't check for fchdir, memmove, memset, strrchr, as we use
10695         them unconditionally.
10696         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
10697         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
10698
10699 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
10700
10701         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
10702         Include <stddef.h> unconditionally, since we assume C89 now.
10703         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
10704         * lib/fts.c: Include fts_.h first, to check interface.
10705         Do not include intprops.h; no longer needed.
10706         Include cycle-check.h and hash.h, since fts_.h no longer does.
10707         Remove unnecessary casts of closedir to void.
10708         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
10709         decide whether to decrement nlinks.
10710         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
10711         (FTS): Use struct hash_table * instead of Hash_table, so that
10712         we no longer need to include hash.h here.
10713
10714 2005-05-18  Jim Meyering  <jim@meyering.net>
10715
10716         * modules/dirfd (License): Change to LGPL.  Most of the code
10717         is already in the public domain.
10718
10719 2005-05-18  Jim Meyering  <jim@meyering.net>
10720
10721         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
10722         Reported by Yoann Vandoorselaere.
10723
10724 2005-05-17  Jim Meyering  <jim@meyering.net>
10725
10726         * m4/fts.m4: New file, from coreutils.
10727
10728 2005-05-17  Jim Meyering  <jim@meyering.net>
10729
10730         * lib/fts.c, fts_.h: New files, from coreutils.
10731
10732 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10733
10734         Sync from coreutils.
10735         * m4/unlinkdir.m4: New file.
10736
10737 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10738
10739         Sync from coreutils.
10740         * lib/unlinkdir.c, unlinkdir.h: New files.
10741         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
10742         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
10743         White space changes only.
10744         * lib/makepath.c (make_path): Port to hosts where leading "//" is
10745         special.
10746         * lib/yesno.c: Include getline.h, not ctype.h.
10747         (yesno): Don't remove leading white space; POSIX doesn't allow it.
10748         Use getline to remove arbitrary restriction on response length.
10749
10750 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10751
10752         * config/srclist-update: Spell out "Street" in FSF postal
10753         mail address; this is the style the FSF seems to prefer.
10754
10755         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
10756         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
10757         this updates FSF postal mail address.
10758
10759         Sync from coreutils.
10760         * modules/unlinkdir: New file.
10761         * modules/yesno (Depends-on): Add getline.
10762         * MODULES.html.sh (File system functions): Add unlinkdir.
10763
10764 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10765
10766         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
10767         lib/strsep.h:
10768         Change the initial comment to refer to GPL, not LGPL.
10769         gnulib-tool will change it to LGPL as needed.
10770
10771         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
10772         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
10773         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
10774         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
10775         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
10776         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
10777         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
10778         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
10779         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
10780         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
10781         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
10782         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
10783         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
10784         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
10785         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
10786         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
10787         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
10788         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
10789         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
10790         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
10791         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
10792         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
10793         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
10794         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
10795         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
10796         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
10797         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
10798         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
10799         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
10800         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
10801         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
10802         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
10803         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
10804         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
10805         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
10806         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
10807         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
10808         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
10809         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
10810         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
10811         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
10812         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
10813         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
10814         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
10815         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
10816         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
10817         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
10818         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
10819         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
10820         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
10821         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
10822         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
10823         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
10824         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
10825         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
10826         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
10827         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
10828         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
10829         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
10830         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
10831         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
10832         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
10833         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
10834         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
10835         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
10836         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
10837         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
10838         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
10839         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
10840         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
10841         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
10842         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
10843         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
10844         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
10845         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
10846         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
10847         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
10848         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
10849         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
10850         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
10851         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
10852         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
10853         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
10854         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
10855         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
10856         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
10857         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
10858         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
10859         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
10860         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
10861         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
10862         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
10863         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
10864         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
10865         lib/yesno.c, lib/yesno.h:
10866         Update FSF postal mail address.
10867
10868 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10869
10870         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
10871         tests/test-memmem.c, tests/test-stpncpy.c:
10872         Update FSF postal mail address.
10873
10874 2005-05-13  Bruno Haible  <bruno@clisp.org>
10875
10876         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
10877         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
10878         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
10879         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
10880         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
10881         Add support for 64-bit integers in the MSVC compiler.
10882
10883 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
10884
10885         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
10886
10887 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
10888
10889         * gnulib-tool (func_import): Sort and uniquify recommended includes.
10890
10891 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10892
10893         * doc/getdate.texi (General date syntax): Don't say that date
10894         date --iso-8601=ns generates acceptable dates; it doesn't yet.
10895         Problem reported by Nic Ferrier.
10896
10897 2005-05-10  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10898
10899         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
10900         specified in ai_socktype. Fix invalid ai_protocol
10901         check. ai_protocol is usually set to 0 or depending on
10902         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
10903         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
10904         ai_socktype / ai_protocol in the returned addrinfo structure.
10905
10906 2005-05-10  Simon Josefsson  <jas@extundo.com>
10907
10908         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
10909         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10910
10911 2005-05-10  Karl Berry  <karl@gnu.org>
10912
10913         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
10914         (from http://www.gnu.org/licenses).
10915         * doc/COPYING.LIB: also rename to COPYING.LESSER.
10916         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
10917         fdl.texi suffices.
10918
10919 2005-05-10  Karl Berry  <karl@gnu.org>
10920
10921         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
10922         (COPYING.DOC): remove.
10923
10924         * config/srclist-update: new FSF address.
10925
10926 2005-05-10  Derek Price  <derek@ximbiot.com>
10927
10928         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
10929         possible.
10930
10931 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10932             Bruno Haible  <bruno@clisp.org>
10933
10934         * modules/inet_ntop: New file.
10935         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10936         inet_ntop.
10937
10938 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10939             Bruno Haible  <bruno@clisp.org>
10940
10941         * m4/inet_ntop.m4: New file.
10942
10943 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10944             Bruno Haible  <bruno@clisp.org>
10945
10946         * lib/inet_ntop.h: New file.
10947         * lib/inet_ntop.c: New file, from glibc with modifications.
10948
10949 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10950
10951         * modules/time_r (License): Change to LGPL.
10952         * modules/extensions (License): Change to LGPL.  Actually,
10953         the license is more permissive than that, but currently gnulib-tool
10954         doesn't know how to handle more-permissive licenses.
10955
10956         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
10957         Problem reported by Dave Love.
10958
10959 2005-05-08  Jim Meyering  <jim@meyering.net>
10960
10961         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
10962         blank.
10963
10964 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
10965
10966         * modules/argmatch (Depends-on): Add stdbool.
10967         * modules/backupfile (Depends-on): Likewise.
10968         * modules/chdir-long (Depends-on): Likewise.
10969         * modules/closeout (Depends-on): Likewise.
10970         * modules/cycle-check (Depends-on): Likewise.
10971         * modules/dirname (Depends-on): Likewise.
10972         * modules/fnmatch (Depends-on): Likewise.
10973         * modules/fsusage (Depends-on): Likewise.
10974         * modules/fwriteerror (Depends-on): Likewise.
10975         * modules/getcwd (Depends-on): Likewise.
10976         * modules/getloadavg (Depends-on): Likewise.
10977         * modules/hard-locale (Depends-on): Likewise.
10978         * modules/makepath (Depends-on): Likewise.
10979         * modules/mountlist (Depends-on): Likewise.
10980         * modules/nanosleep (Depends-on): Likewise.
10981         * modules/posixtm (Depends-on): Likewise.
10982         * modules/quotearg (Depends-on): Likewise.
10983         * modules/readtokens (Depends-on): Likewise.
10984         * modules/readtokens0 (Depends-on): Likewise.
10985         * modules/readutmp (Depends-on): Likewise.
10986         * modules/save-cwd (Depends-on): Likewise.
10987         * modules/strftime (Depends-on): Likewise.
10988         * modules/userspec (Depends-on): Likewise.
10989         * modules/utimecmp (Depends-on): Likewise.
10990         * modules/xgetcwd (Depends-on): Likewise.
10991         * modules/xnanosleep (Depends-on): Likewise.
10992         * modules/xstrtod (Depends-on): Likewise.
10993         * modules/yesno (Depends-on): Likewise.
10994
10995 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10996
10997         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
10998         needless checks.
10999
11000 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11001
11002         Merge from coreutils.  Among other things,
11003         add bulletproofing for cases where stdin, stdout, or stderr are closed.
11004         * lib/fd-safer.c: New file.
11005         * lib/fcntl-safer.h, open-safer.c: Remove.
11006         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
11007         * lib/dup-safer.c: Include unistd-safer.h first.
11008         Don't include errno.h.
11009         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
11010         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
11011         * lib/file-type.c: Rely on file-type.h change.
11012         * lib/getloadavg.c: Include unistd-safer.h.
11013         (getloadavg): Use safer open.
11014         * lib/getusershell.c: Include "stdio-safer.h".
11015         (getusershell): Use safer fopen.
11016         * lib/long-options.c (long_options): Use NULL rather than 0.
11017         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
11018         'free'.
11019         * lib/modechange.c: Likewise.
11020         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
11021         (MODE_DONE): New constant.
11022         (struct mode_change): Remove 'next' member.
11023         (make_node_op_equals): New function; like the old one of the
11024         same name, except it allocates an array.
11025         (mode_compile, mode_create_from_ref): Use it.
11026         (mode_compile): Allocate result as an array, not a linked list.
11027         Parse octal string ourself, so that we catch mistakes like "+0".
11028         (mode_adjust): Arg is an array, not a linked list.
11029         * lib/modechange.c: Include stat-macros.h, xalloc.h.
11030         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
11031         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
11032         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
11033         Remove.  This is now stat-macros.h's job.
11034         (talloc): Remove.  All callers replaced by xalloc, so that
11035         our invokers don't have to worry about reporting memory failures.
11036         (make_node_op_equals): Remove.
11037         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
11038         New constants.
11039         (struct mode_change): Moved here from modechange.h.
11040         (mode_append_entry): Remove.
11041         (mode_compile): Remove MASKED_OPS arg, since it encouraged
11042         apps to have incorrect behavior.  Use simpler algorithm for head
11043         and tail.  Don't futz with umask; that's now the job of mode_adjust.
11044         Detect more invalid usages rather than having somewhat-random behavior.
11045         Don't insert an "a=" action, as that leads to incorrect behavior.
11046         (mode_compile, mode_create_from_ref): Return NULL on error instead
11047         of an enum, since now there's only one way to have an error.  All
11048         callers changed.
11049         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
11050         at the correct time.  Simplify calculation of "+u" and its ilk.
11051         Don't mishandle "+X".
11052         (mode_free): Remove "register" and localize decls.
11053         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
11054         (struct mode_change): Move to modechange.c; callers don't
11055         need to see this stuff.
11056         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
11057         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
11058         (mode_change, mode_adjust): Reflect the new signatures noted above.
11059         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
11060         that might redefine system include files.
11061         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
11062         (my_usleep): Use NULL rather than (void *) 0.
11063         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
11064         Use siginterrupt to specify that system calls should be interrupted.
11065         (rpl_nanosleep): Move initialization of suspended closer to call of
11066         my_usleep.
11067         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
11068         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
11069         (desirable_utmp_entry): New function.
11070         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
11071         using x2nrealloc, to simplify logic.
11072         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
11073         size calculation.  Do not assume utmp file is a regular file.
11074         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
11075         (READ_UTMP_CHECK_PIDS): New constant.
11076         * lib/save-cwd.c: Include unistd-safer.h.
11077         (save_cwd): Use fd_safer.
11078         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
11079         [!_LIBC] Include "stat-macros.h" instead.
11080         * lib/unistd-safer.h (fd_safer): New decl.
11081
11082 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11083
11084         * modules/getloadavg (Depends-on): Add unistd-safer.
11085         * modules/getusershell (Depends-on): Add stdio-safer.
11086         * modules/lstat (Depends-on): Remove xalloc.
11087         * modules/mkstemp (Depends-on): Add stat-macros.
11088         * modules/modechange (Depends-on): Remove xstrtol.
11089         Add stat-macros, xalloc.
11090         * modules/save-cwd (Depends-on): Add unistd-safer.
11091         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
11092         * modules/unistd-safer (Files): Add lib/fd-safer.c
11093         (Makefile.am): Remove lib_SOURCES.
11094
11095         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
11096         Remove fcntl-safer; unistd-safer supersedes it.
11097
11098 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11099
11100         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
11101         AC_HEADER_STAT.
11102         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
11103         (gl_PREREQ_CHOWN): Remove.
11104         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
11105         it.  Don't require AC_HEADER_STAT.
11106         (gl_PREREQ_LSTAT): Remove.
11107         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
11108         Don't require AC_HEADER_STAT.
11109         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
11110         (gl_PREREQ_RMDIR): Remove.
11111         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
11112         mention stat-macros.h or AC_HEADER_STAT, since we'll make
11113         the stat-macros module a prerequisite.
11114         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
11115         * m4/filemode.m4 (gl_FILEMODE): Likewise.
11116         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
11117         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
11118         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
11119         variable names.
11120         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
11121         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
11122         variable prefixes.
11123         * m4/fcntl-safer.m4: Remove.
11124         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
11125         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
11126         Invoke gl_PREREQ_FD_SAFER.
11127         (gl_PREREQ_FD_SAFER): New macro.
11128         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
11129         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
11130         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
11131         Remove duplicate call to AC_LIBOBJ(readutmp).
11132         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
11133
11134         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
11135         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
11136
11137 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11138
11139         * MODULES.html.sh (Misc): Add byteswap.
11140
11141 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11142
11143         * modules/getcwd (Depends-on): Add extensions.
11144         * modules/openat (Depends-on): Likewise.
11145
11146 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11147
11148         * modules/byteswap: New file.
11149
11150 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11151
11152         * m4/byteswap.m4: New file.
11153
11154 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11155
11156         * lib/byteswap_.h: New file.
11157
11158 2005-04-25  Karl Berry  <karl@gnu.org>
11159
11160         * m4/gettext.m4: Update from GNU gettext 0.14.4.
11161
11162 2005-04-25  Albert Chin  <china@thewrittenword.com>
11163
11164         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
11165         Toolkit C bug.
11166
11167 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
11168
11169         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
11170         (func_ln_if_changed) Remove forcibly for no error message
11171         in case file does not exist.
11172
11173 2005-04-19  Simon Josefsson  <jas@extundo.com>
11174
11175         * gnulib-tool (Options): Make --symlink mean --symbolic.
11176
11177 2005-04-18  Oskar Liljeblad <oskar@osk.mine.nu>
11178
11179         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
11180
11181 2005-04-16  Simon Josefsson  <jas@extundo.com>
11182
11183         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
11184
11185 2005-04-15  Simon Josefsson  <jas@extundo.com>
11186
11187         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
11188
11189 2005-04-15  Simon Josefsson  <jas@extundo.com>
11190
11191         * gnulib-tool: Rename --symlink to --symbolic.
11192
11193 2005-04-15  Oskar Liljeblad <oskar@osk.mine.nu>
11194
11195         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
11196         symbolic links to files instead of copying/moving.  Add --aux-dir,
11197         specifying directory relative --dir where auxiliary build tools
11198         are placed.
11199
11200 2005-04-14  Bruno Haible  <bruno@clisp.org>
11201
11202         * modules/allocsa (License): Change to LGPL.
11203         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11204
11205 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11206
11207         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
11208         that "UTC +1 second" continues to work.  Problem reported
11209         by Dmitry V. Levin.
11210         (relunit_snumber): New rule.
11211         (relunit): Use it.
11212
11213 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11214
11215         * lib/getdate.y (universal_time_zone_table): New constant.
11216         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
11217         universal_time_zone_table.
11218         (lookup_zone): Prefer universal_time_zone_table to
11219         local_time_zone_table, so that "GMT" time stamps are allowed in
11220         London during the summer.  Problem reported by Ian Abbott.
11221
11222 2005-04-12  Jim Meyering  <jim@meyering.net>
11223
11224         * lib/human.c (humblock): Set *options even when returning due to
11225         xstrtoumax conversion failure.  Thanks to a used-uninitialized
11226         warning from gcc-4.
11227
11228 2005-04-09  Jim Meyering  <jim@meyering.net>
11229
11230         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
11231         -Wuninitialized: initialize tm0.tm_year.
11232
11233 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11234
11235         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
11236         count, since there's no maximum.  All uses changed.
11237         Add member dsts_seen.
11238         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
11239         not being INT_MAX.
11240         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
11241         Use pc_rels_seen to decide whther a date is absolute.
11242
11243         * lib/getdate.y (number): Don't overwrite year.
11244         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
11245         check.
11246
11247 2005-04-02  Simon Josefsson  <jas@extundo.com>
11248
11249         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
11250         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
11251
11252 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
11253
11254         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
11255         where no absolute path name can be longer than PATH_MAX.
11256
11257 2005-03-27  Jim Meyering  <jim@meyering.net>
11258
11259         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
11260
11261 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
11262
11263         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
11264         "one's complement" -> "ones' complement" in comment, as per Knuth.
11265         "value of type" -> "type or expression" in comment.
11266         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
11267
11268 2005-03-26  Jim Meyering  <jim@meyering.net>
11269
11270         Comment nits.
11271         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
11272         Correct typos: s/or/of/.
11273
11274 2005-03-26  Jim Meyering  <jim@meyering.net>
11275
11276         * modules/check-include-files: Move to ../ and rename to...
11277         * check-module: ...this.
11278
11279 2005-03-25  Jim Meyering  <jim@meyering.net>
11280
11281         * modules/xvasprintf (Files): Add xalloc.h.
11282
11283 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11284
11285         * modules/gettext (Files): config/config.rpath ->
11286         build-aux/config.rpath
11287         * modules/iconv (Files): Likewise.
11288         Problem reported by Oskar Liljeblad.
11289
11290 2005-03-23  Jim Meyering  <jim@meyering.net>
11291
11292         * modules/check-include-files: New script to check for
11293         missing dependencies, multiple includes, etc.
11294
11295         * modules/c-strtold (Depends-on): Add xalloc.
11296         * modules/c-strtod (Depends-on): Add xalloc.
11297         * modules/hash (Depends-on): Add xalloc.
11298         (Files): Remove lib/xalloc.h.
11299
11300         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
11301         * modules/userspec (Files): Add lib/inttostr.h.
11302
11303 2005-03-23  Jim Meyering  <jim@meyering.net>
11304
11305         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
11306
11307 2005-03-22  Jim Meyering  <jim@meyering.net>
11308
11309         * modules/stat-macros: New module.
11310         * modules/canonicalize, modules/euidaccess, modules/file-type,
11311         * modules/filemode, modules/lchown, modules/makepath,
11312         * modules/rmdir, modules/stat: Depend on new stat-macros module
11313         rather than listing lib/stat-macros.h manually.
11314         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
11315
11316 2005-03-22  Jim Meyering  <jim@meyering.net>
11317
11318         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
11319
11320 2005-03-22  Bruno Haible  <bruno@clisp.org>
11321
11322         * config/srclist.txt: Replace target directory 'config' with
11323         'build-aux'.
11324         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
11325         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
11326         ../build-aux/.
11327
11328 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
11329
11330         * modules/chdir-long (Depends-on): Add mempcpy.
11331
11332         * modules/acl, modules/backupfile, modules/c-strtod,
11333         modules/c-strtold, modules/canon-host, modules/canonicalize,
11334         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
11335         modules/exclude, modules/exitfail, modules/file-type,
11336         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
11337         modules/getdate, modules/getline, modules/getpagesize,
11338         modules/getpass, modules/getugroups, modules/group-member,
11339         modules/hard-locale, modules/hash, modules/human, modules/idcache,
11340         modules/inttostr, modules/long-options, modules/makepath,
11341         modules/md5, modules/memcasecmp, modules/memcoll,
11342         modules/modechange, modules/mountlist, modules/path-concat,
11343         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
11344         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
11345         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
11346         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
11347         modules/strftime, modules/strndup, modules/strverscmp,
11348         modules/timespec, modules/unlocked-io, modules/userspec,
11349         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
11350         modules/yesno:
11351         Remove lib_SOURCES line from Makefile.am section, as this is now
11352         done automatically by the corresponding Autoconf macro.
11353
11354 2005-03-21  Jim Meyering  <jim@meyering.net>
11355
11356         Changes imported from coreutils.
11357
11358         * lib/cycle-check.c: Don't include xalloc.h.
11359
11360         * lib/path-concat.c: Don't include assert.h.
11361         (path_concat): Remove assertion that would have triggered
11362         for ABASE starting with more than one slash.
11363         Reported by Andreas Schwab.
11364
11365         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
11366         properly when ABASE is an absolute file name.
11367         Correct the description of this function.
11368         Include <assert.h>.
11369         Add an assertion and a test driver.
11370         This fixes a bug introduced on 2004-07-02.
11371         Andreas Schwab reported the resulting failure of cp --parents:
11372         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
11373
11374 2005-03-21  Jim Meyering  <jim@meyering.net>
11375
11376         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
11377         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
11378
11379 2005-03-21  Jim Meyering  <jim@meyering.net>
11380         and  Paul Eggert  <eggert@cs.ucla.edu>
11381
11382         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
11383         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
11384         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
11385         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
11386         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
11387         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
11388         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
11389         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
11390         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
11391         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
11392         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
11393         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
11394         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
11395         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
11396         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
11397         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
11398         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
11399         for these modules.
11400
11401 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
11404         (which shouldn't happen), generate nothing instead of returning 0
11405         immediately, so that nstrftime (NULL, ...) doesn't return 0.
11406
11407 2005-03-16  Bruno Haible  <bruno@clisp.org>
11408
11409         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
11410         HAVE_LONGLONG_64BIT.
11411
11412 2005-03-16  Bruno Haible  <bruno@clisp.org>
11413
11414         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
11415         HAVE_LONGLONG_64BIT.
11416
11417 2005-03-16  Bruno Haible  <bruno@clisp.org>
11418
11419         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
11420         HAVE_LONGLONG_64BIT.
11421
11422 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
11423
11424         * lib/strftime.c (my_strftime): Prepend space to format so that we can
11425         reliably distinguish strftime failure from empty output on POSIX
11426         hosts.
11427
11428 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
11429
11430         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
11431         (iconv_string): Don't guess a size-zero buffer, as that might cause
11432         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
11433         result would be 'too large', where 'too large' is (heuristically)
11434         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
11435         overflow concerns.  This will prevent some unwanted malloc failures
11436         when the inputs are very large.
11437
11438 2005-03-15  Karl Berry  <karl@gnu.org>
11439
11440         * config/srclist.txt (config.rpath): from gettext.
11441         * config/config.rpath: update.
11442
11443 2005-03-15  Bruno Haible  <bruno@clisp.org>
11444
11445         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
11446         to 'negate'.
11447
11448         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
11449         variable.
11450
11451         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
11452         results.
11453
11454 2005-03-14  Simon Josefsson  <jas@extundo.com>
11455
11456         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
11457         <fx@gnu.org>.
11458
11459 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
11460
11461         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
11462         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
11463         intprops.h.
11464         * lib/strtol.c: Likewise.
11465
11466 2005-03-14  Jim Meyering  <jim@meyering.net>
11467
11468         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
11469         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
11470         to be nonzero so that we (and caller) can detect the difference
11471         between a valid zero-length expansion and an error return, even
11472         when the underlying strftime fails before writing anything into
11473         that location.
11474
11475 2005-03-14  Bruno Haible  <bruno@clisp.org>
11476
11477         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
11478         Update from GNU gettext 0.14.3.
11479
11480 2005-03-10  Jim Meyering  <jim@meyering.net>
11481
11482         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
11483
11484 2005-03-10  Jim Meyering  <jim@meyering.net>
11485
11486         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
11487         so that this module works on systems without fchdir.
11488
11489 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11490
11491         Factor int-properties macros into a single file, except for
11492         glibc-related files.
11493         * lib/intprops.h: New file.
11494         * lib/getloadavg.c: Include it instead of limits.h.
11495         (INT_STRLEN_BOUND): Remove.
11496         * lib/human.c: Include intprops.h.
11497         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
11498         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
11499         302/1000.
11500         * lib/inttostr.h: Include intprops.h instead of limits.h.
11501         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
11502         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
11503         for consistency with intprops.h.
11504         (time_t_is_integer, twos_complement_arithmetic): Use them.
11505         * lib/sig2str.h: Include <signal.h>, intprops.h.
11506         (INT_STRLEN_BOUND): Remove.
11507         * lib/strftime.c (TYPE_SIGNED): Remove.
11508         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
11509         * lib/strtol.c: Adjust comments to match intprops.h.
11510         * lib/userspec.c: Include intprops.h.
11511         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
11512         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
11513         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
11514         instead of rolling our own expressions.
11515         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
11516
11517         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
11518         instead of int.
11519         (my_strftime): Do not mishandle years close to INT_MAX, by doing
11520         the right thing even if adding 1900 would overflow.  Similarly
11521         for tm_mon + 1 and tm_yday + 1.
11522         Make %Y always equivalent to %C%y, and similarly for %G and %g.
11523         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
11524         (DO_SIGNED_NUMBER): New macro.
11525         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
11526
11527 2005-03-07  Bruno Haible  <bruno@clisp.org>
11528
11529         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
11530
11531 2005-03-07  Bruno Haible  <bruno@clisp.org>
11532
11533         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
11534
11535 2005-03-04  Derek R. Price  <derek@ximbiot.com>
11536
11537         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
11538         (func_import): Only replace files via --import when they have actually
11539         changed.
11540
11541 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11542
11543         * m4/mmap-anon.m4: New file.
11544         * m4/pagealign_alloc.m4: New file.
11545
11546 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11547             Bruno Haible  <bruno@clisp.org>
11548
11549         * modules/pagealign_alloc: New file.
11550         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
11551
11552 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11553             Bruno Haible  <bruno@clisp.org>
11554
11555         * lib/pagealign_alloc.h: New file.
11556         * lib/pagealign_alloc.c: New file.
11557
11558 2005-03-03  Bruno Haible  <bruno@clisp.org>
11559
11560         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
11561         Use an all-permissive copyright notice, recommended by RMS.
11562
11563 2005-03-02  Bruno Haible  <bruno@clisp.org>
11564
11565         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
11566         of AIX, the replacement has to be done only after <string.h> is
11567         included, therefore not in config.h. stpncpy.h does the replacement,
11568         and stpncpy.c uses it.
11569
11570 2005-03-02  Bruno Haible  <bruno@clisp.org>
11571
11572         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
11573         stpncpy.c uses it.
11574
11575 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11576
11577         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
11578         The workaround isn't strictly needed for POSIX conformance, and
11579         it's too much of a pain to configure and maintain.  We'll ask
11580         people to fix their kernels instead.
11581         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
11582         (NANOSLEEP_BUG_WORKAROUND): Remove.
11583         (xnanosleep): Remove the workaround.
11584
11585 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11586
11587         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
11588         Reported by Derek Price.
11589         (Include): Add "timespec.h".
11590
11591         * modules/xnanosleep (Depends-on): Remove gethrxtime.
11592
11593 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
11596         to detect nanosleep bug.
11597
11598 2005-03-01  Bruno Haible  <bruno@clisp.org>
11599
11600         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
11601
11602 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11603
11604         * modules/gethrxtime: New file.
11605         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
11606         (Depends-on): Add gethrxtime.
11607         (configure.ac): Add gl_XNANOSLEEP.
11608         (Makefile.am): Remove lib_SOURCES line.
11609
11610 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11611
11612         * m4/gethrxtime.m4, xnanosleep.m4: New files.
11613         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
11614
11615 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11616
11617         * lib/gethrxtime.h, gethrxtime.c, xtime.h: New files.
11618         * lib/timespec.h (gettime): Return void, since it always
11619         succeeds now.  All uses changed.
11620         * lib/gettime.c (gettime) Likewise.
11621         [HAVE_NANOTIME]: Prefer nanotime.
11622         Assume gettimeofday succeeds, as POSIX requires.
11623         Assime time () succeeds, since other code already does.
11624         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
11625         (timespec_subtract): Remove.
11626         (NANOSLEEP_BUG_WORKAROUND): New constant.
11627         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
11628         things considerably.  Use it only on GNU/Linux hosts, since the
11629         workaround shouldn't be needed elsewhere.
11630
11631 2005-02-24  Bruno Haible  <bruno@clisp.org>
11632
11633         * modules/gettext (Files): Add m4/glibc2.m4.
11634
11635 2005-02-24  Bruno Haible  <bruno@clisp.org>
11636
11637         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
11638         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
11639         * m4/progtest.m4:
11640         Update from GNU gettext 0.14.2.
11641         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
11642
11643 2005-02-24  Bruno Haible  <bruno@clisp.org>
11644
11645         * lib/localcharset.c: Update from GNU gettext 0.14.2.
11646         * lib/config.charset: Update from GNU gettext 0.14.2.
11647
11648 2005-02-24  Bruno Haible  <bruno@clisp.org>
11649
11650         * lib/gettext.h: Update from GNU gettext 0.14.2.
11651
11652 2005-02-23  Simon Josefsson  <jas@extundo.com>
11653
11654         * m4/iconvme.m4: New file.
11655
11656 2005-02-23  Jim Meyering  <jim@meyering.net>
11657
11658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
11659         change.
11660         Thanks to Bruno Haible for catching it.
11661
11662 2005-02-22  Simon Josefsson  <jas@extundo.com>
11663
11664         * modules/iconvme: New file.
11665
11666         * MODULES.html.sh: Add iconvme.
11667
11668 2005-02-22  Simon Josefsson  <jas@extundo.com>
11669
11670         * lib/iconvme.h, iconvme.c: New files, from libc.
11671
11672 2005-02-22  Simon Josefsson  <jas@extundo.com>
11673
11674         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
11675
11676 2005-02-22  Jim Meyering  <jim@meyering.net>
11677
11678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
11679         s/ifndef/ifdef/.
11680
11681 2005-02-20  Neil Conway  <neilc@samurai.com>
11682
11683         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
11684         returned by OSX/Darwin if the specified buffer is not large
11685         enough for the hostname.
11686
11687 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11688
11689         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
11690         pass it to _help, otherwise the latter coredumps trying to
11691         dereference state.root_argp.
11692
11693 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11694
11695         * modules/chdir-long (Depends-on): Add memrchr.
11696         * modules/memrchr (Files): Add lib/memrchr.h.
11697         (Include): "memrchr.h".
11698
11699 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11700
11701         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
11702
11703 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11704
11705         * lib/memrchr.h: New file.
11706         * lib/chdir-long.c: Include it.
11707         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
11708         Don't bother including stddef.h.
11709
11710 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
11711
11712         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
11713         inclusion.
11714         Include <sys/types.h>, for dev_t.
11715         (ME_DUMMY, ME_REMOTE): Move from here....
11716         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
11717         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
11718         Dmitry V. Levin.
11719         Include mountlist.h first, to test the interface.
11720
11721 2005-01-29  Bruno Haible  <bruno@clisp.org>
11722
11723         * lib/progname.c (program_name): Initialize.
11724         Needed when linking statically on MacOS X.
11725
11726 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11727
11728         Sync from coreutils.
11729         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
11730         (Depends-on): Add c-strtod.
11731         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
11732
11733 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11734
11735         Sync from coreutils.
11736         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
11737
11738         Remove files that are specific to coreutils.
11739         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
11740
11741 2005-01-28  Bruno Haible  <bruno@clisp.org>
11742
11743         * modules/javacomp: New file.
11744         * MODULES.html.sh (Java): Add javacomp.
11745
11746 2005-01-28  Bruno Haible  <bruno@clisp.org>
11747
11748         * m4/javacomp.m4: New file, from GNU gettext.
11749
11750 2005-01-28  Bruno Haible  <bruno@clisp.org>
11751
11752         * lib/javacomp.sh.in: New file, from GNU gettext.
11753         * lib/javacomp.h: New file, from GNU gettext.
11754         * lib/javacomp.c: New file, from GNU gettext.
11755
11756 2005-01-26  Simon Josefsson  <jas@extundo.com>
11757
11758         * lib/gai_strerror.c: Use GPL in header.
11759
11760 2005-01-26  Bruno Haible  <bruno@clisp.org>
11761
11762         * modules/javaexec: New file.
11763         * MODULES.html.sh (Java): Add javaexec.
11764
11765 2005-01-26  Bruno Haible  <bruno@clisp.org>
11766
11767         * m4/javaexec.m4: New file, from GNU gettext.
11768
11769 2005-01-26  Bruno Haible  <bruno@clisp.org>
11770
11771         * lib/javaexec.sh.in: New file, from GNU gettext.
11772         * lib/javaexec.h: New file, from GNU gettext.
11773         * lib/javaexec.c: New file, from GNU gettext.
11774
11775 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11776
11777         * modules/lchown (Depends-on): Remove lchown.h
11778
11779 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11780
11781         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
11782         must be defined if the header file was not found, in order
11783         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
11784
11785 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11786
11787         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
11788         initializers for struct pentry_state.
11789         (__argp_error): Check return value of __asprintf
11790         (__argp_failure): Translate error message
11791
11792         * lib/argp-parse.c: Removed braces around the expansion of N_()
11793
11794 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11795
11796         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
11797         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
11798         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
11799         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
11800         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
11801         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
11802         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
11803         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
11804         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
11805         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
11806         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
11807         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
11808         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
11809         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
11810         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
11811         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
11812         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
11813         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
11814         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
11815         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
11816         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
11817         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
11818         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
11819         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
11820         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
11821         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
11822         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
11823         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
11824         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
11825         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
11826         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
11827         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
11828         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
11829         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
11830         xstrtol.m4, xstrtoumax.m4, yesno.m4:
11831         Use an all-permissive copyright notice, recommended by RMS.
11832
11833 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11834
11835         * modules/chdir-long (Depends-on): Remove mempcpy.
11836
11837 2005-01-21  Jim Meyering  <jim@meyering.net>
11838
11839         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
11840         same value as for Solaris 9.
11841
11842         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
11843         component length.  This included changing the parameter to be
11844         of type `char *' rather than `char const *'.
11845         * lib/chdir-long.h (chdir_long): Update prototype.
11846
11847         * lib/openat.c (fdopendir, fstatat): New functions.
11848         * lib/openat.h: Include headers required for use of DIR and struct
11849         stat.
11850         [AT_SYMLINK_NOFOLLOW]: Define.
11851         (fdopendir, fstatat): Add prototypes.
11852
11853 2005-01-21  Bruno Haible  <bruno@clisp.org>
11854
11855         * modules/classpath: New file.
11856         * MODULES.html.sh (Java): Add classpath.
11857
11858 2005-01-21  Bruno Haible  <bruno@clisp.org>
11859
11860         * lib/classpath.h: New file, from GNU gettext.
11861         * lib/classpath.c: New file, from GNU gettext.
11862
11863 2005-01-20  Simon Josefsson  <jas@extundo.com>
11864
11865         * modules/version-etc-fsf: New file.
11866
11867 2005-01-20  Simon Josefsson  <jas@extundo.com>
11868
11869         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
11870         * lib/version-etc.c: Remove version_etc_copyright.
11871         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
11872         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
11873
11874 2005-01-20  Simon Josefsson  <jas@extundo.com>
11875
11876         * lib/base64.h (isbase64): Add.
11877
11878         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
11879         using a unsigned prototype, don't inline.
11880         (base64_decode): Use it.
11881
11882 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11883
11884         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
11885         it.
11886
11887 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11888
11889         * lib/save-cwd.c (save_cwd): Remove code to support the case
11890         where fchdir is missing or flaky.
11891
11892 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11893
11894         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
11895
11896 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11897
11898         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
11899         AC_LIBSOURCES now does this.
11900         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
11901         with new ullong_max module.
11902
11903 2005-01-19  Bruno Haible  <bruno@clisp.org>
11904
11905         * modules/sh-quote: New file.
11906         * MODULES.html.sh (Executing programs): Add sh-quote.
11907
11908 2005-01-19  Bruno Haible  <bruno@clisp.org>
11909
11910         * lib/sh-quote.h: New file, from GNU gettext.
11911         * lib/sh-quote.c: New file, from GNU gettext.
11912
11913 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11914
11915         Merge from coreutils.
11916         * m4/ullong_max.m4: New file.
11917         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
11918         (gl_MACROS): Assume localeconv exists.
11919
11920 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11921
11922         Merge changes from coreutils, as described below in several
11923         changelogs dated today.
11924
11925         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
11926         (O_DIRECTORY): Remove; not needed here, since "." must be
11927         a directory.  All uses removed.
11928         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
11929         universal on Suns, and we also need to test for IRIX.
11930         Revamp code to use 'if' rather than '#if'.
11931         Avoid unnecessary comparison of cwd->desc to 0.
11932
11933         * lib/utimens.c (futimens): Robustify the previous patch, by checking
11934         for known valid error numbers rather than observed invalid ones.
11935
11936 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11937
11938         * modules/ullong_max: New file.
11939
11940         * modules/chdir-long, modules/openat: New files.
11941         * modules/save-cwd (Depends-on): Depend on chdir-long.
11942         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
11943
11944 2005-01-18  Jim Meyering  <jim@meyering.net>
11945
11946         Merge from coreutils.
11947         * m4/chdir-long.m4, openat.m4: New files.
11948         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
11949         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
11950         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
11951         is sane and DOES follow symlinks.  Besides, testing 20 different
11952         systems found no broken chown implementations.
11953         Prompted by a change in rsync's copy of this macro.
11954         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
11955
11956         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
11957
11958         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
11959         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
11960         NULL-means-set-to-current-time semantics.
11961         Remove temporary file immediately, rather than waiting
11962         for configure's at-exit trap code to do it.
11963
11964 2005-01-18  Jim Meyering  <jim@meyering.net>
11965
11966         * lib/version-etc.c (version_etc_copyright): Update copyright date.
11967
11968         * lib/utimens.c (futimens): Account for the fact that futimes
11969         can also fail with errno == ENOSYS or errno == ENOENT.
11970         Patch from Dmitry V. Levin.
11971
11972         Change the name of the robust chdir function from chdir to chdir_long.
11973         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
11974         (restore_cwd): Use chdir_long, not chdir.
11975         * lib/chdir-long.c: Renamed from chdir.c.
11976         * lib/chdir-long.h: Renamed from chdir.h.
11977         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
11978         Hurd.
11979
11980 2005-01-18  Bruno Haible  <bruno@clisp.org>
11981
11982         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
11983         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
11984         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
11985         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
11986         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
11987         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
11988         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
11989         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
11990         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
11991         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
11992         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
11993         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
11994         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
11995         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
11996         Use an all-permissive copyright notice, recommended by RMS.
11997
11998 2005-01-18  Bob Proulx  <bob@proulx.com>
11999
12000         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
12001         simplify offsetof() macro construct to avoid compile failure with
12002         native HP-UX 11.0 ANSI C compiler.
12003
12004 2005-01-17  Bruno Haible  <bruno@clisp.org>
12005
12006         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
12007         redundant because stpncpy.m4 takes care of it.
12008
12009 2005-01-17  Bruno Haible  <bruno@clisp.org>
12010
12011         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
12012
12013 2005-01-17  Bruno Haible  <bruno@clisp.org>
12014
12015         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
12016         used.
12017
12018 2005-01-17  Bruno Haible  <bruno@clisp.org>
12019
12020         * lib/fwriteerror.h (fwriteerror): Change specification to include
12021         fclose.
12022         * lib/fwriteerror.c: Include <stdbool.h>.
12023         (fwriteerror): At the end, close the file stream. Record whether
12024         stdout was already closed.
12025
12026 2005-01-17  Bruno Haible  <bruno@clisp.org>
12027
12028         * lib/execute.c (environ): Declare if needed.
12029         * lib/pipe.c (environ): Likewise.
12030         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
12031
12032 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12033
12034         * modules/argp: Depend on vsnprintf
12035
12036 2005-01-10  Jim Meyering  <jim@meyering.net>
12037
12038         * modules/closeout (Depends-on): Add atexit.
12039
12040 2005-01-06  Bruno Haible  <bruno@clisp.org>
12041
12042         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
12043
12044 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12045
12046         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
12047         definitions to be after all include files, to avoid collisions.
12048         Problem reported by Bob Proulx.
12049
12050 2005-01-04  Jim Meyering  <jim@meyering.net>
12051
12052         Changes imported from coreutils.
12053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
12054         as the mkstemp template, use a temporary directory and an
12055         8.3-friendly template to avoid trouble on systems like DJGPP.
12056         Reported by Juan M. Guerrero via Stepan Kasal.
12057         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
12058         close. Remove the temporary directory right away, rather than waiting
12059         for configure's at-exit trap code to do it.
12060         Suggestion from Stepan Kasal.
12061
12062 2005-01-01  Simon Josefsson  <jas@extundo.com>
12063
12064         * gnulib-tool: Print #include directives when --import'ing.
12065
12066 2004-12-28  Simon Josefsson  <jas@extundo.com>
12067
12068         * tests/test-base64.c: Include required header files.  Remove
12069         unused variables.
12070
12071 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12072
12073         * modules/error (Depends-on): Remove gettext.
12074
12075 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12076
12077         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
12078         not needed.  This removes a dependency on the gettext module.
12079         [defined _LIBC]: Do not include <libintl.h>; not needed.
12080
12081 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
12082
12083         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
12084         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
12085
12086 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
12087
12088         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
12089         HAVE_DECL_STRTOLD.
12090
12091 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12092
12093         * modules/getdate (Depends-on): Remove alloca-opt.
12094
12095 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12096
12097         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
12098
12099 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12100
12101         * lib/argp-parse.c: Include <stddef.h>.
12102         (alignof, alignto): New macros.
12103         (parser_init): Don't assume that void * is aligned sufficiently
12104         for struct option.
12105
12106         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
12107         need to extend the stack.
12108         (YYINITDEPTH): New macro, so that the initial stack isn't overly
12109         large.
12110
12111 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12112
12113         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
12114
12115 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12116
12117         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
12118         (2004-10-24) change.  Apparently this was a false alarm.
12119
12120         * modules/getdate: Depend on alloca-opt, not alloca.
12121
12122 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12123
12124         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
12125         Remove now-obsolete comment about AIX.
12126         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
12127         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
12128         (YYMAXDEPTH): New macro.
12129
12130 2004-12-18  Simon Josefsson  <jas@extundo.com>
12131
12132         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
12133
12134 2004-12-18  Bruno Haible  <bruno@clisp.org>
12135
12136         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
12137
12138 2004-12-18  Bruno Haible  <bruno@clisp.org>
12139
12140         * lib/fatal-signal.c (fatal_signals): Make non-const.
12141         (init_fatal_signals): New function.
12142         (uninstall_handlers, install_handlers): Ignore signals that were set to
12143         SIG_IGN.
12144         (at_fatal_signal): Call init_fatal_signals.
12145         (init_fatal_signal_set): Likewise. Ignore signals that were set to
12146         SIG_IGN.
12147         Reported by Paul Eggert.
12148
12149 2004-12-18  Bruno Haible  <bruno@clisp.org>
12150
12151         * doc/alloca.texi: New file.
12152         * doc/alloca-opt.texi: New file.
12153
12154 2004-12-17  Jim Meyering  <jim@meyering.net>
12155
12156         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
12157         Otherwise, install-sh could exit with improper exit status when
12158         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
12159
12160 2004-12-16  Simon Josefsson  <jas@extundo.com>
12161
12162         * tests/test-base64.c: Add license.
12163
12164 2004-12-15  Stepan Kasal  <address@hidden>
12165
12166         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
12167
12168 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12169
12170         * modules/getcwd (Files): Add m4/d-ino.m4.
12171         Suggested by Mark D. Baushke.
12172
12173 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
12174
12175         * lib/getdate.y (textint): New member "negative".
12176         (time_zone_hhmm): New function.
12177         Expect 14 shift-reduce conflicts, not 13.
12178         (o_colon_minutes): New rule.
12179         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
12180         (yylex): Set the "negative" member of signed numbers.
12181
12182 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
12183
12184         * doc/getdate.texi (Time of day items, Time zone items):
12185         Describe new formats +00:00, UTC+00:00.
12186
12187 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
12188
12189         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
12190         spurious "-l"s.  Problem reported by Stepan Kasal.
12191
12192 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
12193
12194         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
12195         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
12196
12197 2004-12-04  Simon Josefsson  <jas@extundo.com>
12198
12199         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
12200         Vandoorselaere <yoann@prelude-ids.org>.
12201
12202 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12203
12204         Changes imported from coreutils.
12205         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
12206         exist.
12207         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
12208
12209 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12210
12211         Changes imported from coreutils.
12212         * lib/hard-locale.c: Assume <locale.h> exists.
12213         Include "strdup.h".
12214         (GLIBC_VERSION): New macro.
12215         (hard_locale): Assume setlocale exists.
12216         Rewrite to avoid #ifdef.
12217         Use strdup rather than malloc + strcpy.
12218         * lib/human.c: Assume <locale.h> exists.
12219         (human_readable): Assume localeconv exists.
12220
12221 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12222
12223         * modules/hard-locale (Depends-on): Add strdup.
12224
12225 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
12226
12227         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
12228         convert T2, not T.  (Imported from libc.)
12229
12230 2004-11-30  Simon Josefsson  <jas@extundo.com>
12231
12232         * modules/restrict (License): Change to LGPL.
12233
12234 2004-11-30  Simon Josefsson  <jas@extundo.com>
12235
12236         * m4/restrict.m4: Add copyright and copying conditions.
12237
12238 2004-11-30  Simon Josefsson  <jas@extundo.com>
12239
12240         * m4/base64.m4: New file.
12241
12242 2004-11-30  Simon Josefsson  <jas@extundo.com>
12243
12244         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
12245         base64.
12246
12247         * tests/test-base64.c: New file.
12248
12249         * modules/base64: New file.
12250
12251 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12252
12253         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
12254         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
12255
12256         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
12257
12258 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12259
12260         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
12261         (__getcwd.c): Don't restore errno; glibc doesn't.
12262         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
12263         first, falling back to our code only if its results look suspicious.
12264         Ensure that the resulting buffer is only as large as necessary.
12265
12266         * lib/readutmp.c: Include readutmp.h first.
12267         Include <errno.h>, since readutmp.h no longer does that.
12268         * lib/readutmp.h: Don't include <errno.h>,
12269         <sys/param.h>, <time.h>; not needed to establish interface.
12270         (errno): Remove decl.
12271         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
12272         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
12273         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
12274
12275 2004-11-28  Simon Josefsson  <jas@extundo.com>
12276
12277         * lib/base64.h, base64.c: New file.
12278
12279 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
12280
12281         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
12282
12283 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
12284
12285         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
12286         (Depends-on): Remove pathmax, same.  Add mempcpy.
12287         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
12288         (Makefile.am): Append getcwd.h to lib_SOURCES.
12289         (Include): Add getcwd.h.
12290         (Maintainer): Change from Jim Meyering to "all, glibc",
12291         since getdate now uses intended-for-glibc code.
12292         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
12293         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
12294
12295 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12296
12297         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
12298         HP's ANSI C compiler.
12299         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
12300         Declaring int functions causes warnings on some modern systems and
12301         shouldn't be needed to compile on ancient ones.
12302         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
12303         defined.
12304
12305         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
12306         with the following changes.
12307         (__set_errno): Parenthesize properly.
12308         Include <stdbool.h>.
12309         (MIN, MAX, MATCHING_INO): New macros.
12310         (__getcwd): Define with prototype, not K&R form.
12311         Use heuristics to allocate default buffer on stack if possible.
12312         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
12313         behavior, and to avoid the PATH_MAX limit when computing
12314         ../../../../...
12315         Use MATCHING_INO to compare inode number to file.
12316         Check for arithmetic overflow in size calculations.
12317         Fix bug in reallocation of dot array that caused getcwd to fail
12318         on directories nested deeper than 75.
12319         Be more careful about saving errno on error.
12320         Do not use realloc; use only free+malloc, as this is a bit
12321         more flexible and avoids a needless copy operation.
12322         Do not inspect st_dev and st_ino for symbolic links; POSIX
12323         doesn't specify the latter.
12324         Check for closedir errors.
12325         Avoid needless casts.
12326         Use "#ifdef weak_alias" around weak_alias, to be like other
12327         glibc code.
12328         The following changes to getcwd.c have effect only when used in
12329         gnulib; they have no effect inside glibc proper.
12330         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
12331         as alloca isn't used.
12332         (alloca, __alloca): Likewise.
12333         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
12334         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
12335         unconditionally, as gnulib assumes C89 or better.
12336         Do not include <sys/param.h>.
12337         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
12338         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
12339         better.
12340         (NULL) [!defined NULL]: Remove; we assume C89 or better.
12341         Include <dirent.h> in a way that is compatible with modern Autoconf.
12342         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
12343         New macros, if not already defined.
12344         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
12345         Use "_LIBC", not "defined _LIBC", for consistency.
12346         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
12347         a mempcpy module.
12348         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
12349         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
12350         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
12351         credit only to Jim Meyering and adjust the copyright dates.
12352         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
12353         <stdlib.h>, <unistd.h>, "pathmax.h".
12354         Instead, include "xgetcwd.h" (first) and "getcwd.h".
12355         (INITIAL_BUFFER_SIZE): Remove.
12356         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
12357
12358 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12359
12360         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
12361         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
12362         Use the _ONCE methods, for efficiency.
12363         Check for fcntl.h.  In test program, include <errno.h>
12364         and <fcntl.h> if available.  Remove old K&R cruft from
12365         test program.  Check for common errors in GNU/Linux,
12366         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
12367         don't do AC_LIBOBJ, as that's getcwd.m4's job.
12368         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
12369         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
12370         name accordingly.
12371         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
12372         accommodate new getcwd.c.
12373         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
12374         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
12375         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
12376         that's all we need now.
12377
12378 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12379
12380         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
12381         argp-parse.c depends on getopt internals, that means we should
12382         always use our getopt, to be on the safe side.
12383         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
12384         order not to spoil the result of an eventual previous invocation
12385         of gl_GETOPT_SUBSTITUTE.
12386
12387 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12388
12389         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
12390         redefinition warnings. To avoid them, include the defines
12391         in `#if !defined __need_getopt ... #endif'. The only place
12392         where __getopt_argv_const is used is in definitions
12393         of getopt_long and getopt_long_only below, which are as well
12394         protected by `#ifndef __need_getopt'.
12395         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
12396         __need_getopt after including <stdio.h> and <unistd.h> These
12397         headers might have defined it.
12398
12399 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12400
12401         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
12402
12403 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12404
12405         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
12406         (futimens): New function, which uses futimes if available.
12407         (futimens, utimens): Support timespec==NULL, with same semantics
12408         as utime and utimens.
12409         * lib/utimens.h (futimens): New decl.
12410
12411 2004-11-23  Jim Meyering  <jim@meyering.net>
12412
12413         * lib/getopt_.h: Remove trailing blanks.
12414
12415 2004-11-23  Jim Meyering  <jim@meyering.net>
12416
12417         * lib/__fpending.c: Add comment.
12418
12419 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12420
12421         * modules/canonicalize (Depends-on): Add xreadlink.
12422         Problem reported by James Youngman.
12423
12424 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12425
12426         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
12427         New macros.
12428         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
12429         optopt): Use them instead of invoking ## directly; otherwise, the
12430         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
12431
12432 2004-11-19  Bruno Haible  <bruno@clisp.org>
12433
12434         * lib/strtok_r.c: Move comments from here...
12435         * lib/strtok_r.h: ... to here.
12436
12437 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12438
12439         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
12440         implementations that mishandle size_t overflow.
12441
12442 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12443
12444         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
12445         might fail.  Problem reported by Yoann Vandoorselaere.
12446         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
12447         implementations that mishandle size_t overflow.
12448
12449 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12450
12451         * modules/canon-host (Depends-on): Add strdup.
12452
12453 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12454
12455         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
12456
12457 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12458
12459         * lib/canon-host.c: Include "strdup.h".
12460         (canon_host): Use getaddrinfo if available, so that IPv6 works.
12461         Use strdup instead of malloc/strcpy to duplicate strings.
12462
12463         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
12464         (human_space_before_unit): New constant.
12465         * lib/human.c (human_readable): Support it.
12466
12467         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
12468         (xgetcwd): Set errno correctly when failing.
12469         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
12470         the failure is actually due to a PATH_MAX problem.
12471
12472         Further getopt changes to make it more likely that glibc will
12473         buy the changes back.
12474         * lib/getopt.c (POSIXLY_CORRECT): New constant.
12475         (getopt): Use it, so to preserve glibc semantic
12476         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
12477         when compiling for libc.
12478         * lib/getopt_.h (__getopt_argv_const): Bring it back.
12479         (getopt_long, getopt_long_only): Use it.
12480
12481         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
12482         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
12483         (getopt): Argv is now char * const *, as per standard.
12484         (_getopt_internal_r, _getopt_internal): Argv is now char **,
12485         not char *__getopt_argv_const *.
12486         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
12487         _getopt_long_only_r): Likewise.
12488         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
12489         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
12490         _getopt_long_r, _getopt_long_only_r): Likewise.
12491         * lib/getopt_.h (__getopt_argv_const): Remove.
12492         (getopt): Argv is now char * const *, as per standard.
12493
12494         * lib/getdate.y (tORDINAL): New token.
12495         (day, relunit): Allow it for relative times.
12496         (relative_time_table): Use tORDINAL for ordinals.
12497
12498 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12499
12500         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
12501         Document that "second" isn't allowed as an ordinal number.
12502
12503 2004-11-16  Jim Meyering  <jim@meyering.net>
12504
12505         * modules/closeout (Depends-on): Add fpending.
12506
12507 2004-11-15  Jim Meyering  <jim@meyering.net>
12508
12509         * lib/closeout.c: Include "__fpending.h" once again.
12510         Include <stdbool.h>.
12511         (close_stdout): Don't fail just because stdout was closed initially,
12512         since some programs don't write to stdout in the normal course of
12513         operation (other than --version and --help), and we don't want this
12514         function to make e.g. `touch file >&-' fail.
12515         But do fail if it was closed and someone has tried to write to it.
12516         E.g., `printf foo >&-' must fail.
12517
12518 2004-11-13  Jim Meyering  <jim@meyering.net>
12519
12520         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
12521
12522 2004-11-12  Simon Josefsson  <jas@extundo.com>
12523
12524         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
12525         small doc fix is still pending.
12526
12527 2004-11-11  Simon Josefsson  <jas@extundo.com>
12528
12529         * modules/strtok_r: New file.
12530
12531         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12532         strtok_r.
12533
12534 2004-11-11  Simon Josefsson  <jas@extundo.com>
12535
12536         * m4/strtok_r.m4: New file.
12537
12538         * m4/getopt.m4: Replace opterr.
12539
12540 2004-11-11  Simon Josefsson  <jas@extundo.com>
12541
12542         * lib/strtok_r.h, strtok_r.c: New file.
12543
12544 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
12547         of replacing opterr, getopt, etc.  This should handle the
12548         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
12549
12550 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12551
12552         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
12553         we can stop lying to compilers about the constness of argv when we
12554         are compiled outside glibc.
12555         (getopt, getopt_long, getopt_long_only): Use it.
12556         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
12557         _getopt_internal, getopt): Likewise.
12558         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
12559         _getopt_long_only_r): Likewise.
12560         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
12561         _getopt_long_r, _getopt_long_only_r): Likewise.
12562
12563         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
12564         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
12565         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
12566         the other external symbols.
12567         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
12568         declaration, since the above renaming now works around collisions.
12569
12570 2004-11-11  Jim Meyering  <jim@meyering.net>
12571
12572         * lib/linebreak.c: Remove trailing blanks.
12573         * lib/alloca_.h: Likewise.
12574         * lib/acosl.c: Likewise.
12575         * lib/euidaccess.c: Likewise.
12576         * lib/allocsa.h: Likewise.
12577
12578 2004-11-10  Simon Josefsson  <jas@extundo.com>
12579
12580         * m4/getaddrinfo.m4: New file.
12581
12582 2004-11-10  Simon Josefsson  <jas@extundo.com>
12583
12584         * lib/getaddrinfo.h, getaddrinfo.c: New files.
12585
12586 2004-11-10  Simon Josefsson  <jas@extundo.com>
12587
12588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12589         getaddrinfo.
12590
12591         * modules/getaddrinfo: New file.
12592
12593 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12594
12595         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
12596
12597 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12598
12599         * lib/mktime.c (SHR): New macro, which is a portable
12600         substitute for >> that should work even on Crays.
12601         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
12602         Problem reported by Mark D. Baushke in
12603         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
12604         * lib/getdate.y (SHR): Likewise.
12605         (tm_diff): Use it.
12606         * lib/strftime.c (SHR): Likewise.
12607         (tm_diff): Use it.
12608         * lib/quotearg.c (struct quoting_options): Use unsigned int for
12609         quote_these_too, so that right shifts are well defined.  All uses
12610         changed.
12611
12612 2004-11-10  Jim Meyering  <jim@meyering.net>
12613
12614         Ensure that no close failure goes unreported.
12615         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
12616         return early when it seems there's nothing to flush.
12617         Don't include __fpending.h.
12618
12619 2004-11-10  Jim Meyering  <jim@meyering.net>
12620
12621         * modules/closeout (Depends-on): Remove fpending.
12622
12623 2004-11-10  Jim Meyering  <jim@meyering.net>
12624
12625         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
12626
12627 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12628
12629         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
12630         gl_FUNC_STRFTIME.
12631         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
12632         and AC_REQUIRE when possible, to avoid duplicate checks.
12633         Check for <wchar.h>.
12634
12635 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12636
12637         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
12638
12639 2004-11-09  Bruno Haible  <bruno@clisp.org>
12640
12641         * m4/sockpfaf.m4: New file.
12642
12643 2004-11-05  Bruno Haible  <bruno@clisp.org>
12644
12645         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
12646         Reported by Mark D. Baushke <mdb@cvshome.org>.
12647
12648 2004-11-04  Bruno Haible  <bruno@clisp.org>
12649
12650         2004-09-11  Bruno Haible  <bruno@clisp.org>
12651                 * allocsa.valgrind: New file.
12652         2004-02-06  Bruno Haible  <bruno@clisp.org>
12653                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
12654                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
12655                 Reported by Christopher Seip <chris.seip@hp.com>.
12656
12657 2004-11-04  Bruno Haible  <bruno@clisp.org>
12658
12659         * modules/allocsa (Files): Add lib/allocsa.valgrind.
12660         (Makefile.am): Distribute it.
12661
12662 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12663
12664         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
12665         with errno == ERANGE if the buffer is too small.
12666         Problem reported by Mark D. Baushke.
12667
12668 2004-11-03  Albert Chin <china@thewrittenword.com>
12669             Paul Eggert  <eggert@cs.ucla.edu>
12670
12671         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
12672         equivalent, substitute $ac_type for equivalent type rather than
12673         blindly using uint32_t *always* which won't work if uint32_t is not
12674         available.  Define _UINT32_T to work around typedef of uint32_t if
12675         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
12676         2.5.1.
12677
12678 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12679
12680         * m4/jm-macros.m4: Sync from coreutils.
12681         (gl_MACROS): Check for mbrlen, for pathchk.
12682         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
12683
12684 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12685
12686         * lib/xreadlink.c (MAXSIZE): New macro.
12687         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
12688         size does not exceed MAXSIZE.  Avoid cast.
12689         As suggested by Mark D. Baushke in
12690         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
12691         if readlink fails with buffer size just under MAXSIZE, try again
12692         with MAXSIZE.
12693
12694 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12695
12696         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
12697
12698 2004-11-02  Derek R. Price  <derek@ximbiot.com>
12699         and  Paul Eggert  <eggert@cs.ucla.edu>
12700
12701         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
12702         (get_date): Overparenthesize to avoid GCC warning.
12703
12704 2004-11-02  Bruno Haible  <bruno@clisp.org>
12705
12706         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
12707         returns void.
12708
12709 2004-11-02  Bruno Haible  <bruno@clisp.org>
12710
12711         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
12712         function returns void.
12713
12714 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12715
12716         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
12717         fflush_unlocked, flockfile, funlockfile, funlockfile,
12718         fputs_unlocked, putc_unlocked.
12719
12720 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
12723         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
12724         already declared.
12725
12726 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12727
12728         * modules/getdate (Files): Add doc/getdate.texi.
12729         (Depends-on): Add setenv, xalloc.
12730
12731 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12732
12733         * lib/getdate.y: Add support for TZ="foo" within a date string.
12734         Fix some bugs near time_t boundaries.  Reject dates with
12735         out-of-range components, e.g., "Sept 31".
12736         Include <stdlib.h>, "setenv.h", "xalloc.h".
12737         (ISDIGIT_LOCALE): Remove; unused.
12738         Note that the TZ and time functions used here are not reentrant.
12739         (mktime_ok, get_tz): New functions.
12740         (TZBUFSIZE): New constant.
12741         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
12742         This requires that we sometimes generate our own TZ="XXX..." setting.
12743
12744 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12745
12746         * doc/getdate.texi: New file, from coreutils with modifications for
12747         the new TZ parsing.
12748
12749 2004-10-27  Derek R. Price  <derek@ximbiot.com>
12750
12751         * lib/mktime.c (not_equal_tm): Remove redundant check.
12752
12753 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12754
12755         * modules/regex (lib_SOURCES): Add regex.c.
12756         Reported by James Youngman in
12757         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
12758
12759 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12760
12761         * lib/getdate.y: Use Bison 1.875 features, and some minor
12762         code cleanups.  This change does not affect semantics.
12763         Don't include <stdlib.h>; no longer needed.
12764         Don't include unlocked-io.h; only the "#if TEST" code uses
12765         stdio, and performance isn't crucial there.
12766         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
12767         Bison 1.875 features as described below.
12768         All uses of "PC." replaced by "pc->".
12769         (YYSTYPE): Add a forward declaration.
12770         (yylex, yyerror): Use full prototypes in forward decls.
12771         Use "%pure-parser" rather than obsolescent "%pure_parser".
12772         Use %parse-param and %lex-param instead of obsolescent
12773         YYPARSE_PARAM and YYLEX_PARAM.
12774         (meridian_table, month_and_day_table, time_units_table,
12775         relative_time_table, time_zone_table, military_table,
12776         lookup_zone, lookup_word, get_date):
12777         Use NULL instead of 0 where appropriate.
12778         (to_hour): Avoid abort (), to avoid a dependency on
12779         stdlib.h.
12780         (yyerror, yylex): Now accepts parser_control * arg.
12781         (main) [TEST]: Use '\0' rather than 0 for char.
12782
12783 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
12784
12785         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
12786
12787 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
12788
12789         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
12790         It's now the caller's responsibility to handle the case where
12791         !HAVE_GETPAGESIZE && !defined getpagesize.
12792
12793         * lib/mktime.c (leapyear): Arg is long int, not int.
12794
12795 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12796
12797         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
12798
12799 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
12800
12801         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
12802         missing.  Problem reported by James Youngman.
12803
12804 2004-10-16  Simon Josefsson  <jas@extundo.com>
12805
12806         * gnulib-tool: Fix comments.  Fix parse problem.
12807         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
12808
12809 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12810
12811         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
12812         implementation of getopt_long.  Problem reported by Alexander Taler in:
12813         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
12814
12815 2004-10-15  Bruno Haible  <bruno@clisp.org>
12816
12817         * gnulib-tool: Untabify. Initialize supplied_libname.
12818         (func_usage): More homogenous output.
12819         (func_modules_transitive_closure, func_modules_to_filelist,
12820         func_emit_lib_Makefile_am): New functions.
12821         (func_import): New function, extracted from big case statement. Use
12822         func_get_license, func_modules_transitive_closure,
12823         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
12824         opt_lgpl. Don't use test -a, as it's not portable.
12825         (func_create_testdir): Use func_modules_transitive_closure,
12826         func_modules_to_filelist, func_emit_lib_Makefile_am.
12827
12828 2004-10-15  Bruno Haible  <bruno@clisp.org>
12829
12830         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
12831
12832 2004-10-15  Bruno Haible  <bruno@clisp.org>
12833
12834         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
12835         the portions belonging to each module.
12836         Suggested by Derek Robert Price <derek@ximbiot.com>.
12837
12838 2004-10-12  Simon Josefsson  <jas@extundo.com>
12839
12840         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
12841         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
12842         to real functions.
12843
12844 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
12845
12846         * modules/vsnprintf: New file.
12847
12848 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
12849
12850         * m4/vsnprintf.m4: New file.
12851
12852 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
12853
12854         * lib/vsnprintf.h: New file.
12855         * lib/vsnprintf.c: New file.
12856
12857 2004-10-11  Bruno Haible  <bruno@clisp.org>
12858
12859         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
12860         vsnprintf.
12861
12862 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12863
12864         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
12865
12866 2004-10-07  Bruno Haible  <bruno@clisp.org>
12867
12868         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
12869         fits into the provided buffer.
12870
12871 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12872
12873         * lib/diacrit.c, diacrit.h: Add GPL notice.
12874
12875         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
12876         notice.
12877         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
12878         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
12879         This avoids a potential constant-folding bug.
12880
12881 2004-10-05  Bruno Haible  <bruno@clisp.org>
12882
12883         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
12884         for the declaration of strsep.
12885
12886 2004-10-05  Bruno Haible  <bruno@clisp.org>
12887
12888         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
12889
12890 2004-10-04  Simon Josefsson  <jas@extundo.com>
12891
12892         * modules/memmem: New file.
12893         * tests/test-memmem.c: New file.
12894         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
12895
12896 2004-10-04  Simon Josefsson  <jas@extundo.com>
12897
12898         * m4/memmem.m4: New file.
12899
12900 2004-10-04  Simon Josefsson  <jas@extundo.com>
12901
12902         * lib/memmem.h: New file.
12903         * lib/memmem.c: New file, taken from glibc.
12904
12905 2004-10-04  Simon Josefsson  <jas@extundo.com>
12906
12907         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
12908         '#ifdef USE_UNLOCKED_IO'.
12909
12910 2004-10-04  Simon Josefsson  <jas@extundo.com>
12911
12912         * config/srclist.txt: Add memmem from glibc.
12913
12914 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
12915
12916         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
12917
12918         * modules/argmatch, modules/argp, modules/closeout, modules/error,
12919         modules/exclude, modules/getdate, modules/getline,
12920         modules/getndelim2, modules/getpass, modules/getpass-gnu,
12921         modules/getusershell, modules/linebuffer, modules/md5,
12922         modules/mountlist, modules/posixtm, modules/readtokens,
12923         modules/readutmp, modules/regex, modules/sha1,
12924         modules/version-etc, modules/yesno:
12925         Remove dependency on unlocked-io.
12926
12927 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
12928
12929         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
12930
12931         * m4/unlocked-io.m4: Add copyright notice.
12932         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
12933
12934 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
12935
12936         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
12937         * lib/xmalloc.c (xmemdup): Likewise.
12938         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
12939         XFREE): Remove these long-obsolescent macros.
12940         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
12941         * lib/xstrdup.c: Remove.
12942
12943         * lib/regex.c (re_comp): Cast gettext return value to char *,
12944         Problem reported by Martin Neitzel via Mark D. Baushke.
12945
12946 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
12947
12948         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
12949         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
12950         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
12951         regex.c, sha1.c, version-etc.c, yesno.c:
12952         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
12953         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
12954         the includer's responsibility.
12955
12956         Sync from coreutils.
12957
12958         * lib/modechange.c (mode_compile): Don't decrement a pointer that
12959         points to the start of a string, as the C Standard says the
12960         resulting behavior is undefined.
12961
12962         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
12963         simple -> simple_backups, numbered_existing ->
12964         numbered_existing_backups, numbered -> numbered_backups
12965         to avoid shadowing problems.  All uses changed.
12966         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
12967         * lib/backupfile.c (check_extension, numbered_backup):
12968         Rename locals to avoid shadowing 'basename'.
12969         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
12970         once.
12971
12972         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
12973         * lib/.cvsignore: Add getopt.h.
12974
12975 2004-10-04  Bruno Haible  <bruno@clisp.org>
12976
12977         * modules/README: New file.
12978         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
12979         not a module.
12980
12981 2004-10-02  Jim Meyering  <jim@meyering.net>
12982
12983         * lib/dirfd.h, getpagesize.h: Add copyright notice.
12984
12985 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
12986
12987         * modules/strsep: New file.
12988
12989 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
12990
12991         * m4/strsep.m4: New file.
12992
12993 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
12994
12995         * lib/strsep.h: New file.
12996         * lib/strsep.c: New file.
12997
12998 2004-10-01  Simon Josefsson  <jas@extundo.com>
12999
13000         * lib/snprintf.c (snprintf): Handle size==0.
13001
13002 2004-10-01  Simon Josefsson  <jas@extundo.com>
13003             Bruno Haible  <bruno@clisp.org>
13004
13005         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
13006         (snprintf): Declare 'args'.
13007
13008 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
13009
13010         * lib/snprintf.c: Remove comments as to why each header is needed.
13011
13012 2004-10-01  Bruno Haible  <bruno@clisp.org>
13013
13014         * MODULES.html.sh: Add strsep.
13015
13016 2004-09-30  Simon Josefsson  <jas@extundo.com>
13017
13018         * modules/snprintf: New file.
13019
13020 2004-09-30  Simon Josefsson  <jas@extundo.com>
13021
13022         * m4/snprintf.m4: New file.
13023
13024 2004-09-30  Simon Josefsson  <jas@extundo.com>
13025
13026         * lib/snprintf.h, snprintf.c: New files.
13027
13028 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13029
13030         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
13031         (hol_entry_help): Never translate an empty string.
13032         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
13033         * lib/argp.h (OPTION_NO_TRANS): New option.
13034
13035 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13036
13037         * modules/argp (Maintainer): Replace Simon Josefsson
13038         by Sergey Poznyakoff.
13039
13040 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13041
13042         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
13043         changes merged back into glibc.
13044
13045 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13046
13047         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
13048
13049 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
13050
13051         * lib/xvasprintf.c: Include xalloc.h.
13052         (xvasprintf): Use xalloc_die, not xmalloc_die.
13053
13054 2004-09-29  Bruno Haible  <bruno@clisp.org>
13055
13056         * modules/alloca-opt: New file, derived from modules/alloca.
13057         * modules/allocsa: Depend on alloca-opt instead of alloca.
13058         * modules/setenv: Likewise.
13059         * modules/vasnprintf: Likewise.
13060         * MODULES.html.sh: Add alloca-opt.
13061
13062 2004-09-28  Simon Josefsson  <jas@extundo.com>
13063
13064         * gnulib-tool: New parameter --lgpl, to asseert that modules are
13065         LGPL, and to replace license template from GPL to LGPL.
13066
13067 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
13068
13069         * modules/dummy: Change license to LGPL.
13070
13071 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
13072
13073         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
13074
13075 2004-09-24  Simon Josefsson  <jas@extundo.com>
13076
13077         * modules/minmax (License): Change from GPL to LGPL.
13078
13079 2004-09-23  Simon Josefsson  <jas@extundo.com>
13080
13081         * gnulib-tool (--import): Typo.
13082
13083 2004-09-23  Simon Josefsson  <jas@extundo.com>
13084
13085         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
13086
13087 2004-09-22  Bruno Haible  <bruno@clisp.org>
13088
13089         * modules/*: Add 'License' field.
13090         * gnulib-tool: Accept --extract-license option.
13091         (func_get_license): New function.
13092
13093 2004-09-21  Bruno Haible  <bruno@clisp.org>
13094
13095         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
13096         Reported by Simon Josefsson.
13097
13098 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
13101         gl_AC_TYPE_LONG_LONG.
13102
13103 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
13106
13107 2004-09-18  Simon Josefsson  <jas@extundo.com>
13108         and  Paul Eggert  <eggert@cs.ucla.edu>
13109
13110         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
13111         calls with autoreconf.  Define GL_LIB.
13112
13113 2004-09-14  Karl Berry  <karl@gnu.org>
13114
13115         * config/srclist.txt: unsync setenv.c, sigh.
13116
13117 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13118
13119         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
13120         Problem reported by Bruno Haible in:
13121         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
13122
13123 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13124
13125         * config/srclist.txt: Comment out argp-pvh.c.
13126
13127 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13128
13129         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
13130         in case some system header has #define'd it.  Problem reported by
13131         Soeren D. Schulze in
13132         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
13133
13134 2004-09-09  Karl Berry  <karl@gnu.org>
13135
13136         * regex.[ch]: delete from the root.  These were supposed to be
13137                 synced with emacs cvs, but this has not happened for about
13138                 a year, and anyway nothing else uses emacs regex.[ch].
13139                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
13140                 lib/regex[.ch] is untouched.
13141
13142 2004-09-09  Bruno Haible  <bruno@clisp.org>
13143
13144         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
13145
13146 2004-09-09  Bruno Haible  <bruno@clisp.org>
13147
13148         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
13149         modifications.
13150         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
13151
13152 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
13153
13154         * modules/xvasprintf: New file.
13155         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
13156
13157 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
13158
13159         * lib/xvasprintf.h: New file.
13160         * lib/xvasprintf.c: New file.
13161         * lib/xasprintf.c: New file.
13162
13163 2004-09-08  Bruno Haible  <bruno@clisp.org>
13164
13165         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
13166
13167 2004-09-08  Bruno Haible  <bruno@clisp.org>
13168
13169         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
13170         length is > INT_MAX.
13171         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
13172         more.
13173
13174 2004-09-08  Bruno Haible  <bruno@clisp.org>
13175
13176         * lib/stdint_.h: New file, taken from GNU clisp.
13177
13178 2004-09-08  Bruno Haible  <bruno@clisp.org>
13179             Oskar Liljeblad  <oskar@osk.mine.nu>
13180
13181         * modules/stdint: New file.
13182         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
13183
13184 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13185
13186         Import from coreutils.
13187         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
13188         strings on unbounded length.  alloca's performance benefits aren't
13189         that important here.
13190         (V_STRDUP): Remove.
13191         (parse_with_separator): New function, with most of the internals
13192         of the old parse_user_spec.  Allow user to omit both user and group,
13193         for compatibility with FreeBSD.
13194         Clone only the user name, not the entire spec.
13195         Do not set *uid, *gid unless entirely successful.
13196         Avoid memory leak in some failing cases.
13197         Fix regression for USER.GROUP reported by Dmitry V. Levin in
13198         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
13199         (parse_user_spec): Rewrite to use parse_with_separator.
13200
13201 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13202
13203         * modules/userspec: Don't depend on alloca.
13204
13205 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13206
13207         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
13208
13209 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13210
13211         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
13212         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
13213         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
13214
13215 2004-08-16  Simon Josefsson  <jas@extundo.com>
13216
13217         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
13218         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
13219         Add --dry-run for --import.
13220         Let user provided command line parameters override configure.ac
13221         settings.
13222
13223 2004-08-12  Simon Josefsson  <jas@extundo.com>
13224
13225         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
13226         as discussed with Paul Eggert in threads rooted at
13227         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
13228         and
13229         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
13230         Before, the test was empty, and relied on ELIDE_CODE in source
13231         code.)
13232         (gl_PREREQ_GETOPT): New macro.
13233         (gl_GETOPT): Use them.
13234
13235 2004-08-12  Simon Josefsson  <jas@extundo.com>
13236
13237         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
13238         * lib/getopt_.h: Renamed from getopt.h.
13239
13240 2004-08-12  Simon Josefsson  <jas@extundo.com>
13241
13242         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
13243         Change default library name from libfoo to libgnu.
13244         Now, if you have a configure.ac that says:
13245                 gl_SOURCE_BASE(gl)
13246                 gl_M4_BASE(gl/m4)
13247                 gl_MODULES(error getopt etcetera)
13248                 gl_INIT
13249         you can import all you need by running:
13250                 ../gnulib/gnulib-tool --import
13251
13252         * modules/getopt (Files): Rename getopt.h to getopt_.h.
13253         (Makefile.am): Rewrite, use logic from argz.
13254         (Include): Use <getopt.h> instead of "getopt.h".
13255
13256 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13257
13258         * modules/argp (Files): Add m4/unlocked-io.m4.
13259         (Depends-on): Add extensions.
13260
13261 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13262
13263         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
13264         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
13265         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
13266         Check for program_invocation_name, program_invocation_short_name,
13267         flockfile, funlockfile, features.h, _getopt_long_only_r.
13268
13269 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13270
13271         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
13272         its complicated substitute.
13273         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
13274         and program_invocation_name.
13275         (__argp_basename) [!_LIBC]: Remove; the only use was
13276         replaced by its body.
13277         (__argp_short_program_name): Change condition from
13278         !defined __argp_short_program_name to
13279         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
13280         to match argp-namefrob.h.
13281         (__argp_failure): Don't assume strerror_r returns char *.
13282         * lib/argp-parse.c (N_): Define unconditionally.
13283         (argp_default_options): Fill out initializers with 0 to avoid
13284         gcc warnings.
13285
13286 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13287
13288         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
13289         getopt1.c.
13290
13291 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13292
13293         Merge from coreutils.
13294
13295         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
13296
13297         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
13298         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
13299
13300 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13301
13302         Merge from coreutils.
13303
13304         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
13305         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
13306         for Reliant Unix 5.43.
13307
13308         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
13309         (union fooround): Use uintmax_t, not long int.
13310         The rest is a merge from libc:
13311         [defined _LIBC]: Include <shlib-compat.h>.
13312         (_obstack) [defined _LIBC]: Remove after 2.3.4.
13313
13314         * lib/settime.c (settime): Recode to avoid warning with
13315         Sun Forte C 6U2.
13316
13317         * lib/strverscmp.c: Convert to UTF-8.
13318
13319 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13320
13321         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
13322         m4/uintmax_t.m4.
13323
13324 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13325
13326         * modules/xalloc-die: New file.
13327         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
13328
13329         * modules/md5 (Files): Add m4/uint32_t.m4.
13330         * modules/sha1: Renamed from modules/sha.
13331         (Files):
13332         Rename lib/sha.h to lib/sha1.h.
13333         Rename lib/sha.c to lib/sha1.c.
13334         Rename m4/sha.m4 to m4/sha1.m4.
13335         (lib_SOURCES): Likewise.
13336         (configure.ac): Rename gl_SHA to gl_SHA1.
13337         (Include): sha.h -> sha1.h.
13338
13339 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13340
13341         * m4/uint32_t.m4, uintptr_t.m4: New files.
13342         * m4/sha1.m4: Renamed from sha.m4.
13343         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
13344
13345 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13346
13347         * lib/obstack.h (obstack_empty_p):
13348         Don't assume that chunk->contents is suitably aligned.
13349         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
13350         Likewise. Problem reported by Benno in
13351         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
13352
13353         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
13354         readable.  This could be improved further but it'd take some work.
13355
13356 2004-08-08  Simon Josefsson  <jas@extundo.com>
13357
13358         * modules/xgethostname (Depends-on): Remove exit and error (not
13359         used).
13360
13361         * modules/getpass-gnu: Add getpass.h.
13362         (Depends-on): Add stdbool.
13363         * modules/getpass: Add getpass.h.
13364
13365 2004-08-08  Simon Josefsson  <jas@extundo.com>
13366
13367         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
13368         Check getpass declaration.
13369
13370 2004-08-08  Simon Josefsson  <jas@extundo.com>
13371
13372         * lib/xgethostname.c: Don't include error.h (not used).
13373
13374         * lib/getpass.h: Add.
13375         * lib/getpass.c: Include getpass.h first.
13376
13377 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
13378
13379         * lib/xalloc-die.c: New files.
13380         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
13381         All uses removed.
13382         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
13383         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
13384         xalloc-die.c.
13385         (_, N_, xalloc_die): Move to xalloc-die.c.
13386         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
13387         so that we needn't mess with xalloc_msg_memory_exhausted.
13388
13389         * lib/sha1.h: Renamed from sha.h.
13390         (SHA1_H): Renamed from _SHA_H.
13391         (sha1_ctx): Renamed from sha_ctx.
13392         (sha1_init_ctx): Renamed from sha_init_ctx.
13393         (sha1_process_block): Renamed from sha_process_block.
13394         (sha1_process_bytes): Renamed from sha_process_bytes.
13395         (sha1_finish_ctx): Renamed from sha_finish_ctx.
13396         (sha1_read_ctx): Renamed from sha_read_ctx.
13397         (sha1_stream): Renamed from sha_stream.
13398         (sha1_buffer): Renamed from sha_buffer.
13399         * lib/sha1.c: Likewise; renamed from sha.c.
13400         Do not include <sys/types.h>.
13401         Include <stddef.h> rather than <stdlib.h>.
13402
13403 2004-08-08  Bruno Haible  <bruno@clisp.org>
13404
13405         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
13406         FILESYSTEM_PREFIX_LEN.
13407         * lib/progreloc.c: Likewise.
13408         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
13409
13410 2004-08-06  Simon Josefsson  <jas@extundo.com>
13411
13412         * modules/progname (Depends-on): Don't depend on stdbool.
13413
13414 2004-08-06  Simon Josefsson  <jas@extundo.com>
13415
13416         * modules/getsubopt: New file.
13417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13418         getsubopt.
13419
13420 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13421
13422         More merge from coreutils.
13423
13424         * m4/utimens.m4, utimecmp.m4: New files.
13425         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
13426         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
13427         prereq.m4, sha.m4: Import changes from coreutils.
13428
13429 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13430
13431         More merge from coreutils.
13432         * modules/raise, modules/readtokens0, modules/utimens,
13433         modules/utimecmp, module/xnanosleep: New files.
13434         * modules/strftime: Add lib/strftime.h.
13435         Change include from <time.h> to "strftime.h".
13436         * modules/yesno: Add lib/yesno.h.
13437         * modules/backupfile: Remove lib/addext.c.
13438         * modules/euidaccess: Add stat-macros.h.
13439         * modules/canonicalize, modules/euidaccess,
13440         modules/filemode, modules/lchown, modules/makepath,
13441         modules/rmdir, modules/stat: Likewise.
13442
13443 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13444
13445         Merge from tar.
13446         * lib/argp-help.c (make_hol, hol_append): Don't assume that
13447         SIZE_MAX is a valid preprocessor constant.
13448         (__argp_basename): Change from "#ifndef _LIBC"
13449         to "#ifndef __argp_short_program_name", so that
13450         we don't compile these functions for tar.
13451
13452         More merges from coreutils.
13453         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h,
13454         lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c,
13455         lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
13456         * lib/addext.c: Remove; no longer needed.
13457         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
13458         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
13459         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
13460         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
13461         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
13462         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
13463         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
13464         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
13465         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
13466         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13467         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
13468         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
13469         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
13470         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
13471         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
13472         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
13473         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
13474         Import changes from coreutils.
13475
13476 2004-08-05  Simon Josefsson  <jas@extundo.com>
13477
13478         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
13479
13480 2004-08-05  Simon Josefsson  <jas@extundo.com>
13481
13482         * m4/getsubopt.m4: New file.
13483
13484 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13485
13486         Merge from coreutils.
13487
13488         * m4/c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
13489         New files.
13490
13491         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
13492         FILESYSTEM_PREFIX_LEN ->
13493         FILE_SYSTEM_PREFIX_LEN.
13494         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
13495         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
13496         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
13497         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
13498
13499         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
13500         prerequisite modules now handle the DOS stuff.
13501         Don't check for unistd.h.
13502
13503 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13504
13505         Merge from coreutils.
13506
13507         * lib/.gdb-history: Remove; this doesn't belong here.
13508
13509         * lib/c-strtod.c, c-strtod.h, c-strtold.c, cycle-check.c,
13510         cycle-check.h, dev-ino.h, canonicalize.h, canonicalize.c,
13511         fcntl-safer.h, fcntl-safer.c, getcwd.c: New files.
13512
13513         * lib/dirname.h: Include <stdbool.h>.
13514         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
13515         for consistency with POSIX terminology.  All uses changed.
13516         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
13517         (strip_trailing_slashes): Use bool for booleans.
13518         * lib/stripslash.c (strip_trailing_slashes): Likewise.
13519
13520         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
13521         sometimes returns a positive errno value even when it succeeds.
13522         (print_errno_message) [!LIBC]: Fall back on strerror if
13523         __strerror_r fails.
13524
13525         * lib/path-concat.c (mempcpy): Don't define if a system header defines
13526         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
13527         (longest_relative_suffix): New function.
13528         (path_concat): Use it.  Assume first argument is not NULL.
13529         Port to DOS.  Omit redundant separators.
13530         Report an error instead of returning NULL.
13531         Use mempcpy instead of memcpy.
13532         (xpath_concat): Remove: not declared or used.
13533
13534         * lib/same.h: Include <stdbool.h>
13535         (same_name): Return bool, not int.
13536         * lib/same.c (same_name): Likewise.
13537         (errno): Don't declare; we assume C89 or better now.
13538
13539         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
13540         if not already defined.
13541
13542         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
13543         * lib/dup-safer.c (errno): Likewise.
13544
13545 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13546
13547         Merge from coreutils.
13548         * modules/c-strtod, modules/c-strtold, modules/canonicalize,
13549         modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
13550         * modules/path-concat: Don't depend on strdup.
13551
13552 2004-08-03  Simon Josefsson  <jas@extundo.com>
13553
13554         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
13555         * lib/progname.h: Don't include stdbool.h.
13556
13557 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13558
13559         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
13560         * MODULES.html.sh (func_all_modules): Remove fatal.
13561
13562 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13563
13564         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
13565
13566 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13567
13568         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
13569         working.
13570
13571 2004-08-02  Simon Josefsson  <jas@extundo.com>
13572
13573         * lib/getsubopt.h: New file, with comments from Bruno Haible.
13574         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
13575         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
13576
13577 2004-08-01  Simon Josefsson  <jas@extundo.com>
13578
13579         * lib/xgetdomainname.c: Include stdlib.h, for free().
13580
13581 2004-07-19  Bruno Haible  <bruno@clisp.org>
13582
13583         * MODULES.html.sh (func_all_modules): Add dummy.
13584
13585 2004-07-16  Simon Josefsson  <jas@extundo.com>
13586
13587         * modules/dummy: New file.
13588
13589 2004-07-16  Simon Josefsson  <jas@extundo.com>
13590
13591         * lib/dummy.c: New file.
13592
13593 2004-07-16  Bruno Haible  <bruno@clisp.org>
13594
13595         * lib/backupfile.h: Add extern "C" for C++.
13596         * lib/closeout.h: Likewise.
13597         * lib/copy-file.h: Likewise.
13598         * lib/findprog.h: Likewise.
13599         * lib/full-write.h: Likewise.
13600         * lib/pathname.h: Likewise.
13601         * lib/progname.h: Likewise.
13602         * lib/stpcpy.h: Likewise.
13603         * lib/stpncpy.h: Likewise.
13604         * lib/strcase.h: Likewise.
13605         * lib/strstr.h: Likewise.
13606         * lib/xalloc.h: Likewise.
13607
13608         * lib/mbswidth.h: Add extern "C" for C++.
13609         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
13610
13611 2004-07-13  Robert Millan  <robertmh@gnu.org>
13612
13613         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
13614
13615 2004-07-09  Simon Josefsson  <jas@extundo.com>
13616
13617         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
13618         failed without this.)
13619
13620 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13621
13622         * modules/chown (Files): Add lib/fchown-stub.c, since
13623         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
13624
13625 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13626
13627         * lib/fchown-stub.c: New file.
13628
13629 2004-06-24  Jim Meyering  <jim@meyering.net>
13630
13631         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
13632
13633 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13634
13635         * modules/argz: Omit "#include".
13636
13637         * MODULES.html.sh (func_all_modules): Add calloc, to match
13638         2004-06-01 addition of calloc module.
13639
13640 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13641
13642         * m4/argz.m4: New file, which is autoupdated from libtool.
13643
13644 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13645
13646         * lib/argz.c, argz_.h: New files, which are autoupdated from libtool.
13647
13648 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13649
13650         * config/srclist-update: Don't insist on "USA." before the
13651         close-comment, as libtool omits the period and puts the */ on a
13652         separate line.
13653         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
13654         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
13655
13656 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
13657
13658         * modules/argz: New file.
13659         * MODULES.html.sh (func_all_modules): Add argz.
13660
13661 2004-06-12  Jim Meyering  <jim@meyering.net>
13662         and  Paul Eggert  <eggert@cs.ucla.edu>
13663
13664         * modules/hash (Files): Add lib/xalloc.h.
13665         * modules/pipe (Depends-on): Add wait-process.
13666         * modules/stat (Depends-on): Add xalloc.
13667         * modules/userspec (Files): Add lib/userspec.h.
13668         * modules/xstrto
13669
13670         Upgrade from gettext-0.13.
13671         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
13672         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
13673         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
13674
13675 2004-06-10  Jim Meyering  <jim@meyering.net>
13676
13677         * lib/calloc.c: New file.
13678
13679 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13680
13681         * lib/getdate.y (yylex): Allow space between sign and number.
13682         Problem reported by Dan Jacobson.
13683
13684 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13685
13686         Merge from coreutils CVS.
13687
13688         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
13689         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
13690         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
13691         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
13692         xstrtol.m4: Fix copyright date and/or serial number.
13693
13694         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
13695         See if we need an fchown replacement.
13696         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
13697         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
13698         and use the replacement function if we detect either defect.
13699
13700         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
13701         gl_UTIMECMP.
13702
13703 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13704         and  Jim Meyering  <jim@meyering.net>
13705
13706         Merge from coreutils CVS.
13707
13708         * lib/stat-macros.h: New file, with contents from file-type.h
13709         and coreutils' system.h.
13710         * lib/file-type.c: Include "stat-macros.h".
13711         * lib/file-type.h (file_type): Move all macro definitions to new file,
13712         stat-macros.h.
13713
13714         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
13715         Wrap old code with this conditional.
13716         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
13717         function that does not dereference symlinks.
13718         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
13719
13720         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
13721         dependency problems.
13722         (xreadlink): Accept new arg SIZE, for efficiency.
13723         All decls and uses changed.
13724         * lib/xreadlink.h: Include <stddef.h>, for size_t.
13725
13726         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
13727         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
13728
13729         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
13730         sysexits.h.
13731
13732 2004-06-01  Jim Meyering  <jim@meyering.net>
13733
13734         * m4/calloc.m4: New file.
13735
13736 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
13737
13738         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
13739         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
13740         Also, fix a typo in a diagnostic.
13741
13742 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
13743
13744         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
13745         or AC_FUNC_REALLOC.
13746
13747 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
13748
13749         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
13750         macros to be defined.
13751         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
13752         the allocator returns NULL because the requested size is zero.
13753
13754 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13755
13756         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
13757         var.  Add comment explaining why libc still defines it.  This
13758         merges the following patch from glibc:
13759         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
13760
13761 2004-05-20  Andreas Schwab  <schwab@suse.de>
13762
13763         * m4/free.m4: Replace free if it not known to work, not the other
13764         way round.
13765
13766 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13767
13768         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
13769         present in glibc since revision 1.1 of this file.
13770         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
13771         obstack_alignment_mask, obstack_alloc, obstack_base,
13772         obstack_blank, obstack_blank_fast, obstack_chunk_size,
13773         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
13774         obstack_grow0, obstack_init, obstack_int_grow,
13775         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
13776         obstack_next_free, obstack_object_size, obstack_ptr_grow,
13777         obstack_ptr_grow_fast, obstack_room): Remove declarations of
13778         nonexistent functions.
13779
13780 2004-05-18  Karl Berry  <karl@gnu.org>
13781
13782         * config/srclist.txt: break link for vasnprintf.c.
13783
13784 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13785
13786         Port obstack to the AS/400, where pointers are 16 bytes wide and
13787         you cannot cast an integer to a valid pointer.  This patch is
13788         currently waiting to be integrated into glibc; see
13789         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
13790
13791         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
13792         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
13793         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
13794         (struct obstack): temp member is now a union of a pointer and
13795         an integer, instead of an integer.  All integer uses changed.
13796         This does not affect the physical layout of struct obstack,
13797         except on hosts (like the AS/400) where the size or alignment of
13798         void * is greater than that of ptrdiff_t.
13799         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
13800         __STDC__)]: Store temporary in pointer member of union, not
13801         integer member.
13802         * lib/obstack.c: Include <stddef.h>, for offsetof.
13803         (struct fooalign): Remove; it doesn't need a name.
13804         (union fooround): Change double to long double, and add void *.
13805         (DEFAULT_ALIGNMENT): Use offsetof to compute.
13806         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
13807         not a macro.  Hence the values are always int; so remove all
13808         casts-to-int in uses.
13809
13810 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13811
13812         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
13813         we can get this patch merged into glibc.
13814
13815 2004-05-17  Derek R. Price  <derek@ximbiot.com>
13816             Paul Eggert  <eggert@cs.ucla.edu>
13817
13818         * m4/argp: Depend on alloca.
13819
13820 2004-05-17  Derek R. Price  <derek@ximbiot.com>
13821             Paul Eggert  <eggert@cs.ucla.edu>
13822
13823         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
13824         freecoding.
13825
13826 2004-05-17  Bruno Haible  <bruno@clisp.org>
13827
13828         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
13829         precision that consists of a '.' followed by an empty digit string.
13830         Patch by Tor Lillqvist <tml@iki.fi>.
13831
13832 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13833
13834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
13835         for backward compatibility with older code.  We need our own
13836         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
13837         it under some other name, and our alloca.h will define it.
13838
13839 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13840             Derek Price  <derek@ximbiot.com>
13841
13842         * lib/alloca.c: Include <alloca.h>, to get our interface.
13843         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
13844         include <alloca.h> first.  Use C89 prototype for alloca; this
13845         requires including <stddef.h> for size_t.  Use extern "C" if C++.
13846         Use #elif for simplicity, since we can assume C89 now.
13847         Don't try to source the system alloca.h since it will not be found
13848         and to prevent recursively including its replacement.
13849         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
13850         * lib/regex.c: Likewise.
13851
13852 2004-05-16  Derek Price  <derek@ximbiot.com>
13853             Paul Eggert  <eggert@cs.ucla.edu>
13854
13855         getline cleanup.  This changes the getndelim2 API: both order of
13856         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
13857         no delimiter).
13858
13859         * lib/getline.c: Don't include stddef.h or stdio.h, since our
13860         interface does that.
13861         (getline): Always use getdelim, so that we don't have two
13862         copies of this code.
13863         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
13864         if available.
13865         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
13866         (GETNDELIM2_MAXIMUM): New macro.
13867         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
13868         instead of the old practice of delim2==0.  All callers changed.
13869         Return -1 on overflow, instead of returning junk.
13870         Do not set *linesize unless allocation succeeds.
13871         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
13872         that we include sys/types.h.
13873         * lib/getnline.h: Likewise.
13874         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
13875         (getndelim2): Reorder arguments.
13876         * lib/getnline.c (getnline, getndelim):
13877         Don't discard the NMAX argument.
13878         (getnline): Invoke getndelim, to avoid code duplication.
13879         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
13880         of (size_t) -1 by callers of the getnline family.
13881
13882 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13883
13884         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
13885         Check for gettimeofday.
13886         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
13887         Check for settimeofday, stime.
13888
13889 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13890
13891         * lib/nanosleep.c (suspended): Change its type from int to
13892         sig_atomic_t volatile.
13893         (first_call): Make it private to rpl_nanosleep, and have it
13894         be zero initially as that's a bit faster.
13895         (my_usleep): Round up fractional times instead of truncating them,
13896         as this is the usual meaning for 'sleep'.
13897
13898         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
13899         doesn't work.
13900         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
13901         (ENOSYS): Define if not defined.
13902         (settime): Fall back on stime if it exists and settimeofday fails.
13903         But don't bother with fallbacks if a method fails with errno == EPERM.
13904
13905 2004-05-11  Jim Meyering  <jim@meyering.net>
13906
13907         Prior to this change, the save_cwd caller required read access to the
13908         current directory on most systems (ones with the fchdir function).
13909
13910         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
13911         fails, try write-only, and finally, resort to using xgetcwd.
13912
13913 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13914
13915         * lib/obstack.c, obstack.h: Import changes from libc.
13916
13917 2004-04-28  Bruno Haible  <bruno@clisp.org>
13918
13919         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
13920         also implicitly appends .exe to executables.
13921         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
13922         accepts Windows pathnames.
13923         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
13924         Treat Cygwin like Windows, since it now accepts Windows pathnames.
13925         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
13926         Treat Cygwin like Windows, since it now accepts Windows pathnames.
13927         Reported by Derek Robert Price <derek@ximbiot.com>.
13928
13929 2004-04-21  Karl Berry  <karl@gnu.org>
13930
13931         * config/srclist.txt (localcharset.c): break sync.
13932
13933 2004-04-20  Paul Eggert  <eggert@twinsun.com>
13934
13935         * m4/host-os.m4: Add a copyright notice.
13936
13937 2004-04-20  Jim Meyering  <jim@meyering.net>
13938
13939         Change UTILS_ to gl_ in AC_DEFINE'd names.
13940         Change utils_- and jm_-prefixed variables, too.
13941         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
13942         UTILS_FUNC_MKDIR_TRAILING_SLASH.
13943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
13944
13945         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
13946         Don't emit trailing blanks.
13947         Also rename jm_-prefixed variables to have gl_ prefix.
13948
13949         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
13950         Also rename jm_-prefixed variables to have gl_ prefix.
13951
13952         * m4/jm-macros.m4: Reflect the renamings.
13953         * m4/prereq.m4: Likewise.
13954
13955 2004-04-20  Jim Meyering  <jim@meyering.net>
13956
13957         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
13958         memory.
13959
13960 2004-04-20  Jim Meyering  <jim@meyering.net>
13961             Bruno Haible  <bruno@clisp.org>
13962
13963         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
13964         memory when realloc fails.
13965
13966 2004-04-19  Jim Meyering  <jim@meyering.net>
13967
13968         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
13969         now that readutmp.c may call `free (0)'.
13970
13971 2004-04-19  Bruno Haible  <bruno@clisp.org>
13972
13973         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
13974         * m4/inttypes_h.m4: Likewise.
13975         * m4/stdint_h.m4: Likewise.
13976         * m4/intmax_t.m4: Likewise.
13977         * m4/uintmax_t.m4: Likewise.
13978
13979 2004-04-18  Jim Meyering  <jim@meyering.net>
13980
13981         * m4/prereq.m4: Don't forbid jm_ prefix.
13982
13983         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
13984         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
13985         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
13986         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
13987         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
13988         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
13989         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
13990         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
13991         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
13992         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
13993         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
13994         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
13995         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
13996         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
13997         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
13998         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
13999         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
14000         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
14001         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
14002
14003 2004-04-18  Jim Meyering  <jim@meyering.net>
14004
14005         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
14006         failure, don't leak memory and do call END_UTMP_ENT.
14007
14008 2004-04-16  Jim Meyering  <jim@meyering.net>
14009
14010         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
14011         coreutils' stat program.
14012         (gl_PREREQ): Don't require jm_PREREQ_STAT.
14013
14014 2004-04-11  Paul Eggert  <eggert@twinsun.com>
14015
14016         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
14017         C89.
14018         (CHAR_BIT): Remove, since we assume C89.
14019         Include <stdint.h> if available, as per current Autoconf CVS advice.
14020
14021 2004-03-31  Jim Meyering  <jim@meyering.net>
14022
14023         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
14024         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
14025         * m4/xalloc.m4: Likewise.
14026
14027 2004-03-30  Paul Eggert  <eggert@twinsun.com>
14028
14029         Merge from coreutils.
14030
14031         * m4/inttostr.m4: New file.
14032         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
14033         Require AM_STDBOOL_H and gl_TIMESPEC instead.
14034         Require gl_CLOCK_TIME.
14035         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
14036
14037 2004-03-30  Paul Eggert  <eggert@twinsun.com>
14038
14039         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
14040         not bool, to be more consistent with Unix conventions.
14041         Suggested by Bruno Haible.
14042
14043         Merge from coreutils.
14044
14045         * lib/imaxtostr.c, inttostr.c, inttostr.h, offtostr.c, umaxtostr.c:
14046         New files.
14047
14048         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
14049         the usual <time.h> dance.
14050         (get_date): Change signature to support fractional time stamps.
14051         All callers changed.
14052         * lib/getdate.y: Include "getdate.h" first, as we can now
14053         assume C89 and don't need to worry about 'const'.
14054         Similarly, include "unlocked-io.h" near start, not in middle.
14055         Include <limits.h>.
14056         (textint.value): Use long int rather than int.
14057         (textint.digits): Use size_t rather than int.
14058         (BILLION, LOG10_BILLION): New constants.
14059         (parser_control): New member rel_ns.  Members day_ordinal,
14060         time_zone, month, day, hour, minutes, rel_year, rel_month,
14061         rel_day, rel_hour, rel_minutes, rel_seconds
14062         are now long int, not int.  Member seconds is now struct timespec,
14063         not int.  New member timespec_seen.  Members dates_seen, days_seen,
14064         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
14065         not int.
14066         (%union.intval): Now long int, not int.
14067         New member timespec.
14068         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
14069         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
14070         (spec): Now is a timespec or an item list.
14071         (timespec, items): New nonterminals.
14072         (time, rel, relunit, number, get_date):
14073         Add support for fractional seconds.
14074         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
14075         (gmtime, localtime, mktime): Remove decls; not needed with C89.
14076         (to_hour): First arg is now long int, not int.
14077         (to_year): Returns long int, not int.
14078         Don't treat year -70 like 70.
14079         (tm_diff): Returns long int, not int.
14080         (lookup_word): Use bool instead of int when appropriate.
14081         (yylex): Use size_t for count, not int.
14082         Detect overflow when parsing large integer constants.
14083         Add support for fractions.
14084         (get_date): Make pointers 'const' if possible.
14085         Use more-portable code to detect integer overflow.
14086         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
14087         Don't use ctime; it's not reliable if the year has >4 digits.
14088
14089         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
14090         This is for compatibility with BSD.
14091
14092         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
14093         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
14094         From coreutils' system.h.
14095
14096         * lib/userspec.c: Don't include "posixver.h".
14097         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
14098         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
14099         compatible extension.  Simplify code by removing a boolean int
14100         that was always nonzero if a string was nonnull.
14101
14102 2004-03-30  Jim Meyering  <jim@meyering.net>
14103
14104         Merge from coreutils.
14105
14106         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
14107         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
14108         on some systems one must include <grp.h> before it.
14109         Reported by Christian Krackowizer.
14110
14111 2004-03-30  Jim Meyering  <jim@meyering.net>
14112
14113         Merge from coreutils.
14114
14115         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
14116
14117         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
14118         an empty input stream.
14119
14120         * lib/readtokens.c: Include <stdbool.h>.
14121         (readtoken): Use `size_t' rather than int/long.
14122         All callers adjusted.
14123         Use `bool' rather than `int' where appropriate.
14124         Use memset rather than an explicit loop.
14125         Use x2nrealloc rather than xrealloc.
14126         Allow the use of `\0' as a delimiter.
14127         (readtokens): Likewise.
14128         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
14129
14130 2004-03-30  Jim Meyering  <jim@meyering.net>
14131
14132         * m4/realloc.m4: Remove file, since now it does no more than
14133         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
14134         the `configure.ac' section of module/realloc.
14135         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
14136
14137 2004-03-30  Bruno Haible  <bruno@clisp.org>
14138
14139         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
14140         nonnull.
14141
14142 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14143
14144         Merge changes to getloadavg.c from coreutils and Emacs.
14145
14146         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
14147         Define to an expression, not to the empty string.
14148         Include cloexec.h and xalloc.h.
14149         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
14150         Use set_cloexec_flag rather than rolling our own.
14151         * lib/cloexec.c, cloexec.h: New files.
14152
14153 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14154
14155         * m4/cloexec.m4: New file.
14156
14157 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14158
14159         * lib/getopt.h: Sync with libc CVS.
14160
14161 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14162             Bruno Haible  <bruno@clisp.org>
14163
14164         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
14165         mbswidth.
14166
14167 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14168             Bruno Haible  <bruno@clisp.org>
14169
14170         * lib/mbswidth.h: Include <wchar.h> only if
14171         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
14172         <wchar.h>.
14173         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
14174
14175 2004-03-09  Paul Eggert  <eggert@twinsun.com>
14176
14177         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
14178         Sync with libc CVS.
14179         * lib/getopt_int.h: New file, also synced from libc.
14180
14181 2004-03-09  Paul Eggert  <eggert@twinsun.com>
14182
14183         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
14184         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
14185         Bring back getopt.c, getopt.h, getopt1.c.
14186
14187 2004-03-07  Paul Eggert  <eggert@twinsun.com>
14188
14189         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
14190         All uses changed.  Check for sa_sigaction member; this fixes
14191         a bug first reported by Jason Andrade in
14192         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
14193
14194 2004-03-07  Paul Eggert  <eggert@twinsun.com>
14195
14196         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
14197         '#if' expressions.  Unlike the code it replaces, it does not
14198         depend on (defined _SC_PAGESIZE).  However, it does depend on
14199         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
14200         first reported by Jason Andrade in
14201         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
14202
14203 2004-02-25  Simon Josefsson  <jas@extundo.com>
14204
14205         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
14206
14207 2004-02-25  Simon Josefsson  <jas@extundo.com>
14208
14209         * lib/strdup.h: New file.
14210         * lib/strdup.c: Include it.
14211         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
14212         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
14213
14214 2004-02-23  Karl Berry  <karl@gnu.org>
14215
14216         * doc/maintain.texi, standards.texi, make-stds.texi: new files
14217         (from fencepost.gnu.org:/gd/gnuorg).
14218
14219 2004-02-23  Karl Berry  <karl@gnu.org>
14220
14221         * config/srclistvars.sh (GNUORG) [karl]: redefine.
14222         * config/srclist.txt: add maintain/standards documents.
14223
14224 2004-02-18  Bruno Haible  <bruno@clisp.org>
14225
14226         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
14227         Reported by Derek Robert Price <derek@ximbiot.com>.
14228
14229 2004-02-16  Karl Berry  <karl@gnu.org>
14230
14231         * config/mkinstalldirs, install-sh: update from automake.
14232
14233 2004-02-06  Karl Berry  <karl@gnu.org>
14234
14235         * m4/po.m4: update from gettext 0.14.1.
14236
14237 2004-02-06  Karl Berry  <karl@gnu.org>
14238
14239         * lib/config.charset: update from gettext 0.14.1.
14240
14241 2004-02-05  Paul Eggert  <eggert@twinsun.com>
14242
14243         Add comments and code, prompted by suggestions from Bruno Haible
14244         for sh-quote.
14245         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
14246         describing the enum quoting_style values.
14247         * lib/quotearg.c (quotearg_alloc): New function.
14248         (quotearg_buffer_restyled): Treat lone { and } as special.
14249         Treat = as special.  Work around bug with older shells
14250         that "see" a '\' that is really the 2nd byte of a multibyte char.
14251         Quote empty string with shell_quoting_style.
14252
14253 2004-02-03  Bruno Haible  <bruno@clisp.org>
14254
14255         * m4/pipe.m4: New file, from GNU gettext.
14256
14257 2004-02-03  Bruno Haible  <bruno@clisp.org>
14258
14259         * lib/pipe.h: New file, from GNU gettext.
14260         * lib/pipe.c: New file, from GNU gettext.
14261
14262 2004-01-27  Bruno Haible  <bruno@clisp.org>
14263
14264         * m4/execute.m4: New file, from GNU gettext.
14265
14266 2004-01-27  Bruno Haible  <bruno@clisp.org>
14267
14268         * lib/execute.h: New file, from GNU gettext.
14269         * lib/execute.c: New file, from GNU gettext.
14270         * lib/w32spawn.h: New file, from GNU gettext.
14271
14272 2004-01-24  Paul Eggert  <eggert@twinsun.com>
14273
14274         Merge from diffutils.
14275
14276         * lib/file-type.c (file_type): Add typed memory objects.
14277         * lib/file-type.h (S_TYPEISTMO): New macro.
14278
14279         * lib/c-stack.h (c_stack_action): Remove argv argument.
14280         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
14281         (die): Don't calculate message unless segv_action returns.
14282         (get_stack_location, min_address_from_argv, max_address_from_argv,
14283         volatile stack_base, volatile_stack_size): Remove.
14284         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
14285         that every segmentation violation is a stack overflow.  (Ouch!)
14286         See Debian bug 136249 (still outstanding) for more info about why
14287         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
14288
14289 2004-01-24  Paul Eggert  <eggert@twinsun.com>
14290
14291         Exit-status fix from coreutils.
14292
14293         Use exit_failure consistently in place of EXIT_FAILURE,
14294         so that program exit statuses are consistent on failure.
14295
14296         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
14297         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
14298         * lib/argmatch.h: Comment fix to match the above.
14299         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
14300         Now a macro referring to exit_failure, instead of a separate
14301         variable.  Include "exitfail.h" to get it.
14302         * lib/xstrtol.h: Include "exitfail.h".
14303         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
14304
14305         * lib/long-options.c (parse_long_options): Use prototype
14306         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
14307         for clarity.
14308
14309 2004-01-21  Jim Meyering  <jim@meyering.net>
14310
14311         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
14312         so as not to conflict with a different-sized __mktime_internal
14313         function in GNU libc.
14314         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
14315         Problem building statically-linked `ls' reported by Michael Brunnbauer.
14316
14317 2004-01-20  Karl Berry  <karl@gnu.org>
14318
14319         * config/config.guess: update from config.
14320
14321         * config/srclistvars.sh: GNUWWWLICENSES for karl.
14322
14323 2004-01-20  Bruno Haible  <bruno@clisp.org>
14324
14325         Safer stack allocation.
14326         * lib/setenv.c: Include allocsa.h.
14327         (alloca): Remove fallback definition.
14328         (freea): Remove macro.
14329         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
14330         instead of freea.
14331
14332 2004-01-20  Bruno Haible  <bruno@clisp.org>
14333
14334         * m4/eealloc.m4: New file, from GNU gettext.
14335
14336 2004-01-20  Bruno Haible  <bruno@clisp.org>
14337
14338         * m4/allocsa.m4: New file, from GNU gettext.
14339
14340 2004-01-20  Bruno Haible  <bruno@clisp.org>
14341
14342         * lib/xallocsa.h: New file, from GNU gettext.
14343         * lib/xallocsa.c: New file, from GNU gettext.
14344
14345 2004-01-20  Bruno Haible  <bruno@clisp.org>
14346
14347         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
14348
14349 2004-01-20  Bruno Haible  <bruno@clisp.org>
14350
14351         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
14352         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
14353         specially.
14354
14355 2004-01-20  Bruno Haible  <bruno@clisp.org>
14356
14357         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
14358         patch.
14359
14360 2004-01-20  Bruno Haible  <bruno@clisp.org>
14361
14362         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
14363
14364 2004-01-20  Bruno Haible  <bruno@clisp.org>
14365
14366         * lib/eealloc.h: New file.
14367
14368 2004-01-20  Bruno Haible  <bruno@clisp.org>
14369
14370         * lib/binary-io.h: Avoid warnings on Cygwin.
14371
14372 2004-01-20  Bruno Haible  <bruno@clisp.org>
14373
14374         * lib/allocsa.h: New file, from GNU gettext.
14375         * lib/allocsa.c: New file, from GNU gettext.
14376
14377 2004-01-18  Karl Berry  <karl@gnu.org>
14378
14379         * doc/gpl.texi, lgpl.texi: new files.
14380
14381 2004-01-18  Karl Berry  <karl@gnu.org>
14382
14383         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
14384         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
14385
14386 2004-01-15  Paul Eggert  <eggert@twinsun.com>
14387
14388         Merge from coreutils.
14389
14390         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
14391         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
14392         (gl_DEFAULT_POSIX2_VERSION): Move
14393         the documentation from 'configure' into 'config.hin',
14394         so that 'configure --help' isn't burdened by it and
14395         we don't have to worry about its formatting there.
14396         Reword the documentation so that it's more succinct
14397         and can be run together into a single paragraph.
14398         * m4/same.m4 (gl_SAME): Check for pathconf.
14399
14400 2004-01-15  Paul Eggert  <eggert@twinsun.com>
14401
14402         Merge from coreutils.
14403
14404         * lib/posixver.c: Include posixver.h.
14405
14406         * lib/same.c: Include <stdbool.h>, <limits.h>.
14407         (_POSIX_NAME_MAX): Define if not defined.
14408         (MIN): New macro.
14409         (same_name): If file names are silently truncated, report
14410         that the file names are the same if they are the same after
14411         the silent truncation.
14412
14413         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
14414         conversion function.
14415         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
14416         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
14417         longer needed.
14418
14419 2004-01-15  Jim Meyering  <jim@meyering.net>
14420
14421         Merge from coreutils.
14422
14423         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
14424         if no library is required.
14425         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
14426         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
14427         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
14428         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
14429         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
14430         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
14431         value, $ac_cv_search_crypt, if it's "none required".
14432         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
14433         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
14434         not gl_FUNC_GETLOADAVG.
14435         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
14436         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
14437
14438 2004-01-15  Jim Meyering  <jim@meyering.net>
14439
14440         Merge from coreutils.
14441
14442         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
14443         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
14444         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
14445
14446         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
14447         optional configure-time default.
14448
14449         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14450
14451         * lib/xreadlink.c (xreadlink): Correct outdated comment.
14452
14453 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
14454
14455         Merge from coreutils.
14456
14457         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
14458         value, $ac_cv_search_nanosleep, if it's "none required".
14459
14460 2004-01-14  Paul Eggert  <eggert@twinsun.com>
14461
14462         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
14463         with like-named macro in fnmatch.c.
14464         (EXT): Use an internal constant instead.
14465
14466         Merge fnmatch patches from glibc.
14467         * lib/fnmatch.c (mbsinit): Remove define.
14468         Add libc_hidden_ver (__fnmatch, fnmatch).
14469         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
14470         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
14471
14472 2004-01-14  Karl Berry  <karl@gnu.org>
14473
14474         * config/install-sh: update from automake.
14475
14476 2004-01-13  Karl Berry  <karl@gnu.org>
14477
14478         * config/install-sh: update from automake.
14479
14480 2004-01-09  Karl Berry  <karl@gnu.org>
14481
14482         * config/install-sh: update from automake.
14483
14484 2004-01-05  Karl Berry  <karl@gnu.org>
14485
14486         * config/config.{sub,guess}: update from config.
14487
14488 2003-12-31  Karl Berry  <karl@gnu.org>
14489
14490         * config/depcomp: update from automake.
14491
14492 2003-12-14  Karl Berry  <karl@gnu.org>
14493
14494         * lib/config.charset: update from gettext-runtime.
14495
14496 2003-12-03  Paul Eggert  <eggert@twinsun.com>
14497
14498         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
14499         Bug reported by Alfred M. Szmidt.
14500
14501 2003-12-03  Bruno Haible  <bruno@clisp.org>
14502
14503         * m4/gettext.m4: Upgrade from gettext-0.13.
14504         * m4/po.m4: Upgrade from gettext-0.13.
14505         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
14506         * m4/intmax.m4: New file, from gettext-0.13.
14507         * m4/printf-posix.m4: New file, from gettext-0.13.
14508
14509 2003-11-29  Karl Berry  <karl@gnu.org>
14510
14511         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
14512
14513 2003-11-25  Paul Eggert  <eggert@twinsun.com>
14514             Bruno Haible  <bruno@clisp.org>
14515
14516         * lib/printf-parse.h: Don't include sys/types.h.
14517         (ARG_NONE): New macro.
14518         (char_directive): Change type of *arg_index fields to size_t.
14519         * lib/printf-parse.c: Don't include sys/types.h.
14520         (SSIZE_MAX): Remove macro.
14521         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
14522         Remove unnecessary overflow check.
14523         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
14524         fields.
14525
14526 2003-11-25  Bruno Haible  <bruno@clisp.org>
14527
14528         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
14529
14530 2003-11-25  Bruno Haible  <bruno@clisp.org>
14531
14532         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
14533         gt_TYPE_SSIZE_T.
14534
14535 2003-11-24  Paul Eggert  <eggert@twinsun.com>
14536
14537         * modules/alloca: Remove dependency on xalloc.
14538
14539 2003-11-24  Paul Eggert  <eggert@twinsun.com>
14540
14541         * lib/alloca.c: Remove dependency on xalloc module.
14542         (xalloc_die): Remove.
14543         (memory_full) [!defined emacs]: New macro.
14544         [!defined emacs]: Don't include xalloc.h.
14545         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
14546         address arithmetic overflows.  Change datatypes a bit to avoid
14547         unnecessary casts.
14548
14549 2003-11-22  Jim Meyering  <jim@meyering.net>
14550
14551         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
14552         s/size/size_t/.
14553
14554 2003-11-21  Karl Berry  <karl@gnu.org>
14555
14556         * config/config.{sub,guess}: update from config.
14557
14558 2003-11-18  Karl Berry  <karl@gnu.org>
14559
14560         * config/config.{sub,guess}: update from config.
14561
14562         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
14563
14564 2003-11-17  Paul Eggert  <eggert@twinsun.com>
14565
14566         * README: Mention that S+T cannot overflow if S is the size of
14567         an existing object and T is sufficiently small.
14568
14569 2003-11-17  Jim Meyering  <jim@meyering.net>
14570
14571         On systems without utime and without a utimes function capable of
14572         dealing with a NULL struct utimbuf* argument, this utime replacement
14573         could -- in unusual circumstances -- leak a file descriptor.
14574         * lib/utime.c: Include <unistd.h> and <errno.h>.
14575         (utime_null): Be sure to close `fd' and to preserve errno.
14576         Reported by Geoff Collyer via Arnold Robbins.
14577
14578 2003-11-17  Bruno Haible  <bruno@clisp.org>
14579
14580         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
14581         (Depends-on): Add xsize.
14582
14583 2003-11-17  Bruno Haible  <bruno@clisp.org>
14584
14585         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
14586
14587 2003-11-17  Bruno Haible  <bruno@clisp.org>
14588
14589         * lib/vasnprintf.c (alloca): Remove fallback definition.
14590         (freea): Remove definition.
14591         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
14592         Reported by Paul Eggert.
14593
14594 2003-11-16  Paul Eggert  <eggert@twinsun.com>
14595             Bruno Haible  <bruno@clisp.org>
14596
14597         Protect against address arithmetic overflow.
14598         * lib/printf-args.h: Include stddef.h.
14599         (arguments): Change type of field 'count' to size_t.
14600         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
14601         'unsigned int' where appropriate.
14602         * lib/printf-parse.h: Include sys/types.h.
14603         (char_directive): Change type of *arg_index fields to ssize_t.
14604         (char_directives): Change type of fields 'count', max_*_length to
14605         size_t.
14606         * lib/printf-parse.c: Include sys/types.h and xsize.h.
14607         (SSIZE_MAX): Define fallback value.
14608         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
14609         instead of 'int' where appropriate. Check a_allocated, d_allocated
14610         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
14611         * lib/vasnprintf.c: Include xsize.h.
14612         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
14613         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
14614         overflow. Avoid wraparound when converting a width or precision from
14615         decimal to binary.
14616
14617 2003-11-16  Bruno Haible  <bruno@clisp.org>
14618
14619         Update from GNU gettext.
14620         * lib/printf-parse.c: Generalize to it can be compiled for wide
14621         strings.
14622         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
14623         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
14624         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
14625         SNPRINTF): New macros.
14626         Don't include <alloca.h> if the file is used inside libintl.
14627         (local_wcslen): New function, for Solaris 2.5.1.
14628         (VASNPRINTF): Use it instead of wcslen.
14629
14630 2003-11-16  Bruno Haible  <bruno@clisp.org>
14631
14632         * lib/xsize.h (xmax): New function.
14633         (xsum, xsum3, xsum4): Declare as "pure" functions.
14634
14635 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14636
14637         * modules/xalloc (Files): Undo latest change, since xalloc.h
14638         no longer needs SIZE_MAX or PTRDIFF_MAX.
14639
14640 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14641
14642         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
14643         gl_PTRDIFF_MAX.
14644
14645 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14646
14647         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
14648         "return", to pacify some unknown compiler.  Problem reported
14649         by Joerg Schilling.
14650
14651 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14652
14653         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
14654         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
14655         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
14656         heuristic is just as accurate as far as we know, and it removes a
14657         dependency on size_max.m4 and ptrdiff_max.m4.
14658
14659 2003-11-11  Bruno Haible  <bruno@clisp.org>
14660
14661         * modules/xsize (Files): Add m4/size_max.m4.
14662         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
14663
14664 2003-11-11  Bruno Haible  <bruno@clisp.org>
14665
14666         * m4/size_max.m4: New file.
14667         * m4/ptrdiff_max.m4: New file.
14668         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
14669         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
14670         (gl_XALLOC): Invoke it.
14671
14672 2003-11-11  Bruno Haible  <bruno@clisp.org>
14673
14674         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
14675         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
14676         defined.
14677
14678 2003-11-10  Paul Eggert  <eggert@twinsun.com>
14679
14680         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
14681         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
14682         rejected some allocations of exactly SIZE_MAX - 2 bytes.
14683         From Bruno Haible.
14684         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
14685         not (size_t) -1, since it's defined here.
14686
14687 2003-11-09  Karl Berry  <karl@gnu.org>
14688
14689         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
14690
14691 2003-11-06  Paul Eggert  <eggert@twinsun.com>
14692
14693         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
14694         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
14695         Reject sizes of exactly SIZE_MAX bytes.
14696         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
14697         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
14698
14699 2003-11-05  Bruno Haible  <bruno@clisp.org>
14700
14701         * lib/xsize.h: Include limits.h, to avoid a possible collision with
14702         SIZE_MAX defined in <limits.h> on Solaris.
14703
14704 2003-11-04  Jim Meyering  <jim@meyering.net>
14705
14706         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
14707         variable names, rather than @VAR@.
14708         * modules/poll: Likewise.
14709
14710 2003-11-04  Bruno Haible  <bruno@clisp.org>
14711
14712         * modules/xsize: New file.
14713         * modules/linebreak: Depend on xsize.
14714         * MODULES.html.sh (func_all_modules): Add xsize.
14715
14716 2003-11-04  Bruno Haible  <bruno@clisp.org>
14717
14718         * m4/xsize.m4: New file.
14719
14720 2003-11-04  Bruno Haible  <bruno@clisp.org>
14721
14722         * lib/xsize.h: New file.
14723         * lib/linebreak.c: Include xsize.h.
14724         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
14725         argument for overflow.
14726         Suggested by Paul Eggert.
14727
14728 2003-11-03  Karl Berry  <karl@gnu.org>
14729
14730         * config/config.{guess,sub}: update from config.
14731
14732 2003-11-03  Jim Meyering  <jim@meyering.net>
14733
14734         * modules/userspec (lib_SOURCES): Add userspec.h.
14735         (Include): Add "userspec.h".
14736         Improve description.
14737
14738 2003-11-03  Jim Meyering  <jim@meyering.net>
14739
14740         * lib/userspec.c: Include "userspec.h".
14741         * lib/userspec.h: New file.
14742
14743 2003-11-03  Bruno Haible  <bruno@clisp.org>
14744
14745         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
14746
14747 2003-11-03  Bruno Haible  <bruno@clisp.org>
14748
14749         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
14750         available, to avoid (extremely rare) race condition.
14751         Suggested by Paul Eggert.
14752
14753 2003-11-02  Karl Berry  <karl@gnu.org>
14754
14755         * config/srclist.txt (vasprintf.c): sync broken, sigh.
14756
14757 2003-10-31  Paul Eggert  <eggert@twinsun.com>
14758
14759         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
14760         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
14761         (read_filesystem_list): Set and use me_type_malloced.
14762         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
14763         whatever the type happens to be), for brevity and consistency.
14764         Check for size calculation overflow on Alphas running OSF/1.
14765
14766 2003-10-31  Jim Meyering  <jim@meyering.net>
14767
14768         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
14769
14770         * lib/linebuffer.c: Include <string.h> for declaration of memset.
14771
14772 2003-10-30  Paul Eggert  <eggert@twinsun.com>
14773             Bruno Haible  <bruno@clisp.org>
14774
14775         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
14776         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
14777
14778 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14779
14780         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
14781         netbsd*-gnu*.  Suggested by Robert Millan.
14782
14783 2003-10-29  Paul Eggert  <eggert@twinsun.com>
14784
14785         * modules/group-member: Depend on stdbool.
14786
14787 2003-10-29  Paul Eggert  <eggert@twinsun.com>
14788
14789         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
14790
14791 2003-10-29  Paul Eggert  <eggert@twinsun.com>
14792
14793         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
14794         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
14795         after the 'gnu' in these cases.  This fixes some bugs in the
14796         previous change, and is based on suggestions by Robert Millan.
14797
14798 2003-10-29  Paul Eggert  <eggert@twinsun.com>
14799
14800         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
14801         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
14802         no longer needed.
14803         * lib/quotearg.c (quotearg_n_options): Use it.
14804         * lib/group-member.c: Include <stdbool.h>.
14805         (free_group_info): Arg is now const *; don't free arg.
14806         (get_group_info): Now returns bool and accepts struct group_info *,
14807         rather than returning a malloc'ed struct group_info *.
14808         All uses changed.  Check for overflow in internal size calculation.
14809
14810         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
14811         rather than xmalloc/xrealloc.
14812         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
14813         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
14814         conformance bug: the old code used a pointer after freeing the
14815         storage that it addressed.
14816         * lib/hash.c (hash_initialize): Simplify the code by using
14817         xalloc_oversized rather than doing it by hand.
14818         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
14819         the buffer preserved.  Use free and xmalloc instead.
14820         * lib/quotearg.c (quotearg_n_options): Likewise.
14821         Use a simpler test for size overflow.  Don't use xalloc_oversized
14822         because unsigned int might be wider than size_t (!); this suggests
14823         that we should switch from unsigned int to size_t for slot numbers.
14824
14825 2003-10-28  Paul Eggert  <eggert@twinsun.com>
14826
14827         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
14828         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
14829         NetBSD kernels.  Requested by Richard Stallman.
14830
14831 2003-10-27  Paul Eggert  <eggert@twinsun.com>
14832
14833         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
14834         to allocate the returned structure.  Do not allocate a subarray,
14835         as x2nrealloc will do that.
14836         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
14837         instead of xnrealloc.
14838         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
14839
14840 2003-10-27  Bruno Haible  <bruno@clisp.org>
14841
14842         * lib/stdbool_.h: Better support for BeOS.
14843
14844 2003-10-26  Paul Eggert  <eggert@twinsun.com>
14845
14846         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
14847         now uses inline.
14848
14849 2003-10-26  Paul Eggert  <eggert@twinsun.com>
14850
14851         * lib/xalloc.h (xalloc_oversized): New static inline function, for
14852         callers that want to do their own size-overflow checking.  Include
14853         <stdbool.h>, since xalloc_oversized returns bool.
14854         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
14855         to use xalloc_oversized.
14856
14857         Add two functions x2realloc, x2nrealloc, for programs that grow
14858         arrays dynamically by doubling their sizes.
14859         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
14860         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
14861         New functions.
14862
14863         Port to C99 semantics for 'inline' of external functions.
14864         Bug reported by Bruno Haible.
14865         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
14866         with the old contents of xnmalloc.
14867         (xnmalloc, xmalloc): Use it.
14868         (xnrealloc_inline): New static inline function,
14869         with the old contents of xnrealloc.
14870         (xnrealloc, xrealloc): Use it.
14871
14872         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
14873         that.
14874
14875 2003-10-26  Karl Berry  <karl@gnu.org>
14876
14877         * config/srclist.txt (COPYING.DOC): no longer available from
14878         /gd/gnuorg; don't know where the ultimate source is.
14879
14880 2003-10-25  Paul Eggert  <eggert@twinsun.com>
14881
14882         Fix several address-calculation bugs in the hash modules,
14883         plus some minor code cleanup.
14884
14885         * lib/hash.h: Include <stdbool.h>, for bool.
14886         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
14887         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
14888         hash_get_n_entries, hash_get_max_bucket_length,
14889         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
14890         hash_rehash): Use size_t rather than unsigned.
14891         * lib/hash.c (struct hash_table, hash_get_n_buckets,
14892         hash_get_n_buckets_used, hash_get_n_entries,
14893         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
14894         hash_get_entries, hash_do_for_each, hash_string, is_prime,
14895         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
14896         Likewise.
14897         (SIZE_MAX): Define if not defined.
14898         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
14899         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
14900         hash_print):
14901         Use const * when possible.
14902         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
14903         (check_tuning): Fix bug: if tuning parameters were very close to
14904         0 or 1, rounding errors could have caused subscript violations.
14905         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
14906         (hash_initialize): Add 'fail:' label
14907         to free table and return NULL, and use it to simplify code.
14908         Use calloc rather than clearing the storage ourself.
14909         (hash_initialize, hash_rehash): Check for arithmetic overflow in
14910         buffer size calculations.
14911         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
14912         Include <stddef.h>, for size_t.
14913         * lib/hash-pjw.c (hash_pjw): Likewise.
14914         Switch to method described by Bruno Haible.
14915         Include <limits.h>, for CHAR_BIT.
14916         (SIZE_BITS): New macro.
14917
14918 2003-10-23  Paul Eggert  <eggert@twinsun.com>
14919
14920         * m4/getline.m4 (AM_FUNC_GETLINE):
14921         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
14922         hosts.  Problem reported by Derek Robert Price in
14923         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
14924         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
14925         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
14926
14927 2003-10-21  Paul Eggert  <eggert@twinsun.com>
14928
14929         * lib/getndelim2.c (getndelim2): When size calculation overflows,
14930         ceiling the allocation at NMAX bytes rather than silently
14931         discarding input bytes before NMAX is reached.  This makes
14932         a difference only if NMAX exceeds SIZE_MAX / 2.
14933
14934         * lib/obstack.c: Merge from glibc.
14935         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
14936         Add libc_hidden_def (_obstack_newchunk).
14937         (_obstack_free) [! defined _LIBC]: Remove.
14938         [defined _LIBC]: Make a strong alias from obstack_free, rather than
14939         a clone of the function body.
14940         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
14941         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
14942
14943         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
14944         glibc.
14945         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
14946         arg to memcpy.
14947
14948         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
14949         (obstack_ptr_grow_fast, obstack_int_grow_fast):
14950         Don't use lvalue casts, as GCC plans to remove support for them
14951         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
14952         was also present in the non-GCC version, indicating that this
14953         code had always been buggy and had never been widely used.
14954         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
14955         Use the fast variant of each macro, rather than copying the
14956         definiens of the fast variant; that way, we'll be more likely to
14957         catch future bugs in the fast variants.
14958
14959 2003-10-20  Bruno Haible  <bruno@clisp.org>
14960
14961         * modules/wait-process: New file.
14962         * MODULES.html.sh (func_all_modules): Add wait-process.
14963
14964 2003-10-20  Bruno Haible  <bruno@clisp.org>
14965
14966         * m4/wait-process.m4: New file.
14967
14968 2003-10-20  Bruno Haible  <bruno@clisp.org>
14969
14970         * lib/wait-process.h: New file, from GNU gettext.
14971         * lib/wait-process.c: New file, from GNU gettext.
14972
14973 2003-10-19  Jim Meyering  <jim@meyering.net>
14974
14975         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
14976         HPUX 10.20.
14977
14978 2003-10-18  Karl Berry  <karl@gnu.org>
14979
14980         * config/config.guess: update from config.
14981
14982 2003-10-16  Paul Eggert  <eggert@twinsun.com>
14983
14984         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
14985         (getgroups): First arg is int, not size_t.
14986         Don't let 'free' mangle errno.
14987
14988 2003-10-16  Paul Eggert  <eggert@twinsun.com>
14989
14990         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
14991
14992 2003-10-16  Karl Berry  <karl@gnu.org>
14993
14994         * config/config.{guess,sub}: update from config.
14995
14996 2003-10-16  Jim Meyering  <jim@meyering.net>
14997
14998         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
14999         memcpy.
15000
15001 2003-10-15  Paul Eggert  <eggert@twinsun.com>
15002
15003         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
15004         (SIZE_MAX): Remove.
15005         (new_exclude, add_exclude_file): Initial size no longer needs to
15006         be a power of 2.
15007         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
15008         our own address arithmetic overflow checking.
15009
15010         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
15011         (fnmatch): Do not alloca more than 2000 wide characters;
15012         instead, use malloc for large buffers.
15013         Check for address arithmetic overflow, and return -1
15014         with errno set to ENOMEM in that case.
15015         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
15016         (NEW_PATTERN): Do not alloca more than 8000 bytes;
15017         instead, return -1.  Check for address arithmetic overflow.
15018
15019 2003-10-14  Paul Eggert  <eggert@twinsun.com>
15020
15021         Handle invalid suffixes and overflow independently, so that
15022         callers can treat them independently as needed.  Fix some bugs in
15023         suffix handling, e.g., "100k@" was not diagnosed as an invalid
15024         suffix for a human-readable blocksize.  The major caller-visible
15025         change is the addition of a new
15026         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
15027         that both overflow and suffix chars were found.
15028
15029         * lib/human.c (humblock): Don't check separately for invalid suffix
15030         char; that is xstrtoumax's job (now that its bug is fixed).
15031         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
15032         INTMAX_MAX]: New macros.
15033         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
15034         TYPE_MAXIMUM): New macros.
15035         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
15036         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
15037         if overflow occurs, as it's what __strtol does and it's more useful
15038         in practice.
15039         (__xstrtol): If __strtol reports some error other than ERANGE,
15040         reflect it to the caller as LONGINT_INVALID.  If it reports
15041         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
15042         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
15043         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
15044         value.
15045         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
15046         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
15047         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
15048         [defined UINTMAX_MAX]: New macros.
15049
15050 2003-10-14  Bruno Haible  <bruno@clisp.org>
15051
15052         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
15053
15054 2003-10-14  Bruno Haible  <bruno@clisp.org>
15055
15056         * m4/sig_atomic_t: New file, from GNU gettext.
15057         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
15058
15059 2003-10-14  Bruno Haible  <bruno@clisp.org>
15060
15061         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
15062         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
15063         Also use volatile where needed.
15064
15065 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15066
15067         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
15068         Change maintainer from Bruno Haible to 'all'.
15069
15070 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15071
15072         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
15073
15074 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15075
15076         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
15077         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
15078         and define in terms of the other primitives.
15079         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
15080         (SIZE_MAX): Define if not already defined.
15081         (array_size_overflow): New function.
15082         (xalloc_die): Abort instead of exiting if 'error' returns.
15083         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
15084         (xmalloc, xrealloc): Use them.
15085         (xcalloc): Check for address arithmetic overflow.
15086         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
15087         a bit faster than strcpy.
15088
15089 2003-10-10  Simon Josefsson  <jas@extundo.com>
15090
15091         * modules/argp (Depends-on): Add restrict and strcase.
15092
15093 2003-10-10  Simon Josefsson  <jas@extundo.com>
15094
15095         * m4/argp.m4: Add AC_C_INLINE.
15096
15097 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15098
15099         Merge getpass from libc, plus a few fixes.
15100
15101         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
15102         Include <stdbool.h>.
15103         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
15104         __fsetlocking to empty.
15105         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
15106         do include <bits/libc-lock.h>.
15107         Do not include <fcntl.h>; not needed.
15108         [_LIBC]: Include <wchar.h>.
15109         (NOTCANCEL_MODE): New macro.
15110         (flockfile, funlockfile) [_LIBC]: New macros.
15111         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
15112         [!_LIBC]: New macros.
15113         (call_fclose): New function.
15114         (getpass): Use it.  Save tty stream separately; this simplifies the
15115         code and makes it more reliable if stdin happens to equal stdout.
15116         Invoke __fsetlocking on tty.
15117         Handle thread cancellation if needed.
15118         Namespace cleanup (use __tcgetattr, __getline).
15119         Use bool for Booleans.
15120         [USE_IN_LIBIO]: Handle wide streams.
15121         [!_LIBC]: Unconditionally do the fseek, since we don't know what
15122         stream might go where.
15123
15124         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
15125         doesn't have to include <stdio.h> before us.
15126         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
15127         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
15128         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
15129         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
15130         if not declared, so that we can use getpass.c code from libc without
15131         rewriting it.
15132         (flockfile, ftrylockfile, funlockfile): New macros.
15133
15134 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15135
15136         * modules/getpass: Depend on stdbool.
15137
15138 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15139
15140         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
15141
15142 2003-10-07  Karl Berry  <karl@gnu.org>
15143
15144         * config/config.{guess,sub}: update from config.
15145
15146 2003-10-06  Jim Meyering  <jim@meyering.net>
15147             Bruno Haible  <bruno@clisp.org>
15148
15149         This lets translators provide better translations for the
15150         "Written by ..." part of --version output.
15151         * lib/version-etc.h: Include stdarg.h.
15152         (version_etc_copyright): Declare as readonly.
15153         (version_etc): Make this function variadic with a NULL-terminated list
15154         of author name strings.
15155         (version_etc_va): New declaration.
15156         * lib/version-etc.c: Include stdarg.h, stdlib.h.
15157         (version_etc_copyright): Declare as readonly.
15158         (version_etc_va): New function. Provide a different translatable string
15159         for each possible number of authors < 10. Abbreviate when there are 10
15160         authors or more.
15161         (version_etc): Make this function variadic. Call version_etc_va.
15162         Suggestion from Gary V. Vaughan.
15163
15164         * lib/long-options.h (parse_long_options): Change prototype: the
15165         authors string is moved to the end and becomes variadic.
15166         * lib/long-options.c: Include stdarg.h.
15167         (parse_long_options): Make this function variadic, too.
15168         Call version_etc_va, not version_etc.
15169
15170 2003-10-06  Bruno Haible  <bruno@clisp.org>
15171
15172         * modules/version-etc-2: Remove file.
15173         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
15174
15175 2003-10-06  Bruno Haible  <bruno@clisp.org>
15176
15177         * modules/fatal-signal: New file.
15178         * MODULES.html.sh (func_all_modules): Add fatal-signal.
15179
15180 2003-10-06  Bruno Haible  <bruno@clisp.org>
15181
15182         * m4/fatal-signal.m4: New file.
15183         * m4/signalblocking.m4: New file, from GNU gettext.
15184
15185 2003-10-06  Bruno Haible  <bruno@clisp.org>
15186
15187         * lib/version-etc-2.h: Remove file.
15188         * lib/version-etc-2.c: Remove file.
15189
15190 2003-10-06  Bruno Haible  <bruno@clisp.org>
15191
15192         * lib/fatal-signal.h: New file, from GNU gettext.
15193         * lib/fatal-signal.c: New file, from GNU gettext.
15194
15195 2003-10-05  Paul Eggert  <eggert@twinsun.com>
15196
15197         * README: Rework advice for preventing empty .o files.
15198         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
15199         not <sys/types.h>.
15200
15201 2003-10-04  Karl Berry  <karl@gnu.org>
15202
15203         * lib/argp*: update from libc.
15204
15205 2003-10-04  Karl Berry  <karl@gnu.org>
15206
15207         * config/config.{guess,sub}: update from config.
15208
15209 2003-10-02  Bruno Haible  <bruno@clisp.org>
15210
15211         * modules/lchown (Include): Add lchown.h.
15212         * modules/time_r (Include): Use "..." syntax.
15213         * modules/xgetdomainname (Include): Add xgetdomainname.h.
15214
15215 2003-10-01  Simon Josefsson  <jas@extundo.com>
15216
15217         * MODULES.html.sh (func_all_modules): Move gethostname from section
15218         'based on' to section 'lacking' POSIX:2001.
15219
15220 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
15221
15222         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
15223         to output mode on the same stream.
15224
15225 2003-09-29  Paul Eggert  <eggert@twinsun.com>
15226
15227         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
15228         Fix arg typo in previous patch.
15229
15230 2003-09-28  Jim Meyering  <jim@meyering.net>
15231
15232         * lib/error.c: Correct cpp indentation.
15233
15234 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15235
15236         * modules/free: New file.
15237
15238 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15239
15240         * m4/free.m4: New file.
15241
15242 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15243
15244         * lib/minmax.h (MIN, MAX)
15245         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
15246         Omit the special code that used __typeof__, since we worry that
15247         it could be more trouble than it's worth.  See:
15248         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
15249         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
15250
15251         * lib/free.c: New file.
15252
15253 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
15254
15255         Trivial fixes to Makefile.am parts of module listings.
15256         * modules/strstr: Append strstr.h to lib_SOURCES.
15257         * modules/strcase: Likewise, for strcase.h.
15258
15259 2003-09-27  Karl Berry  <karl@gnu.org>
15260
15261         * config/mkinstalldirs: update from automake.
15262
15263 2003-09-26  Paul Eggert  <eggert@twinsun.com>
15264
15265         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
15266         (error_tail): Do not loop, reallocating temporary buffer, since
15267         the output cannot contain more wide characters than the input
15268         contains bytes, the size must be big enough already.  This avoids
15269         one potential size overflow calculation.  Check for size overflow
15270         when calculating temporary buffer size.  Free temporary buffer
15271         when done, if it was allocated with malloc; this plugs a memory
15272         leak.  Remove casts from void * to pointers, that are no longer
15273         needed now that we're assuming C89 or better.
15274
15275         Merge error changes from glibc.
15276
15277         * lib/error.c, error.h: Update copyright notice header to match glibc.
15278         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
15279         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
15280         Disable cancellation while printing error.
15281         * lib/error.h: Prepend __ to parameter names.
15282
15283 2003-09-26  Jim Meyering  <jim@meyering.net>
15284
15285         * lib/error.c (error_tail): Move some declarations
15286         into inner scope where the local variables are used.
15287
15288 2003-09-26  Bruno Haible  <bruno@clisp.org>
15289
15290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
15291         stpncpy().
15292         Don't define stpncpy through config.h; it's now done through stpncpy.h.
15293
15294 2003-09-26  Bruno Haible  <bruno@clisp.org>
15295
15296         * lib/stpncpy.h (gnu_stpncpy): New declaration.
15297         (stpncpy): Define as alias for gnu_stpncpy.
15298         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
15299
15300 2003-09-25  Simon Josefsson  <jas@extundo.com>
15301
15302         * lib/xgetdomainname.h: New file.
15303         * lib/xgetdomainname.c: New file.
15304
15305 2003-09-25  Simon Josefsson  <jas@extundo.com>
15306             Bruno Haible  <bruno@clisp.org>
15307
15308         * modules/getdomainname: New file.
15309         * modules/xgetdomainname: New file.
15310         * MODULES.html.sh (func_all_modules): Add getdomainname,
15311         xgetdomainname.
15312
15313 2003-09-25  Simon Josefsson  <jas@extundo.com>
15314             Bruno Haible  <bruno@clisp.org>
15315
15316         * m4/getdomainname.m4: New file.
15317
15318 2003-09-25  Simon Josefsson  <jas@extundo.com>
15319             Bruno Haible  <bruno@clisp.org>
15320
15321         * lib/getdomainname.h: New file.
15322         * lib/getdomainname.c: New file.
15323
15324 2003-09-25  Karl Berry  <karl@gnu.org>
15325
15326         * lib/argp-fmtstream.c, argp-help.c: update from libc.
15327
15328 2003-09-25  Karl Berry  <karl@gnu.org>
15329
15330         * config/install-sh: update from automake.
15331
15332 2003-09-25  Bruno Haible  <bruno@clisp.org>
15333
15334         * modules/version-etc-2: New file, from modules/version-etc with
15335         modifications.
15336         * MODULES.html.sh (func_all_modules): Add version-etc-2.
15337
15338 2003-09-25  Bruno Haible  <bruno@clisp.org>
15339
15340         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
15341         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
15342
15343 2003-09-24  Simon Josefsson  <jas@extundo.com>
15344
15345         * modules/xgethostname: Add xgethostname.h.
15346
15347 2003-09-24  Paul Eggert  <eggert@twinsun.com>
15348
15349         * lib/linebuffer.c (freebuffer): Don't free the argument, just
15350         the buffer associated with the argument.  Bug reported by
15351         Simon Josefsson.
15352
15353 2003-09-24  Paul Eggert  <eggert@twinsun.com>
15354
15355         * README: Document assumptions that 'int' is at least 32 bits
15356         wide, that integer arithmetic is 2's complement without overflow,
15357         that there are no holes in integer values, that adding sizes of
15358         two nonoverlapping objects can't overflow, and that all-bits-zero
15359         yields scalar zero.  Fix spelling and capitalization typos.
15360
15361 2003-09-19  Karl Berry  <karl@gnu.org>
15362
15363         * lib/argp.h: update from libc.
15364
15365 2003-09-17  Paul Eggert  <eggert@twinsun.com>
15366
15367         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
15368         to avoid spurious warnings like "AC_RUN_IFELSE was called before
15369         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
15370
15371 2003-09-17  Paul Eggert  <eggert@twinsun.com>
15372
15373         * gnulib-tool: Use "test -h", not "test -L", for portability
15374         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
15375         (tags_regexp): Remove, since \| doesn't conform to POSIX.
15376         (sed_extract_prog): Issue s commands one-by-one, rather than
15377         using \| in one s command.
15378
15379 2003-09-16  Paul Eggert  <eggert@twinsun.com>
15380
15381         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
15382         input error, instead of returning NULL the next time we are called
15383         (and therefore losing track of errno).
15384
15385 2003-09-16  Bruno Haible  <bruno@clisp.org>
15386
15387         * gnulib-tool (func_create_testdir): Warn about duplicated
15388         dependencies.
15389
15390 2003-09-15  Paul Eggert  <eggert@twinsun.com>
15391
15392         * modules/argmatch, modules/fatal, modules/obstack,
15393         modules/xalloc, modules/xgethostname: Sort dependencies by
15394         importance, not alphabetically.
15395
15396 2003-09-15  Paul Eggert  <eggert@twinsun.com>
15397
15398         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
15399         fails, so that the caller gets the proper errno.
15400
15401         * lib/readutmp.c (read_utmp): Likewise.
15402         Check for fstat error.  Close stream and free storage
15403         when failing.
15404
15405 2003-09-14  Karl Berry  <karl@gnu.org>
15406
15407         * config/srclist.txt (strdup.c): disable for c89 changes.
15408
15409 2003-09-14  Jim Meyering  <jim@meyering.net>
15410
15411         * lib/getloadavg.c: Correct cpp indentation.
15412         * lib/strdup.c: Likewise.
15413         * lib/vasnprintf.c: Likewise.
15414
15415 2003-09-14  Bruno Haible  <bruno@clisp.org>
15416
15417         * modules/fwriteerror: New file.
15418         * MODULES.html.sh (func_all_modules): Add fwriteerror.
15419
15420 2003-09-14  Bruno Haible  <bruno@clisp.org>
15421
15422         * lib/fwriteerror.h: New file.
15423         * lib/fwriteerror.c: New file.
15424
15425 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15426
15427         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
15428         modules/xgethostname, modules/xalloc: Depend on exit.
15429
15430 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15431
15432         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
15433
15434         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
15435         and AC_MINIX, too, so that their extensions are available.
15436
15437         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
15438         This macro has been superseded by gl_BACKUPFILE.
15439
15440         More patches to assume C89 or better.
15441
15442         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
15443
15444         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
15445         unconditionally.
15446         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
15447         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
15448         Include <string.h>, <stdlib.h> unconditionally.
15449         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
15450         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
15451         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
15452         headers or for string.h.
15453         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
15454         or strtoul.
15455
15456         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
15457         headers.
15458         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
15459         * m4/userspec.m4 (gl_USERSPEC): Likewise.
15460         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
15461         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
15462         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
15463         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
15464         memcpy, memset.
15465         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
15466         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
15467         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
15468         strtol.
15469         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
15470         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
15471         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
15472         strtoul.
15473
15474 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15475
15476         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
15477         * lib/obstack.c [!defined _LIBC]: Likewise.
15478         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
15479         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
15480         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
15481
15482         More changes to assume C89 or better.
15483
15484         * lib/error.c (error_tail): Assume vprintf.
15485
15486         * lib/argmatch.c (getenv): Remove decl.
15487         * lib/progreloc.c (get_full_program_name): Define via prototype.
15488         * lib/setenv.c (clearenv): Likewise.
15489         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
15490         needed.
15491         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
15492         (malloc, memcpy): Remove decls.
15493         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
15494         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
15495         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
15496         (memcpy): Remove macro.
15497         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
15498         (__P): Remove.  All uses removed.
15499         (PTR): Remove.  All uses changed to void *.
15500         (CHAR_BIT, NULL): Remove.
15501         (spaces, zeros, memset_space, memset_zero)
15502         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
15503         Remove.
15504         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
15505         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
15506         Define with prototype.
15507         Remove now-unnecessary prototype decl.
15508         (extra_args_spec): Assume ANSI C.  All uses changed.
15509         (extra_args_spec_iso): Remove.
15510         (my_strftime, emacs_strftimeu): Define via prototype.
15511         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
15512         unconditionally.
15513         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
15514         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
15515         (strtoul, strtol): Remove decls.
15516         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
15517         LONG_MAX): Remove.
15518         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
15519         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
15520         (LOCALE_PARAM_PROTO): New macro.
15521         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
15522         (INTERNAL (strtol), strtol): Define with a prototype.
15523         (PARAMS): Remove.  All uses removed.
15524         * lib/tempname.c: Include <string.h> unconditionally.
15525         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
15526         * lib/xgethostname.c (main): Define with a prototype.
15527         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
15528         Include <stdlib.h> unconditionally.
15529         (calloc, malloc, realloc, free): Remove decls.
15530         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
15531         Include <stdlib.h> unconditionally.  Sort include file names.
15532         (strtod): Remove.
15533         (xstrtod): Define with a prototype.
15534         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
15535         (strtol, strtoul): Remove decls.
15536
15537 2003-09-11  Paul Eggert  <eggert@twinsun.com>
15538
15539         More patches to assume C89 or better.
15540         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
15541         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
15542         string.h, memchr, STDC_HEADERS.
15543
15544 2003-09-11  Paul Eggert  <eggert@twinsun.com>
15545
15546         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
15547         Include <stdlib.h>, <string.h> unconditionally.
15548         Remove now-unnecessary cast to char *.
15549         * lib/strnlen.c: Include <string.h> unconditionally.
15550         * lib/yesno.c (yesno): Define with a prototype.
15551
15552 2003-09-11  Bruno Haible  <bruno@clisp.org>
15553
15554         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
15555
15556 2003-09-10  Jim Meyering  <jim@meyering.net>
15557
15558         * lib/error.c: Correct indentation of cpp directives.
15559
15560 2003-09-10  Bruno Haible  <bruno@clisp.org>
15561
15562         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
15563         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
15564         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
15565         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
15566         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
15567         <stdlib.h> and <string.h> checks.
15568         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
15569         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
15570
15571 2003-09-10  Bruno Haible  <bruno@clisp.org>
15572
15573         * lib/strcspn.c: Include <string.h> unconditionally.
15574         * lib/strpbrk.c: Include <string.h> unconditionally.
15575         * lib/strstr.c: Include <string.h> unconditionally.
15576         * lib/unicodeio.c: Include <string.h> unconditionally.
15577         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
15578         * lib/unsetenv.c: Likewise.
15579         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
15580         * lib/yesno.c: Include <stdlib.h> unconditionally.
15581         (rpmatch): Add prototype.
15582
15583 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15584
15585         More patches to assume C89 or better.
15586         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
15587         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
15588         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
15589         or for string.h.
15590         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
15591         stdlib.h.
15592         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
15593         C headers.
15594         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
15595         string.h.
15596         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
15597         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
15598         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
15599         or for string.h.
15600         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
15601         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
15602         C headers.
15603         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
15604         memcpy.
15605         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
15606         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
15607         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
15608         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
15609         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
15610         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
15611         string.h, free.
15612         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
15613         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
15614         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
15615         C headers, or for string.h.
15616         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
15617         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
15618         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
15619         headers, memory.h, stdlib.h, string.h, strings.h.
15620         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
15621         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
15622         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
15623         strchr.
15624         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
15625         headers, memory.h, string.h.
15626         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
15627         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
15628         free.
15629         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
15630         headers.
15631         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
15632         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
15633         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
15634         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
15635         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
15636
15637 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15638
15639         More K&R removal.
15640
15641         * lib/acosl.c (main): Use a prototype.
15642         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
15643         tanl.c: Likewise.
15644
15645         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
15646
15647         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
15648         (getopt, etopt_long, getopt_long_only, _getopt_internal)
15649         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
15650         with a prototype.
15651         * lib/getopt.c (const): Remove macro.
15652         Include <string.h> unconditionally.
15653         (my_index): Remove; all uses changed to strchr.
15654         (strlen): Remove decl.
15655         (exchange): Remove forward decl; no longer needed.
15656         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
15657         Define with prototype.
15658         * lib/getopt1.c (const): Remove macro.
15659         (getopt_long, getopt_long_only, main): Define with prototype.
15660
15661         * lib/getugroups.c: Include <string.h> unconditionally.
15662
15663         * lib/getusershell.c: Include <stdlib.h> unconditionally.
15664         (getusershell, setusershell, endusershell, readname, main):
15665         Define with prototypes.
15666
15667         * lib/group-member.c: Include group-member.h first.
15668         Include <stdlib.h> unconditionally.
15669
15670         * lib/hard-locale.c: Include hard-locale.h first.
15671         Include <stdlib.h>, <string.h> unconditionally.
15672
15673         * lib/hash.c (free, malloc): Remove decls.
15674         Include <stdlib.h> unconditionally.
15675
15676         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
15677         (getenv): Do not declare.
15678
15679         * lib/idcache.c: Include <string.h> unconditionally.
15680
15681         * lib/long-options.c: Include long-options.h first, to test interface.
15682         Include <stdlib.h> unconditionally.
15683
15684         * lib/makepath.c: Include makepath.h first, to test interface.
15685         Include <stdlib.h> and <string.h> unconditionally.
15686
15687         * lib/linebuffer.c: Include <stdlib.h>.
15688         (free): Remove decl.
15689
15690         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
15691         stddef.h. rpl_malloc returns void *, not char *.
15692         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
15693         prototype.
15694
15695         * lib/md5.h: Include <limits.h> unconditionally.
15696         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
15697         (__P): Remove; all uses removed.
15698         * lib/md5.c: Include "md5.h" first.
15699         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
15700         md5_buffer, md5_process_bytes, md5_process_block):
15701         Define with prototypes.
15702         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
15703         * lib/sha.c: Include "sha.h" first.
15704         Include <stdlib.h>, <string.h> unconditionally.
15705
15706         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
15707         * lib/memcmp.c (__ptr_t): Likewise.
15708         * lib/memrchr.c (__ptr_t): Likewise.
15709         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
15710         Include <string.h> unconditionally.
15711         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
15712         * lib/memchr.c: Include <stdlib.h> unconditionally.
15713         * lib/memchr.c (LONG_MAX): Remove.
15714         * lib/memrchr.c (LONG_MAX): Likewise.
15715         * lib/memchr.c (__memchr): Define via a prototype.
15716         * lib/memrchr.c (__memrchr): Likewise.
15717         * lib/memcmp.c (__P): Remove, and remove all uses.
15718         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
15719         Remove forward decls; no longer needed.
15720         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
15721         Use types required by C89 in prototype.
15722
15723         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
15724         * lib/savedir.c: Likewise.
15725         * lib/mkdir.c (free): Remove decl.
15726         * lib/rmdir.c (rmdir): Define with a prototype.
15727         * lib/savedir.c: Include savedir.h first, to test interface.
15728
15729         * lib/mktime.c (STDC_HEADERS): Remove.
15730         Include <stdlib.h>, <string.h> unconditionally.
15731
15732         * lib/modechange.c: Include <stdlib.h> unconditionally.
15733         (malloc): Remove decl.
15734
15735         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
15736         (free): Remove decl.
15737
15738         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
15739         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
15740         (This type really should be intptr_t, but that's a C99ism.)
15741         (_obstack_memcpy): Remove: all uses changed to memcpy.
15742         Include <string.h> unconditionally.
15743         (struct obstack): Assume __STDC__ for types of members
15744         chunkfun, freefun, extra_arg.
15745         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
15746         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
15747         obstack_begin, obstack_specify_allocation,
15748         obstack_specify_allocation_with_arg, obstack_chunkfun,
15749         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
15750         Remove unprototyped decls and the macros that use them.
15751         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
15752         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
15753         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
15754         (defined __STDC__ && __STDC__)]:
15755         Remove nonprototyped code.
15756         Include <stdlib.h> unconditionally.
15757         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
15758         _obstack_allocated_p, _obstack_free, obstack_free,
15759         _obstack_memory_used, print_and_abort):
15760         Define using prototypes.
15761         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
15762         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
15763         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
15764         obstack_next_free, obstack_object_size, obstack_room) [0]:
15765         Remove unused, unprototyped code.
15766
15767         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
15768
15769         * lib/physmem.c (physmem_total, physmem_available, main): Define
15770         with prototypes.
15771
15772         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
15773         (main): Define with a prototype.
15774
15775         * lib/posixver.c (getenv): Remove decl.
15776
15777         * lib/putenv.c (malloc): Returns void *, not char *.
15778         Include <string.h> unconditionally.
15779         (strchr, memcpy, NULL): Do not define.
15780
15781         * lib/readtokens.c: Include readtokens.h first, to test interface.
15782         Include <stdlib.h>, <string.h> unconditionally.
15783         (init_tokenbuffer): Define with a prototype.
15784
15785         * lib/regex.c (PARAMS): Remove.  All uses removed.
15786         All uses of _RE_ARGS removed, too.
15787         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
15788         unconditionally.
15789         (bzero): Assume memset exists.
15790         (memcmp, memcpy, NULL): Remove.
15791         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
15792         char, or assignments to local vars of type signed char.
15793         (init_syntax_once, PREFIX(extract_number_and_incr),
15794         PREFIX(print_partial_compiled_pattern),
15795         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
15796         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
15797         PREFIX(regex_grow_registers), PREFIX(regex_compile),
15798         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
15799         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
15800         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
15801         wcs_compile_range, byte_compile_range, truncate_wchar,
15802         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
15803         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
15804         count_mbs_length, wcs_re_match_2_internal,
15805         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
15806         PREFIX(alt_match_null_string_p),
15807         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
15808         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
15809         regfree, PREFIX(extract_number)): Define with prototype.  Remove
15810         now-unnecessary declaration, if any.
15811         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
15812         regcomp, regexec):
15813         Remove now-unnecessary casts among pointer types.
15814         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
15815
15816         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
15817         (free): Remove decl.
15818
15819         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
15820
15821         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
15822         (free): Remove decl.
15823
15824         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
15825         * lib/xgetcwd.c: Likewise.
15826
15827         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
15828         (free): Remove decl.
15829
15830         * lib/strchrnul.c (strchrnul): Define with a prototype.
15831         Fix bug: c_in was not converted to char before searching.
15832
15833         The following changes are not K&R related:
15834
15835         * lib/group-member.h: Include <sys/types.h>, so that this file is
15836         self-contained.
15837         * lib/makepath.h: Likewise.
15838
15839         * lib/getusershell.c (readname, default_index, line_size, readname):
15840         Use size_t, not int, for sizes.
15841         (readname): If the size overflows, report an error instead of
15842         looping forever.
15843
15844 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15845
15846         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
15847         libc.
15848
15849 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15850
15851         * README: New section: portability guidelines.
15852
15853 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
15854
15855         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
15856         C89 spec.
15857
15858 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
15859
15860         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
15861
15862 2003-09-08  Paul Eggert  <eggert@twinsun.com>
15863
15864         Assume C89 or better; remove K&R cruft.
15865         A few of these changes were first proposed by Derek Robert Price
15866         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
15867
15868         * lib/addext.c: Include <string.h> unconditionally.
15869         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
15870         Don't declare getenv or malloc.
15871
15872         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
15873         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
15874         (NULL): Remove.
15875         (find_stack_direction, alloca): Use prototypes.
15876
15877         * lib/atexit.c (atexit): Define using a prototype.
15878
15879         * lib/basename.c, dirname.c, stripslash.c:
15880         Include <string.h> unconditionally.
15881
15882         * lib/bcopy.c: Include <stddef.h>.
15883         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
15884
15885         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
15886
15887         * lib/error.h (error, error_at_line, error_print_progname)
15888         [! (defined (__STDC__) && __STDC__)]: Remove decls.
15889         * lib/error.c: Include error.h first, to check interface.
15890         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
15891         (VA_START): Remove; all uses changeed to va_start.
15892         (exit, strerror): Remove decls.
15893         (error_print_progname): Prototype uncondionally.
15894         Don't include <errno.h>; no longer needed.
15895         (private_strerror): Remove.
15896         (error_tail): Always define.
15897         (error, error_at_line): Assume C89 or better; always use prototypes.
15898         * lib/fatal.c: Include "fatal.h" first, to test interface.
15899         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
15900         (VA_START): Remove; all uses changed to va_start.
15901         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
15902         this case.
15903         (exit): Remove decl.
15904         (fatal): Prototype unconditionally.  Assume va_start works.
15905         Abort at end, to pacify gcc.
15906
15907         * lib/euidaccess.c (main): Define with a prototype.
15908
15909         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
15910
15911         * lib/exitfail.c: Include <stdlib.h> unconditionally.
15912
15913         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
15914         prototypes.
15915         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
15916         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
15917         (getenv): Remove decl.
15918         (fnmatch): Define using a prototype.
15919         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
15920         (FCT): Define using a prototype.
15921
15922         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
15923
15924         * lib/gethostname.c: Include <stddef.h>.
15925         (gethostname): Define with prototype.  Length is size_t, not int.
15926
15927 2003-09-08  Paul Eggert  <eggert@twinsun.com>
15928
15929         Assume C89 or better; remove K&R cruft.
15930         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
15931         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
15932         string.h, getenv, malloc.
15933         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
15934         headers.
15935         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
15936         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
15937         do not check for strerror.
15938         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
15939         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
15940         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
15941         do not check for doprnt or vprintf.
15942         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
15943         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
15944
15945 2003-09-08  Paul Eggert  <eggert@twinsun.com>
15946
15947         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
15948         getversion.c should have been removed then, but was accidentally
15949         preserved.
15950
15951         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
15952         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
15953
15954 2003-09-08  Karl Berry  <karl@gnu.org>
15955
15956         * config/config.sub, config.guess, srclistvars.sh: update from savannah
15957                 config, forget about prep.
15958
15959         * config/depcomp, missing: update from automake.
15960
15961 2003-09-07  Paul Eggert  <eggert@twinsun.com>
15962
15963         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
15964         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
15965
15966 2003-09-07  Paul Eggert  <eggert@twinsun.com>
15967
15968         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
15969         copy_tm_result.  Bug reported by Simon Josefsson in
15970         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
15971
15972 2003-09-06  Paul Eggert  <eggert@twinsun.com>
15973
15974         * m4/time_r.m4: New file.
15975         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
15976         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
15977         is. Check for timegm declaration.
15978         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
15979         Do not check for gmtime_r.
15980         Replace mktime if __mktime_internal does not exist and if mktime
15981         hasn't been replaced already.
15982
15983 2003-09-06  Paul Eggert  <eggert@twinsun.com>
15984
15985         * lib/time_r.c, time_r.h: New files.
15986
15987         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
15988         __localtime_r.
15989         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
15990         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
15991
15992         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
15993         __gmtime_r.
15994         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
15995         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
15996         Include <time_r.h>.
15997
15998         * lib/timegm.c: Switch to glibc implementation, with the following
15999         changes:
16000         [defined HAVE_CONFIG_H]: Include <config.h>.
16001         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
16002         (__mktime_internal) [!defined _LIBC]: New decl.
16003         (__gmtime_r) [!defined _LIBC]: New macro and function.
16004         (timegm): Use a prototype, since gnulib assumes C89.
16005         Do not bother declaring tmp to be const, as it's not really usefu.
16006         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
16007         (timegm): Declare only if HAVE_DECL_TIMEGM.
16008
16009 2003-09-06  Paul Eggert  <eggert@twinsun.com>
16010
16011         * MODULES.html.sh (func_all_modules): Add time_r.
16012         * modules/time_r: New file.
16013         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
16014         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
16015
16016 2003-09-03  Paul Eggert  <eggert@twinsun.com>
16017
16018         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
16019         Bug reported by Lute Kamstra in
16020         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
16021
16022         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
16023         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
16024         course with correspondingly smaller numbers for tomorrow and
16025         yesterday.  From Tadayoshi Funaba.  Originally installed into
16026         sh-utils on 1999-08-07, but the patch got lost (I guess during the
16027         coreutils merge?).
16028
16029 2003-08-31  Simon Josefsson  <jas@extundo.com>
16030
16031         * modules/timegm: New file.
16032         * MODULES.html.sh (func_all_modules): Add timegm.
16033
16034 2003-08-31  Simon Josefsson  <jas@extundo.com>
16035
16036         * m4/timegm.m4: New file.
16037
16038 2003-08-31  Simon Josefsson  <jas@extundo.com>
16039
16040         * lib/timegm.h: New file.
16041         * lib/timegm.c: New file.  Based on
16042         wget-1.8.2/src/http.c:mktime_from_utc.
16043
16044 2003-08-31  Karl Berry  <karl@gnu.org>
16045
16046         * lib/argp.h: update from libc.
16047
16048 2003-08-28  Bruno Haible  <bruno@clisp.org>
16049
16050         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
16051         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
16052         followed by '#define fnmatch fnmatch_posix' gives an error.
16053
16054 2003-08-28  Bruno Haible  <bruno@clisp.org>
16055
16056         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
16057         warning on QNX, which defines O_BINARY to 000000.
16058
16059 2003-08-27  Jim Meyering  <jim@meyering.net>
16060
16061         * m4/mkstemp.m4: Require that the system mkstemp be able to create
16062         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
16063         would fail after 32.  Reported by Danny Levinson.  Details here:
16064         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
16065
16066 2003-08-24  Bruno Haible  <bruno@clisp.org>
16067
16068         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
16069         MSVC7 <stdio.h> is included later.
16070
16071 2003-08-22  Simon Josefsson  <jas@extundo.com>
16072
16073         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
16074
16075 2003-08-20  Karl Berry  <karl@gnu.org>
16076
16077         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
16078
16079 2003-08-20  Bruno Haible  <bruno@clisp.org>
16080
16081         * modules/progname: New file.
16082         * MODULES.html.sh (func_all_modules): Add progname.
16083
16084 2003-08-20  Bruno Haible  <bruno@clisp.org>
16085
16086         * lib/progname.h: New file, from GNU gettext.
16087         * lib/progname.c: New file, from GNU gettext.
16088         * lib/progreloc.c: New file, from GNU gettext.
16089
16090 2003-08-19  Jim Meyering  <jim@meyering.net>
16091
16092         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
16093         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
16094
16095 2003-08-19  Bruno Haible  <bruno@clisp.org>
16096
16097         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
16098         more.
16099
16100 2003-08-19  Bruno Haible  <bruno@clisp.org>
16101
16102         * lib/xstrdup.c: Assume <string.h> exists.
16103
16104 2003-08-18  Paul Eggert  <eggert@twinsun.com>
16105
16106         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
16107         in makefile rules.
16108
16109 2003-08-18  Jim Meyering  <jim@meyering.net>
16110
16111         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
16112         * m4/lib-ld.m4: Likewise.
16113
16114 2003-08-18  Jim Meyering  <jim@meyering.net>
16115
16116         * lib/setenv.h: Indent nested cpp directive.
16117         * lib/vasnprintf.c: Remove trailing blanks.
16118
16119 2003-08-17  Simon Josefsson  <jas@extundo.com>
16120
16121         * modules/xstrndup: New file.
16122         * MODULES.html.sh (func_all_modules): Add xstrndup.
16123
16124 2003-08-17  Simon Josefsson  <jas@extundo.com>
16125
16126         * modules/argp: Fix autoconf macro name. Add more dependencies.
16127
16128 2003-08-17  Simon Josefsson  <jas@extundo.com>
16129
16130         * m4/xstrndup.m4: New file.
16131
16132 2003-08-17  Simon Josefsson  <jas@extundo.com>
16133
16134         * m4/argp.m4: New file.
16135
16136 2003-08-17  Simon Josefsson  <jas@extundo.com>
16137             Bruno Haible  <bruno@clisp.org>
16138
16139         * lib/xstrndup.h: New file.
16140         * lib/xstrndup.c: New file.
16141
16142 2003-08-17  Bruno Haible  <bruno@clisp.org>
16143
16144         * modules/strndup (Files, Include): Add lib/strndup.h.
16145
16146 2003-08-17  Bruno Haible  <bruno@clisp.org>
16147
16148         * modules/euidaccess (Files): Add lib/euidaccess.h.
16149
16150 2003-08-17  Bruno Haible  <bruno@clisp.org>
16151
16152         * lib/strndup.h: New file.
16153
16154 2003-08-17  Bruno Haible  <bruno@clisp.org>
16155
16156         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
16157         like AC_GNU_SOURCE.
16158         * modules/extensions (configure.ac): Comment out the invocation of
16159         gl_USE_SYSTEM_EXTENSIONS.
16160
16161 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16162
16163         Merges from coreutils, etc.
16164         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
16165         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
16166         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
16167         fixing a typo.
16168         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
16169         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
16170
16171 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16172
16173         Document merge from coreutils.
16174         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
16175         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
16176         * modules/utime: Add m4/utimes-null.m4.
16177
16178 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16179
16180         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
16181         space, undoing this 2003-08-12 change:
16182         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
16183
16184 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16185
16186         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
16187         strtoul.c from libc, undoing this 2003-08-12 change:
16188         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
16189
16190 2003-08-16  Jim Meyering  <jim@meyering.net>
16191
16192         Merges from coreutils.
16193         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
16194         prefix.  Adjust cache variables similarly.  Create 500 rather than
16195         just 300 files, to exercise bug on Darwin6.5, too.
16196         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
16197         $missing_dir.
16198         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
16199         AM_SYS_POSIX_TERMIOS.
16200         Reported by mkc@mathdogs.com.
16201         Also change use of $am_cv_sys_posix_termios
16202         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
16203         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
16204         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
16205         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
16206         in /proc/mounts until it finds one with matching device number.  This
16207         is unnecessary when the FILE argument *is* a mount point.  No stat call
16208         is necessary in that case.  So, disable the statvfs-testing code on
16209         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
16210         as RedHat bug# 84846.
16211         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
16212         to 1MB, so as not to render systems with no stack size limit (e.g.,
16213         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
16214         Include <unistd.h>.  On some systems,
16215         it is required for the definition of _SC_PAGESIZE.
16216
16217 2003-08-16  Jim Meyering  <jim@meyering.net>
16218
16219         Merge from coreutils.
16220         * lib/xstrtoimax.c: #else #if -> #elif.
16221         * lib/xstrtoumax.c: Likewise.
16222
16223 2003-08-16  Jim Meyering  <jim@meyering.net>
16224
16225         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
16226         * m4/utimes.m4: Removed.
16227         * m4/utimes-null.m4: Renamed from utimes.m4.
16228
16229         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
16230         to 1MB, so as not to render systems with no stack size limit (e.g.,
16231         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
16232         Include <unistd.h>.  On some systems,
16233         it is required for the definition of _SC_PAGESIZE.
16234
16235 2003-08-16  Jim Meyering  <jim@meyering.net>
16236         and Paul Eggert  <eggert@cs.ucla.edu>
16237
16238         Merges from coreutils, etc.
16239
16240         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
16241         using the latest version from cvs.  This avoids problems with #line
16242         directives using a vendor (Sun) compiler.
16243         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
16244         Don't set GETGROUPS_LIB here; now it's
16245         done via getgroups.m4's wrapper function.
16246         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
16247         rather than just in sh-util/configure.in, so that the
16248         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
16249         same.
16250         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
16251         AC_FUNC_GETLOADAVG where to find getloadavg.c.
16252         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
16253         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
16254         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
16255         Remove code that is now done by the newly-required macros.
16256         Append $(EXEEXT) to DF_PROG.
16257         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
16258         Do not invoke or require the following here,
16259         since prereq.m4 or some gnulib .m4 now does this for us:
16260         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
16261         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
16262         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
16263         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
16264         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
16265         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
16266         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
16267         AC_FUNC_OBSTACK.
16268         Do not replace the following functions, as this is now the job
16269         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
16270         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
16271         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
16272         atexit getpass, strdup, getpagesize.
16273         Replace 'raise'.
16274         Do not check for the following functions, as this is now the job
16275         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
16276         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
16277         setregid.
16278         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
16279         Check for sys/sysctl.h.
16280         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
16281         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
16282         of checking for ssize_t ourselves.
16283
16284         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
16285         Require every macro that gnulib/modules/* suggests for us.
16286         (jm_PREREQ_ADDEXT): New macro.
16287         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
16288         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
16289
16290         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
16291         (gl_PHYSMEM): Use it.
16292         Also check for `table' function.
16293         Check for new headers and functions.
16294         Add check for sys/sysmp.h.
16295         With suggestions from Kaveh Ghazi.
16296         Ignore headers that are present but cannot be compiled.  This
16297         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
16298         C 5.4.
16299
16300 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16301
16302         Document merge from coreutils.
16303         * modules/userspec: Depend on posixver.
16304         * modules/strftime: Depend on tzset.
16305
16306 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16307
16308         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
16309         rather than tab, after '#' in shell-script copyright notices.
16310         Suggested by Bruno Haible.
16311
16312 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16313
16314         * config/srclist-update: Use three spaces, rather than tab, after '#'
16315         in shell-script copyright notices.  Suggested by Bruno Haible.
16316         Remove unnecessary parenthesization in regular expression.
16317
16318 2003-08-15  Jim Meyering  <jim@meyering.net>
16319
16320         Merge from coreutils.
16321         * lib/xgethostname.c: Include <stdlib.h>.
16322         (xghostname): Don't exit for anything other than memory-related
16323         failure; just return NULL.
16324         * lib/userspec.c: Include "posixver.h".
16325         (parse_user_spec): Accept `.' as a separator only
16326         in pre-POSIX-200112 mode.
16327         * lib/strtoimax.c: Use #elif rather than #else #if.
16328         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
16329         Remove function, now that we can rely on a working tzset function.
16330         [!_LIBC]: Ensure that the required autoconf test has been run.
16331         [!defined _NL_CURRENT && HAVE_STRFTIME]:
16332         Use underlying_strftime for %r.
16333         * lib/sha.c: Merge in some clean-up and optimization changes from
16334         glibc.
16335         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
16336         Ensure that it is a multiple of 64.
16337         Rearrange loop exit tests so as to avoid performing an
16338         additional fread after encountering an error or EOF.
16339         * lib/realloc.c: Update copyright date.
16340
16341 2003-08-15  Jim Meyering  <jim@meyering.net>
16342         and Paul Eggert  <eggert@twinsun.com>
16343
16344         Merge from coreutils.
16345         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
16346         member but strut utmpx does not.  Needed for AIX 4.3.3.
16347         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
16348
16349 2003-08-15  Jim Meyering  <jim@meyering.net>
16350         and Paul Eggert  <eggert@cs.ucla.edu>
16351
16352         Merges from coreutils, etc.
16353         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
16354         Require gl_FUNC_TZSET_CLOBBER.
16355         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
16356         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
16357         members.
16358
16359 2003-08-14  Paul Eggert  <eggert@twinsun.com>
16360
16361         Help the merge from coreutils.
16362         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
16363         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
16364         * m4/tzset.m4: Use it too.
16365
16366 2003-08-14  Paul Eggert  <eggert@twinsun.com>
16367
16368         * modules/tzset: New file.
16369
16370 2003-08-14  Jim Meyering  <jim@meyering.net>
16371
16372         Merges from coreutils.
16373         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
16374         variable names, rather than @FNMATCH_H@.
16375         * modules/alloca: Likewise for $(ALLOCA_H).
16376
16377         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
16378         the three copies of the literal target, `fnmatch.h'.
16379         * modules/alloca (alloca.h): Likewise.
16380
16381 2003-08-14  Jim Meyering  <jim@meyering.net>
16382
16383         Merge from coreutils.
16384         * m4/tzset.m4: New file.
16385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
16386         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
16387         otherwise, AIX 5.1 systems would end up using the latter.
16388         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
16389         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
16390         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
16391         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
16392
16393 2003-08-14  Jim Meyering  <jim@meyering.net>
16394
16395         Merge from coreutils.
16396         * lib/obstack.h: Whitespace changes.
16397         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
16398         and xcalloc return values.
16399         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
16400         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
16401         hang on OSF/1 5.1 for DIR on both local and remote file systems.
16402         Reported by (and fix confirmed by) Nelson H. F. Beebe.
16403         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
16404         error from mntctl.
16405         Use mntctl's return value to drive the entry-processing loop, since
16406         we can't rely on the value of the vmt_length member in the last
16407         entry.  On some systems doing so could result in exhausting
16408         virtual memory.  Based in part on a patch from Mike Jetzer.
16409
16410 2003-08-14  Jim Meyering  <jim@meyering.net>
16411         and Paul Eggert  <eggert@twinsun.com>
16412
16413         Merges from coreutils, plus other fixes.
16414         * lib/physmem.c: Merge in portability changes from gcc/libiberty
16415         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
16416         for credits and details.  Thanks to Kaveh Ghazi for helping
16417         to keep these files in sync.
16418         (ARRAY_SIZE): Define it.
16419         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
16420         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
16421         (memcasecmp): Don't assume size_t fits in unsigned int.
16422         Remove casts and duplicate code.
16423         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
16424         (memcpy): Remove definition.
16425         Merge in some clean-up and optimization changes from glibc.
16426         [BLOCKSIZE]: Move definition to top of file.
16427         Ensure that it is a multiple of 64.
16428         Rearrange loop exit tests so as to avoid performing an
16429         additional fread after encountering an error or EOF.
16430         * lib/md5.h (md5_uintptr): Define.
16431         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
16432         return to the initial working directory.  Preserve errno
16433         for caller.
16434         * lib/idcache.c: Include "xalloc.h".
16435         (xmalloc, xrealloc): Remove decls.
16436         (getuser): Remove casts no longer required in C89.
16437         * lib/human.c: Include stdio.h, for sprintf.
16438         * lib/group-member.c: Include "xalloc.h".
16439         (xmalloc, xrealloc): Remove decls.
16440         (get_group_info): Remove casts no longer required in C89.
16441         * lib/getusershell.c (readname): Remove casts no longer required in
16442         C89.
16443         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
16444         * lib/getline.c: Whitespace fix, from coreutils.
16445
16446 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16447
16448         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
16449         Check for isascii.
16450
16451         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
16452         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
16453         Undo previous (whitespace-only) change.
16454
16455 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16456
16457         * lib/exclude.c: Include <ctype.h>
16458         (IN_CTYPE_DOMAIN): New macro.
16459         (is_space): New fn.
16460         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
16461         and empty lines.
16462
16463         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
16464         Undo previous (whitespace-only) change.
16465
16466 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16467
16468         * config/srclist-update: Change update back to the old behavior,
16469         leaving whitespace alone.  Use one 'sed' command rather than a
16470         pipeline.
16471         (fixlicense): Now a variable, not a function.
16472         (remove_trailing_blanks): Remove.
16473         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
16474         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
16475         Undo previous (whitespace-only) change.
16476
16477 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16478
16479         Merge from coreutils.
16480         * modules/euidaccess: Add lib_SOURCES, include for new
16481         file euidaccess.h
16482
16483 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16484
16485         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
16486         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
16487         Normalize leading white space and remove trailing white space.
16488
16489         Merge from coreutils
16490         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
16491
16492         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
16493         0.12.1.  These files are now being upgraded automatically by
16494         ../config/srclist-update.
16495
16496 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16497
16498         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
16499         Normalize leading white space and remove trailing white space.
16500         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
16501         notice, as per ../config/srclist-update.
16502
16503         Merge from coreutils.
16504         * lib/euidaccess.h: New file.
16505         * lib/euidaccess.c: Include it.
16506         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
16507         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
16508         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
16509
16510 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16511
16512         * config/srclist-update: Add copyright notice.
16513         (remove_id_lines, remove_trailing_blanks): New constants.
16514         (fixfile): Use them to normalize spacing a bit in copied files.
16515         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
16516         Normalize leading white space and remove trailing white space.
16517
16518         * config/texinfo.tex: Sync with texinfo.
16519
16520         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
16521         strtoul.c from libc, to merge coreutils whitespace changes.
16522
16523         * config/srclist.txt: Get the following m4 files from gettext:
16524         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
16525         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
16526         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
16527         wint_t.m4.
16528
16529 2003-08-12  Karl Berry  <karl@gnu.org>
16530
16531         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
16532         been made.
16533
16534 2003-08-11  Paul Eggert  <eggert@twinsun.com>
16535
16536         * modules/gnu-source, m4/gnu-source.m4:
16537         Remove; we're assuming Autoconf 2.54 or later now.
16538         Suggested by Bruno Haible.
16539         * MODULES.html.sh (func_all_modules): Remove gnu-source.
16540
16541 2003-08-11  Bruno Haible  <bruno@clisp.org>
16542
16543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
16544
16545 2003-08-11  Bruno Haible  <bruno@clisp.org>
16546
16547         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
16548         (vasnprintf): Use it instead of wcslen.
16549
16550 2003-08-11  Bruno Haible  <bruno@clisp.org>
16551
16552         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
16553         value to ensure that _Bool promotes to int. Use #define for _Bool when
16554         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
16555
16556 2003-08-10  Karl Berry  <karl@gnu.org>
16557
16558         * lib/regex.h: update from libc (whitespace fix).
16559
16560 2003-08-09  Paul Eggert  <eggert@twinsun.com>
16561
16562         Merge some files from coreutils.  These changes were
16563         originally made by Jim Meyering.
16564         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
16565         many older Unixes require this.
16566         * lib/alloca.c (alloca): Remove cast to argument of free;
16567         no longer needed in C89.
16568         * lib/alloca_.h, regex.h: Fix white space to match
16569         what GNU indent does.
16570
16571 2003-08-09  Paul Eggert  <eggert@twinsun.com>
16572
16573         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
16574         apparently Emacs's Unicode mode got confused before my 2003-08-05
16575         checkin.
16576
16577 2003-08-08  Paul Eggert  <eggert@twinsun.com>
16578
16579         * m4/extensions.m4: New file.
16580         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
16581         Require gl_USE_SYSTEM_EXTENSIONS.
16582         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
16583         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
16584
16585 2003-08-08  Paul Eggert  <eggert@twinsun.com>
16586
16587         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
16588         * modules/extensions, modules/gnu-source: New files.
16589         * modules/timespec, modules/unlocked-io: Depend on extensions.
16590
16591 2003-08-07 Paul Eggert  <eggert@twinsun.com>
16592
16593         * modules/restrict: New file.
16594         * MODULES.html.sh (func_all_modules): Add restrict.
16595         * modules/regex: Depend on restrict.
16596
16597 2003-08-07  Paul Eggert  <eggert@twinsun.com>
16598
16599         * m4/restrict.m4: New file.
16600         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
16601
16602 2003-08-07  Bruno Haible  <bruno@clisp.org>
16603
16604         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
16605         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
16606
16607 2003-08-07  Bruno Haible  <bruno@clisp.org>
16608
16609         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
16610         makes the module 'getndelim2' compatible with the module 'getline'.
16611
16612 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16613
16614         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
16615         byte with "\201" to avoid glitches when editing that source file
16616         with multi-gnome-terminal.
16617
16618 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16619
16620         * lib/bumpalloc.h: Remove.
16621
16622 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16623
16624         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
16625         * modules/bumpalloc: Remove.
16626
16627 2003-08-04  Paul Eggert  <eggert@twinsun.com>
16628
16629         * lib/getloadavg.c: Change copyright notice and spacing to conform to
16630         GNU coding style.
16631
16632         Merge from coreutils.
16633         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
16634         1. From glibc.
16635         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
16636         from Karl Berry, implemented by Jim Meyering.
16637         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
16638         from Dmitry V. Levin.
16639         Remove anachronistic cast of xrealloc.
16640         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
16641         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
16642         type. Otherwise, it wouldn't compile with at least /bin/cc on
16643         ymp-cray-unicos9.0.2.X.
16644         Combine two mostly-identical uses of alloca into one.
16645         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
16646
16647 2003-08-04  Dave Love <d.love@dl.ac.uk>
16648
16649         [From Emacs.]
16650
16651         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
16652         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
16653         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
16654         obsolete NLIST_NAME_UNION.
16655         [__GNU__]: Undef BSD and FSCALE.
16656         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
16657
16658 2003-08-03  Paul Eggert  <eggert@twinsun.com>
16659
16660         * lib/stdbool_.h (_Bool): Make it signed char, instead of
16661         an enum type, so that it's guaranteed to promote to int.  See:
16662         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
16663
16664 2003-08-03  Karl Berry  <karl@gnu.org>
16665
16666         * config/depcomp: update from automake.
16667
16668 2003-07-31  Paul Eggert  <eggert@twinsun.com>
16669
16670         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
16671         (strerror): Don't assume that a printable int fits in 14 bytes.
16672
16673 2003-07-31  Bruno Haible  <bruno@clisp.org>
16674
16675         * modules/getpass-gnu: New file.
16676         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
16677
16678 2003-07-31  Bruno Haible  <bruno@clisp.org>
16679
16680         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
16681
16682 2003-07-24  Karl Berry  <karl@gnu.org>
16683
16684         * config/missing: update from automake.
16685
16686 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
16687             Bruno Haible  <bruno@clisp.org>
16688
16689         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
16690         * lib/getline.c (getline, getdelim): Likewise.
16691         Remove _GNU_SOURCE define; now it's defined in config.h through
16692         m4/getline.m4.
16693
16694 2003-07-23  Karl Berry  <karl@gnu.org>
16695
16696         * config/config.sub: update from prep.
16697
16698 2003-07-22  Paul Eggert  <eggert@twinsun.com>
16699
16700         * modules/xalloc (Depends-on): Add exitfail.
16701         * modules/xmemcoll: Likewise.
16702
16703 2003-07-22  Paul Eggert  <eggert@twinsun.com>
16704
16705         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
16706         over-parenthesization in macros.
16707
16708         Sync with coreutils.
16709
16710         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
16711         required by C99.
16712
16713         Use `exit_failure' for xalloc and xmemcoll instead of their own
16714         private exit-failure variables.
16715         * lib/xalloc.h (xalloc_exit_failure): Remove.
16716         * lib/xmalloc.c: Likewise.  Include exitfail.h.
16717         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
16718         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
16719         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
16720         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
16721
16722 2003-07-20  Jim Meyering  <jim@meyering.net>
16723
16724         * modules/closeout (Depends-on): Add exitfail.
16725         Suggestion from Bruno Haible.
16726
16727 2003-07-19  Karl Berry  <karl@gnu.org>
16728
16729         * config/config.sub: update from prep.
16730
16731 2003-07-18  Paul Eggert  <eggert@twinsun.com>
16732
16733         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
16734         Remove.
16735         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
16736         to test that it can stand by itself.  Include "exitfail.h".
16737         Clients should set exit_failure instead.
16738         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
16739
16740 2003-07-18  Bruno Haible  <bruno@clisp.org>
16741
16742         * modules/getndelim2: New file.
16743         * modules/getline: Share files with module getndelim2.
16744         * modules/getnline: Depend on getndelim2 instead of sharing files with
16745         it. Add getnline.c to lib_SOURCES.
16746         * MODULES.html.sh (func_all_modules): Add getndelim2.
16747
16748 2003-07-18  Bruno Haible  <bruno@clisp.org>
16749
16750         * m4/getndelim2.m4: New file.
16751         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
16752         invoke gl_PREREQ_GETNDELIM2.
16753         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
16754         gl_PREREQ_GETNDELIM2.
16755         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
16756         gl_GETNDELIM2.
16757
16758 2003-07-18  Bruno Haible  <bruno@clisp.org>
16759
16760         * lib/getndelim2.h: New file.
16761         * lib/getndelim2.c: Make into a module of its own. Include config.h,
16762         getndelim2.h.
16763         (getndelim2): Make non-static. Change return type to ssize_t.
16764         * lib/getline.h: Change argument names.
16765         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
16766         * lib/getnline.c: Include getndelim2.h.
16767
16768 2003-07-18  Andreas Schwab  <schwab@suse.de>
16769
16770         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
16771
16772 2003-07-17  Karl Berry  <karl@gnu.org>
16773
16774         * config/config.sub: update from prep.
16775
16776 2003-07-17  Bruno Haible  <bruno@clisp.org>
16777
16778         * modules/getnline: New file.
16779         * modules/getline: Add lib/getndelim2.c to source file list.
16780         * MODULES.html.sh (func_all_modules): Add getnline.
16781
16782 2003-07-17  Bruno Haible  <bruno@clisp.org>
16783
16784         * m4/getnline.m4: New file.
16785
16786 2003-07-17  Bruno Haible  <bruno@clisp.org>
16787
16788         * m4/Makefile.am.in: Remove file.
16789         * m4/Makefile.am: Remove file.
16790         * m4/Makefile.in: Remove file.
16791
16792 2003-07-17  Bruno Haible  <bruno@clisp.org>
16793
16794         * lib/getnline.h: New file.
16795         * lib/getnline.c: New file.
16796         * lib/getndelim2.c: New file, extracted from getline.c.
16797         (getndelim2): Renamed from getdelim2, with added nmax argument.
16798         * lib/getline.c: Include getndelim2.c.
16799         (getdelim2): Moved out to getndelim2.c.
16800         (getline, getdelim): Update.
16801
16802 2003-07-17  Bruno Haible  <bruno@clisp.org>
16803
16804         * lib/Makefile.am: Remove file.
16805         * lib/Makefile.in: Remove file.
16806
16807 2003-07-17  Bruno Haible  <bruno@clisp.org>
16808
16809         * configure.in: Remove file.
16810         * Makefile.in: Remove file.
16811
16812 2003-07-17  Bruno Haible  <bruno@clisp.org>
16813
16814         * MODULES.html.sh: Put the </BODY> right before </HTML>.
16815
16816 2003-07-16  Karl Berry  <karl@gnu.org>
16817
16818         * config/srclist-update: was running fixlicense twice, which caused
16819                 texinfo.tex to be nullified for some reason.  Simplify,
16820                 $gplsrc is no longer needed as far as I can see?
16821
16822 2003-07-16  Jim Meyering  <jim@meyering.net>
16823
16824         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
16825
16826 2003-07-15  Paul Eggert  <eggert@twinsun.com>
16827
16828         * config/srclist.txt: Get the following files from gettext-runtime/intl
16829         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
16830         ref-del.sin.  From Bruno Haible.
16831         * config/srclist-update (fixfile): Change grep pattern again, since the
16832         previous fix didn't work (there was another trailing $).  Use
16833         '[$]' to escape the $s.
16834
16835 2003-07-15  Karl Berry  <karl@gnu.org>
16836
16837         * lib/vasnprintf.c: update from gettext.
16838
16839 2003-07-15  Karl Berry  <karl@gnu.org>
16840
16841         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
16842         gets expanded when surrounded by '$'.
16843
16844 2003-07-15  Jim Meyering  <jim@meyering.net>
16845
16846         * modules/save-cwd: Don't depend on error.  From Derek Price.
16847
16848 2003-07-15  Jim Meyering  <jim@meyering.net>
16849
16850         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
16851
16852 2003-07-14  Simon Josefsson  <jas@extundo.com>
16853
16854         * modules/mempcpy: New file.
16855         * MODULES.html.sh (func_all_modules): Add mempcpy.
16856
16857 2003-07-14  Simon Josefsson  <jas@extundo.com>
16858
16859         * m4/mempcpy.m4: New file.
16860
16861 2003-07-14  Simon Josefsson  <jas@extundo.com>
16862
16863         * lib/mempcpy.h: New file.
16864         * lib/mempcpy.c: New file.
16865
16866 2003-07-14  Paul Eggert  <eggert@twinsun.com>
16867
16868         * modules/getdate, modules/posixtm: Depend on mktime.
16869
16870 2003-07-14  Paul Eggert  <eggert@twinsun.com>
16871
16872         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
16873         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
16874         unicodeio.c, unicodeio.h, unlocked-io.h:
16875         Switch from LGPL to GPL.
16876
16877 2003-07-14  Paul Eggert  <eggert@twinsun.com>
16878
16879         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
16880         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
16881         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
16882         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
16883         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
16884         updated automatically by ../config/srclist-update.  This changes
16885         their license from LPGL to GPL.
16886
16887 2003-07-14  Paul Eggert  <eggert@twinsun.com>
16888
16889         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
16890         assumed to refer to the root of the most recent stable gettext version.
16891         * config/srclistvars.sh: Add defaults for eggert.
16892         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
16893         Match "This program" as well as "The program".  This is needed
16894         for gettext.
16895
16896 2003-07-14  Jim Meyering  <jim@meyering.net>
16897
16898         Don't emit diagnostics.  Let callers do that.
16899         * lib/save-cwd.c: Don't include "error.h".
16900         (save_cwd): Don't call error.  Ensure that errno is valid
16901         when returning nonzero.
16902
16903         * lib/save-cwd.h (restore_cwd): Update prototype.
16904         * lib/save-cwd.c (restore_cwd): Remove two parameters.
16905         Simplify.  Don't call error upon failure.  Let callers do that.
16906         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
16907         when auditing is enabled.  But don't bother updating the #if.
16908
16909 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
16910
16911         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
16912         it breaks C++ compilation.
16913         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
16914
16915 2003-07-10  Simon Josefsson  <jas@extundo.com>
16916
16917         * modules/strchrnul (Makefile.am): Add strchrnul.h.
16918
16919 2003-07-10  Jim Meyering  <jim@meyering.net>
16920
16921         * m4/clock_time.m4: Remove trailing blank.
16922         * m4/intmax_t.m4: Likewise.
16923
16924 2003-07-10  Jim Meyering  <jim@meyering.net>
16925
16926         * lib/vasnprintf.c: Remove trailing blanks.
16927         Make cpp indentation consistent.
16928
16929 2003-07-09  Paul Eggert  <eggert@twinsun.com>
16930
16931         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
16932         posixver.c, strftime.c, strnlen.c, strverscmp.c:
16933         Switch from LGPL to GPL.
16934
16935 2003-07-09  Paul Eggert  <eggert@twinsun.com>
16936
16937         * config/srclist.txt: Sort sublists.  Add
16938         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
16939         that differ from gnulib for one reason or another; we'd like this list
16940         to be smaller but for now let's document what we have.
16941
16942 2003-07-08  Paul Eggert  <eggert@twinsun.com>
16943
16944         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
16945         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
16946         and sweeter "eval x=$x".
16947         * config/srclist.txt: Get lib/argp* from glibc.
16948
16949 2003-07-07  Paul Eggert  <eggert@twinsun.com>
16950
16951         * lib/mktime.c: Fix some boundary cases and remove need for floating
16952         point.
16953
16954         Issue a compile-time diagnostic if time_t is floating point, or if
16955         two's complement arithmetic is not in effect, or if arithmetic
16956         right shift does not propagate the sign.  These assumptions were
16957         all in the original code but they weren't checked.
16958
16959         (TIME_T_MIDPOINT, verify): New macros.
16960         (__isleap): Remove; it has integer overflow problems.
16961         (leapyear): New function, without those problems.
16962         (ydhms_tm_diff): Remove; splitting into two parts.
16963         (ydhms_diff): New function, containing the arithmetic part of
16964         the old ydhms_tm_diff function.  Issue a compile-time
16965         diagnostic if we are not using C99 integer division.
16966         Avoid casts when possible.
16967         (guess_time_tm): New function, containing the checking part of
16968         the old ydhms_tm_diff function.  Return the new value, rather than
16969         the difference between it and the old.  Accept a new argument T
16970         so that *T specifies the old value.  Check for overflow in the result.
16971
16972         (__mktime_internal): Use a time_t offset, not a long int offset.
16973         This undoes the 2003-06-04 change, which is no longer needed now
16974         that we have better overflow checking.
16975         (localtime_offset): Likewise.
16976
16977         (__mktime_internal): Avoid harmful overflow on hosts where time_t
16978         and long are 64-bit but int is only 32-bit.
16979         (ydhms_diff): Use long int to store year1 and yday1.
16980         Issue a compile-time diagnostic if long int is not wide enough.
16981
16982         (__mktime_internal): Use long int to store adjusted year and yday.
16983         Use plain C rather than preprocessor commands, if that doesn't
16984         affect efficiency.
16985         Check for overflow (and try to repair) after each probe
16986         rather than checking only at the very end.  This avoids some bugs
16987         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
16988         does not equal GMT offset at maximum time).
16989         Use integer to check for overflow rather than floating point; this
16990         is more portable to non-IEEE hosts, and is a tad faster.
16991         When we detect that we are oscillating between two values,
16992         don't check whether tm_isdst has the requested value, since
16993         we already know the answer.  When tm_isdst has the wrong value,
16994         use a different heuristic to find the right one, based on the
16995         extreme values actually observed in practice in tz2003a,
16996         rather than the (overly optimistic) "previous 3 calendar quarters".
16997
16998         (not_equal_tm, print_tm, check_result): Use "const T" rather than
16999         "T const" to accommodate glibc style.
17000         (check_result): Use less-confusing report format.  "long" -> "long int.
17001         (main): Likewise.
17002         Don't loop if the iteration overflows time_t.
17003         Allow a negative step in the iteration.
17004
17005 2003-07-06  Karl Berry  <karl@gnu.org>
17006
17007         * config/depcomp: update from automake.
17008         * config/config.sub: update from prep.
17009
17010 2003-07-03  Karl Berry  <karl@gnu.org>
17011
17012         * config/config.guess: update from prep.
17013
17014 2003-07-01  Paul Eggert  <eggert@twinsun.com>
17015
17016         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
17017         xreadlink.c now includes it unconditionally.
17018
17019 2003-07-01  Paul Eggert  <eggert@twinsun.com>
17020
17021         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
17022         having it depend on HAVE_SYS_TYPES_H.
17023
17024 2003-07-01  Bruno Haible  <bruno@clisp.org>
17025
17026         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
17027         <sys/types.h> should be sufficient.
17028         Reported by Paul Eggert.
17029
17030 2003-06-26  Karl Berry  <karl@gnu.org>
17031
17032         * config/depcomp: update from automake.
17033
17034 2003-06-26  Bruno Haible  <bruno@clisp.org>
17035
17036         * modules/human: Depend on module stdbool.
17037
17038 2003-06-25  Bruno Haible  <bruno@clisp.org>
17039
17040         * modules/readlink: New file.
17041         * modules/xreadlink: Depend on it.
17042         * MODULES.html.sh (func_all_modules): Add readlink.
17043
17044 2003-06-25  Bruno Haible  <bruno@clisp.org>
17045
17046         * m4/readlink.m4: New file.
17047
17048 2003-06-25  Bruno Haible  <bruno@clisp.org>
17049
17050         * lib/readlink.c: New file.
17051
17052 2003-06-22  Karl Berry  <karl@gnu.org>
17053
17054         * config/srclist.txt: update mkinstalldirs from automake.
17055         * config/mkinstalldirs: update.
17056
17057 2003-06-22  Bruno Haible  <bruno@clisp.org>
17058
17059         Portability to mingw32.
17060         * m4/ssize_t.m4: New file, from GNU gettext.
17061         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
17062         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
17063
17064 2003-06-22  Bruno Haible  <bruno@clisp.org>
17065
17066         * modules/safe-read: Add m4/ssize_t.m4.
17067         * modules/xreadlink: Add m4/ssize_t.m4.
17068
17069 2003-06-20  Bruno Haible  <bruno@clisp.org>
17070
17071         Assume C89, so PARAMS isn't needed.
17072         * lib/unicodeio.h (PARAMS): Remove.
17073         * lib/unicodeio.c: Don't use PARAMS.
17074
17075 2003-06-18  Karl Berry  <karl@gnu.org>
17076
17077         * config/config.{guess,sub}: update from prep.
17078
17079 2003-06-18  Jim Meyering  <jim@meyering.net>
17080
17081         Merge changes from coreutils.
17082         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
17083         Remove explicit declarations of xmalloc and realloc.
17084         Include xalloc.h.
17085         (read_utmp): Remove anachronistic cast of xmalloc.
17086
17087 2003-06-17  Paul Eggert  <eggert@twinsun.com>
17088
17089         Assume C89, so PARAMS isn't needed.
17090         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
17091         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
17092         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
17093         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
17094         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
17095         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
17096         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
17097         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
17098         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
17099         lib/xstrtod.h, lib/xstrtol.h: Likewise.
17100         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
17101         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
17102         no longer needed. Anyway, config.h should always be included before any
17103         other file.
17104
17105 2003-06-11  Simon Josefsson  <jas@extundo.com>
17106
17107         * modules/sysexits: New file.
17108         * MODULES.html.sh (func_all_modules): Add sysexits.
17109
17110 2003-06-11  Simon Josefsson  <jas@extundo.com>
17111
17112         * lib/sysexit_.h: New file.
17113
17114 2003-06-11  Derek Price  <derek@ximbiot.com>
17115
17116         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
17117         necessary.
17118
17119 2003-06-11  Bruno Haible  <bruno@clisp.org>
17120
17121         * m4/sysexits.m4: New file.
17122
17123 2003-06-10  Simon Josefsson <jas@extundo.com>
17124
17125         * lib/argp.h: New file, from glibc.
17126         * lib/argp-ba.c: New file, from glibc.
17127         * lib/argp-eexst.c: New file, from glibc.
17128         * lib/argp-fmtstream.c: New file, from glibc.
17129         * lib/argp-fmtstream.h: New file, from glibc.
17130         * lib/argp-fs-xinl.c: New file, from glibc.
17131         * lib/argp-help.c: New file, from glibc.
17132         * lib/argp-namefrob.h: New file, from glibc.
17133         * lib/argp-parse.c: New file, from glibc.
17134         * lib/argp-pv.c: New file, from glibc.
17135         * lib/argp-pvh.c: New file, from glibc.
17136         * lib/argp-xinl.c: New file, from glibc.
17137
17138 2003-06-10  Simon Josefsson  <jas@extundo.com>
17139
17140         * modules/strchrnul: New file.
17141
17142 2003-06-10  Simon Josefsson  <jas@extundo.com>
17143
17144         * modules/argp: New file.
17145
17146 2003-06-10  Simon Josefsson  <jas@extundo.com>
17147
17148         * m4/strchrnul.m4: New file.
17149
17150 2003-06-10  Simon Josefsson  <jas@extundo.com>
17151
17152         * lib/strchrnul.h: New file.
17153         * lib/strchrnul.c: New file.
17154
17155 2003-06-10  Bruno Haible  <bruno@clisp.org>
17156
17157         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
17158
17159 2003-06-07  Karl Berry  <karl@gnu.org>
17160
17161         * config/config.{guess,sub}: update from prep.
17162
17163 2003-06-07  Jim Meyering  <jim@meyering.net>
17164
17165         * modules/strtod: Use $(...) notation, not @...@ for
17166         AC_REPLACE'd variables.
17167         * modules/localcharset: Likewise.
17168
17169 2003-06-07  Jim Meyering  <jim@meyering.net>
17170
17171         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
17172         in place of my name in the copyright comment.
17173         Remove definition and uses of __P.
17174
17175         From coreutils.
17176         * lib/stat.c: Don't declare xmalloc explicitly.
17177         Instead, include "xalloc.h".
17178         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
17179         xrealloc, and xcalloc return values.
17180         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
17181         Improve comment.
17182         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
17183
17184 2003-06-07  Bruno Haible  <bruno@clisp.org>
17185
17186         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
17187         avoid AC_CONFIG_LINKS.
17188         * modules/fnmatch (Makefile.am): Use explicit creation rule for
17189         fnmatch.h, to avoid AC_CONFIG_LINKS.
17190         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
17191
17192 2003-06-07  Bruno Haible  <bruno@clisp.org>
17193
17194         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
17195         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
17196         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
17197         directory.
17198         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
17199         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
17200         directory.
17201
17202 2003-06-06  Jim Meyering  <jim@meyering.net>
17203
17204         Merge from coreutils.
17205         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
17206         Consolidate declarations and initializations of *_base* locals.
17207
17208         Merge from coreutils.
17209         This avoids a core dump on systems without GNU putenv,
17210         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
17211         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
17212         (unsetenv): New static function, from GNU libc.
17213         (rpl_putenv): Use it.
17214
17215         * lib/modechange.c: Remove trailing blanks.
17216
17217         Merge from coreutils.
17218         * lib/fsusage.c: Remove declaration of statfs.
17219         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
17220
17221         * lib/posixtm.c: Include <stdbool.h> unconditionally.
17222
17223 2003-06-06  Jim Meyering  <jim@meyering.net>
17224
17225         * lib/stdbool_.h: Renamed from stdbool.h.in.
17226
17227 2003-06-06  Jim Meyering  <jim@meyering.net>
17228             Bruno Haible  <bruno@clisp.org>
17229
17230         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
17231         Adjust Makefile.am snippet not to redirect directly to target.
17232         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
17233
17234 2003-06-05  Paul Eggert  <eggert@twinsun.com>
17235
17236         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
17237         mismatch, look in future quarters as well as past.  This fixes a
17238         bug when processing fall-backwards gaps immediately after a long
17239         period of daylight-saving time.
17240
17241         * lib/mktime.c: Assume freestanding C89 or better.
17242         (HAVE_LIMITS_H): Remove.  Assume it's 1.
17243         (__P): Remove; not used.
17244         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
17245         (mktime, not_equal_tm, print_tm, check_result,
17246         main): Use prototypes.  Use const * where appropriate.
17247         (main): Fix typo in testing code that uncovered by above changes.
17248         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
17249
17250 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17251
17252         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
17253         locale.h, localeconv.  This merges changes from coreutils.
17254
17255         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
17256         It can be removed after the next Autoconf is released.
17257         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
17258         needed.
17259
17260 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17261
17262         * lib/mktime.c: Fix Debian bug 177940
17263         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
17264         (localtime_offset): Now long int, not time_t, because we want it
17265         to be guaranteed to be signed.  All uses changed.
17266         (__mktime_internal): If overflow would occur when adding offset,
17267         don't add it.
17268
17269         Merge 'human' changes from coreutils.  Rewrite to support
17270         locale-specific notations like thousands separators.
17271         * lib/human.c: Simplify authorship notice.
17272         Include human.h immediately after config.h.
17273         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
17274         <limits.h>: Do not include, since human.h does.
17275         (SIZE_MAX, UINTMAX_MAX): New macros.
17276         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
17277         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
17278         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
17279         (power_letter): Renamed from suffixes.
17280         (generate_suffix_backwards): Remove.
17281         (adjust_value): Now takes int style (because of human.h changes)
17282         and long double value (for greater precision on some platforms).
17283         (group_number): New function.
17284         (human_readable): Use it.  Use integer options, not enum.
17285         Put the options before the sizes in the arg list.
17286         Support all the new options.
17287         The old human_readable function has been removed;
17288         use inttostr.h instead.
17289         (human_readable, default_block_size, humblock):
17290         Use uintmax_t, not int, for block sizes.
17291         (human_readable_inexact, block_size_types): Remove.
17292         (block_size_opts): New constant.
17293         (human_options): Renamed from human_block_size, with new signature
17294         that allows block sizes up to UINTMAX_MAX.  All callers changed.
17295         * lib/human.h: Add copyright and authorship notice.
17296         Include <limits.h> and <stdbool.h> unconditionally.
17297         (PARAMS): Remove.  All uses removed.
17298         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
17299         (enum human_inexact_style): Remove tag; now a nameless enum.
17300         (human_floor, human_ceiling, human_round_to_even): Now have
17301         values 2, 0, 1 rather than -1, 1, 0.
17302         (human_group_digits, human_suppress_point_zero, human_autoscale,
17303         human_base_1024, human_SI, human_B): New constants.
17304         (human_readable_inexact, human_block_size): Remove.
17305         (human_readable): Size args are now uintmax_t, not int.
17306         (human_options): New decl.
17307
17308         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
17309         unnecessary now that we assume C89 or better.  This change
17310         imported from coreutils.
17311
17312         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
17313         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
17314         in the 2003-05-30 sync from glibc.
17315
17316         .h files should stand alone, but we shouldn't include <sys/types.h>
17317         if we can get away with just <stddef.h>.
17318
17319         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
17320         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
17321         rather than <sys/types.h>, as we merely need size_t.
17322         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
17323         to get size_t.
17324         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
17325         Include <stdio.h>, to get FILE.
17326         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
17327         memcasecmp.h has included <stddef.h> and all we need is size_t.
17328         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
17329         our interface, instead of including <sys/types.h>
17330
17331 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17332
17333         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
17334         now, as glibc mktime is buggy on non-glibc systems.
17335
17336 2003-06-03  Karl Berry  <karl@gnu.org>
17337
17338         * config/config.sub: update from prep.
17339
17340 2003-06-02  Paul Eggert  <eggert@twinsun.com>
17341
17342         [from coreutils]
17343         Fix some minor time-related bugs with POSIX time arguments.
17344         Some valid time stamps were being rejected (notably -1, and
17345         time stamps before 1900 on 64-bit hosts).  And some invalid
17346         time stamps were being accepted, e.g. September 31.
17347
17348         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
17349         that we can return (time_t) -1 successfully.
17350         * lib/posixtm.c: Likewise.
17351         [HAVE_STDBOOL_H]: Include <stdbool.h>.
17352         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
17353         (t): Remove static var.
17354         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
17355         of static var.  All uses changed.
17356         (year): Do not reject years before 1900; they can occur with
17357         64-bit time_t.
17358         (posix_time_parse): Do not check for out-of-range components;
17359         that is now the caller's responsibility, since our checks were
17360         only approximations.
17361         (posixtime): Use mktime to check for out-of-range components,
17362         since it knows them exactly.
17363         If mktime returns (time_t) -1, check whether an error actually occurred
17364         by invoking localtime on -1.
17365         (main) [TEST_POSIXTIME]: Check for input data errors, and report
17366         posixtime failures better.
17367         Improve the test data (in comments only).
17368
17369 2003-06-02  Karl Berry  <karl@gnu.org>
17370
17371         * config/mkinstalldirs (version): new variable.
17372         (--version): new option.
17373         (usage): improve message.
17374
17375 2003-05-30  Karl Berry  <karl@gnu.org>
17376
17377         * lib/mktime.c: update from libc.
17378
17379 2003-05-30  Bruno Haible  <bruno@clisp.org>
17380
17381         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
17382         * config/config.rpath: Upgrade to gettext-0.12.1.
17383
17384 2003-05-30  Bruno Haible  <bruno@clisp.org>
17385
17386         * m4/gettext.m4: Upgrade to gettext-0.12.1.
17387         * m4/nls.m4: New file, from gettext-0.12.1.
17388         * m4/po.m4: New file, from gettext-0.12.1.
17389         * m4/progtest.m4: Upgrade to gettext-0.12.1.
17390
17391 2003-05-30  Bruno Haible  <bruno@clisp.org>
17392
17393         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
17394         * lib/localcharset.h: Likewise.
17395         * lib/localcharset.c: Likewise.
17396
17397 2003-05-29  Karl Berry  <karl@gnu.org>
17398
17399         * config/config.rpath: update from gettext.
17400
17401 2003-05-28  Paul Eggert  <eggert@twinsun.com>
17402
17403         Assume the headers required for C89 freestanding compilers.
17404         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
17405         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
17406         * m4/human.m4 (gl_HUMAN): Likewise.
17407         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
17408         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
17409         * m4/userspec.m4 (gl_USERSPEC): Likewise.
17410         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
17411         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17412         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
17413
17414 2003-05-28  Paul Eggert  <eggert@twinsun.com>
17415
17416         Assume the headers required for C89 freestanding compilers.
17417         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
17418         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
17419         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
17420         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
17421         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
17422         define, since <limits.h> is guaranteed to do that.
17423         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
17424         * lib/exclude.c: Include <stdbool.h> unconditionally.
17425         * lib/tempname.c: Include <stddef.h> unconditionally.
17426         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
17427         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
17428         <stddef.h> does that.
17429         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
17430         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
17431         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
17432         needed.
17433         * lib/xstrtol.c: Likewise.
17434         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
17435         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
17436
17437         * lib/addext.c (addext): Use assignment rather than cast, to avoid
17438         warnings on some platforms.
17439
17440         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
17441         arbitrarily.
17442
17443 2003-05-26  Jim Meyering  <jim@meyering.net>
17444
17445         Merge in a change from coreutils:
17446         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
17447         that is guaranteed to be `no'.  Use `no_such_member' to indicate
17448         that condition, rather than `-1' which is slightly misleading.
17449         Change the name of the cache variable to have the gl_ prefix.
17450         Prompted by a patch from Richard Dawe for DJGPP.
17451
17452 2003-05-24  Karl Berry  <karl@gnu.org>
17453
17454         * config/config.guess: update from prep.
17455
17456 2003-05-22  Karl Berry  <karl@gnu.org>
17457
17458         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
17459
17460 2003-05-20  Karl Berry  <karl@gnu.org>
17461
17462         * config/config.guess: update from prep.
17463
17464 2003-05-18  Karl Berry  <karl@gnu.org>
17465
17466         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
17467         might actually be set by the user.
17468
17469         * config/depcomp, install-sh, mdate-sh: update from automake.
17470
17471 2003-05-17  Bruno Haible  <bruno@clisp.org>
17472
17473         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
17474         invalid expansion for AC_EGREP_CPP.
17475         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17476         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17477         Suggested by Akim Demaille <akim@epita.fr> in
17478         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
17479
17480 2003-05-12  Jim Meyering  <jim@meyering.net>
17481
17482         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
17483         the space-padded-by-default conversion specifiers, %e, %k, %l.
17484
17485 2003-05-12  Bruno Haible  <bruno@clisp.org>
17486
17487         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
17488         the string is longer than 4 KB.
17489
17490 2003-05-11  Karl Berry  <karl@gnu.org>
17491
17492         * config/config.{guess,sub}: update from prep.
17493
17494 2003-05-09  Bruno Haible  <bruno@clisp.org>
17495
17496         * modules/error: Add m4/strerror_r.m4 to file list.
17497
17498 2003-05-03  Bruno Haible  <bruno@clisp.org>
17499
17500         Upgrade to Unicode-4.0.
17501         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
17502         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
17503         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
17504         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
17505         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
17506         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
17507         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
17508         Change width of U+E0100..U+E01EF from 1 to 0.
17509
17510 2003-04-25  Jim Meyering  <jim@meyering.net>
17511
17512         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
17513         of type size_t, not int.
17514
17515 2003-04-25  Bruno Haible  <bruno@clisp.org>
17516
17517         * lib/copy-file.c: Include <stddef.h>, for size_t.
17518
17519 2003-04-21  Paul Eggert  <eggert@twinsun.com>
17520
17521         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
17522         code which expansion is under static control.  Patch imported from
17523         Akim Demaille's patch to Bison; see
17524         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
17525
17526 2003-04-14  Bruno Haible  <bruno@clisp.org>
17527
17528         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
17529
17530 2003-04-11  Jim Meyering  <jim@meyering.net>
17531
17532         Merge changes from Coreutils.
17533
17534         2003-03-22  Jim Meyering  <jim@meyering.net>
17535
17536         * lib/strftime.c (widen): Cast alloca return value to proper type.
17537
17538         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
17539
17540         From GNU libc.
17541         * lib/strftime.c (my_strftime): Handle very large width
17542         specifications for numeric values correctly.  Improve checks for
17543         overflow.
17544
17545         2003-01-19  Jim Meyering  <jim@meyering.net>
17546
17547         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
17548         definitions.
17549         (nl_get_alt_digit) [! defined my_strftime]: Define.
17550         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
17551         _nl_get_alt_digit and _nl_get_walt_digit.
17552
17553         * lib/strftime.c (my_strftime): Merge in locale-related changes from
17554         libc. These changes have no effect outside of _LIBC.
17555
17556 2003-04-10  Bruno Haible  <bruno@clisp.org>
17557
17558         * modules/findprog: New file.
17559         * MODULES.html.sh (func_all_modules): Add it.
17560
17561 2003-04-10  Bruno Haible  <bruno@clisp.org>
17562
17563         * m4/findprog.m4: New file.
17564         * m4/eaccess.m4: New file.
17565
17566 2003-04-10  Bruno Haible  <bruno@clisp.org>
17567
17568         * lib/findprog.h: New file, from GNU gettext.
17569         * lib/findprog.c: New file, from GNU gettext.
17570
17571 2003-04-05  Jim Meyering  <jim@meyering.net>
17572
17573         Merge changes from Coreutils.
17574
17575         * lib/exclude.h (PARAMS): Remove definition and uses.
17576         * lib/exclude.c: Remove uses of `PARAMS'.
17577
17578         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
17579         Add test-cases for DOS filenames. Declare program_name.
17580         (main): Set up program_name.  Patch by Rich Dawe.
17581
17582         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
17583         error from mntctl.
17584         Use mntctl's return value to drive the entry-processing loop, since
17585         we can't rely on the value of the vmt_length member in the last
17586         entry.  On some systems doing so could result in exhausting
17587         virtual memory.  Based in part on a patch from Mike Jetzer.
17588
17589 2003-04-04  Bruno Haible  <bruno@clisp.org>
17590
17591         * modules/linebreak: New file.
17592         * MODULES.html.sh (func_all_modules): Add it.
17593
17594 2003-04-04  Bruno Haible  <bruno@clisp.org>
17595
17596         * m4/linebreak.m4: New file.
17597
17598 2003-04-04  Bruno Haible  <bruno@clisp.org>
17599
17600         * lib/linebreak.h: New file, from GNU gettext.
17601         * lib/linebreak.c: New file, from GNU gettext with slight
17602         modifications.
17603         * lib/lbrkprop.h: New file, from GNU gettext.
17604
17605 2003-04-03  Bruno Haible  <bruno@clisp.org>
17606
17607         * modules/utf8-ucs4: New file.
17608         * modules/utf16-ucs4: New file.
17609         * modules/ucs4-utf8: New file.
17610         * modules/ucs4-utf16: New file.
17611         * MODULES.html.sh (func_all_modules): Add them.
17612
17613 2003-04-03  Bruno Haible  <bruno@clisp.org>
17614
17615         * m4/utf-ucs4.m4: New file.
17616         * m4/ucs4-utf.m4: New file.
17617
17618 2003-04-03  Bruno Haible  <bruno@clisp.org>
17619
17620         * lib/utf8-ucs4.h: New file, from GNU gettext.
17621         * lib/utf16-ucs4.h: New file, from GNU gettext.
17622         * lib/ucs4-utf8.h: New file, from GNU gettext.
17623         * lib/ucs4-utf16.h: New file, from GNU gettext.
17624
17625 2003-04-02  Bruno Haible  <bruno@clisp.org>
17626
17627         * modules/binary-io: New file.
17628         * MODULES.html.sh (func_all_modules): Add it.
17629
17630 2003-04-02  Bruno Haible  <bruno@clisp.org>
17631
17632         * lib/binary-io.h: New file, from GNU gettext.
17633
17634 2003-04-01  Bruno Haible  <bruno@clisp.org>
17635
17636         * modules/pathname: New file.
17637         * MODULES.html.sh (func_all_modules): Add it.
17638
17639 2003-04-01  Bruno Haible  <bruno@clisp.org>
17640
17641         * lib/pathname.h: New file, from GNU gettext.
17642         * lib/concatpath.c: New file, from GNU gettext.
17643
17644 2003-03-30  Bruno Haible  <bruno@clisp.org>
17645
17646         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
17647
17648 2003-03-30  Bruno Haible  <bruno@clisp.org>
17649
17650         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
17651         function chown() doesn't exist.
17652
17653 2003-03-28  Bruno Haible  <bruno@clisp.org>
17654
17655         * modules/copy-file: New file.
17656         * MODULES.html.sh (func_all_modules): Add it.
17657
17658 2003-03-28  Bruno Haible  <bruno@clisp.org>
17659
17660         * m4/copy-file.m4: New file.
17661
17662 2003-03-28  Bruno Haible  <bruno@clisp.org>
17663
17664         * lib/copy-file.h: New file, from GNU gettext.
17665         * lib/copy-file.c: New file, from GNU gettext.
17666
17667 2003-03-18  Jim Meyering  <jim@meyering.net>
17668
17669         * lib/quote.c (quote_n): Fix typo in comment.
17670
17671 2003-03-18  Bruno Haible  <bruno@clisp.org>
17672
17673         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
17674         checking.
17675         * m4/onceonly_2_57.m4: Likewise.
17676
17677 2003-03-17  Bruno Haible  <bruno@clisp.org>
17678
17679         * m4/onceonly.m4: Require autoconf 2.54 or newer.
17680         (m4_quote): Remove macro.
17681         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
17682
17683 2003-03-14  Jim Meyering  <jim@meyering.net>
17684
17685         Merge changes from Coreutils.
17686         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
17687         to be const, in order to avoid warnings.
17688         (obstack_room): Likewise.
17689         (obstack_empty_p): Likewise.
17690
17691 2003-03-14  Bruno Haible  <bruno@clisp.org>
17692
17693         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
17694         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
17695
17696 2003-03-13  Paul Eggert  <eggert@twinsun.com>
17697
17698         Merge changes from Bison.
17699         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
17700         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
17701         when compiling Bison 1.875's `bitset bset = obstack_alloc
17702         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
17703         * lib/hash.c: Include <stdbool.h> unconditionally.
17704
17705 2003-03-13  Paul Eggert  <eggert@twinsun.com>
17706
17707         * m4/onceonly.m4 (m4_quote): New macro.
17708         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
17709         Quote AC_FOREACH variable-expansions properly.
17710
17711 2003-03-13  Paul Eggert  <eggert@twinsun.com>
17712
17713         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
17714
17715 2003-03-09  Paul Eggert  <eggert@twinsun.com>
17716
17717         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
17718         Reported by Bruce Becker; see:
17719         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
17720
17721 2003-03-03  Paul Eggert  <eggert@twinsun.com>
17722             Bruno Haible  <bruno@clisp.org>
17723
17724         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
17725         Reported by John Hughes, see
17726         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
17727
17728 2003-02-20  Bruno Haible  <bruno@clisp.org>
17729
17730         * MODULES.html.sh (func_all_modules): Add poll.
17731
17732 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
17733
17734         * modules/poll: New file.
17735
17736 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
17737
17738         * lib/poll_.h: New file.
17739         * lib/poll.c: New file.
17740
17741 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
17742
17743         * m4/poll.m4: New file.
17744
17745 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
17746
17747         * modules/mathl: New file.
17748
17749 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
17750
17751         * lib/mathl.h: New file.
17752         * lib/acosl.c: New file.
17753         * lib/asinl.c: New file.
17754         * lib/atanl.c: New file.
17755         * lib/ceill.c: New file.
17756         * lib/cosl.c: New file.
17757         * lib/expl.c: New file.
17758         * lib/floorl.c: New file.
17759         * lib/frexpl.c: New file.
17760         * lib/ldexpl.c: New file.
17761         * lib/logl.c: New file.
17762         * lib/sincosl.c: New file.
17763         * lib/sinl.c: New file.
17764         * lib/sqrtl.c: New file.
17765         * lib/tanl.c: New file.
17766         * lib/trigl.c: New file.
17767         * lib/trigl.h: New file.
17768
17769 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
17770
17771         * m4/mathl.m4: New file.
17772
17773 2003-02-18  Bruno Haible  <bruno@clisp.org>
17774
17775         * MODULES.html.sh (func_all_modules): Add mathl.
17776
17777 2003-02-17  Bruno Haible  <bruno@clisp.org>
17778
17779         * modules/mkdtemp: New module.
17780         * MODULES.html.sh (func_all_modules): Add it.
17781
17782 2003-02-17  Bruno Haible  <bruno@clisp.org>
17783
17784         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
17785
17786 2003-02-17  Bruno Haible  <bruno@clisp.org>
17787
17788         * lib/mkdtemp.h: New file, from GNU gettext.
17789         * lib/mkdtemp.c: New file, from GNU gettext.
17790
17791 2003-02-02  Jim Meyering  <jim@meyering.net>
17792
17793         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
17794         e.g. glibc-2.2.93.
17795
17796 2003-01-31  Bruno Haible  <bruno@clisp.org>
17797
17798         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
17799         'rpl_rename'.
17800         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
17801         'rpl_strnlen'.
17802         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
17803         'rpl_strtod'.
17804         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
17805         'rpl_utime'.
17806
17807 2003-01-31  Bruno Haible  <bruno@clisp.org>
17808
17809         * lib/rename.c: #undef rename before defining rpl_rename.
17810         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
17811
17812 2003-01-30  Bruno Haible  <bruno@clisp.org>
17813
17814         * modules/vasnprintf, modules/vasprintf: New modules.
17815         * MODULES.html.sh (func_all_modules): Add them.
17816
17817 2003-01-30  Bruno Haible  <bruno@clisp.org>
17818
17819         * m4/signed.m4: New file, from GNU gettext.
17820         * m4/longdouble.m4: New file, from GNU gettext.
17821         * m4/wchar_t.m4: New file, from GNU gettext.
17822         * m4/wint_t.m4: New file, from GNU gettext.
17823         * m4/vasnprintf.m4: New file.
17824         * m4/vasprintf.m4: New file.
17825
17826 2003-01-30  Bruno Haible  <bruno@clisp.org>
17827
17828         * lib/printf-args.h: New file, from GNU gettext.
17829         * lib/printf-args.c: New file, from GNU gettext.
17830         * lib/printf-parse.h: New file, from GNU gettext.
17831         * lib/printf-parse.c: New file, from GNU gettext.
17832         * lib/vasnprintf.h: New file, from GNU gettext.
17833         * lib/vasnprintf.c: New file, from GNU gettext.
17834         * lib/asnprintf.c: New file, from GNU gettext.
17835         * lib/vasprintf.h: New file, from GNU gettext with modifications.
17836         * lib/vasprintf.c: New file, from GNU gettext.
17837         * lib/asprintf.c: New file, from GNU gettext.
17838
17839 2003-01-29  Bruno Haible  <bruno@clisp.org>
17840
17841         * modules/stpncpy: New module.
17842         * MODULES.html.sh (func_all_modules): Add it.
17843
17844 2003-01-29  Bruno Haible  <bruno@clisp.org>
17845
17846         * m4/stpncpy.m4: New file.
17847
17848 2003-01-29  Bruno Haible  <bruno@clisp.org>
17849
17850         * lib/stpncpy.h: New file, from GNU gettext with modifications.
17851         * lib/stpncpy.c: New file, from GNU gettext with modifications.
17852
17853 2003-01-28  Bruno Haible  <bruno@clisp.org>
17854
17855         * modules/c-ctype: New module.
17856         * MODULES.html.sh (func_all_modules): Add it.
17857
17858 2003-01-28  Bruno Haible  <bruno@clisp.org>
17859
17860         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
17861         Paul Eggert.
17862         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
17863         Paul Eggert.
17864
17865 2003-01-27  Bruno Haible  <bruno@clisp.org>
17866
17867         * modules/xsetenv: New module.
17868         * MODULES.html.sh (func_all_modules): Add it.
17869
17870 2003-01-27  Bruno Haible  <bruno@clisp.org>
17871
17872         * lib/xsetenv.h: New file, from GNU gettext.
17873         * lib/xsetenv.c: New file, from GNU gettext.
17874
17875 2003-01-23  Jim Meyering  <jim@meyering.net>
17876
17877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
17878         from working on systems without dirfd (at least Irix and OSF1/Tru64).
17879
17880 2003-01-23  Bruno Haible  <bruno@clisp.org>
17881
17882         * modules/minmax: New module.
17883         * MODULES.html.sh (func_all_modules): Add it.
17884
17885 2003-01-23  Bruno Haible  <bruno@clisp.org>
17886
17887         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
17888         Eggert.
17889
17890 2003-01-22  Bruno Haible  <bruno@clisp.org>
17891
17892         * modules/exit: New module.
17893         * MODULES.html.sh (func_all_modules): Add it.
17894
17895 2003-01-22  Bruno Haible  <bruno@clisp.org>
17896
17897         * lib/exit.h: New file, from GNU gettext.
17898
17899 2003-01-19  Bruno Haible  <bruno@clisp.org>
17900
17901         * gnulib-tool: Recognize option --extract-maintainer.
17902         (func_get_maintainer): New function.
17903         * modules/*: Add Maintainer entry.
17904
17905 2003-01-16  Jim Meyering  <jim@meyering.net>
17906
17907         * m4/regex.m4: The `regex' struct is both input and output.
17908         Initialize it before each use.  Patch by Tim Waugh.
17909
17910 2003-01-16  Bruno Haible  <bruno@clisp.org>
17911
17912         * MODULES.html.sh: Add a table of contents. Add the module name as
17913         leftmost column. Add hyperlinks.
17914
17915 2003-01-15  Bruno Haible  <bruno@clisp.org>
17916
17917         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
17918
17919 2003-01-15  Bruno Haible  <bruno@clisp.org>
17920
17921         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
17922         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
17923         suffix.
17924
17925 2003-01-15  Bruno Haible  <bruno@clisp.org>
17926
17927         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
17928
17929 2003-01-15  Bruno Haible  <bruno@clisp.org>
17930
17931         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
17932         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
17933
17934 2003-01-14  Jim Meyering  <jim@meyering.net>
17935
17936         * lib/same.c (same_name): Tweak a comment.
17937
17938 2003-01-14  Bruno Haible  <bruno@clisp.org>
17939
17940         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
17941         when a string comparison is sufficient.
17942
17943 2003-01-14  Bruno Haible  <bruno@clisp.org>
17944
17945         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
17946         'unsigned int'.
17947
17948 2003-01-14  Bruno Haible  <bruno@clisp.org>
17949
17950         * lib/hash-pjw.c: Add comment about low quality of this function.
17951
17952 2003-01-13  Bruno Haible  <bruno@clisp.org>
17953
17954         * modules/stpcpy: Distribute lib/stpcpy.h.
17955         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
17956
17957 2003-01-13  Bruno Haible  <bruno@clisp.org>
17958
17959         * modules/*: Add a description.
17960         * modules/strpbrk: Fix Makefile.am snippet.
17961         * modules/strtoimax: Fix dependencies.
17962         * modules/strtoumax: Likewise.
17963
17964 2003-01-13  Bruno Haible  <bruno@clisp.org>
17965
17966         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
17967         * modules/alloca (Makefile.am): All object files depend on alloca.h.
17968         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
17969
17970 2003-01-13  Bruno Haible  <bruno@clisp.org>
17971
17972         * gnulib-tool (func_create_testdir): Store config/* files in the main
17973         directory.
17974         * config.rpath: Move to ...
17975         * config/config.rpath: ... here.
17976         * modules/gettext: Contains config/config.rpath, not config.rpath.
17977         * modules/iconv: Likewise.
17978
17979 2003-01-12  Paul Eggert  <eggert@twinsun.com>
17980
17981         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17982         to avoid collisions with libcurses and libreadline.
17983
17984         * m4/getstr.m4: Remove.
17985         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
17986
17987 2003-01-12  Paul Eggert  <eggert@twinsun.com>
17988
17989         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17990         to avoid collisions with libcurses and libreadline.
17991
17992         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
17993         * lib/getstr.h, getstr.c: Remove.
17994         * lib/getline.c: Include "getline.h", to check interface.
17995         Move body of old getstr.c here: this defines MIN_CHUNK and
17996         declares getdelim2, which is renamed from getstr.
17997         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
17998
17999         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
18000         All uses changed.
18001         * lib/linebuffer.h: Likewise.
18002         (readline): Remove backward-compatibility macro.
18003
18004 2003-01-12  Paul Eggert  <eggert@twinsun.com>
18005
18006         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
18007         to avoid collisions with libcurses and libreadline.
18008         * getstr: Remove.
18009         * MODULES.html.sh: Remove getstr.
18010         * modules/getline: Depend on unlocked-io, not getstr.
18011
18012 2003-01-12  Jim Meyering  <jim@meyering.net>
18013
18014         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
18015
18016 2003-01-10  Bruno Haible  <bruno@clisp.org>
18017
18018         * modules/alloca: Change Makefile.am requirements. Simplify Include
18019         requirements. Add lib/alloca_.h to file list.
18020
18021 2003-01-10  Bruno Haible  <bruno@clisp.org>
18022
18023         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
18024
18025 2003-01-10  Bruno Haible  <bruno@clisp.org>
18026
18027         * lib/alloca_.h: New file.
18028         * lib/getdate.y: Unconditionally include alloca.h.
18029         * lib/makepath.c: Likewise.
18030         * lib/setenv.c: Likewise.
18031         * lib/userspec.c: Likewise.
18032
18033 2003-01-09  Karl Berry  <karl@gnu.org>
18034
18035         * MODULES.html.sh: include `dirname $0` in PATH, to find
18036         gnulib-tool.
18037
18038 2003-01-09  Bruno Haible  <bruno@clisp.org>
18039
18040         * modules/stdbool: Change configure.ac, Makefile.am requirements.
18041         Simplify Include requirements. Add lib/stdbool.h.in to file list.
18042
18043 2003-01-09  Bruno Haible  <bruno@clisp.org>
18044
18045         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
18046
18047 2003-01-09  Bruno Haible  <bruno@clisp.org>
18048
18049         * lib/stdbool.h.in: New file.
18050
18051 2003-01-09  Bruno Haible  <bruno@clisp.org>
18052
18053         * gnulib-tool (func_all_modules): Ignore files ending in ~.
18054         * MODULES.html.sh: Likewise.
18055
18056 2003-01-08  Jim Meyering  <jim@meyering.net>
18057
18058         * lib/full-write.c: Undefine and define-away `const' after inclusion
18059         of errno.h, not before.  Suggestion from Bruno Haible.
18060
18061 2003-01-08  Bruno Haible  <bruno@clisp.org>
18062
18063         * modules/full-read: Depend on full-write.
18064
18065 2003-01-08  Bruno Haible  <bruno@clisp.org>
18066
18067         * lib/safe-read.c: Include specification header first, to ensure its
18068         selfcontainedness.
18069         * lib/full-write.c: Likewise.
18070
18071 2003-01-07  Jim Meyering  <jim@meyering.net>
18072
18073         * lib/full-write.c: Rework so that it may serve to define full_read,
18074         too.
18075         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
18076
18077 2003-01-07  Bruno Haible  <bruno@clisp.org>
18078
18079         * lib/strtoimax.c: Include <stdint.h> as an alternative to
18080         <inttypes.h>.
18081         * lib/xstrtol.h: Likewise.
18082         * lib/xstrtoimax.c: Likewise.
18083         * lib/xstrtoumax.c: Likewise.
18084         * lib/human.h: Likewise.
18085
18086         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
18087         on systems that have <inttypes.h> but not <stdint.h>.
18088
18089 2003-01-07  Bruno Haible  <bruno@clisp.org>
18090
18091         * MODULES.html.sh: Add copyright notice.
18092         (missed_files): Omit CVS directory entries.
18093         (func_module): Make it work with sed-3.02.
18094         * MODULES.txt: Remove file.
18095
18096 2003-01-06  Jim Meyering  <jim@meyering.net>
18097
18098         * lib/version-etc.c: Update year in translatable copyright string.
18099
18100 2003-01-03  Karl Berry  <karl@gnu.org>
18101
18102         * config/config.{guess,sub}: update from prep.
18103
18104 2003-01-02  Karl Berry  <karl@gnu.org>
18105
18106         * doc/COPYING.DOC: belatedly updated to 1.2.
18107
18108 2003-01-01  Karl Berry  <karl@gnu.org>
18109
18110         * gnulib-tool (func_verify_module): report module name $module in
18111         error message, not $1.
18112         * gnulib-tool (create-testdir): don't complain if destdir couldn't
18113         be created, only if it doesn't exist.
18114         * gnulib-tool (last_checkin_date): don't expand the $Date here.
18115
18116 2002-12-31  Paul Eggert  <eggert@twinsun.com>
18117
18118         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
18119
18120 2002-12-31  Paul Eggert  <eggert@twinsun.com>
18121
18122         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
18123         memcmp if strcoll doesn't work.
18124
18125 2002-12-31  Bruno Haible  <bruno@clisp.org>
18126
18127         * lib/utime.c (utime_null): No need to call ftruncate if the file was
18128         nonempty.
18129
18130 2002-12-31  Bruno Haible  <bruno@clisp.org>
18131
18132         * lib/memcoll.c (STRCOLL): New macro.
18133         (memcoll): Use it.
18134
18135 2002-12-31  Bruno Haible  <bruno@clisp.org>
18136
18137         * lib/localcharset.h: New file.
18138         * lib/localcharset.c: Include it.
18139         * lib/unicodeio.c: Likewise.
18140
18141 2002-12-31  Bruno Haible  <bruno@clisp.org>
18142
18143         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
18144         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
18145
18146 2002-12-31  Bruno Haible  <bruno@clisp.org>
18147
18148         * lib/getline.h: Include <stddef.h>, for size_t.
18149
18150         * lib/unicodeio.h: Include <stddef.h>, for size_t.
18151         * lib/unicodeio.c: Don't include <stddef.h>.
18152
18153 2002-12-31  Bruno Haible  <bruno@clisp.org>
18154
18155         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
18156         HAVE_TM_ZONE.
18157
18158 2002-12-24  Karl Berry  <karl@gnu.org>
18159
18160         * config/config.guess: update from prep.
18161
18162 2002-12-24  Bruno Haible  <bruno@clisp.org>
18163
18164         General infrasructure.
18165         * m4/README: Rewritten.
18166         * m4/onceonly.m4: New file.
18167         * m4/onceonly_2_57.m4: New file.
18168
18169         Module atexit.
18170         * m4/atexit.m4: New file.
18171
18172         Module strtod.
18173         * m4/strtod.m4: New file.
18174
18175         Module strtol.
18176         * m4/strtol.m4: New file.
18177
18178         Module strtoul.
18179         * m4/strtoul.m4: New file.
18180
18181         Module memchr.
18182         * m4/memchr.m4: New file.
18183
18184         Module memcmp.
18185         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
18186         (jm_FUNC_MEMCMP): Invoke it.
18187
18188         Module memcpy.
18189         * m4/memcpy.m4: New file.
18190
18191         Module memmove.
18192         * m4/memmove.m4: New file.
18193
18194         Module memset.
18195         * m4/memset.m4: New file.
18196
18197         Module strcspn.
18198         * m4/strcspn.m4: New file.
18199
18200         Module strpbrk.
18201         * m4/strpbrk.m4: New file.
18202
18203         Module strstr.
18204         * m4/strstr.m4: New file.
18205
18206         Module strerror.
18207         * m4/strerror.m4: New file.
18208
18209         Module mktime.
18210         * m4/mktime.m4: Renamed from jm-mktime.m4.
18211         (gl_PREREQ_MKTIME): New macro.
18212         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
18213
18214         Module malloc.
18215         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
18216         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
18217         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
18218
18219         Module realloc.
18220         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
18221         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
18222         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
18223
18224         Module strftime.
18225         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
18226         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
18227         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
18228         gl_TM_GMTOFF.
18229         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
18230
18231         Module xalloc.
18232         * m4/xalloc.m4: New file.
18233
18234         Module alloca.
18235         * m4/alloca.m4: New file.
18236
18237         Module putenv.
18238         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
18239         (jm_FUNC_PUTENV): Invoke it.
18240
18241         Module setenv.
18242         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
18243         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
18244         when invoked twice.
18245         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
18246         gt_FUNC_SETENV.
18247
18248         Module memrchr.
18249         * m4/memrchr.m4: New file.
18250
18251         Module stpcpy.
18252         * m4/stpcpy.m4: New file.
18253
18254         Module strcase.
18255         * m4/strcase.m4: New file.
18256
18257         Module strdup.
18258         * m4/strdup.m4: New file.
18259
18260         Module strnlen.
18261         * m4/strnlen.m4: New file.
18262
18263         Module strndup.
18264         * m4/strndup.m4: New file.
18265
18266         Module xstrtod.
18267         * m4/xstrtod.m4: New file.
18268
18269         Module xstrtol.
18270         * m4/xstrtol.m4: New file.
18271
18272         Module getdate.
18273         * m4/getdate.m4: New file.
18274
18275         Module unlocked-io.
18276         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
18277         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
18278         * m4/jm-glibc-io.m4n: Remove file.
18279
18280         Module long-options.
18281         * m4/long-options.m4: New file.
18282
18283         Module md5.
18284         * m4/md5.m4: New file.
18285
18286         Module sha.
18287         * m4/sha.m4: New file.
18288
18289         Module getstr.
18290         * m4/getstr.m4: New file.
18291
18292         Module getline.
18293         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
18294         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
18295         <sys/types.h>, for size_t. Use the function name gnu_getline, not
18296         simply getline. Infoke gl_PREREQ_GETLINE.
18297
18298         Module obstack.
18299         * m4/obstack.m4: New file.
18300
18301         Module hash.
18302         * m4/hash.m4: New file.
18303
18304         Module readtokens.
18305         * m4/readtokens.m4: New file.
18306
18307         Module strverscmp.
18308         * m4/strverscmp.m4: New file.
18309
18310         Module stdbool.
18311         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
18312         OSF/1.
18313
18314         Module strtoll.
18315         * m4/strtoll.m4: New file.
18316
18317         Module strtoull.
18318         * m4/strtoull.m4: New file.
18319
18320         Module strtoimax.
18321         * m4/strtoimax.m4: New file.
18322
18323         Module strtoumax.
18324         * m4/strtoumax.m4: New file.
18325
18326         Module xstrtoimax.
18327         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
18328         jm_AC_PREREQ_XSTRTOIMAX.
18329         Moved the strtol prerequisites to strtol.m4.
18330         Moved the strtoll prerequisites to strtoll.m4.
18331         Moved the strtoimax prerequisites to strtoimax.m4.
18332
18333         Module xstrtoumax.
18334         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
18335         jm_AC_PREREQ_XSTRTOUMAX.
18336         Moved the strtoul prerequisites to strtoul.m4.
18337         Moved the strtoull prerequisites to strtoull.m4.
18338         Moved the strtoumax prerequisites to strtoumax.m4.
18339
18340         Module chown.
18341         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
18342         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
18343
18344         Module dup2.
18345         * m4/dup2.m4: New file.
18346
18347         Module ftruncate.
18348         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
18349         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
18350
18351         Module getgroups.
18352         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
18353         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
18354
18355         Module gettimeofday.
18356         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
18357         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
18358         gl_PREREQ_GETTIMEOFDAY.
18359
18360         Module mkdir.
18361         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
18362         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
18363
18364         Module mkstemp.
18365         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
18366         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
18367         jm_AC_TYPE_UINTMAX_T.
18368         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
18369
18370         Module stat.
18371         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
18372         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
18373
18374         Module lstat.
18375         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
18376         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
18377
18378         Module timespec.
18379         * m4/timespec.m4 (gl_TIMESPEC): New macro.
18380         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
18381         * m4/st_mtim.m4: Indentation.
18382
18383         Module nanosleep.
18384         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
18385         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
18386         gl_PREREQ_NANOSLEEP.
18387
18388         Module regex.
18389         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
18390         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
18391         (gl_REGEX): New macro.
18392
18393         Module rename.
18394         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
18395         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
18396
18397         Module rmdir.
18398         * m4/rmdir.m4: New file.
18399
18400         Module utime.
18401         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
18402         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
18403         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
18404
18405         Module dirname.
18406         * m4/dirname.m4: New file.
18407
18408         Module getopt.
18409         * m4/getopt.m4: New file.
18410
18411         Module unistd-safer.
18412         * m4/unistd-safer.m4: New file.
18413
18414         Module fnmatch.
18415         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
18416         declaration.
18417         (gl_PREREQ_FNMATCH_EXTRA): New macro.
18418         (gl_FUNC_FNMATCH_POSIX): New macro.
18419         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
18420         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
18421         simply fnmatch.
18422
18423         Module exclude.
18424         * m4/exclude.m4: New file.
18425
18426         Module human.
18427         * m4/human.m4: New file.
18428
18429         Module acl.
18430         * m4/acl.m4: Nop.
18431
18432         Module backupfile.
18433         * m4/backupfile.m4: New file.
18434         * m4/d-ino.m4: Indentation.
18435
18436         Module fsusage.
18437         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
18438         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
18439         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
18440
18441         Module dirfd.
18442         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
18443         requirements.
18444
18445         Module euidaccess.
18446         * m4/euidaccess.m4: New file.
18447
18448         Module file-type.
18449         * m4/file-type.m4: New file.
18450
18451         Module fileblocks.
18452         * m4/fileblocks.m4: New file.
18453
18454         Module filemode.
18455         * m4/filemode.m4: New file.
18456
18457         Module isdir.
18458         * m4/isdir.m4: New file.
18459
18460         Module lchown.
18461         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
18462         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
18463
18464         Module makepath.
18465         * m4/makepath.m4: New file.
18466
18467         Module modechange.
18468         * m4/modechange.m4: New file.
18469
18470         Module mountlist.
18471         * m4/mountlist.m4: New file.
18472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
18473         Indentation.
18474
18475         Module path-concat.
18476         * m4/path-concat.m4: New file.
18477
18478         Module pathmax.
18479         * m4/pathmax.m4: New file.
18480
18481         Module same.
18482         * m4/same.m4: New file.
18483
18484         Module save-cwd.
18485         * m4/save-cwd.m4: New file.
18486
18487         Module savedir.
18488         * m4/savedir.m4: New file.
18489
18490         Module xgetcwd.
18491         * m4/xgetcwd.m4: New file.
18492         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
18493
18494         Module xreadlink.
18495         * m4/xreadlink.m4: New file.
18496
18497         Module safe-read.
18498         * m4/safe-read.m4: New file.
18499
18500         Module safe-write.
18501         * m4/safe-write.m4: New file.
18502
18503         Module closeout.
18504         * m4/closeout.m4: New file.
18505
18506         Module stdio-safer.
18507         * m4/stdio-safer.m4: New file.
18508
18509         Module getpass.
18510         * m4/getpass.m4: New file.
18511
18512         Module getugroups.
18513         * m4/getugroups.m4: New file.
18514
18515         Module group-member.
18516         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
18517         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
18518
18519         Module idcache.
18520         * m4/idcache.m4: New file.
18521
18522         Module userspec.
18523         * m4/userspec.m4: New file.
18524
18525         Module gettime.
18526         * m4/clock_time.m4: New file.
18527         * m4/gettime.m4: New file.
18528
18529         Module settime.
18530         * m4/settime.m4: New file.
18531
18532         Module posixtm.
18533         * m4/posixtm.m4: New file.
18534
18535         Module gethostname.
18536         * m4/gethostname.m4: New file.
18537
18538         Module canon-host.
18539         * m4/canon-host.m4: New file.
18540
18541         Module gettext.
18542         * m4/codeset.m4: New file, from gettext-0.11.5.
18543         * m4/gettext.m4: New file, from gettext-0.11.5.
18544         * m4/glibc21.m4: New file, from gettext-0.11.5.
18545         * m4/iconv.m4: New file, from gettext-0.11.5.
18546         * m4/intdiv0.m4: New file, from gettext-0.11.5.
18547         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
18548         * m4/inttypes.m4: New file, from gettext-0.11.5.
18549         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
18550         * m4/isc-posix.m4: New file, from gettext-0.11.5.
18551         * m4/lcmessage.m4: New file, from gettext-0.11.5.
18552         * m4/lib-ld.m4: New file, from gettext-0.11.5.
18553         * m4/lib-link.m4: New file, from gettext-0.11.5.
18554         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
18555         * m4/progtest.m4: New file, from gettext-0.11.5.
18556         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
18557         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
18558         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
18559
18560         Module localcharset.
18561         * m4/localcharset.m4: New file.
18562
18563         Module hard-locale.
18564         * m4/hard-locale.m4: New file.
18565
18566         Module mbswidth.
18567         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
18568         onceonly macros.
18569         * m4/mbrtowc.m4: Add comment.
18570
18571         Module memcasecmp.
18572         * m4/memcasecmp.m4: New file.
18573
18574         Module memcoll.
18575         * m4/memcoll.m4: New file.
18576
18577         Module unicodeio.
18578         * m4/unicodeio.m4: New file.
18579
18580         Module rpmatch.
18581         * m4/rpmatch.m4: New file.
18582
18583         Module yesno.
18584         * m4/yesno.m4: New file.
18585
18586         Module exitfail.
18587         * m4/exitfail.m4: New file.
18588
18589         Module c-stack.
18590         * m4/c-stack.m4 (gl_C_STACK): New macro.
18591         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
18592
18593         Module error.
18594         * m4/error.m4 (gl_ERROR): New macro.
18595         (jm_PREREQ_ERROR): Use onceonly macros.
18596
18597         Module fatal.
18598         * m4/fatal.m4: New file.
18599
18600         Module getloadavg.
18601         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
18602         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
18603
18604         Module getpagesize.
18605         * m4/getpagesize.m4: New file.
18606
18607         Module getusershell.
18608         * m4/getusershell.m4: New file.
18609
18610         Module physmem.
18611         * m4/physmem.m4: New file.
18612
18613         Module posixver.
18614         * m4/posixver.m4: New file.
18615
18616         Module quotearg.
18617         * m4/quotearg.m4: New file.
18618
18619         Module quote.
18620         * m4/quote.m4: New file.
18621
18622         Module readutmp.
18623         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
18624
18625         Module sig2str.
18626         * m4/sig2str.m4: New file.
18627
18628         Other.
18629         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
18630         ulonglong.m4.
18631         * m4/intmax_t.m4: New file.
18632         * m4/d-type.m4: Indentation.
18633         * m4/jm-macros.m4: Update.
18634         * m4/prereq.m4 (jm_PREREQ): Update.
18635         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
18636         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
18637         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
18638         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
18639         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
18640         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
18641         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
18642         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
18643         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
18644         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
18645         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
18646         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
18647         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
18648         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
18649         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
18650         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
18651         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
18652         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
18653         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
18654
18655 2002-12-24  Bruno Haible  <bruno@clisp.org>
18656
18657         * MODULES.txt: Update according to m4/ changes.
18658
18659         Module gettext.
18660         * config.rpath: New file, from gettext-0.11.5.
18661
18662         * modules/*: New module descriptions.
18663         * gnulib-tool: New file.
18664         * MODULES.html.sh: New file.
18665
18666 2002-12-21  Karl Berry  <karl@gnu.org>
18667
18668         * doc/fdl.texi: update to version 1.2.
18669
18670 2002-12-19  Karl Berry  <karl@gnu.org>
18671
18672         * config/config.guess: update from prep.
18673
18674 2002-12-18  Bruno Haible  <bruno@clisp.org>
18675
18676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
18677         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
18678
18679 2002-12-17  Bruno Haible  <bruno@clisp.org>
18680
18681         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
18682         stdlib.h, string.h.
18683
18684 2002-12-17  Bruno Haible  <bruno@clisp.org>
18685
18686         * lib/canon-host.c (strdup): Remove unused declaration.
18687
18688         * lib/fsusage.c: Include full_read.h.
18689         (get_fs_usage): Use full_read instead of safe_read.
18690
18691         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
18692
18693 2002-12-12  Karl Berry  <karl@gnu.org>
18694
18695         * config/config.guess: update from prep.
18696
18697 2002-12-11  Bruno Haible  <bruno@clisp.org>
18698
18699         * m4/setenv.m4: New file, from gettext-0.11.5.
18700
18701 2002-12-11  Bruno Haible  <bruno@clisp.org>
18702
18703         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
18704         not unsetenv().
18705         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
18706         modifications:
18707
18708         2002-12-11  Bruno Haible  <bruno@clisp.org>
18709
18710                 * setenv.c (alloca): Fall back to malloc.
18711                 (freea): New macro.
18712                 (setenv): Use freea() to free memory allocated with alloca().
18713
18714         2002-11-13  Bruno Haible  <bruno@clisp.org>
18715
18716                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
18717                 function declarations.
18718                 * unsetenv.c (unsetenv): Likewise.
18719
18720         2002-03-04  Bruno Haible  <bruno@clisp.org>
18721
18722                 Portability to AIX 4.3.3.
18723                 * unsetenv.c: New file, extracted from setenv.c.
18724                 * setenv.c: Move the unsetenv() function to unsetenv.c.
18725
18726         2001-12-20  Bruno Haible  <bruno@clisp.org>
18727
18728                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
18729                 use malloc instead. For SunOS 4.
18730
18731         2001-12-11  Bruno Haible  <bruno@clisp.org>
18732
18733                 * setenv.c: Declare alloca.
18734                 (compar_fn_t): New typedef.
18735                 (KNOWN_VALUE, STORE_VALUE): Use it.
18736
18737         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
18738         setenv.h.
18739
18740 2002-12-10  Paul Eggert  <eggert@twinsun.com>
18741
18742         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
18743         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
18744         Choose values that are less likely to collide with system fnmatch
18745         options.
18746         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
18747         defined (e.g., a pure POSIX system).
18748         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
18749         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
18750
18751 2002-12-06  Paul Eggert  <eggert@twinsun.com>
18752
18753         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
18754         a pain in practice to deal with generated m4 files.  This change
18755         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
18756
18757         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
18758         and jm-glibc-io.m4, as they are no longer a special case.
18759         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
18760         kludge and the auto-generation stuff.  Check only whether the
18761         functions are declared, not whether they exist, since older hosts
18762         that don't declare the functions can't use the optimization anyway.
18763
18764 2002-12-06  Jim Meyering  <jim@meyering.net>
18765
18766         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
18767
18768         Merge in changes from libc's misc/error.c, in preparation
18769         for the merge of gnulib's changes back into libc.
18770
18771         * lib/error.c (_): Define only if not already defined.
18772         Move definition to follow all #include directives.
18773         Include unlocked-io.h only if !_LIBC.
18774         [_LIBC]: Include <libio/libioP.h>.
18775         [USE_IN_LIBIO]: Include <libio/iolibio.h>
18776         (fflush): Tweak definition to use INTUSE.
18777         (putc): Define.
18778
18779 2002-12-05  Paul Eggert  <eggert@twinsun.com>
18780
18781         * lib/alloca.c [defined emacs]: Include "lisp.h".
18782         (xalloc_die) [defined emacs]: New macro.
18783         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
18784         [! defined emacs]: Include <xalloc.h>.
18785         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
18786         (pointer): Typedef to POINTER_TYPE *.
18787         (malloc): Remove decl; we now always use xmalloc.
18788         (alloca): Use old-style definition, since Emacs needs this.
18789         Check for arithmetic overflow when computing combined size.
18790
18791 2002-12-04  Paul Eggert  <eggert@twinsun.com>
18792
18793         Do not generate unlocked-io.h automatically, since it's easier to
18794         maintain it by hand.
18795
18796         * lib/unlocked-io.h: New file, from GNU diffutils,
18797         but with proper copyright notice and attribution.
18798         * lib/gen-uio: Remove.
18799         * lib/Makefile.am: Add copyright notice.
18800         (libfetish_a_SOURCES): Add unlocked-io.h.
18801         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
18802         (DISTCLEANFILES, io_functions): Remove macros.
18803         (EXTRA_DIST): Remove gen_uio.
18804         (unlocked-io.h): Remove rule.
18805
18806 2002-12-04  Jim Meyering  <jim@meyering.net>
18807
18808         Reflect the fact that stat.c and lstat.c are no longer generated.
18809         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
18810         (DISTCLEANFILES): Likewise.
18811         (EXTRA_DIST): Likewise.
18812         (all_local): Don't depend on stat.c or lstat.c.
18813         (stat.c, lstat.c): Remove rules.
18814         (EXTRA_DIST): Remove xstat.in.
18815
18816         * lib/xstat.in: Remove file.  Contents moved into stat.c.
18817         * lib/stat.c: New file.  Contents mostly from xstat.in.
18818         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
18819         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
18820
18821         * lib/safe-read.c: Rework so that it may serve to define safe_write,
18822         too.
18823         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
18824
18825 2002-12-03  Jim Meyering  <jim@meyering.net>
18826
18827         * lib/safe-read.c, safe-write.c: Change variable names and comments,
18828         but not semantics, to minimize the differences between these two files.
18829         (safe_read): Change comment to mention SAFE_READ_ERROR.
18830
18831         * lib/safe-read.c (IS_EINTR): Define.
18832         (safe_read): Use IS_EINTR in place of in-function cpp directives.
18833
18834 2002-12-02  Jim Meyering  <jim@meyering.net>
18835
18836         * lib/safe-read.c (EINTR): Define.
18837         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
18838         (INT_MAX): Provide fallback.
18839         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
18840
18841         * lib/safe-read.h (SAFE_READ_ERROR): Define.
18842
18843 2002-12-02  Bruno Haible  <bruno@clisp.org>
18844
18845         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
18846         Define, taken from safe-read.c.
18847         (INT_MAX): Provide fallback.
18848         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
18849         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
18850
18851         * lib/safe-read.c (EINTR): Remove definition.
18852         (safe_read): Don't use EINTR if it is absent.
18853
18854 2002-12-01  Jim Meyering  <jim@meyering.net>
18855
18856         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
18857         zero.
18858         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
18859
18860 2002-11-27  Paul Eggert  <eggert@twinsun.com>
18861
18862         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
18863         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
18864         with `if (! (value < limit)) abort ();', for readability.
18865
18866 2002-11-26  Karl Berry  <karl@gnu.org>
18867
18868         * lib/strdup.c: copy from libc again, with jim's ok.
18869         * lib/.cppi-disable: re-add strdup.c
18870
18871 2002-11-25  Karl Berry  <karl@gnu.org>
18872
18873         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
18874         instead of "strtol.c".
18875
18876 2002-11-25  Karl Berry  <karl@gnu.org>
18877
18878         * config/install-sh: update from automake for variable quoting, $0 in
18879         error msgs, etc.
18880
18881         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
18882         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
18883         entry.
18884
18885 2002-11-25  Jim Meyering  <jim@meyering.net>
18886
18887         * lib/mktime.c: Sync from libc, now that it has the latest fix.
18888
18889 2002-11-24  Karl Berry  <karl@gnu.org>
18890
18891         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
18892         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
18893
18894 2002-11-24  Jim Meyering  <jim@meyering.net>
18895
18896         Update from coreutils:
18897
18898         * lib/mktime.c: Merge in changes from libc.
18899
18900         Avoid a link-time failure on some Linux systems.
18901         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
18902         (otherwise).
18903         (__mon_yday): Declare with the STATIC attribute.
18904         (__mktime_internal): Likewise.
18905         Based on a report from Greg Schafer.
18906
18907 2002-11-23  Jim Meyering  <jim@meyering.net>
18908
18909         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
18910         Use `unsigned', not `int', as type of index.
18911
18912         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
18913
18914         * lib/fsusage.c: Remove unneeded parentheses around operands of
18915         `defined'.
18916
18917 2002-11-22  Paul Eggert  <eggert@twinsun.com>
18918
18919         * lib/quotearg.h: Allow multiple inclusion by surrounding with
18920         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
18921         so that we can be included first.
18922         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
18923         * lib/quotearg.c: Include quotearg.h immediately after config.h.
18924         No need to include stddef.h or sys/types.h any more.
18925         Surround local include files with "", not "<>".
18926         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
18927         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
18928         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
18929         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
18930         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
18931         (ISPRINT): Remove; no longer needed now that we assume C89.
18932
18933         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
18934         Preserve errno.
18935
18936         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
18937         quotearg_char): Use SIZE_MAX rather than
18938         (size_t) -1 when we are talking about "infinity".
18939
18940         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
18941
18942 2002-11-22  Paul Eggert  <eggert@twinsun.com>
18943
18944         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
18945         hint that one should use `if (! x) abort ();' rather than `assert
18946         (x);', and anyway it's one less thing to worry about configuring.
18947         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
18948         hash_rehash, hash_insert): Use abort rather than assert.
18949
18950 2002-11-22  Bruno Haible  <bruno@clisp.org>
18951
18952         * lib/safe-read.h: Assume C89. Add comments.
18953         (safe_read): Change return type to size_t.
18954         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
18955         byte counts > SSIZE_MAX correctly.
18956         * lib/safe-write.h: New file.
18957         * lib/safe-write.c: New file.
18958         * lib/full-read.h: New file.
18959         * lib/full-read.c: New file.
18960         * lib/full-write.h: Assume C89. Add comments.
18961         * lib/full-write.c: Include safe-write.h.
18962         (full_write): Rewritten to use safe_write.
18963         Suggested by Jim Meyering and Paul Eggert.
18964
18965 2002-11-21  Jim Meyering  <jim@meyering.net>
18966
18967         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
18968
18969         Merge in changes from the coreutils.
18970
18971         2002-09-25  Paul Eggert  <eggert@twinsun.com>
18972         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
18973         <stdint.h>.
18974         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
18975         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
18976         int.  Work more efficiently if X is the same width as uintmax_t.
18977         Do not compare X to -1, to avoid bogus compiler warning.
18978         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
18979         Don't assume that f_frsize and f_bsize are the same type.
18980
18981         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
18982         warning on FreeBSD.
18983
18984         * lib/makepath.c (make_path): Restore umask *before* creating the final
18985         component.
18986         (make_path): Minor reformatting.
18987
18988         * lib/xmalloc.c: Adjust to work with new autoconf macros,
18989         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
18990         HAVE_MALLOC/HAVE_REALLOC.
18991
18992         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
18993         dummy ones.  At least on GNU/Linux systems, `auto' means something
18994         else.
18995         From Michael Stone.
18996
18997 2002-11-21  Bruno Haible  <bruno@clisp.org>
18998
18999         Remove case insensitive option matching.
19000         * lib/argmatch.h (argcasematch): Remove declaration.
19001         (ARGCASEMATCH): Remove macro.
19002         (__xargmatch_internal): Remove case_sensitive argument.
19003         (XARGMATCH): Update.
19004         (XARGCASEMATCH): Remove macro.
19005         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
19006         case_sensitive argument.
19007         (argcasematch): Remove function.
19008         (__xargmatch_internal): Remove case_sensitive argument.
19009         (main): Use XARGMATCH instead of XARGCASEMATCH.
19010
19011         * lib/xmalloc.c: Change compile-time error message. Add comment about
19012         required autoconf version.
19013
19014 2002-11-20  Paul Eggert  <eggert@twinsun.com>
19015
19016         Merge argmatch cleanups from Bison.  Assume C89.
19017
19018         * lib/argmatch.c: Include config.h here, not in argmatch.h.
19019         Include stdlib.h, for EXIT_FAILURE.
19020         Always include <string.h>, since we assume C89.
19021         (EXIT_FAILURE): Remove pre-C89 bug workaround.
19022         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
19023         Include <stddef.h> instead, since it's all we need for size_t.
19024         (PARAMS): Remove.  All uses removed.
19025         (ARRAY_CARDINALITY): Do not bother to #undef.
19026         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
19027         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
19028         Remove unnecessary parentheses.
19029         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
19030         Insert necessary parentheses.
19031         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
19032         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
19033
19034 2002-11-19  Bruno Haible  <bruno@clisp.org>
19035
19036         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
19037         * lib/mbswidth.h: Include <stddef.h>, for size_t.
19038
19039         * lib/mbswidth.h (PARAMS): Remove macro.
19040         (mbswidth, mbsnwidth): Use ANSI C function declarations.
19041         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
19042
19043         * lib/gcd.h (PARAMS): Remove macro.
19044         (gcd): Use ANSI C function declarations.
19045         * lib/gcd.c (gcd): Likewise.
19046
19047 2002-11-15  Bruno Haible  <bruno@clisp.org>
19048
19049         * lib/strcspn.c: Include <stddef.h>.
19050         (strcspn): Use ANSI C function declaration. Change return type to
19051         size_t. Use NULL.
19052         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
19053         (strpbrk): Use NULL.
19054         * lib/strpbrk.h (PARAMS): Remove macro.
19055         (strpbrk): Use ANSI C function declaration.
19056         * lib/strstr.c: Don't include <sys/types.h>.
19057         * lib/strstr.h (PARAMS): Remove macro.
19058         (strstr): Use ANSI C function declarations.
19059
19060 2002-11-14  Karl Berry  <karl@gnu.org>
19061
19062         * config/mkinstalldirs: `do' on separate line, instead of
19063         `for var; do'.
19064
19065 2002-11-06  Bruno Haible  <bruno@clisp.org>
19066
19067         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
19068         * lib/gcd.c (gcd): Likewise.
19069
19070 2002-11-05  Bruno Haible  <bruno@clisp.org>
19071
19072         * lib/gcd.h: New file, from gettext-0.11.5.
19073         * lib/gcd.c: New file, from gettext-0.11.5.
19074
19075 2002-11-05  Bruno Haible  <bruno@clisp.org>
19076
19077         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19078         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19079         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19080         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19081
19082         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
19083         <libintl.h>.
19084         * lib/makepath.c: Include gettext.h instead of <locale.h> and
19085         <libintl.h>.
19086
19087         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
19088         * lib/human.c: Include gettext.h instead of <libintl.h>.
19089         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
19090         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
19091         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
19092         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
19093         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
19094         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
19095         (textdomain): Remove definition.
19096         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
19097
19098         * lib/long-options.c: Remove include of <libintl.h> and definition of
19099         _.
19100         * lib/same.c: Remove include of <libintl.h> and definition of _.
19101
19102 2002-11-04  Owen Taylor  <otaylor@redhat.com>
19103
19104         * lib/config.charset: A few additions for Solaris.
19105
19106 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
19107
19108         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
19109         * lib/localcharset.c (locale_charset): Declare as extern "C".
19110
19111 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
19112
19113         * lib/config.charset: msdos in uk_UA uses CP1125.
19114
19115 2002-11-04  Bruno Haible  <bruno@clisp.org>
19116
19117         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
19118         * lib/strcase.h: New file, from GNU gettext-0.11.5.
19119         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
19120         * lib/strstr.h: New file, from GNU gettext-0.11.5.
19121         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
19122
19123 2002-11-04  Bruno Haible  <bruno@clisp.org>
19124
19125         * lib/localcharset.c (locale_charset): Don't return an empty string.
19126
19127 2002-11-04  Bruno Haible  <bruno@clisp.org>
19128
19129         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
19130         aliases.
19131
19132 2002-11-04  Bruno Haible  <bruno@clisp.org>
19133
19134         * lib/config.charset: Update for newest glibc. Add canonical names
19135         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
19136
19137 2002-11-04  Bruno Haible  <bruno@clisp.org>
19138
19139         * lib/config.charset: Add support for NetBSD.
19140
19141 2002-11-04  Bruno Haible  <bruno@clisp.org>
19142
19143         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
19144
19145 2002-11-01  Bruno Haible  <bruno@clisp.org>
19146
19147         * configure.in: Add AC_CONFIG_AUX_DIR call.
19148         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
19149         test/Makefile.
19150         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
19151
19152 2002-09-28  Karl Berry  <karl@gnu.org>
19153
19154         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
19155         installed automake until the next release, since changes have been
19156         made.
19157
19158 2002-09-25  Karl Berry  <karl@gnu.org>
19159
19160         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
19161         * lib/getopt*: copy from libc/posix.
19162         * lib/gettext.h: copy from gettext.
19163         * lib/.cppi-disable: add strdup.c, gettext.h.
19164
19165 2002-09-25  Karl Berry  <karl@gnu.org>
19166
19167         * config/srclist.txt: enable gettext.h check.
19168         * config/config.{guess,sub}: update from prep.
19169         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
19170                 from automake 1.6.3.
19171         See srclist*.
19172
19173 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
19174
19175         * regex.c (PATFETCH): Remove the translating fetch.
19176         (PATFETCH_RAW): Rename to PATFETCH.
19177         (set_image_of_range): New fun.
19178         (SET_RANGE_TABLE_WORK_AREA): Use it.
19179         (regex_compile): Don't translate the pattern chars so eagerly.
19180         Only do it when inserting an `exactn' bytecode or when handling
19181         a char-range.
19182         (mutually_exclusive_p): Avoid empty statement.
19183
19184 2002-07-06  Jim Meyering  <meyering@lucent.com>
19185
19186         * m4/README: Don't mention Makefile.am.in.
19187         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
19188
19189 2002-07-01  Jim Meyering  <meyering@lucent.com>
19190
19191         * lib/c-stack.c: Include sys/time.h.
19192         From Volker Borchert.
19193
19194 2002-06-26  Paul Eggert  <eggert@twinsun.com>
19195
19196         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
19197
19198 2002-06-26  Paul Eggert  <eggert@twinsun.com>
19199
19200         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
19201         New macro.  Use it uniformly instead of
19202         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
19203         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
19204         reported by Vin Shelton.
19205
19206 2002-06-22  Paul Eggert  <eggert@twinsun.com>
19207
19208         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
19209         Do not assume SA_SIGINFO behavior.
19210         Bug reported by Jim Meyering on NetBSD 1.5.2.
19211
19212 2002-06-22  Jim Meyering  <meyering@lucent.com>
19213
19214         * m4/c-stack.m4: New file, from diffutils-2.8.2.
19215         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
19216
19217         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
19218         now that configure.ac uses AC_GNU_SOURCE.
19219         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
19220         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
19221
19222         Update to latest tools.  Suggestions from Paul Eggert.
19223         * m4/stdbool.m4: New file, from diffutils-2.8.2.
19224         * m4/gnu-source.m4: Update from diffutils-2.8.2.
19225         * m4/fnmatch.m4: Likewise.
19226         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
19227         to AC_HEADER_STDBOOL
19228
19229 2002-06-22  Jim Meyering  <meyering@lucent.com>
19230
19231         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
19232         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
19233
19234 2002-06-22  Jim Meyering  <meyering@lucent.com>
19235
19236         * lib/c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
19237
19238         * lib/exitfail.c, exitfail.h: Likewise.
19239         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
19240
19241         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
19242         of fnmatch.h.
19243         (EXTRA_DIST): Add fnmatch_loop.c.
19244         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
19245
19246         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
19247         * lib/fnmatch.c: Update from diffutils-2.8.2.
19248         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
19249         * lib/fnmatch.h: Remove file.
19250
19251 2002-06-21  Jim Meyering  <meyering@lucent.com>
19252
19253         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
19254         * m4/mbrtowc.m4: Likewise.
19255
19256         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
19257         * m4/mbswidth.m4: Reflect name change:
19258         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
19259         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
19260
19261         * m4/lib-link.m4: Update from gettext-0.11.2.
19262         * m4/gettext.m4: Likewise.
19263
19264         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
19265         From Alfred M. Szmidt.
19266
19267 2002-06-18  Paul Eggert  <eggert@twinsun.com>
19268
19269         * lib/file-type.h: Report an error if neither S_ISREG nor
19270         S_IFREG is defined, instead of using a test specific to glibc
19271         2.2.  This should be safe, since POSIX requires S_ISREG and
19272         Unix Version 7 had S_IFREG.  We don't need to check for
19273         <sys/types.h> since we don't use any symbols that it defines.
19274
19275 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
19276
19277         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
19278         $@-t, so that each temporary file name is unique and valid in the first
19279         8 characters, for operation under DOS.
19280
19281 2002-06-15  Paul Eggert  <eggert@twinsun.com>
19282
19283         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
19284
19285 2002-06-15  Jim Meyering  <meyering@lucent.com>
19286
19287         Work even with DJGPP 2.03, which lacks support for symlinks.
19288         From Richard Dawe.
19289         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
19290         is defined.
19291         * lib/lchown.c (S_ISLNK): Likewise.
19292
19293 2002-06-15  Jim Meyering  <meyering@lucent.com>
19294
19295         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
19296         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
19297         have been included before this file.
19298
19299 2002-06-14  Jim Meyering  <meyering@lucent.com>
19300
19301         * lib/file-type.h: Use the version from diffutils-2.8.2.
19302         * lib/file-type.c: Likewise.
19303
19304 2002-06-07  Jim Meyering  <meyering@lucent.com>
19305
19306         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
19307         They're needed at least for NetBSD 1.5.2.
19308         ($statxfs_includes): Include those same headers.
19309         ($statxfs_includes): Include sys/vfs.h if available.
19310         ($statxfs_includes): Likewise for sys/statvfs.h.
19311         Check for the following members in both structs statfs and statvfs:
19312         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
19313
19314 2002-06-01  Jim Meyering  <meyering@lucent.com>
19315
19316         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
19317         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
19318
19319 2002-05-28  Jim Meyering  <meyering@lucent.com>
19320
19321         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
19322         Reported by Volker Borchert.
19323
19324 2002-05-27  Jim Meyering  <meyering@lucent.com>
19325
19326         Fix a problem seen only on nonconforming systems whereby ls.c's
19327         use of localtime, and then of gettimeofday would cause trouble:
19328         the localtime call used to initialize rpl_gettimeofday's save
19329         mechanism would clobber ls's current local time information so
19330         that in any long listing the first file would always be listed
19331         with date 1970-01-01.  Analysis by Volker Borchert.
19332
19333         * lib/gettimeofday.c (localtime): Undefine.
19334         (rpl_localtime): New function.
19335
19336 2002-05-27  Jim Meyering  <meyering@lucent.com>
19337
19338         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
19339         localtime.
19340
19341         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
19342         use the replacement function; it wouldn't resolve at link time.
19343         Reported by Volker Borchert.
19344
19345 2002-05-22  Jim Meyering  <meyering@lucent.com>
19346
19347         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
19348         file-type.h.
19349         * lib/file-type.h: New file.
19350         * lib/file-type.c (file_type): New file/function.  Extracted from
19351         diffutils.
19352
19353 2002-04-30  Jim Meyering  <meyering@lucent.com>
19354
19355         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
19356
19357 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19358
19359         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
19360
19361 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19362
19363         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
19364         Do not check for alloca.h (no longer used) or stdbool.h (was never
19365         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
19366
19367 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19368
19369         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
19370
19371 2002-04-29  Jim Meyering  <meyering@lucent.com>
19372
19373         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
19374         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
19375         Use AC_FUNC_STRNLEN here instead.
19376
19377         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
19378         With autoconf-2.53a, it's part of AC_PROG_CC.
19379
19380 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19381
19382         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
19383         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
19384
19385 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19386
19387         * lib/sig2str.h, sig2str.c: New files.
19388         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
19389
19390 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19391
19392         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
19393         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
19394         of 127, since 64 is the largest conceivable number for ancient
19395         nonstandard hosts.
19396         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
19397
19398 2002-04-28  Jim Meyering  <meyering@lucent.com>
19399
19400         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
19401
19402 2002-04-24  Jim Meyering  <meyering@lucent.com>
19403
19404         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
19405         (jm_PREREQ): Use it.
19406
19407         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
19408         mach/mach.h fcntl.h.
19409         Check for this function: setlocale.
19410
19411 2002-04-24  Jim Meyering  <meyering@lucent.com>
19412
19413         * lib/gettext.h: New file, from Gettext.
19414         * lib/Makefile.am (INCLUDES): Remove -I../intl.
19415         (libfetish_a_SOURCES): Add gettext.h.
19416
19417 2002-04-16  Jim Meyering  <meyering@lucent.com>
19418
19419         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
19420         ut_pid, ut_id, ut_exit.
19421
19422 2002-04-16  Jim Meyering  <meyering@lucent.com>
19423
19424         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
19425         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
19426         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
19427
19428 2002-04-12  Jim Meyering  <meyering@lucent.com>
19429
19430         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
19431         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
19432         existence of the getmntinfo function.  Needed for Darwin 5.3.
19433
19434         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
19435         This is necessary at least on Darwin 5.3.
19436
19437         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
19438         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
19439         strnlen.o in the library, and that makes some versions of ranlib
19440         object.
19441
19442 2002-04-12  Jim Meyering  <meyering@lucent.com>
19443
19444         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
19445
19446 2002-04-09  Jim Meyering  <meyering@lucent.com>
19447
19448         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
19449         to be more precise.  Rather than saying we're checking whether the
19450         function `works', say what we're testing.
19451         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
19452         Reported by Bruno Haible.
19453
19454 2002-03-10  Jim Meyering  <meyering@lucent.com>
19455
19456         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
19457         Suggestion from Santiago Vila.
19458
19459 2002-03-08  Jim Meyering  <meyering@lucent.com>
19460
19461         * lib/rename.c: Mention that this wrapper is needed also on
19462         mips-dec-ultrix4.4 systems.
19463
19464 2002-03-02  Jim Meyering  <meyering@lucent.com>
19465
19466         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
19467         not HAVE_CLOCK_SETTIME.
19468
19469 2002-02-27  Paul Eggert  <eggert@twinsun.com>
19470
19471         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
19472         Check for clock_settime.
19473
19474 2002-02-27  Paul Eggert  <eggert@twinsun.com>
19475
19476         * lib/nanosleep.h: Rename to....
19477         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
19478
19479         * lib/gettime.c: New file.
19480         * lib/settime.c: New file.
19481         * lib/stime.c: Remove.
19482
19483         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
19484         timespec.h.  Remove nanosleep.h.
19485
19486 2002-02-25  Paul Eggert  <eggert@twinsun.com>
19487
19488         * m4/acl.m4: New file.
19489         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
19490         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
19491
19492 2002-02-25  Paul Eggert  <eggert@twinsun.com>
19493
19494         * lib/acl.c, acl.h: New files.
19495         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
19496
19497 2002-02-24  Jim Meyering  <meyering@lucent.com>
19498
19499         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
19500         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
19501         cause trouble.  Reported by Nelson Beebe.
19502
19503 2002-02-23  Paul Eggert  <eggert@twinsun.com>
19504
19505         * lib/path-concat.c (xpath_concat): Reorder code to pacify
19506         compilers that don't know that xalloc_die never returns.
19507
19508 2002-02-20  Jim Meyering  <meyering@lucent.com>
19509
19510         * lib/getdate.c: Regenerate using bison-1.33.
19511
19512 2002-02-17  Jim Meyering  <meyering@lucent.com>
19513
19514         * config/config.guess (main): Don't use `head -1'; it's no longer
19515         portable. Use `sed 1q' instead.
19516
19517 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
19518
19519         * m4/codeset.m4: Upgrade to gettext-0.11.
19520         * m4/gettext.m4: Upgrade to gettext-0.11.
19521         * m4/glibc21.m4: Upgrade to gettext-0.11.
19522         * m4/iconv.m4: Upgrade to gettext-0.11.
19523         * m4/isc-posix.m4: Upgrade to gettext-0.11.
19524         * m4/lcmessage.m4: Upgrade to gettext-0.11.
19525         * m4/lib-ld.m4: New file, from gettext-0.11.
19526         * m4/lib-link.m4: New file, from gettext-0.11.
19527         * m4/lib-prefix.m4: New file, from gettext-0.11.
19528         * m4/progtest.m4: Upgrade to gettext-0.11.
19529
19530 2002-02-15  Paul Eggert  <eggert@twinsun.com>
19531
19532         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
19533         (jm_PREREQ): Use it.
19534
19535 2002-02-15  Paul Eggert  <eggert@twinsun.com>
19536
19537         * lib/posixver.c, posixver.h: New files.
19538         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
19539
19540 2002-02-02  Paul Eggert  <eggert@twinsun.com>
19541             Bruno Haible  <bruno@clisp.org>
19542
19543         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
19544         (fwrite_success_callback): New declaration.
19545         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
19546         print_unicode_char. Call failure callback instead of error.
19547         (fwrite_success_callback): New function.
19548         (exit_failure_callback): New function.
19549         (fallback_failure_callback): New function.
19550         (print_unicode_char): Call unicode_to_mb.
19551
19552 2002-01-26  Jim Meyering  <meyering@lucent.com>
19553
19554         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
19555         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
19556
19557 2002-01-26  Jim Meyering  <meyering@lucent.com>
19558
19559         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
19560
19561 2002-01-22  Paul Eggert  <eggert@twinsun.com>
19562
19563         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
19564
19565 2002-01-22  Jim Meyering  <meyering@lucent.com>
19566
19567         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
19568         Otherwise, some versions of automake would omit the rule that makes
19569         Makefile from Makefile.in.
19570
19571 2002-01-21  Paul Eggert  <eggert@twinsun.com>
19572
19573         * lib/xmemcoll.h, xmemcoll.c: New files.
19574         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
19575         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
19576         (memcoll): Set errno to zero if there is no error.
19577
19578         * lib/quotearg.c (quotearg_buffer_restyled):
19579         Fix bug with quoting buffers containing NUL when backslashing escapes.
19580         This bug was exposed by the other changes in this patch.
19581         (quotearg_n_options): New arg ARGSIZE.
19582         All callers changed.
19583         (quoting_options_from_style): New function.
19584         (quotearg_n_style): Use it.
19585         (quotearg_n_style_mem): New function.
19586
19587         * lib/quotearg.h (quotearg_n_style_mem): New function.
19588
19589 2002-01-19  Jim Meyering  <meyering@lucent.com>
19590
19591         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
19592         Remove useless quotes: DF_PROG="df".
19593         * m4/strnlen.m4: New file.
19594
19595 2002-01-16  Paul Eggert  <eggert@twinsun.com>
19596
19597         * lib/backupfile.c (ISDIGIT): Comment fix.
19598         * lib/getdate.y (ISDIGIT): Likewise.
19599         * lib/posixtm.c (ISDIGIT, year): Likewise.
19600         * lib/strverscmp.c (ISDIGIT): Likewise.
19601         * lib/userspec.c (ISDIGIT): Likewise.
19602
19603 2002-01-16  Jim Meyering  <meyering@lucent.com>
19604
19605         * lib/getdate.y: Add three semicolons, each just before a closing
19606         brace. Bison (as of version 1.31) no longer papers over that mistake.
19607
19608 2002-01-05  Jim Meyering  <meyering@lucent.com>
19609
19610         * lib/version-etc.c (version_etc_copyright): Update copyright year.
19611
19612 2001-12-19  Paul Eggert  <eggert@twinsun.com>
19613
19614         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
19615         not silently exit merely because the output buffer happens to
19616         have nothing pending.
19617
19618 2001-12-18  Paul Eggert  <eggert@twinsun.com>
19619
19620         See the big note in ../ChangeLog.
19621         * lib/human.c (suffixes): Prefer K to k for 1024.
19622         (generate_suffix_backwards): New function.
19623         (human_readable_inexact): Use it.
19624         * lib/xstrtol.c (__xstrtol): If there is no number but there
19625         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
19626         Accept 'K' as well as 'k'.
19627
19628 2001-12-15  Jim Meyering  <meyering@lucent.com>
19629
19630         * lib/regex.h (__restrict_arr): Update from libc.
19631
19632         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
19633         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
19634         (STREQ): Define.
19635
19636 2001-12-14  Jim Meyering  <meyering@lucent.com>
19637
19638         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
19639         Suggestion from Bruno Haible.
19640
19641 2001-12-10  Jim Meyering  <meyering@lucent.com>
19642
19643         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
19644         xrealloc, Instead, include "xalloc.h".
19645         (initbuffer): Don't cast xmalloc return value to char*.
19646         (readline): Reword comment.
19647         Don't cast xrealloc return value to char*
19648         Return NULL, not 0.
19649
19650 2001-12-09  Jim Meyering  <meyering@lucent.com>
19651
19652         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
19653         about `signed and unsigned type in conditional expression'.
19654         * lib/posixtm.c (posix_time_parse): Likewise.
19655
19656         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
19657
19658         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
19659         to avoid a pedantic warning.
19660
19661         * lib/getstr.c: Don't include assert.h.
19662         (getstr): Remove warning-evoking assertions.
19663         Return -1 if offset parameter is out of bounds.
19664         Change the type of a local from int to size_t.
19665
19666         * lib/strftime.c (my_strftime_localtime_r): Include this function
19667         definition in the `#if ! HAVE_TM_GMTOFF' block.
19668
19669         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
19670         Include xalloc.h instead.
19671
19672 2001-12-02  Jim Meyering  <meyering@lucent.com>
19673
19674         * lib/tempname.c: Don't declare getenv, thus reverting the change of
19675         2001-11-18.  It's no longer necessary, now that stdlib.h is always
19676         included.
19677
19678         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
19679         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
19680
19681 2001-11-30  Akim Demaille  <akim@epita.fr>
19682
19683         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
19684         before being defined.
19685
19686 2001-11-27  Paul Eggert  <eggert@twinsun.com>
19687
19688         * lib/quotearg.h (quotearg_n, quotearg_n_style):
19689         First arg is int, not unsigned.
19690         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
19691         (SIZE_MAX, UINT_MAX): New macros.
19692         (quotearg_n_options): Abort if N is negative.
19693         Avoid overflow check on hosts where size_t is 64 bits and int
19694         is 32 bits, as overflow is impossible there.
19695         Fix off-by-one typo that caused unnecessary reallocation.
19696
19697 2001-11-27  Jim Meyering  <meyering@lucent.com>
19698
19699         * lib/tempname.c: Merge with version from libc.
19700         * lib/regex.c: Likewise.
19701
19702         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
19703         systems for which STDC_HEADERS is 0, it was not included, resulting in
19704         a warning about an integer-to-pointer conversion problem with getenv.
19705         Reported by Volker Borchert.
19706
19707 2001-11-26  Jim Meyering  <meyering@lucent.com>
19708
19709         * lib/gtod.h: Remove file.
19710         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
19711         * lib/gettimeofday.c: Don't include gtod.h.
19712         (GTOD_init): Remove function.
19713         (rpl_gettimeofday): Do its job here instead, rather than aborting.
19714         Suggestion from Volker Borchert.
19715
19716 2001-11-23  Jim Meyering  <meyering@lucent.com>
19717
19718         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
19719         it.
19720         * lib/hash.c (struct hash_table): Define it here instead.
19721
19722 2001-11-22  Jim Meyering  <meyering@lucent.com>
19723
19724         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
19725
19726 2001-11-20  Jim Meyering  <meyering@lucent.com>
19727
19728         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
19729         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
19730
19731 2001-11-19  Jim Meyering  <meyering@lucent.com>
19732
19733         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
19734         directory.  Use "conftestXXXXXX" as the template.
19735         Suggestion from Paul Eggert.
19736
19737         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
19738         immediately, so the test doesn't mistakenly hit the max-open-files
19739         limit.
19740
19741 2001-11-18  Paul Eggert  <eggert@twinsun.com>
19742
19743         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
19744         (TEMPORARIES): New macro.
19745         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
19746         removes an artificial limitation (e.g. HP-UX 10.20, where
19747         TMP_MAX is 17576).
19748
19749 2001-11-18  Jim Meyering  <meyering@lucent.com>
19750
19751         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
19752
19753 2001-11-18  Jim Meyering  <meyering@lucent.com>
19754
19755         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
19756         on SunOS 4.
19757
19758         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
19759         files will be created before anything else.
19760
19761 2001-11-17 Paul Eggert  <eggert@twinsun.com>
19762
19763         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
19764         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
19765
19766 2001-11-17  Jim Meyering  <meyering@lucent.com>
19767
19768         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
19769         Prompted by a report from Bob Proulx.
19770
19771         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
19772         Instead, require UTILS_FUNC_MKSTEMP.
19773
19774 2001-11-17  Jim Meyering  <meyering@lucent.com>
19775
19776         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
19777         Now, that's done as part of AC_FUNC_STRTOD.
19778
19779 2001-11-17  Jim Meyering  <meyering@lucent.com>
19780
19781         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
19782         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
19783         rather than group writable.  Patch by Juan F. Codagnone.
19784
19785         * lib/readtokens.c: Remove explicit declarations of xmalloc and
19786         xrealloc, Instead, include "xalloc.h".
19787
19788         * lib/mountlist.c: Include unlocked-io.h after all system headers.
19789         Remove explicit declarations of xmalloc, xrealloc,
19790         and xstrdup.  Instead, include "xalloc.h".
19791
19792         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
19793         unlocked-io.h.
19794         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
19795         Likewise.
19796         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
19797
19798         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
19799         Reported by Padraig Brady.
19800
19801         * lib/mkstemp.c: #undef mkstemp.
19802         Include config.h.
19803         (rpl_mkstemp): Rename from mkstemp.
19804         Protoize.
19805
19806 2001-11-16  Jim Meyering  <meyering@lucent.com>
19807
19808         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
19809         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
19810         determine the amount of total physical memory, use pstat_getstatic.
19811         HPUX-11 doesn't define _SC_PHYS_PAGES.
19812         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
19813         If sysconf couldn't be used to determine the amount of available
19814         physical memory, use both pstat_getstatic and pstat_getdynamic.
19815         Based on a patch from Bob Proulx.
19816
19817 2001-11-10  Jim Meyering  <meyering@lucent.com>
19818
19819         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
19820         (jm_PREREQ): Use it.
19821
19822 2001-11-09  Jim Meyering  <meyering@lucent.com>
19823
19824         * m4/jm-macros.m4: Require autoconf-2.52f.
19825         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
19826         Use these AC_-prefixed names, not the AM_-prefixed ones.
19827
19828         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
19829
19830 2001-11-05  Jim Meyering  <meyering@lucent.com>
19831
19832         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
19833
19834 2001-11-04  Jim Meyering  <meyering@lucent.com>
19835
19836         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
19837         $DEFS.
19838
19839 2001-11-03  Jim Meyering  <meyering@lucent.com>
19840
19841         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
19842         of AC_DEFUN.
19843
19844         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
19845         know the name of the variable in the macro definition.
19846
19847 2001-11-03  Jim Meyering  <meyering@lucent.com>
19848
19849         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
19850         in argmatch_to_argument call.
19851
19852         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
19853         argument.
19854
19855         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
19856         e.g., a fault due to an attempt to free a NULL pointer.
19857
19858 2001-11-01  Jim Meyering  <meyering@lucent.com>
19859
19860         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
19861         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
19862
19863 2001-11-01  Jim Meyering  <meyering@lucent.com>
19864
19865         * lib/dirfd.c, dirfd.h: New files.
19866         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
19867
19868         * lib/hash.c (hash_print) [TESTING]: Clean up.
19869
19870 2001-10-22  Paul Eggert  <eggert@twinsun.com>
19871
19872         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
19873         to avoid a warning if -Wall.
19874
19875 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
19876
19877         * README: New file
19878         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
19879         (per RMS's instructions, this is now the canonical source)
19880         * lgpl/, gpl/: New directories.
19881
19882 2001-10-21  Paul Eggert  <eggert@twinsun.com>
19883
19884         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
19885
19886 2001-10-21  Jim Meyering  <meyering@lucent.com>
19887
19888         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
19889         this code would end up calling gettext even in packages built
19890         with --disable-nls.
19891         * lib/getopt.c (_): Likewise.
19892         * lib/regex.c (_): Likewise.
19893
19894 2001-10-20  Paul Eggert  <eggert@twinsun.com>
19895
19896         * m4/error.m4 (jm_PREREQ_ERROR):
19897         Do not invoke AC_CHECK_FUNCS with strerror_r, as
19898         AC_FUNC_STRERROR_R does that.
19899         Check for strerror declaration.
19900
19901         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
19902         are supposed to have them these days.
19903         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
19904         Merge changes from latest Autoconf CVS.
19905         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
19906         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
19907         POSIX decided to standardize on the int flavor of strerror_r.
19908
19909 2001-10-20  Paul Eggert  <eggert@twinsun.com>
19910
19911         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
19912         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
19913         Use strerror_r that is only a macro, even if it is not a function.
19914         (strerror): Check for HAVE_DECL_STRERROR before declaring.
19915         (private_strerror): Use prototypes, not old-style function definition.
19916         (print_errno_message): New function.
19917         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
19918         char*-flavored one.
19919         (error_tail, error, error_at_line): Use it.
19920
19921 2001-10-11  Jim Meyering  <meyering@lucent.com>
19922
19923         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
19924         and quote_n (1, ... to avoid clobbering a buffer.
19925
19926 2001-10-05  Jim Meyering  <meyering@lucent.com>
19927
19928         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
19929         hash-pjw.h.
19930         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
19931         * lib/hash-pjw.h: New file.
19932
19933 2001-09-30  Jim Meyering  <meyering@lucent.com>
19934
19935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
19936         `struct fsstat' has the `f_fstypename' member.
19937         Use that to define FS_TYPE, which is now used to make
19938         the getfsstat link test tighter.
19939
19940 2001-09-30  Jim Meyering  <meyering@lucent.com>
19941
19942         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
19943         Include <sys/ucred.h>, for Apple Darwin.
19944         Include sys/mount.h and sys/fs_types.h only if available.
19945         (FS_TYPE): Define.
19946         (read_filesystem_list): Use FS_TYPE.
19947
19948 2001-09-29  Paul Eggert  <eggert@twinsun.com>
19949
19950         * lib/exclude.c (excluded_filename): 0 -> false, since it's
19951         a boolean context.
19952
19953 2001-09-29  Jim Meyering  <meyering@lucent.com>
19954
19955         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
19956         [one-argument getmntent function]): Include stdio.h before mntent.h.
19957         SunOS 4.1.x needs it for the declaration of `FILE'.
19958         Patch by Volker Borchert.
19959
19960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
19961         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
19962         sys/fs_types.h, and make the link-test for getfsstat guard #include
19963         directives with appropriate #if HAVE_*_H tests so that we can
19964         detect getfsstat on Apple Darwin1.3.7 systems.
19965         Reported by Nelson Beebe.
19966         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
19967
19968 2001-09-28  Paul Eggert  <eggert@twinsun.com>
19969
19970         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
19971         #defines strtoimax.  Also treat the other strto* functions
19972         like strtoimax.
19973
19974         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
19975         Check for strtoul and strtoumax,
19976         as those declarations are made even in the signed case.
19977         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
19978         Likewise, for strtol and strtoimax.
19979
19980 2001-09-28  Paul Eggert  <eggert@twinsun.com>
19981
19982         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
19983         #defines strtoimax.  Also treat the other strto* functions
19984         like strtoimax.
19985
19986         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
19987         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
19988         (strtoimax, strtoumax): Do not declare if already defined as a macro.
19989
19990 2001-09-26  Jim Meyering  <meyering@lucent.com>
19991
19992         Most macros in unlocked-io.h had the wrong number of arguments.
19993         * lib/gen-uio: New script.
19994         (USE_UNLOCKED_IO): Define to 1 if not already defined.
19995         * lib/unlocked-io.hin: Remove file.
19996         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
19997         rather than trying to embed it here.
19998         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
19999         Reported by Padraig Brady.
20000
20001 2001-09-25  Volker Borchert  <bt@teknon.de>
20002
20003         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
20004         `result'.
20005
20006 2001-09-24  Jim Meyering  <meyering@lucent.com>
20007
20008         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
20009
20010 2001-09-23  Jim Meyering  <meyering@lucent.com>
20011
20012         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
20013         instead of the mere test for existence of mntent.h.  The latter
20014         would get a false-positive on AIX 3.4 systems.
20015         In the outer getmntent if-block, don't die if neither of the getmntent
20016         tests succeeds.  Instead, just fall through and continue with the
20017         remaining tests.
20018
20019 2001-09-23  Jim Meyering  <meyering@lucent.com>
20020
20021         * lib/mountlist.c: Remove useless parentheses in #if directives.
20022         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
20023         the deprecated MOUNTED symbol is no longer defined in mntent.h.
20024
20025 2001-09-22  Jim Meyering  <meyering@lucent.com>
20026
20027         * m4/gettext.m4: New file.  From gettext.
20028         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
20029         * m4/progtest.m4: Likewise
20030         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
20031         * m4/glibc21.m4: Likewise.
20032
20033         * m4/libintl.m4: Remove.  No longer used.
20034
20035 2001-09-22  Jim Meyering  <meyering@lucent.com>
20036
20037         * lib/localcharset.c: Update from latest gettext.
20038         * lib/config.charset: Likewise.
20039
20040 2001-09-20  Jim Meyering  <meyering@lucent.com>
20041
20042         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
20043         strtoimax.
20044         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
20045         strtoumax.
20046
20047 2001-09-20  Jim Meyering  <meyering@lucent.com>
20048
20049         * lib/xstrtol.c (strtoimax): Guard declaration with
20050         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
20051         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
20052         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
20053         (strtoumax): Likewise, for completeness (it wasn't necessary).
20054
20055 2001-09-17  Paul Eggert  <eggert@twinsun.com>
20056
20057         * lib/strtoimax.c (HAVE_LONG_LONG):
20058         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
20059         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
20060         to work around bug in IBM C compiler.
20061
20062 2001-09-17  Jim Meyering  <meyering@lucent.com>
20063
20064         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
20065         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
20066         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
20067         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
20068         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
20069         whenever the right hand side need not be expanded by the shell.
20070
20071 2001-09-16  Paul Eggert  <eggert@twinsun.com>
20072
20073         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
20074         library.  It's not correct, as some older glibcs are buggy.
20075         fnmatch wasn't fixed until glibc 2.2.
20076
20077         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
20078         special shell magic here.
20079
20080 2001-09-16  Jim Meyering  <meyering@lucent.com>
20081
20082         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
20083         * m4/jm-macros.m4: Require it.
20084
20085 2001-09-16  Jim Meyering  <meyering@lucent.com>
20086
20087         * lib/mkdir.c: New file.
20088
20089 2001-09-15  Jim Meyering  <meyering@lucent.com>
20090
20091         * m4/jm-macros.m4: Check for help2man.
20092
20093 2001-09-11  Jim Meyering  <meyering@lucent.com>
20094
20095         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
20096         The body, by Paul Eggert, was moved here from configure.in.
20097         * m4/jm-macros.m4: Require UTILS_HOST_OS.
20098
20099 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20100
20101         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
20102         (jm_PREREQ): Use it.
20103
20104 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20105
20106         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
20107         Use ssize_t, not int, to store result of readlink.
20108         Check for ssize_t overflow as well as size_t overflow,
20109         as POSIX says the result of readlink is implementation-defined
20110         when ssize_t overflows.
20111         Remove unnecessary cast to char*.
20112         Use free+malloc instead of realloc, as the storage doesn't need
20113         to be preserved and it's clearer and can be more efficient that way.
20114         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
20115         * lib/xreadlink.h (xreadlink): Update prototype.
20116
20117 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20118
20119         * lib/xgetcwd.c: Revert some of the previous change; intead,
20120         fix the HAVE_GETCWD_NULL code to behave more like the
20121         !HAVE_GETCWD_NULL code used to.
20122
20123         Include "xalloc.h".
20124         (xgetcwd): Do not return NULL when memory is exhausted; instead,
20125         invoke xalloc_die.
20126
20127 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20128
20129         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
20130         sys/param.h, as pathmax.h includes them.
20131
20132 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20133
20134         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
20135         (jm_PREREQ_XGETCWD): New macro.
20136
20137         * m4/getcwd.m4: New file.
20138
20139 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20140
20141         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
20142         like the HAVE_GETCWD_NULL code.
20143         Include pathmax.h if not HAVE_GETCWD.
20144         Do not include xalloc.h.
20145         (INITIAL_BUFFER_SIZE): New symbol.
20146         Do not use xmalloc / xrealloc, since the caller is responsible for
20147         handling errors.  Preserve errno around `free' during failure.
20148         Do not overrun buffer when using getwd.
20149
20150 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20151
20152         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
20153         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
20154         getcwd (NULL, 0).
20155
20156 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20157
20158         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
20159         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
20160         spotted by Jim Meyering.
20161
20162 2001-09-03  Jim Meyering  <meyering@lucent.com>
20163
20164         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
20165         failure.
20166
20167 2001-09-02  Jim Meyering  <meyering@lucent.com>
20168
20169         * lib/error.c: Update from GNU libc.
20170
20171 2001-09-01  Jim Meyering  <meyering@lucent.com>
20172
20173         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
20174         Used by df.
20175
20176 2001-09-01  Jim Meyering  <meyering@lucent.com>
20177
20178         * lib/xreadlink.c: New file.
20179         * lib/xreadlink.h: New file.
20180         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
20181         xreadlink.h.
20182
20183         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
20184         doesn't conflict with sparc Solaris 7's definition in
20185         /usr/include/sys/int_types.h.
20186
20187         * lib/exclude.c: Use `""', not `<>' to #include non-system header
20188         files.
20189         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
20190         and strncasecmp as r-values.  Unixware didn't have declarations.
20191
20192 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20193
20194         * lib/xstrtol.h: Add copyright notice.
20195         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
20196         LONGINT_INVALID_SUFFIX_CHAR.
20197
20198 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20199
20200         * lib/xstrtol.c (strtoimax): New decl.
20201
20202 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20203
20204         * lib/xgetcwd.c: Don't include pathmax.h.
20205         Include stdlib.h and unistd.h if available.
20206         Include xalloc.h.
20207         (xmalloc, xstrdup, free): Remove decls.
20208         (xgetcwd): Don't assume sizes fit in unsigned.
20209         Check for overflow when computing sizes.
20210         Simplify reallocation code.
20211
20212 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20213
20214         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
20215         a directory's st_size can have an arbitrary value, so the old
20216         usage could waste an arbitrary amount of memory.  All uses
20217         changed.
20218         * lib/savedir.h: Update prototype.
20219
20220 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20221
20222         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
20223
20224         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
20225         old strtoimax.c.
20226
20227         Also, make the following further changes to make this file's
20228         configuration more similar to that of strtol.c:
20229         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
20230         (strtoumax, uintmax_t, strtoull, strtol): Remove.
20231         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
20232         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
20233         changed to signed values.
20234
20235         And make the following changes as well:
20236         Fix copyright notice, as 1999 was missing.
20237         (verify): New macro.
20238         (strtoimax): Check sizes at compile-time, not run-time.
20239         Prefer strtol to strtoll if both work.
20240         (main): Remove; it was not that useful and was a pain to maintain.
20241
20242         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
20243
20244 2001-08-31  Jim Meyering  <meyering@lucent.com>
20245
20246         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
20247         Use an initial, malloc'd, buffer of length 128 rather than
20248         a statically allocated one of length 1024.
20249
20250 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20251
20252         Simplify code, partly by assuming autoconf 2.52 semantics.
20253
20254         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
20255
20256         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
20257         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
20258         All uses removed.
20259         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
20260         Move AC_REQUIRE to next-to-top level, to avoid confusion.
20261         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
20262         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
20263         jm_AC_HEADER_INTTYPES_H.
20264         * m4/jm-macros.m4 (jm_MACROS): Likewise.
20265
20266         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
20267
20268         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
20269         Quote first arg of AC_DEFUN.
20270         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
20271         since they are needed to parse the include file even if we need
20272         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
20273         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
20274         but with opposite signedness.
20275
20276 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20277
20278         Merge 'exclude' changes from tar 1.13.22.
20279         This fixes one or two unlikely storage allocation overflow bugs,
20280         but doesn't change user-visible behavior otherwise.
20281
20282 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20283
20284         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
20285         (jm_PREREQ_EXCLUDE): New macro.
20286
20287 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20288
20289         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
20290         tm to be declared.
20291
20292 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20293
20294         * lib/hash.c: Remove '2001' from copyright notice.
20295
20296 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20297
20298         * lib/full-write.h: New file.
20299         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
20300         * lib/full-write.c: Correct credits, as cccp.c no longer
20301         exists and anyway it was so heavily changed from the old cccp
20302         code as to be unrecognizable.  Include full-write.h.
20303         (full_write) Return size_t, with short writes meaning failure.
20304         All callers changed.  This fixes a bug with large buffers
20305         on 64-bit hosts.
20306         * lib/utime.c: Include full-write.h.
20307
20308 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20309
20310         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
20311         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
20312         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
20313         Include if available.
20314         (<xalloc.h>): Include
20315         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
20316         (verify): New macro.  Use it to verify that EXCLUDE macros do not
20317         collide with FNM macros.
20318         (struct patopts): New struct.
20319         (struct exclude): Use it, as exclude patterns now come with options.
20320         (new_exclude): Support above changes.
20321         (new_exclude, add_exclude_file):
20322         Initial size must now be a power of two to simplify overflow checking.
20323         (free_exclude, fnmatch_no_wildcards): New function.
20324         (excluded_filename): No longer requires options arg, as the options
20325         are determined by add_exclude.  Now returns bool, not int.
20326         (excluded_filename, add_exclude):
20327         Add support for the fancy new exclusion options.
20328         (add_exclude, add_exclude_file): Now takes int options arg.
20329         Check for arithmetic overflow when computing sizes.
20330         (add_exclude_file): xrealloc might modify errno, so don't
20331         realloc until after errno might be used.
20332
20333         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
20334         New macros.
20335         (free_exclude): New decl.
20336         (add_exclude, add_exclude_file): Now takes int options arg.
20337         (excluded_filename): No longer requires options arg, as the options
20338         are determined by add_exclude.  Now returns bool, not int.
20339
20340 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20341
20342         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
20343
20344 2001-08-27  Jim Meyering  <meyering@lucent.com>
20345
20346         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
20347
20348         * lib/version-etc.c (N_): Remove definition.
20349         Revert most of last change.
20350         Instead, simply don't mark the `Copyright...' string for translation.
20351         Based on advice from Paul Eggert.
20352
20353         * lib/strtoxmax.c: Tweak comment.
20354
20355 2001-08-26  Jim Meyering  <meyering@lucent.com>
20356
20357         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
20358
20359         * m4/xstrtoimax.m4: New file.
20360         * m4/xstrtoumax.m4: Add comments explaining why we
20361         AC_REPLACE_FUNCS(strtol).
20362
20363 2001-08-26  Jim Meyering  <meyering@lucent.com>
20364
20365         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
20366         of copyright with `%s' so translators don't get an untranslated
20367         message in 2002.
20368         (COPYRIGHT_YEAR): Define.
20369         (version_etc): Use fprintf rather than fputs.
20370         Suggestion from Ulrich Drepper.
20371
20372         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
20373
20374         * lib/strtoll.c: New file, from GNU libc.
20375         * lib/xstrtoimax.c: New file.
20376
20377         * lib/xstrtol.h: Add xstrtoimax.
20378         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
20379         * lib/strtoimax.c: New file.  Likewise, but first define
20380         STRTOUXMAX_SIGNED.
20381
20382         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
20383         ...
20384         * lib/strtoxmax.c: ... then renamed to this.
20385
20386 2001-08-18  Paul Eggert  <eggert@twinsun.com>
20387
20388         * m4/inttypes.m4: Add AC_PREREQ(2.13).
20389         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
20390         (jm_AC_TYPE_INTMAX_T): New macro.
20391         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
20392
20393         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
20394
20395         * m4/longlong.m4: Renamed from ulonglong.m4.
20396         * m4/inttypes.m4: Renamed from inttypes_h.m4.
20397         * m4/uintmax_t.m4: Removed.
20398
20399 2001-08-13  Paul Eggert  <eggert@twinsun.com>
20400
20401         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
20402         Port to Solaris 8, where 'sed' requires a space after the 'r'
20403         command, and where sh dislikes "$/".  Clean up the spacing a bit.
20404         Redirect output to $tmp just once.
20405
20406 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
20407
20408         * lib/addext.c (<errno.h>): Include.
20409         (errno): Declare if not defined.
20410         (addext): Work correctly when pathconf returns -1 and leaves
20411         errno alone because there is no limit.  Also, work even if
20412         pathconf returns a value greater than SIZE_MAX.
20413
20414 2001-08-12  Jim Meyering  <meyering@lucent.com>
20415
20416         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
20417         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
20418         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
20419         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
20420         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
20421         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
20422         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
20423         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
20424         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
20425         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
20426         utime.m4, utimes.m4, xstrtoumax.m4:
20427         Quote the first argument in each use of AC_DEFUN.
20428
20429 2001-08-12  Jim Meyering  <meyering@lucent.com>
20430
20431         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
20432         Simply `return getcwd (NULL, 0);'.
20433         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
20434         Use 1300 as initial value for length, not PATH_MAX.
20435
20436         * lib/pathmax.h: Clean up cpp syntax.
20437
20438 2001-08-12  Jim Meyering  <meyering@lucent.com>
20439
20440         * lib/gettimeofday.c: New file.
20441         * lib/gtod.h: New file.
20442         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
20443
20444 2001-08-05  Jim Meyering  <meyering@lucent.com>
20445
20446         * m4/jm-macros.m4: Require autoconf-2.52.
20447
20448 2001-08-04  Jim Meyering  <meyering@lucent.com>
20449
20450         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
20451         stmt, to get in sync with glibc.
20452
20453 2001-08-03  Paul Eggert  <eggert@twinsun.com>
20454
20455         The following changes are from gettext 0.10.39 as maintained by
20456         Bruno Haible.
20457
20458         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
20459         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
20460         with inverted sense.  All uses changed.
20461
20462         * lib/mbswidth.c: Don't include <limits.h>.
20463         Include <stdlib.h> and <string.h> unconditionally.
20464         (iswcntrl, mbsinit, ISCNTRL): New macros.
20465         (mbsnwidth): Use K&R style function declarations.
20466         Don't bother checking for MB_LEN_MAX == 1, since the compiler
20467         can optimize it when MB_CUR_MAX == 1.
20468         The width of control characters is zero, not 1.
20469
20470 2001-08-03  Paul Eggert  <eggert@twinsun.com>
20471
20472         The following changes are from gettext 0.10.39 as maintained by
20473         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
20474
20475         * m4/codeset.m4: Upgrade to serial AM1.
20476         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
20477         all uses changed.  Quote first arg of AC_DEFUN.
20478         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
20479
20480         * m4/iconv.m4: Upgrade to serial AM2.
20481         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
20482         Add --with-libconv-prefix.
20483         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
20484         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
20485         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
20486         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
20487         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
20488
20489         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
20490         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
20491         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
20492         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
20493         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
20494         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
20495         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20496         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
20497         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
20498
20499         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
20500         string.h any more.
20501
20502         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
20503         not the default value.
20504
20505         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
20506         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
20507         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
20508         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
20509         Also check for iswcntrl, used for wcwidth fallback.
20510         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
20511         to Autoconf 2.13.
20512
20513 2001-08-03  Jim Meyering  <meyering@lucent.com>
20514
20515         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
20516         as it was in the original.  Reported by Paul Eggert.
20517
20518 2001-07-16  Jim Meyering  <meyering@lucent.com>
20519
20520         * m4/gettimeofday.m4: New file.
20521         Prompted by a report from Bernhard Baehr.
20522
20523 2001-07-15  Jim Meyering  <meyering@lucent.com>
20524
20525         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
20526         stuff. Now it's in ../Makefile.cfg.
20527
20528 2001-07-15  Jim Meyering  <meyering@lucent.com>
20529
20530         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
20531         (BUILT_SOURCES): Add unlocked-io.h.
20532         (io_functions): Define.
20533         (unlocked-io.h): New rule.
20534         (DISTCLEANFILES): Add unlocked-io.h.
20535         (all-local): Depend on unlocked-io.h, to ensure it is created.
20536
20537         * lib/unlocked-io.hin: New file
20538
20539         * lib/regex.c: Update from glibc.
20540
20541 2001-07-05  Jim Meyering  <meyering@lucent.com>
20542
20543         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
20544         recommendation.
20545         (libfetish_a_SOURCES): Put all .h files here instead.
20546         Remove a thus-exposed (better checks in automake) duplicate and
20547         two unnecessary .h files.
20548
20549 2001-07-04  Jim Meyering  <meyering@lucent.com>
20550
20551         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
20552         that generates jm-glibc-io.m4 so that it doesn't trigger any make
20553         distcheck failure.
20554
20555 2001-07-02  Jim Meyering  <meyering@lucent.com>
20556
20557         The following changes were prompted by suggestions from Bruno Haible.
20558
20559         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
20560         is now generated.
20561         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
20562         definition of EXTRA_DIST.
20563         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
20564         ensure that the generated file is created/updated whenever the list
20565         of $(unlocked_functions) is changed.
20566         (jm-glibc-io.m4): New rule.
20567         (unlocked-io.h): New rule -- currently unused.
20568
20569 2001-06-24  Jim Meyering  <meyering@lucent.com>
20570
20571         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
20572         unmatched right bracket, rather than kludging it with an extra,
20573         falsely-matching quote in a comment.  Patch by Akim Demaille.
20574
20575 2001-06-11  Jim Meyering  <meyering@lucent.com>
20576
20577         * lib/regex.c: Update from GNU libc.
20578
20579 2001-05-27  Jim Meyering  <meyering@lucent.com>
20580
20581         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
20582         Check for ut_type in struct utmp.
20583
20584 2001-05-27  Jim Meyering  <meyering@lucent.com>
20585
20586         * lib/readutmp.h (UT_TYPE): Define.
20587
20588 2001-05-24  Jim Meyering  <meyering@lucent.com>
20589
20590         * lib/argmatch.c: Include "quote.h".
20591         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
20592         quote function.  Reported by Göran Uddeborg.
20593
20594 2001-05-22  Jim Meyering  <meyering@lucent.com>
20595
20596         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
20597         now that we use the package-supplied version unconditionally.
20598         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
20599
20600 2001-05-21  Jim Meyering  <meyering@lucent.com>
20601
20602         * m4/regex.m4: Change a couple backticks to single quotes to avoid
20603         shell syntax errors.
20604
20605 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
20606
20607         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
20608
20609 2001-05-20  Paul Eggert  <eggert@twinsun.com>
20610
20611         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
20612         Don't bother to check library strftime, since
20613         we'll be using our own my_strftime function anyway.
20614         Define my_strftime instead of strftime.
20615
20616 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
20617
20618         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
20619         which is not yet declared.
20620
20621 2001-05-15  Jim Meyering  <meyering@lucent.com>
20622
20623         * m4/regex.m4: Use proper quoting so brackets appear in the test
20624         program.
20625         Reported by, and with help from, Bruno Haible.
20626
20627 2001-05-13  Jim Meyering  <meyering@lucent.com>
20628
20629         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
20630         undefined.
20631
20632 2001-05-11  Paul Eggert  <eggert@twinsun.com>
20633
20634         dirname code cleanup.  base_name now behaves more compatibly
20635         with POSIX basename when given file names that have trailing
20636         slashes, and similarly for dir_name.  Add new primitives
20637         base_len and dir_len.  Put the directory-name-related decls
20638         into dirname.h.
20639
20640         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
20641         * lib/backupfile.c (base_name): Likewise.
20642         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
20643         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
20644         * lib/makepath.c (strip_trailing_slashes): Likewise.
20645         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
20646         ISSLASH): Likewise.
20647         * lib/rename.c (strip_trailing_slashes): Likewise.
20648         * lib/same.c (base_name): Likewise.
20649         * lib/stripslash.c (ISSLASH): Likewise.
20650
20651         * lib/addext.c: Include <dirname.h> after size_t is defined.
20652         * lib/backupfile.c: Likewise.
20653
20654         * lib/addext.c (addext): Use base_len to trim redundant
20655         trailing slashes instead of doing it ourselves.
20656         But do not trim the last slash if it is not redundant.
20657
20658         * lib/backupfile.c (find_backup_file_name,
20659         max_backup_version): Use base_len instead of rolling it ourselves.
20660         Handle the case of "" and (on DOS) "C:" correctly.
20661
20662         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
20663         needed. Include <string.h>, <dirname.h>.
20664         (base_name): Allow file names ending in slashes, other than names
20665         that are all slashes.  In this case, return the basename followed
20666         by the slashes.  This is more general, and can be used in places
20667         where the original base_name purposely had an assertion failure.
20668         (base_len): New function.
20669
20670         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
20671         Do not include <assert.h>; no longer needed.
20672         Include xalloc.h.
20673         (memrchr): Remove decl.
20674         (dir_name_r): Remove.
20675         (dir_len): Renamed from dirlen.  All callers changed.
20676         Rewrite in terms of base_name, for simplicity and consistency.
20677         (dir_name): Never return NULL.  All callers changed.
20678         Do not include <stdlib.h> in test program; no longer needed.
20679         return 0; is fine for test program.
20680
20681         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
20682         New macros.
20683         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
20684
20685         * lib/path-concat.c (path_concat): Use base_len to compute
20686         base length, not strlen; this means we cannot rely on memcpy
20687         to null-terminate.
20688
20689         * lib/same.c (STREQ): Remove.
20690         (same_name): Handle the case where the basename ends in trailing '/'.
20691
20692         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
20693         a slash was stripped.  Do not strip the last slash after a
20694         file system prefix.
20695
20696 2001-05-11  Paul Eggert  <eggert@twinsun.com>
20697
20698         * lib/Makefile.am (libfetish_a_SOURCES):
20699         Add strftime.c, since we now compile it on all hosts.
20700
20701         * lib/strftime.c (my_strftime):
20702         Define to nstrftime if emacs, but only if my_strftime is not defined.
20703         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
20704         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
20705         Add one more extra argument: a nanoseconds value.
20706         All uses changed.
20707         (ns): New macro.
20708         (my_strftime function): Add %N format.
20709         (emacs_strftimeu): Renamed from emacs_strftime,
20710         with extra ut argument.
20711
20712 2001-05-09  Paul Eggert  <eggert@twinsun.com>
20713
20714         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
20715
20716 2001-04-21  Jim Meyering  <meyering@lucent.com>
20717
20718         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
20719         doesn't interfere.
20720
20721 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
20722
20723         * m4/ftruncate.m4: Check for chsize.
20724         Link with ftruncate.o unconditionally if ftruncate is missing.
20725         This was required when cross-compiling to i586-mingw32msvc.
20726
20727 2001-04-08  Jim Meyering  <meyering@lucent.com>
20728
20729         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
20730         recomputed; that's necessary when the offset spans a DST transition.
20731         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
20732
20733 2001-04-02  Jim Meyering  <meyering@lucent.com>
20734
20735         * lib/regex.h, regex.c: Update from GNU libc.
20736
20737 2001-03-24  Jim Meyering  <meyering@lucent.com>
20738
20739         * m4/jm-macros.m4: Require autoconf-2.49d.
20740
20741 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
20742
20743         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
20744
20745 2001-03-19  Paul Eggert  <eggert@twinsun.com>
20746
20747         * lib/version-etc.c (version_etc_copyright): Update to 2001.
20748
20749 2001-03-17  Jim Meyering  <meyering@lucent.com>
20750
20751         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
20752         now that the version in autoconf is equivalent.
20753         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
20754
20755         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
20756         Suggestion from Akim Demaille.
20757
20758         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
20759         (jm_PREREQ_TEMPNAME): New function.
20760
20761 2001-03-16  Paul Eggert  <eggert@twinsun.com>
20762
20763         * lib/tempname.c (uint64_t): Define to uintmax_t if
20764         not defined, and if UINT64_MAX is not defined.
20765         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
20766         Reported by John David Anglin.
20767
20768 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
20769
20770         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
20771         resolve alias if codeset is empty.
20772         * lib/config.charset (BeOS): Use wildcard syntax.
20773
20774 2001-03-13  Jim Meyering  <meyering@lucent.com>
20775
20776         * lib/path-concat.c (path_concat)
20777         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
20778         concatenating e.g., `C:' and `foo'.
20779         From Bruno Haible.
20780
20781 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
20782
20783         * lib/localcharset.c (locale_charset): Don't use
20784         setlocale(LC_CTYPE,NULL). Don't return NULL.
20785         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
20786
20787 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
20788
20789         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
20790         support for DOS/DJGPP.
20791
20792 2001-03-01  Paul Eggert  <eggert@twinsun.com>
20793
20794         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
20795         lacks mkstemp.  Compile our own tempname.c if we compile our own
20796         mkstemp.c, as mkstemp relies on tempname.
20797
20798 2001-03-01  Jim Meyering  <meyering@lucent.com>
20799
20800         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
20801         AH_VERBATIM really does output its argument verbatim.
20802
20803 2001-02-28  Paul Eggert  <eggert@twinsun.com>
20804
20805         * lib/Makefile.am (libfetish_a_SOURCES):
20806         Add dup-safer.c, fopen-safer.c.
20807         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
20808
20809         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h,
20810         lib/unistd-safer.h: New files.
20811
20812 2001-02-25  Paul Eggert  <eggert@twinsun.com>
20813
20814         The mkstemp replacement is taken from glibc 2.2.2, with some
20815         portability fixes for use outside glibc, as follows:
20816
20817         * lib/tempname.c (struct_stat64): New macro.
20818         (direxists, __gen_tempname): Use it.
20819         This avoids a portability problem with Solaris 8.
20820
20821         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
20822         (<stddef.h>, <stdint.h>, <string.h>):
20823         Include only if STDC_HEADERS || _LIBC.
20824         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
20825         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
20826         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
20827         (__set_errno): Define this macro if <errno.h> doesn't.
20828         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
20829         Define these macros if <stdio.h> doesn't.
20830         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
20831         Define these macros if <sys/stat.h>
20832         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
20833         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
20834         __xstat64): Define if not _LIBC.
20835         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
20836         (__gen_tempname): Invoke gettimeofday only if
20837         HAVE_GETTIMEOFDAY || _LIBC;
20838         otherwise, fall back on plain "time".
20839         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
20840
20841         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
20842
20843         * lib/mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
20844
20845 2001-02-18  Paul Eggert  <eggert@twinsun.com>
20846
20847         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
20848
20849 2001-02-17  Paul Eggert  <eggert@twinsun.com>
20850
20851         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
20852         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
20853         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
20854         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
20855
20856 2001-02-17  Paul Eggert  <eggert@twinsun.com>
20857
20858         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
20859         Remove workaround macros for hosts that have mbrtowc but not
20860         mbstate_t, as we now insist on proper declarations for both
20861         before using mbrtowc.
20862
20863 2001-02-17  Jim Meyering  <meyering@lucent.com>
20864
20865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
20866         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
20867         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
20868         UnixWare 7.1.1.
20869
20870         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
20871         rather than AC_CACHE_VAL.
20872
20873 2001-02-17  Jim Meyering  <meyering@lucent.com>
20874
20875         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
20876         around included file name.
20877
20878         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
20879
20880         * lib/strftime.c: Update from GNU libc (the only changes were to
20881         comments).
20882
20883 2001-02-17  Jim Meyering  <meyering@lucent.com>
20884
20885         * lib/regex.c: Update from libc.
20886
20887 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
20888
20889         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
20890         clash.
20891
20892 2001-02-16  Paul Eggert  <eggert@twinsun.com>
20893
20894         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
20895         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
20896         Reported by Mark Hounschell via Paul Eggert.
20897
20898 2001-02-07  Jim Meyering  <meyering@lucent.com>
20899
20900         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
20901
20902 2001-02-05  Jim Meyering  <meyering@lucent.com>
20903
20904         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
20905         it includes the patch required for `large file' support with at least
20906         HP-UX's 10.20 /bin/cc.
20907
20908 2001-02-03  Jim Meyering  <meyering@lucent.com>
20909
20910         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
20911         AS_IF, now that it works once again (mysteriously).
20912         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
20913
20914 2001-01-30  Jim Meyering  <meyering@lucent.com>
20915
20916         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
20917         * m4/chown.m4: Rename conftestchown to conftest.chown.
20918         * m4/rename.m4: s/conftestdir/conftest.d1/ and
20919         s/conftestdir2/conftest.d2/.
20920         * m4/utimes.m4: s/conftestdata/conftest.data/
20921         Inspired by Pavel Roskin's change in autoconf.
20922
20923 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
20924
20925         * lib/config.charset: Update for FreeBSD 4.2.
20926
20927 2001-01-27  Jim Meyering  <meyering@lucent.com>
20928
20929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
20930         a use of AS_IF.
20931         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
20932
20933 2001-01-26  Jim Meyering  <meyering@lucent.com>
20934
20935         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
20936         quotearg.c includes it.
20937
20938 2001-01-26  Jim Meyering  <meyering@lucent.com>
20939
20940         * lib/quotearg.c: Include stddef.h.
20941         * lib/quote.c: Include stddef.h.
20942         Reported by Axel Kittenberger.
20943
20944         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
20945         line in double quotes so that it evokes a better diagnostic.
20946         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
20947         Reported by Axel Kittenberger.
20948
20949 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
20950
20951         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
20952         as if it was a `charset'.
20953
20954 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
20955
20956         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
20957         has const.
20958
20959 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
20960
20961         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
20962         to avoid a warning.  Add back 'const' to inptr.
20963
20964 2001-01-20  Jim Meyering  <meyering@lucent.com>
20965
20966         Be sure that headers are checked before used in code compiled
20967         for the type checks.
20968         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
20969         In place of that, invoke jm_CHECK_ALL_TYPES.
20970         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
20971         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
20972         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
20973         The check for ssize_t was mistakenly run before the test for unistd.h.
20974
20975         The configure-time check for stdbool.h was missing.
20976         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
20977         (jm_PREREQ_HASH): New function.
20978
20979 2001-01-17  Jim Meyering  <meyering@lucent.com>
20980
20981         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
20982         for autoconf-2.49c.
20983         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
20984
20985 2001-01-16  Jim Meyering  <meyering@lucent.com>
20986
20987         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
20988         From Bruno Haible.
20989
20990 2001-01-14  Jim Meyering  <meyering@lucent.com>
20991
20992         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
20993         foo and bar.  Create conftestdir/ in the script, not in the C code.
20994         Remove directories in the script, not in the C code.
20995         Remove conftestdir{,2} before trying to create the directory.
20996         Make the entire configure script fail if the mkdir fails.
20997
20998 2001-01-14  Jim Meyering  <meyering@lucent.com>
20999
21000         * lib/rename.c: New file.  From Volker Borchert.
21001         Include stdlib.h, string.h or strings.h, and xalloc.h.
21002         Use strip_trailing_slashes rather than open-coding it.
21003
21004 2001-01-03  Paul Eggert  <eggert@twinsun.com>
21005
21006         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
21007
21008 2001-01-03  Jim Meyering  <meyering@lucent.com>
21009
21010         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
21011         of local `inptr' to avoid warning with some system declarations of
21012         iconv.
21013
21014 2001-01-02  Volker Borchert  <bt@teknon.de>
21015
21016         * m4/rename.m4: New file.
21017         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
21018
21019 2001-01-01  Jim Meyering  <meyering@lucent.com>
21020
21021         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
21022         even on systems with utmpx.h.  It's necessary for the declaration of
21023         utmp's ut_user member.  Reported by Andreas Jaeger.
21024
21025         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
21026         available. They are required for the declarations of getgrgid and
21027         getpwuid resp.
21028         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
21029         Reported by Andreas Jaeger.
21030
21031 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
21032
21033         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
21034         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
21035         so `make install' also works in VPATH builds.
21036
21037 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
21038
21039         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
21040         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
21041         can be used in subdirectories.
21042
21043 2000-12-29  Paul Eggert  <eggert@twinsun.com>
21044
21045         * lib/modechange.c: Do not assume that mode_t uses the
21046         traditional octal encoding.  E.g. "chmod 1 FOO" should set
21047         the other-execute bit of FOO even if S_IXOTH != 1.
21048
21049         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
21050         WOTH, XOTH, ALLM): New macros.
21051         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
21052          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
21053         Use them.
21054         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
21055         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
21056         (mode_compile):
21057         No need to use uintmax_t; unsigned long is long enough.
21058         Don't bother to get suffix since we don't use it.
21059
21060 2000-12-26  Jim Meyering  <meyering@lucent.com>
21061
21062         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
21063         better with autoheader.
21064
21065 2000-12-24  Jim Meyering  <meyering@lucent.com>
21066
21067         * lib/hash.c (is_prime): Return explicit boolean values.
21068         (hash_get_first): Return NULL to appease Irix5.6's 89.
21069         Reported by Nelson Beebe.
21070
21071 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
21072
21073         * lib/localcharset.c (locale_charset): Add support for Win32.
21074
21075 2000-12-18  Paul Eggert  <eggert@twinsun.com>
21076
21077         * lib/physmem.h, physmem.c: New files.
21078
21079         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
21080         (noinst_HEADERS): Add physmem.h.
21081
21082         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
21083         't' for compatibility with Solaris 8 sort.
21084
21085 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
21086
21087         * lib/config.charset: Add support for BeOS.
21088
21089 2000-12-17  Jim Meyering  <meyering@lucent.com>
21090
21091         * m4/dos.m4 (jm_AC_DOS): New file and macro.
21092         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
21093
21094 2000-12-16  Jim Meyering  <meyering@lucent.com>
21095
21096         This bug had a serious impact on chown: `chown N:M FILE' (for integer
21097         N and M) would have treated it like `chown N:N FILE'.
21098
21099         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
21100
21101 2000-12-16  Jim Meyering  <meyering@lucent.com>
21102
21103         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
21104         SHELLS_FILE to a file name that's useful on djgpp systems.
21105         Include stdlib.h.
21106         (ADDITIONAL_DEFAULT_SHELLS): Define.
21107         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
21108         Based mostly on a patch from Prashant TR.
21109
21110 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
21111
21112         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
21113         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
21114         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
21115
21116 2000-12-08  Andreas Schwab  <schwab@suse.de>
21117
21118         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
21119         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
21120
21121 2000-12-07  Jim Meyering  <meyering@lucent.com>
21122
21123         * lib/stripslash.c (ISSLASH): Define.
21124         (strip_trailing_slashes): Use ISSLASH rather than comparing against
21125         `/'.
21126         From Prashant TR.
21127
21128         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
21129         (dir_name_r): Declare this function as static.
21130         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
21131         manifest itself on a name containing a mix of slashes and
21132         backslashes.
21133         Make this function work with names starting with a DOS-style
21134         drive letter and colon prefix.
21135         (dir_name): Append `.' if necessary.
21136         Based mostly on patches from Prashant TR and Eli Zaretskii.
21137
21138         * lib/dirname.h (dir_name_r): Remove prototype.
21139
21140 2000-12-06  Paul Eggert  <eggert@twinsun.com>
21141
21142         * m4/off_t-format.m4: Remove this file.
21143         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
21144
21145 2000-12-06  Jim Meyering  <meyering@lucent.com>
21146
21147         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
21148         replacement strtoull, we may well need the replacement strtoul, too.
21149         Check for declarations of strtoul and strtoull.
21150         Check for strtol.  Mainly as a cue to cause automake to include
21151         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
21152         Check for limits.h -- strtol.c needs it.
21153
21154 2000-12-05  Jim Meyering  <meyering@lucent.com>
21155
21156         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
21157
21158 2000-12-04  Jim Meyering  <meyering@lucent.com>
21159
21160         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
21161         Also include memory.h, stdlib.h, unistd.h if appropriate.
21162         Reported by Andreas Jaeger (conflicting declaration of malloc).
21163
21164 2000-12-02  Jim Meyering  <meyering@lucent.com>
21165
21166         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
21167         * m4/jm-macros.m4 (jm_MACROS): require it.
21168
21169 2000-12-02  Jim Meyering  <meyering@lucent.com>
21170
21171         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
21172
21173 2000-12-01  Paul Eggert  <eggert@twinsun.com>
21174
21175         * lib/memrchr.c: Include <config.h> before any system include file.
21176
21177 2000-11-30  Jim Meyering  <meyering@lucent.com>
21178
21179         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
21180
21181 2000-11-30  Jim Meyering  <meyering@lucent.com>
21182
21183         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
21184
21185 2000-11-29  Paul Eggert  <eggert@twinsun.com>
21186
21187         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
21188
21189 2000-11-26  Jim Meyering  <meyering@lucent.com>
21190
21191         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
21192
21193 2000-11-22  Paul Eggert  <eggert@twinsun.com>
21194
21195         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
21196         size of (size_t) -1; it's not portable.
21197
21198 2000-11-17  Jim Meyering  <meyering@lucent.com>
21199
21200         * lib/strstr.c: Update from GNU libc.
21201
21202 2000-11-17  Akim Demaille  <akim@epita.fr>
21203
21204         * lib/obstack.h: Formatting changes.
21205         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
21206         prevent type checking.
21207         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
21208         cast the value to (void *): assigning a `foo *' to a `void *'
21209         variable is valid.
21210         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
21211
21212 2000-11-16  Jim Meyering  <meyering@lucent.com>
21213
21214         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
21215
21216 2000-11-11  Jim Meyering  <meyering@lucent.com>
21217
21218         * lib/error.c: Add a couple #includes, merging from GNU libc version.
21219
21220 2000-11-10  Jim Meyering  <meyering@lucent.com>
21221
21222         * lib/obstack.h: Update from GNU libc.
21223         * lib/obstack.c: Likewise.
21224
21225 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
21226
21227         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
21228
21229 2000-11-06  Paul Eggert  <eggert@twinsun.com>
21230
21231         * lib/getusershell.c (setusershell): Use rewind rather than
21232         fseek/fseeko, to avoid configuration hassles with fseeko.
21233         Don't bother opening SHELLS_FILE if shellstream is NULL;
21234         it's not necessary.
21235
21236 2000-11-05  Jim Meyering  <meyering@lucent.com>
21237
21238         * lib/makepath.h (make_dir): Declare.
21239         * lib/makepath.c (make_dir): Remove `static' attribute.
21240         Tweak a comment.
21241
21242 2000-11-04  Jim Meyering  <meyering@lucent.com>
21243
21244         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
21245
21246 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
21247
21248         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
21249         last one in a bucket, advance to the next bucket.
21250
21251 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
21252
21253         * lib/fnmatch.c: Do not comment out all the code if we are using
21254         the GNU C library, because in some cases we are replacing buggy
21255         code in the GNU C library itself.
21256
21257 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
21258
21259         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
21260         (regex_compile): Catch bogus \(\1\).
21261
21262 2000-10-30  Paul Eggert  <eggert@twinsun.com>
21263
21264         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
21265         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
21266         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
21267
21268 2000-10-30  Paul Eggert  <eggert@twinsun.com>
21269
21270         * lib/error.h, getline.h, modechange.h:
21271         Remove "2000" from Copyright line, as the file hasn't been
21272         changed this year other than in the copyright notice.
21273
21274         * lib/xalloc.h: Add "2000" to Copyright line, as this file
21275         was changed this year.
21276
21277 2000-10-29  Jim Meyering  <meyering@lucent.com>
21278
21279         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
21280         renaming.
21281         * m4/ls-mntd-fs.m4: Likewise
21282
21283 2000-10-29  Jim Meyering  <meyering@lucent.com>
21284
21285         * lib/xstat.in: Fix grammar in comment.
21286
21287 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
21288
21289         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
21290         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
21291         doesn't define __restrict_arr.
21292
21293 2000-10-28  Jim Meyering  <meyering@lucent.com>
21294
21295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
21296         (jm_PREREQ_MEMCHR): New function.
21297
21298 2000-10-28  Jim Meyering  <meyering@lucent.com>
21299
21300         * lib/memchr.c: Update from libc.
21301         Adjust for portability:
21302         [HAVE_STDLIB_H]: Include stdlib.h.
21303         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
21304         Undef __memchr, too.
21305         [!weak_alias]: Define __memchr to memchr.
21306
21307         * lib/regex.c: Update from libc.
21308         * lib/regex.h: Likewise.
21309         * lib/getopt1.c: Likewise.
21310         * lib/memcmp.c: Likewise.
21311
21312         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
21313         Avoid using fseek, when possible -- it's broken by design.
21314         Patch by Ulrich Drepper.
21315
21316 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
21317
21318         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
21319         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
21320         Giving in to popular pressure to shut up the compiler with casts.
21321
21322 2000-10-26  Jim Meyering  <meyering@lucent.com>
21323
21324         * lib/strftime.c: Update from libc.
21325
21326 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
21327
21328         * regex.c: More `unsigned char' -> `re_char' changes.
21329         Also change several `int' into `re_wchar_t'.
21330         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
21331         (PUSH_FAILURE_POINTER): Don't cast any more.
21332         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
21333         We want GCC to complain, since this piece of code makes
21334         re_match non-reentrant, which *should* be fixed.
21335         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
21336         (EXTEND_BUFFER): Use RETALLOC.
21337         (SET_LIST_BIT): Don't cast.
21338         (re_wchar_t): New type.
21339         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
21340         that those two functions will always properly return.
21341         (IMMEDIATE_QUIT_CHECK): Cast to void.
21342         (analyse_first): Use recursion rather than an explicit stack.
21343         (re_compile_fastmap): Can't fail anymore.
21344         (re_search_2): Don't check re_compile_fastmap for failure.
21345         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
21346         Now also sets the new value (passed in a new argument).
21347         (re_match_2_internal): Use it.
21348         Also, use a new var `reg' of type size_t when looping through regs
21349         rather than reuse the inappropriate `mcnt'.
21350
21351 2000-10-25  Jim Meyering  <meyering@lucent.com>
21352
21353         * lib/obstack.c: Update from libc.
21354
21355 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
21356
21357         * regex.c (regex_compile): Change the way of handling a range from
21358         a char less than 256 to a char not less than 256.
21359
21360 2000-10-24  Andrew Innes  <andrewi@gnu.org>
21361
21362         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
21363         NT-Emacs only.
21364         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
21365         so that re_search functions only quit when callers expect them to.
21366
21367 2000-10-23  Jim Meyering  <meyering@lucent.com>
21368
21369         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
21370         wrong.  That set_locale call must not have any side effects.
21371         From Paul Eggert.
21372
21373 2000-10-22  Jim Meyering  <meyering@lucent.com>
21374
21375         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
21376         [CYCLIC]: Remove now-unused definition.
21377
21378         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
21379         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
21380         Suggestion from Ulrich Drepper.
21381
21382 2000-10-21  Jim Meyering  <meyering@lucent.com>
21383
21384         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
21385         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
21386         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
21387
21388 2000-10-21  Jim Meyering  <meyering@lucent.com>
21389
21390         * lib/dirname.c (memrchr): Declare if necessary.
21391         (dir_name): Remove the restriction that there be no
21392         trailing slashes.  Now, this code skips past them, effectively
21393         ignoring them.
21394         [TEST_DIRNAME] (main): New unit tests.
21395
21396         * lib/memrchr.c: New file from GNU libc.
21397         Undef __memrchr, too.
21398         [!weak_alias]: Define __memrchr to memrchr.
21399         Guard weak_alias use with `#ifdef weak_alias'.
21400
21401 2000-10-21  Jim Meyering  <meyering@lucent.com>
21402
21403         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
21404         (dir_name): Use dir_name_r.
21405         * lib/dirname.h (dir_name_r): Declare it.
21406
21407 2000-10-17  Jim Meyering  <meyering@lucent.com>
21408
21409         * lib/quote.h (PARAMS): Define and use.
21410         Reported by Akim Demaille.
21411
21412         * lib/getopt.c: Update from libc.
21413
21414 2000-10-16  Jim Meyering  <meyering@lucent.com>
21415
21416         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
21417         setlocale.
21418         From Jan Fedak.
21419
21420 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
21421
21422         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
21423
21424 2000-09-25  Jim Meyering  <meyering@lucent.com>
21425
21426         * lib/md5.h (rol): Define (from GnuPG).
21427
21428         * lib/sha.c: Give credit (GnuPG) where due.
21429         (M): Use rol rather than open-coding it.
21430         Add a FIXME comment.
21431
21432 2000-09-21  Jim Meyering  <meyering@lucent.com>
21433
21434         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
21435         Reported by Michael Stone.
21436
21437 2000-09-20  Jim Meyering  <meyering@lucent.com>
21438
21439         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
21440         (noinst_HEADERS): Add sha.h.
21441         Based on code from Scott G. Miller and from GnuPG.
21442
21443 2000-09-18  Jim Meyering  <meyering@lucent.com>
21444
21445         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
21446         LIBS. Otherwise, everyone ends up linking with -lelf for some
21447         configurations.
21448         Reported by Mike Stone.
21449
21450 2000-09-15  Jim Meyering  <meyering@lucent.com>
21451
21452         * lib/regex.c: Update from libc.
21453
21454 2000-09-10  Jim Meyering  <meyering@lucent.com>
21455
21456         * lib/getopt.c (_getopt_internal): Update from glibc.
21457
21458 2000-09-09  Jim Meyering  <meyering@lucent.com>
21459
21460         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
21461         think it should be used as a general replacement for isascii.
21462         * lib/fnmatch.c: Likewise.
21463         * lib/mbswidth.c: Likewise
21464         * lib/regex.c: Likewise.
21465
21466         Don't use atoi.
21467         * lib/userspec.c: Include sys/param.h and limits.h.
21468         Include xstrtol.h.
21469         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21470         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
21471         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
21472         UID, GID.  Check range.
21473
21474 2000-09-06  Jim Meyering  <meyering@lucent.com>
21475
21476         * lib/getopt.c (_getopt_internal): Update from glibc.
21477
21478 2000-08-30  Jim Meyering  <meyering@lucent.com>
21479
21480         * lib/strftime.c: Merge in changes from GNU libc.
21481
21482 2000-08-26  Jim Meyering  <meyering@lucent.com>
21483
21484         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
21485         * m4/fpending.m4: New file.
21486
21487 2000-08-26  Jim Meyering  <meyering@lucent.com>
21488
21489         * lib/closeout.c: Include "__fpending.h".
21490         (close_stdout_status): Return right away if there's nothing to flush.
21491
21492         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
21493         * lib/__fpending.c: New file.
21494         * lib/__fpending.h: New file.
21495
21496 2000-08-20  Jim Meyering  <meyering@lucent.com>
21497
21498         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
21499         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
21500         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
21501
21502 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
21503
21504         Improve fileutils installation on systems where running
21505         programs (like install) can't be unlinked.
21506         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
21507         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
21508
21509 2000-08-07  Paul Eggert  <eggert@twinsun.com>
21510
21511         Standardize on "memory exhausted" instead of "Memory exhausted"
21512         or "virtual memory exhausted".
21513         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
21514         "virtual memory exhausted".
21515         * lib/same.c (same_name): Invoke xalloc_die instead of printing
21516         our own message.
21517         * lib/userspec.c (parse_user_spec): Likewise.
21518         * lib/bumpalloc.h: comment fix
21519         * lib/same.c, userspec.c: Include xalloc.h.
21520
21521         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
21522         not char *const and pointing to a constant array.
21523         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
21524         (xrealloc): Comment fix.
21525
21526         * lib/userspec.c (parse_user_spec):
21527         Don't translate a message until just before returning,
21528         to avoid unnecessary translation.
21529
21530 2000-08-07  Jim Meyering  <meyering@lucent.com>
21531
21532         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
21533         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
21534         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
21535         getgroups.c, gethostname.c, getopt.h, group-member.c,
21536         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
21537         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
21538         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
21539         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
21540         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
21541         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
21542         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
21543         yesno.c: Back out Copyright date changes for each file with no change
21544         this year.  This eases coordination with other programs using the same
21545         source code modules.  From Paul Eggert.
21546
21547 2000-08-06  Paul Eggert  <eggert@twinsun.com>
21548
21549         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
21550         not char, for compatibility with glibc 2.1.3 strftime.c.
21551
21552 2000-08-03  Greg McGary  <greg@mcgary.org>
21553
21554         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
21555         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
21556         (EXTEND_BUFFER): Use them.
21557
21558 2000-08-01  Jim Meyering  <meyering@lucent.com>
21559
21560         * lib/dirname.c (ISSLASH): Define.
21561         (BACKSLASH_IS_PATH_SEPARATOR): Define.
21562         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
21563         both `\' and `/' may be use as path separators.
21564         Based on a patch from Prashant TR.
21565
21566 2000-07-31  Paul Eggert  <eggert@twinsun.com>
21567
21568         * lib/quotearg.c (quotearg_n_options): Don't make the initial
21569         slot vector a constant, since it might get modified.
21570
21571 2000-07-31  Jim Meyering  <meyering@lucent.com>
21572
21573         * lib/xmalloc.c: Use `virtual memory exhausted', not
21574         `Memory exhausted'.
21575         * lib/obstack.c (print_and_abort): Likewise.
21576
21577 2000-07-30  Paul Eggert  <eggert@twinsun.com>
21578
21579         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
21580         buffer, so that the caller can always quote one small
21581         component of a "memory exhausted" message in slot 0.
21582         From a suggestion by Jim Meyering.
21583
21584 2000-07-30  Jim Meyering  <meyering@lucent.com>
21585
21586         * lib/makepath.c (make_path): Quote the other instance, too.
21587
21588         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
21589         (STATIC_BUF_SIZE): Define.
21590         (quotearg_n_options): Use only statically allocated storage when
21591         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
21592         than STATIC_BUF_SIZE.
21593
21594 2000-07-29  Jim Meyering  <meyering@lucent.com>
21595
21596         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
21597         * lib/dirname.c (dir_name): Likewise.
21598
21599         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
21600         `/'.
21601
21602         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
21603         (dir_name): Assert that there are no trailing slashes.
21604
21605 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
21606
21607         * lib/mbswidth.h (mbswidth): Add a flags argument.
21608         (mbswidth): New declaration.
21609         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
21610         * lib/mbswidth.c (mbswidth): Add a flags argument.
21611         (mbsnwidth): New function.
21612
21613 2000-07-24  Jim Meyering  <meyering@lucent.com>
21614
21615         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
21616
21617 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21618
21619         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
21620
21621 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21622
21623         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
21624         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
21625         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
21626         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
21627         invoke multibyte primitives.
21628
21629 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21630
21631         * lib/quotearg.c:
21632         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
21633         so that mbstate_t is always defined.
21634
21635         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
21636         be 1 in at least one GCC installation, and this configuration
21637         error is likely to be common.  Ignoring MB_LEN_MAX hurts
21638         performance on hosts that have mbrtowc but have only unibyte
21639         locales, but I assume these hosts are rare.
21640
21641 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21642
21643         * lib/mbswidth.c (_XOPEN_SOURCE):
21644         Don't define; this causes problems on Solaris 7.
21645         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
21646
21647 2000-07-23  Jim Meyering  <meyering@lucent.com>
21648
21649         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
21650         too: getgrgid, getpwuid, getuid.
21651
21652 2000-07-23  Jim Meyering  <meyering@lucent.com>
21653
21654         * lib/basename.c (base_name): Add an assertion.
21655
21656 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
21657
21658         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
21659         shadow its mbsinit function.
21660
21661 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
21662
21663         * lib/mbswidth.h: New file.
21664         * lib/mbswidth.c: New file.
21665         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
21666         (noinst_HEADERS): Add mbswidth.h.
21667
21668 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
21669
21670         * lib/config.charset: Add support for FreeBSD. Improve support for
21671         HP-UX and IRIX 6.
21672
21673 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
21674
21675         * m4/mbswidth.m4: New file.
21676         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
21677
21678 2000-07-15  Jim Meyering  <meyering@lucent.com>
21679
21680         * lib/makepath.c: Include quote.h.
21681         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
21682         corresponding argument in a `quote (...)' call.
21683         Give better diagnostics.
21684
21685         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
21686         (noinst_HEADERS): Add quote.h.
21687
21688         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
21689         from tar's src/misc.c.
21690         * lib/quote.h: New file.  Prototypes for same.
21691
21692 2000-07-14  Paul Eggert  <eggert@twinsun.com>
21693
21694         From a suggestion by Bruno Haible.
21695         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
21696         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
21697         to decide whether to define the BeOS workaround macro;
21698         this adjusts to the change to AC_MBSTATE_T.
21699
21700 2000-07-14  Jim Meyering  <meyering@lucent.com>
21701
21702         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
21703         jm_AC_TYPE_UINTMAX_T.
21704
21705 2000-07-13  Paul Eggert  <eggert@twinsun.com>
21706
21707         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
21708
21709         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
21710         quotearg_buffer_restyled): Add support for
21711         clocale_quoting_style.  Undo previous change to
21712         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
21713         and "{RIGHT QUOTATION MARK}" msgids.
21714
21715 2000-07-10  Paul Eggert  <eggert@twinsun.com>
21716
21717         From a suggestion by Bruno Haible.
21718         * m4/mbstate_t.m4 (AC_MBSTATE_T):
21719         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
21720         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
21721         and mbstate_t, to a single-part test that simply defines mbstate_t.
21722         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
21723         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
21724
21725 2000-07-10  Jim Meyering  <meyering@lucent.com>
21726
21727         * m4/strerror_r.m4: Mirror the correction made in autoconf.
21728
21729         * m4/gnu-source.m4: Output to confdefs.h directly.
21730         Suggestion from Akim Demaille.
21731
21732 2000-07-09  Paul Eggert  <eggert@twinsun.com>
21733
21734         The old behavior of quoting `like this' doesn't look good with
21735         newer, ISO-style fonts.  See:
21736         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
21737
21738         Instead, quote "like this" by default.  Let the translator
21739         tailor the locale-specific quoting behavior by providing
21740         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
21741
21742         * lib/quotearg.c (N_): New macro.
21743         (gettext_default): New function.
21744         (quotearg_buffer_restyled): Use
21745         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
21746         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
21747
21748 2000-07-09  Jim Meyering  <meyering@lucent.com>
21749
21750         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
21751         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
21752
21753         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
21754         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
21755
21756 2000-07-09  Jim Meyering  <meyering@lucent.com>
21757
21758         * lib/Most files: Update copyright dates to include 2000.
21759
21760 2000-07-08  Jim Meyering  <meyering@lucent.com>
21761
21762         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
21763         if not defined.
21764         (xgethostname): Remove now-unnecessary #ifdef.
21765         Move declaration of `err' into loop where it's used.
21766
21767 2000-07-05  Paul Eggert  <eggert@twinsun.com>
21768         and Bruno Haible  <haible@clisp.cons.org>
21769
21770         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
21771         only if the test for an object-type mbstate_t fails.  This
21772         prevents us from mistakenly reporting that mbstate_t is a
21773         system object type after we "#define mbstate_t int" to work
21774         around its lack.
21775
21776 2000-07-05  Paul Eggert  <eggert@twinsun.com>
21777         and Bruno Haible  <haible@clisp.cons.org>
21778
21779         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
21780
21781 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
21782
21783         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
21784         to strerror_r.
21785         Include <ctype.h> for use of isalpha.
21786
21787 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
21788
21789         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
21790         by allocating a larger buffer. Test the gethostname return value for
21791         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
21792         returns an error and ENAMETOOLONG isn't defined.
21793
21794 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
21795
21796         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
21797         dimension.
21798
21799 2000-07-04  Jim Meyering  <meyering@lucent.com>
21800
21801         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
21802         of the deprecated AC_CHECKING.
21803
21804 2000-07-04  Jim Meyering  <meyering@lucent.com>
21805
21806         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
21807         Reported by Bruno Haible.
21808
21809 2000-07-04  Jim Meyering  <meyering@lucent.com>
21810
21811         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
21812         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
21813         lacks mbrtowc.
21814
21815 2000-07-03  Paul Eggert  <eggert@twinsun.com>
21816
21817         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
21818         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
21819
21820 2000-07-03  Paul Eggert  <eggert@twinsun.com>
21821         and Bruno Haible  <haible@clisp.cons.org>
21822
21823         * lib/quotearg.c (mbrtowc):
21824         Assign to *pwc, and return 1 only if result is nonzero.
21825         (iswprint): Use ISPRINT when substituting our own mbrtowc.
21826
21827 2000-07-03  Jim Meyering  <meyering@lucent.com>
21828
21829         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
21830
21831 2000-07-03  Jim Meyering  <meyering@lucent.com>
21832
21833         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
21834         This is necessary to get a definition of e.g., UTMP_FILE on
21835         HP-UX 10.20.
21836         From Bob Proulx.
21837
21838 2000-07-02  Jim Meyering  <meyering@lucent.com>
21839
21840         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
21841
21842         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
21843         AC_LIBOBJ(function_name).
21844         * m4/chown.m4: Likewise.
21845         * m4/fnmatch.m4: Likewise.
21846         * m4/ftruncate.m4: Likewise.
21847         * m4/getgroups.m4: Likewise.
21848         * m4/getline.m4: Likewise.
21849         * m4/group-member.m4: Likewise.
21850         * m4/jm-macros.m4: Likewise.
21851         * m4/lstat.m4: Likewise.
21852         * m4/malloc.m4: Likewise.
21853         * m4/memcmp.m4: Likewise.
21854         * m4/nanosleep.m4: Likewise.
21855         * m4/putenv.m4: Likewise.
21856         * m4/realloc.m4: Likewise.
21857         * m4/regex.m4: Likewise.
21858         * m4/stat.m4: Likewise.
21859         * m4/strftime.m4: Likewise.
21860
21861 2000-07-02  Jim Meyering  <meyering@lucent.com>
21862
21863         * lib/quotearg.c (mbstate_t): Don't define here.
21864
21865 2000-07-02  Jim Meyering  <meyering@lucent.com>
21866
21867         * lib/nanosleep.c (SIGCONT): Define if not already defined.
21868
21869 2000-07-01  Jim Meyering  <meyering@lucent.com>
21870
21871         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
21872
21873 2000-07-01  Jim Meyering  <meyering@lucent.com>
21874
21875         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
21876         problem.
21877
21878 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
21879
21880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
21881         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
21882
21883 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
21884
21885         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
21886         per change in ../m4/ls-mntd-fs.m4.
21887         (read_filesystem_list): Ignore symbolic links.
21888
21889 2000-06-29  Jim Meyering  <meyering@lucent.com>
21890
21891         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
21892         for declaration of strcmp.
21893
21894         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
21895
21896         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
21897         Avoid warning by casting result to `char *' to remove `const'.
21898
21899 2000-06-28  Jim Meyering  <meyering@lucent.com>
21900
21901         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
21902         included by quotearg.c, for which we perform this test.  From
21903         Bruno Haible.
21904
21905 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
21906
21907         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
21908         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
21909         <utmpx.h> exists, put readutmp.o into LIBOBJS.
21910
21911 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
21912
21913         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
21914
21915 2000-06-26  Paul Eggert  <eggert@twinsun.com>
21916
21917         savedir now sets errno on failure and invokes xmalloc to get memory.
21918         Fix a couple of other minor bugs while we're at it.
21919
21920         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
21921         (NAMLEN): Remove macro.
21922         (malloc, realloc): Remove decls.
21923         (stpcpy): Likewise.
21924         ("xalloc.h"): Include.
21925         (NAME_SIZE_DEFAULT): New macro.
21926         (savedir): Use xmalloc / xrealloc to allocate memory.
21927         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
21928         Skip "" directory entries.
21929         Use strlen to calculate directory entry length, since the old method
21930         is rarely used these days and isn't worth supporting.
21931         Don't use a pointer after freeing it.
21932         Check for integer overflow when calculating allocation size.
21933         Use memcpy to copy entries, instead of stpcpy.
21934         Set errno properly when returning NULL.
21935         Check for readdir error.
21936
21937 2000-06-26  Jim Meyering  <meyering@lucent.com>
21938
21939         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
21940
21941 2000-06-25  Jim Meyering  <meyering@lucent.com>
21942
21943         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
21944         Linux header bug when _XOPEN_SOURCE is defined to 500.
21945
21946 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
21947
21948         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
21949         deficiency.
21950
21951 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
21952
21953         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
21954         Include xalloc.h.
21955         Don't include <stdlib.h>.  Don't declare malloc, realloc.
21956
21957 2000-06-24  Jim Meyering  <meyering@lucent.com>
21958
21959         * m4/strerror_r.m4: Revive this file -- to try out an experimental
21960         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
21961         for which strerror does return char*, but which lacks a conveniently
21962         accessible declaration of the function.  If the compile-test says
21963         strerror_r doesn't work, then resort to a `run'-test that works on
21964         BeOS and segfaults on DEC Unix.
21965
21966 2000-06-24  Jim Meyering  <meyering@lucent.com>
21967
21968         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
21969
21970 2000-06-23  Paul Eggert  <eggert@twinsun.com>
21971
21972         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
21973         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
21974
21975 2000-06-23  Paul Eggert  <eggert@twinsun.com>
21976
21977         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
21978         (mbrtowc, mbstate_t): Define substitutes if
21979         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
21980         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
21981         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
21982
21983 2000-06-23  Jim Meyering  <meyering@lucent.com>
21984
21985         * m4/afs.m4: Add missing AC_MSG_RESULT.
21986         Reported by Bruno Haible.
21987
21988         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
21989         Suggestion from Bruno Haible.
21990
21991 2000-06-23  Jim Meyering  <meyering@lucent.com>
21992
21993         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
21994
21995 2000-06-21  Jim Meyering  <meyering@lucent.com>
21996
21997         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
21998
21999 2000-06-21  Jim Meyering  <meyering@lucent.com>
22000
22001         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
22002         (noinst_HEADERS): Add getstr.h.
22003
22004         * lib/getline.c (getstr): Move into a separate file.
22005         * lib/getstr.c (getstr): New file, extracted from getline.c, with
22006         the following changes: new parameter, delim2; both delim[12]
22007         parameters have type `int', not `char'.  The latter would lose
22008         with 8-bit delimiters.
22009         * lib/getstr.h: New file.
22010
22011 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22012
22013         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
22014         than 1024, return a memory chunk of least possible size, instead
22015         of size PATH_MAX + 2. In the loop, increment the size proportionally.
22016         Use free/xmalloc instead of xrealloc to avoid copying for very long
22017         paths.
22018
22019 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22020
22021         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
22022         the empty string.
22023
22024 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22025
22026         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
22027         address, not strdup.  Include <stdlib.h> and don't declare free().
22028
22029 2000-06-19  Jim Meyering  <meyering@lucent.com>
22030
22031         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
22032
22033 2000-06-18  Jim Meyering  <meyering@lucent.com>
22034
22035         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
22036
22037         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
22038         `checking whether...' message to be consistent with that of the
22039         lstat test.
22040
22041 2000-06-18  Jim Meyering  <meyering@lucent.com>
22042
22043         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
22044         Besides, these days every porting target provides a mkdir function.
22045
22046         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
22047         needed. (this snippet comes from src/system.h).
22048
22049 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
22050
22051         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
22052
22053 2000-06-15  Paul Eggert  <eggert@twinsun.com>
22054
22055         * lib/human.c (adjust_value): New function.
22056         (human_readable_inexact): Apply rounding style even when
22057         printing approximate values.
22058
22059 2000-06-14  Paul Eggert  <eggert@twinsun.com>
22060
22061         * lib/human.c (human_readable_inexact): Allow an input block
22062         size that is not a multiple of the output block size, and vice versa.
22063         Reported by Piergiorgio Sartor.
22064
22065 2000-06-14  Paul Eggert  <eggert@twinsun.com>
22066
22067         * lib/getdate.y (get_date): Apply relative times after time
22068         zone indicator, not before.  Reported by Todd A. Jacobs.
22069
22070 2000-06-13  Jim Meyering  <meyering@lucent.com>
22071
22072         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
22073
22074         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
22075
22076 2000-06-12  Paul Eggert  <eggert@twinsun.com>
22077
22078         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
22079
22080 2000-06-12  Jim Meyering  <meyering@lucent.com>
22081
22082         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
22083         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
22084         optional argument.
22085         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
22086         the optional argument, `lib'.
22087
22088 2000-06-08  Jim Meyering  <meyering@lucent.com>
22089
22090         * m4/largefile.m4: Remove file (now that it's part of autoconf).
22091
22092 2000-06-04  Paul Eggert  <eggert@twinsun.com>
22093
22094         Rewrite largefile configuration so that we don't need to run
22095         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
22096         AC_CANONICAL_HOST in configure.in -- jmm]
22097
22098         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
22099         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
22100         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
22101         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
22102         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
22103         All uses changed.
22104         Instead of inspecting the output of getconf, try to compile the
22105         test program without and with the macro definition.
22106         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
22107         for getconf.  Instead, check for the needed flags by compiling
22108         test programs.
22109
22110 2000-06-04  Paul Eggert  <eggert@twinsun.com>
22111
22112         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
22113
22114 2000-06-04  Jim Meyering  <meyering@lucent.com>
22115
22116         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
22117         SunOS 4.1.4 for which gid_t is an unsigned type.
22118
22119 2000-06-03  Jim Meyering  <meyering@lucent.com>
22120
22121         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
22122         now that autoconf requires that.
22123
22124         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
22125         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
22126         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
22127
22128 2000-06-03  Jim Meyering  <meyering@lucent.com>
22129
22130         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
22131
22132 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
22133
22134         * m4/glibc21.m4: New file.
22135         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
22136
22137 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
22138
22139         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
22140         newer, don't install charset.alias.
22141         * lib/config.charset: Change the Linux/glibc rules so they become empty
22142         on glibc-2.1 or newer.
22143
22144 2000-06-02  Jim Meyering  <meyering@lucent.com>
22145
22146         * lib/mountlist.c: Back out last change.  Instead, do this...
22147         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
22148         me_dummy member using the same `ignore'-testing code.
22149         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
22150         fs_type strings.
22151         From Mark D. Roth.
22152
22153 2000-05-29  Jim Meyering  <meyering@lucent.com>
22154
22155         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
22156         mounts with the `ignore' attribute.  Based on a patch from
22157         Mark D. Roth.
22158
22159 2000-05-28  Jim Meyering  <meyering@lucent.com>
22160
22161         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
22162         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22163         * m4/stat.m4: Likewise.
22164         * m4/lstat.m4: Likewise.
22165         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
22166
22167         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
22168         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
22169
22170 2000-05-26  Jim Meyering  <meyering@lucent.com>
22171
22172         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
22173
22174 2000-05-24  Jim Meyering  <meyering@lucent.com>
22175
22176         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
22177         autoconf requires that.
22178         * m4/lib-check.m4: Likewise.
22179         * m4/jm-macros.m4: Likewise.
22180         * m4/strftime.m4: Likewise.
22181
22182         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
22183         AC_CHECK_DECLS, now that autoconf requires that.
22184
22185 2000-05-22  Jim Meyering  <meyering@lucent.com>
22186
22187         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22188         * m4/lstat.m4: Likewise.
22189
22190 2000-05-22  Jim Meyering  <meyering@lucent.com>
22191
22192         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
22193
22194 2000-05-20  Jim Meyering  <meyering@lucent.com>
22195
22196         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
22197         (jm_PREREQ): Use it.
22198
22199 2000-05-18  Jim Meyering  <meyering@lucent.com>
22200
22201         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
22202         back, too, since it may have been modified by allocate_entry.
22203         (hash_delete): Rewrite to use neither the assignment operator
22204         nor the comma operator in an if-expression.
22205
22206 2000-05-15  Paul Eggert  <eggert@twinsun.com>
22207
22208         * lib/closeout.c:
22209         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
22210         Remove; no longer needed.
22211         "quotearg.h": Add include.
22212         (file_name): Do not bother to explicitly initialize to NULL; it's less
22213         efficient on some hosts.
22214         (close_stdout_status): Remove test as to whether stdout was already
22215         closed; it breaks for the case "echo x | sort >&-".
22216         Quote file name colons.
22217         Do not assume that _("write error") lacks format strings.
22218
22219 2000-05-15  Jim Meyering  <meyering@lucent.com>
22220
22221         * lib/version-etc.c (version_etc_copyright): Update the copyright
22222         string used in all --version output.
22223
22224 2000-05-14  Jim Meyering  <meyering@lucent.com>
22225
22226         * lib/closeout.c (close_stdout_set_file_name): New function.
22227         (close_stdout_status): Use new file-scoped global.
22228         Return right away if fstat says the stdout file descriptor is invalid.
22229         * lib/closeout.h (close_stdout_set_file_name): Declare.
22230
22231 2000-05-10  Jim Meyering  <meyering@lucent.com>
22232
22233         * lib/closeout.c [default_exit_status]: New file-scoped variable.
22234         (close_stdout_set_status): New function.
22235         * lib/closeout.h (close_stdout_set_status): Declare.
22236
22237 2000-05-09  Jim Meyering  <meyering@lucent.com>
22238
22239         * m4/gettext.m4: Rename this...
22240         * m4/libintl.m4: ...to this.
22241
22242 2000-05-08  Jim Meyering  <meyering@lucent.com>
22243
22244         * lib/long-options.c: Don't include closeout.h.
22245         (parse_long_options): Don't call close_stdout for --version.
22246
22247 2000-05-06  Paul Eggert  <eggert@twinsun.com>
22248
22249         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
22250         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
22251         2.1.3 bug.  This avoids a clash when files like regex.c define
22252         _GNU_SOURCE.
22253
22254 2000-05-06  Jim Meyering  <meyering@lucent.com>
22255
22256         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
22257         (AC_REPLACE_FUNCS): Add strnlen.
22258
22259         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
22260         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
22261
22262         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
22263         AC_SEARCH_LIBS call for nanosleep.
22264         (LIB_NANOSLEEP): Set and AC_SUBST.
22265
22266 2000-05-06  Jim Meyering  <meyering@lucent.com>
22267
22268         * lib/strnlen.c: Undefine __strnlen and strnlen.
22269         [!weak_alias]: Define __strnlen to strnlen.
22270
22271         * lib/atexit.c: New file, from libiberty.
22272
22273 2000-05-06  Jim Meyering  <meyering@lucent.com>
22274
22275         * lib/closeout.c (close_stdout_status): Also check for errors on the
22276         stderr stream.
22277
22278 2000-05-05  Jim Meyering  <meyering@lucent.com>
22279
22280         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
22281         AC_SEARCH_LIBS call for clock_gettime.
22282         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
22283
22284         * m4/search-libs.m4: Update from autoconf.
22285
22286         su doesn't work on Solaris 2.6.
22287         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
22288         <shadow.h>.  Reported by Dragos Harabor.
22289
22290 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
22291
22292         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
22293         memcpy instead of xmalloc, xrealloc, path_concat.
22294         (locale_charset): Treat empty environment variables as absent.
22295         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
22296
22297 2000-05-04  Jim Meyering  <meyering@lucent.com>
22298
22299         * lib/getopt.c: Update from glibc.
22300         * lib/obstack.c: Likewise.
22301         * lib/obstack.h: Likewise.
22302         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
22303         file
22304
22305         * lib/regex.h: Likewise.
22306         * lib/strndup.c: Likewise.
22307         * lib/strnlen.c: New file, from glibc.
22308
22309 2000-05-03  Jim Meyering  <meyering@lucent.com>
22310
22311         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
22312
22313 2000-05-02  Paul Eggert  <eggert@twinsun.com>
22314
22315         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
22316         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
22317         compile-time test, rather than inspecting host and OS, to
22318         decide whether to define _LARGEFILE_SOURCE.
22319
22320 2000-05-01  Jim Meyering  <meyering@lucent.com>
22321
22322         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
22323
22324         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
22325         Based on a patch from Bruno Haible.
22326
22327 2000-05-01  Jim Meyering  <meyering@lucent.com>
22328
22329         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
22330
22331 2000-04-29  Jim Meyering  <meyering@lucent.com>
22332
22333         * lib/path-concat.c: Declare strdup only if it's not defined.
22334         * lib/canon-host.c: Likewise.
22335
22336 2000-04-28  Jim Meyering  <meyering@lucent.com>
22337
22338         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
22339         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
22340         is included first, then limits.h is included by locale.h by libintl.h.
22341         From John David Anglin.
22342
22343 2000-04-25  Jim Meyering  <meyering@lucent.com>
22344
22345         * lib/makepath.c (S_IRWXUGO): Define.
22346         (make_path): Always perform explicit chmod if MODE specifies any
22347         of the `special' permission bits.  Prompted by a bug report against
22348         install from Mate Wierdl and Joost van Baal.
22349
22350 2000-04-18  Jim Meyering  <meyering@lucent.com>
22351
22352         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
22353         (jm_PREREQ): Use it.
22354
22355 2000-04-18  Jim Meyering  <meyering@lucent.com>
22356
22357         * lib/README: New file.
22358
22359         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
22360         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
22361
22362 2000-04-17  Jim Meyering  <meyering@lucent.com>
22363
22364         Get it right :-)
22365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
22366         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
22367         Suggestion from Akim Demaille.
22368
22369 2000-04-17  Jim Meyering  <meyering@lucent.com>
22370
22371         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
22372         the definition of it to rpl_strftime also defined-away the system's
22373         declaration.
22374
22375 2000-04-15  Jim Meyering  <meyering@lucent.com>
22376
22377         Use `C' to denote so-called `contiguous' files, the same way
22378         that tar does.
22379         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
22380         (ftypelet): Use S_ISCTG.
22381         From Michael Deutschmann.
22382
22383 2000-04-14  Jim Meyering  <meyering@lucent.com>
22384
22385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
22386         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
22387         clobbered.
22388
22389 2000-04-14  Jim Meyering  <meyering@lucent.com>
22390
22391         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
22392
22393 2000-04-13  Jim Meyering  <meyering@lucent.com>
22394
22395         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
22396         AH_VERBATIM to insert required #ifndef into config.h.in.
22397         Suggestion from Akim Demaille.
22398
22399 2000-04-12  Jim Meyering  <meyering@lucent.com>
22400
22401         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
22402         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
22403         Christian Krackowizer.
22404
22405         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
22406         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
22407         (AC_SYS_LARGEFILE): Require.
22408         (AM_C_PROTOTYPES): Require.
22409
22410 2000-04-08  Jim Meyering  <meyering@lucent.com>
22411
22412         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
22413         names don't conflict.  Reported by Eli Zaretskii.
22414
22415 2000-04-07  Jim Meyering  <meyering@lucent.com>
22416
22417         * lib/putenv.c: Move inclusion of errno.h so it follows that of
22418         sys/types.h, to work around system header problems on AIX 3.2.5.
22419         From Bruno Haible.
22420
22421 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
22422
22423         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
22424         bug.  Deal with the different error behavior of Irix iconv.
22425
22426 2000-04-05  Paul Eggert  <eggert@twinsun.com>
22427
22428         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
22429         IRIX if the installer said otherwise.
22430
22431 2000-04-05  Jim Meyering  <meyering@lucent.com>
22432
22433         Portability tweaks required for ultrix4.3.
22434         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
22435         (jm_CHECK_DECLS): Add getutent to the list of functions.
22436         (_jm_DECL_HEADERS): Add utmpx.h.
22437         From John David Anglin.
22438
22439         * m4/strftime.m4: Back out the 2000-04-02 change.
22440         Instead of that change, simply undefine putenv in the test program.
22441
22442 2000-04-05  Jim Meyering  <meyering@lucent.com>
22443
22444         Portability tweaks required for ultrix4.3.
22445         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
22446         getutent.
22447         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
22448         * lib/canon-host.c: Declare strdup.
22449         * lib/path-concat.c: Likewise.
22450         From John David Anglin.
22451
22452 2000-04-04  Jim Meyering  <meyering@lucent.com>
22453
22454         Be more DOS 8.3-friendly.
22455         * lib/ref-add.sin: Renamed from ref-add.sed.in.
22456         * lib/ref-del.sin: Renamed from ref-del.sed.in.
22457         * lib/Makefile.am: Reflect renaming.
22458         Reported by Eli Zaretskii.
22459
22460         Use a temporary file name that won't clash with `charset.alias'
22461         in the DOS 8.3 name space.
22462         * lib/Makefile.am (charset_tmp): Define.
22463         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
22464         (uninstall-local): Likewise.
22465         Reported by Eli Zaretskii.
22466
22467 2000-04-03  Jim Meyering  <meyering@lucent.com>
22468
22469         * m4/gettext.m4: Fix typo in comment.
22470
22471         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
22472         textutils/configure.in).  Suggestion from Paul Eggert.
22473         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
22474
22475 2000-04-02  Paul Eggert  <eggert@twinsun.com>
22476
22477         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
22478         variable in the shell rather than using putenv, which isn't
22479         portable.  This avoids the configure-time inter-test dependency
22480         on the potentially-renamed putenv function.
22481
22482 2000-03-30  Paul Eggert  <eggert@twinsun.com>
22483
22484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
22485         before checking struct stat.st_blksize, so that
22486         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
22487
22488 2000-03-29  Paul Eggert  <eggert@twinsun.com>
22489
22490         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
22491         since strftime.c uses HAVE_STRFTIME to decide whether to use
22492         the underlying strftime.
22493
22494 2000-03-29  Paul Eggert  <eggert@twinsun.com>
22495
22496         * lib/time/strftime.c (my_strftime): Make sure we call the system
22497         strftime, not ourselves, when invoking the underlying strftime.
22498
22499 2000-03-24  Jim Meyering  <meyering@lucent.com>
22500
22501         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
22502         (charset_alias): Define.
22503         (install-exec-local): Factor out common code.
22504         (uninstall-local): Split lines longer than 80.
22505         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
22506         (SUFFIXES): Define.
22507         (.sed.in.sed): New rule.  Don't redirect directly to $@.
22508         (CLEANFILES): Add ref-add.sed and ref-del.sed.
22509
22510 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
22511
22512         * lib/config.charset: Output a line containing "Packages using this
22513         file".
22514         * lib/ref-add.sed.in, ref-del.sed.in: New files.
22515         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
22516         ref-del.sed): New rules.
22517
22518 2000-03-17  Jim Meyering  <meyering@lucent.com>
22519
22520         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
22521         Otherwise, include <strings.h>
22522
22523 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
22524
22525         * lib/unicodeio.c (utf8_wctomb): New function.
22526         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
22527         format instead of in UCS-4 with platform dependent endianness.
22528
22529 2000-03-10  Jim Meyering  <meyering@lucent.com>
22530
22531         * m4/lib-check.m4: Look for getspnam in -lgen, too.
22532         From Marco Franzen.
22533
22534 2000-03-07  Paul Eggert  <eggert@twinsun.com>
22535
22536         * lib/savedir.c (savedir): Work even if directory size is
22537         negative; this can happen with some screwy NFS configurations.
22538
22539 2000-03-06  Jim Meyering  <meyering@lucent.com>
22540
22541         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
22542         if it's NULL (because we ran out of memory).  From Bruno Haible.
22543
22544 2000-03-05  Jim Meyering  <meyering@lucent.com>
22545
22546         * lib/localcharset.c ("path-concat.h"): Include.
22547         (get_charset_aliases): Use path_concat instead of ANSI string
22548         concatenation.
22549
22550         * lib/unicodeio.h (PARAMS): Define.
22551         Use it to guard prototype.
22552
22553 2000-03-04  Jim Meyering  <meyering@lucent.com>
22554
22555         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
22556         for lib/localcharset.c.
22557
22558 2000-03-04  Jim Meyering  <meyering@lucent.com>
22559
22560         * lib/Makefile.am (install-exec-local): Create $(libdir) before
22561         installing into it.
22562         (uninstall-local): Uncomment this rule so `make distcheck' works
22563         once again.
22564
22565         * lib/unicodeio.c (<errno.h>): Include it.
22566         (errno): Declare if not defined.
22567
22568         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
22569
22570         * lib/config.charset: New version, incorporating remarks from a linux
22571         i18n mailing list.  From Bruno Haible.
22572
22573 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
22574
22575         * m4/codeset.m4: New file.
22576         * m4/iconv.m4: New file.
22577         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
22578
22579 2000-03-03  Jim Meyering  <meyering@lucent.com>
22580
22581         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
22582
22583 2000-03-02  Jim Meyering  <meyering@lucent.com>
22584
22585         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
22586         the messages come out on separate lines.
22587
22588         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
22589         rather than jm_CHECK_DECLARATIONS.
22590         * m4/decl.m4: Remove now-unused file.
22591
22592         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
22593         geteuid.
22594
22595 2000-03-02  Jim Meyering  <meyering@lucent.com>
22596
22597         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
22598
22599 2000-03-01  Jim Meyering  <meyering@lucent.com>
22600
22601         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
22602         * lib/unicodeio.c: Likewise.
22603
22604 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
22605
22606         * lib/config.charset: New file.
22607         * lib/localcharset.c: New file.
22608         * lib/unicodeio.h, unicodeio.c: New files.
22609         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
22610         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
22611         (noinst_HEADERS): Add unicodeio.h.
22612         (all-local, install-exec-local, charset.alias): New targets.
22613
22614 2000-02-28  Paul Eggert  <eggert@twinsun.com>
22615
22616         * lib/quotearg.c (ALERT_CHAR): New macro.
22617         (quotearg_buffer_restyled): Use it.
22618
22619 2000-02-27  Jim Meyering  <meyering@lucent.com>
22620
22621         * m4/check-decl.m4: Add getenv to the list.
22622
22623 2000-02-27  Jim Meyering  <meyering@lucent.com>
22624
22625         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
22626         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
22627
22628         * lib/backupfile.c: Guard inclusion of stdlib.h with
22629         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
22630         Declare malloc if needed.
22631
22632         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
22633         `#ifndef HAVE_DECL..'
22634         now that autoconf always defines the HAVE_DECL_ symbols.
22635         * lib/human.c: Likewise.
22636         * lib/same.c: Likewise.
22637         * lib/strtoumax.c: Likewise.
22638
22639         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
22640         declaration check was not run.
22641         * lib/hash.c: Likewise.
22642         * lib/human.c: Likewise.
22643         * lib/same.c: Likewise.
22644         * lib/strtoumax.c: Likewise.
22645
22646         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
22647         `.', then first look up the entire `.'-containing string as a login
22648         name.
22649
22650 2000-02-23  Jim Meyering  <meyering@lucent.com>
22651
22652         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
22653         in place of my hack.
22654
22655 2000-02-18  Paul Eggert  <eggert@twinsun.com>
22656
22657         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
22658         (textint): New typedef.
22659         (parser_control): Member year changed from int to textint.
22660         All uses changed.
22661         (YYSTYPE): Removed; replaced by %union with int and textint members.
22662         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
22663         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
22664         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
22665         (tSNUMBER, tUNUMBER): Now of type <textintval>.
22666         (date, number, to_year): Use width of number in digits, not its value,
22667         to determine whether it's a 2-digit year, or a 2-digit time.
22668         (yylex): Store number of digits of numeric tokens.
22669         Reported by John Kendall.
22670
22671         (parser_control): Changed from struct parser_control to typedef (for
22672         consistency).  All uses changed.
22673
22674         (tID): Removed; not used.
22675         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
22676
22677 2000-02-14  Paul Eggert  <eggert@twinsun.com>
22678
22679         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
22680         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
22681
22682 2000-02-12  Jim Meyering  <meyering@lucent.com>
22683
22684         * lib/userspec.c (ISDIGIT): Define it.
22685         (isdigit): Remove definition.
22686         (is_number): Use ISDIGIT, not isdigit.
22687         <libintl.h>: Include.
22688         (_ and N_): Define.
22689         (parse_user_spec): Mark translatable strings.
22690
22691 2000-02-10  Jim Meyering  <meyering@lucent.com>
22692
22693         With these changes, nanosleep.[ch] are finally enough like the other
22694         lib/* replacement files to compile on a few more losing systems.
22695
22696         * lib/nanosleep.h: Don't include config.h.
22697         Remove prototype from declaration of nanosleep.
22698         (PARAMS): Remove now-unneeded definition.
22699         * lib/nanosleep.c: #undef nanosleep.
22700         (rpl_nanosleep): Rename from nanosleep.
22701
22702 2000-02-10  Jim Meyering  <meyering@lucent.com>
22703
22704         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
22705         gnu_nanosleep to rpl_nanosleep.
22706
22707 2000-02-09  Jim Meyering  <meyering@lucent.com>
22708
22709         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
22710         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
22711
22712 2000-02-08  Akim Demaille  <akim@epita.fr>
22713
22714         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
22715         `[' and `]' and remove uses of `changequote'.
22716         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
22717         (AC_SYS_LARGEFILE): Likewise.
22718         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22719         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
22720         of changequote.
22721         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
22722         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
22723         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
22724         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
22725
22726 2000-02-05  Jim Meyering  <meyering@lucent.com>
22727
22728         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
22729         Remove explicit use of AC_HEADER_TIME.  It is required by
22730         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
22731         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
22732         in autoconf whereby the expansion of the latter ended up preceding
22733         the expansion of its prerequisite, AC_HEADER_TIME.
22734         Reported by Volker Borchert.
22735
22736 2000-02-03  Jim Meyering  <meyering@lucent.com>
22737
22738         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
22739
22740 2000-02-03  Jim Meyering  <meyering@lucent.com>
22741
22742         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
22743         rather than with `#if HAVE_UTMPNAME'.
22744
22745 2000-02-02  Jim Meyering  <meyering@lucent.com>
22746
22747         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
22748         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
22749         Reported by Eli Zaretskii.
22750
22751 2000-02-01  Jim Meyering  <meyering@lucent.com>
22752
22753         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
22754
22755 2000-01-31  Jim Meyering  <meyering@lucent.com>
22756
22757         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
22758         functions.  Add the time.h and sys/time.h headers along with the
22759         AC_REQUIRE'ment of AC_HEADER_TIME.
22760
22761 2000-01-31  Jim Meyering  <meyering@lucent.com>
22762
22763         * lib/nanosleep.h (nanosleep): Guard declaration with
22764         `#if ! HAVE_DECL_NANOSLEEP'.
22765         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
22766         the declaration in that vendor's sys/timers.h.
22767         Reported by Christian Krackowizer.
22768
22769         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
22770         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
22771         (ISPRINT): Likewise.
22772         Reported by Tom Tromey.
22773
22774 2000-01-30  Jim Meyering  <meyering@lucent.com>
22775
22776         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
22777
22778         * m4/prereq.m4 (utmp_includes): Define.
22779         Check for ut_user and ut_name members in both struct utmpx
22780         and struct utmp.
22781
22782 2000-01-30  Jim Meyering  <meyering@lucent.com>
22783
22784         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
22785         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
22786         header files where only utmpx.ut_user is declared.
22787
22788         * lib/readutmp.h (UT_USER): Define.
22789
22790 2000-01-29  Jim Meyering  <meyering@lucent.com>
22791
22792         * m4/lib-check.m4: New file containing library-related checks from
22793         fileutils and sh-utils (textutils had none).
22794
22795 2000-01-28  Jim Meyering  <meyering@lucent.com>
22796
22797         * m4/perl.m4: Change format of warning message to look more like that
22798         from the missing script.  Suggestion from François Pinard.
22799
22800 2000-01-25  Jim Meyering  <meyering@lucent.com>
22801
22802         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
22803         well as time.h in the compile check.
22804         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
22805         Fix typo in cross-compiling case: s/yes/no/.
22806
22807 2000-01-23  Jim Meyering  <meyering@lucent.com>
22808
22809         * m4/jm-macros.m4: Move df-related tests here from
22810         fileutils/configure.in
22811
22812         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
22813         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
22814
22815         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
22816         s/space/ac_fsusage_space/.
22817         (jm_FILE_SYSTEM_USAGE): Take two parameters.
22818
22819         * m4/ftruncate.m4: New file (derived from part of
22820         fileutils/configure.in).
22821         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
22822         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
22823
22824         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
22825         AC_SUBST these here, rather than just in sh-util/configure.in, so
22826         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
22827         all the same.
22828         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
22829         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
22830         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
22831         (AC_SUBST(POW_LIBM)): Likewise.
22832         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
22833
22834 2000-01-23  Jim Meyering  <meyering@lucent.com>
22835
22836         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
22837         obstack.c.
22838
22839 2000-01-22  Jim Meyering  <meyering@lucent.com>
22840
22841         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
22842
22843         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
22844
22845         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
22846         configure.in
22847         (AC_CHECK_HEADERS): Likewise for sh-utils.
22848         (AC_CHECK_HEADERS): Likewise for textutils.
22849         Merge the three lists of headers.
22850
22851         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
22852         from fileutils' configure.in.
22853
22854         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
22855         code. Moved tests into their own function (_jm_DECL_HEADERS) in
22856         check-decl.m4.
22857
22858         * m4/check-decl.m4: Use #if rather than #ifdef.
22859         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
22860         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
22861         (_jm_DECL_HEADERS): Define new function.
22862         (jm_CHECK_DECLARATIONS): Require it.
22863
22864 2000-01-22  Jim Meyering  <meyering@lucent.com>
22865
22866         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
22867         [! HAVE_DECL_STRTOULL]: Declare strtoull.
22868         Required for some AIX systems.  Reported by Christian Krackowizer.
22869         [TESTING] (main): New function.
22870
22871         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
22872         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
22873         letters.
22874
22875         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
22876         iswprint.
22877
22878         * lib/strverscmp.c (ISDIGIT): Define.
22879         (strverscmp): Use ISDIGIT, not isdigit.
22880
22881 2000-01-19  Jim Meyering  <meyering@lucent.com>
22882
22883         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
22884         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
22885         defines `struct timespec' in <sys/time.h>
22886
22887         * m4/c-bs-a.m4: Remove uses of changequote altogether.
22888         Thanks to Akim for explaining.
22889
22890 2000-01-17  Paul Eggert  <eggert@twinsun.com>
22891
22892         * lib/nanosleep.c (nanosleep):
22893         Don't use SA_INTERRUPT to decide whether to call sigaction, as
22894         POSIX.1 doesn't require SA_INTERRUPT and some systems
22895         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
22896         it's been part of POSIX.1 since day 1 (in 1988).
22897
22898 2000-01-17  Jim Meyering  <meyering@lucent.com>
22899
22900         * lib/interlock: Remove unused file.  Reported by François Pinard.
22901
22902 2000-01-16  Paul Eggert  <eggert@twinsun.com>
22903
22904         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
22905         alert, backslash, formfeed, and vertical tab unnecessarily in
22906         shell quoting style.
22907
22908 2000-01-16  Jim Meyering  <meyering@lucent.com>
22909
22910         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
22911         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
22912         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
22913         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
22914
22915 2000-01-16  Jim Meyering  <meyering@lucent.com>
22916
22917         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
22918         because the latter didn't work.
22919
22920 2000-01-15  Jim Meyering  <meyering@lucent.com>
22921
22922         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
22923         (AC_REPLACE_FUNCS): Add memcpy and memset.
22924         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
22925         Add strpbrk.
22926         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
22927
22928 2000-01-12  Jim Meyering  <meyering@lucent.com>
22929
22930         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
22931         (jm_PREREQ): Use it.
22932         (jm_PREREQ_READUTMP): New macro.
22933         (jm_PREREQ): Use it.
22934
22935 2000-01-11  Paul Eggert  <eggert@twinsun.com>
22936
22937         Quote multibyte characters correctly.
22938         * m4/c-bs-a.m4: New file.
22939         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
22940         (jm_PREREQ): Use it.
22941
22942 2000-01-11  Paul Eggert  <eggert@twinsun.com>
22943
22944         * m4/uintmax_t.m4: Port to autoconf 2.13.
22945
22946 2000-01-08  Jim Meyering  <meyering@ascend.com>
22947
22948         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
22949         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
22950
22951 2000-01-04  Jim Meyering  <meyering@ascend.com>
22952
22953         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
22954         jm_STRUCT_DIRENT_D_TYPE.
22955         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
22956         jm_STRUCT_DIRENT_D_INO.
22957         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
22958         jm_STRUCT_UTIMBUF.
22959         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
22960         renamings.
22961         * m4/utime.m4: Likewise.
22962
22963         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
22964         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
22965
22966 2000-01-03  Paul Eggert  <eggert@twinsun.com>
22967
22968         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
22969         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
22970
22971 2000-01-02  Jim Meyering  <meyering@ascend.com>
22972
22973         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
22974         remember if this is necessary.
22975
22976 1999-12-26  Jim Meyering  <meyering@ascend.com>
22977
22978         * m4/jm-macros.m4: Use it here.
22979         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
22980
22981 1999-12-23  Jim Meyering  <meyering@ascend.com>
22982
22983         * m4/jm-macros.m4: Check for clock_gettime (moved from
22984         fileutils/configure.in)
22985         Check for gettimeofday.
22986
22987 1999-12-20  Jim Meyering  <meyering@ascend.com>
22988
22989         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
22990         autoconf-2.14a-1999-12-20.
22991
22992 1999-12-19  Jim Meyering  <meyering@ascend.com>
22993
22994         * m4/lstat-slash.m4: New file.
22995         * m4/jm-macros.m4: Use the new macro:
22996         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22997
22998 1999-12-07  Jim Meyering  <meyering@ascend.com>
22999
23000         * m4/perl.m4: Require that File::Compare be available, too.
23001         Too many systems seem to lack it.
23002
23003         * m4/strftime.m4: Add checks for most of the cpp macros tested in
23004         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
23005
23006 1999-11-18  Paul Eggert  <eggert@twinsun.com>
23007
23008         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
23009         problem with the QNX 4.25 shell, which doesn't propagate exit
23010         status of failed commands inside shell assignments.
23011
23012 1999-11-17  Jim Meyering  <meyering@ascend.com>
23013
23014         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
23015
23016 1999-11-07  Jim Meyering  <meyering@ascend.com>
23017
23018         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
23019
23020 1999-11-06  Jim Meyering  <meyering@ascend.com>
23021
23022         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
23023         * m4/jm-macros.m4 (jm_MACROS): Use it here.
23024
23025 1999-11-05  Jim Meyering  <meyering@ascend.com>
23026
23027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
23028         configure.in of textutils, fileutils, and sh-utils into this one
23029         (shared between those packages) file.
23030         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
23031         AC_STRUCT_ST_BLKSIZE.
23032
23033 1999-11-03  Jim Meyering  <meyering@ascend.com>
23034
23035         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
23036         of AC_CHECK_TYPE checks includes unistd.h.
23037         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
23038         Suggestion from Akim Demaille.
23039
23040 1999-10-30  Jim Meyering  <meyering@ascend.com>
23041
23042         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
23043         m4-quoted string.
23044         * m4/ls-mntd-fs.m4: Likewise.
23045         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
23046         * m4/jm-winsz1.m4: Likewise.
23047
23048         * m4/const.m4: Remove file, since the fix made it into the experimental
23049         version of autoconf.
23050         * m4/mktime.m4: Likewise.
23051
23052         * m4/check-type.m4: Remove file, now that the latest version of
23053         AC_CHECK_TYPE takes a third arg to specify additional #includes.
23054
23055         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
23056         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
23057         AC_CHECK_TYPE.
23058
23059 1999-10-04  Jim Meyering  <meyering@ascend.com>
23060
23061         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
23062
23063 1999-09-22  Paul Eggert  <eggert@twinsun.com>
23064
23065         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
23066         2.95.1 bug with HP-UX 10.20.
23067
23068 1999-09-17  Jim Meyering  <meyering@ascend.com>
23069
23070         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
23071         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
23072         due to missing strdup (against sh-utils-2.0).
23073
23074 1999-08-29  Jim Meyering  <meyering@ascend.com>
23075
23076         * m4/jm-macros.m4: Require jm_BISON.
23077         * m4/bison.m4: New file.
23078
23079 1999-08-17  Paul Eggert  <eggert@twinsun.com>
23080
23081         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
23082         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
23083
23084 1999-08-05  Jim Meyering  <meyering@ascend.com>
23085
23086         * m4/getline.m4: Rename test file from conftestdata to conftest.data
23087         to avoid conflicts with `conftest' on 8+3 filesystems.
23088         Suggestion from Eli Zaretskii.
23089
23090 1999-08-04  Jim Meyering  <meyering@ascend.com>
23091
23092         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
23093         fileutils and sh-utils (textutils's getline test was inadequate).
23094         (AM_FUNC_GETLINE): Run this test.
23095         (AC_CHECK_FUNCS): Check for getdelim.
23096         Reported by Bob Proulx.
23097
23098 1999-08-02  Jim Meyering  <meyering@ascend.com>
23099
23100         * m4/jm-macros.m4: Add a comment.
23101
23102 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23103
23104         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
23105         <inttypes.h> defines strtoumax as a macro (and not as a
23106         function).
23107
23108 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23109
23110         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
23111         that we can shift, multiply and divide unsigned long long
23112         values; Ultrix cc can't do it.
23113
23114 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23115
23116         * m4/mktime.m4: New file, which is a preview of what should appear
23117         in the next public autoconf release.
23118
23119 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23120
23121         * m4/lfs.m4: Remove this file.
23122         * m4/largefile.m4: New file.  It contains the old contents of
23123         lfs.m4, except that all names with prefix AC_LFS have been
23124         changed to use the prefix AC_SYS_LARGEFILE instead, to be
23125         compatible with future autoconf versions.  Also, some minor m4
23126         quoting problems have been fixed.
23127
23128 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23129
23130         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
23131         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
23132         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
23133         and simplify the shell code.
23134
23135 1999-08-01  Jim Meyering  <meyering@ascend.com>
23136
23137         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
23138         m4.
23139
23140 1999-07-20  Jim Meyering  <meyering@ascend.com>
23141
23142         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
23143
23144 1999-07-15  Jim Meyering  <meyering@ascend.com>
23145
23146         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
23147
23148 1999-05-22  Jim Meyering  <meyering@ascend.com>
23149
23150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
23151
23152 1999-05-20  Jim Meyering  <meyering@ascend.com>
23153
23154         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
23155         Add a colon after each `then' in case $4 is empty.
23156
23157 1999-05-16  Jim Meyering  <meyering@ascend.com>
23158
23159         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
23160
23161 1999-05-10  Jim Meyering  <meyering@ascend.com>
23162
23163         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
23164
23165         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
23166         AC_FUNC_MKTIME.
23167
23168 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
23169
23170         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
23171
23172 1999-05-04  Paul Eggert  <eggert@twinsun.com>
23173
23174         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
23175         not CPPFLAGS, so that linking works correctly in IRIX.
23176
23177 1999-04-30  Paul Eggert  <eggert@twinsun.com>
23178
23179         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
23180
23181 1999-04-20  Paul Eggert  <eggert@twinsun.com>
23182
23183         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
23184         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
23185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
23186         jm_AC_TYPE_UNSIGNED_LONG_LONG.
23187         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
23188
23189         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
23190
23191 1999-04-20  Jim Meyering  <meyering@ascend.com>
23192
23193         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
23194         AC_REPLACE xstroull if necessary.  From Paul Eggert.
23195         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
23196
23197 1999-04-18  Jim Meyering  <meyering@ascend.com>
23198
23199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
23200         * m4/jm-macros.m4: Use it.
23201
23202 1999-04-06  Jim Meyering  <meyering@ascend.com>
23203
23204         * m4/strftime.m4: Remove test for %f.
23205
23206 1999-03-29  Jim Meyering  <meyering@ascend.com>
23207
23208         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
23209         superset of the AC_TYPE_* checks in the textutils, fileutils,
23210         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
23211         AC_TYPE_PID_T.
23212
23213 1999-03-28  Jim Meyering  <meyering@ascend.com>
23214
23215         * m4/jm-macros.m4: Define GNU_PACKAGE here.
23216         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
23217         replaced e.g., in the *.sh files of the sh-utils.
23218
23219 1999-03-20  Jim Meyering  <meyering@ascend.com>
23220
23221         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
23222         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
23223         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
23224
23225 1999-03-19  Jim Meyering  <meyering@ascend.com>
23226
23227         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
23228
23229 1999-03-12  Jim Meyering  <meyering@ascend.com>
23230
23231         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
23232
23233 1999-03-07  Jim Meyering  <meyering@ascend.com>
23234
23235         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
23236         declared.
23237
23238 1999-02-17  Jim Meyering  <meyering@ascend.com>
23239
23240         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
23241         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
23242
23243 1999-02-07  Jim Meyering  <meyering@ascend.com>
23244
23245         * m4/group-member.m4: New file -- extracted from sh-utils'
23246         configure.in.
23247
23248         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
23249         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
23250
23251 1999-02-06  Jim Meyering  <meyering@ascend.com>
23252
23253         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
23254         * m4/fnmatch.m4: Likewise.
23255         * m4/getgroups.m4: Likewise.
23256         * m4/lstat.m4: Likewise.
23257         * m4/malloc.m4: Likewise.
23258         * m4/putenv.m4: Likewise.
23259         * m4/realloc.m4: Likewise.
23260         * m4/regex.m4: Likewise.
23261         * m4/stat.m4: Likewise.
23262         * m4/strftime.m4: Likewise.
23263         Suggestion from Alain Magloire.
23264
23265         * m4/chown.m4: Use `.$ac_objext', not `.o'.
23266         * m4/fnmatch.m4: Likewise.
23267         * m4/getgroups.m4: Likewise.
23268         * m4/getline.m4: Likewise.
23269         * m4/lstat.m4: Likewise.
23270         * m4/malloc.m4: Likewise.
23271         * m4/memcmp.m4: Likewise.
23272         * m4/putenv.m4: Likewise.
23273         * m4/realloc.m4: Likewise.
23274         * m4/regex.m4: Likewise.
23275         * m4/stat.m4: Likewise.
23276         * m4/strftime.m4: Likewise.
23277         Suggestion from Alain Magloire.
23278
23279         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
23280         an argument.
23281
23282         * m4/regex.m4: Add a run-time Test for proper operation of
23283         re_compile_pattern.
23284
23285 1999-01-31  Jim Meyering  <meyering@ascend.com>
23286
23287         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
23288
23289 1999-01-30  Jim Meyering  <meyering@ascend.com>
23290
23291         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
23292
23293         * m4/jm-mktime.m4: Make this a wrapper around the official
23294         AM_FUNC_MKTIME rather than my private copy, now that the official one
23295         is up to date.
23296         * m4/mktime.m4: Remove file.
23297
23298         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
23299         * m4/uptime.m4: Likewise.
23300         * m4/uintmax_t.m4: Likewise.
23301
23302 1999-01-28  Jim Meyering  <meyering@ascend.com>
23303
23304         * m4/jm-macros.m4: Use jm_AFS.
23305         * m4/afs.m4: New file (from fileutils' configure.in).
23306
23307         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
23308         * m4/chown.m4: Likewise.
23309         * m4/d-ino.m4: Likewise.
23310         * m4/d-type.m4: Likewise.
23311         * m4/fnmatch.m4: Likewise.
23312         * m4/getgroups.m4: Likewise.
23313         * m4/gettext.m4: Likewise.
23314         * m4/jm-mktime.m4: Likewise.
23315         * m4/jm-winsz2.m4: Likewise.
23316         * m4/lcmessage.m4: Likewise.
23317         * m4/ls-mntd-fs.m4: Likewise.
23318         * m4/malloc.m4: Likewise.
23319         * m4/memcmp.m4: Likewise.
23320         * m4/putenv.m4: Likewise.
23321         * m4/realloc.m4: Likewise.
23322         * m4/st_mtim.m4: Likewise.
23323         * m4/strftime.m4: Likewise.
23324
23325 1999-01-16  Jim Meyering  <meyering@ascend.com>
23326
23327         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
23328         (ARGMATCH_DIE_DECL): Define.
23329
23330 1999-01-12  Jim Meyering  <meyering@ascend.com>
23331
23332         * m4/Makefile.am.in: Rewrite to avoid using fmt.
23333         Reported by Lars Hecking.
23334
23335 1999-01-10  Jim Meyering  <meyering@ascend.com>
23336
23337         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
23338         gross kludge.
23339         * m4/inttypes_h.m4: Likewise.
23340         * m4/lstat.m4: Likewise.
23341         * m4/malloc.m4: Likewise.
23342         * m4/readdir.m4: Likewise.
23343         * m4/realloc.m4: Likewise.
23344         * m4/st_dm_mode.m4: Likewise.
23345         * m4/stat.m4: Likewise.
23346         * m4/utimbuf.m4: Likewise.
23347         * m4/utimes.m4: Likewise.
23348
23349         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
23350         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
23351         comments in config.h.in are meaningful.
23352
23353         * m4/jm-macros.m4: Require autoconf-2.13 here.
23354
23355         * m4/regex.m4: By default, don't use the included regex.c on systems
23356         with glibc 2.  Suggestion from Uli Drepper.
23357
23358 1999-01-02  Jim Meyering  <meyering@ascend.com>
23359
23360         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
23361
23362 1998-12-18  Jim Meyering  <meyering@ascend.com>
23363
23364         * m4/Makefile.am.in (Makefile.am): Simplify rule.
23365         Based on a suggestion from Lars Hecking.
23366
23367 1998-11-16  Paul Eggert  <eggert@twinsun.com>
23368
23369         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
23370
23371 1998-11-16  Jim Meyering  <meyering@ascend.com>
23372
23373         * m4/lfs.m4: Double-quote the `uname...` expression.
23374
23375 1998-11-14  Jim Meyering  <meyering@ascend.com>
23376
23377         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
23378         * m4/stat.m4: Likewise.
23379
23380 1998-11-03  Jim Meyering  <meyering@ascend.com>
23381
23382         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
23383         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
23384
23385 1998-10-18  Jim Meyering  <meyering@ascend.com>
23386
23387         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
23388
23389 1998-10-17  Jim Meyering  <meyering@ascend.com>
23390
23391         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
23392         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
23393         calls for those previously hard-coded headers.  Instead, take a new
23394         parameter.
23395         (jm_CHECK_DECLARATIONS): Reflect interface change.
23396         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
23397         (jm_CHECK_DECL_LOCALTIME_R): New macro.
23398
23399         * m4/mktime.m4: Test for spring-forward gap before long-running test.
23400
23401 1998-10-14  Jim Meyering  <meyering@ascend.com>
23402
23403         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
23404         instead of "TZ=America/Vancouver".  From Paul Eggert.
23405
23406 1998-10-11  Jim Meyering  <meyering@ascend.com>
23407
23408         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
23409         This adds a test for a recently added compatibility fix for mktime.c.
23410         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
23411
23412 1998-09-27  Jim Meyering  <meyering@ascend.com>
23413
23414         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
23415
23416         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
23417         ../configure.in, including a change from Gordon Matzigkeit to allow
23418         cross-compiling for the Hurd.
23419
23420         * m4/glibc.m4: New file/macro to test for the GNU C Library
23421         versions 1 and 2.  From Gordon Matzigkeit.
23422         Indent.
23423
23424 1998-09-21  Jim Meyering  <meyering@ascend.com>
23425
23426         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
23427
23428 1998-08-18  Paul Eggert  <eggert@twinsun.com>
23429
23430         Port nanosecond-resolution times to UnixWare 2.1.2 and
23431         pedantic Solaris 2.6.
23432
23433         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
23434         AC_STRUCT_ST_MTIM.
23435         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
23436         Generate name of ns member, instead of just 1 or undef.
23437         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
23438
23439 1998-08-15  Jim Meyering  <meyering@ascend.com>
23440
23441         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
23442         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
23443         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
23444         instead of jm_TYPE_SSIZE_T.
23445
23446 1998-08-12  Jim Meyering  <meyering@ascend.com>
23447
23448         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
23449
23450 1998-08-02  Jim Meyering  <meyering@ascend.com>
23451
23452         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
23453         in acconfig.h manually.
23454
23455 1998-07-31  Paul Eggert  <eggert@twinsun.com>
23456
23457         * m4/st_mtim.m4: New file.
23458
23459 1998-07-28  Jim Meyering  <meyering@ascend.com>
23460
23461         * m4/utimes.m4: Undef stat.
23462
23463 1998-07-25  Jim Meyering  <meyering@ascend.com>
23464
23465         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
23466         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
23467
23468 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
23469
23470         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
23471         uid and gid actually remain unchanged.
23472
23473 1998-07-07  Jim Meyering  <meyering@ascend.com>
23474
23475         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
23476
23477 1998-07-04  Jim Meyering  <meyering@ascend.com>
23478
23479         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
23480         to prove that this macro can be used in packages without regex.c.
23481
23482 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
23483
23484         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
23485         is to be used.
23486
23487 1998-07-03  Jim Meyering  <meyering@ascend.com>
23488
23489         * m4/gettext.m4: Add -lintl if it's found to be necessary.
23490
23491         * m4/gettext.m4: New file -- from gettext-0.10.35.
23492         * m4/lcmessage.m4: Likewise.
23493         * m4/progtest.m4: Likewise.
23494
23495         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
23496         * m4/jm-macros.m4: Require the new macro.
23497
23498 1998-06-29  Jim Meyering  <meyering@ascend.com>
23499
23500         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
23501         for the definition of NGROUPS (used in a system header included
23502         by sys/mount.h).
23503
23504 1998-06-28  Jim Meyering  <meyering@ascend.com>
23505
23506         * m4/ls-mntd-fs.m4: New file.
23507         * m4/fstypename.m4: New file.
23508
23509         * m4/jm-macros.m4: Require the new macro.
23510         * m4/jm-glibc-io.m4: New file.
23511
23512 1998-05-19  Jim Meyering  <meyering@ascend.com>
23513
23514         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
23515         * m4/lchown.m4: New file.
23516
23517         * m4/Makefile.am.in: New file.
23518         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
23519
23520 1998-05-14  Jim Meyering  <meyering@ascend.com>
23521
23522         * m4/Makefile.am (EXTRA_DIST): Add them.
23523         * m4/jm-macros.m4: New file.
23524         * m4/utimbuf.m4: New file.
23525
23526 1998-05-12  Jim Meyering  <meyering@ascend.com>
23527
23528         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
23529
23530 1998-05-11  Jim Meyering  <meyering@ascend.com>
23531
23532         * m4/isc-posix.m4: New file.
23533
23534 1998-05-10  Jim Meyering  <meyering@ascend.com>
23535
23536         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
23537
23538 1998-05-09  Jim Meyering  <meyering@ascend.com>
23539
23540         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
23541         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
23542         with automake.
23543
23544         * m4/ssize_t.m4: New file.
23545         * m4/mktime.m4: Remove file -- the new automake has this now.
23546
23547 1998-04-26  Jim Meyering  <meyering@ascend.com>
23548
23549         * m4/assert.m4: New file.
23550         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
23551
23552 1998-04-05  Jim Meyering  <meyering@ascend.com>
23553
23554         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
23555         (jm_PREREQ): Use it here.
23556
23557 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
23558
23559         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
23560         in acconfig.h.
23561
23562 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
23563
23564         * m4/prereq.m4: New file.
23565         * m4/error.m4: New file.
23566         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
23567
23568 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
23569
23570         * m4/getline.m4: Don't set am_cv_func_working_getline before the
23571         cache-check for the same variable -- that defeated the purpose of
23572         the test; the test program was never run.  This was a problem only
23573         on systems with losing getline functions -- HP-UX 10.20 is one.
23574         Reported by Bjorn Helgaas.
23575
23576 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
23577
23578         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
23579
23580 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
23581
23582         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
23583
23584         * m4/const.m4: New file.  Use an initializer in this declaration
23585         typedef int charset[2]; const charset x;
23586         Reported by Bob Glickstein.
23587
23588 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
23589
23590         * m4/chown.m4: Fix reversed types on -1 args to chown.
23591         From Kaveh Ghazi.
23592
23593 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
23594
23595         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
23596         Add lseek and memchr.
23597
23598         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
23599         T.E.Dickey <dickey@clark.net> said that some older preprocessors
23600         have a 20-character limit on names.
23601
23602 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
23603
23604         * m4/inttypes_h.m4: New file.
23605         * m4/uintmax_t.m4: New file.
23606         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
23607
23608 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
23609   Free Software Foundation, Inc.
23610 Copying and distribution of this file, with or without modification,
23611 are permitted provided the copyright notice and this notice are preserved.