* lib/tempname.c (gen_tempname): Remove variant that invokes
[gnulib.git] / ChangeLog
1 2006-11-09  Bruno Haible  <bruno@clisp.org>
2
3         * lib/tempname.c (gen_tempname): Remove variant that invokes
4         __gen_tempname.
5         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
6         __gen_tempname.
7
8 2006-11-08  Bruno Haible  <bruno@clisp.org>
9
10         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
11         to 'yes' instead of 'cross-compiling'.
12
13 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14
15         * lib/quotearg.h (quotearg_free): New decl.
16         * lib/quotearg.c (quotearg_free): New function.
17         (slot0, nslots, slotvec0, slotvec):
18         Now file-scope so that quotearg_free can get at them.
19
20 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21
22         Sync from Automake.
23         * build-aux/gnupload: Add missing 'gnu' to example URL.
24         Report by Karl Berry.
25
26 2006-11-08  Bruno Haible  <bruno@clisp.org>
27
28         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
29         Suggested by Paul Eggert.
30
31 2006-11-08  Jim Meyering  <jim@meyering.net>
32
33         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
34         It's already included if !_LIBC.
35         (fts_safe_changedir): Add a comment.
36
37 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
38
39         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41         Matthew Woehlke.
42
43         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44         definitions up, to avoid colliding with change below.
45         (static_inline) [HAVE_INLINE]: New macro.
46         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47         Provide extern decls when !HAVE_INLINE.  Do not define unless
48         static_inline is defined, either by us or by xmalloc.c.  Use
49         static_inline rather than static inline.
50         (XCALLOC): Optimize sizeof(T) = 1 case.
51         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
52
53 2006-11-07  Bruno Haible  <bruno@clisp.org>
54
55         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57         AC_C_INLINE.
58         * modules/xalloc (Files): Add m4/inline.m4.
59
60 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61
62         * README: Fix typo.
63         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64         (Miscellanous Notes): ...from this.
65
66 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67
68         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
69         Mention that offsetof should be used instead of sizeof.
70         From Bruno Haible.
71
72 2006-11-07  Bruno Haible  <bruno@clisp.org>
73
74         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75
76 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77
78         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
79         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
80         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
81         (gl_tree_add_before, gl_tree_add_after):
82         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
83         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
84         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
85         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
86         (gl_linked_add_after, gl_linked_add_at): Likewise.
87         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
88         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
89         (gl_tree_add_before, gl_tree_add_after): Likewise.
90         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
91         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
92         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
93
94 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95
96         * lib/gl_oset.h: Use C comment style, not C++ comment style.
97
98 2006-11-06  Bruno Haible  <bruno@clisp.org>
99
100         * m4/inline.m4: New file.
101         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
102         * modules/list (Files): Add m4/inline.m4.
103         * modules/oset (Files): Likewise.
104
105 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
106
107         * lib/idcache.c: Include <stddef.h>, for offsetof.
108         (struct userid.name): Change from char * to a flexible array member.
109         All uses changed.
110         * modules/idcache (Depends-on): Add flexmember.
111
112         * MODULES.html.sh (Core language properties): New module flexmember.
113         * modules/flexmember, m4/flexmember.m4: New files.
114
115         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
116         inline functions that are identical with the old xnmalloc_inline,
117         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
118         that we can avoid some unnecessary integer multiplications and
119         divisions in the common case where the element size is known at
120         compile time.
121         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
122         needed.
123         (xnboundedmalloc): Remove.
124         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
125         arguments, for consistency with rest of this header.
126         (xcharalloc): Rewrite using XNMALLOC.
127         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
128         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
129         versions have been moved to lib/xalloc.h and renamed to be the
130         non-*_inline versions.
131         (xmalloc, xrealloc): Implement without reference to the xnmalloc
132         and xnrealloc functions, since those functions are now inline and
133         now call us.
134         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
135         renaming described above.
136         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
137         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
138         captures the dependency in AC_C_INLINE.
139
140         New module canonicalize-lgpl, proposed by Charles Wilson in
141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
142         with a few small changes afterwards.
143         * MODULES.html.sh (File system functions): New module
144         canonicalize-lgpl.
145         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
146         and canonicalize_file_name.
147         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
148         * modules/canonicalize-lgpl: New files.
149
150 2006-11-05  Bruno Haible  <bruno@clisp.org>
151
152         * gnulib-tool (func_import, func_create_testdir): Create directories
153         also for files in subdirectories of lib/.
154
155 2006-11-05  Bruno Haible  <bruno@clisp.org>
156
157         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
158         ANSI C compliant.
159
160 2006-11-03  Bruno Haible  <bruno@clisp.org>
161
162         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
163         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
164         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
165         (xnboundedmalloc): New inline function.
166         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
167         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
168         xmalloc.
169         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
170         xmalloc.
171         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
172         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
173         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
174         xmalloc.
175         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
176         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
177         xmalloc.
178         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
179         gl_tree_add_after): Use XMALLOC instead of xmalloc.
180         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
181         xmalloc.
182         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
183         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
184         gl_tree_add_after): Use XMALLOC instead of xmalloc.
185         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
186         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
187         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
188         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
189
190 2006-11-03  Bruno Haible  <bruno@clisp.org>
191
192         * lib/c-ctype.h [C++]: Define functions without name mangling.
193         * lib/fwriteerror.h [C++]: Likewise.
194         * lib/gcd.h [C++]: Likewise.
195         * lib/linebreak.h [C++]: Likewise.
196
197 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
198
199         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
200         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
201         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
202         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
203         Check for functions and headers just once.
204         Check for declaration of canonicalize_file_name.
205         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
206
207 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
208
209         * gnulib-tool (func_import): Fix typo in actioncmd.
210
211 2006-11-02  Bruno Haible  <bruno@clisp.org>
212
213         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
214         newline sequence in the Makefile.am snippet as a space, like "make"
215         does.
216         Reported by Roger Persson <perrog@gmail.com>.
217
218 2006-11-01  Bruno Haible  <bruno@clisp.org>
219
220         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
221         already declared in <string.h>.
222         * lib/strcase.h (strncasecmp): Don't declare it if yes.
223
224 2006-11-01  Bruno Haible  <bruno@clisp.org>
225
226         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
227         * lib/strcase.h: Include <string.h>.
228         (strcasecmp): Define to rpl_strcasecmp here.
229
230 2006-11-01  Bruno Haible  <bruno@clisp.org>
231
232         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
233
234 2006-11-01  Eric Blake  <ebb9@byu.net>
235
236         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
237
238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
239
240 2006-10-29  Bruno Haible  <bruno@clisp.org>
241
242         Make it compile in C++ mode.
243         * lib/full-write.c (full_rw): Add a cast.
244
245 2006-11-01  Bruno Haible  <bruno@clisp.org>
246
247         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
248         be POSIX compliant.
249         Reported by Roger Persson <perrog@gmail.com>.
250
251 2006-11-01  Eric Blake  <ebb9@byu.net>
252
253         * lib/getopt_.h: Fix comments.
254
255 2006-10-31  Eric Blake  <ebb9@byu.net>
256
257         * modules/tmpdir (Depends-on): Add sys_stat.
258         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
259         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
260         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
261         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
262         tempname.
263
264 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
265
266         Avoid some C++ diagnostics reported by Bruno Haible.
267         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
268         xmalloc.
269         (quotearg_alloc): Use xcharalloc rather than xmalloc.
270         (struct slotvec): Move to top level.
271         (quotearg_n_options): Rewrite to avoid xmalloc.
272         * lib/xalloc.h (xcharalloc): New function.
273         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
274         [defined __cplusplus]: Add function template that provides result
275         type propagation.  This part of the change is from Bruno Haible.
276
277 2006-10-29  Bruno Haible  <bruno@clisp.org>
278
279         Make it compile in C++ mode.
280         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
281         * lib/strnlen1.c (strnlen1): Cast memchr result.
282         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
283         * lib/clean-temp.c (string_equals, string_hash): Add casts.
284         (create_temp_dir): Rename local variable 'template'.
285         (compile_csharp_using_sscli): Add cast.
286         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
287         * lib/findprog.c (find_in_path): Likewise.
288         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
289         * lib/wait-process.c (register_slave_subprocess): Likewise.
290
291 2006-10-22  Bruno Haible  <bruno@clisp.org>
292
293         * modules/tsearch: New file.
294         * lib/tsearch.h: New file.
295         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
296         * m4/tsearch.m4: New file.
297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
298
299 2006-10-29  Eric Blake  <ebb9@byu.net>
300
301         * lib/arcfour.c: Assume config.h.
302         * lib/arctwo.c: Likewise.
303         * lib/base64.c: Likewise.
304         * lib/check-version.c: Likewise.
305         * lib/crc.c: Likewise.
306         * lib/des.c: Likewise.
307         * lib/gc-gnulib.c: Likewise.
308         * lib/gc-libgcrypt.c: Likewise.
309         * lib/gc-pbkdf2-sha1.c: Likewise.
310         * lib/getaddrinfo.c: Likewise.
311         * lib/getdelim.c: Likewise.
312         * lib/getline.c: Likewise.
313         * lib/hmac-md5.c: Likewise.
314         * lib/hmac-sha1.c: Likewise.
315         * lib/iconvme.c: Likewise.
316         * lib/md2.c: Likewise.
317         * lib/md4.c: Likewise.
318         * lib/memxor.c: Likewise.
319         * lib/read-file.c: Likewise.
320         * lib/readline.c: Likewise.
321         * lib/rijndael-alg-fst.c: Likewise.
322         * lib/rijndael-api-fst.c: Likewise.
323         * lib/xgetdomainname.c: Likewise.
324
325 2006-10-28  Eric Blake  <ebb9@byu.net>
326
327         * lib/xstrndup.c: Assume config.h.
328
329 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
330
331         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
332         stat-macros.h is now for our own macros, whereas stat_h is for
333         macros in the <sys/stat.h> name space.
334         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
335         (STAT_MACROS_H): Remove.
336         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
337         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
338         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
339         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
340         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
341         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
342         Move these macros to ...
343         * lib/stat_.h: here.  Don't include stat-macros.h.
344         * lib/canonicalize.c: Don't include stat-macros.h.
345         * lib/chown.c: Likewise.
346         * lib/euidaccess.c: Likewise.
347         * lib/file-type.c: Likewise.
348         * lib/filemode.c: Likewise.
349         * lib/glob.c: Likewise.
350         * lib/isapipe.c: Likewise.
351         * lib/lchown.c: Likewise.
352         * lib/lstat.c: Likewise.
353         * lib/mkdir-p.c: Likewise.
354         * lib/rmdir.c: Likewise.
355         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
357         unless mkdir isn't declared, to speed up 'configure'.
358         Always create sys/stat.h, since it's unlikely any real sys/stat.h
359         would define all the S_* symbols.
360         * modules/canonicalize (Depends-on):
361         Depend on sys_stat, not stat-macros.
362         * modules/chown: Likewise.
363         * modules/euidaccess: Likewise.
364         * modules/filemode: Likewise.
365         * modules/file-type: Likewise.
366         * modules/glob: Likewise.
367         * modules/isapipe: Likewise.
368         * modules/lchown: Likewise.
369         * modules/lstat: Likewise.
370         * modules/mkancesdirs: Likewise.
371         * modules/rmdir: Likewise.
372         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
373         * modules/modechange: Likewise.
374         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
375         (configure.ac): Remove gl_STAT_MACROS.
376         * modules/sys_stat (Depends-on): Remove stat-macros.
377
378 2006-10-27  Bruno Haible  <bruno@clisp.org>
379
380         * m4/signed.m4: Remove file.
381         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
382         invocation.
383         * modules/vasnprintf (Files): Remove m4/signed.m4.
384
385 2006-10-27  Bruno Haible  <bruno@clisp.org>
386
387         Update to GNU gettext 0.16.
388         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
389         m4/inttypes-h.m4, m4/signed.m4.
390         * m4/gettext.m4: Update to GNU gettext 0.16.
391         * m4/intl.m4: New file, from GNU gettext.
392         * m4/intldir.m4: New file, from GNU gettext.
393         * config/srclist.txt: Update
394
395 2006-10-27  Eric Blake  <ebb9@byu.net>
396
397         * MODULES.html.sh: Document tempname.
398         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
399         dependencies.
400         (Files): Move lib/tempname.c...
401         * modules/tempname: ...to this new module.
402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
403         (gl_PREREQ_TEMPNAME): Move...
404         * m4/tempname.m4: ...to this new file.
405         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
406         * modules/sys_stat (Depends-on): Add stat-macros.
407         * lib/stat_.h (includes): Pick up stat macros.
408         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
409         if stat macros are broken.
410         * lib/tempname.c (includes): No need to include "stat-macros.h".
411         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
412         (direxists, __path_search) [!_LIBC]: Don't compile these in
413         gnulib; the tmpdir module covers that.
414         * lib/tempname.h: New file.
415
416 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
417
418         * COPYING: Explain how gnulib-tool converts licence headers.
419         Almost all wording by Eric Blake.
420
421 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
422
423         * lib/mbchar.h (is_basic_table): Make read-only.
424         * lib/mbchar.c (is_basic_table): Likewise.
425         Reported by John Darrington.
426
427 2006-10-25  Bruno Haible  <bruno@clisp.org>
428
429         * lib/progname.h (set_program_name): Undefine before defining.
430
431 2006-10-25  Bruno Haible  <bruno@clisp.org>
432
433         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
434         false for non-gcc C++ compilers.
435         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
436
437 2006-10-24  Bruno Haible  <bruno@clisp.org>
438
439         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
440         iconv implementations like Irix iconv.
441
442 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
443
444         * modules/vararrays: New file.
445         * m4/vararrays.m4: New file, taken from diffutils.
446         * MODULES.html.sh: New module vararrays.
447
448 2006-10-24  Karl Berry  <karl@gnu.org>
449
450         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
451         Don't call GNU Unix.
452
453 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
454
455         * users.txt: Add Libtool.
456
457         Sync from Libtool:
458
459         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
460
461         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
462         to gnulib's policy of including config.h unconditionally.
463
464 2006-10-24  Bruno Haible  <bruno@clisp.org>
465
466         * modules/wcwidth (Files): Add m4/wint_t.m4.
467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
468         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
469
470 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
471
472         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
473         to pacify GCC with some -W flags enabled.  Problem reported by
474         Bruno Haible.
475
476 2006-10-24  Jim Meyering  <jim@meyering.net>
477
478         * MODULES.html.sh: Remove uinttostr.  It's not a module.
479         Reported by Karl Berry.
480
481 2006-10-23  Bruno Haible  <bruno@clisp.org>
482
483         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
484
485 2006-10-24  Bruno Haible  <bruno@clisp.org>
486
487         * lib/gl_list.h: Use C comment style, not C++ comment style.
488
489 2006-10-23  Eric Blake  <ebb9@byu.net>
490
491         * lib/getaddrinfo.c (includes): Add missing include.
492
493 2006-10-23  Bruno Haible  <bruno@clisp.org>
494             Paul Eggert  <eggert@cs.ucla.edu>
495
496         Ability to rename obstack_free.
497         * lib/obstack.h (__obstack_free): New macro. Declare instead of
498         obstack_free.
499         (obstack_free): Invoke the __obstack_free macro.
500         * lib/obstack.c (obstack_free): Use __obstack_free macro.
501
502 2006-10-23  Bruno Haible  <bruno@clisp.org>
503             Paul Eggert  <eggert@cs.ucla.edu>
504
505         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
506         __argc, __argv from the declaration. (They are defined as macros on
507         mingw.)
508
509 2006-10-22  Bruno Haible  <bruno@clisp.org>
510
511         * doc/gnulib-intro.texi: New file.
512         * doc/gnulib.texi: Include it.
513
514 2006-10-21  Bruno Haible  <bruno@clisp.org>
515
516         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
517         "Introduction", "Miscellanous Notes", "Particular Modules".
518
519 2006-10-21  Bruno Haible  <bruno@clisp.org>
520
521         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
522         Change mostlyclean-local rule to avoid sh syntax error from bash
523         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
524
525 2006-10-23  Jim Meyering  <jim@meyering.net>
526
527         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
528         in place of snprintf.
529
530         * modules/inttostr (Files): Add lib/uinttostr.c.
531         * lib/uinttostr.c (inttostr): New file/function.
532         * lib/inttostr.h (uinttostr): Declare.
533         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
534         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
535         Add uinttostr.
536         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
537
538 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
539
540         * lib/canonicalize.c (ELOOP): Define if not already defined.
541         Problem reported by Bruno Haible in
542         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
543
544 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
545
546         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
547         Problem reported by Perry Smith and Ville Laurikari.
548
549         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
550         uses.
551
552 2006-10-19  Bruno Haible  <bruno@clisp.org>
553
554         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
555         for mingw.
556
557 2006-10-19  Bruno Haible  <bruno@clisp.org>
558
559         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
560         Needed for mingw.
561
562 2006-10-19  Bruno Haible  <bruno@clisp.org>
563
564         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
565
566 2006-10-19  Bruno Haible  <bruno@clisp.org>
567
568         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
569         it.
570
571 2006-10-19  Bruno Haible  <bruno@clisp.org>
572
573         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
574         invocation.
575
576 2006-10-19  Bruno Haible  <bruno@clisp.org>
577
578         * gnulib-tool (func_create_testdir): Don't include ftruncate and
579         mountlist by default.
580
581 2006-10-16  Bruno Haible  <bruno@clisp.org>
582
583         * lib/c-strstr.c: Include c-strstr.h.
584
585 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
586
587         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
588         in a slash.
589
590 2006-10-18  Bruno Haible  <bruno@clisp.org>
591
592         * lib/lock.h [C++]: Wrap definitions in extern "C".
593
594 2006-10-18  Bruno Haible  <bruno@clisp.org>
595
596         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
597         gl_LIBOBJS list.
598
599 2006-10-18  Bruno Haible  <bruno@clisp.org>
600
601         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
602
603 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
604
605         * lib/xstrtol.h: Include gettext.h.
606         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
607         Problem reported by Eric Blake.
608         * modules/xstrtol (Depends-on): Add gettext-h.
609
610 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
611
612         * lib/strftime.c (advance): New macro.
613         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
614         incomplete type, so you can't add 0 to it.  Problem and patch
615         reported by Eelco Dolstra for dietlibc.
616
617 2006-10-18  Jim Meyering  <jim@meyering.net>
618
619         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
620         type for a local, and rename it: s/up/user_proc/.
621
622 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
623
624         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
625         READ_UTMP_USER_PROCESS.
626         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
627
628 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
629
630         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
631         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
632
633 2006-10-17  Eric Blake  <ebb9@byu.net>
634
635         * lib/sigprocmask.c (sigprocmask): Fix typo.
636
637         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
638
639         * modules/clean-temp (Makefile.am): Don't add to make output...
640         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
641         config.h.
642
643 2006-10-17  Bruno Haible  <bruno@clisp.org>
644
645         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
646         differently if DEFAULT_TEXT_DOMAIN is set.
647
648 2006-10-16  Bruno Haible  <bruno@clisp.org>
649
650         * lib/clean-temp.c: Include fwriteerror.h.
651
652 2006-10-16  Bruno Haible  <bruno@clisp.org>
653
654         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
655
656 2006-10-16  Bruno Haible  <bruno@clisp.org>
657
658         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
659         * lib/sigprocmask.h: Include <sys/types.h>.
660         (sigset_t): Use the system's definition if present.
661
662 2006-10-17  Eric Blake  <ebb9@byu.net>
663
664         * lib/xvasprintf.c (includes): Assume config.h.
665         * lib/xasprintf.c (includes): Likewise.
666
667 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
668
669         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
670         at least as wide as intmax_t.
671
672 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
673
674         (Imported from Automake.)
675         * build-aux/gnupload: Update to version 1.1 of directive file.
676
677 2006-10-16  Eric Blake  <ebb9@byu.net>
678
679         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
680         match Automake 1.10a.
681
682 2006-10-14  Bruno Haible  <bruno@clisp.org>
683
684         * modules/sigprocmask: New file.
685         * lib/sigprocmask.h: New file.
686         * lib/sigprocmask.c: New file.
687         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
688         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
689         request sigprocmask.o.
690         (gl_PREREQ_SIGPROCMASK): New macro.
691         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
692         (Depends-on): Add sigprocmask.
693         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
694         gt_SIGNALBLOCKING. Test for 'raise' only once.
695         * lib/fatal-signal.c: Include sigprocmask.h.
696         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
697         unblock_fatal_signals): Define always.
698         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
699         sigprocmask.
700
701 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
702
703         Sync from Automake.
704         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
705         which incorrectly sets the mode of an existing destination
706         directory.  In some cases the unpatched install-sh could do the
707         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
708         system.  We hope this is rare in practice, but it's clearly worth
709         fixing.  Problem reported by Alex Unleashed in
710         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
711         Also, don't bother to check for -m bugs unless we're using -m;
712         suggested by Stepan Kasal.
713
714 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
715
716         Sync from Automake.
717         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
718         `-c' flag, so they appear at the same position as in %FASTDEP%
719         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
720         which ignores unknown options only after the first non-option.
721         Bug report against M4 by Nelson H. F. Beebe.
722
723 2006-10-13  Jim Meyering  <jim@meyering.net>
724
725         Fix a bug in yesterday's change.
726         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
727         p->fts_statp->st_dev would be used uninitialized.
728         Ensures that we always call fts_stat on the very first entry.
729         Miklos Szeredi reported that find -xdev stopped working.
730
731 2006-10-12  Bruno Haible  <bruno@clisp.org>
732
733         * gnulib-tool (func_get_automake_snippet): Append an automatically
734         computed EXTRA_DIST augmentation.
735         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
736         * modules/alloca-opt (Makefile.am): Likewise.
737         * modules/allocsa (Makefile.am): Likewise.
738         * modules/arcfour (Makefile.am): Likewise.
739         * modules/arctwo (Makefile.am): Likewise.
740         * modules/argmatch (Makefile.am): Likewise.
741         * modules/argz (Makefile.am): Likewise.
742         * modules/atexit (Makefile.am): Likewise.
743         * modules/backupfile (Makefile.am): Likewise.
744         * modules/byteswap (Makefile.am): Likewise.
745         * modules/c-strtod (Makefile.am): Likewise.
746         * modules/c-strtold (Makefile.am): Likewise.
747         * modules/calloc (Makefile.am): Likewise.
748         * modules/canon-host (Makefile.am): Likewise.
749         * modules/canonicalize (Makefile.am): Likewise.
750         * modules/chdir-long (Makefile.am): Likewise.
751         * modules/chdir-safer (Makefile.am): Likewise.
752         * modules/check-version (Makefile.am): Likewise.
753         * modules/chown (Makefile.am): Likewise.
754         * modules/cloexec (Makefile.am): Likewise.
755         * modules/close-stream (Makefile.am): Likewise.
756         * modules/closeout (Makefile.am): Likewise.
757         * modules/crc (Makefile.am): Likewise.
758         * modules/csharpexec (Makefile.am): Likewise.
759         * modules/cycle-check (Makefile.am): Likewise.
760         * modules/des (Makefile.am): Likewise.
761         * modules/dev-ino (Makefile.am): Likewise.
762         * modules/dirfd (Makefile.am): Likewise.
763         * modules/dirname (Makefile.am): Likewise.
764         * modules/dup2 (Makefile.am): Likewise.
765         * modules/eealloc (Makefile.am): Likewise.
766         * modules/error (Makefile.am): Likewise.
767         * modules/euidaccess (Makefile.am): Likewise.
768         * modules/exclude (Makefile.am): Likewise.
769         * modules/exitfail (Makefile.am): Likewise.
770         * modules/fcntl-safer (Makefile.am): Likewise.
771         * modules/fcntl (Makefile.am): Likewise.
772         * modules/file-type (Makefile.am): Likewise.
773         * modules/fileblocks (Makefile.am): Likewise.
774         * modules/filemode (Makefile.am): Likewise.
775         * modules/filenamecat (Makefile.am): Likewise.
776         * modules/fnmatch (Makefile.am): Likewise.
777         * modules/fopen-safer (Makefile.am): Likewise.
778         * modules/fpending (Makefile.am): Likewise.
779         * modules/fprintftime (Makefile.am): Likewise.
780         * modules/free (Makefile.am): Likewise.
781         * modules/fsusage (Makefile.am): Likewise.
782         * modules/ftruncate (Makefile.am): Likewise.
783         * modules/fts (Makefile.am): Likewise.
784         * modules/gc-arcfour (Makefile.am): Likewise.
785         * modules/gc-des (Makefile.am): Likewise.
786         * modules/gc-hmac-md5 (Makefile.am): Likewise.
787         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
788         * modules/gc-md4 (Makefile.am): Likewise.
789         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
790         * modules/gc-sha1 (Makefile.am): Likewise.
791         * modules/gc (Makefile.am): Likewise.
792         * modules/getaddrinfo (Makefile.am): Likewise.
793         * modules/getcwd (Makefile.am): Likewise.
794         * modules/getdelim (Makefile.am): Likewise.
795         * modules/getdomainname (Makefile.am): Likewise.
796         * modules/getgroups (Makefile.am): Likewise.
797         * modules/gethostname (Makefile.am): Likewise.
798         * modules/gethrxtime (Makefile.am): Likewise.
799         * modules/getline (Makefile.am): Likewise.
800         * modules/getloadavg (Makefile.am): Likewise.
801         * modules/getlogin_r (Makefile.am): Likewise.
802         * modules/getndelim2 (Makefile.am): Likewise.
803         * modules/getopt (Makefile.am): Likewise.
804         * modules/getpagesize (Makefile.am): Likewise.
805         * modules/getpass-gnu (Makefile.am): Likewise.
806         * modules/getpass (Makefile.am): Likewise.
807         * modules/getsubopt (Makefile.am): Likewise.
808         * modules/gettime (Makefile.am): Likewise.
809         * modules/gettimeofday (Makefile.am): Likewise.
810         * modules/getugroups (Makefile.am): Likewise.
811         * modules/getusershell (Makefile.am): Likewise.
812         * modules/glob (Makefile.am): Likewise.
813         * modules/group-member (Makefile.am): Likewise.
814         * modules/hard-locale (Makefile.am): Likewise.
815         * modules/hash (Makefile.am): Likewise.
816         * modules/hmac-md5 (Makefile.am): Likewise.
817         * modules/hmac-sha1 (Makefile.am): Likewise.
818         * modules/human (Makefile.am): Likewise.
819         * modules/idcache (Makefile.am): Likewise.
820         * modules/imaxabs (Makefile.am): Likewise.
821         * modules/imaxdiv (Makefile.am): Likewise.
822         * modules/inet_ntop (Makefile.am): Likewise.
823         * modules/inet_pton (Makefile.am): Likewise.
824         * modules/intprops (Makefile.am): Likewise.
825         * modules/inttostr (Makefile.am): Likewise.
826         * modules/inttypes (Makefile.am): Likewise.
827         * modules/isapipe (Makefile.am): Likewise.
828         * modules/javaversion (Makefile.am): Likewise.
829         * modules/lchmod (Makefile.am): Likewise.
830         * modules/lchown (Makefile.am): Likewise.
831         * modules/localcharset (Makefile.am): Likewise.
832         * modules/long-options (Makefile.am): Likewise.
833         * modules/lstat (Makefile.am): Likewise.
834         * modules/malloc (Makefile.am): Likewise.
835         * modules/mathl (Makefile.am): Likewise.
836         * modules/mbchar (Makefile.am): Likewise.
837         * modules/md2 (Makefile.am): Likewise.
838         * modules/md4 (Makefile.am): Likewise.
839         * modules/md5 (Makefile.am): Likewise.
840         * modules/memcasecmp (Makefile.am): Likewise.
841         * modules/memchr (Makefile.am): Likewise.
842         * modules/memcmp (Makefile.am): Likewise.
843         * modules/memcoll (Makefile.am): Likewise.
844         * modules/memcpy (Makefile.am): Likewise.
845         * modules/memmem (Makefile.am): Likewise.
846         * modules/memmove (Makefile.am): Likewise.
847         * modules/mempcpy (Makefile.am): Likewise.
848         * modules/memrchr (Makefile.am): Likewise.
849         * modules/memset (Makefile.am): Likewise.
850         * modules/memxor (Makefile.am): Likewise.
851         * modules/mkancesdirs (Makefile.am): Likewise.
852         * modules/mkdir-p (Makefile.am): Likewise.
853         * modules/mkdir (Makefile.am): Likewise.
854         * modules/mkdtemp (Makefile.am): Likewise.
855         * modules/mkstemp (Makefile.am): Likewise.
856         * modules/mktime (Makefile.am): Likewise.
857         * modules/modechange (Makefile.am): Likewise.
858         * modules/mountlist (Makefile.am): Likewise.
859         * modules/nanosleep (Makefile.am): Likewise.
860         * modules/obstack (Makefile.am): Likewise.
861         * modules/openat (Makefile.am): Likewise.
862         * modules/pagealign_alloc (Makefile.am): Likewise.
863         * modules/pathmax (Makefile.am): Likewise.
864         * modules/physmem (Makefile.am): Likewise.
865         * modules/poll (Makefile.am): Likewise.
866         * modules/posixtm (Makefile.am): Likewise.
867         * modules/posixver (Makefile.am): Likewise.
868         * modules/putenv (Makefile.am): Likewise.
869         * modules/quote (Makefile.am): Likewise.
870         * modules/quotearg (Makefile.am): Likewise.
871         * modules/raise (Makefile.am): Likewise.
872         * modules/read-file (Makefile.am): Likewise.
873         * modules/readline (Makefile.am): Likewise.
874         * modules/readlink (Makefile.am): Likewise.
875         * modules/readtokens (Makefile.am): Likewise.
876         * modules/readutmp (Makefile.am): Likewise.
877         * modules/realloc (Makefile.am): Likewise.
878         * modules/regex (Makefile.am): Likewise.
879         * modules/rename-dest-slash (Makefile.am): Likewise.
880         * modules/rename (Makefile.am): Likewise.
881         * modules/rijndael (Makefile.am): Likewise.
882         * modules/rmdir (Makefile.am): Likewise.
883         * modules/rpmatch (Makefile.am): Likewise.
884         * modules/safe-read (Makefile.am): Likewise.
885         * modules/safe-write (Makefile.am): Likewise.
886         * modules/same-inode (Makefile.am): Likewise.
887         * modules/same (Makefile.am): Likewise.
888         * modules/save-cwd (Makefile.am): Likewise.
889         * modules/savedir (Makefile.am): Likewise.
890         * modules/setenv (Makefile.am): Likewise.
891         * modules/settime (Makefile.am): Likewise.
892         * modules/sha1 (Makefile.am): Likewise.
893         * modules/sig2str (Makefile.am): Likewise.
894         * modules/snprintf (Makefile.am): Likewise.
895         * modules/stat-macros (Makefile.am): Likewise.
896         * modules/stat-time (Makefile.am): Likewise.
897         * modules/stdbool (Makefile.am): Likewise.
898         * modules/stdint (Makefile.am): Likewise.
899         * modules/stdlib-safer (Makefile.am): Likewise.
900         * modules/stpcpy (Makefile.am): Likewise.
901         * modules/stpncpy (Makefile.am): Likewise.
902         * modules/strcase (Makefile.am): Likewise.
903         * modules/strcasestr (Makefile.am): Likewise.
904         * modules/strchrnul (Makefile.am): Likewise.
905         * modules/strcspn (Makefile.am): Likewise.
906         * modules/strdup (Makefile.am): Likewise.
907         * modules/strerror (Makefile.am): Likewise.
908         * modules/strftime (Makefile.am): Likewise.
909         * modules/strndup (Makefile.am): Likewise.
910         * modules/strnlen (Makefile.am): Likewise.
911         * modules/strpbrk (Makefile.am): Likewise.
912         * modules/strsep (Makefile.am): Likewise.
913         * modules/strstr (Makefile.am): Likewise.
914         * modules/strtod (Makefile.am): Likewise.
915         * modules/strtoimax (Makefile.am): Likewise.
916         * modules/strtok_r (Makefile.am): Likewise.
917         * modules/strtol (Makefile.am): Likewise.
918         * modules/strtoll (Makefile.am): Likewise.
919         * modules/strtoul (Makefile.am): Likewise.
920         * modules/strtoull (Makefile.am): Likewise.
921         * modules/strtoumax (Makefile.am): Likewise.
922         * modules/strverscmp (Makefile.am): Likewise.
923         * modules/sys_socket (Makefile.am): Likewise.
924         * modules/sys_stat (Makefile.am): Likewise.
925         * modules/sysexits (Makefile.am): Likewise.
926         * modules/time_r (Makefile.am): Likewise.
927         * modules/timegm (Makefile.am): Likewise.
928         * modules/timespec (Makefile.am): Likewise.
929         * modules/tmpfile-safer (Makefile.am): Likewise.
930         * modules/trim (Makefile.am): Likewise.
931         * modules/unistd-safer (Makefile.am): Likewise.
932         * modules/unlinkdir (Makefile.am): Likewise.
933         * modules/unlocked-io (Makefile.am): Likewise.
934         * modules/userspec (Makefile.am): Likewise.
935         * modules/utime (Makefile.am): Likewise.
936         * modules/utimecmp (Makefile.am): Likewise.
937         * modules/utimens (Makefile.am): Likewise.
938         * modules/vasnprintf (Makefile.am): Likewise.
939         * modules/vasprintf (Makefile.am): Likewise.
940         * modules/vsnprintf (Makefile.am): Likewise.
941         * modules/xalloc (Makefile.am): Likewise.
942         * modules/xgetcwd (Makefile.am): Likewise.
943         * modules/xnanosleep (Makefile.am): Likewise.
944         * modules/xreadlink (Makefile.am): Likewise.
945         * modules/xstrtod (Makefile.am): Likewise.
946         * modules/xstrtol (Makefile.am): Likewise.
947         * modules/xstrtold (Makefile.am): Likewise.
948         * modules/yesno (Makefile.am): Likewise.
949         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
950
951 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
952
953         * modules/error (Makefile.am): Distribute files through
954         EXTRA_DIST, not lib_SOURCES.
955
956 2006-10-12  Eric Blake  <ebb9@byu.net>
957
958         * modules/error (Makefile.am): Distribute files in /lib.
959         * modules/obstack (Makefile.am): Likewise.
960
961 2006-10-12  Bruno Haible  <bruno@clisp.org>
962
963         * modules/acl (Makefile.am): Distribute all files in lib/ through
964         EXTRA_DIST.
965         * modules/arcfour (Makefile.am): Likewise.
966         * modules/arctwo (Makefile.am): Likewise.
967         * modules/argmatch (Makefile.am): Likewise.
968         * modules/argz (Makefile.am): Likewise.
969         * modules/atexit (Makefile.am): Likewise.
970         * modules/backupfile (Makefile.am): Likewise.
971         * modules/c-strtod (Makefile.am): Likewise.
972         * modules/c-strtold (Makefile.am): Likewise.
973         * modules/calloc (Makefile.am): Likewise.
974         * modules/canon-host (Makefile.am): Likewise.
975         * modules/canonicalize (Makefile.am): Likewise.
976         * modules/chdir-long (Makefile.am): Likewise.
977         * modules/chdir-safer (Makefile.am): Likewise.
978         * modules/check-version (Makefile.am): Likewise.
979         * modules/chown (Makefile.am): Likewise.
980         * modules/cloexec (Makefile.am): Likewise.
981         * modules/close-stream (Makefile.am): Likewise.
982         * modules/closeout (Makefile.am): Likewise.
983         * modules/crc (Makefile.am): Likewise.
984         * modules/cycle-check (Makefile.am): Likewise.
985         * modules/des (Makefile.am): Likewise.
986         * modules/dirfd (Makefile.am): Likewise.
987         * modules/dirname (Makefile.am): Likewise.
988         * modules/dup2 (Makefile.am): Likewise.
989         * modules/euidaccess (Makefile.am): Likewise.
990         * modules/exclude (Makefile.am): Likewise.
991         * modules/exitfail (Makefile.am): Likewise.
992         * modules/fcntl-safer (Makefile.am): Likewise.
993         * modules/file-type (Makefile.am): Likewise.
994         * modules/fileblocks (Makefile.am): Likewise.
995         * modules/filemode (Makefile.am): Likewise.
996         * modules/filenamecat (Makefile.am): Likewise.
997         * modules/fnmatch (Makefile.am): Likewise.
998         * modules/fopen-safer (Makefile.am): Likewise.
999         * modules/fpending (Makefile.am): Likewise.
1000         * modules/fprintftime (Makefile.am): Likewise.
1001         * modules/free (Makefile.am): Likewise.
1002         * modules/fsusage (Makefile.am): Likewise.
1003         * modules/ftruncate (Makefile.am): Likewise.
1004         * modules/fts (Makefile.am): Likewise.
1005         * modules/gc (Makefile.am): Likewise.
1006         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
1007         * modules/getaddrinfo (Makefile.am): Likewise.
1008         * modules/getcwd (Makefile.am): Likewise.
1009         * modules/getdelim (Makefile.am): Likewise.
1010         * modules/getdomainname (Makefile.am): Likewise.
1011         * modules/getgroups (Makefile.am): Likewise.
1012         * modules/gethostname (Makefile.am): Likewise.
1013         * modules/gethrxtime (Makefile.am): Likewise.
1014         * modules/getline (Makefile.am): Likewise.
1015         * modules/getloadavg (Makefile.am): Likewise.
1016         * modules/getlogin_r (Makefile.am): Likewise.
1017         * modules/getopt (Makefile.am): Likewise.
1018         * modules/getpass (Makefile.am): Likewise.
1019         * modules/getpass-gnu (Makefile.am): Likewise.
1020         * modules/getsubopt (Makefile.am): Likewise.
1021         * modules/gettime (Makefile.am): Likewise.
1022         * modules/gettimeofday (Makefile.am): Likewise.
1023         * modules/getugroups (Makefile.am): Likewise.
1024         * modules/getusershell (Makefile.am): Likewise.
1025         * modules/glob (Makefile.am): Likewise.
1026         * modules/group-member (Makefile.am): Likewise.
1027         * modules/hard-locale (Makefile.am): Likewise.
1028         * modules/hash (Makefile.am): Likewise.
1029         * modules/hmac-md5 (Makefile.am): Likewise.
1030         * modules/hmac-sha1 (Makefile.am): Likewise.
1031         * modules/human (Makefile.am): Likewise.
1032         * modules/idcache (Makefile.am): Likewise.
1033         * modules/imaxabs (Makefile.am): Likewise.
1034         * modules/imaxdiv (Makefile.am): Likewise.
1035         * modules/inet_ntop (Makefile.am): Likewise.
1036         * modules/inet_pton (Makefile.am): Likewise.
1037         * modules/inttostr (Makefile.am): Likewise.
1038         * modules/isapipe (Makefile.am): Likewise.
1039         * modules/lchown (Makefile.am): Likewise.
1040         * modules/long-options (Makefile.am): Likewise.
1041         * modules/lstat (Makefile.am): Likewise.
1042         * modules/malloc (Makefile.am): Likewise.
1043         * modules/mathl (Makefile.am): Likewise.
1044         * modules/mbchar (Makefile.am): Likewise.
1045         * modules/md2 (Makefile.am): Likewise.
1046         * modules/md4 (Makefile.am): Likewise.
1047         * modules/md5 (Makefile.am): Likewise.
1048         * modules/memcasecmp (Makefile.am): Likewise.
1049         * modules/memchr (Makefile.am): Likewise.
1050         * modules/memcmp (Makefile.am): Likewise.
1051         * modules/memcoll (Makefile.am): Likewise.
1052         * modules/memcpy (Makefile.am): Likewise.
1053         * modules/memmem (Makefile.am): Likewise.
1054         * modules/memmove (Makefile.am): Likewise.
1055         * modules/mempcpy (Makefile.am): Likewise.
1056         * modules/memrchr (Makefile.am): Likewise.
1057         * modules/memset (Makefile.am): Likewise.
1058         * modules/memxor (Makefile.am): Likewise.
1059         * modules/mkancesdirs (Makefile.am): Likewise.
1060         * modules/mkdir (Makefile.am): Likewise.
1061         * modules/mkdir-p (Makefile.am): Likewise.
1062         * modules/mkdtemp (Makefile.am): Likewise.
1063         * modules/mkstemp (Makefile.am): Likewise.
1064         * modules/mktime (Makefile.am): Likewise.
1065         * modules/modechange (Makefile.am): Likewise.
1066         * modules/mountlist (Makefile.am): Likewise.
1067         * modules/nanosleep (Makefile.am): Likewise.
1068         * modules/openat (Makefile.am): Likewise.
1069         * modules/pagealign_alloc (Makefile.am): Likewise.
1070         * modules/physmem (Makefile.am): Likewise.
1071         * modules/poll (Makefile.am): Likewise.
1072         * modules/posixtm (Makefile.am): Likewise.
1073         * modules/posixver (Makefile.am): Likewise.
1074         * modules/putenv (Makefile.am): Likewise.
1075         * modules/quote (Makefile.am): Likewise.
1076         * modules/quotearg (Makefile.am): Likewise.
1077         * modules/raise (Makefile.am): Likewise.
1078         * modules/read-file (Makefile.am): Likewise.
1079         * modules/readline (Makefile.am): Likewise.
1080         * modules/readlink (Makefile.am): Likewise.
1081         * modules/readtokens (Makefile.am): Likewise.
1082         * modules/readutmp (Makefile.am): Likewise.
1083         * modules/realloc (Makefile.am): Likewise.
1084         * modules/regex (Makefile.am): Likewise.
1085         * modules/rename (Makefile.am): Likewise.
1086         * modules/rename-dest-slash (Makefile.am): Likewise.
1087         * modules/rijndael (Makefile.am): Likewise.
1088         * modules/rmdir (Makefile.am): Likewise.
1089         * modules/rpmatch (Makefile.am): Likewise.
1090         * modules/safe-read (Makefile.am): Likewise.
1091         * modules/safe-write (Makefile.am): Likewise.
1092         * modules/same (Makefile.am): Likewise.
1093         * modules/save-cwd (Makefile.am): Likewise.
1094         * modules/savedir (Makefile.am): Likewise.
1095         * modules/setenv (Makefile.am): Likewise.
1096         * modules/settime (Makefile.am): Likewise.
1097         * modules/sha1 (Makefile.am): Likewise.
1098         * modules/sig2str (Makefile.am): Likewise.
1099         * modules/snprintf (Makefile.am): Likewise.
1100         * modules/stdlib-safer (Makefile.am): Likewise.
1101         * modules/stpcpy (Makefile.am): Likewise.
1102         * modules/stpncpy (Makefile.am): Likewise.
1103         * modules/strcase (Makefile.am): Likewise.
1104         * modules/strcasestr (Makefile.am): Likewise.
1105         * modules/strchrnul (Makefile.am): Likewise.
1106         * modules/strcspn (Makefile.am): Likewise.
1107         * modules/strdup (Makefile.am): Likewise.
1108         * modules/strerror (Makefile.am): Likewise.
1109         * modules/strftime (Makefile.am): Likewise.
1110         * modules/strndup (Makefile.am): Likewise.
1111         * modules/strnlen (Makefile.am): Likewise.
1112         * modules/strpbrk (Makefile.am): Likewise.
1113         * modules/strsep (Makefile.am): Likewise.
1114         * modules/strstr (Makefile.am): Likewise.
1115         * modules/strtod (Makefile.am): Likewise.
1116         * modules/strtoimax (Makefile.am): Likewise.
1117         * modules/strtok_r (Makefile.am): Likewise.
1118         * modules/strtol (Makefile.am): Likewise.
1119         * modules/strtoll (Makefile.am): Likewise.
1120         * modules/strtoul (Makefile.am): Likewise.
1121         * modules/strtoull (Makefile.am): Likewise.
1122         * modules/strtoumax (Makefile.am): Likewise.
1123         * modules/strverscmp (Makefile.am): Likewise.
1124         * modules/time_r (Makefile.am): Likewise.
1125         * modules/timegm (Makefile.am): Likewise.
1126         * modules/tmpfile-safer (Makefile.am): Likewise.
1127         * modules/unistd-safer (Makefile.am): Likewise.
1128         * modules/unlinkdir (Makefile.am): Likewise.
1129         * modules/userspec (Makefile.am): Likewise.
1130         * modules/utime (Makefile.am): Likewise.
1131         * modules/utimecmp (Makefile.am): Likewise.
1132         * modules/utimens (Makefile.am): Likewise.
1133         * modules/vasnprintf (Makefile.am): Likewise.
1134         * modules/vasprintf (Makefile.am): Likewise.
1135         * modules/vsnprintf (Makefile.am): Likewise.
1136         * modules/xalloc (Makefile.am): Likewise.
1137         * modules/xgetcwd (Makefile.am): Likewise.
1138         * modules/xnanosleep (Makefile.am): Likewise.
1139         * modules/xreadlink (Makefile.am): Likewise.
1140         * modules/xstrtod (Makefile.am): Likewise.
1141         * modules/xstrtol (Makefile.am): Likewise.
1142         * modules/xstrtold (Makefile.am): Likewise.
1143         * modules/yesno (Makefile.am): Likewise.
1144
1145 2006-10-12  Jim Meyering  <jim@meyering.net>
1146
1147         * m4/getloadavg.m4: Revert the change below.
1148
1149         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
1150         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
1151         fail with a symlink, which is what coreutils' ./bootstrap now
1152         creates by default.
1153
1154 2006-10-12  Bruno Haible  <bruno@clisp.org>
1155
1156         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
1157         mingw.
1158         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
1159         MSVC and mingw explicitly.
1160
1161 2006-10-11  Simon Josefsson  <jas@extundo.com>
1162             Bruno Haible  <bruno@clisp.org>
1163
1164         Add support for multiple gnulib-tool invocations in the scope of a
1165         single configure.ac file.
1166         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
1167         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
1168         with the same contents as the _LIBADD variable.
1169         (func_emit_initmacro_start, func_emit_initmacro_end,
1170         func_emit_initmacro_done): New functions.
1171         (func_import, func_create_testdir): Invoke them. Allow the identifiers
1172         gl_LIBOBJS and gl_LTLIBOBJS.
1173
1174 2006-10-11  Bruno Haible  <bruno@clisp.org>
1175
1176         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
1177         (func_create_testdir): Don't create po/Makefile.am, don't invoke
1178         autoreconf. Instead, invoke autopoint explicitly but move back the
1179         *.m4 files from gnulib.
1180
1181 2006-10-11  Bruno Haible  <bruno@clisp.org>
1182
1183         * gnulib-tool (func_usage): Make module names after --create-testdir
1184         optional.
1185         (func_create_testdir): If no module was specified, use nearly all
1186         modules.
1187
1188 2006-10-12  Jim Meyering  <jim@meyering.net>
1189
1190         Big performance improvement for fts-based tools that use FTS_NOSTAT.
1191         Avoid spurious inode-mismatch problems on non-POSIX file systems.
1192         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
1193         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
1194         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
1195         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
1196         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
1197         (fts_set_stat_required): New function.
1198         (fts_open): Defer the calls to fts_stat, if possible or requested.
1199         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
1200         into fts_stat itself.
1201         (fts_read): Perform any required (deferred) fts_stat call.
1202         (fts_build): Likewise, for the directory we're about to open and read.
1203         In the readdir loop, carefully decide whether each entry will require
1204         an eventual call to fts_stat, using dirent.d_type info if available.
1205         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
1206         a command line argument into this function.  Update all callers.
1207         Map a return value of FTS_DOT to FTS_D for a command line argument.
1208         * modules/fts (Depends-on): Add d-type.  Alphabetize.
1209         Thanks to Miklos Szeredi for his tenacity and for the initial
1210         bug report about "find" failing on a FUSE-based file system.
1211
1212         * lib/fts.c (fts_open): Use consistent indentation.
1213
1214 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1215
1216         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
1217         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
1218         reported by Jim Meyering.  All uses of cache variables renamed
1219         to match Autoconf's.
1220         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
1221         the other one.
1222
1223         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
1224         Fix misspelling in diagnostic.
1225
1226 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1227
1228         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
1229         defined.  Problem reported by Matthew Woehlke.
1230
1231         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
1232         Add support for Tandem NonStop R series.
1233         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
1234         Use new macro.
1235
1236         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
1237         (has_trailing_slash): Omit size arg; all callers changed.
1238         Omit 'inline', since it doesn't help performance and we'd
1239         need to configure it.
1240         Don't count //, ///, etc. as having a trailing slash.
1241         As a side effect, this removes a C99ism reported by Matthew Woehlke.
1242         (rpl_rename_dest_slash): On failure, use rename's errno rather
1243         than (in some cases) an incorrect or junk errno.
1244         Simplify code by removing need to compute length; this does
1245         cause it to make two passes instead of one over the file name,
1246         but it's worth it.
1247
1248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
1249         change, since Autoconf's version may no longer be appropriate now
1250         that we are using CVS Autoconf's version.  Add support for Tandem.
1251
1252 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1253             Bruno Haible  <bruno@clisp.org>
1254
1255         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
1256         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
1257         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
1258         gl_AC_TYPE_LONG_LONG.
1259
1260         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
1261         instead of HAVE_LONG_LONG.
1262         * lib/printf-args.c (printf_fetchargs): Likewise.
1263         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1264         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1265         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
1266         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
1267         gl_AC_TYPE_LONG_LONG.
1268
1269 2006-10-11  Bruno Haible  <bruno@clisp.org>
1270
1271         * m4/longlong.m4: Add comments.
1272         * m4/ulonglong.m4: Likewise.
1273
1274 2006-10-10  Bruno Haible  <bruno@clisp.org>
1275
1276         Make it possible to #define stpcpy, strdup to aliases.
1277         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
1278         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
1279
1280 2006-10-10  Bruno Haible  <bruno@clisp.org>
1281
1282         Make it possible to #define gcd to an alias.
1283         * lib/gcd.c: Include config.h.
1284
1285 2006-10-10  Bruno Haible  <bruno@clisp.org>
1286
1287         Make it possible to #define c_isascii to an alias.
1288         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
1289         defined. Undefine the macros before defining them, to avoid gcc
1290         warnings.
1291         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
1292         define NO_C_CTYPE_MACROS early.
1293
1294 2006-10-10  Bruno Haible  <bruno@clisp.org>
1295
1296         Make it possible to #define set_program_name to an alias.
1297         * lib/progname.c: Don't undefine set_program_name; instead, undefine
1298         ENABLE_RELOCATABLE early.
1299
1300 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1301
1302         Port to Tandem NSK OSS, which has 64-bit signed int but at most
1303         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
1304         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
1305         More generally, don't assume that 64-bit signed int is available
1306         if unsigned int is, and vice versa.
1307         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
1308         unsigned symbols, not on their signed counterparts.
1309         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
1310         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
1311         (UINT64_C, UINTMAX_C):
1312         Likewise.
1313         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
1314         unsigned counterparts.
1315         (Have_long_long, Unsigned): New macros.
1316         (Int): Renamed from INT.
1317         (strtoimax): Use the new macros.
1318         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
1319         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
1320         * modules/inttypes (inttypes.h): Substitute
1321         HAVE_UNSIGNED_LONG_LONG_INT.
1322         * modules/stdint (stdint.h): Likewise.
1323         (Files): Add m4/ulonglong.m4.
1324
1325 2006-10-10  Bruno Haible  <bruno@clisp.org>
1326
1327         Fix a gcc -Wshadow warning.
1328         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
1329         to 'bucket'.
1330         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
1331         gl_linked_indexof_from_to): Likewise.
1332         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
1333         Likewise.
1334         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
1335         Likewise.
1336         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
1337         Reported by Eric Blake.
1338
1339 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
1340
1341         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
1342         for NetBSD.  Problem reported by Bruno Haible.
1343
1344 2006-10-09  Jim Meyering  <jim@meyering.net>
1345
1346         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
1347         Patch from Bruno Haible.
1348
1349 2006-10-09  Jim Meyering  <jim@meyering.net>
1350
1351         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
1352         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
1353         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
1354
1355 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1356
1357         Don't include <config.h> twice; this doesn't work in some cases,
1358         e.g., when config.h has "#define intmax_t long long int" and
1359         we include <config.h>, <inttypes.h>, <config.h> in that order.
1360         Problem reported by Matthew Woehlke in:
1361         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
1362         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
1363         * lib/fts-cycle.c: Don't include config.h.
1364         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
1365         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
1366         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
1367         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
1368         inttypes.h.
1369         * lib/xstrtoumax.c: Likewise.
1370         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
1371         __strtol and the like, so that this module is more like its siblings.
1372         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
1373         Remove; no longer needed now that we assume gnulib inttypes.h.
1374
1375 2006-10-08  Bruno Haible  <bruno@clisp.org>
1376
1377         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
1378         option.
1379
1380 2006-10-07  Jim Meyering  <jim@meyering.net>
1381
1382         * modules/inttypes (inttypes.h): Revert what seems to have been
1383         an inadvertent part of today's change: use "|", not "/" in the
1384         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
1385
1386 2006-10-07  Bruno Haible  <bruno@clisp.org>
1387
1388         * modules/sublist: New file.
1389
1390 2006-10-07  Bruno Haible  <bruno@clisp.org>
1391
1392         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
1393         * modules/argz (argz.h): Likewise.
1394         * modules/arpa_inet (arpa/inet.h): Likewise.
1395         * modules/byteswap (byteswap.h): Likewise.
1396         * modules/configmake (configmake.h): Likewise.
1397         * modules/fcntl (fcntl.h): Likewise.
1398         * modules/fnmatch (fnmatch.h): Likewise.
1399         * modules/getopt (getopt.h): Likewise.
1400         * modules/glob (glob.h): Likewise.
1401         * modules/inttypes (inttypes.h): Likewise.
1402         * modules/netinet_in (netinet/in.h): Likewise.
1403         * modules/poll (poll.h): Likewise.
1404         * modules/stdbool (stdbool.h): Likewise.
1405         * modules/stdint (stdint.h): Likewise.
1406         * modules/sys_select (sys/select.h): Likewise.
1407         * modules/sys_socket (sys/socket.h): Likewise.
1408         * modules/sys_stat (sys/stat.h): Likewise.
1409         * modules/sysexits (sysexits.h): Likewise.
1410         * modules/unistd (unistd.h): Likewise.
1411         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1412         Add a "DO NOT EDIT" comment to the generated file.
1413         (func_import): Likewise for gnulib-comp.m4.
1414
1415 2006-10-07  Bruno Haible  <bruno@clisp.org>
1416
1417         * lib/gl_sublist.h: New file.
1418         * lib/gl_sublist.c: New file.
1419
1420 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
1421
1422         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
1423         name (relative to the original working directory) and the file
1424         name component (relative to the temporary working directory).  All
1425         callers changed.
1426         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
1427         * lib/mkdir-p.c (make_dir_parents): Likewise.
1428         * lib/mkdir-p.h (make_dir_parents): Likewise.
1429
1430 2006-10-06  Eric Blake  <ebb9@byu.net>
1431
1432         Define several macros for use by the clean-temp module.
1433         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
1434         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
1435         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
1436
1437         * lib/clean-temp.h (close_stream_temp): New declaration.
1438         * lib/clean-temp.c (includes): Pull in headers according to what
1439         other modules are in use.
1440         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
1441
1442 2006-10-06  Bruno Haible  <bruno@clisp.org>
1443
1444         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
1445         instead of fopen, fwriteerror.
1446
1447 2006-10-06  Bruno Haible  <bruno@clisp.org>
1448
1449         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
1450         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
1451         int.
1452         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
1453         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
1454         Return an error indicator.
1455         Suggested by Eric Blake.
1456
1457 2006-10-06  Bruno Haible  <bruno@clisp.org>
1458
1459         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
1460         Reported by Eric Blake.
1461
1462 2006-10-06  Bruno Haible  <bruno@clisp.org>
1463
1464         * modules/closeout (Description): Mention stderr too.
1465
1466 2006-10-06  Bruno Haible  <bruno@clisp.org>
1467         and Paul Eggert  <eggert@cs.ucla.edu>
1468
1469         * lib/closeout.c (close_stdout): Also close stderr.
1470         * lib/closeout.h: Update comment.
1471
1472 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1473
1474         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
1475         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
1476         * lib/dirchownmod.c: Include lchown.h.
1477         * lib/lchown.c: Don't include files that lchown.h now includes.
1478         Don't declare chown, since lchown.h now does that.
1479         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
1480         (lchown): Define to rpl_chown if lchown is declared but
1481         does not exist.  Declare using a prototype if lchown is not
1482         declared.  Add a copyright notice.
1483         * lib/mkstemp.h: Include <unistd.h>.
1484         * lib/openat.c: Include lchown.h.
1485
1486         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
1487         we now test for that separately.
1488         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
1489         rather than O_NOFOLLOW, when testing whether it's possible to
1490         avoid a race condition reliably.
1491         * lib/savewd.c (savewd_chdir): Likewise.
1492
1493         Remove macros that are no longer needed now that stdint.h is
1494         reliable.
1495         * lib/fsusage.c (UINTMAX_MAX): Remove.
1496         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
1497         * lib/utimecmp.c (SIZE_MAX): Remove.
1498
1499         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
1500
1501         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
1502         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
1503         O_NOATIME works.
1504
1505 2006-10-05  Bruno Haible  <bruno@clisp.org>
1506
1507         * lib/gl_list.h (gl_sortedlist_search_from_to,
1508         gl_sortedlist_indexof_from_to): New declarations.
1509         (gl_list_implementation): New fields sortedlist_search_from_to,
1510         sortedlist_indexof_from_to.
1511         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
1512         inline functions.
1513         * lib/gl_list.c (gl_sortedlist_search_from_to,
1514         gl_sortedlist_indexof_from_to): New functions.
1515         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
1516         function.
1517         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
1518         (gl_array_sortedlist_search_from_to): New function.
1519         (gl_array_list_implementation): Update.
1520         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
1521         function.
1522         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
1523         (gl_carray_sortedlist_search_from_to): New function.
1524         (gl_carray_list_implementation): Update.
1525         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
1526         gl_linked_sortedlist_indexof_from_to): New functions.
1527         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1528         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1529         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
1530         gl_tree_sortedlist_indexof_from_to): New functions.
1531         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1532         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1533         Update.
1534         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1535         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
1536         Update.
1537
1538 2006-10-05  Bruno Haible  <bruno@clisp.org>
1539
1540         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
1541         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
1542         (struct gl_list_implementation): Add fields search_from_to,
1543         indexof_from_to. Remove fields search, indexof.
1544         (gl_list_search): Use the search_from_to method.
1545         (gl_list_search_from, gl_list_search_from_to): New functions.
1546         (gl_list_indexof): Use the indexof_from_to method.
1547         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
1548         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
1549         (gl_list_search_from, gl_list_search_from_to): New functions.
1550         (gl_list_indexof): Use the indexof_from_to method.
1551         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
1552         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
1553         gl_array_indexof. Add start_index, end_index arguments.
1554         (gl_array_search_from_to): Renamed from gl_array_search. Add
1555         start_index, end_index arguments.
1556         (gl_array_remove, gl_array_list_implementation): Update.
1557         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
1558         gl_carray_indexof. Add start_index, end_index arguments.
1559         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
1560         start_index, end_index arguments.
1561         (gl_carray_remove, gl_carray_list_implementation): Update.
1562         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
1563         gl_linked_search. Add start_index, end_index arguments.
1564         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
1565         start_index, end_index arguments.
1566         (gl_linked_remove): Update.
1567         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1568         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1569         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
1570         field to 'size_t'.
1571         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
1572         gl_tree_search. Add start_index, end_index arguments.
1573         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
1574         start_index, end_index arguments.
1575         (gl_tree_remove): Update.
1576         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1577         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1578         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
1579         function.
1580         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
1581         gl_tree_search. Add start_index, end_index arguments.
1582         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
1583         start_index, end_index arguments.
1584         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1585         Update.
1586         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1587
1588 2006-10-05  Bruno Haible  <bruno@clisp.org>
1589
1590         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
1591
1592         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1593         fwriteerror_temp): New declarations.
1594         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
1595         (descriptors): New variable.
1596         (cleanup): First, close the descriptors.
1597         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
1598         fclose_temp, fwriteerror_temp): New functions.
1599
1600 2006-10-04  Jim Meyering  <jim@meyering.net>
1601
1602         * lib/fts.c (fts_open): Tiny comment change.
1603
1604 2006-10-04  Bruno Haible  <bruno@clisp.org>
1605
1606         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
1607         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
1608         gl_LOCK_BODY.
1609         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
1610         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
1611         gl_LOCK_EARLY_BODY.
1612         (gl_LOCK): Require gl_LOCK_BODY.
1613
1614 2006-10-04  Bruno Haible  <bruno@clisp.org>
1615
1616         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
1617         (gl_oset_search_atleast): New declaration.
1618         (struct gl_oset_implementation): Add field 'search_atleast'.
1619         (gl_oset_search_atleast): New inline function.
1620         * lib/gl_oset.c (gl_oset_search_atleast): New function.
1621         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
1622         (gl_array_oset_implementation): Update.
1623         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
1624         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
1625         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
1626
1627 2006-10-04  Bruno Haible  <bruno@clisp.org>
1628
1629         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
1630
1631 2006-10-03  Bruno Haible  <bruno@clisp.org>
1632
1633         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
1634         from gl_avltreehash_list_implementation.
1635
1636 2006-10-03  Bruno Haible  <bruno@clisp.org>
1637
1638         * lib/gl_oset.c (gl_oset_add): Fix return type.
1639
1640 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
1641
1642         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
1643
1644 2006-10-02  Eric Blake  <ebb9@byu.net>
1645
1646         * modules/strnlen (Depends-on): Add extensions.
1647
1648 2006-10-02  Eric Blake  <ebb9@byu.net>
1649
1650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
1651         definition in 2.60+.
1652
1653 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1654
1655         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
1656         checks.
1657
1658 2006-10-02  Bruno Haible  <bruno@clisp.org>
1659
1660         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
1661         to the AUTOMAKE_OPTIONS.
1662         Reported by Jim Meyering.
1663
1664 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
1665
1666         Work around bug in Solaris 10 /proc file system:
1667         /proc/self/fd/NNN/.. isn't the parent directory of
1668         the directory whose file descriptor is NNN.  This needs to
1669         be worked around at run time, not compile time, since a
1670         program might be built on Solaris 8, where things work, and
1671         run on Solaris 10.
1672         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
1673         to use the following interface instead:
1674         (OPENAT_BUFFER_SIZE): New macro.
1675         (openat_proc_name): New function.
1676         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
1677         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
1678         Likewise.
1679         * lib/openat-proc.c: New file.
1680         * modules/openat (Files): Add lib/openat-proc.c.
1681         (Depends-on): Add same-inode, stdbool.
1682         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
1683
1684 2006-09-29  Bruno Haible  <bruno@clisp.org>
1685
1686         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
1687         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
1688         argument. Set stdout_closed before testing for ferror, not after.
1689         (fwriteerror, fwriteerror_no_ebadf): New functions.
1690
1691 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1692
1693         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
1694
1695 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
1696
1697         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
1698         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
1699
1700 2006-09-28  Jim Meyering  <jim@meyering.net>
1701
1702         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
1703         Include <unistd.h>.
1704
1705 2006-09-28  Bruno Haible  <bruno@clisp.org>
1706
1707         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
1708         * modules/linkedhash-list (Depends-on): Likewise.
1709         * modules/rbtreehash-list (Depends-on): Likewise.
1710
1711 2006-09-28  Bruno Haible  <bruno@clisp.org>
1712
1713         * lib/strndup.h: Simplify the redefinition of strndup.
1714         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
1715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
1716
1717 2006-09-28  Bruno Haible  <bruno@clisp.org>
1718
1719         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
1720         * lib/gl_linkedhash_list.c: Likewise.
1721         * lib/gl_rbtreehash_list.c: Likewise.
1722
1723 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
1724
1725         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
1726         getaddrinfo.
1727
1728         * lib/__fpending.h: Don't include <stdio_ext.h> unless
1729         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
1730         it causes <stdio_ext.h> to cause a compile-time error.
1731         Problem reported by Nelson H. F. Beebe.
1732         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
1733         of HAVE_DECL___PENDING.
1734
1735         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
1736         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
1737         declaration.
1738
1739 2006-09-27  Jim Meyering  <jim@meyering.net>
1740
1741         This file could end up with a definition for a function
1742         named __strndup, rather than rpl_strndup on a system with
1743         incomplete weak_alias support.
1744         * lib/strndup.c (strndup): Rename from __strndup.
1745         Remove #defines that used to map __strndup to strndup.
1746         Don't use K&R prototypes.
1747         Remove LIBC-related code, since this file is not sync'd with glibc.
1748         * lib/strndup.h: Revamp, accordingly.
1749         * m4/strndup.m4: Modernize.
1750
1751 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         * modules/savewd (Depends-on): Add 'raise'.
1754         * lib/savewd.c: Include <signal.h>, for 'raise'.
1755
1756 2006-09-26  Jim Meyering  <jim@meyering.net>
1757
1758         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
1759         when we detect Darwin 8.7.0's acl_get_file bug.
1760         Rearrange to perform the new (below) run-test while $LIBS
1761         contains any acl-related library.  Set USE_ACL at the end.
1762         (gl_ACL_GET_FILE): New function.
1763
1764 2006-09-26  Eric Blake  <ebb9@byu.net>
1765
1766         * lib/verror.c: Include <config.h> unconditionally.
1767
1768 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1769
1770         * modules/clock-time (Maintainer): Add self.
1771         * modules/getlogin_r (Depends-on): Add extensions.
1772
1773 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1774
1775         * modules/clock-time: New module.
1776         * modules/nanosleep (Depends-on): Add clock-time.
1777         * modules/gethrxtime (Depends-on): Likewise.
1778         * modules/gettime (Depends-on): Likewise.
1779         * modules/settime (Depends-on): Likewise.
1780
1781         * modules/fts-lgpl: Depend on openat.
1782         * modules/mkancesdirs: Depend on savewd.
1783         * modules/mkdir-p: Likewise.
1784
1785 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1786
1787         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
1788
1789         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
1790         `gl_have_arbitrary_file_name_length_limit' to
1791         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
1792         actually works between configure runs.
1793
1794 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1795             Bruno Haible  <bruno@clisp.org>
1796
1797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
1798
1799 2006-09-25  Jim Meyering  <jim@meyering.net>
1800
1801         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
1802         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
1803
1804 2006-09-25  Eric Blake  <ebb9@byu.net>
1805
1806         * gnulib-tool (func_import, func_create_testdir): Fix typos in
1807         exec's in 2006-09-18 patch when shuffling fds.
1808
1809 2006-09-25  Bruno Haible  <bruno@clisp.org>
1810
1811         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
1812         Reported by Jim Meyering.
1813
1814 2006-09-24  Jim Meyering  <jim@meyering.net>
1815
1816         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
1817         compare a pointer against a literal "0".  That caused failures with
1818         at least HP-UX's hpcc.
1819
1820 2006-09-22  Simon Josefsson  <jas@extundo.com>
1821
1822         * modules/gc-sha1:
1823         * modules/gc-md4:
1824         * modules/gc-hmac-sha1:
1825         * modules/gc-hmac-md5:
1826         * modules/gc-des:
1827         * modules/gc-arcfour: Distribute more files.
1828
1829 2006-09-22  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1830
1831         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
1832         (gl_linked_iterator_from_to): Initialize struct completely.
1833         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
1834         (gl_tree_iterator_from_to): Likewise
1835         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
1836         * lib/gl_array_list.c [lint] (gl_array_iterator)
1837         (gl_array_iterator_from_to): Likewise.
1838         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
1839         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
1840         (gl_carray_iterator_from_to): Likewise.
1841
1842         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
1843         * lib/md4.c (md4_process_block): Remove unused variable.
1844         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
1845         parentheses for clarity.
1846
1847 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1848
1849         * modules/bison-i18n (Depends-on): Add gettext.
1850
1851 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1852
1853         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
1854         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1855         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
1856         also add missing comma that caused broken test.
1857         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
1858         stdlib.h, for `abort'.
1859         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
1860         variables.
1861         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
1862         include unistd.h if present, for `rmdir'.
1863         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
1864         variables.
1865         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
1866         in the process include standard headers for prototypes.
1867         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
1868         gets declared on GNU/Linux.
1869         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
1870         unistd.h, for `rmdir'.
1871         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
1872
1873         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
1874         always true.
1875         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
1876
1877         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
1878
1879 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1880
1881         * gnulib-tool (func_version): Create output all at once.  This
1882         may help avoid triggering unnecessary SIGPIPEs, and at any
1883         rate it doesn't hurt.
1884
1885 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1886             Bruno Haible  <bruno@clisp.org>
1887
1888         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
1889         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1890         * m4/signed.m4 (bh_C_SIGNED): Likewise.
1891
1892         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
1893         (gl_FUNC_VASPRINTF): Invoke it.
1894
1895 2006-09-22  Bruno Haible  <bruno@clisp.org>
1896
1897         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
1898         getloadavg.c as first argument.
1899
1900 2006-09-22  Bruno Haible  <bruno@clisp.org>
1901
1902         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
1903         at the beginning of the gl_INIT macro.
1904         * modules/getloadavg (configure.ac): Pass $gl_source_base to
1905         gl_GETLOADAVG.
1906
1907 2006-09-22  Bruno Haible  <bruno@clisp.org>
1908
1909         * gnulib-tool (func_create_megatestdir): Don't include the config-h
1910         module.
1911         Suggested by Ralf Wildenhues.
1912
1913 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1914
1915         Import this patch from libc:
1916
1917         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1918
1919         * lib/regex_internal.c (re_string_reconstruct): Handle
1920         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1921         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1922         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1923         re_string_context_at.
1924
1925         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
1926         now requires it.
1927         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
1928         gl_REGEX now does it for us.
1929         (gl_REGEX): Add test taken from
1930         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
1931
1932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
1933         Check that large offsets work.  Modernize Autoconf usages.
1934         Prefer "yes" to mean a good thing rather than a bad.
1935         Don't put "#define mkstemp" in config.h, as this might interfere
1936         with standard system headers that "#define mkstemp mkstemp64".
1937
1938         * modules/mkstemp (Depends-on): Add extensions, so that
1939         mkstemp is visible on some platforms.
1940         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
1941         (Include): Change to "mkstemp.h" from <stdlib.h>.
1942         (Files): Add mkstemp.h.
1943
1944         * lib/mkstemp.h: New file, since some standard headers
1945         #define mkstemp.
1946         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
1947         Include "mkstemp.h".
1948         Make the _LIBC code resemble glibc original more,
1949         e.g., use K&R style.
1950         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
1951         (mkstemp): Remove, since mkstemp.h does this for us.
1952         * lib/stdlib--.h: Include mkstemp.h.
1953
1954         Import this patch from libc:
1955
1956         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
1957
1958         * lib/tempname.c (__gen_tempname): Change attempts_min
1959         into a macro.  Use preprocessor to decide how to initialize
1960         attempts [Coverity CID 67].
1961
1962 2006-09-20  Bruno Haible  <bruno@clisp.org>
1963
1964         * lib/mkdtemp.c: Import from libc.
1965         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
1966                 * sysdeps/posix/tempname.c (__gen_tempname): Change
1967                 attempts_min into a macro.  Use preprocessor to decide how to
1968                 initialize attempts [Coverity CID 67].
1969         2001-11-27  Paul Eggert  <eggert@twinsun.com>
1970                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1971                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1972
1973 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1974
1975         * gnulib-tool (func_exit): New function, to allow to pass the
1976         exit status portably through the trap.  Use everywhere.
1977         (--help, --version): Signal a write error.
1978         (trap): catch SIGPIPE, for write errors.
1979         Exit at the end of the trap, with the correct exit status.
1980
1981 2006-09-19  Karl Berry  <karl@gnu.org>
1982
1983         * doc/gnulib.texi: note about the license texinfo files.
1984
1985 2006-09-19  Eric Blake  <ebb9@byu.net>
1986
1987         * gnulib-tool: Avoid space-tab.
1988
1989 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1990
1991         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
1992         that prevented coreutils 6.1 from building.  Problem reported
1993         by Petter Reinholdtsen.
1994
1995 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1996
1997         * gnulib-tool (avoidlist): Fix typo that broke options like
1998         --avoid=lock that are used by coreutils bootstrap.
1999
2000 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
2001
2002         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
2003         more systematically.
2004
2005 2006-09-18  Jim Meyering  <jim@meyering.net>
2006
2007         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
2008
2009 2006-09-18  Bruno Haible  <bruno@clisp.org>
2010
2011         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
2012
2013 2006-09-18  Bruno Haible  <bruno@clisp.org>
2014
2015         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
2016         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
2017         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
2018         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
2019         * m4/gettext.m4: Require autoconf >= 2.52.
2020         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
2021         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
2022         of gl_cv_header_inttypes_h.
2023
2024 2006-09-18  Bruno Haible  <bruno@clisp.org>
2025
2026         * lib/javaversion.c: Include configmake.h.
2027
2028 2006-09-18  Bruno Haible  <bruno@clisp.org>
2029
2030         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
2031         avoid that the while loops be executed in a subshell.
2032
2033 2006-09-18  Bruno Haible  <bruno@clisp.org>
2034
2035         * MODULES.html.sh (func_module): Break long lines.
2036         Suggested by Bruce Korb <bkorb@gnu.org>.
2037
2038 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2039
2040         Speed up by a factor of 1.12.
2041         * gnulib-tool (nl): New variable.
2042         (func_import): Rewrite include directive extraction to only read each
2043         directive once.
2044
2045 2006-09-17  Bruno Haible  <bruno@clisp.org>
2046
2047         * modules/javaversion (Makefile.am): Remove DEFS setting.
2048         (Depends-on): Add configmake, for PKGDATADIR definition.
2049
2050 2006-09-17  Bruno Haible  <bruno@clisp.org>
2051
2052         * gnulib-tool (func_create_testdir): Rewrite all files at once.
2053
2054 2006-09-17  Bruno Haible  <bruno@clisp.org>
2055
2056         * gnulib-tool (func_append): New function, stolen from libtool.m4.
2057         (func_modules_transitive_closure, func_modules_add_dummy,
2058         func_modules_to_filelist, func_import, func_create_testdir,
2059         func_create_megatestdir, ...): Use it wherever possible.
2060         Suggested by Ralf Wildenhues.
2061
2062 2006-09-16  Karl Berry  <karl@gnu.org>
2063
2064         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
2065         to avoid sectioning errors.
2066         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
2067         [ifinfo]: blank line after @center-ed titles.
2068         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
2069         Spell FSF address consistently with others.
2070         (These changes approved by rms.)
2071
2072 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2073
2074         Speed up by a factor of 1.61.
2075         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
2076         already checked module names again.
2077
2078 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2079
2080         Speed up by a factor of 1.13.
2081         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
2082         for new_files, and the input to func_add_or_update.
2083
2084 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2085
2086         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
2087         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
2088
2089 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2090
2091         * modules/mkancesdirs (Depends-on): Add fcntl.
2092         * modules/savewd: New file.
2093         * MODULES.html.sh (File system functions): Add savewd.
2094
2095         * modules/configmake (Makefile.am): Add support for the
2096         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
2097
2098 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2099
2100         * m4/savewd.m4: New file.
2101
2102 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2103
2104         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
2105         (dirchownmod): New arg FD.  All callers changed.
2106         Use FD rather than opening the directory ourself, as opening is
2107         now the caller's responsibility.
2108         * lib/dirchownmod.h: Likewise.
2109         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
2110         hosts that require <sys/types.h> before <sys/stat.h>.  Include
2111         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
2112         (test_dir): Remove.
2113         (mkancesdirs): Return length of prefix of FILE that has already
2114         been made, or -2 if there is a child doing the work.  Redo
2115         algorithm so that it is O(N) rather than O(N**2).  Optimize away
2116         ".", and treat ".." specially since it might stray back into
2117         already-created areas.  Use a subprocess if necessary.  New arg
2118         WD; all users changed.  MAKE_DIR function should now return 1
2119         if it creates a directory that is not readable.  Return -2 if
2120         a child process is spun off.
2121         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
2122         Adjust signature to match code.
2123         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
2124         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
2125         all users changed.
2126         * lib/savewd.c, lib/savewd.h: New files.
2127
2128 2006-09-15  Jim Meyering  <jim@meyering.net>
2129
2130         * modules/rename-dest-slash: New module.
2131         * MODULES.html.sh (posix_compat): Add it here.
2132
2133         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
2134
2135 2006-09-15  Jim Meyering  <jim@meyering.net>
2136
2137         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
2138         file.
2139
2140         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
2141
2142 2006-09-15  Jim Meyering  <jim@meyering.net>
2143
2144         * lib/rename-dest-slash.c (has_trailing_slash): Use
2145         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
2146         (rpl_rename_dest_slash): Perform the cheaper trailing slash
2147         test before testing whether SRC is a directory.
2148         Suggestions from Bruno Haible.
2149
2150         Avoid a warning about an unused variable.
2151         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
2152         into the #ifdef block where it's used.
2153
2154         * lib/rename-dest-slash.c: New file.
2155
2156 2006-09-14  Bruno Haible  <bruno@clisp.org>
2157
2158         * lib/allocsa.c: Include <config.h> unconditionally.
2159         * lib/asnprintf.c: Likewise.
2160         * lib/asprintf.c: Likewise.
2161         * lib/c-strcasecmp.c: Likewise.
2162         * lib/c-strcasestr.c: Likewise.
2163         * lib/c-strncasecmp.c: Likewise.
2164         * lib/c-strstr.c: Likewise.
2165         * lib/classpath.c: Likewise.
2166         * lib/clean-temp.c: Likewise.
2167         * lib/concatpath.c: Likewise.
2168         * lib/copy-file.c: Likewise.
2169         * lib/csharpcomp.c: Likewise.
2170         * lib/csharpexec.c: Likewise.
2171         * lib/execute.c: Likewise.
2172         * lib/fatal-signal.c: Likewise.
2173         * lib/findprog.c: Likewise.
2174         * lib/fwriteerror.c: Likewise.
2175         * lib/gl_array_list.c: Likewise.
2176         * lib/gl_array_oset.c: Likewise.
2177         * lib/gl_avltree_list.c: Likewise.
2178         * lib/gl_avltree_oset.c: Likewise.
2179         * lib/gl_avltreehash_list.c: Likewise.
2180         * lib/gl_carray_list.c: Likewise.
2181         * lib/gl_linked_list.c: Likewise.
2182         * lib/gl_linkedhash_list.c: Likewise.
2183         * lib/gl_list.c: Likewise.
2184         * lib/gl_oset.c: Likewise.
2185         * lib/gl_rbtree_list.c: Likewise.
2186         * lib/gl_rbtree_oset.c: Likewise.
2187         * lib/gl_rbtreehash_list.c: Likewise.
2188         * lib/imaxabs.c: Likewise.
2189         * lib/imaxdiv.c: Likewise.
2190         * lib/javacomp.c: Likewise.
2191         * lib/javaexec.c: Likewise.
2192         * lib/javaversion.c: Likewise.
2193         * lib/linebreak.c: Likewise.
2194         * lib/localcharset.c: Likewise.
2195         * lib/lock.c: Likewise.
2196         * lib/mbchar.c: Likewise.
2197         * lib/mbswidth.c: Likewise.
2198         * lib/mkdtemp.c: Likewise.
2199         * lib/pipe.c: Likewise.
2200         * lib/printf-args.c: Likewise.
2201         * lib/printf-parse.c: Likewise.
2202         * lib/progname.c: Likewise.
2203         * lib/progreloc.c: Likewise.
2204         * lib/readlink.c: Likewise.
2205         * lib/sh-quote.c: Likewise.
2206         * lib/stpcpy.c: Likewise.
2207         * lib/stpncpy.c: Likewise.
2208         * lib/strcasecmp.c: Likewise.
2209         * lib/strcasestr.c: Likewise.
2210         * lib/strcspn.c: Likewise.
2211         * lib/striconv.c: Likewise.
2212         * lib/strncasecmp.c: Likewise.
2213         * lib/strnlen1.c: Likewise.
2214         * lib/strstr.c: Likewise.
2215         * lib/strtok_r.c: Likewise.
2216         * lib/tls.c: Likewise.
2217         * lib/tmpdir.c: Likewise.
2218         * lib/unicodeio.c: Likewise.
2219         * lib/unsetenv.c: Likewise.
2220         * lib/vasnprintf.c: Likewise.
2221         * lib/vasprintf.c: Likewise.
2222         * lib/wait-process.c: Likewise.
2223         * lib/xallocsa.c: Likewise.
2224         * lib/xsetenv.c: Likewise.
2225         * lib/xstriconv.c: Likewise.
2226
2227 2006-09-13  Simon Josefsson  <jas@extundo.com>
2228
2229         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
2230         that internally, suggested by Ralf Wildenhues
2231         <Ralf.Wildenhues@gmx.de>.
2232
2233 2006-09-13  Simon Josefsson  <jas@extundo.com>
2234
2235         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
2236         @LIBOBJS@.
2237         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2238
2239 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2240
2241         * lib/_fpending.c: Include <config.h> unconditionally, since we no
2242         longer worry about uses that don't define HAVE_CONFIG_H.
2243         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
2244         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
2245         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
2246         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
2247         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
2248         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
2249         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
2250         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
2251         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
2252         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
2253         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
2254         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
2255         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
2256         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
2257         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
2258         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
2259         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
2260         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
2261         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
2262         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
2263         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
2264         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
2265         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
2266         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
2267         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
2268         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
2269         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
2270         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
2271         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
2272         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
2273         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
2274         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
2275         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
2276         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
2277         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
2278         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
2279         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
2280         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
2281         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
2282         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
2283         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
2284         Likewise.
2285
2286 2006-09-13  Eric Blake  <ebb9@byu.net>
2287
2288         * lib/getopt.c: Fix typo in last commit.
2289
2290 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2291
2292         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
2293         dgettext.
2294
2295 2006-09-12  Jim Meyering  <jim@meyering.net>
2296
2297         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
2298         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
2299         Reported by Nelson H. F. Beebe.
2300
2301 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
2302
2303         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
2304         program_invocation_name and program_invocation_short_name are
2305         initialized.
2306         * lib/argp-namefrob.h: Move declarations of program_invocation_name
2307         and program_invocation_short_name to argp.h, so they are visible
2308         to user programs.
2309         * lib/argp.h: Likewise
2310
2311 2006-09-10  Bruno Haible  <bruno@clisp.org>
2312
2313         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
2314         m4/inttypes_h.m4, m4/uintmax_t.m4.
2315
2316 2006-09-10  Bruno Haible  <bruno@clisp.org>
2317
2318         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
2319         gl_AC_TYPE_UINTMAX_T.
2320
2321 2006-09-10  Bruno Haible  <bruno@clisp.org>
2322
2323         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
2324
2325 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
2326
2327         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
2328         convention.  Text proposed by Bruno Haible.
2329         (struct argp_option): Document the use of N_() wrappers.
2330
2331         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
2332         '\v', and translate the two parts separately, instead of feeding
2333         the whole string to gettext.  This allows to exclude
2334         '\v' from the strings visible to the translator by writing doc
2335         strings as N_("..") "\v" N_("..").
2336
2337 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2338
2339         * config/srclist.txt: Undo latest change; the bug was fixed.
2340
2341 2006-09-09  Bruno Haible  <bruno@clisp.org>
2342
2343         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
2344         assignments if building a library without libtool.
2345         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
2346         in func_emit_lib_Makefile_am.
2347         (func_import): When building a static library libfoo.a, arrange to
2348         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
2349         (func_create_testdir): Likewise.
2350         * modules/gc (configure.ac, Makefile.am): If building statically,
2351         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
2352         * modules/iconvme (configure.ac, Makefile.am): Likewise.
2353         * modules/striconv (configure.ac, Makefile.am): Likewise.
2354         Based on a suggestion by Ralf Wildenhues.
2355
2356 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
2359         Check for unistd.h too, since Autoconf doesn't assume POSIX.
2360         Also:
2361
2362         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2363         Add year_2050_test to catch glibc bug 2821
2364         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
2365
2366         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2367         Prefer #ifdef to #if.
2368
2369         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
2370         Return from 'main' instead of calling 'exit'.
2371
2372 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2373
2374         * lib/mktime.c (guess_time_tm): Fix bug where mktime
2375         returned the maximum time_t value rather than (time_t) -1.
2376         Problem originally reported by William Bardwell
2377         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
2378
2379         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
2380         Moved to here ...
2381         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
2382         ... from here.
2383
2384 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2385
2386         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
2387         2821 is fixed.
2388
2389 2006-09-08  Jim Meyering  <jim@meyering.net>
2390
2391         Don't make generated files read-only.  That would bother too many
2392         people.  However, do retain the ability to work when targets are
2393         read-only: remove the destination and temporary files before writing
2394         them (when generated via sed or echo), or by using the -f option for
2395         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
2396         * modules/alloca-opt, modules/argz, modules/arpa_inet:
2397         * modules/byteswap, modules/configmake, modules/fcntl:
2398         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
2399         * modules/localcharset, modules/netinet_in, modules/poll:
2400         * modules/stdbool, modules/stdint, modules/sys_select:
2401         * modules/sys_socket, modules/sys_stat, modules/sysexits:
2402
2403 2006-09-08  Jim Meyering  <jim@meyering.net>
2404
2405         Avoid new build failure on FreeBSD 6.0.
2406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
2407         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
2408         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
2409
2410 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2411
2412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
2413
2414 2006-09-07  Jim Meyering  <jim@meyering.net>
2415
2416         Fix global typo in last change: use chmod u-w, not chmod u-x.
2417         Spotted by Paul Eggert and Bruce Korb.
2418         * modules/alloca-opt, modules/argz, modules/arpa_inet:
2419         * modules/byteswap, modules/configmake, modules/fcntl:
2420         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
2421         * modules/localcharset, modules/netinet_in, modules/poll:
2422         * modules/stdbool, modules/stdint, modules/sys_select:
2423         * modules/sys_socket, modules/sys_stat, modules/sysexits:
2424
2425 2006-09-06  Jim Meyering  <jim@meyering.net>
2426
2427         Make generated files be read-only.
2428         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
2429         Ensure that each generated file is now read-only.
2430         * modules/argz: Likewise.
2431         * modules/arpa_inet: Likewise.
2432         * modules/byteswap: Likewise.
2433         * modules/configmake: Likewise.
2434         * modules/fcntl: Likewise.
2435         * modules/fnmatch: Likewise.
2436         * modules/getopt: Likewise.
2437         * modules/glob: Likewise.
2438         * modules/inttypes: Likewise.
2439         * modules/netinet_in: Likewise.
2440         * modules/poll: Likewise.
2441         * modules/stdbool: Likewise.
2442         * modules/stdint: Likewise.
2443         * modules/sys_select: Likewise.
2444         * modules/sys_socket: Likewise.
2445         * modules/sys_stat: Likewise.
2446         * modules/sysexits: Likewise.
2447         * modules/localcharset: Same as above, but continue using temporary
2448         file named "t-$@" (why different?) rather than the "$@-t" used
2449         everywhere else.
2450
2451         * modules/sysexits (Makefile.am): Replace literal occurrences
2452         of "sysexit.h" more readable, and more consistent, "$@".
2453
2454 2006-09-06  Bruno Haible  <bruno@clisp.org>
2455
2456         * modules/striconv: New file.
2457         * modules/xstriconv: New file.
2458         * MODULES.html.sh (Internationalization functions): Add striconv,
2459         xstriconv.
2460
2461 2006-09-06  Bruno Haible  <bruno@clisp.org>
2462
2463         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
2464         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
2465         not using libtool correctly.
2466
2467 2006-09-06  Bruno Haible  <bruno@clisp.org>
2468
2469         * lib/striconv.h: New file.
2470         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
2471         iconvstring.c.
2472         * lib/xstriconv.h: New file.
2473         * lib/xstriconv.c: New file.
2474
2475 2006-09-06  Bruno Haible  <bruno@clisp.org>
2476
2477         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2478         lib_..._LDFLAGS.
2479
2480 2006-09-05  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2481
2482         * lib/argz_.h: Sync from Libtool.
2483
2484         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
2485                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2486
2487         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
2488
2489 2006-09-05  Davide Angelocola <davide.angelocola@tiscali.it>
2490
2491         * modules/trim: New file.
2492
2493 2006-09-05  Davide Angelocola <davide.angelocola@tiscali.it>
2494
2495         * lib/trim.h: New file.
2496         * lib/trim.c: New file.
2497
2498 2006-09-05  Bruno Haible  <bruno@clisp.org>
2499
2500         * MODULES.html.sh (String handling): Add trim.
2501
2502 2006-09-04  Karl Berry  <karl@gnu.org>
2503
2504         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
2505         until next release.
2506
2507 2006-09-03  Bruno Haible  <bruno@clisp.org>
2508
2509         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
2510         correctly.
2511
2512 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2513
2514         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
2515         not gl_GETLOADAVG.  Omit unneeded semicolons.
2516         Problems reported by Ralf Wildenhues in
2517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
2518         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
2519         at the end, which is the usual gnulib style.
2520
2521         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
2522         of doing all the work ourselves.
2523         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
2524         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
2525
2526 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2527
2528         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
2529         Problem reported by Ralf Wildenhues in
2530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
2531
2532         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
2533         HAVE_STRUCT_STATFS_F_FSTYPENAME.
2534
2535 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2536
2537         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
2538         yesterday's patch by changing test -n to test -z.
2539
2540 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2541
2542         * modules/getloadavg (Files): Add m4/getloadavg.m4.
2543         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
2544         the former is now obsolescent.
2545
2546         * modules/chdir-long (Depends-on): Add fcntl.
2547
2548 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2549
2550         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
2551         obsolescent, and programs should use gnulib instead.
2552         * m4/getloadavg.m4: New file, with contents taken from Autoconf
2553         but with prefixes changed.
2554
2555 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2556
2557         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
2558         or stdbool.h, because they might not exist while configuring.
2559
2560         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
2561         Don't include unistd.h or limits.h; not needed, since chdir-long.h
2562         does that for us.
2563         (O_DIRECTORY): Remove.
2564
2565 2006-08-31  Eric Blake  <ebb9@byu.net>
2566
2567         * gnulib-tool: Don't let emacs change spaces to TAB.
2568
2569 2006-08-31  Bruno Haible  <bruno@clisp.org>
2570
2571         * gnulib-tool: When calling func_import more than once, do it in a
2572         subshell.
2573         Reported by Eric Blake <ebb9@byu.net>.
2574
2575 2006-08-31  Bruno Haible  <bruno@clisp.org>
2576
2577         * gnulib-tool (nl): Remove variable.
2578         (sed_transform_lib_file): Use more robust test for config-h module.
2579         (func_import): Fix typo in 2006-08-25 patch.
2580
2581 2006-08-31  Bruno Haible  <bruno@clisp.org>
2582
2583         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
2584         specified, augment Makefile.am variables instead of assigning them.
2585
2586 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2587
2588         Work around a bug in both the Linux and SunOS 64-bit kernels:
2589         nanosleep mishandles sleeps for longer than 2**31 seconds.
2590         Problem reported by Frank v Waveren in
2591         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
2592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
2593         Check for nanosleep bug.
2594         (LIB_NANOSLEEP): Append clock_gettime library if needed.
2595
2596 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2597
2598         Work around a bug in both the Linux and SunOS 64-bit kernels:
2599         nanosleep mishandles sleeps for longer than 2**31 seconds.
2600         Problem reported by Frank v Waveren in
2601         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
2602         * lib/nanosleep.c (BILLION): New constant.
2603         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
2604         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
2605         implementation.
2606
2607 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2608
2609         * modules/nanosleep (Depends-on): Add gettime.
2610
2611 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2612         and Simon Josefsson  <jas@extundo.com>
2613         and Oskar Liljeblad  <oskar@osk.mine.nu>
2614
2615         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
2616         * gnulib-tool (func_import): New license type 'unmodifiable license
2617         text'.
2618         * modules/fdl: Use it.  Longer description.
2619         * module/gpl, module/lgpl: New files.
2620
2621 2006-08-30  Jim Meyering  <jim@meyering.net>
2622
2623         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
2624         shadowing the parameter.
2625
2626 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2627
2628         Sync from Libtool:
2629
2630         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2631
2632         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
2633         sharing with gnulib.  Report by Eric Blake.
2634
2635 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2636
2637         * modules/isapipe: New file.
2638         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
2639
2640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2641
2642         * modules/configmake (Makefile.am): Add a comment, and omit
2643         the CONFIGMAKE_ prefix from generated macro names.  Suggested
2644         by Bruno Haible.
2645
2646 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2647
2648         * m4/isapipe.m4: New file.
2649
2650 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2651
2652         * lib/isapipe.c, lib/isapipe.h: New files.
2653
2654 2006-08-29  Jim Meyering  <jim@meyering.net>
2655
2656         * modules/configmake (Makefile.am): Make configmake.h depend on
2657         Makefile.  Otherwise, a stale configmake.h could hang around.
2658
2659 2006-08-29  Eric Blake  <ebb9@byu.net>
2660
2661         * lib/error.c (error_at_line, print_errno_message): Match libc, after
2662         resolution of upstream bug 3044.
2663
2664 2006-08-29  Bruno Haible  <bruno@clisp.org>
2665
2666         * modules/localcharset (Depends-on): Add configmake.
2667         (Makefile.am): Remove setting of LIBDIR through DEFS.
2668
2669 2006-08-29  Bruno Haible  <bruno@clisp.org>
2670
2671         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
2672         defined.
2673
2674 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2675
2676         * modules/fcntl: New file.
2677         * modules/chdir-safer (Depends-on): Add fcntl.
2678         * modules/fts: Likewise.
2679         * modules/mkdir-p: Likewise.
2680
2681         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
2682         This undoes the most recent change, since we're now addressing the
2683         problem in a different way.
2684
2685         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
2686         into output, since the output might be called Makefile.am even
2687         if $makefile_name is something different.
2688         (func_import): Use $makefile_am rather than
2689         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
2690         empty.
2691
2692         * modules/inttypes (Files): Add m4/inttypes-h.m4.
2693
2694 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2695
2696         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
2697         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
2698         recent change to stdint.m4, since we're now addressing the problem in a
2699         different way.
2700
2701 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2702
2703         * m4/fcntl_h.m4: New file.
2704
2705 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
2706
2707         * lib/fcntl_.h: New file.
2708         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
2709         the fcntl module.
2710         * lib/dirchownmod.c: Likewise.
2711         * lib/fts.c: Likewise.
2712
2713         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
2714         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
2715         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
2716         just before including <inttypes.h>, to avoid circular inclusion.
2717
2718 2006-08-28  Jim Meyering  <jim@meyering.net>
2719
2720         * doc/visibility.texi: Actually read and correct the grammar of the
2721         sentence affected by yesterday's change.
2722
2723 2006-08-28  Eric Blake  <ebb9@byu.net>
2724
2725         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
2726         needs wrapper.
2727
2728 2006-08-28  Eric Blake  <ebb9@byu.net>
2729
2730         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
2731
2732 2006-08-28  Eric Blake  <ebb9@byu.net>
2733
2734         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
2735
2736 2006-08-28  Bruno Haible  <bruno@clisp.org>
2737
2738         * modules/c-strstr: New file, from GNU gettext.
2739         * MODULES.html.sh (String handling): Add c-strstr.
2740
2741 2006-08-28  Bruno Haible  <bruno@clisp.org>
2742
2743         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
2744         macros.
2745         Reported by Eric Blake.
2746
2747 2006-08-28  Bruno Haible  <bruno@clisp.org>
2748
2749         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
2750         (VASNPRINTF): Return a string of length > INT_MAX without failing.
2751         * lib/vasprintf.c: Include errno.h, limits.h.
2752         (EOVERFLOW): New fallback definition.
2753         (vasprintf): Test here whether the string length is > INT_MAX.
2754         * lib/vsnprintf.c: Include errno.h, limits.h.
2755         (EOVERFLOW): New fallback definition.
2756         (vsnprintf): Fix bug when generated string was too long for the buffer.
2757         Test here whether the string length is > INT_MAX.
2758
2759 2006-08-28  Bruno Haible  <bruno@clisp.org>
2760
2761         * lib/inttypes_.h (SCNX*): Remove definitions.
2762         Reported by Eric Blake.
2763
2764 2006-08-28  Bruno Haible  <bruno@clisp.org>
2765
2766         * lib/c-strstr.h: New file, from GNU gettext.
2767         * lib/c-strstr.c: New file, from GNU gettext.
2768
2769 2006-08-28  Bruno Haible  <bruno@clisp.org>
2770
2771         * gnulib-tool: Reorder some statements.
2772
2773 2006-08-28  Bruno Haible  <bruno@clisp.org>
2774
2775         * gnulib-tool: New option --makefile-name.
2776         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
2777         $makefile_name.
2778         (func_import): Write $makefile_name to the cache file, and read it from
2779         there unless explicitly specified. Use $makefile_name as file name
2780         instead of Makefile.am. Adjust the recommendations accordingly.
2781
2782 2006-08-28  Bruno Haible  <bruno@clisp.org>
2783
2784         * gnulib-tool (func_verify_module): Check against misapplying patch.
2785
2786 2006-08-28  Bruno Haible  <bruno@clisp.org>
2787
2788         * gnulib-tool (func_relativize, func_relconcat): New functions.
2789         Give an error if --local-dir is given with --update.
2790         Remove trailing slashes from $local_gnulib_dir.
2791         (func_import): Store the relativized $local_gnulib_dir in
2792         gnulib-cache.m4, and read it from there if not specified explicitly.
2793
2794 2006-08-28  Bruno Haible  <bruno@clisp.org>
2795
2796         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
2797         is the current directory. Respect also $local_gnulib_dir.
2798
2799 2006-08-28  Bruno Haible  <bruno@clisp.org>
2800             Simon Josefsson  <jas@extundo.com>
2801
2802         BeOS portability.
2803         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
2804
2805 2006-08-27  Jim Meyering  <jim@meyering.net>
2806
2807         * doc/visibility.texi: Remove duplicate word: "pointer".
2808
2809 2006-08-26  Bruno Haible  <bruno@clisp.org>
2810
2811         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
2812         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
2813         (Makefile.am): Create inttypes.h from inttypes_.h.
2814         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
2815
2816         * modules/imaxabs: New file.
2817
2818         * modules/imaxdiv: New file.
2819
2820 2006-08-26  Bruno Haible  <bruno@clisp.org>
2821
2822         * m4/inttypes.m4: New file.
2823         * m4/_inttypes_h.m4: Remove file.
2824         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
2825         PRI_MACROS_BROKEN.
2826         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
2827
2828         * m4/imaxabs.m4: New file.
2829
2830         * m4/imaxdiv.m4: New file.
2831
2832 2006-08-26  Bruno Haible  <bruno@clisp.org>
2833
2834         * lib/inttypes_.h: New file.
2835         * lib/inttypes.h: Remove file.
2836         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
2837
2838         * lib/imaxabs.c: New file.
2839
2840         * lib/imaxdiv.c: New file.
2841
2842 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2843
2844         New config-h module, so that "make" output needn't be cluttered
2845         by -DHAVE_CONFIG_H.
2846         * MODULES.html.sh (Support for building libraries and executables):
2847         Add config-h.
2848         * modules/config-h: New file.
2849         * gnulib-tool (nl, sed_transform_lib_file): New vars.
2850         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
2851         the config-h module is used.
2852
2853         New configmake module, so that "make" output needn't be cluttered
2854         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
2855         * MODULES.html.sh (Support for building libraries and executables):
2856         Add configmake.
2857         * modules/configmake: New file.
2858
2859 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2860
2861         * m4/config-h.m4: New file.
2862
2863 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2864
2865         * config/srclist.txt: Add elisp-comp.
2866
2867 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2868
2869         * MODULES.html.sh (Support for building libraries and executables):
2870         Add elisp-comp.
2871         * build-aux/elisp-comp: New file.
2872         * modules/elisp-comp: New file.
2873
2874 2006-08-24  Bruno Haible <bruno@clisp.org>
2875
2876         * gnulib-tool (func_create_testdir): Use non-default values of
2877         sourcebase and m4base.
2878
2879 2006-08-24  Bruno Haible <bruno@clisp.org>
2880
2881         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
2882         HTML structure.
2883
2884 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2885
2886         * modules/openat (Depends-on): Add lchown.
2887
2888 2006-08-23  Bruno Haible <bruno@clisp.org>
2889
2890         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
2891         of gl_LOCK_EARLY instead of gl_LOCK.
2892
2893 2006-08-23  Bruno Haible  <bruno@clisp.org>
2894
2895         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
2896         on OSF/1 to no.
2897         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
2898
2899 2006-08-23  Bruno Haible  <bruno@clisp.org>
2900
2901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
2902         as unusable.
2903
2904         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
2905         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
2906         (gl_LOCK): New macro.
2907
2908 2006-08-22  Simon Josefsson  <jas@extundo.com>
2909
2910         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
2911         to md5 module.
2912
2913 2006-08-22  Simon Josefsson  <jas@extundo.com>
2914
2915         * MODULES.html.sh: Add "Support for maintaining and release
2916         projects".
2917
2918         * build-aux/gnupload: New file, from coreutils.
2919
2920 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2921
2922         Avoid the need for AC_LIBSOURCES in m4 macros.
2923         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
2924         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
2925         * modules/check-version (EXTRA_DIST): Add check-version.h.
2926         * modules/crc (EXTRA_DIST): Add crc.h.
2927         * modules/des (EXTRA_DIST): Add des.h.
2928         * modules/gc (EXTRA_DIST): Add gc.h.
2929         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
2930         * modules/getline (EXTRA_DIST): Add getline.h.
2931         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
2932         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
2933         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
2934         * modules/md2 (EXTRA_DIST): Add md2.h.
2935         * modules/md4 (EXTRA_DIST): Add md4.h.
2936         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
2937         * modules/read-file (EXTRA_DIST): Add read-file.h.
2938         * modules/readline (EXTRA_DIST): Add readline.h.
2939         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
2940         rijndael-api-fst.h.
2941
2942 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2943
2944         * m4/rijndael.m4 (gl_ARCFOUR):
2945         * m4/arctwo.m4 (gl_ARCTWO):
2946         * m4/check-version.m4 (gl_CHECK_VERSION):
2947         * m4/crc.m4 (gl_CRC):
2948         * m4/des.m4 (gl_DES):
2949         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
2950         * m4/gc.m4 (gl_GC):
2951         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
2952         * m4/getline.m4 (gl_FUNC_GETLINE):
2953         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
2954         * m4/hmac-md5.m4 (gl_HMAC_MD5):
2955         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
2956         * m4/md2.m4 (gl_MD2):
2957         * m4/md4.m4 (gl_MD4):
2958         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
2959         * m4/read-file.m4 (gl_FUNC_READ_FILE):
2960         * m4/readline.m4 (gl_FUNC_READLINE):
2961         * m4/rijndael.m4 (gl_RIJNDAEL):
2962         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
2963         to get the necessary .h files and whatnot.
2964
2965 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2966
2967         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
2968         gnulib rather than the other way around.
2969         * config/srclistvars.sh (COREUTILS): Remove.
2970
2971 2006-08-22  Jim Meyering  <jim@meyering.net>
2972
2973         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
2974
2975         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
2976
2977 2006-08-22  Eric Blake  <ebb9@byu.net>
2978
2979         * modules/regexprops-generic: New file.
2980         * MODULES.html.sh (Support for building documentation): List it.
2981
2982 2006-08-22  Eric Blake  <ebb9@byu.net>
2983
2984         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
2985         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
2987         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2988
2989 2006-08-22  Bruno Haible <bruno@clisp.org>
2990
2991         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
2992         and lib_LTLIBRARIES like the other lib_* variables.
2993
2994 2006-08-22  Bruno Haible <bruno@clisp.org>
2995
2996         * build-aux/x-to-1.in: New file, from GNU gettext.
2997
2998 2006-08-22  Bruno Haible  <bruno@clisp.org>
2999
3000         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
3001         <utmpx.h> exists.
3002
3003 2006-08-22  Bruno Haible  <bruno@clisp.org>
3004
3005         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
3006         <utmpx.h> exists.
3007
3008 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3009
3010         BeOS portability.
3011         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
3012         exist.
3013         Problem reported by Bruno Haible.
3014
3015 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3016
3017         Avoid the need for AC_LIBSOURCES in m4 macros.
3018         * modules/acl (EXTRA_DIST): Add acl.h.
3019         * modules/argmatch (Files): Add m4/argmatch.m4.
3020         (configure.ac): Add gl_ARGMATCH.
3021         (EXTRA_DIST): Renamed from lib_SOURCES, for
3022         consistency with the other modules.  Remove argmatch.c.
3023         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
3024         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
3025         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
3026         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
3027         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
3028         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
3029         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
3030         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
3031         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
3032         * modules/closeout (EXTRA_DIST): Add closeout.h.
3033         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
3034         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
3035         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
3036         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
3037         dirname.h; remove basename.c and stripslash.c.
3038         * modules/exclude (EXTRA_DIST): Add exclude.h.
3039         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
3040         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
3041         * modules/file-type (EXTRA_DIST): Add file-type.h.
3042         * modules/filemode (EXTRA_DIST): Add filemode.h.
3043         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
3044         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
3045         * modules/fpending (EXTRA_DIST): Add __fpending.h.
3046         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
3047         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
3048         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
3049         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
3050         * modules/getdate (EXTRA_DIST): Add getdate.c.
3051         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
3052         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
3053         * modules/getpass (EXTRA_DIST): Add getpass.h.
3054         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
3055         * modules/group-member (EXTRA_DIST): Add group-member.h.
3056         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
3057         * modules/hash (EXTRA_DIST): Add hash.h.
3058         * modules/human (EXTRA_DIST): Add human.h.
3059         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
3060         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
3061         * modules/lchown (EXTRA_DIST): Add lchown.h.
3062         * modules/long-options (EXTRA_DIST): Add long-options.h.
3063         * modules/lstat (EXTRA_DIST): Add lstat.h.
3064         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
3065         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
3066         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
3067         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
3068         * modules/memxor (EXTRA_DIST): Add memxor.h.
3069         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
3070         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
3071         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
3072         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
3073         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
3074         * modules/physmem (EXTRA_DIST): Add physmem.h.
3075         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
3076         * modules/posixver (EXTRA_DIST): Add posixver.h.
3077         * modules/quote (EXTRA_DIST): Add quote.h.
3078         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
3079         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
3080         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
3081         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
3082         regex_internal.h regexec.c.
3083         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
3084         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
3085         * modules/same (EXTRA_DIST): Add same.h.
3086         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
3087         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
3088         * modules/savedir (EXTRA_DIST): Add savedir.h.
3089         * modules/sha1 (EXTRA_DIST): Add sha1.h.
3090         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
3091         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
3092         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
3093         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
3094         * modules/strdup (EXTRA_DIST): Add strdup.h.
3095         * modules/strftime (EXTRA_DIST): Add strftime.h.
3096         * modules/strndup (EXTRA_DIST): Add strndup.h.
3097         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
3098         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
3099         * modules/time_r (EXTRA_DIST): Add time_r.h.
3100         * modules/timespec (EXTRA_DIST): Add timespec.h.
3101         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
3102         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
3103         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
3104         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
3105         * modules/userspec (EXTRA_DIST): Add userspec.h.
3106         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
3107         * modules/utimens (EXTRA_DIST): Add utimens.h.
3108         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
3109         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
3110         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
3111         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
3112         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
3113         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
3114         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
3115         * modules/yesno (EXTRA_DIST): Add yesno.h.
3116
3117 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3118
3119         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
3120
3121         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
3122         * m4/dev-ino.m4, same-inode.m4: Remove.
3123
3124         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
3125         * m4/acl.m4 (AC_FUNC_ACL):
3126         * m4/backupfile.m4 (gl_BACKUPFILE):
3127         * m4/c-strtod.m4 (gl_C99_STRTOLD):
3128         * m4/canon-host.m4 (gl_CANON_HOST):
3129         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
3130         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
3131         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
3132         * m4/cloexec.m4 (gl_CLOEXEC):
3133         * m4/close-stream.m4 (gl_CLOSE_STREAM):
3134         * m4/closeout.m4 (gl_CLOSEOUT):
3135         * m4/dirfd.m4 (gl_FUNC_DIRFD):
3136         * m4/dirname.m4 (gl_DIRNAME):
3137         * m4/exclude.m4 (gl_EXCLUDE):
3138         * m4/exitfail.m4 (gl_EXITFAIL):
3139         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
3140         * m4/file-type.m4 (gl_FILE_TYPE):
3141         * m4/filemode.m4 (gl_FILEMODE):
3142         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
3143         * m4/fpending.m4 (gl_FUNC_FPENDING):
3144         * m4/fprintftime.m4 (gl_FPRINTFTIME):
3145         * m4/fts.m4 (gl_FUNC_FTS):
3146         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
3147         * m4/getdate.m4 (gl_GETDATE):
3148         * m4/gethrxtime.m4 (gl_GETHRXTIME):
3149         * m4/getpagesize.m4 (gl_GETPAGESIZE):
3150         * m4/getpass.m4 (gl_FUNC_GETPASS):
3151         * m4/gettime.m4 (gl_GETTIME):
3152         * m4/getugroups.m4 (gl_GETUGROUPS):
3153         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
3154         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
3155         * m4/hard-locale.m4 (gl_HARD_LOCALE):
3156         * m4/hash.m4 (gl_HASH):
3157         * m4/idcache.m4 (gl_IDCACHE):
3158         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
3159         * m4/lchown.m4 (gl_FUNC_LCHOWN):
3160         * m4/long-options.m4 (gl_LONG_OPTIONS):
3161         * m4/lstat.m4 (gl_FUNC_LSTAT):
3162         * m4/md5.m4 (gl_MD5):
3163         * m4/memcasecmp.m4 (gl_MEMCASECMP):
3164         * m4/memcoll.m4 (gl_MEMCOLL):
3165         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
3166         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
3167         * m4/memxor.m4 (gl_MEMXOR):
3168         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
3169         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
3170         * m4/modechange.m4 (gl_MODECHANGE):
3171         * m4/mountlist.m4 (gl_MOUNTLIST):
3172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
3173         * m4/openat.m4 (gl_FUNC_OPENAT):
3174         * m4/pathmax.m4 (gl_PATHMAX):
3175         * m4/physmem.m4 (gl_PHYSMEM):
3176         * m4/posixtm.m4 (gl_POSIXTM):
3177         * m4/posixver.m4 (gl_POSIXVER):
3178         * m4/quote.m4 (gl_QUOTE):
3179         * m4/quotearg.m4 (gl_QUOTEARG):
3180         * m4/readtokens.m4 (gl_READTOKENS):
3181         * m4/readutmp.m4 (gl_READUTMP):
3182         * m4/regex.m4 (gl_REGEX):
3183         * m4/safe-read.m4 (gl_SAFE_READ):
3184         * m4/safe-write.m4 (gl_SAFE_WRITE):
3185         * m4/same.m4 (gl_SAME):
3186         * m4/save-cwd.m4 (gl_SAVE_CWD):
3187         * m4/savedir.m4 (gl_SAVEDIR):
3188         * m4/settime.m4 (gl_SETTIME):
3189         * m4/sha1.m4 (gl_SHA1):
3190         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
3191         * m4/stat-macros.m4 (gl_STAT_MACROS):
3192         * m4/stat-time.m4 (gl_STAT_TIME):
3193         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
3194         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
3195         * m4/strdup.m4 (gl_FUNC_STRDUP):
3196         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
3197         * m4/strndup.m4 (gl_FUNC_STRNDUP):
3198         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
3199         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
3200         * m4/time_r.m4 (gl_TIME_R):
3201         * m4/timespec.m4 (gl_TIMESPEC):
3202         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
3203         * m4/unlinkdir.m4 (gl_UNLINKDIR):
3204         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
3205         * m4/userspec.m4 (gl_USERSPEC):
3206         * m4/utimecmp.m4 (gl_UTIMECMP):
3207         * m4/utimens.m4 (gl_UTIMENS):
3208         * m4/xalloc.m4 (gl_XALLOC):
3209         * m4/xgetcwd.m4 (gl_XGETCWD):
3210         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
3211         * m4/xreadlink.m4 (gl_XREADLINK):
3212         * m4/xstrtod.m4 (gl_XSTRTOD):
3213         * m4/yesno.m4 (gl_YESNO):
3214         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
3215         to get the necessary .h files and whatnot.
3216
3217 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
3218             Bruno Haible <bruno@clisp.org>
3219
3220         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
3221         /bin/sh understanding of '!' conditional negation.
3222
3223 2006-08-21  Jim Meyering  <jim@meyering.net>
3224
3225         * modules/openat (Depends-on): Really alphabetize.
3226
3227         * modules/acl (Depends-on): Add error and quote.
3228
3229         * check-module (find_included_lib_files): Add at-func.c to the
3230         ok-to-include-more-than-once white list.
3231
3232         * modules/openat (Depends-on): Add lstat.  Alphabetize.
3233
3234 2006-08-21  Bruno Haible <bruno@clisp.org>
3235
3236         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3237         Emit a pkgdata_DATA variable only if some snippets add contents to it.
3238         Reported by Martin Lambers <marlam@marlam.de>.
3239
3240 2006-08-21  Bruno Haible <bruno@clisp.org>
3241
3242         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
3243         specify an installation location, don't emit a noinst_LIBRARIES or
3244         noinst_LTLIBRARIES assignment.
3245
3246 2006-08-21  Bruno Haible  <bruno@clisp.org>
3247
3248         BeOS portability.
3249         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
3250         BeOS has mbrtowc() but no <wctype.h>.
3251
3252 2006-08-21  Bruno Haible  <bruno@clisp.org>
3253
3254         BeOS portability.
3255         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
3256         exist.
3257
3258 2006-08-21  Bruno Haible  <bruno@clisp.org>
3259
3260         BeOS portability.
3261         * lib/mbchar.h: Include <wctype.h> only if it exists.
3262
3263 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3264
3265         Remove files that are no longer needed by their respective modules.
3266         * m4/obstack.m4: Remove.
3267         * m4/strerror_r.m4: Remove.
3268         * m4/uint32_t.m4: Remove.
3269         * m4/uintptr_t.m4: Remove.
3270         * m4/ullong_max.m4: Remove.
3271         * m4/xstrtoimax.m4: Remove.
3272         * m4/xstrtoumax.m4: Remove.
3273
3274         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
3275         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
3276         dependencies now capture this.
3277
3278         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
3279         Do not use AC_LIBSOURCES, since gnulib modules now do this.
3280         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
3281         * m4/human.m4 (gl_HUMAN): Likewise.
3282         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
3283         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
3284
3285         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
3286
3287         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
3288         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
3289         stdint.
3290         * m4/human.m4 (gl_HUMAN): Likewise.
3291         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
3292         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
3293         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
3294         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
3295         * m4/xstrtol (gl_XSTRTOL): Likewise.
3296
3297         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
3298         AC_TYPE_LONG_LONG_INT.
3299         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
3300         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
3301         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
3302         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
3303
3304         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
3305         on stdbool.
3306
3307         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
3308         (gl_PREREQ_XSTRTOUL): Remove.
3309
3310         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
3311
3312         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
3313         mode.
3314
3315 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3316
3317         Add and change modules to make it easier for coreutils to use
3318         gnulib-tool.
3319         * modules/backupfile (Files): Remove m4/d-ino.m4.
3320         (Depends-on): Add d-ino.
3321         * modules/cycle-check (Depends-on): Add stdint.
3322         (lib_SOURCES): Add cycle-check.h.
3323         * modules/d-ino: New module.
3324         * modules/d-type: New module.
3325         * modules/error (Files): Remove m4/strerror_r.m4.
3326         * modules/filemode (Files): Add m4/st_dm_mode.m4.
3327         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
3328         m4/inttypes_h.m4, m4/uintmax_t.m4.
3329         (Depends-on): Add stdint.
3330         (lib_SOURCES): Add fsusage.h.
3331         * modules/getcwd (Files): Remove d-ino.m4.
3332         (Depends-on): Add d-ino.
3333         * modules/getndelim2 (Depends-on): Add stdint.
3334         * modules/glob (Files): Remove m4/d-type.m4.
3335         (Depends-on): Add d-type.
3336         * modules/host-os: New module.
3337         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
3338         m4/inttypes_h.m4, m4/uintmax_t.m4.
3339         * Depends-on: Add stdint.
3340         (lib_SOURCES): Add human.h.
3341         * modules/inttostr (Files): Remove m4/intmax_t.m4,
3342         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
3343         m4/uintmax_t.m4, m4/ulonglong.m4.
3344         (Depends-on): Add stdint.
3345         (EXTRA_DIST): Add inttostr.h.
3346         * modules/lchmod: New module.
3347         * modules/link-follow: New module.
3348         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
3349         (Depends-on): Add lchmod.
3350         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
3351         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
3352         (Depends-on): Add stdint.
3353         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
3354         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
3355         (Depends-on): Add stdint.
3356         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
3357         * modules/perl: New module.
3358         * modules/regex (Depends-on): Add stdint.
3359         * modules/rmdir-errno: New module.
3360         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
3361         m4/intmax_t.m4.
3362         (Depends-on): Add stdint.
3363         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
3364         m4/uintmax_t.m4.
3365         (Depends-on): Add stdint.
3366         * modules/unlink-busy: New module.
3367         * modules/utimecmp (Depends-on): Add stdint.
3368         * modules/uptime: New module.
3369         * modules/winsz-ioctl: New module.
3370         * modules/winsz-termios: New module.
3371         * modules/xnanosleep (Depends-on): Add nanosleep.
3372         * modules/ullong_max: Remove.
3373         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
3374         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
3375         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
3376         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
3377         (Depends-on): Add inttypes.
3378         (lib_SOURCES): Add xstrtol.h.
3379         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
3380         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
3381         * MODULES.html.sh: Move 'assert' into the assert section.
3382         Move 'dummy' into the linking section.
3383         Remove ullong_max.
3384         Add section for compatibility checks for POSIX:2001 functions,
3385         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
3386         winsz-ioctl, and winsz-termios into it.
3387         Add lchmod.
3388         Add top-level Misc section and put host-os, perl, and uptime
3389         into it.
3390
3391 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3392
3393         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
3394         now assume the stdint module.  Do not include inttypes.h.
3395         * lib/fsusage.h: Likewise.
3396         * lib/getndelim2.c: Likewise.
3397         * lib/human.h: Likewise.
3398         * lib/inttostr.h: Likewise.
3399         * lib/obstack.c: Likewise.
3400         * lib/regex_internal.h: Likewise.
3401         * lib/tempname.c: Likewise.
3402         * lib/utimecmp.c: Likewise.
3403         * lib/xstrtol.h: Likewise.
3404
3405         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
3406
3407         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
3408         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
3409         * lib/xtime.h: Likewise.
3410
3411 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3412
3413         * modules/openat (Files): Add lib/fchmodat.c.
3414         Fixes problem reported by Jay Youngman.
3415
3416 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3417
3418         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
3419         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
3420
3421 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3422             Bruno Haible  <bruno@clisp.org>
3423
3424         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
3425         and is a script that invokes bison. Tighten the code. Add comments.
3426
3427 2006-08-18  Jim Meyering  <jim@meyering.net>
3428
3429         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
3430         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
3431         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
3432         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
3433
3434 2006-08-18  Bruno Haible  <bruno@clisp.org>
3435
3436         * modules/bison-i18n: New file.
3437         * MODULES.html.sh (Internationalization functions): Add it.
3438
3439 2006-08-18  Bruno Haible  <bruno@clisp.org>
3440
3441         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
3442         sys/statvfs.h. When getmntinfo was found, check its declaration and
3443         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
3444
3445 2006-08-18  Bruno Haible  <bruno@clisp.org>
3446
3447         * m4/bison-i18n.m4: New file, from bison.
3448
3449 2006-08-18  Bruno Haible  <bruno@clisp.org>
3450
3451         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
3452         (ME_DUMMY): Treat "kernfs" as a dummy.
3453         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
3454
3455 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3456
3457         Update from coreutils.
3458
3459         2006-08-15  Jim Meyering  <jim@meyering.net>
3460
3461         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
3462
3463         2006-01-17  Jim Meyering  <jim@meyering.net>
3464
3465         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
3466
3467         2006-01-11  Jim Meyering  <jim@meyering.net>
3468
3469         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
3470         Check for the lchmod function.
3471
3472 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3473
3474         Update from coreutils.
3475
3476         * lib/__fpending.h: Add copyright notice.
3477         * lib/fprintftime.h: Likewise.
3478         * lib/savedir.c: Use (C) in copyright notice.
3479         * lib/savedir.h: Likewise.
3480
3481         2006-08-15  Jim Meyering  <jim@meyering.net>
3482
3483         * lib/at-func.c: New file, with the logic of all emulated at-functions.
3484         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
3485         in support of the EXPECTED_ERRNO macro.
3486         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
3487         definitions.  Instead, define the appropriate symbols and include
3488         "at-func.c".
3489         * lib/mkdirat.c (mkdirat): Likewise.
3490         * lib/fchmodat.c (fchmodat): Likewise.
3491         (ENOSYS): Remove definition.
3492         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
3493         it.  Don't include "unistd--.h" -- it wasn't ever used.
3494
3495         2006-01-17  Jim Meyering  <jim@meyering.net>
3496
3497         Rewrite fts.c not to change the current working directory,
3498         by using openat, fstatat, fdopendir, etc..
3499
3500         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
3501         (HAVE_OPENAT_SUPPORT): Define.
3502         [_LIBC] (fchdir): Don't undef or define; no longer used.
3503         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
3504         Now, this `function' always succeeds, and consumes its file descriptor
3505         parameter -- so callers must not close such FDs.  Update callers.
3506         (diropen_fd, opendirat, cwd_advance_fd): New functions.
3507         (diropen): Add parameter, SP.  Adjust all callers.
3508         Implement using diropen_fd, rather than open.
3509         (fts_open): Initialize new member, fts_cwd_fd.
3510         Remove fts_rft-setting code.
3511         (fts_close): Close fts_cwd_fd, if necessary.
3512         (__opendir2): Define in terms of opendir or opendirat,
3513         depending on whether the FST_NOCHDIR flag is set.
3514         (fts_build): Since fts_safe_changedir consumes its FD, and since
3515         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
3516         and close the dup'd file descriptor upon failure.
3517         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
3518         (fts_safe_changedir): Tweak semantics to reflect that this function
3519         now calls cwd_advance_fd and hence consumes its FD argument.
3520         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
3521         [struct FTS] (fts_rft): Remove now-unused member.
3522         [struct FTS] (fts_cycle.state): Improve comment.
3523
3524         * lib/openat.c (openat_needs_fchdir): New function.
3525         * lib/openat.h (openat_needs_fchdir): Declare it.
3526
3527 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3528
3529         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
3530         Problem and fix reported by Pádraig Brady in
3531         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
3532
3533 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3534
3535         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
3536
3537 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3538
3539         * lib/memcoll.c (memcoll): Optimize for the common case where the
3540         arguments are bytewise equal.
3541
3542 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3543
3544         * doc/regexprops-generic.texi: Add a copyright notice.
3545
3546 2006-08-15  Bruno Haible  <bruno@clisp.org>
3547
3548         * modules/tmpdir (License): Change to LGPL.
3549
3550 2006-08-15  Bruno Haible  <bruno@clisp.org>
3551
3552         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
3553         module.
3554
3555 2006-08-14  Simon Josefsson  <jas@extundo.com>
3556
3557         * config/srclist.txt: Add gnupload.
3558
3559 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3560
3561         Change copyright notice from LGPL 2 to GPL 2, since that's the
3562         standard form used in the gnulib repository.
3563         * tests/test-lock.c: Likewise.
3564         * tests/test-stdint.c: Likewise.
3565         * tests/test-tls.c: Likewise.
3566
3567         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
3568         prelude-manager.  User shorter URLs for GNU projects, without '?'.
3569         Add copyright notice.
3570
3571         * check-module: Add copyright notice.  Output a copyright
3572         notice if "--version" is specified.
3573         * modules/COPYING: New file.
3574         * tests/test-getaddrinfo.c: Add copyright notice.
3575         * tests/test-verify.c: Likewise.
3576
3577 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3578
3579         Change copyright notice from LGPL 2 to GPL 2, since that's the
3580         standard form used in the gnulib repository.
3581         * lib/lock.c: LGPL -> GPL.
3582         * lib/lock.h: Likewise.
3583         * lib/strnlen1.c: Likewise.
3584         * lib/strnlen1.h: Likewise.
3585         * lib/tls.c: Likewise.
3586         * lib/tls.h: Likewise.
3587         * lib/tmpdir.c: Likewise.
3588
3589         * lib/TODO: Remove; this belongs only in coreutils.
3590
3591 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3592
3593         Add copyright notices to long-enough files that lack them, since
3594         otherwise the files aren't clearly free.  Use the same notice that
3595         getdate.texi already uses.
3596         * doc/alloca-opt.texi: Add copyright notice.
3597         * doc/alloca.texi: Likewise.
3598         * doc/ctime.texi: Likewise.
3599         * doc/functions.texi: Likewise.
3600         * doc/gcd.texi: Likewise.
3601         * doc/gnulib-tool.texi: Likewise.
3602         * doc/inet_ntoa.texi: Likewise.
3603         * doc/visibility.texi: Likewise.
3604
3605         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
3606         * doc/quote.texi: Add copyright notice.
3607
3608         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
3609         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
3610         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
3611         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
3612         is now obsolete, and give a pointer to the Sun list.
3613         Add copyright notice.
3614
3615 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3616
3617         * config/srclistvars.sh: Add copyright notice.
3618
3619 2006-08-14  Eric Blake  <ebb9@byu.net>
3620
3621         Import the following change from libc:
3622
3623         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
3624
3625         Upstream bug 2997.
3626         * lib/misc/error.c: Add space between program name and message if file
3627         name is missing.
3628
3629 2006-08-12  Karl Berry  <karl@gnu.org>
3630
3631         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
3632         remove, these originate in gnulib now.
3633
3634 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3635
3636         * doc/Makefile (standards.info standards.html standards.dvi):
3637         Also depend on make-stds.texi.
3638
3639 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3640
3641         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
3642         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
3643
3644         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
3645         in wchar_t.  Problem reported by Eric Blake.
3646
3647         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
3648         LEN is smaller than SIZE.  Suggested by Bruno Haible.
3649         Also, help the compiler to keep LEN in a register.
3650
3651 2006-08-11  Eric Blake  <ebb9@byu.net>
3652
3653         * users.txt: Sort.  Add tar.
3654
3655 2006-08-11  Bruno Haible  <bruno@clisp.org>
3656
3657         * users.txt: New file.
3658
3659 2006-08-11  Bruno Haible  <bruno@clisp.org>
3660
3661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
3662         before <wchar.h>. Needed for OSF/1 and BSD/OS.
3663
3664 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3665
3666         * modules/snprintf (Depends-on): Remove minmax.
3667         (Maintainer): Add self and Bruno.
3668
3669 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3670
3671         * lib/.cppi-disable: Add snprintf.h, socket_.h.
3672         * lib/snprintf.c: Include <errno.h> and <limits.h>.
3673         (EOVERFLOW): Define if the system does not.
3674         Do not include "minmax.h"; it wasn't used.
3675         (snprintf): Don't assume size_t promotes to an unsigned type.
3676         Fix bug when generated string was too long for the buffer: the
3677         buffer's contents are supposed to be the initial prefix of the
3678         output.  Don't assume vasnprintf returns EOVERFLOW if the size
3679         exceeds INT_MAX; do the check ourselves.
3680
3681         Import the following changes from libc:
3682
3683         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
3684
3685         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
3686         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
3687         set wc to the byte which couldn't be converted.
3688         (re_string_reconstruct): Don't clear valid_raw_len before calling
3689         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
3690         tip_context using re_string_context_at.
3691
3692         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
3693
3694         * lib/posix/regex.h: g++ still cannot handled [restrict].
3695
3696         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
3697
3698         * lib/posix/regex.h: Remove special handling for VMS.
3699
3700 2006-08-10  Jim Meyering  <jim@meyering.net>
3701
3702         * modules/same-inode: New module.
3703         * modules/dev-ino: New module.
3704         * modules/cycle-check: Depend on these modules, rather than simply
3705         including their .h files.
3706         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
3707         required via m4/cycle-check.m4.
3708         * modules/same: Depend on new same-inode module, rather than
3709         including same-inode.h.
3710         * modules/chdir-safer: New file.
3711
3712         * modules/chown (Depends-on): Add stat-macros.
3713
3714 2006-08-10  Jim Meyering  <jim@meyering.net>
3715
3716         * m4/cycle-check.m4: New file.
3717         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
3718         * m4/dev-ino.m4, m4/same-inode.m4: New files.
3719
3720 2006-08-10  Eric Blake  <ebb9@byu.net>
3721
3722         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
3723         in from original proposal.
3724
3725 2006-08-10  Eric Blake  <ebb9@byu.net>
3726         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3727
3728         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
3729         namespace.
3730
3731 2006-08-10  Bruno Haible  <bruno@clisp.org>
3732
3733         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
3734         as well.
3735
3736 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3737
3738         Sync from coreutils.
3739
3740         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
3741
3742         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
3743         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
3744
3745 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3746
3747         * modules/restrict: Remove; no longer needed now that we assume
3748         Autoconf 2.59 or later.
3749         * MODULES.html.sh: Remove 'restrict'.
3750         * modules/argp (Depends-on): Remove 'restrict'.
3751         * modules/base64 (Depends-on): Likewise.
3752         * modules/gc (Depends-on): Likewise.
3753         * modules/getaddrinfo (Depends-on): Likewise.
3754         * modules/glob (Depends-on): Likewise.
3755         * modules/inet_ntop (Depends-on): Likewise.
3756         * modules/inet_pton (Depends-on): Likewise.
3757         * modules/memxor (Depends-on): Likewise.
3758         * modules/regex (Depends-on): Likewise.
3759         * modules/strtok_r (Depends-on): Likewise.
3760         * modules/time_r (Depends-on): Likewise.
3761
3762 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3763
3764         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
3765         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
3766         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
3767         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
3768         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3769         * m4/memxor.m4 (gl_MEMXOR): Likewise.
3770         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
3771         gl_C_RESTRICT replaced by AC_C_RESTRICT.
3772
3773         Merge from coreutils.
3774         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
3775         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
3776         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3777         * m4/time_r.m4 (gl_TIME_R): Likewise.
3778
3779 2006-08-09  Karl Berry  <karl@gnu.org>
3780
3781         * config/srclist.txt: no more gettext-tools, per Bruno.
3782
3783 2006-08-08  Eric Blake  <ebb9@byu.net>
3784
3785         * modules/verror: New module.
3786         * MODULES.html.sh: Document it.
3787
3788 2006-08-08  Eric Blake  <ebb9@byu.net>
3789
3790         * lib/verror.h, lib/verror.c: New files.
3791
3792 2006-08-08  Eric Blake  <ebb9@byu.net>
3793
3794         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
3795         verror_at_line output complies with GNU Coding Standards even when
3796         file is NULL.
3797
3798 2006-08-07  Bruno Haible  <bruno@clisp.org>
3799
3800         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
3801         versions of AIX.
3802         Reported by Ralf Wildenhues.
3803
3804 2006-08-07  Bruno Haible  <bruno@clisp.org>
3805
3806         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
3807         in an AC_DEFUN. Needed so that the autoconf snippets can use
3808         AC_REQUIRE.
3809
3810 2006-08-06  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3811
3812         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3813         Initialize pkgdata_DATA.
3814         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
3815         overriding it.
3816
3817 2006-08-06  Eric Blake  <ebb9@byu.net>
3818
3819         * lib/error.h: Fold in some upstream changes from glibc.
3820         * lib/error.c: Likewise.
3821
3822 2006-08-04  Bruno Haible  <bruno@clisp.org>
3823
3824         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3825         Make the mostlyclean-local rule depend on mostlyclean-generic.
3826         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
3827
3828 2006-07-31  Bruno Haible  <bruno@clisp.org>
3829
3830         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
3831         <stdlib.h>, <string.h>.
3832
3833 2006-07-30  Bruno Haible  <bruno@clisp.org>
3834
3835         * modules/readlink (License): Change to LGPL.
3836
3837 2006-07-30  Bruno Haible  <bruno@clisp.org>
3838
3839         * modules/javaversion (Makefile.am): Distribute javaversion.java and
3840         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
3841         set PKGDATADIR to point to it.
3842
3843 2006-07-30  Bruno Haible  <bruno@clisp.org>
3844
3845         * modules/csharpexec (configure.ac): Comment out macro invocation.
3846         * modules/javaexec (configure.ac): Likewise.
3847         * modules/javacomp-script (configure.ac): Likewise.
3848
3849         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
3850
3851 2006-07-30  Bruno Haible  <bruno@clisp.org>
3852
3853         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
3854         linked-list.
3855
3856 2006-07-30  Bruno Haible  <bruno@clisp.org>
3857
3858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
3859
3860 2006-07-30  Bruno Haible  <bruno@clisp.org>
3861
3862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3863         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
3864         get removed.
3865
3866 2006-07-29  Bruno Haible  <bruno@clisp.org>
3867
3868         Make it possible for gnulib-tool to work with locally modified or
3869         augmented gnulib repositories.
3870         * gnulib-tool (func_usage): Document --local-dir option.
3871         (local_gnulib_dir): New variable.
3872         Handle --local-dir option.
3873         (func_lookup_file): New function.
3874         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
3875         (func_get_description, func_get_filelist, func_get_description,
3876         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
3877         func_get_automake_snippet, func_get_include_directive,
3878         func_get_license, func_get_maintainer): Use func_lookup_file.
3879         (func_import, func_create_testdir): Use func_lookup_file.
3880
3881 2006-07-29  Bruno Haible  <bruno@clisp.org>
3882
3883         * modules/setenv (Depends-on): Add unistd.
3884
3885 2006-07-29  Bruno Haible  <bruno@clisp.org>
3886
3887         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
3888
3889 2006-07-29  Bruno Haible  <bruno@clisp.org>
3890
3891         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
3892
3893 2006-07-29  Bruno Haible  <bruno@clisp.org>
3894
3895         * gnulib-tool (import, update): If there is no Makefile.am, look at
3896         aclocal.m4, instead of bailing out.
3897
3898 2006-07-29  Bruno Haible  <bruno@clisp.org>
3899
3900         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
3901         Categorize the options by when they are useful.
3902
3903 2006-07-29  Bruno Haible  <bruno@clisp.org>
3904
3905         * gnulib-tool (func_usage): Document option --no-libtool.
3906         Handle option --no-libtool.
3907         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
3908         for changed semantics of $libtool variable.
3909         (func_import): Likewise. If libtool is not used, show this through
3910         an option --no-libtool.
3911         (func_create_testdir): Update.
3912
3913 2006-07-29  Bruno Haible  <bruno@clisp.org>
3914
3915         * gnulib-tool (func_import): Extend error message about missing
3916         --doc-base.
3917
3918 2006-07-29  Bruno Haible  <bruno@clisp.org>
3919
3920         * gnulib-tool (func_import): Don't create the $docbase directory if
3921         there is no file to store there.
3922
3923 2006-07-29  Bruno Haible  <bruno@clisp.org>
3924
3925         * gnulib-tool (autoconf_minversion): If a --dir option is given and
3926         relevant, look for configure.ac there, not in the current directory.
3927         Also use a simple search for AC_PREREQ, not "autoconf --trace".
3928
3929 2006-07-29  Bruno Haible  <bruno@clisp.org>
3930
3931         * gnulib-tool (SORT): New variable.
3932         (func_usage): Undocument --assume-autoconf option.
3933         Remove --assume-autoconf option handling.
3934         (autoconf_minversion): Determine from the contents of configure.ac.
3935         (func_import): Remove autoconf_minversion handling.
3936         Suggested by Eric Blake.
3937
3938 2006-07-29  Bruno Haible  <bruno@clisp.org>
3939
3940         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
3941
3942 2006-07-29  Bruno Haible  <bruno@clisp.org>
3943
3944         * config/srclist.txt (*setenv.[ch]): Remove rules.
3945
3946 2006-07-28  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3947
3948         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
3949
3950 2006-07-28  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3951
3952         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
3953         arpa/inet.h.
3954
3955 2006-07-28  Simon Josefsson  <jas@extundo.com>
3956
3957         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
3958         * modules/inet_pton (Depends-on): Likewise.
3959
3960 2006-07-28  Simon Josefsson  <jas@extundo.com>
3961
3962         * m4/netinet_in_h.m4: New file.
3963
3964 2006-07-28  Simon Josefsson  <jas@extundo.com>
3965
3966         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
3967         #include's.
3968
3969 2006-07-28  Simon Josefsson  <jas@extundo.com>
3970
3971         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
3972         #include's.
3973
3974 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
3975
3976         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
3977         setgid on directories only if they set these bits.
3978         * lib/modechange.h: Remove obsolete comment about masks.
3979
3980 2006-07-28  Eric Blake  <ebb9@byu.net>
3981
3982         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
3983         macro expansion.
3984
3985 2006-07-28  Bruno Haible <bruno@clisp.org>
3986
3987         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
3988
3989 2006-07-28  Bruno Haible  <bruno@clisp.org>
3990
3991         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
3992
3993 2006-07-28  Bruno Haible  <bruno@clisp.org>
3994
3995         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3996         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3997         Define fallbacks.
3998         Avoids link error on FreeBSD 4.x.
3999         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4000
4001         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
4002         encoding.
4003         * lib/mbswidth.c (iswcntrl): Likewise.
4004
4005 2006-07-27  Bruno Haible  <bruno@clisp.org>
4006
4007         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
4008         test.
4009
4010 2006-07-27  Bruno Haible  <bruno@clisp.org>
4011
4012         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
4013         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
4014         defined.
4015
4016 2006-07-26  Eric Blake  <ebb9@byu.net>
4017
4018         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
4019
4020 2006-07-26  Eric Blake  <ebb9@byu.net>
4021
4022         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
4023         like mingw that lack mkstemp.
4024         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
4025         avoid compilation warning on mingw.
4026
4027 2006-07-26  Bruno Haible  <bruno@clisp.org>
4028
4029         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
4030         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
4031         INT_FAST*_MIN, INTPTR_MIN.
4032
4033 2006-07-25  Bruno Haible  <bruno@clisp.org>
4034
4035         * modules/version-etc (Depends-on): Add stdarg.
4036
4037 2006-07-25  Bruno Haible  <bruno@clisp.org>
4038
4039         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
4040         complex commands.
4041
4042 2006-07-25  Bruno Haible  <bruno@clisp.org>
4043
4044         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
4045         defined in <stdarg.h> or config.h.
4046
4047 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4048
4049         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
4050         (gl_STDIO_SAFER): Remove.
4051
4052 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4053
4054         * MODULES.html.sh (File stream based Input/Output):
4055         Add fopen-safer, tmpfile-safer; remove stdio-safer.
4056         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
4057         * modules/fopen-safer, modules/tmpfile-safer: New files.
4058         * modules/stdio-safer: Remove.
4059
4060 2006-07-24  Bruno Haible  <bruno@clisp.org>
4061
4062         * modules/tmpdir: New file.
4063         * MODULES.html.sh (File system functions): Add it.
4064
4065 2006-07-24  Bruno Haible  <bruno@clisp.org>
4066
4067         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
4068         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
4069
4070 2006-07-24  Bruno Haible  <bruno@clisp.org>
4071
4072         * modules/clean-temp: New file.
4073
4074 2006-07-24  Bruno Haible  <bruno@clisp.org>
4075
4076         * m4/tmpdir.m4: New file, from GNU gettext.
4077
4078 2006-07-24  Bruno Haible  <bruno@clisp.org>
4079
4080         * lib/tmpdir.h: New file, from GNU gettext.
4081         * lib/tmpdir.c: New file, from GNU gettext.
4082
4083 2006-07-24  Bruno Haible  <bruno@clisp.org>
4084
4085         * lib/clean-temp.h: New file, from GNU gettext.
4086         * lib/clean-temp.c: New file, from GNU gettext.
4087
4088 2006-07-23  Eric Blake  <ebb9@byu.net>
4089
4090         * modules/stdio-safer (Files): Add tmpfile-safer.c.
4091         (Depends-on): Add binary-io.
4092
4093 2006-07-23  Eric Blake  <ebb9@byu.net>
4094
4095         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
4096
4097 2006-07-23  Eric Blake  <ebb9@byu.net>
4098
4099         * lib/tmpfile-safer.c: New file.
4100         * lib/stdio-safer.h (fopen_safer): Add prototype.
4101         * lib/stdio--.h (tmpfile): Make safer.
4102
4103 2006-07-23  Bruno Haible  <bruno@clisp.org>
4104
4105         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
4106         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
4107         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
4108         gl_linked_remove_at): Use it.
4109
4110 2006-07-22  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4111         and Simon Josefsson <jas@extundo.com>
4112
4113         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
4114
4115         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
4116
4117 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4118
4119         * modules/close-stream: New file.
4120         * modules/closeout (Description): Make it clear that it exits
4121         with a diagnostic on error.
4122         (Depends-on): Add close-stream.  Remove fpending, stdbool.
4123         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
4124
4125 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4126
4127         * m4/close-stream.m4: New file.
4128
4129 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4130
4131         * lib/close-stream.c, lib/close-stream.h: New files.
4132
4133 2006-07-22  Bruno Haible  <bruno@clisp.org>
4134
4135         Merge from GNU gettext 0.15.
4136
4137         2006-05-01  Bruno Haible  <bruno@clisp.org>
4138
4139                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
4140
4141         2006-07-22  Bruno Haible  <bruno@clisp.org>
4142
4143                 * modules/javaversion: New file.
4144                 * MODULES.html.sh (Java): Add javaversion.
4145
4146         2006-03-12  Bruno Haible  <bruno@clisp.org>
4147
4148                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
4149
4150         2005-12-04  Bruno Haible  <bruno@clisp.org>
4151
4152                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
4153                 (untested).
4154
4155         2006-06-21  Bruno Haible  <bruno@clisp.org>
4156
4157                 Avoid warnings from recent versions of mcs.
4158                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
4159                 -o, -L, -r any more. Use options documented since mcs-1.0
4160                 instead. Similarly for -g.
4161
4162         2005-12-04  Bruno Haible  <bruno@clisp.org>
4163
4164                 * build-aux/csharpcomp.sh.in: Suffix for resources is
4165                 .resources, not .resource.
4166
4167         2005-07-09  Bruno Haible  <bruno@clisp.org>
4168
4169                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
4170                 add a .dll suffix.
4171                 Reported by Mark Junker <mjscod@gmx.de>.
4172
4173         2006-07-22  Bruno Haible  <bruno@clisp.org>
4174
4175                 * modules/gettext: Upgrade to gettext-0.15.
4176                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
4177                 m4/visibility.m4.
4178                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
4179
4180 2006-07-22  Bruno Haible  <bruno@clisp.org>
4181
4182         Merge from GNU gettext 0.15.
4183
4184         2006-03-25  Bruno Haible  <bruno@clisp.org>
4185
4186                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
4187
4188         2006-07-21  Bruno Haible  <bruno@clisp.org>
4189
4190                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
4191                 "1.1".
4192
4193         2006-05-09  Bruno Haible  <bruno@clisp.org>
4194
4195                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
4196                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
4197                 for the conftestver execution.
4198
4199         2006-05-01  Bruno Haible  <bruno@clisp.org>
4200
4201                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
4202                 optional target-version argument. Verify that the compiler
4203                 groks source of the specified source-version, or add -source
4204                 option as necessary. Verify that the compiler produces
4205                 bytecode in the specified target-version, or add -target and
4206                 -source options as necessary. Make the result of the test
4207                 available as variable CONF_JAVAC. Also log error output in
4208                 config.log.
4209
4210         2006-03-11  Bruno Haible  <bruno@clisp.org>
4211
4212                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
4213
4214         2006-05-09  Bruno Haible  <bruno@clisp.org>
4215
4216                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
4217                 CLASSPATH_SEPARATOR to a semicolon.
4218
4219         2006-03-12  Bruno Haible  <bruno@clisp.org>
4220
4221                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
4222                 available as variable CONF_JAVA, for subsequent autoconf
4223                 tests. Also log error output in config.log.
4224
4225         2006-07-19  Bruno Haible  <bruno@clisp.org>
4226
4227                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
4228                 that getline works on glibc2 systems. Needed to avoid trouble
4229                 in relocatable.c.
4230                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
4231
4232         2005-12-04  Bruno Haible  <bruno@clisp.org>
4233
4234                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
4235                 launcher (untested).
4236
4237         2005-12-04  Bruno Haible  <bruno@clisp.org>
4238
4239                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
4240
4241         2006-07-22  Bruno Haible  <bruno@clisp.org>
4242
4243                 * gettext.m4: Update from GNU gettext-0.15.
4244                 * nls.m4: Likewise.
4245                 * po.m4: Likewise.
4246                 * inttypes-pri.m4: Likewise.
4247                 * inttypes-h.m4: Renamed from inttypes.m4.
4248                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
4249
4250 2006-07-22  Bruno Haible  <bruno@clisp.org>
4251
4252         Merge from GNU gettext 0.15.
4253
4254         2005-07-05  Bruno Haible  <bruno@clisp.org>
4255
4256                 * printf-args.c (printf_fetchargs): Work around broken
4257                 definition of wint_t on mingw.
4258
4259         2005-02-12  Bruno Haible  <bruno@clisp.org>
4260
4261                 * xallocsa.h: Add extern "C" for C++.
4262
4263         2006-05-17  Bruno Haible  <bruno@clisp.org>
4264
4265                 Cygwin portability.
4266                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
4267
4268         2006-04-30  Bruno Haible  <bruno@clisp.org>
4269
4270                 * progreloc.c: Include <mach-o/dyld.h> if available.
4271                 (find_executable): Use _NSGetExecutablePath when possible.
4272
4273         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
4274
4275                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
4276                 function.
4277
4278         2005-12-29  Bruno Haible  <bruno@clisp.org>
4279
4280                 * progreloc.c (set_program_name_and_installdir): Fix
4281                 compilation error.
4282
4283         2005-12-04  Bruno Haible  <bruno@clisp.org>
4284
4285                 Cygwin portability.
4286                 * progreloc.c: Include <windows.h> also on Cygwin.
4287                 (find_executable): Add support for Cygwin.
4288                 (set_program_name_and_installdir): Handle also platforms with
4289                 nonempty EXEEXT.
4290
4291         2006-07-11  Bruno Haible  <bruno@clisp.org>
4292
4293                 * javacomp.c: Fix a comment.
4294                 Reported by Jim Meyering.
4295
4296         2006-04-30  Bruno Haible  <bruno@clisp.org>
4297
4298                 * javacomp.h (compile_java_class): Add source_version,
4299                 target_version arguments.
4300                 * javacomp.c: Rewritten to choose only a compiler that
4301                 respects the specified source_version and target_version.
4302
4303         2006-06-27  Bruno Haible  <bruno@clisp.org>
4304
4305                 Assume correct S_ISDIR macro.
4306                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
4307
4308         2006-07-22  Bruno Haible  <bruno@clisp.org>
4309
4310                 * javaversion.h: New file, from GNU gettext.
4311                 * javaversion.c: New file, from GNU gettext.
4312                 * javaversion.java: New file, from GNU gettext.
4313                 * javaversion.class: New file, from GNU gettext.
4314
4315         2006-05-17  Bruno Haible  <bruno@clisp.org>
4316
4317                 Cygwin portability.
4318                 * javaexec.c (execute_java_class): Test for jview program
4319                 also on Cygwin.
4320
4321         2006-04-09  Bruno Haible  <bruno@clisp.org>
4322
4323                 * fatal-signal.c: Don't include string.h.
4324                 (at_fatal_signal): Use a copying loop instead of memcpy.
4325
4326         2005-12-04  Bruno Haible  <bruno@clisp.org>
4327
4328                 * csharpexec.c: Add support for 'clix' launcher (untested).
4329                 (execute_csharp_using_sscli): New function.
4330                 (execute_csharp_program): Call it.
4331
4332         2006-06-21  Bruno Haible  <bruno@clisp.org>
4333
4334                 Avoid warnings from recent versions of mcs.
4335                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
4336                 -o, -L, -r any more. Use options documented since mcs-1.0
4337                 instead. Similarly for -g.
4338
4339         2005-07-09  Bruno Haible  <bruno@clisp.org>
4340
4341                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
4342                 add a .dll suffix.
4343                 Reported by Mark Junker <mjscod@gmx.de>.
4344
4345         2006-06-17  Bruno Haible  <bruno@clisp.org>
4346
4347                 * config.charset: Update for NetBSD 3.0.
4348
4349         2006-05-17  Bruno Haible  <bruno@clisp.org>
4350
4351                 Cygwin portability.
4352                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
4353
4354         2006-05-16  Bruno Haible  <bruno@clisp.org>
4355
4356                 * localcharset.c [CYGWIN]: Include <windows.h>.
4357                 (get_charset_aliases): For Cygwin, return the same CPxxx
4358                 aliases list as under WIN32.
4359                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
4360                 the environment variables. Fall back to GetACP().
4361
4362         2006-04-05  Bruno Haible  <bruno@clisp.org>
4363
4364                 * config.charset: Update Juan Manuel Guerrero's address.
4365
4366         2005-02-12  Bruno Haible  <bruno@clisp.org>
4367
4368                 * allocsa.h: Add extern "C" for C++.
4369
4370         2005-02-10  Bruno Haible  <bruno@clisp.org>
4371
4372                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
4373                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
4374
4375         2006-07-22  Bruno Haible  <bruno@clisp.org>
4376
4377                 * gettext.h: Update to GNU gettext-0.15.
4378
4379 2006-07-22  Bruno Haible  <bruno@clisp.org>
4380
4381         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
4382         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
4383         lib-prefix.m4, longdouble.m4, ssize_t.m4.
4384
4385 2006-07-21  Eric Blake  <ebb9@byu.net>
4386
4387         * modules/stdlib-safer: New file.
4388         * MODULES.html.sh (File stream based Input/Output): Add
4389         stdlib-safer.
4390
4391 2006-07-21  Eric Blake  <ebb9@byu.net>
4392
4393         * lib/stdlib-safer.h: New file from coreutils, required by
4394         stdlib--.h.
4395
4396 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4397
4398         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
4399
4400 2006-07-20  Bruno Haible  <bruno@clisp.org>
4401
4402         * gnulib-tool: Recognize new option --assume-autoconf.
4403         (autoconf_minversion): New variable.
4404         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
4405
4406 2006-07-20  Bruno Haible  <bruno@clisp.org>
4407
4408         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
4409
4410 2006-07-19  Derek R. Price  <derek@ximbiot.com>
4411
4412         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
4413         Reindent and repaginate.
4414
4415 2006-07-19  Derek Price  <derek@ximbiot.com>
4416
4417         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
4418         Correct grammar.
4419
4420 2006-07-17  Bruno Haible  <bruno@clisp.org>
4421
4422         * modules/list: New file.
4423         * modules/array-list: New file.
4424         * modules/carray-list, modules/carray-list-tests: New files.
4425         * modules/linked-list, modules/linked-list-tests: New files.
4426         * modules/avltree-list, modules/avltree-list-tests: New files.
4427         * modules/rbtree-list, modules/rbtree-list-tests: New files.
4428         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
4429         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
4430         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
4431         * modules/oset: New file.
4432         * modules/array-oset: New file.
4433         * modules/avltree-oset, modules/avltree-oset-tests: New files.
4434         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
4435         * tests/test-carray_list.c: New file.
4436         * tests/test-linked_list.c: New file.
4437         * tests/test-avltree_list.c: New file.
4438         * tests/test-rbtree_list.c: New file.
4439         * tests/test-linkedhash_list.c: New file.
4440         * tests/test-avltreehash_list.c: New file.
4441         * tests/test-rbtreehash_list.c: New file.
4442         * tests/test-avltree_oset.c: New file.
4443         * tests/test-rbtree_oset.c: New file.
4444         * MODULES.html.sh (Container data structures): New section.
4445
4446 2006-07-17  Bruno Haible  <bruno@clisp.org>
4447
4448         * m4/gl_list.m4: New file.
4449
4450 2006-07-17  Bruno Haible  <bruno@clisp.org>
4451
4452         * lib/gl_list.h: New file.
4453         * lib/gl_list.c: New file.
4454         * lib/gl_array_list.h: New file.
4455         * lib/gl_array_list.c: New file.
4456         * lib/gl_carray_list.h: New file.
4457         * lib/gl_carray_list.c: New file.
4458         * lib/gl_linked_list.h: New file.
4459         * lib/gl_linked_list.c: New file.
4460         * lib/gl_anylinked_list1.h: New file.
4461         * lib/gl_anylinked_list2.h: New file.
4462         * lib/gl_avltree_list.h: New file.
4463         * lib/gl_avltree_list.c: New file.
4464         * lib/gl_anyavltree_list1.h: New file.
4465         * lib/gl_anyavltree_list2.h: New file.
4466         * lib/gl_rbtree_list.h: New file.
4467         * lib/gl_rbtree_list.c: New file.
4468         * lib/gl_anyrbtree_list1.h: New file.
4469         * lib/gl_anyrbtree_list2.h: New file.
4470         * lib/gl_anytree_list1.h: New file.
4471         * lib/gl_anytree_list2.h: New file.
4472         * lib/gl_linkedhash_list.h: New file.
4473         * lib/gl_linkedhash_list.c: New file.
4474         * lib/gl_anyhash_list1.h: New file.
4475         * lib/gl_anyhash_list2.h: New file.
4476         * lib/gl_avltreehash_list.h: New file.
4477         * lib/gl_avltreehash_list.c: New file.
4478         * lib/gl_rbtreehash_list.h: New file.
4479         * lib/gl_rbtreehash_list.c: New file.
4480         * lib/gl_anytreehash_list1.h: New file.
4481         * lib/gl_anytreehash_list2.h: New file.
4482
4483         * lib/gl_oset.h: New file.
4484         * lib/gl_oset.c: New file.
4485         * lib/gl_array_oset.h: New file.
4486         * lib/gl_array_oset.c: New file.
4487         * lib/gl_avltree_oset.h: New file.
4488         * lib/gl_avltree_oset.c: New file.
4489         * lib/gl_rbtree_oset.h: New file.
4490         * lib/gl_rbtree_oset.c: New file.
4491         * lib/gl_anytree_oset.h: New file.
4492
4493 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4494
4495         * m4/mkancesdirs.m4: New file.
4496         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
4497         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
4498         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
4499         it.
4500
4501 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4502
4503         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
4504         * lib/mkancesdirs.h: New files.
4505         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
4506         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
4507         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
4508         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
4509         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
4510         callers changed.  Revamp internals significantly, by not
4511         attempting to create directories that are temporarily more
4512         permissive than the final results.  Do not attempt to use
4513         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
4514         This removes some race conditions, fixes some bugs, and simplifies
4515         things.  Use new dirchownmod function to do owner and mode changes.
4516         * lib/mkdir-p.h: Likewise.
4517         * lib/modechange.c (octal_to_mode): New function.
4518         (struct mode_change): New member mentioned.
4519         (make_node_op_equals): New arg mentioned.  All callers changed.
4520         (mode_compile): Keep track of which mode bits the user has explicitly
4521         mentioned.
4522         (mode_adjust): New arg DIR, so that we implement the X op correctly.
4523         New arg PMODE_BITS, to keep track of which mode bits the user
4524         mentioned; it treats S_ISUID and S_ISGID speciall.
4525         All callers changed.
4526         * lib/modechange.h: Likewise.
4527
4528 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4529
4530         * MODULES.html.sh: Add mkancestors.
4531         * modules/mkancesdirs: New module.
4532         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
4533         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
4534         The chdir-safer and afs files are now orphans; I'll remove them
4535         unless someone speaks up.
4536         Add lib/dirchownmod.c, lib/dirchownmod.h.
4537         (Depends-on): Remove alloca, chown, save-cwd, dirname.
4538         Add lchown, mkancesdirs.
4539         (Maintainer): Add self.
4540
4541 2006-07-15  Karl Berry  <karl@gnu.org>
4542
4543         * gnulib-tool: help message wording/arrangement.
4544
4545 2006-07-14  Simon Josefsson  <jas@extundo.com>
4546
4547         * doc/gnulib.texi (Libtool and Windows): New section.
4548
4549 2006-07-12  Simon Josefsson  <jas@extundo.com>
4550
4551         * modules/gendocs (License): Fix license, approved by Karl.
4552
4553 2006-07-12  Eric Blake  <ebb9@byu.net>
4554
4555         * MODULES.html.sh: Add gendocs.
4556
4557 2006-07-11  Eric Blake  <ebb9@byu.net>
4558
4559         * modules/fdl: New module, to install doc/fdl.texi.
4560         * MODULES.html.sh: Add new section for documentation modules.
4561         * gnulib-tool: Avoid space-tab.
4562         (--doc-base): New option, to manage files from doc.
4563
4564 2006-07-11  Eric Blake  <ebb9@byu.net>
4565
4566         * m4/absolute-header.m4: Fix comments to match recent change.
4567
4568 2006-07-11  Eric Blake  <ebb9@byu.net>
4569
4570         * gnulib-tool: List --doc-base before --tests-base.
4571
4572 2006-07-11  Derek R. Price  <derek@ximbiot.com>
4573
4574         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
4575
4576 2006-07-11  Bruno Haible  <bruno@clisp.org>
4577
4578         * README: Mention where to put documentation.
4579
4580 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4581
4582         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
4583
4584 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4585
4586         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
4587         to stdint.m4.
4588
4589 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4590
4591         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
4592         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
4593         "no/such/file/stdint.h" when there is no such file, so that
4594         the resulting C code can be parsed by dodgy compilers.
4595         Problems reported by Bob Proulx.
4596
4597 2006-07-10  Derek R. Price  <derek@ximbiot.com>
4598
4599         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
4600         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
4601         macros into the GNU _D_EXACT_NAMLEN.
4602         * lib/savedir.c:  Likewise.
4603         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
4604
4605 2006-07-10  Derek R. Price  <derek@ximbiot.com>
4606         and Paul Eggert  <eggert@cs.ucla.edu>
4607
4608         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
4609         * m4/savedir.m4:
4610         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
4611         macros into the GNU _D_EXACT_NAMLEN.
4612
4613 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4614
4615         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
4616         around the absolute name, to work around a problem with the HP-UX
4617         11.23 native C compiler, reported by Bob Proulx.
4618
4619 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4620
4621         * doc/maintain.texi, make-stds.texi: Sync from
4622         <http://savannah.gnu.org/projects/gnustandards>.
4623
4624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4625
4626         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
4627
4628 2006-07-09  Jim Meyering  <jim@meyering.net>
4629
4630         * m4/glob.m4: Remove a doubled word in a comment.
4631
4632 2006-07-09  Jim Meyering  <jim@meyering.net>
4633
4634         * lib/argp-pv.c: Remove a doubled word in a comment.
4635         * lib/check-version.c (check_version): Likewise.
4636         * lib/javacomp.c (compile_java_class): Likewise.
4637
4638 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4639
4640         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
4641         for the benefit of people using Autoconf 2.60.  If you want to
4642         support older Autoconf versions you can copy m4/onceonly_2_57.m4
4643         (or m4/onceonly.m4, if pre-2.57) manually.
4644
4645 2006-07-08  Jim Meyering  <jim@meyering.net>
4646
4647         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
4648         comment.
4649         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
4650         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
4651         comment.
4652
4653 2006-07-08  Jim Meyering  <jim@meyering.net>
4654
4655         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
4656
4657 2006-07-07  Simon Josefsson  <jas@extundo.com>
4658
4659         * tests/test-crc.c: Change expected crc value, the test vector
4660         were probably computed using the old broken crc.c?
4661
4662 2006-07-06  Simon Josefsson  <jas@extundo.com>
4663
4664         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
4665         now the canonical place for the M4 file).
4666
4667         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
4668         from the sys_socket dependency now.
4669
4670         * modules/inet_pton (Files): Ditto.
4671
4672         * modules/inet_ntop (Files): Ditto.
4673
4674 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
4675
4676         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
4677         not gl_PREREQ_GETUSERSHELL.
4678
4679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4680
4681         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
4682         with only one argument, for Autoconf 2.60.
4683         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
4684         expand to nothing, so add a shell command to avoid syntax error.
4685         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4686
4687 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4688
4689         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
4690
4691 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4692
4693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
4694         no longer needed.  Check for isblank decl.
4695         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
4696         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
4697         of existence.
4698
4699 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4700
4701         * lib/getloadavg.c: Use __VMS, not VMS.
4702         * lib/getopt.c: Likewise.
4703         * lib/getpagesize.h: Likewise.
4704         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
4705         and probably does not work.
4706
4707 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4708
4709         * lib/.cppi-disable: Add wcwidth.
4710         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
4711         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
4712         (ISGRAPH): Remove.  All uses changed to isgraph.
4713         (FOLD) [!defined _LIBC]: Remove special case.
4714         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
4715         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
4716         HAVE_ISBLANK.
4717         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
4718         case.
4719
4720 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
4721
4722         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
4723         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
4724         brackets.  Other minor changes to suppress some compiler
4725         warnings.
4726
4727 2006-07-06  Derek R. Price  <derek@ximbiot.com>
4728         and Paul Eggert  <eggert@cs.ucla.edu>
4729
4730         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
4731         of invoking obsolescent AC_HEADER_DIRENT macro.
4732         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4733         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4734         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4736         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
4737         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4738         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
4739         * m4/readdir.m4: Remove; no longer needed.
4740
4741 2006-07-06  Derek R. Price  <derek@ximbiot.com>
4742         and Paul Eggert  <eggert@cs.ucla.edu>
4743
4744         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
4745         Don't worry about this obsolete case any more.
4746         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
4747         directories.
4748         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
4749         worry about this obsolete case any more.
4750         * lib/fts.c: Likewise.
4751         * lib/getcwd.c: Likewise.
4752         * lib/glob.h: Likewise.
4753         * lib/savedir.c: Likewise.
4754
4755 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4756
4757         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
4758         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
4759         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
4760         needed.
4761         All uses removed.
4762         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4763         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
4764         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
4765         needed.
4766         * m4/getdate.m4 (gl_GETDATE): Likewise.
4767         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
4768         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
4769         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4770         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4771         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
4772         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
4773         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
4774         needed.
4775
4776 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4777
4778         * lib/memcasecmp.c: Include <limits.h>.
4779         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
4780         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
4781         Don't assume isdigit succeeds only on '0' through '9'.
4782
4783 2006-07-05  Eric Blake  <ebb9@byu.net>
4784
4785         * modules/getaddrinfo (Depends-on): Add snprintf.
4786
4787 2006-07-05  Eric Blake  <ebb9@byu.net>
4788
4789         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
4790         to avoid 'header present but could not be compiled' on cygwin.
4791
4792 2006-07-05  Eric Blake  <ebb9@byu.net>
4793
4794         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
4795         missing from netdb.h.
4796         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
4797
4798 2006-07-05  Derek R. Price  <derek@ximbiot.com>
4799
4800         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
4801         no longer needed.
4802         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
4803         * m4/getdate.m4 (gl_GETDATE): Likewise.
4804         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
4805         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
4806         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4807         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4808         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
4809
4810 2006-07-05  Derek R. Price  <derek@ximbiot.com>
4811
4812         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
4813         All uses of is_space replaced by isspace.
4814         * lib/exit.h: Don't talk about STDC_HEADERS.
4815         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
4816         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
4817         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
4818         replaced by isprint etc.
4819         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
4820         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
4821         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
4822         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
4823         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
4824         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
4825
4826 2006-07-05  Bruno Haible  <bruno@clisp.org>
4827
4828         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
4829         the function exists, before testing against AIX.
4830         Reported by Martin Lambers <marlam@marlam.de>.
4831
4832 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4833
4834         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
4835         From Mark D. Baushke.
4836
4837 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4838
4839         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
4840         to the absolute name, not just one, to bypass Sun C 5.8's
4841         "warning: #include of /usr/include/... may be non-portable".
4842
4843 2006-07-04  Eric Blake  <ebb9@byu.net>
4844
4845         * modules/dirname-tests: New test module.
4846         * tests/test-dirname.c: New file, replacing dirname.c
4847         TEST_DIRNAME section that was recently deleted.
4848
4849 2006-07-04  Bruno Haible  <bruno@clisp.org>
4850
4851         Assume ANSI C header files and <ctype.h> functions.
4852         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
4853         (mbsnwidth): Use isprint, iscntrl instead.
4854
4855 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4856
4857         Merge from coreutils.
4858         * MODULES.html.sh: Add xstrtold.
4859         * modules/xstrtold: New file.
4860         * modules/cycle-check (Files): Add lib/same-inode.h.
4861         * modules/dirname (Files): Add m4/double-slash-root.m4.
4862         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
4863         * modules/mkdir-p (Files): Add lib/same-inode.h.
4864         * modules/same (Files): Add lib/same-inode.h.
4865
4866 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4867
4868         * m4/absolute-header.m4: Renamed from full-header-path.m4.
4869         This is to keep the terminology clean; POSIX talks about
4870         "absolute pathnames", not "full pathnames", but the GNU
4871         Coding Standards say to use "path" for something else;
4872         so use "absolute" to keep both sides happy.
4873         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
4874         Set gl_absolute_header, not gl_full_header_path.
4875         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
4876         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
4877         All uses changed.
4878
4879         Merge from coreutils.
4880
4881         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4882
4883         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
4884         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
4885         want to require the building of c-strtod.o.
4886         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
4887         needs -lm directly.
4888         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
4889
4890         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
4891
4892         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
4893         --as-needed option if available.  Problem reported by Albert Chin in
4894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
4895         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
4896         cc merely issues a bunch of annoying warnings for --as-needed
4897         (this problem was reported by Bob Proulx).  Also, try linking with
4898         -lm to detect a bug in binutils 2.16 (this problem was reported
4899         by Ralf Wildenhues).
4900
4901         2006-06-18  Jim Meyering  <jim@meyering.net>
4902
4903         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
4904         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
4905         macro.
4906         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
4907         also check for glibc-2.4's abort-inducing bug.
4908
4909         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
4910         Low-probability clean-up should be to use rmdir to get rid of
4911         the just-created directory, not unlink.
4912
4913         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
4914         configure fail, and request a bug report to inform us about it.
4915         Add a comment that, barring reports to the contrary, in 2007 we'll
4916         assume ftruncate is universally available.
4917
4918         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
4919
4920         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
4921
4922         2006-03-12  Jim Meyering  <jim@meyering.net>
4923
4924         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
4925         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
4926         * m4/same.m4 (gl_SAME): Likewise.
4927         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
4928
4929         2006-03-11  Eric Blake  <ebb9@byu.net>
4930
4931         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
4932         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
4933         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
4934         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
4935
4936 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4937
4938         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
4939         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
4940         reported by Mark D. Baushke, one in
4941         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
4942
4943         Merge from coreutils.
4944
4945         * lib/.cppi-disable: Add stdint_.h.
4946         * lib/.cvsignore: Add stdint.h.
4947
4948         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4949
4950         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
4951         both double and long double versions.
4952         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
4953         * lib/xstrtold.c: New file.
4954         * lib/xstrtod.h (xstrtold): New decl.
4955
4956         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4957
4958         * lib/filemode.c (setst): Remove.
4959         (strmode): Rewrite to avoid setst.  This makes the code shorter,
4960         (arguably) clearer, and the generated code is a bit smaller on my
4961         Debian GNU/Linux stable x86 host.
4962
4963         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
4964
4965         * lib/filemode.c: Include "filemode.h" first, to test the interface.
4966         Assume that filemode.h includes sys/types.h and sys/stat.h.
4967         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
4968         (ftypelet): Reorder to put common cases first, for efficiency.
4969         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
4970         to do 'M'.
4971         (strmode): Renamed from mode_string, and now stores 12 bytes instead
4972         of 10, for compatibility with FreeBSD.  All callers changed.
4973         (filemodestring): Now stores 12 bytes instead of 10, and sets file
4974         types that can't be deduced solely from st_mode.  First arg is now a
4975         const pointer.
4976         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
4977         (strmode): Renamed from mode_string.
4978         (filemodestring): New decl.
4979         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
4980         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
4981         needed.
4982         (S_ISPORT, S_ISWHT): New macros, if not already defined.
4983
4984         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4985
4986         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
4987         fsusage.h now does that.  Include fsusage.h first, to test interface.
4988         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
4989         at most one method (the old code could have generated decls that
4990         didn't conform to C89, not that this was ever exercised).
4991         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
4992
4993         2006-03-19  Jim Meyering  <jim@meyering.net>
4994
4995         Work even in a chroot where d_ino values for entries in "/"
4996         don't match the stat.st_ino values for the same names.
4997         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
4998         number, iterate through all entries again, using lstat instead.
4999         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
5000         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
5001
5002         * lib/getcwd.c (__getcwd): Clarify a comment.
5003         Use memcpy in place of a call to strcpy.
5004
5005         2006-03-12  Jim Meyering  <jim@meyering.net>
5006
5007         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
5008         matches that of the current directory (which we're about to chdir ".."
5009         out of), then save the dev-ino of the parent, instead.
5010
5011         * lib/same-inode.h (SAME_INODE): New file/macro.
5012         * lib/chdir-safer.c (SAME_INODE): Remove definition.
5013         Include "same-inode.h", instead.
5014         * lib/same.c: Likewise.
5015         * lib/cycle-check.h: Include "same-inode.h".
5016         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
5017         * lib/cycle-check.c (SAME_INODE): Remove definition.
5018         * lib/root-dev-ino.h: Include "same-inode.h".
5019
5020         2006-03-11  Eric Blake  <ebb9@byu.net>
5021
5022         * lib/same.c (same_name): s/base_name/last_component/
5023         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
5024         * lib/filenamecat.c (file_name_concat): Likewise.
5025
5026         2006-03-11  Eric Blake  <ebb9@byu.net>,
5027                     Paul Eggert  <eggert@cs.ucla.edu>
5028
5029         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
5030         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
5031         drive prefix.
5032         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
5033         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
5034         (last_component): New method.
5035         * lib/dirname.c (dir_len): Determine when drive letters need a
5036         subsequent slash.  Preserve // when it is special.
5037         (dir_name): Don't append dot when drive letter is absolute.
5038         [TEST_DIRNAME]: Move into a full-blown gnulib test.
5039         * lib/basename.c (base_name): New semantics - malloc the result.
5040         Preserve // when it is special.  Preserve relative files that look
5041         like drive letters.
5042         (base_len): Preserve // when it is special.
5043         (last_component): New method, similar to old base_name semantics.
5044         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
5045         base_name.  Strip redundant slashes from ///.
5046
5047 2006-07-03  Jim Meyering  <jim@meyering.net>
5048
5049         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
5050         macro is used before the first cycle_check call.
5051
5052 2006-07-03  Eric Blake  <ebb9@byu.net>
5053
5054         * modules/dirname (Depends-on): Add xstrndup.
5055
5056 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5057
5058         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
5059         test cases, so that config.log is a bit easier to follow.
5060
5061 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5062
5063         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
5064         both are 64 bits, since this seems to be the tradition, and this
5065         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
5066         we ever run into a host that prefers long long to long in this
5067         case, we'll need another configure-time test.  Problem reported by
5068         Jim Meyering.
5069
5070 2006-07-02  Eric Blake  <ebb9@byu.net>
5071
5072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
5073
5074 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         * modules/inttypes (Depends-on): No longer depends on stdint.
5077         * modules/stdint (Description): Say more about assumptions.
5078         Say that the fast types might differ.  Say macros are used.
5079         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
5080         (Makefile.am): Revise list of substituted symbols to match
5081         new stdint.m4.
5082         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
5083         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
5084         * tests/test-stdint.c (verify_same_types)
5085         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
5086         the code conforms to C99/C89.
5087         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
5088         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
5089
5090 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5091
5092         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
5093         but fix a bug, by requiring at least 64 bits.
5094         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
5095         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
5096         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
5097         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
5098
5099         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
5100         changes.  Make 2.59 a prerequisite.  Check and substitute for
5101         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
5102         inttypes.h.  Do not use special include files; just use the
5103         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
5104         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
5105         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
5106         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
5107         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
5108         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
5109         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
5110         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
5111         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
5112         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
5113         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
5114         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
5115         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
5116         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
5117         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
5118         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
5119         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
5120         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
5121         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
5122         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
5123         WINT_MAX.  Check for C99 conformance more strictly, by detecting
5124         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
5125         not check for things that C99 does not require, e.g., int8_t.  If
5126         a test isn't needed unless <stdint.h> isn't working, and is
5127         unlikely to be needed for any other reason, then don't do it
5128         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
5129         size_t, since we assume C89 freestanding at least.  Do not check
5130         for sig_atomic_t, wchar_t, or wint_t, since the code now does
5131         the right thing even if the types are not defined.  Instead use:
5132         (gl_STDINT_TYPE_PROPERTIES): New macro.
5133         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
5134         testing whether <sys/types.h> clashes, as Autoconf does this for
5135         us now.  All uses removed.
5136         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
5137         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
5138         (gl_CHECK_TYPE_SAME):
5139         Remove; no longer needed.
5140         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
5141         exists, since we'll return 0 anyway in that case.
5142         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
5143
5144 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5145
5146         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
5147         possible collision with system files.
5148         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
5149         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
5150         WCHAR_MIN and WCHAR_MAX in this case.
5151         (<stddef.h>): Do not include; no longer needed.
5152         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
5153         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
5154         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
5155         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
5156         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
5157         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
5158         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
5159         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
5160         !defined(__c99))]: Include in this case too, since it's harmless
5161         now.
5162         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
5163         dangerous to do so.
5164         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
5165         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
5166         (_STDINT_MIN, _STDINT_MAX): New macros.
5167         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
5168         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
5169         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
5170         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
5171         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
5172         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
5173         macros, not typedefs; this simplifies things quite a bit.
5174         Use long int for all types narrower than int64_t.
5175         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
5176         Define in terms of long long int or int64_t or long int,
5177         not int64_t or int32_t.  This saves some compile-time testing.
5178         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
5179         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
5180         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
5181         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
5182         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
5183         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
5184         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
5185         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5186         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
5187         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
5188         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
5189         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
5190         undef any previous version and define our own version, for
5191         simplicity and consistency with the new macros for types.
5192         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
5193         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
5194         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
5195         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
5196         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
5197         @WINT_T_SUFFIX@ to keep things simple here.
5198         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
5199         Simplify by assuming typical 8/16/32/64 host, since we're
5200         already doing that elsewhere anyway.
5201         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
5202         and assume long long int is 64 bits if available.  This
5203         speeds up 'configure'.
5204
5205 2006-07-01  Eric Blake  <ebb9@byu.net>
5206
5207         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
5208         Reported by Andreas Buening.
5209
5210 2006-07-01  Eric Blake  <ebb9@byu.net>
5211
5212         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
5213
5214 2006-06-30  Jim Hyslop <jhyslop@dreampossible.ca>  (tiny change)
5215
5216         * lib/getaddrinfo.c: fixed typo
5217
5218 2006-06-29  Jim Meyering  <jim@meyering.net>
5219
5220         * modules/strftime (Maintainer): Add my name, since with the
5221         FPRINTFTIME changes strftime.c has forked from glibc.
5222
5223 2006-06-29  Eric Blake  <ebb9@byu.net>
5224
5225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
5226
5227 2006-06-29  Eric Blake  <ebb9@byu.net>
5228
5229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
5230
5231 2006-06-29  Eric Blake  <ebb9@byu.net>
5232
5233         * lib/stat_.h: New file.
5234
5235 2006-06-29  Eric Blake  <ebb9@byu.net>
5236
5237         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
5238         unused static function.
5239
5240 2006-06-29  Eric Blake  <ebb9@byu.net>
5241
5242         * doc/functions.texi (Function Portability): Document missing lstat
5243         on mingw.
5244
5245 2006-06-29  Eric Blake  <ebb9@byu.net>
5246
5247         * MODULES.html.sh: Add sys_stat.
5248         * modules/sys_stat: New module.
5249         * modules/mkstemp (Depends-on): Add sys_stat.
5250
5251 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5252
5253         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
5254
5255 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5256
5257         * m4/c-bs-a.m4: Removed.
5258
5259 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5260
5261         * lib/strftime.c: Assume strftime() exists.
5262
5263 2006-06-29  Derek Price  <derek@ximbiot.com>
5264
5265         * modules/c-bs-a: Removed - \a is C89.
5266         * MODULES.html.sh: Remove c-bs-a.
5267
5268 2006-06-29  Bruno Haible  <bruno@clisp.org>
5269
5270         * modules/wcwidth (License): Change to LGPL.
5271
5272 2006-06-28  Simon Josefsson  <jas@extundo.com>
5273
5274         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
5275         on _WIN32.
5276
5277         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
5278         getnameinfo.
5279
5280 2006-06-28  Simon Josefsson  <jas@extundo.com>
5281
5282         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
5283
5284 2006-06-28  Simon Josefsson  <jas@extundo.com>
5285
5286         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
5287         functions there.  It will succeed on Windows XP, but on Windows
5288         2000 and (presumably) earlier, it will fail, and use the internal
5289         re-implementation.
5290         (use_win32_p): New function.
5291         (getaddrinfo): Use strtoul on servname, to support numeric ports.
5292         Support AI_NUMERICSERV to disable getservbyname.
5293         (getnameinfo): New function, only supports
5294         NI_NUMERICHOST|NI_NUMERICSERV for now.
5295
5296         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
5297         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
5298         getnameinfo.
5299
5300 2006-06-28  Eric Blake  <ebb9@byu.net>
5301
5302         * modules/wcwidth: New file.
5303         * modules/mbchar (Depends-on): Add wcwidth.
5304         * modules/mbswidth (Depends-on): Add wcwidth.
5305         * MODULES.html.sh: Add wcwidth.
5306
5307 2006-06-28  Eric Blake  <ebb9@byu.net>
5308
5309         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
5310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
5311
5312 2006-06-28  Eric Blake  <ebb9@byu.net>
5313
5314         * lib/xvasprintf.h: Fix comments.
5315
5316 2006-06-28  Eric Blake  <ebb9@byu.net>
5317
5318         * lib/mbchar.h (wcwidth): Include wcwidth.h.
5319         * lib/mbswidth.c (wcwidth): Move from here...
5320         * lib/wcwidth.h: ...to this new file.
5321
5322 2006-06-28  Derek R. Price  <derek@ximbiot.com>
5323
5324         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
5325
5326         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
5327         it's obsolete.
5328         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
5329
5330 2006-06-28  Derek R. Price  <derek@ximbiot.com>
5331
5332         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
5333         Autoconf 2.60 says this stuff was obsolete.
5334
5335 2006-06-28  Bruno Haible  <bruno@clisp.org>
5336
5337         * modules/wcwidth (Files): Add m4/wchar_t.m4.
5338
5339 2006-06-28  Bruno Haible  <bruno@clisp.org>
5340
5341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
5342         gt_TYPE_WCHAR_T.
5343
5344 2006-06-28  Bruno Haible  <bruno@clisp.org>
5345
5346         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
5347         declaration for wcwidth.
5348         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
5349
5350 2006-06-28  Bruno Haible  <bruno@clisp.org>
5351
5352         * lib/mkdtemp.c [MINGW]: Include <io.h>.
5353         (mkdir): Define using _mkdir.
5354
5355 2006-06-28  Bruno Haible  <bruno@clisp.org>
5356
5357         * lib/getaddrinfo.h: Fix POSIX URL.
5358         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
5359         _WIN32.
5360         (use_win32_p): Make static.
5361         (getaddrinfo): Reject service name if it is empty or does not consist
5362         solely of decimal digits, or if its value is > 65535.
5363         (getnameinfo): Remove useless casts.
5364
5365 2006-06-27  Simon Josefsson  <jas@extundo.com>
5366
5367         * modules/sys_select: New file, suggested by Bruno Haible, Paul
5368         Eggert and Martin Lambers.
5369
5370 2006-06-27  Simon Josefsson  <jas@extundo.com>
5371
5372         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
5373         Eggert and Martin Lambers.
5374
5375 2006-06-27  Bruno Haible  <bruno@clisp.org>
5376
5377         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
5378         result to 0, not to empty.
5379         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
5380
5381 2006-06-27  Bruno Haible  <bruno@clisp.org>
5382
5383         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
5384
5385 2006-06-26  Simon Josefsson  <jas@extundo.com>
5386
5387         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
5388         present.
5389
5390 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
5391
5392         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
5393         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
5394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
5395
5396 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
5397
5398         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
5399
5400 2006-06-26  Bruno Haible  <bruno@clisp.org>
5401
5402         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
5403
5404 2006-06-26  Bruno Haible  <bruno@clisp.org>
5405
5406         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
5407
5408 2006-06-26  Bruno Haible  <bruno@clisp.org>
5409
5410         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
5411         SGI C compiler in pre-C99 mode.
5412         Suggested by Mark D. Baushke and Larry Jones.
5413
5414 2006-06-26  Bruno Haible  <bruno@clisp.org>
5415
5416         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
5417         WCHAR_MAX.
5418         Reported by Mark D. Baushke and Larry Jones.
5419
5420 2006-06-26  Bruno Haible  <bruno@clisp.org>
5421
5422         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
5423         in pre-C99 mode.
5424         Suggested by Mark D. Baushke and Larry Jones.
5425
5426 2006-06-23  Simon Josefsson  <jas@extundo.com>
5427             Bruno Haible  <bruno@clisp.org>
5428
5429         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
5430         Emit mostlyclean-local rule.
5431         (func_emit_tests_Makefile_am): Likewise.
5432         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
5433
5434 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
5435
5436         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
5437
5438 2006-06-23  Bruno Haible  <bruno@clisp.org>
5439
5440         * tests/test-stdint.c: Update to match ISO C 99 Technical
5441         Corrigendum 1.
5442
5443 2006-06-23  Bruno Haible  <bruno@clisp.org>
5444
5445         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
5446
5447 2006-06-23  Bruno Haible  <bruno@clisp.org>
5448
5449         * lib/stdint_.h: Treat IRIX like OpenBSD.
5450
5451 2006-06-23  Bruno Haible  <bruno@clisp.org>
5452
5453         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
5454         ISO C 99 Technical Corrigendum 1.
5455
5456 2006-06-22  Simon Josefsson  <jas@extundo.com>
5457
5458         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
5459         MinGW.
5460
5461 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
5462
5463         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
5464         needed.  Some compiler complained about some of them.  Problem reported
5465         by Larry Jones in
5466         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
5467
5468 2006-06-21  Simon Josefsson  <jas@extundo.com>
5469
5470         * tests/test-getaddrinfo.c: New file.
5471
5472         * modules/getaddrinfo-tests: New file.
5473
5474         * MODULES.html.sh: Add inet_pton.
5475
5476         * modules/inet_pton: New file.
5477
5478 2006-06-21  Simon Josefsson  <jas@extundo.com>
5479
5480         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
5481         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
5482         of using the (limited) gnulib implementation on Windows XP.
5483
5484         * m4/inet_pton.m4: New file.
5485
5486 2006-06-21  Simon Josefsson  <jas@extundo.com>
5487
5488         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
5489         variable.
5490
5491         * lib/socket_.h: Don't define WINVER.
5492
5493         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
5494         slightly modified to work in gnulib.
5495
5496 2006-06-21  Simon Josefsson  <jas@extundo.com>
5497
5498         * doc/gnulib.texi (Windows sockets): Add.
5499
5500 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
5501
5502         * lib/read-file.c (fread_file): Start with buffer allocation of
5503         0 bytes rather than 1 byte; this simplifies the code.
5504         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
5505         code to free buffer and save/restore errno.
5506         (internal_read_file): Remove unused local.
5507
5508 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5509
5510         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
5511         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
5512         Problem reported by Denis Excoffier in
5513         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
5514
5515 2006-06-19  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5516
5517         * modules/sys_socket, modules/socklen: Include sys/types since
5518         FreeBSD 4.x's sys/socket.h needs it.
5519
5520 2006-06-19  Simon Josefsson  <jas@extundo.com>
5521
5522         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
5523
5524 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5525
5526         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
5527
5528 2006-06-19  Bruno Haible  <bruno@clisp.org>
5529
5530         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
5531         and FULL_PATH_INTTYPES_H in angle brackets.
5532         Reported by Mark D. Baushke <mdb@gnu.org>.
5533
5534 2006-06-17  Eric Blake  <ebb9@byu.net>
5535
5536         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
5537         errno.
5538
5539 2006-06-17  Bruno Haible  <bruno@clisp.org>
5540
5541         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
5542         <sys/inttypes.h>.
5543
5544 2006-06-17  Bruno Haible  <bruno@clisp.org>
5545
5546         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
5547         whether errno is declared. Assume <errno.h> declares errno.
5548
5549 2006-06-17  Bruno Haible  <bruno@clisp.org>
5550
5551         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
5552
5553 2006-06-17  Bruno Haible  <bruno@clisp.org>
5554
5555         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
5556         problem on Solaris 2.5.1.
5557
5558 2006-06-16  Eric Blake  <ebb9@byu.net>
5559
5560         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
5561         * lib/unicodeio.c [!defined errno]: Likewise.
5562         * lib/strtol.c [!defined errno]: Likewise.
5563         * lib/strtod.c [!defined errno]: Likewise.
5564
5565 2006-06-15  Eric Blake  <ebb9@byu.net>
5566
5567         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
5568
5569 2006-06-15  Eric Blake  <ebb9@byu.net>
5570
5571         * config/srclist.txt (ssize_t.m4): Lose sync.
5572
5573 2006-06-15  Bruno Haible  <bruno@clisp.org>
5574
5575         * modules/stdint (Files): Include m4/full-header-path.m4,
5576         m4/size_max.m4, m4/wchar_t.m4.
5577         (Makefile.am): Many more substitutions.
5578         * modules/stdint-tests: New file.
5579         * tests/test-stdint.c: New file.
5580
5581 2006-06-15  Bruno Haible  <bruno@clisp.org>
5582
5583         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
5584         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
5585         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
5586         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
5587         gl_CHECK_TYPE_SAME): New macros.
5588
5589 2006-06-15  Bruno Haible  <bruno@clisp.org>
5590
5591         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
5592
5593 2006-06-15  Bruno Haible  <bruno@clisp.org>
5594
5595         * lib/stdint_.h: Rewritten to be fully auto-configured.
5596         Fixes bug on HP-UX/IA64.
5597
5598 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
5599
5600         * lib/getdate.y (__attribute__): Don't define if already defined.
5601         Problem reported by Larry Jones.
5602         * lib/utimens.c (__attribute__): Likewise.
5603
5604 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5605
5606         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
5607         reported by Andreas Schwab.
5608
5609 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5610             Bruno Haible  <bruno@clisp.org>
5611
5612         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
5613         check for the declaration of strnlen and a run test that exposes the
5614         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
5615         rpl_strndup.
5616
5617 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5618             Bruno Haible  <bruno@clisp.org>
5619
5620         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
5621
5622 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5623
5624         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
5625         compile test, for Tru64 4.0D.
5626
5627 2006-05-28  Karl Berry  <karl@gnu.org>
5628
5629         * config/srclist.txt (printf-args.c): lose sync.
5630
5631 2006-05-26  Martin Lambers  <marlam@marlam.de>
5632
5633         * lib/getpass.c: Updates the test for the native W32 API, and adds
5634         missing includes, thus fixing compilation warnings.
5635
5636 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
5637
5638         * lib/exclude.c (exclude_fnmatch): New function.
5639         (excluded_file_name): Call exclude_fnmatch.
5640         * lib/exclude.h (excluded_file_name): New prototype
5641
5642 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5643
5644         * lib/tempname.c (small_open, large_open): New macros.
5645         (__open, __open64) [!_LIBC]: Remove.
5646         (__gen_tempname): Use small_open and large_open instead of __open
5647         and __open64.  This fixes a portability bug on HP-UX 11.11i
5648         reported by Simon Wing-Tang in
5649         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
5650
5651 2006-05-24  Bruno Haible  <bruno@clisp.org>
5652
5653         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
5654         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
5655         Reported by Thorsten Maerz <torte@netztorte.de> via
5656         Aaron Stone <aaron@serendipity.cx>.
5657
5658 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5659
5660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
5661         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
5662         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
5663         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
5664         not really conditional on the cache.
5665         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
5666
5667 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5668
5669         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
5670         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
5671         (my_usleep): Don't mishandle maximum value.
5672
5673 2006-05-19  Jim Meyering  <jim@meyering.net>
5674
5675         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
5676
5677 2006-05-17  Bruno Haible  <bruno@clisp.org>
5678
5679         Cygwin portability.
5680         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
5681
5682 2006-05-17  Bruno Haible  <bruno@clisp.org>
5683
5684         * lib/stdint_.h: Fix recognition of Cygwin.
5685
5686 2006-05-15  Bruno Haible  <bruno@clisp.org>
5687
5688         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
5689         on libtool patch by Ralf Wildenhues.
5690
5691 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5692
5693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
5694         test for C99 conformance; (bool) 0.5 is an integer constant
5695         expression, but (bool) -0.5 is not.  Problem reported by Fedor
5696         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
5697
5698 2006-05-11  Simon Josefsson  <jas@extundo.com>
5699
5700         * m4/xvasprintf.m4: Fix obvious typo.
5701
5702 2006-05-11  Jim Meyering  <jim@meyering.net>
5703
5704         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
5705         James Lemley.
5706
5707 2006-05-10  Simon Josefsson  <jas@extundo.com>
5708
5709         * lib/md4.c: Typo fix, update copyright years.
5710         (K1, K2): Don't use L because it turn computations into 64-bit on
5711         64-bit platforms.
5712
5713 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5714
5715         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
5716         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
5717         unwanted sign propagation, e.g., on hosts with 64-bit int.
5718         There still are some problems with reeelly weird theoretical hosts
5719         (e.g., 33-bit int) but it's not worth worrying about now.
5720         * lib/sha1.c (rol): Likewise.
5721         (K1, K2, K3, K4): Remove unnecessary L suffix.
5722
5723 2006-05-10  Bruno Haible  <bruno@clisp.org>
5724
5725         * lib/des.c: Cast to avoid warnings.
5726
5727 2006-05-09  Bruno Haible  <bruno@clisp.org>
5728
5729         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
5730         (Depends-on): Depend also on xsize, stdarg.
5731         (configure.ac): Add gl_XVASPRINTF.
5732
5733 2006-05-09  Bruno Haible  <bruno@clisp.org>
5734
5735         * m4/xvasprintf.m4: New file.
5736
5737 2006-05-09  Bruno Haible  <bruno@clisp.org>
5738
5739         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
5740         (EOVERFLOW): Define fallback value.
5741         (xstrcat): New function.
5742         (xvasprintf): Recognize the special case of a string concatenation.
5743
5744 2006-05-08  Eric Blake  <ebb9@byu.net>
5745
5746         * gnulib-tool (func_version): Base copyright year on CVS date.
5747         (func_emit_copyright_notice): New function.
5748         (func_emit_lib_Makefile_am): Use it.
5749         (func_emit_tests_Makefile_am): Likewise.
5750         (func_import): Likewise.
5751
5752 2006-05-08  Bruno Haible  <bruno@clisp.org>
5753
5754         * modules/stdarg: New file.
5755         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
5756
5757 2006-05-08  Bruno Haible  <bruno@clisp.org>
5758
5759         * m4/stdarg.m4: New file, from GNU gettext.
5760
5761 2006-05-08  Bruno Haible  <bruno@clisp.org>
5762
5763         * config/srclist.txt (build-aux/config.rpath): different from latest
5764         release.
5765
5766 2006-05-08  Bruno Haible  <bruno@clisp.org>
5767
5768         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
5769
5770 2006-05-05  Jim Meyering  <jim@meyering.net>
5771
5772         * m4/warning.m4: New file, derived from bison's file by the same name.
5773
5774 2006-05-03  Bruno Haible  <bruno@clisp.org>
5775
5776         * lib/stdint_.h: Shorter URL.
5777         * lib/inttypes.h: Likewise.
5778
5779 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5780
5781         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
5782
5783 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5784
5785         * lib/verify.h: Document the internals better.  Most of this change
5786         was written by Bruno Haible.
5787
5788 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5789
5790         * doc/verify.texi: New file, partly based on a proposal by
5791         Bruno Haible.
5792
5793 2006-05-02  Bruno Haible  <bruno@clisp.org>
5794
5795         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
5796         test from here...
5797         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
5798
5799 2006-04-29  Bruno Haible  <bruno@clisp.org>
5800
5801         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
5802         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
5803
5804 2006-04-29  Bruno Haible  <bruno@clisp.org>
5805
5806         * gnulib-tool: Make --update option actually work.
5807
5808 2006-04-29  Bruno Haible  <bruno@clisp.org>
5809
5810         * doc/gcd.texi: New file.
5811         * doc/gnulib.texi: Include it.
5812
5813 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5814
5815         * lib/getdate.y (get_date): When adding relative date, start with the
5816         initial time, not with the result of the first mktime call.
5817
5818 2006-04-25  Bruno Haible  <bruno@clisp.org>
5819
5820         * gnulib-tool (func_import): Output the include directives in three
5821         blocks, sorted separately.
5822         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5823
5824 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5825
5826         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
5827         to define main with arguments, for C++.  Reported by Eric Blake.
5828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5829         Prefer 'int main ()' to 'int main (void)', for C++.
5830         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5831         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
5832         for 'main', for C99 and C++.
5833
5834 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5835
5836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
5837         Don't assume that exit status -1 is valid.
5838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5839         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5840         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5841         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
5842         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
5843         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
5844         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
5845         functions can be used without declaring them, or that you can
5846         exit with status -1.
5847         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
5848
5849 2006-04-24  Karl Berry  <karl@gnu.org>
5850
5851         * config/srclist.txt (longdouble.m4): sync lost.
5852
5853 2006-04-24  Eric Blake  <ebb9@byu.net>
5854
5855         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
5856
5857 2006-04-24  Bruno Haible  <bruno@clisp.org>
5858
5859         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
5860         poll() implementation in AIX.
5861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5862
5863 2006-04-24  Bruno Haible  <bruno@clisp.org>
5864
5865         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
5866         assigned exactly once.
5867
5868 2006-04-23  Claudio Fontana  <claudio@gnu.org>
5869             Bruno Haible  <bruno@clisp.org>
5870
5871         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
5872         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
5873         for AM_CPPFLAGS.
5874
5875 2006-04-23  Bruno Haible  <bruno@clisp.org>
5876
5877         * modules/copy-file: Depend on unistd.
5878         * modules/execute: Likewise.
5879         * modules/fatal-signal: Likewise.
5880         * modules/findprog: Likewise.
5881         * modules/mkdtemp : Likewise.
5882         * modules/pipe: Likewise.
5883         * modules/wait-process: Likewise.
5884
5885 2006-04-23  Bruno Haible  <bruno@clisp.org>
5886
5887         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
5888         condition was already detected.
5889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5890
5891 2006-04-23  Bruno Haible  <bruno@clisp.org>
5892
5893         * lib/copy-file.c: Include <unistd.h> unconditionally.
5894         * lib/execute.c: Likewise.
5895         * lib/fatal-signal.c: Likewise.
5896         * lib/findprog.c: Likewise.
5897         * lib/mkdtemp.c: Likewise.
5898         * lib/pipe.h: Likewise.
5899         * lib/pipe.c: Likewise.
5900         * lib/wait-process.h: Likewise.
5901
5902 2006-04-23  Bruno Haible  <bruno@clisp.org>
5903
5904         * gnulib-tool (func_usage): Fix --import description. Document
5905         --update.
5906         (func_import): Create temporary file in a temporary directory, if
5907         --dry-run is specified. Silence errors from 'grep' when there are no
5908         m4 files in $m4dir.
5909         (func_create_testdir): Silence errors from 'grep' when there are no
5910         m4 files in $m4dir.
5911         Reported by Karl Berry <karl@freefriends.org>.
5912
5913 2006-04-20  Bruno Haible  <bruno@clisp.org>
5914
5915         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
5916         one argument, so that the code will be portable to Autoconf 2.60.
5917         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
5918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5919         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
5920
5921 2006-04-19  Derek Price  <derek@ximbiot.com>
5922             Eric Blake  <ebb9@byu.net>
5923
5924         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
5925         rather than "/full/path.h".  Update comment to match.  Shorten &
5926         generalize m4_translit call via AS_TR_CPP.
5927
5928 2006-04-19  Derek Price  <derek@ximbiot.com>
5929             Eric Blake  <ebb9@byu.net>
5930
5931         * lib/inttypes.h: Correct grammar in comment.
5932
5933 2006-04-18  Derek Price  <derek@ximbiot.com>
5934             Paul Eggert  <eggert@cs.ucla.edu>
5935
5936         * modules/inttypes: New file.
5937         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
5938
5939 2006-04-18  Derek Price  <derek@ximbiot.com>
5940             Paul Eggert  <eggert@cs.ucla.edu>
5941
5942         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
5943         New files.
5944
5945 2006-04-18  Derek Price  <derek@ximbiot.com>
5946             Paul Eggert  <eggert@cs.ucla.edu>
5947
5948         * lib/inttypes.h: New file.
5949         * lib/strtoimax.c: Assume <inttypes.h>.
5950
5951 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
5952
5953         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
5954         isn't mounted.  Problem reported by Kir Kolyshkin.
5955
5956 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
5957
5958         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
5959         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
5960         Derek R. Price.
5961         * lib/regex.h (RE_DUP_MAX): Update comment to match current
5962         implementation.
5963
5964 2006-04-12  Eric Blake  <ebb9@byu.net>
5965
5966         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
5967         is now done automatically by the corresponding Autoconf macro.
5968
5969 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
5970
5971         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
5972         time_r.h.
5973
5974 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5975
5976         Merge regex changes from libc, removing some of our
5977         POSIX-conformance changes that were rejected and redoing them in a
5978         less-intrusive way.
5979
5980         * lib/regcomp.c (re_compile_internal, init_dfa):
5981         Length arg is now size_t, not Idx.  All uses changed.
5982         (peek_token): Forward decl now says internal_function.
5983         (__re_error_msgid, __re_error_msgid_idx):
5984         Now static rather than extern with attribute_hidden.
5985         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
5986         For some reason libc prefers K&R style defns for external functions.
5987         (regerror) [!defined _LIBC]: Likewise.
5988         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
5989         (seek_collating_symbol_entry, lookup_collation_sequence_value):
5990         (build_range_exp, build_collating_symbol):
5991         Use K&R-style defn.
5992         (re_compile_fastmap): Use '\0' to memset, not 0.
5993         (utf8_sb_map): Make the calculations more obvious.
5994         (init_dfa, parse_bracket_exp, build_charclass_op):
5995         Call calloc and cast result, as glibc does.
5996         (init_word_char, fetch_token, peek_token, peek_token_bracket):
5997         (build_range_exp, build_collating_symbol):
5998         Now internal functions.
5999
6000         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
6001
6002         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
6003         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
6004         Don't depend on VMS; depend on __VMS instead, for POSIX
6005         namespace cleanness.
6006         (regoff_t): Define to ssize_t, not long int.
6007
6008         Remove the REG_ macros named below.  Instead, make the old names
6009         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
6010         __USE_GNU_REGEX.
6011         (REG_BACKSLASH_ESCAPE_IN_LISTS):
6012         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
6013         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
6014         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
6015         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
6016         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
6017         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
6018         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
6019         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
6020         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
6021         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
6022         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
6023         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
6024         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
6025         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
6026         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
6027         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
6028         (REG_NREGS):
6029         Remove.  All uses replaced by the old RE_* names.
6030         (RE_BACKSLASH_ESCAPE_IN_LISTS):
6031         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
6032         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
6033         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
6034         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
6035         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
6036         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
6037         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
6038         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
6039         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
6040         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
6041         Don't bother having these macros be independent of each others'
6042         values, since they no longer exist in the POSIX name space.
6043
6044         Rename the following member names back to their old names,
6045         unless !__USE_GNU_REGEX.  All uses changed back.
6046         (buffer): Renamed from re_buffer.
6047         (allocated): Renamed from re_allocated.
6048         (used): Renamed from re_used.
6049         (syntax): Renamed from re_syntax.
6050         (fastmap): Renamed from re_fastmap.
6051         (translate): Renamed from re_translate.
6052         (can_be_null): Renamed from re_can_be_null.
6053         (regs_allocated): Renamed from re_regs_allocated.
6054         (fastmap_accurate): Renamed from re_fastmap_accurate.
6055         (no_sub): Renamed from re_no_sub.
6056         (not_bol): Renamed from re_not_bol.
6057         (not_eol): Renamed from re_not_eol.
6058         (newline_anchor): Renamed from re_newline_anchor.
6059         (num_regs): Renamed from rm_num_regs.
6060         (start): Renamed from rm_start.
6061         (end): Renamed from rm_end.
6062
6063         (free_state): Move up a bit.
6064
6065         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
6066         #define to be empty.
6067         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
6068         when that is what is intended.
6069         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
6070         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
6071         (MAX): New macro.
6072         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
6073         All uses changed back to re_malloc, etc.  It's now the caller's
6074         responsibility to check for overflow; all callers changed.
6075         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
6076         (re_x2nrealloc): Remove.
6077         (free_state): Remove decl.
6078
6079         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
6080         (re_set_registers, re_exec):
6081         Use K&R-style defn.
6082
6083         2006-01-31  Roland McGrath  <roland@redhat.com>
6084
6085         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
6086         Reported by Mike Frysinger <vapier@gentoo.org>.
6087
6088         2006-01-15  Andreas Jaeger  <aj@suse.de>
6089
6090         [BZ #1950]
6091         * lib/regex_internal.c (re_string_reconstruct): Adjust for
6092         build_wcs_upper_buffer change.
6093         (build_wcs_upper_buffer): Change return type.
6094
6095         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
6096
6097         * lib/regex_internal.h: Include <stdint.h> if available.
6098
6099         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
6100
6101         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
6102
6103         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
6104
6105         * lib/regcomp.c: Adjust for changed secondary hash function.
6106
6107         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
6108
6109         * lib/regex.h: Pretty printing.
6110         Clean up namespace a bit.
6111
6112         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
6113
6114         * lib/regexec.c (update_cur_sifted_state, check_arrival,
6115         check_arrival_add_next_nodes): Avoid using uninitialized variable.
6116
6117         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6118                     Ulrich Drepper  <drepper@redhat.com>
6119
6120         [BZ #1302]
6121         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
6122         changed.
6123         (bitset_word_t): Renamed from bitset_word.  All uses changed.
6124
6125         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
6126
6127         [BZ #281]
6128         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
6129         * lib/regcomp.c: Remove unnecessary uses of
6130         unsigned RE_TRANSLATE_TYPE.
6131         * lib/regex_internal.h: Likewise.
6132         * lib/regex_internal.c: Likewise.
6133         * lib/regexec.c: Likewise.
6134         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
6135
6136         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
6137
6138         * lib/regexec.c (find_recover_state): Remove unnecessary
6139         initialization.
6140         (transit_state_bkref): Make DFA a const pointer.
6141         (get_subexp): Likewise.
6142         (check_arrival): Likewise.
6143         (update_cur_sifted_state): Likewise.
6144         (re_search_internal): Likewise.
6145         (prune_impossible_nodes): Likewise.
6146         (acquire_init_state_context): Likewise.
6147         (proceed_next_node): Likewise.
6148         (set_regs): Likewise.
6149         (free_fail_stack_return): Likewise.
6150         (check_arrival_expand_ecl): Mark DFA parameter as const.
6151         (check_arrival_expand_ecl_sub): Likewise.
6152         (check_subexp_limits): Likewise.
6153         (sub_epsilon_src_nodes):  Likewise.
6154         (add_epsilon_src_nodes):  Likewise.
6155         (merge_state_array): Likewise.
6156         (update_regs): Likewise.
6157         (build_trtable): Likewise.
6158         (sift_states_backward): Mark MCTX parameter as const.
6159         (build_sifted_states): Likewise.
6160         (update_cur_sifted_state): Likewise.
6161         (sift_states_mkref): Likewise.
6162         (check_arrival_expand_ecl): Mark eclosure as const.
6163         (check_dst_limits_calc_pos_1): Likewise.
6164         * lib/regex_internal.h (re_match_context_t): Make dfa a const
6165         pointer.
6166
6167         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
6168
6169         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
6170         (transit_state_sb): Likewise.
6171         (transit_state_mb): Likewise.
6172         (sift_states_iter_mb): Likewise.
6173         (check_arrival_add_next_nodes): Likewise.
6174         (check_node_accept_bytes): Change first parameter to pointer-to-const.
6175         [_LIBC] (re_search_2_stub): Use mempcpy.
6176
6177         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
6178         mbrtowc for very simple UTF-8 case.
6179
6180         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
6181         a pointer-to-const.
6182         (re_acquire_state_context): Likewise.
6183         * lib/regex_internal.h: Adjust prototypes.
6184
6185         * lib/regex.c: Prevent using C++ compilers.
6186
6187         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
6188         (re_acquire_state_context): Likewise.
6189
6190 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6191
6192         * modules/regex (Depends-on): Add ssize_t.
6193
6194 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6195
6196         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
6197         translation table.
6198
6199 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6200
6201         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
6202
6203 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
6204             Bruno Haible  <bruno@clisp.org>
6205
6206         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
6207         <sys/types.h> and <inttypes.h>.
6208
6209 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6210
6211         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
6212         `__error_t_defined', so argp.h will not typedef the former.
6213
6214 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6215
6216         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
6217         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
6218         glibc names.  Even if glibc is changed to conform to POSIX, the
6219         traditional names will be available anyway, since regex depends on
6220         the extensions module.  Also, fix a longstanding typo in the
6221         implementation of Spencer ERE test #75 from grep 2.3.  Problems
6222         reported by Emanuele Giaquinta.  Also, change sense of cached
6223         variable, so that the message makes sense.
6224
6225 2006-03-24  Simon Josefsson  <jas@extundo.com>
6226
6227         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
6228         including some doc fixes.
6229         (base64_encode_alloc): Fix +1 bug on allocation failures.
6230
6231 2006-03-24  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6232
6233         * lib/base64.c (base64_encode): Do not read past end of array with
6234         unsanitized input on systems with CHAR_BIT > 8.
6235
6236 2006-03-24  Eric Blake  <ebb9@byu.net>
6237
6238         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
6239
6240 2006-03-22  Karl Berry  <karl@gnu.org>
6241
6242         * config/srclist.txt (*setenv.[ch]): get from coreutils.
6243         * config/srclistvars.sh (COREUTILS): new var.
6244
6245 2006-03-17  Jim Meyering  <jim@meyering.net>
6246
6247         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
6248         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
6249
6250 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6251
6252         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
6253         no longer needs it.  Instead, check that regoff_t is as least
6254         as wide as ptrdiff_t.
6255
6256         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
6257         so that our regex.h stays compatible with the installed regex.
6258         This is helpful for installers who configure --without-included-regex.
6259         Problem reported by Emanuele Giaquinta.
6260
6261 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6262
6263         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
6264         Typedef to long int, not to off_, as POSIX will likely change
6265         in that direction.
6266
6267 2006-03-15  Eric Blake  <ebb9@byu.net>
6268
6269         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
6270
6271 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
6272
6273         * lib/argp-help.c (validate_uparams): Fix typo
6274         * lib/argp-parse.c (argp_default_options): Consistently begin help
6275         messages with a lowercase letter.
6276
6277 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6278
6279         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
6280         overrun buffers and shouldn't be used (much as gets shouldn't be
6281         used).
6282         * lib/time_r.c (asctime_r, ctime_r): Likewise.
6283
6284 2006-03-08  Simon Josefsson  <jas@extundo.com>
6285
6286         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
6287         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6288
6289 2006-03-08  Simon Josefsson  <jas@extundo.com>
6290
6291         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
6292         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6293
6294 2006-03-08  Simon Josefsson  <jas@extundo.com>
6295
6296         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
6297         signal that configure disabled the device.
6298
6299 2006-03-08  Simon Josefsson  <jas@extundo.com>
6300
6301         * build-aux/maint.mk: Fix refresh-po, to handle no translated
6302         languages.
6303
6304 2006-03-07  Simon Josefsson  <jas@extundo.com>
6305
6306         * modules/getopt (Depends-on): Add unistd.
6307
6308         * modules/unistd: New file.
6309
6310 2006-03-07  Simon Josefsson  <jas@extundo.com>
6311
6312         * modules/gc-random: New file.
6313
6314 2006-03-07  Simon Josefsson  <jas@extundo.com>
6315
6316         * m4/unistd_h.m4: New file.
6317
6318 2006-03-07  Simon Josefsson  <jas@extundo.com>
6319
6320         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
6321         test to be side-effect free by storing the result in the cache
6322         variable gl_cv_lib_readline, and moving the assignment of
6323         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
6324         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6325
6326 2006-03-07  Simon Josefsson  <jas@extundo.com>
6327
6328         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
6329         error on missing devices (the functions will return an error).
6330
6331         * m4/gc.m4: Move random stuff to gc-random.m4
6332
6333 2006-03-07  Simon Josefsson  <jas@extundo.com>
6334
6335         * lib/unistd_.h: New file.
6336
6337 2006-03-07  Simon Josefsson  <jas@extundo.com>
6338
6339         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
6340
6341 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6342
6343         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
6344         Problem reported by Juan Manuel Guerrero.
6345
6346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6347
6348         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
6349         the unistd module.
6350         * lib/getlogin_r.c: Likewise.
6351         * lib/getlogin_r.h: Likewise.
6352         * lib/glob.c: Likewise.
6353         * lib/pagealign_alloc.c: Likewise.
6354         * lib/unistd_.h: Remove; no longer needed.
6355
6356 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6357
6358         * MODULES.html.sh (Support for systems lacking POSIX:2001):
6359         Add unistd.
6360         * modules/c-stack (Depends-on): Add unistd.
6361         * modules/getlogin_r: Likewise.
6362         * modules/glob: Likewise.
6363         * modules/pagealign_alloc: Likewise.
6364         * modules/unistd (Files): Remove lib/unistd_.h.
6365         (EXTRA_DIST): Remove.
6366         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
6367         need unistd_.h.
6368         (MOSTLYCLEANFILES): Remove unistd.h-t.
6369
6370 2006-03-03  Simon Josefsson  <jas@extundo.com>
6371
6372         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
6373
6374 2006-03-03  Simon Josefsson  <jas@extundo.com>
6375
6376         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
6377         libidn and bison.
6378
6379 2006-03-03  Simon Josefsson  <jas@extundo.com>
6380
6381         * build-aux/maint.mk: Add indent target.
6382
6383 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
6384
6385         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
6386         our replacement poll.h in any case, to avoid a differing
6387         declaration from a system header.  Seen on AIX.
6388
6389 2006-03-01  Simon Josefsson  <jas@extundo.com>
6390
6391         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
6392         <kasal@ucw.cz>.
6393
6394 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
6395
6396         * modules/gettime (Depends-on): Add extensions module.
6397         * modules/nanosleep (Depends-on): Likewise.
6398         * modules/settime (Depends-on): Likewise.
6399
6400 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
6401
6402         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
6403         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
6404         pedantically.
6405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6406         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
6407
6408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
6409         not "==".  Reported by Ralf Wildenhues.
6410
6411 2006-03-01  Karl Berry  <karl@gnu.org>
6412
6413         * doc/Copyright/request-*: new files, synced from gnuorg.
6414
6415 2006-03-01  Karl Berry  <karl@gnu.org>
6416
6417         * config/srclist.txt (Copyright/*): new entries.
6418
6419 2006-02-28  Simon Josefsson  <jas@extundo.com>
6420
6421         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
6422
6423 2006-02-27  Simon Josefsson  <jas@extundo.com>
6424
6425         * lib/base64.h: Indent #define's.  From Jim Meyering
6426         <jim@meyering.net>.
6427
6428 2006-02-27  Jim Meyering  <jim@meyering.net>
6429
6430         Revert the change of 2006-02-24, so these files can continue
6431         to be sync'd from gettext.
6432         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
6433         of `config.h'.
6434
6435 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6436
6437         * modules/intprops: New file.
6438         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
6439         Add intprops.
6440         * modules/getloadavg (Files): Remove lib/intprops.h.
6441         (Depends-on): Add intprops.
6442         * modules/human: Likewise.
6443         * modules/inttostr: Likewise.
6444         * modules/openat: Likewise.
6445         * modules/sig2str: Likewise.
6446         * modules/userspec: Likewise.
6447         * modules/utimecmp: Likewise.
6448         * modules/xnanosleep: Likewise.
6449         * modules/xstrtol: Likewise.
6450
6451 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
6452
6453         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
6454         * modules/lock-tests (TESTS): Use $(EXEEXT).
6455         * modules/tls-tests: Likewise.
6456         * modules/argp-tests: Likewise.
6457         (check_PROGRAMS): New var, replacing...
6458         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
6459
6460 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6461
6462         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
6463         `config.h'.
6464
6465 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6466
6467         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
6468
6469 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6470
6471         Sync from coreutils.
6472         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
6473         gl_CHDIR_SAFER.
6474
6475 2006-02-22  Jim Meyering  <jim@meyering.net>
6476
6477         Sync from coreutils.
6478         * m4/chdir-safer.m4: New file.
6479
6480 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6481
6482         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
6483         AT_FDCWD exceeds INT_MAX.
6484         * lib/openat.h (AT_FDCWD): Likewise.
6485
6486 2006-02-17  Eric Blake  <address@hidden>
6487
6488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
6489
6490 2006-02-16  Simon Josefsson  <jas@extundo.com>
6491
6492         * modules/getaddrinfo (Depends-on): Add sys_socket.
6493
6494 2006-02-15  Simon Josefsson  <jas@extundo.com>
6495
6496         * build-aux/maint.mk: Add dsyntax-check rule.
6497
6498 2006-02-15  Eric Blake  <ebb9@byu.net>
6499
6500         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
6501         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
6502         'present but cannot compile' warnings on cygwin.
6503         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
6504         use ws2tcpip.h if sys/socket.h works.
6505         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
6506         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
6507
6508 2006-02-14  Simon Josefsson  <jas@extundo.com>
6509
6510         * modules/maintainer-makefile (Files): Rename.
6511
6512         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
6513         and (the local) Makefile.cfg to maint-cfg.mk.
6514
6515         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
6516         to the latter.
6517
6518         * modules/maintainer-makefile: New module.
6519
6520         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
6521         severaly stripped to make it possible to build it up from scratch
6522         with reliable tests.
6523
6524         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
6525         fixes to permit overriding the default actions when configure and
6526         makefile are not available.
6527
6528 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6529
6530         Sync from coreutils.
6531         * modules/lstat (Depends-on): Don't depend on xalloc.
6532         (License): Change from GPL to LGPL, since this is now simply a
6533         replacement for a libc function.
6534
6535 2006-02-14  Jim Meyering  <jim@meyering.net>
6536
6537         Sync from coreutils.
6538
6539         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
6540         failure on deficient systems, and simplify gnulib lgpl dependencies.
6541         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
6542         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
6543
6544         * lib/xalloc-die.c: Remove unused definition of N_.
6545
6546 2006-02-14  Jim Meyering  <jim@meyering.net>
6547
6548         Sync from coreutils.
6549         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
6550         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
6551         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
6552         double-quote uses of that variable, to accommodate the rare case in
6553         which getmntent is available in none of the libraries checked.  This
6554         happens at least on FreeBSD 5.0.
6555
6556 2006-02-13  Simon Josefsson  <jas@extundo.com>
6557
6558         * gnulib-tool (Usage): Fix --import, from
6559         karl@freefriends.org (Karl Berry).
6560
6561 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
6562
6563         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
6564
6565 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
6566
6567         * lib/argp-namefrob.h: Restore changes accidentally lost during the
6568         "autoupdate" on 2005-12-12.
6569
6570 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6571
6572         * modules/closeout (Depends-on): Remove atexit.
6573
6574 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6575
6576         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
6577         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
6578
6579 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
6580
6581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
6582         __EXTENSIONS__ if this causes compilation to fail.  Problem
6583         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
6584         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
6585
6586 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6587
6588         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
6589         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
6590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
6591         All uses changed.
6592
6593 2006-01-26  Simon Josefsson  <jas@extundo.com>
6594
6595         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
6596         prototype is visible on mingw32.
6597
6598         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
6599         for mingw32.
6600
6601         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
6602         mingw32).
6603
6604 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
6605
6606         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
6607         attempt to open for write; this always fails, at least on POSIX
6608         hosts.  This reinstates the 2006-01-09 change, which was
6609         inadvertently removed.
6610
6611 2006-01-26  Bruno Haible  <bruno@clisp.org>
6612
6613         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
6614         Reported by Paul Eggert.
6615
6616 2006-01-26  Bruno Haible  <bruno@clisp.org>
6617             Paul Eggert  <eggert@cs.ucla.edu>
6618
6619         * lib/stdbool_.h (_Bool)
6620         [(! (defined __cplusplus || defined __BEOS__)
6621           && !defined __GNUC__
6622           && !(defined __HP_cc || defined __xlc__
6623                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
6624                || defined __sgi))]:
6625         #define to signed char in these cases too; this simplifies
6626         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
6627         etc., separately) and makes it more conservative.
6628
6629 2006-01-25  Simon Josefsson  <jas@extundo.com>
6630
6631         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
6632         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
6633         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
6634
6635 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6636
6637         * lib/argp-namefrob.h: Bugfix. Remove stray #
6638
6639 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6640
6641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
6642         so that we test the test.
6643         Check for yet another HP-UX cc bug involving *bool |= bool.
6644
6645 2006-01-25  Karl Berry  <karl@gnu.org>
6646
6647         * config/srclist.txt (vasnprintf.c): sync lost.
6648
6649 2006-01-25  Jim Meyering  <jim@meyering.net>
6650
6651         Sync from the stable (b5) branch of coreutils:
6652
6653         * lib/fts.c (fts_children): Don't let close() clobber errno from
6654         failed fchdir().
6655
6656         * lib/fts.c (fts_stat): When following a symlink-to-directory,
6657         don't necessarily interpret stat-fails+lstat-succeeds as indicating
6658         a dangling symlink.  That can also happen at least for ELOOP.
6659         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
6660         FYI, this bug predates the inclusion of fts.c in coreutils.
6661
6662         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
6663         in their own block, so pre-c99 compilers don't object.
6664
6665         Avoid the double-free (first in fts_read, second in fts_close) that
6666         would occur when an `active' directory is made inaccessible (e.g.,
6667         via chmod a-x) during a traversal.
6668         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
6669         before returning.  Reproduce this failure by
6670         mkdir -p a/b; cd a; chmod a-x . b
6671         Reported by Stavros Passas.
6672
6673 2006-01-25  Jim Meyering  <jim@meyering.net>
6674
6675         * lib/fileblocks.c: Remove more useless parentheses.
6676         * lib/readutmp.h: Likewise.
6677
6678 2006-01-25  Bruno Haible  <bruno@clisp.org>
6679
6680         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
6681         warnings.
6682         Reported by Paul Eggert.
6683
6684 2006-01-25  Bruno Haible  <bruno@clisp.org>
6685
6686         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
6687         rid of a trap command. For Solaris sh.
6688         Reported by Mark D. Baushke <mdb@gnu.org>.
6689
6690 2006-01-24  Simon Josefsson  <jas@extundo.com>
6691
6692         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
6693         Bruno.
6694
6695 2006-01-24  Karl Berry  <karl@gnu.org>
6696
6697         * config/srclist.txt (argp-namefrob.h): sync lost.
6698
6699 2006-01-24  Jim Meyering  <jim@meyering.net>
6700
6701         * modules/openat (Files): Add lib/intprops.h.
6702         From Mark D. Baushke.
6703
6704 2006-01-24  Jim Meyering  <jim@meyering.net>
6705
6706         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
6707         Reported by Mark D. Baushke.
6708
6709 2006-01-24  Jim Meyering  <jim@meyering.net>
6710
6711         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
6712
6713 2006-01-24  Bruno Haible  <bruno@clisp.org>
6714
6715         * modules/strnlen (Maintainer): Change from glibc to all.
6716
6717 2006-01-24  Bruno Haible  <bruno@clisp.org>
6718
6719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
6720         Patch by Paul Eggert.
6721
6722 2006-01-24  Bruno Haible  <bruno@clisp.org>
6723
6724         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
6725         already has it.
6726         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
6727         2005-11-26.
6728
6729         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
6730         'signed char' to avoid problems with the built-in _Bool type.
6731         Reported by Paul Eggert on 2005-11-26.
6732
6733 2006-01-24  Bruno Haible  <bruno@clisp.org>
6734
6735         * gnulib-tool (func_import): Avoid constructing complicated sed
6736         expressions inside backquote.
6737         Report and solution by Mark D. Baushke <mdb@gnu.org>.
6738
6739 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
6740
6741         These changes imported from libc.
6742         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
6743         test and two separate function calls.
6744         * lib/strndup.c (__strndup): Add libc_hidden_def.
6745
6746 2006-01-23  Simon Josefsson  <jas@extundo.com>
6747
6748         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
6749         Remove the test_*_SOURCES variable: automake infers it by default.
6750         * modules/tls-tests: Likewise.
6751
6752 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6753
6754         Work around porting bugs reported by Dieter in
6755         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
6756         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
6757         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
6758         Include "getopt.h" first, to check interface.
6759         (getenv): Declare only if defined HAVE_DECL_GETENV &&
6760         !HAVE_DECL_GETENV.
6761         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
6762         (__strndup): Revert to K&R-style function dfns, the glibc style.
6763         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
6764         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
6765         Include strnlen.h first, to get prototype properly.
6766         (strnlen): Renamed from __strnlen.
6767         Remove weak alias.
6768
6769 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6770
6771         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
6772
6773 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6774
6775         * config/srclist.txt: Adjust to reflect glibc reorganization.
6776         This affects only comments.
6777
6778 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
6779
6780          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
6781          Reported by Bruce Korb <bkorb@gnu.org>.
6782
6783 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
6784
6785         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
6786         to pacify gcc -Wswitch-default.
6787
6788 2006-01-22  Bruno Haible  <bruno@clisp.org>
6789
6790         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
6791         temporary buffer for sprintf, take into account the precision also
6792         for 'd', 'i', 'u', 'o', 'x', 'X'.
6793
6794 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
6795
6796         * modules/argp-tests: New module
6797         * tests/test-argp.c: New file
6798         * tests/test-argp-2.sh: New file
6799
6800 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
6801
6802         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
6803         (__argp_base_name): Removed
6804         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
6805         typo.
6806         (__argp_base_name): Provide macro definition or extern declaration
6807         depending on the configuration
6808
6809 2006-01-20  Simon Josefsson  <jas@extundo.com>
6810
6811         * modules/inet_ntop (Depends-on): Depend on sys_socket.
6812
6813 2006-01-20  Simon Josefsson  <jas@extundo.com>
6814
6815         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
6816
6817 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
6818
6819         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
6820         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
6821         Suggested by Bruno Haible.
6822
6823 2006-01-20  Karl Berry  <karl@gnu.org>
6824
6825         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
6826         until changes propagate, I guess.
6827
6828 2006-01-19  Simon Josefsson  <jas@extundo.com>
6829
6830         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
6831
6832 2006-01-19  Simon Josefsson  <jas@extundo.com>
6833
6834         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
6835
6836 2006-01-19  Simon Josefsson  <jas@extundo.com>
6837
6838         * gnulib-tool: Set check_PROGRAMS.
6839
6840         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
6841         modules/des-tests, modules/gc-arcfour-tests,
6842         modules/gc-arctwo-tests, modules/gc-des-tests,
6843         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
6844         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
6845         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
6846         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
6847         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
6848         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
6849         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
6850         test_*_SOURCES.
6851
6852 2006-01-18  Simon Josefsson  <jas@extundo.com>
6853
6854         * modules/socklen (Depends-on): Depend on sys_socket.
6855
6856 2006-01-18  Simon Josefsson  <jas@extundo.com>
6857
6858         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
6859         modules/des-tests, modules/gc-arcfour-tests,
6860         modules/gc-arctwo-tests, modules/gc-des-tests,
6861         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
6862         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
6863         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
6864         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
6865         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
6866         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
6867         $(EXEEXT) to automake TESTS variable, for mingw32.
6868
6869 2006-01-17  Simon Josefsson  <jas@extundo.com>
6870
6871         * modules/socklen (Include): Need sys/socket.h.
6872
6873 2006-01-17  Bruno Haible  <bruno@clisp.org>
6874
6875         * modules/ssize_t (Include): Add <sys/types.h>.
6876
6877 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
6878
6879         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
6880         it's not portable and it doesn't work with cross-compiles.
6881         Problem reported by Bruno Haible.  Fix missing-$ typo in
6882         'test "gl_cv_ignore_unused_libraries" ...' that prevented
6883         -zignore from being used with Sun's C compiler.
6884
6885 2006-01-12  Simon Josefsson  <jas@extundo.com>
6886
6887         * lib/base64.c: Fix warning, reported by Bruno Haible
6888         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
6889
6890 2006-01-12  Bruno Haible  <bruno@clisp.org>
6891
6892         * modules/ldd: New file.
6893         * build-aux/ldd.sh.in: New file.
6894         * MODULES.html.sh (Support for building libraries and executables): Add
6895         ldd.
6896
6897 2006-01-12  Bruno Haible  <bruno@clisp.org>
6898
6899         * m4/ldd.m4: New file.
6900
6901 2006-01-12  Bruno Haible  <bruno@clisp.org>
6902
6903         * gnulib-tool (func_import, func_create_testdir): Don't go into an
6904         endless loop while replacing $auxdir with build-aux.
6905
6906 2006-01-11  Simon Josefsson  <jas@extundo.com>
6907
6908         * lib/stdint_.h (SIZE_MAX): Add missing (.
6909
6910 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6911
6912         Sync from coreutils.
6913         * lib/md5.c: Fix commentary typos.
6914         (alignof, UNALIGNED_P): No need for a GCC-specific version.
6915         * lib/md5.h (__attribute__): Remove; unused.
6916         * lib/sha1.c: Fix commentary to match md5 better.
6917         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
6918         so that we don't need to worry about alignment.  All uses changed.
6919         This merges the 2005-10-28 md5 change into sha1.
6920
6921 2006-01-11  Jim Meyering  <jim@meyering.net>
6922
6923         Sync from coreutils.
6924         * lib/md5.c (OP): Fix spacing.
6925
6926 2006-01-11  Bruno Haible  <bruno@clisp.org>
6927
6928         Ensure automatic ordering between gl_LOCK and gl_ARGP.
6929         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
6930         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
6931
6932 2006-01-11  Bruno Haible  <bruno@clisp.org>
6933
6934         Ensure automatic ordering between gl_LOCK and gl_ARGP.
6935         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
6936         the "early" section as well.
6937
6938 2006-01-11  Bruno Haible  <bruno@clisp.org>
6939
6940         Avoid "ar: no archive members specified" error on MacOS X.
6941         * gnulib-tool (func_modules_add_dummy): New function.
6942         (func_import, func_create_testdir): Invoke it.
6943
6944 2006-01-11  Bruno Haible  <bruno@clisp.org>
6945
6946         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
6947         with $auxdir in AC_CONFIG_FILES statements.
6948
6949 2006-01-11  Bruno Haible  <bruno@clisp.org>
6950
6951         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6952         Initialize also noinst_HEADERS to empty.
6953
6954 2006-01-11  Bruno Haible  <bruno@clisp.org>
6955
6956         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
6957         variables.
6958         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
6959         autoreconf.
6960
6961 2006-01-11  Bruno Haible  <bruno@clisp.org>
6962
6963         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
6964         overridable by the user.
6965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6966
6967 2006-01-10  Simon Josefsson  <jas@extundo.com>
6968
6969         * modules/sys_socket: New file.
6970
6971 2006-01-10  Simon Josefsson  <jas@extundo.com>
6972
6973         * m4/sys_socket_h.m4: New file.
6974
6975 2006-01-10  Simon Josefsson  <jas@extundo.com>
6976
6977         * lib/socket_.h: New file.
6978
6979 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6980
6981         * modules/readutmp (Maintainer): Add myself.
6982
6983 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6984
6985         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
6986         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
6987         People who are still concerned with buggy memcmp implementations
6988         can invoke gl_FUNC_MEMCMP themselves.
6989
6990 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6991
6992         * lib/regex_internal.h (BITSET_WORD_BITS):
6993         Work around a bug in 64-bit PGC (before version 6.1-2), where the
6994         preprocessor mishandles large unsigned values as if they were signed.
6995         Problem reported by Claudio Fontana in
6996         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
6997
6998 2006-01-10  Jim Meyering  <jim@meyering.net>
6999
7000         Avoid the double-free (first in fts_read, second in fts_close) that
7001         would occur when an `active' directory is made inaccessible (e.g.,
7002         via chmod a-x) during a traversal.
7003         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
7004         before returning.  Reproduce this failure by
7005         mkdir -p a/b; cd a; chmod a-x . b
7006         Reported by Stavros Passas.
7007
7008         Sync from coreutils.
7009         * lib/sha1.c: Tweak grammar in a comment.
7010
7011 2006-01-10  Jim Meyering  <jim@meyering.net>
7012
7013         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
7014         Patch by Joerg Sonnenberger.
7015
7016 2006-01-10  Bruno Haible  <bruno@clisp.org>
7017
7018         * modules/readutmp: Depend on module free.
7019         * modules/strtok_r: Depend on module restrict.
7020
7021 2006-01-10  Bruno Haible  <bruno@clisp.org>
7022
7023         * modules/gettext (configure.ac): Add an invocation of
7024         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
7025
7026 2006-01-10  Bruno Haible  <bruno@clisp.org>
7027
7028         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
7029         Reported by Werner Lemberg <wl@gnu.org>.
7030
7031 2006-01-10  Bruno Haible  <bruno@clisp.org>
7032
7033         * lib/localcharset.c: Update from GNU gettext.
7034
7035 2006-01-10  Bruno Haible  <bruno@clisp.org>
7036
7037         * lib/argp.h (__const): Remove macro. Use const instead.
7038         * lib/argp-fmtstream.h (__const): Likewise.
7039         * lib/glob_.h (__const): Remove macro.
7040         * lib/glob-libc.h: Use const instead of __const.
7041
7042 2006-01-10  Bruno Haible  <bruno@clisp.org>
7043
7044         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
7045         variable.
7046         Needed to avoid an automake error regarding the 'gettext' module.
7047
7048 2006-01-09  Simon Josefsson  <jas@extundo.com>
7049
7050         * modules/inet_ntop (Depends-on): Add restrict.
7051
7052 2006-01-09  Simon Josefsson  <jas@extundo.com>
7053
7054         * modules/gc-rijndael-tests (License): Put under LGPL.
7055
7056         * modules/gc-des-tests (License): Likewise.
7057
7058         * modules/gc-arcfour-tests (License): Likewise.
7059
7060         * modules/gc-arctwo-tests (License): Likewise.
7061
7062         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
7063
7064         * modules/gc-hmac-sha1-tests (Files): Likewise.
7065
7066         * modules/gc-hmac-md5-tests (License): Likewise.
7067
7068         * modules/gc-sha1-tests (License): Likewise.
7069
7070         * modules/gc-md5-tests (License): Likewise.
7071
7072         * modules/gc-md4-tests (License): Likewise.
7073
7074         * modules/gc-md2-tests (License): Likewise.
7075
7076         * modules/gc-tests (License): Likewise.
7077
7078         * modules/des-tests (License): Likewise.
7079
7080         * modules/md4-tests (License): Likewise.
7081
7082         * modules/md2-tests (License): Likewise.
7083
7084 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7085
7086         Sync from coreutils:
7087
7088         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
7089         * modules/lib-ignore: New file.
7090         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
7091         chdir-safer.m4, lchmod.m4.
7092         * modules/openat: Add mkdirat.c, openat-priv.h.
7093
7094 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7095
7096         Sync from coreutils.
7097         * m4/lib-ignore.m4: New file.
7098         * m4/lchmod.m4: New file.
7099
7100 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7101
7102         Sync from coreutils.
7103         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
7104         for write access: POSIX says that must fail.
7105         * lib/fts.c (diropen): Likewise.
7106         * lib/save-cwd.c (save_cwd): Likewise.
7107         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
7108         well, for minor improvements on hosts that lack O_DIRECTORY.
7109         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
7110         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
7111         Fall back on chown if open failed with EACCES.
7112
7113         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
7114         Report an error at compile-time if only a 1-second nominal clock
7115         resolution is found.
7116
7117         * lib/lchmod.h: New file.
7118         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
7119         (make_dir_parents): Use lchown rather than chown, and
7120         lchmod rather than chmod.
7121
7122         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
7123         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
7124         "proc" reported by n0dalus.
7125
7126         * lib/mountlist.c: Include <limits.h>.
7127         (dev_from_mount_options)
7128         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
7129         New function.  It no longer assumes "dev=" has the System V meaning
7130         on Linux (since it doesn't).  It also parses "dev=" more carefully.
7131         (read_file_system_list)
7132         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
7133         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
7134         dev= in that case.
7135
7136         * lib/posixtm.h (PDS_PRE_2000): New macro.
7137         * lib/posixtm.c (year): Arg is now syntax_bits rather than
7138         allow_century.  All usages changed.  Reject dates outside the range
7139         1969-1999 if PDS_PRE_2000 is used.
7140
7141 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7142
7143         Sync from coreutils.
7144         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
7145         (Time of day items): Mention the possibility of leap seconds.
7146         Problem reported by Dr. David Alan Gilbert.
7147
7148 2006-01-09  Jim Meyering  <jim@meyering.net>
7149
7150         Sync from coreutils.
7151
7152         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
7153
7154         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
7155
7156         * lib/modechange.c (mode_compile): Reject an invalid mode string
7157         that starts with an octal digit.  From Andreas Gruenbacher.
7158
7159         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
7160         and dup to open_safer and dup_safer, respectively.
7161         (openat_permissive): Fix typo in comment.
7162
7163         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
7164         "gettext.h"; either no longer needed or are guaranteed by openat.h.
7165         (_): Remove; no longer needed.
7166         (openat): Renamed from rpl_openat; no need for rpl_openat
7167         since openat.h renames openat for us.
7168         Replace most of the body with a call to openat_permissive,
7169         to avoid duplicate code.
7170         Port to (probably hypothetical) environments were mode_t is
7171         wider than int.
7172         (openat_permissive): Require mode arg, so that we can check
7173         types better.  Put it just after flags.  Change cwd failure
7174         indicator from pointer-to-bool to pointer-to-errno-value.
7175         All callers changed.
7176         Invoke openat_save_fail and/or openat_restore_fail if
7177         cwd_errno is null, so that openat can call us.
7178         (openat_permissive, fdopendir, fstatat, unlinkat):
7179         Simplify errno handling to avoid some duplicate code,
7180         as it's OK to set errno on success.
7181         * lib/openat.h: Revamp code so that function macros depend on
7182         __OPENAT_PREFIX only, not also on AT_FDCWD.
7183         (openat_ro): Remove.  Caller changed to use openat_permissive.
7184         (openat_permissive): Now a macro, if not a function.
7185         (openat_restore_fail, openat_save_fail): Now always functions,
7186         since mkdirat needs them even if __OPENAT_PREFIX is defined.
7187
7188         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
7189         and openat.c.
7190         * lib/mkdirat.c: Include openat-priv.h.
7191         Remove definitions of macros defined therein.
7192         * lib/openat.c: Likewise.
7193
7194         * lib/mkdirat.c (mkdirat): New file and function.
7195         * lib/openat.h (mkdirat): Declare.
7196
7197         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
7198
7199         * lib/openat.h (openat_permissive): Declare.
7200         (openat_ro): Define.
7201
7202         * lib/openat.c (EXPECTED_ERRNO): New macro.
7203         (openat_permissive): New function -- used in remove.c rewrite.
7204         (all functions): Set errno just before returning, only if there
7205         was an actual failure.
7206         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
7207
7208         Emulate openat-family functions using Linux's procfs, if possible.
7209         Idea and some code based on Ulrich Drepper's glibc changes.
7210
7211         * lib/openat.c: (BUILD_PROC_NAME): New macro.
7212         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
7213         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
7214         before falling back on save_cwd and restore_cwd.
7215         (fdopendir, fstatat, unlinkat): Likewise.
7216
7217         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
7218         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
7219
7220         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
7221         as second argument to va_arg.  Otherwise, some versions of gcc
7222         warn that `if this code is reached, the program will abort'.
7223
7224 2006-01-09  Jim Meyering  <jim@meyering.net>
7225
7226         Sync from coreutils.
7227         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
7228         Require openat-priv.h.
7229
7230 2006-01-09  Bruno Haible  <bruno@clisp.org>
7231
7232         * modules/strnlen (Include): Use strnlen.h.
7233
7234 2006-01-09  Bruno Haible  <bruno@clisp.org>
7235
7236         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
7237
7238 2006-01-09  Bruno Haible  <bruno@clisp.org>
7239
7240         * lib/sysexit_.h (EX_OK): New macro.
7241         Suggested by Martin Lambers <marlam@marlam.de>.
7242
7243 2006-01-09  Bruno Haible  <bruno@clisp.org>
7244
7245         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
7246         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
7247
7248 2006-01-09  Bruno Haible  <bruno@clisp.org>
7249
7250         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
7251         numbers.
7252
7253 2006-01-09  Bruno Haible  <bruno@clisp.org>
7254
7255         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
7256         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
7257         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
7258         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
7259
7260 2006-01-09  Bruno Haible  <bruno@clisp.org>
7261
7262         * build-aux/javacomp.sh.in: New file, moved from lib/.
7263         * modules/javacomp-script (Files): Update.
7264         (configure.ac): Add AC_CONFIG_FILES invocation.
7265         (EXTRA_DIST): Remove variable.
7266
7267         * build-aux/javaexec.sh.in: New file, moved from lib/.
7268         * modules/javaexec (Files): Update.
7269         (configure.ac): Add AC_CONFIG_FILES invocation.
7270         (EXTRA_DIST): Remove javaexec.sh.in.
7271
7272         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
7273         * modules/csharpcomp-script (Files): Update.
7274         (configure.ac): Add AC_CONFIG_FILES invocation.
7275         (EXTRA_DIST): Remove variable.
7276
7277         * build-aux/csharpexec.sh.in: New file, moved from lib/.
7278         * modules/csharpexec (Files): Update.
7279         (configure.ac): Add AC_CONFIG_FILES invocation.
7280         (EXTRA_DIST): Remove csharpexec.sh.in.
7281
7282 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
7283
7284         Sync from coreutils.
7285
7286         Add POSIX ACL support
7287         * lib/acl.h (copy_acl, set_acl): Add declarations.
7288         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
7289         systems other than Linux.
7290         (chmod_or_fchmod): New function: use fchmod when possible,
7291         and chmod otherwise.
7292         (file_has_acl): Add a POSIX ACL implementation, with a
7293         Linux-specific subcase.
7294         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
7295         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
7296         acls are unsupported.
7297         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
7298         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
7299         are unsupported.
7300
7301 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
7302
7303         Sync from coreutils.
7304         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
7305
7306 2006-01-07  Bruno Haible  <bruno@clisp.org>
7307
7308         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
7309         gl_EARLY.
7310
7311 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7312
7313         * lib/strftime.c (tzname): Don't declare if it is already #defined.
7314         Problem reported for Mingw by Mark Junker.
7315
7316 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7317
7318         * README: Gnulib normally doesn't generate a tarball.
7319
7320 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
7321
7322         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
7323         long int, not int, for nanosecond counts, so that people who are
7324         used to POSIX struct timespec won't be surprised.  Reported by Jim
7325         Meyering.
7326
7327 2005-12-28  Bruno Haible  <bruno@clisp.org>
7328
7329         * build-aux/config.rpath: Update from GNU gettext.
7330
7331 2005-12-16  Jim Meyering  <jim@meyering.net>
7332
7333         * modules/fprintftime: New module.
7334         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
7335
7336 2005-12-16  Jim Meyering  <jim@meyering.net>
7337
7338         * m4/fprintftime.m4: New file.
7339
7340 2005-12-16  Jim Meyering  <jim@meyering.net>
7341
7342         * lib/fprintftime.c, lib/fprintftime.h: New files.
7343
7344 2005-12-15  Simon Josefsson  <jas@extundo.com>
7345
7346         * modules/socklen (configure.ac): Fix M4 macro name, to align with
7347         new m4/socklen.m4.
7348
7349 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7350
7351         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
7352         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
7353
7354 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7355
7356         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
7357         * lib/argp-help.c (fill_in_uparams): Check if the constructed
7358         struct uparams is valid. Fall back to the default values if it is
7359         not.
7360
7361 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7362
7363         * modules/argp (Files): Add argp-pin.c
7364         (Depends-on): dirname
7365         (lib_SOURCES): Add argp-pin.c
7366
7367 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7368
7369         * m4/argp.m4:  Check if program_invocation_name and
7370         program_invocation_short_name are declared and define appropriate
7371         macros if they are not.
7372
7373 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
7374
7375         * lib/argp-help.c (__argp_base_name): New function
7376         (__argp_short_program_name): Rewrite using __argp_base_name
7377         * lib/argp-namefrob.h: Define program_invocation_name and
7378         program_invocation_short_name if requested
7379         (__argp_base_name): Add prototype
7380         * lib/argp-parse.c (argp_def): Use gettext wrappers
7381         (argp_default_parser): Use __argp_base_name
7382         * lib/argp-pin.c: New file. Defines program_invocation_name and
7383         program_invocation_short_name on systems that lack them.
7384
7385 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
7386
7387         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
7388         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
7389         porting problem reported by Georg Schwarz in
7390         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
7391
7392 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
7393
7394         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
7395         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
7396         porting problem reported by Georg Schwarz in
7397         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
7398
7399 2005-12-05  Bruno Haible  <bruno@clisp.org>
7400
7401         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
7402         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
7403         Reported by Mark Junker <mjscod@gmx.de>.
7404
7405 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7406
7407         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
7408         Use implementation from Albert Chin, with some
7409         comments/corrections by Stepan Kasal and myself.
7410
7411 2005-12-02  Bruno Haible  <bruno@clisp.org>
7412
7413         * gnulib-tool (func_import): Accept GPLed build tool modules when
7414         --lgpl is given.
7415         * modules/csharpcomp-script: New file.
7416         * modules/csharpcomp: Depend on it.
7417         * modules/javacomp-script: New file.
7418         * modules/javacomp: Depend on it.
7419         Suggested by Simon Josefsson.
7420
7421 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7422
7423         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
7424         statement, to work around an HP-UX 10.20 compiler bug reported by
7425         Peter O'Gorman.
7426
7427 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
7428
7429         * modules/savedir (Depends-on): Add openat.
7430
7431 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
7432
7433         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
7434         (uintmax_t) [defined uintmax_t]: Do not declare.
7435         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
7436         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
7437         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
7438         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
7439         sake of portability to weird hosts that C allows (though we don't
7440         know of any practical examples).
7441
7442         * lib/savedir.h (fdsavedir): New decl.
7443         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
7444         contains most of the former guts of savedir.
7445         (savedir): Use savedirstream.
7446         Include "openat.h".
7447
7448 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7449
7450         * modules/obstack (Files): Add m4/ulonglong.m4.
7451         Problem reported by Davide Angelocola.
7452
7453 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7454
7455         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
7456         coreutils no longer futzes with rounding modes.
7457
7458 2005-11-14  Jim Meyering  <jim@meyering.net>
7459
7460         * lib/mkstemp-safer.c: Include <config.h>, required for possible
7461         replacement of mkstemp.
7462
7463 2005-11-10  Simon Josefsson  <jas@extundo.com>
7464
7465         * lib/readline.c: Remove EOL.
7466
7467 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7468
7469         * modules/gethrxtime (Depends-on): Add gettime.
7470
7471 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7472
7473         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
7474         or gettimeofday; no longer needed.
7475
7476 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7477
7478         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
7479         time business.
7480         (gethrxtime) [! (HAVE_NANOUPTIME
7481         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
7482         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
7483         our own approximation.
7484
7485 2005-11-08  Eric Blake  <ebb9@byu.net>
7486
7487         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
7488
7489 2005-11-08  Eric Blake  <ebb9@byu.net>
7490
7491         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
7492
7493 2005-11-04  Bruno Haible  <bruno@clisp.org>
7494
7495         * gnulib-tool: Implement --update mode.
7496
7497 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7498
7499         Fix porting problem reported by Theodoros V. Kalamatianos.
7500         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
7501         Don't assume that futimes failing means we must fail.
7502
7503 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7504
7505         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
7506         variables to suggest the intended function of the PATH_MAX check.
7507
7508 2005-10-30  Kean Johnston  <jkj@sco.com>
7509
7510         Trivial changes to support SCO systems.
7511         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
7512         as PATH_MAX.
7513         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
7514         where __ptr is null when no I/O is pending.
7515
7516 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
7517
7518         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
7519         leave errno alone.  Problem reported by Dmitry V. Levin.
7520
7521 2005-10-28  Simon Josefsson  <jas@extundo.com>
7522
7523         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
7524         Test more.
7525
7526         * tests/test-gc-md2.c, tests/test-md2.c: New files.
7527
7528         * modules/md2, modules/md2-tests: New files.
7529
7530 2005-10-28  Simon Josefsson  <jas@extundo.com>
7531
7532         * m4/inet_ntop.m4: More tests.
7533
7534         * m4/gc-md2.m4, md2.m4: New file.
7535
7536 2005-10-28  Simon Josefsson  <jas@extundo.com>
7537
7538         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
7539         "restrict" keywords, as per POSIX.  Protect the function
7540         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
7541         Don't use K&R prototypes.  Check the sprintf return values.
7542         Re-define EAFNOSUPPORT if not present.  Indent.
7543
7544         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
7545         suggested by Bruno Haible <bruno@clisp.org>.
7546
7547         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
7548
7549         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
7550
7551         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
7552         libgcrypt).
7553
7554         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
7555
7556         * lib/md2.h, lib/md2.c: New files.
7557
7558 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
7559
7560         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
7561         errno alone.  Problem reported by Frederic Jolliton.
7562
7563 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7564
7565         * modules/verify (License): Change from GPL to LGPL.  This is a
7566         tiny module and there are apparently near-equivalents that are
7567         under the BSD license.
7568
7569 2005-10-24  Simon Josefsson  <jas@extundo.com>
7570
7571         * modules/sha1: Relicense to LGPL.
7572
7573 2005-10-24  Simon Josefsson  <jas@extundo.com>
7574
7575         * lib/md4.h: Shrink buffer size, now that we changed the type.
7576
7577 2005-10-23  Simon Josefsson  <jas@extundo.com>
7578
7579         * gnulib-tool (func_import): Fix --tests-base.
7580
7581 2005-10-22  Simon Josefsson  <jas@extundo.com>
7582
7583         * modules/arcfour (Depends-on): Need stdint.
7584
7585 2005-10-22  Simon Josefsson  <jas@extundo.com>
7586
7587         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
7588         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
7589
7590 2005-10-22  Simon Josefsson  <jas@extundo.com>
7591
7592         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
7593         suggested by Bruno Haible <bruno@clisp.org>.
7594
7595 2005-10-22  Simon Josefsson  <jas@extundo.com>
7596
7597         * lib/crc.h: Include stddef.h, for size_t.
7598
7599 2005-10-22  Simon Josefsson  <jas@extundo.com>
7600
7601         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
7602         arcfour_context struct (simplify test vector testing in GNU
7603         Shishi).
7604
7605 2005-10-21  Simon Josefsson  <jas@extundo.com>
7606
7607         * modules/des, modules/des-tests: New files.
7608
7609         * modules/gc-des, modules/gc-des-tests: New files.
7610
7611         * tests/test-des.c, tests/test-gc-des.c: New file.
7612
7613 2005-10-21  Simon Josefsson  <jas@extundo.com>
7614
7615         * modules/arctwo, modules/arctwo-tests: New files.
7616
7617         * tests/test-arctwo.c: New file.
7618
7619         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
7620
7621         * tests/test-gc-arctwo.c: New file.
7622
7623 2005-10-21  Simon Josefsson  <jas@extundo.com>
7624
7625         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
7626         Bruno Haible <bruno@clisp.org>.
7627
7628         * m4/gc-des.m4: New file.
7629
7630 2005-10-21  Simon Josefsson  <jas@extundo.com>
7631
7632         * m4/arctwo.m4: New file.
7633
7634         * m4/gc-arctwo.m4: New file.
7635
7636 2005-10-21  Simon Josefsson  <jas@extundo.com>
7637
7638         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
7639         block.
7640
7641 2005-10-21  Simon Josefsson  <jas@extundo.com>
7642
7643         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
7644         <bruno@clisp.org>.
7645
7646         * lib/hmac-sha1.c (hmac_sha1): Likewise.
7647
7648         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
7649         Bruno Haible <bruno@clisp.org>.
7650
7651         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
7652         <bruno@clisp.org>.
7653
7654 2005-10-21  Simon Josefsson  <jas@extundo.com>
7655
7656         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
7657
7658 2005-10-21  Simon Josefsson  <jas@extundo.com>
7659
7660         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
7661
7662 2005-10-21  Simon Josefsson  <jas@extundo.com>
7663
7664         * lib/des.h, lib/des.c: New files.
7665
7666         * lib/gc-gnulib.c: Support DES.c
7667
7668 2005-10-21  Simon Josefsson  <jas@extundo.com>
7669
7670         * lib/arctwo.h, lib/arctwo.c: New files.
7671
7672         * lib/gc-gnulib.c: Support ARCTWO.
7673
7674 2005-10-21  Simon Josefsson  <jas@extundo.com>
7675
7676         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
7677         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7678
7679 2005-10-21  Simon Josefsson  <jas@extundo.com>
7680
7681         * gnulib-tool (func_import, func_create_testdir): Define automake
7682         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
7683         Makefile.am snippet),
7684         suggested by Bruno Haible <bruno@clisp.org>.
7685
7686         * modules/gc (Makefile.am): Use it.
7687
7688 2005-10-21  Bruno Haible  <bruno@clisp.org>
7689
7690         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
7691         patch.
7692
7693 2005-10-19  Simon Josefsson  <jas@extundo.com>
7694
7695         * tests/test-gc-rijndael.c: New file.
7696
7697         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
7698
7699 2005-10-19  Simon Josefsson  <jas@extundo.com>
7700
7701         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
7702         interface too.
7703
7704 2005-10-19  Simon Josefsson  <jas@extundo.com>
7705
7706         * tests/test-gc-arcfour.c: New file.
7707
7708         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
7709
7710 2005-10-19  Simon Josefsson  <jas@extundo.com>
7711
7712         * modules/gc-md4, modules/gc-md4-tests: New file.
7713
7714         * tests/test-gc-md4.c: New file.
7715
7716 2005-10-19  Simon Josefsson  <jas@extundo.com>
7717
7718         * m4/gc-md4.m4: New file.
7719
7720 2005-10-19  Simon Josefsson  <jas@extundo.com>
7721
7722         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
7723         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
7724         <kasal@ucw.cz>.
7725
7726 2005-10-19  Simon Josefsson  <jas@extundo.com>
7727
7728         * m4/gc-arcfour.m4: New file.
7729
7730         * m4/gc-rijndael.m4: New file.
7731
7732 2005-10-19  Simon Josefsson  <jas@extundo.com>
7733
7734         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
7735
7736 2005-10-19  Simon Josefsson  <jas@extundo.com>
7737
7738         * lib/gc-gnulib.c: Support ARCFOUR.
7739
7740 2005-10-19  Simon Josefsson  <jas@extundo.com>
7741
7742         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
7743         support.
7744
7745         * lib/gc.h: Add ECB enum type.
7746
7747         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
7748
7749 2005-10-18  Simon Josefsson  <jas@extundo.com>
7750
7751         * tests/test-md5.c: New file.
7752
7753         * modules/md5-tests: New file.
7754
7755 2005-10-18  Simon Josefsson  <jas@extundo.com>
7756
7757         * tests/test-md4.c: New file.
7758
7759         * modules/md4, modules/md4-tests: New files.
7760
7761 2005-10-18  Simon Josefsson  <jas@extundo.com>
7762
7763         * m4/md4.m4: New file.
7764
7765 2005-10-18  Simon Josefsson  <jas@extundo.com>
7766
7767         * lib/md4.h, lib/md4.c: New files, based on md5.?.
7768
7769 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
7770
7771         * gnulib-tool (func_create_testdir): Omit the second check whether
7772         BUILT_SOURCES in nonempty.
7773
7774 2005-10-17  Simon Josefsson  <jas@extundo.com>
7775
7776         * tests/test-rijndael.c: New file.
7777
7778 2005-10-17  Simon Josefsson  <jas@extundo.com>
7779
7780         * modules/sha1: Depend on stdint instead of md5.
7781
7782         * modules/md5: Depend on stdint, remove uint32_t.
7783
7784 2005-10-17  Simon Josefsson  <jas@extundo.com>
7785
7786         * modules/gc-sha1-tests: New file.
7787
7788         * tests/test-gc-sha1.c: New file.
7789
7790 2005-10-17  Simon Josefsson  <jas@extundo.com>
7791
7792         * m4/md5.m4: Remove call to uint32_t.m4.
7793
7794 2005-10-17  Simon Josefsson  <jas@extundo.com>
7795
7796         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
7797
7798         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
7799         md5.h.
7800
7801         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
7802
7803         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
7804
7805 2005-10-17  Simon Josefsson  <jas@extundo.com>
7806
7807         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
7808
7809 2005-10-17  Simon Josefsson  <jas@extundo.com>
7810
7811         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
7812
7813 2005-10-17  Simon Josefsson  <jas@extundo.com>
7814
7815         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
7816
7817         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
7818
7819 2005-10-17  Bruno Haible  <bruno@clisp.org>
7820
7821         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
7822         that it can also be used in a test.
7823
7824 2005-10-16  Bruno Haible  <bruno@clisp.org>
7825
7826         * gnulib-tool (func_emit_tests_Makefile_am): Also define
7827         TESTS_ENVIRONMENT, so that individual tests can augment it.
7828
7829         * gnulib-tool (func_create_testdir): Use an intermediate target for
7830         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
7831         macros, like $(ALLOCA_H), which cannot be passed through the command
7832         line.
7833
7834 2005-10-15  Simon Josefsson  <jas@extundo.com>
7835
7836         * modules/rijndael-tests: New file.
7837
7838         * modules/rijndael: New file.
7839
7840 2005-10-15  Simon Josefsson  <jas@extundo.com>
7841
7842         * m4/rijndael.m4: New file.
7843
7844 2005-10-15  Simon Josefsson  <jas@extundo.com>
7845
7846         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
7847
7848         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
7849
7850 2005-10-14  Simon Josefsson  <jas@extundo.com>
7851
7852         * tests/test-arcfour.c: New file.
7853
7854         * modules/arcfour, modules/arcfour-tests: New files.
7855
7856 2005-10-14  Simon Josefsson  <jas@extundo.com>
7857
7858         * m4/arcfour.m4: New file.
7859
7860 2005-10-14  Simon Josefsson  <jas@extundo.com>
7861
7862         * lib/arcfour.h, lib/arcfour.c: New files.
7863
7864 2005-10-14  Roland McGrath  <roland@redhat.com>
7865
7866         Import from libc.  [BZ #1331]
7867         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
7868         macro argument.
7869         Reported by Matej Vela <vela@debian.org>.
7870
7871 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7872
7873         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
7874         include <wchar.h>; no longer needed.
7875
7876 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7877
7878         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
7879
7880 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
7881         and  Ulrich Drepper  <drepper@redhat.com>
7882
7883         Import from libc.
7884         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
7885         instead of inline stream orientation test and two separate
7886         function calls.  Pay no attention to USE_IN_LIBIO.
7887
7888 2005-10-13  Simon Josefsson  <jas@extundo.com>
7889
7890         * modules/gc-hmac-md5-tests: New file.
7891
7892         * tests/test-gc-hmac-sha1.c: New file.
7893
7894         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
7895
7896         * modules/gc-hmac-md5-tests: New file.
7897
7898         * tests/test-gc-md5.c: New file.
7899
7900         * modules/gc-md5-tests: New file.
7901
7902 2005-10-13  Simon Josefsson  <jas@extundo.com>
7903
7904         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
7905         Move memory allocation outside of loop.
7906
7907 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7908
7909         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
7910         intermediate directory is in a read-only file system.  Problem
7911         reported by Eric Blake.
7912
7913 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
7914
7915         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
7916
7917 2005-10-12  Simon Josefsson  <jas@extundo.com>
7918
7919         * tests/test-hmac-sha1.c: New file.
7920
7921         * modules/hmac-sha1-tests: New file.
7922
7923         * modules/hmac-sha1: New file.
7924
7925 2005-10-12  Simon Josefsson  <jas@extundo.com>
7926
7927         * modules/gc-sha1: New file.
7928
7929 2005-10-12  Simon Josefsson  <jas@extundo.com>
7930
7931         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
7932
7933         * tests/test-gc-pbkdf2-sha1.c: New file.
7934
7935 2005-10-12  Simon Josefsson  <jas@extundo.com>
7936
7937         * modules/gc-md5, modules/gc-hmac-md5: New files.
7938
7939         * modules/gc (Files): Remove md5, memxor and hmac files.
7940
7941 2005-10-12  Simon Josefsson  <jas@extundo.com>
7942
7943         * m4/gc-pbkdf2-sha1.m4: New file.
7944
7945         * m4/gc-hmac-sha1.m4: New file.
7946
7947         * m4/gc-sha1: New file.
7948
7949         * m4/hmac-sha1.m4: New file.
7950
7951 2005-10-12  Simon Josefsson  <jas@extundo.com>
7952
7953         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
7954
7955         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
7956
7957 2005-10-12  Simon Josefsson  <jas@extundo.com>
7958
7959         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
7960         suggested by Bruno Haible <bruno@clisp.org>.
7961
7962 2005-10-12  Simon Josefsson  <jas@extundo.com>
7963
7964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
7965
7966 2005-10-12  Simon Josefsson  <jas@extundo.com>
7967
7968         * lib/gc-pbkdf2-sha1.c: New file.
7969
7970         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
7971
7972 2005-10-12  Simon Josefsson  <jas@extundo.com>
7973
7974         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
7975
7976         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
7977
7978 2005-10-12  Simon Josefsson  <jas@extundo.com>
7979
7980         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
7981         GC_USE_HMAC_MD5, respectively.
7982
7983         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
7984         (gc_md5): Fix typo.
7985
7986         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
7987
7988         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
7989
7990         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
7991
7992 2005-10-12  Bruno Haible  <bruno@clisp.org>
7993
7994         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
7995         Reported by Stepan Kasal <kasal@ucw.cz>.
7996
7997 2005-10-11  Simon Josefsson  <jas@extundo.com>
7998
7999         * tests/test-crc.c: New file.
8000
8001         * modules/crc, modules/crc-tests: New files.
8002
8003 2005-10-11  Simon Josefsson  <jas@extundo.com>
8004
8005         * m4/crc.m4: New file.
8006
8007 2005-10-11  Simon Josefsson  <jas@extundo.com>
8008
8009         * lib/gc.h: Add gc_hash and gc_hash_buffer.
8010
8011         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
8012
8013         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
8014
8015 2005-10-11  Simon Josefsson  <jas@extundo.com>
8016
8017         * lib/crc.h, lib/crc.c: New files.
8018
8019         * lib/gc.h (gc_hash_buffer): Add doc.
8020
8021 2005-10-11  Bruno Haible  <bruno@clisp.org>
8022
8023         * modules/c-strcasestr: New file.
8024         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
8025
8026 2005-10-11  Bruno Haible  <bruno@clisp.org>
8027
8028         * modules/c-strcase: New file.
8029         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
8030
8031 2005-10-11  Bruno Haible  <bruno@clisp.org>
8032
8033         * lib/strcasecmp.c: Include limits.h.
8034         (strcasecmp): Avoid integer overflow on exotic platforms.
8035         * lib/strncasecmp.c: Include limits.h.
8036         (strncasecmp): Avoid integer overflow on exotic platforms.
8037         Reported by Paul Eggert.
8038
8039 2005-10-11  Bruno Haible  <bruno@clisp.org>
8040
8041         * lib/c-strcasestr.h: New file, from GNU gettext.
8042         * lib/c-strcasestr.c: New file, from GNU gettext.
8043
8044 2005-10-11  Bruno Haible  <bruno@clisp.org>
8045
8046         * lib/c-strcase.h: New file, from GNU gettext.
8047         * lib/c-strcasecmp.c: New file, from GNU gettext.
8048         * lib/c-strncasecmp.c: New file, from GNU gettext.
8049
8050 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8051
8052         * modules/mempcpy (License): GPL -> LGPL.
8053         * modules/strchrnul (License): Likewise.
8054         * modules/sysexits (License): Likewise.
8055
8056 2005-10-08  Simon Josefsson  <jas@extundo.com>
8057
8058         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
8059
8060 2005-10-07  Simon Josefsson  <jas@extundo.com>
8061
8062         * m4/memxor.m4: Remove gl_C_RESTRICT call.
8063
8064 2005-10-06  Simon Josefsson  <jas@extundo.com>
8065
8066         * tests/test-hmac-md5.c: New file.
8067
8068         * modules/hmac-md5-tests: New file.
8069
8070         * modules/hmac-md5: New file.
8071
8072 2005-10-06  Simon Josefsson  <jas@extundo.com>
8073
8074         * m4/hmac-md5.m4: New file.
8075
8076         * m4/memxor.m4: Require gl_C_RESTRICT.
8077
8078 2005-10-06  Simon Josefsson  <jas@extundo.com>
8079
8080         * lib/memxor.c (memxor): Avoid casts and warnings.
8081
8082 2005-10-06  Simon Josefsson  <jas@extundo.com>
8083
8084         * lib/hmac-md5.c: New file.
8085
8086         * lib/hmac.h: New file.
8087
8088 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
8089
8090         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
8091         promotes to int, not unsigned int, to catch the AIX 5.3
8092         compiler bug.
8093
8094 2005-10-05  Simon Josefsson  <jas@extundo.com>
8095
8096         * modules/memxor: New file.
8097
8098         * modules/iconv (Files): Move config.rpath to havelib, it is used
8099         there.
8100
8101         * modules/havelib (Files): Add config.rpath.
8102
8103 2005-10-05  Simon Josefsson  <jas@extundo.com>
8104
8105         * m4/memxor.m4: New file.
8106
8107 2005-10-05  Simon Josefsson  <jas@extundo.com>
8108
8109         * lib/memxor.c (memxor): Fix compiler error.
8110
8111         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
8112         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
8113
8114         * lib/memxor.h, lib/memxor.c: New files.
8115
8116         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
8117         we assume all systems have it, suggested by Jim Meyering
8118         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
8119         any systems lack sys/socket.h; mingw32 is known to lack it, but we
8120         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
8121         same reasons.
8122
8123 2005-10-05  Simon Josefsson  <jas@extundo.com>
8124
8125         * config/srclist.txt: Add glibc bug 1423 for md5.h.
8126
8127 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8128
8129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
8130         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
8131         needed, since the source code now assumes these .h files.
8132
8133 2005-10-05  Derek Price  <derek@ximbiot.com>
8134
8135         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
8136
8137 2005-10-05  Bruno Haible  <bruno@clisp.org>
8138
8139         * modules/stdint (License): Change to LGPL.
8140
8141 2005-10-04  Simon Josefsson  <jas@extundo.com>
8142
8143         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
8144         D. Baushke" <mdb@gnu.org>.
8145
8146 2005-10-04  Bruno Haible  <bruno@clisp.org>
8147
8148         * lib/verify.h (verify_true): Provide alternative definition for C++.
8149
8150 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8151
8152         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
8153         (SSIZE_MAX): New macro, if not already defined.
8154         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
8155         than 2 GiB.
8156
8157 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8158
8159         Sync from coreutils.
8160         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
8161         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
8162         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
8163         ULLONG_MAX doesn't work with 2.7.2.1.
8164
8165 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8166
8167         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
8168         From Ben Pfaff.
8169
8170         * modules/exclude (Depends-on): Depend on verify.
8171         * modules/strtoimax (Depends-on): Likewise.
8172         * modules/utimecmp (Depends-on): Likewise.
8173
8174 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8175
8176         * lib/exclude.c: Include verify.h.
8177         (verify): Remove.  All callers changed to use verify.h's version.
8178         * lib/strtoimax.c: Likewise.
8179         * lib/utimecmp.c: Likewis.e
8180
8181         Sync from coreutils.
8182         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
8183         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
8184         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
8185         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
8186         bother returning ENOSYS if settimeofday or stime fails; just let
8187         them return whatever errno they want to return.
8188         * lib/utimens.c: Include unistd.h, for dup2.
8189         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
8190         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
8191
8192 2005-10-02  Jim Meyering  <jim@meyering.net>
8193
8194         Sync from coreutils.
8195         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
8196         from glibc-2.2.5 that fails for read-only files.
8197
8198 2005-10-02  Jim Meyering  <jim@meyering.net>
8199
8200         Sync from coreutils.
8201         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
8202         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
8203         `#if HAVE_CONFIG_H'.
8204         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
8205         Remove AT_FDCWD test.
8206         Do not consume the fd unless successful.
8207         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
8208         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
8209         block, so that we don't even try to compile it if settimeofday is
8210         available.  This works around a compilation failure on OSF1 V5.1,
8211         due to stime requiring a `long int*' while tv_sec is `int'.
8212
8213 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
8214
8215         Sync from coreutils.
8216         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
8217         against `yes', rather than just testing for nonempty.
8218
8219 2005-10-01  Simon Josefsson  <jas@extundo.com>
8220
8221         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
8222         and Darwin.
8223
8224         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
8225         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
8226         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
8227         freeaddrinfo and gai_strerror are declared by the POSIX headers.
8228         Check if struct addrinfo is declared.
8229
8230 2005-10-01  Simon Josefsson  <jas@extundo.com>
8231
8232         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
8233         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
8234         AI_* and EAI_* definitions.  Protect function declarations.
8235
8236 2005-10-01  Jim Meyering  <jim@meyering.net>
8237
8238         Sync from coreutils.
8239
8240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
8241         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
8242         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
8243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
8244         in the inet and nsl libraries.  Required on Solaris 5.7.
8245
8246 2005-10-01  Jim Meyering  <jim@meyering.net>
8247
8248         Sync from coreutils.
8249         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
8250         in the inet and nsl libraries.  Required on Solaris 5.7.
8251
8252 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
8253
8254         * lib/getdelim.c (getdelim): Remove unused variables.
8255
8256 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
8257
8258         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
8259         so that the code works even with ancient cpp.  Portability problem
8260         with GCC 2.7.2.1 reported by Thomas M.Ott.
8261
8262 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
8263
8264         * modules/regex (Depends-on): Add strcase.
8265
8266         * modules/gethostname (Licence): Change from GPL to LGPL, since
8267         gethostname.c is a trivial implementation of a standard library
8268         function.
8269         * modules/poll (License): Change from GPL to LGPL, since it's
8270         derived from LGPL code.
8271
8272 2005-09-27  Jim Meyering  <jim@meyering.net>
8273
8274         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
8275         HAVE_CONFIG_H.
8276
8277         * lib/intprops.h (signed_type_or_expr__): Define.
8278         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
8279         for unsigned types.
8280
8281 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8282
8283         * lib/verify.h (verify_expr): Remove, replacing with:
8284         (verify_true): New macro that returns true instead of void.
8285         (verify_type__): Remove.
8286         (verify): Use verify_true rather than verify_type__.
8287
8288 2005-09-26  Bruno Haible  <bruno@clisp.org>
8289
8290         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
8291         is necessary.
8292         (lib_SOURCES): Remove mbchar.c.
8293         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
8294         (Files): Add m4/mbrtowc.m4.
8295         * modules/mbiter: Likewise.
8296         * modules/mbuiter: Likewise.
8297
8298 2005-09-26  Bruno Haible  <bruno@clisp.org>
8299
8300         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
8301         compile mbchar.c if they are not both present.
8302         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
8303         * m4/mbiter.m4 (gl_MBITER): Likewise.
8304         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
8305         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
8306         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
8307
8308 2005-09-25  Jim Meyering  <jim@meyering.net>
8309
8310         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
8311         also uses socklen_t.
8312
8313 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8314
8315         * lib/utimens.c (ENOSYS): Define if not already defined.
8316         (futimens): Support having a null PATH if the file descriptor
8317         is nonnegative.
8318
8319         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
8320         Remove.
8321         (__attribute): Define to empty unless GCC 3.1 or later.
8322         This works around a core dump on OpenBSD 3.4, which has GCC
8323         2.95.3, which dumps core when given __attribute__(()).  It also
8324         simplifies other tests, since we really don't want to bother with
8325         worrying about which ancient version of GCC supported what.
8326         Original problem reported by Yoann Vandoorselaere, with part of
8327         the fix suggested by Derek Price.
8328
8329 2005-09-24  Jim Meyering  <jim@meyering.net>
8330
8331         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
8332         so we can once again use a positive bitfield width of 1 -- now we
8333         don't have to explain why we were using a bitfield width of 2.
8334
8335 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8336
8337         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
8338         and similarly for the other external symbols.  Problem reported
8339         by James Gallager.
8340
8341         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
8342         bug reported by Jim Meyering.
8343
8344         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
8345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
8346         not needed, since socklen is a prerequisite module.
8347
8348 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8349
8350         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
8351         Problem reported by Eric Blake.
8352         (getaddrinfo): Initialize se so that it's not garbage.
8353         Redo internal storage allocation so that it doesn't make unportable
8354         assumptions about alignment.
8355         Fix a memory leak.
8356
8357         * lib/utimens.c (futimens): Use futimesat if available.
8358         Prefer it to futimes since it doesn't have the futimes bug.
8359
8360         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
8361         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
8362         Instead, declare a function that returns a pointer to an array,
8363         and use verify_type__ to declare the size of the array.
8364         Problem and germ of a solution reported by Bruno Haible.
8365         (verify_type__): Use 2, not 1, for bitfield size, to avoid
8366         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
8367
8368 2005-09-23  Jim Meyering  <jim@meyering.net>
8369
8370         Sync from coreutils.
8371         Correct build failure (socklen_t not defined) on at least
8372         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
8373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
8374
8375 2005-09-23  Jim Meyering  <jim@meyering.net>
8376
8377         * modules/getaddrinfo (Depends-on): Add socklen.
8378
8379 2005-09-23  Bruno Haible  <bruno@clisp.org>
8380
8381         * tests/test-verify.c: New file.
8382
8383 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8384
8385         Sync from coreutils.
8386
8387         * modules/argmatch (Depends-on): Add verify.
8388         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
8389         unistd-safer.
8390         * modules/save-cwd (Depends-on): Likewise.
8391
8392         * modules/openat (Files): Add lib/openat-die.c.
8393         (Depends-on): Remove error, exitfail.
8394         Add dirname.
8395
8396         * modules/verify: New file.
8397         * MODULES.html.sh (Diagnostics <assert.h>): New section,
8398         with "verify" module.
8399
8400 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8401
8402         Sync from coreutils.
8403
8404         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
8405         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
8406         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
8407         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
8408         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
8409         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
8410         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
8411         Don't bother checking for string.h, stdlib.h, unistd.h.
8412         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
8413         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
8414         module's job.
8415         * m4/jm-macros.m4 (gl_MACROS): Likewise.
8416         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
8417
8418         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
8419         (gl_GETDATE): Use it.
8420
8421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
8422
8423 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8424
8425         Sync from coreutils.
8426
8427         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
8428         stat-time.h.
8429         * lib/argmatch.h: Include verify.h
8430         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
8431         (ARGMATCH_ASSERT): Remove; unused.
8432         * lib/canonicalize.c: Assume STDC_HEADERS.
8433         * lib/exclude.c: Include "strcase.h".
8434         * lib/regex_internal.h [!defined _LIBC]: Likewise.
8435         * lib/getusershell.c: Include stdio--.h rather than stdio.h
8436         and stdio-safer.h.
8437         (getusershell): Call fopen, not fopen_safer.
8438         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
8439         Do not include unistd-safer.h.
8440         (save_cwd): Don't call fd_safer; no longer needed
8441         now that we include fcntl--.h.
8442
8443         * lib/getdate.y (relative_time): New type.
8444         (RELATIVE_TIME_0): New constant.
8445         (parser_control): Use relative_time instead of doing it ourselves.
8446         (%union): Add new relative_time rel member.
8447         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
8448         Now typeless.
8449         (relunit, relunit_snumber): Now of type rel.
8450         (zone, rel, relunit, get_date): Adjust to above changes.
8451
8452         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
8453         Do not include unistd-safer.h.
8454         (getloadavg): Don't call fd_safer; no longer needed
8455         now that we include fcntl--.h.
8456
8457         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
8458         (make_dir_parents): Treat ENOSYS like EEXIST.
8459
8460         Improve quality of diagnostics on restore_cwd failure.
8461         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
8462         (make_dir_parents): Last arg is now int * (for errno), not bool *.
8463         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
8464         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
8465         each time through the loop.  Do not diagnose restore_cwd failure;
8466         that is the caller's job (and perhaps the caller does not care).
8467
8468         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
8469         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
8470         If the file already exists but is not a directory, don't bother
8471         to try to make its parents.
8472         Close potential file descriptor leak if we can't chdir("/") (!).
8473         Don't always return true if chdir($PWD) fails; return true only
8474         if the requested action was done successfully (except for the
8475         chdir($PWD)).
8476         Don't log final directory unless we actually made it.
8477         Refactor to avoid duplicate code to fix up permissions.
8478         Don't attempt to fix up parent permissions if chdir($PWD) fails.
8479
8480         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
8481         to make it a bit faster and (I hope) clearer.
8482         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
8483         Fix bug in formats like %2N.
8484
8485         * lib/verify.h: New file.
8486
8487 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8488
8489         Sync from coreutils.
8490         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
8491
8492 2005-09-22  Jim Meyering  <jim@meyering.net>
8493
8494         Sync from coreutils.
8495
8496         * m4/lstat.m4 (gl_FUNC_LSTAT):
8497         Use AC_LIBSOURCES to require lstat.c and lstat.h.
8498         Remove obsolete comment.
8499         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
8500         * m4/xstrtod.m4: Likewise.
8501
8502         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
8503
8504 2005-09-22  Jim Meyering  <jim@meyering.net>
8505
8506         Sync from coreutils.
8507
8508         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
8509
8510         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
8511         the .tm_year member, since otherwise gcc-4.0 would now warn about
8512         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
8513
8514         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
8515         order to avoid an unsuppressible warning from gcc on 64-bit systems.
8516
8517         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
8518         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
8519         when run in a time zone for which daylight savings time is in effect
8520         for the starting date.
8521
8522         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
8523         stop us from restricting permissions of just-created absolute-named
8524         directories.
8525         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
8526         to restore initial working directory.
8527         * lib/mkdir-p.c (make_dir_parents): New parameter:
8528         different_working_dir, to tell caller if/when we change the working
8529         directory and are unable to return to the initial one.
8530         * lib/mkdir-p.h (make_dir_parents): Update prototype.
8531         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
8532         `return false'.  This fixes a bug introduced on 2004-07-30.
8533
8534         * lib/openat.c (fdopendir): Be sure to close the supplied
8535         file descriptor before returning.  This makes our replacement
8536         implementation a little closer to Solaris's, where fdopendir
8537         ties the file descriptor to the returned DIR* pointer.
8538         * lib/openat.c (unlinkat): New function.
8539         * lib/openat.h (unlinkat): Add prototype.
8540         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
8541         (openat_restore_fail): Rename from openat_restore_die.
8542         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
8543
8544         Provide an alternative to exiting immediately upon save_cwd or
8545         restore_cwd failure.  Now, an application can arrange e.g.,
8546         to perform a longjump in that case.
8547         * lib/openat.c: Include dirname.h.
8548         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
8549         (rpl_openat, fdopendir, fstatat): Call openat_save_die
8550         and openat_restore_die rather than calling error directly.
8551         Don't include "error.h" or "exitfail.h"; they're no longer needed.
8552
8553         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
8554         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
8555         define.
8556
8557         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
8558         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
8559                             int utc, int nanoseconds);
8560         Background:
8561         date should not have to allocate a megabyte of virtual memory to
8562         handle a format argument like +%1048575T.  When implemented with
8563         strftime, it must allocate such a buffer, use strftime to fill it
8564         in, print it, then free it.
8565         With fprintftime, it simply prints everything and exits.
8566         With no need for memory allocation, that's one fewer way to fail.
8567         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
8568         optional field width, not before, so we accept %9:z, not %:9z.
8569         (my_strftime): Be sure to use L_('x') for literals.
8570
8571         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
8572         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
8573         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
8574         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
8575         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
8576         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
8577         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
8578         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
8579         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
8580         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
8581         * lib/xgethostname.c, lib/xreadlink.c:
8582         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
8583
8584         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
8585         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
8586         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
8587         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
8588         and don't include <sys/file.h>).
8589
8590 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
8591
8592         Sync from coreutils.
8593
8594         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
8595         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
8596         [!LDAV_DONE]: Avoid unused variable warning.
8597
8598 2005-09-21  Bruno Haible  <bruno@clisp.org>
8599
8600         * lib/unicodeio.h (unicode_to_mb): New declaration.
8601
8602 2005-09-20  Derek Price  <derek@ximbiot.com>
8603
8604         * lib/getaddrinfo.c: Don't include <netdb.h> included from
8605         getaddrinfo.h.
8606
8607 2005-09-20  Bruno Haible  <bruno@clisp.org>
8608
8609         * gnulib-tool: Remove trailing slashes from the values specified for
8610         --source-base, --m4-base, --tests-base, --aux-dir.
8611         Suggested by Simon Josefsson <jas@extundo.com>.
8612
8613 2005-09-20  Bruno Haible  <bruno@clisp.org>
8614
8615         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
8616         func_modules_to_filelist, func_import, func_create_testdir): Make all
8617         sorting results locale-independent, so that gnulib-cache.m4 doesn't
8618         change when gnulib-tool is invoked in a different locale.
8619
8620 2005-09-19  Simon Josefsson  <jas@extundo.com>
8621
8622         * m4/socklen.m4: Fix typo.
8623
8624 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8625
8626         Use a consistent style for including <config.h>.
8627         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
8628         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
8629         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
8630         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
8631         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
8632         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
8633         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
8634         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
8635         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
8636         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
8637         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
8638         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
8639         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
8640         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
8641         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
8642         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
8643         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
8644         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
8645         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
8646         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
8647         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
8648         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
8649         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
8650         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
8651         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
8652         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
8653         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
8654         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
8655         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
8656         lib/xstrtoumax.c, lib/yesno.c:
8657         Standardize inclusion of config.h.
8658         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
8659         lib/inttostr.h:  Removed inclusion of config.h from header files.
8660         * lib/inttostr.c:  Adjusted in-tree users.
8661         * lib/timespec.h: Remove superfluous warning to include config.h.
8662         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
8663         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
8664         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
8665         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
8666         config.h with HAVE_CONFIG_H.
8667
8668 2005-09-19  Jim Meyering  <jim@meyering.net>
8669
8670         * modules/pathmax (License): Change to LGPL.
8671
8672 2005-09-19  Derek Price  <derek@ximbiot.com>
8673
8674         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
8675
8676 2005-09-19  Bruno Haible  <bruno@clisp.org>
8677
8678         * gnulib-tool (import): Provide default for --tests-base.
8679
8680 2005-09-19  Bruno Haible  <bruno@clisp.org>
8681
8682         * doc/quote.texi: New file, extracted from gnulib.texi.
8683         * doc/ctime.texi: New file, extracted from gnulib.texi.
8684         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
8685         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
8686         * doc/gnulib.texi: Include them.
8687
8688 2005-09-18  Bruno Haible  <bruno@clisp.org>
8689
8690         Portability fix.
8691         * gnulib-tool (func_readlink): New function.
8692         (func_ln_if_changed): Use it.
8693
8694 2005-09-18  Bruno Haible  <bruno@clisp.org>
8695
8696         * gnulib-tool: Support --with-tests also with --import.
8697         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
8698         (func_import): Use variables $testsbase and $inctests. Emit a
8699         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
8700         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
8701         SUBDIRS += $testsdir.
8702         (func_create_testdir): Update.
8703
8704 2005-09-18  Bruno Haible  <bruno@clisp.org>
8705
8706         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
8707         instead of $dry_run.
8708         (func_cp_if_changed, func_mv_if_changed): Remove functions.
8709         (func_ln_if_changed): Don't handle dry-run here.
8710         (func_import): In dry-run mode, detect more precisely which actions
8711         would be performed, and don't use "...ing" verbs.
8712
8713 2005-09-18  Bruno Haible  <bruno@clisp.org>
8714
8715         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
8716         (func_import): Use join on two temporary files instead of three nested
8717         loops, in order to determine which files are new or old.
8718
8719 2005-09-18  Bruno Haible  <bruno@clisp.org>
8720
8721         * gnulib-tool (func_import): Comment out code that spits out the
8722         new files with --dry-run.
8723
8724 2005-09-18  Bruno Haible  <bruno@clisp.org>
8725
8726         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
8727
8728 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8729
8730         * lib/stat-time.h: New file.
8731         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
8732         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
8733         in a different way.
8734         (timespec_cmp): New function.
8735         * lib/utimecmp.c: Include stat-time.h.
8736         (SYSCALL_RESOLUTION): Depend on whether various struct stat
8737         members exist, not on the obsolescent ST_MTIM_NSEC.
8738         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
8739
8740 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8741
8742         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
8743
8744 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8745
8746         * MODULES.html.sh (File system functions): Add stat-time.
8747         * modules/stat-time: New file.
8748         * modules/timespec (Files): Remove m4/st_mtim.m4; this
8749         is now done in a different way, by the stat-time module.
8750         * modules/utimecmp (Depends-on): Add stat-time.
8751
8752 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8753
8754         * m4/st_mtim.m4: Remove.  Superseded by...
8755         * m4/stat-time.m4: New file.
8756         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
8757         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
8758
8759 2005-09-15  Derek Price  <derek@ximbiot.com>
8760
8761         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
8762
8763 2005-09-15  Derek Price  <derek@ximbiot.com>
8764
8765         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
8766         * lib/regex_internal.c: Ditto, using this...
8767         (__GNUC_PREREQ): ...new macro.
8768         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
8769         using...
8770         (__GNUC_PREREQ): ...this new macro.
8771
8772         * lib/strstr.h: Include string.h. Define strstr as a macro here.
8773
8774 2005-09-15  Derek Price  <derek@ximbiot.com>
8775             Paul Eggert  <eggert@cs.ucla.edu>
8776
8777         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
8778         changes, consolidating in...
8779         * lib/regex_internal.h: ...this file.
8780
8781 2005-09-13  Jim Meyering  <jim@meyering.net>
8782
8783         * lib/canon-host.c: Filter through gnu indent and reword comments
8784         slightly.
8785         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
8786
8787 2005-09-13  Derek Price  <derek@ximbiot.com>
8788
8789         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
8790         failure.
8791         Reported by Jim Meyering  <jim@meyering.net>.
8792
8793 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
8794
8795         * lib/base64.c: Typo.
8796         (base64_encode): Put b64str in initialized data section.
8797
8798 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8799
8800         Merge glibc and coreutils changes into gnulib, plus a few
8801         extra fixes.
8802         * lib/md5.c: Use #error rather than a string.
8803         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
8804         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
8805         (__attribute__): Define to empty for non recent-GCC.
8806         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
8807         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
8808         Renamed from their non-__ counterparts, with new macros replacing
8809         them if not _LIBC.  Add __THROW attribute.
8810         (rol): Remove.
8811         (struct md5_ctx): Align buffer if using GCC.
8812         * lib/sha1.h (struct sha1_ctx): Likewise.
8813         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
8814         The old name was backwards.
8815         (NOTSWAP): Remove; not used.
8816         (rol): New macro, moved here from md5.h.
8817         (sha1_process_block): Remove a FIXME that doesn't make sense.
8818
8819 2005-09-12  Derek Price  <derek@ximbiot.com>
8820
8821         Return usable errors from canon-host.
8822         * lib/canon-host.h: New file.
8823         * lib/canon-host.c (canon_host): Wrap...
8824         (canon_host_r): ...this new function, which now relies exclusively on
8825         getaddrinfo.
8826         (ch_strerror): New function.
8827         (last_cherror): New global.
8828         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
8829         interface.
8830         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
8831         void *.
8832         (freeaddrinfo): Free ai->ai_canonname when set.
8833
8834 2005-09-12  Derek Price  <derek@ximbiot.com>
8835
8836         Make canon-host require getaddrinfo.
8837         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
8838         AC_LIBSOURCE canon-host.h.  Call...
8839         (gl_PREREQ_CANON_HOST): ...this new function, which requires
8840         gl_GETADDRINFO.
8841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
8842
8843 2005-09-12  Derek Price  <derek@ximbiot.com>
8844
8845         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
8846         LGPL.
8847         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
8848
8849 2005-09-12  Derek Price  <derek@ximbiot.com>
8850
8851         * lib/gai_strerror.c: Include config.h when available.  Include
8852         getaddrinfo.h before other headers to test interface.
8853         Reported by Larry Jones <lawrence.jones@ugs.com>.
8854
8855 2005-09-12  Derek Price  <derek@ximbiot.com>
8856             Paul Eggert  <eggert@cs.ucla.edu>
8857
8858         * modules/glob (Files): Add glob-libc.h.
8859
8860 2005-09-12  Derek Price  <derek@ximbiot.com>
8861             Paul Eggert  <eggert@cs.ucla.edu>
8862
8863         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
8864         glob_.h, glob-libc.h.
8865         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
8866
8867 2005-09-12  Derek Price  <derek@ximbiot.com>
8868             Paul Eggert  <eggert@cs.ucla.edu>
8869
8870         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
8871         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
8872         protecting things that should be done only in gnulib contexts.
8873         * lib/glob_.h: New file, containing only the glob things needed for
8874         gnulib.
8875         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
8876         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
8877         (glob, globfree, glob_pattern_p): Now defined simply in terms of
8878         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
8879         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
8880         and to respect the namespace rules better.
8881
8882 2005-09-08  Simon Josefsson  <jas@extundo.com>
8883
8884         * modules/socklen: New file.
8885
8886 2005-09-08  Simon Josefsson  <jas@extundo.com>
8887
8888         * m4/socklen.m4: New file.
8889
8890 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8891
8892         * modules/utimens (Files): Add m4/utimbuf.m4, since
8893         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
8894         Reported by Sergey Poznyakoff.
8895
8896 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8897
8898         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
8899         definitions, since that's the preferred style in glibc.
8900         Fix a minor spacing issue, and update copyright notice to match
8901         glibc's.
8902
8903 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8904
8905         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
8906
8907 2005-09-06  Simon Josefsson  <jas@extundo.com>
8908
8909         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
8910         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
8911
8912 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8913
8914         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
8915         warning.
8916
8917 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8918
8919         * config/srclist.txt: Add glibc bug 1302.
8920
8921 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8922
8923         Change bitset word type from unsigned int to unsigned long int,
8924         as this has better performance on typical 64-bit hosts.
8925         Port bitset code to hosts with unusual word sizes.
8926         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
8927         (build_collating_symbol):
8928         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
8929         argument is a bitset.  This is merely a style issue, but it makes
8930         it clearer that an entire array is expected.
8931         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
8932         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
8933         Port to the case where bitset_word is not the same as unsigned int.
8934         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
8935         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
8936         Likewise.
8937         * lib/regexec.c (check_dst_limits_calc_pos_1,
8938         check_subexp_matching_top):
8939         (build_trtable, group_nodes_into_DFAstates):
8940         Likewise.
8941         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
8942         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
8943         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
8944         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
8945         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
8946         * lib/regcomp.c (optimize_subexps, lower_subexp):
8947         Work even if bitset_word has holes in its bitwise representation.
8948         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
8949         * lib/regexec.c (check_dst_limits_calc_pos_1,
8950         check_subexp_matching_top):
8951         Likewise.
8952         * lib/regex_internal.c (re_string_reconstruct):
8953         Don't assume UCHAR_MAX == 255.
8954         * lib/regex_internal.h (bitset_set_all): Likewise.
8955         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
8956         All uses changed.
8957         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
8958         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
8959         All uses changed.
8960         (BITSET_WORD_MAX): New macro.
8961         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
8962         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
8963         (bitset_empty, bitset_copy):
8964         Prefer sizeof (bitset) to multiplying it out ourselves.
8965         (bitset_not_merge): Remove; unused.
8966         (bitset_contain): Return bool, not unsigned int with one bit on.
8967         All callers changed.
8968         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
8969         alignment than re_node_set; do this by defining a new internal
8970         type struct dests_alloc and using it to allocate memory.
8971
8972 2005-09-05  Bruno Haible  <bruno@clisp.org>
8973
8974         * gnulib-tool (func_import): Fix comparison in handling of symbolic
8975         links.
8976
8977 2005-09-04  Martin Lambers <marlam@marlam.de>  (tiny change)
8978
8979         * modules/size_max (Makefile.am): Add size_max.h
8980
8981 2005-09-04  Derek Price  <derek@ximbiot.com>
8982
8983         * gnulib-tool (func_import): Fix reversed $symbolic logic.
8984
8985 2005-09-03  Simon Josefsson  <jas@extundo.com>
8986
8987         * gnulib-tool: Fix typo.
8988
8989 2005-09-03  Simon Josefsson  <jas@extundo.com>
8990
8991         * config/srclist.txt: Add glibc bug 1293.
8992
8993 2005-09-03  Derek Price  <derek@ximbiot.com>
8994
8995         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
8996         From Larry Jones <lawrence.jones@ugs.com>.
8997
8998 2005-09-02  Simon Josefsson  <jas@extundo.com>
8999
9000         * modules/socklen: New file.
9001
9002 2005-09-02  Simon Josefsson  <jas@extundo.com>
9003
9004         * modules/havelib: New module.
9005
9006         * modules/gettext, modules/iconv, modules/lock, modules/readline:
9007         Use havelib.
9008
9009 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9010
9011         Check for arithmetic overflow when calculating sizes, to prevent
9012         some buffer-overflow issues.  These patches are conservative, in the
9013         sense that when I couldn't determine whether an overflow was possible,
9014         I inserted a run-time check.
9015         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
9016         macros.
9017         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
9018         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
9019         (re_xnrealloc, re_x2nrealloc): New inline functions.
9020         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
9021         parse_bracket_exp):
9022         (build_equiv_class, build_charclass): Check for arithmetic overflow
9023         in size expression calculations.
9024         * lib/regex_internal.c (re_string_realloc_buffers):
9025         (build_wcs_upper_buffer, re_node_set_add_intersect):
9026         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
9027         (re_dfa_add_node, register_state): Likewise.
9028         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
9029         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
9030         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
9031         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
9032
9033 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9034
9035         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
9036         m4/ulonglong.m4.  Problem reported by Martin Lambers.
9037
9038 2005-09-02  Bruno Haible  <bruno@clisp.org>
9039
9040         Support for lib vs. lib64 distinction on biarch platforms.
9041         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
9042         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
9043         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
9044
9045 2005-09-02  Bruno Haible  <bruno@clisp.org>
9046
9047         * gnulib-tool (import): In the other first-use case, provide defaults
9048         as well.
9049
9050 2005-09-02  Bruno Haible  <bruno@clisp.org>
9051
9052         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
9053         patches not yet found in the latest gettext release.
9054
9055 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9056
9057         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
9058         to avoid a collision with bits/local_lim.h in glibc.
9059         All uses changed.  Problem reported by Dmitry V. Levin in
9060         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
9061
9062         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
9063         bugs in int versus size_t comparisons.
9064         (re_string_context_at): Fix bug where the code assumed that
9065         Idx is signed.
9066
9067         Use bool where appropriate.
9068         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
9069         All callers changed.
9070         (calc_eclosure_iter): Likewise, for ROOT arg.
9071         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
9072         (build_charclass_op): Likewise, for NON_MATCH arg.
9073         * lib/regex_internal.c (re_string_allocate, re_string_construct):
9074         (re_string_construct_common): Likewise, for ICASE arg.
9075         * lib/regexec.c (re_search_2_stub, re_search_stub):
9076         Likewise, for RET_LEN arg.
9077         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
9078         (set_regs): Likewise, for FL_BACKTRACK arg.
9079         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
9080         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
9081         (calc_eclosure_iter, parse_bracket_exp):
9082         Use bool for internal variables that are booleans.
9083         * lib/regexec.c (re_search_internal, check_matching,
9084         proceed_next_node):
9085         (set_regs, build_sifted_states, sift_states_bkref):
9086         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
9087         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
9088         (find_collation_sequence_value):
9089         Likewise.
9090         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
9091         (re_node_set_compare):
9092         Return bool, not int. All callers changed.
9093         * lib/regexec.c (check_halt_node_context, check_dst_limits):
9094         (build_trtable, check_node_accept): Likewise.
9095         * lib/regex_internal.h: Include stdbool.h.
9096
9097         Fix bugs uncovered when converting to bool.
9098         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
9099         failure instead of charging ahead blindly.
9100         * lib/regex_internal.c (register_state): Likewise.
9101         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
9102         for freeing internal storage.
9103         (group_nodes_into_DFA_states): Use unsigned int, not int, for
9104         bitset pieces used as boolean, to avoid undefined behavior
9105         on hosts that do int overflow checking.
9106
9107 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9108
9109         * config/srclist.txt: Add glibc bugs 1285-1287.
9110
9111 2005-09-01  Jim Meyering  <jim@meyering.net>
9112
9113         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
9114         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
9115         Require gl_STAT_MACROS, too.
9116
9117 2005-09-01  Bruno Haible  <bruno@clisp.org>
9118
9119         * gnulib-tool (import): In the first-use case, provide defaults.
9120
9121 2005-09-01  Bruno Haible  <bruno@clisp.org>
9122
9123         * gnulib-tool (func_import): Remove the .tmp files.
9124
9125 2005-09-01  Bruno Haible  <bruno@clisp.org>
9126
9127         * gnulib-tool (func_import): Fix handling of symbolic links.
9128
9129 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9130
9131         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
9132         old glibc regex code mishandles strings longer than 2**31 bytes.
9133         This patch fixes this when the regex code is used in gnulib
9134         (i.e., outside glibc).
9135
9136         This patch should not affect the use of the regex code inside
9137         glibc.  No doubt this problem also needs to be handled for glibc
9138         as well, but the result will be an incompatible change to the
9139         glibc ABI, and the old ABI will have to be supported too.  That
9140         can be the the subject for another patch.
9141
9142         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
9143         governing whether the rest of this patch is active.  By default,
9144         the macro is disabled and the patch has no effect.
9145         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
9146         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
9147         (struct re_pattern_buffer, re_search, re_search_2, re_match):
9148         (re_match_2, re_set_registers): Use the new types.
9149         * lib/regex_internal.h (Idx, re_hashval_t): New types.
9150         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
9151         New macros.
9152         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
9153         (re_string_context_at, bin_tree_t, re_dfastate_t):
9154         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
9155         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
9156         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
9157         (re_string_char_size_at, re_string_wchar_at):
9158         (re_string_elem_size_at):
9159         Use the new types and macros to port to 64-bit hosts.
9160         Use unsigned types for internal values, so that the code
9161         mostly works even for arrays larger than SSIZE_MAX.
9162         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
9163         (search_duplicated_node, calc_eclosure_iter, fetch_number):
9164         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
9165         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
9166         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
9167         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
9168         (calc_inveclosure, parse_dup_op, build_range_exp):
9169         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
9170         (fetch_number, create_token_tree, mark_opt_subexp):
9171         Likewise.
9172         * lib/regex_internal.c (re_string_construct_common,
9173         create_ci_newstate):
9174         (create_cd_newstate, re_string_allocate, re_string_construct):
9175         (re_string_realloc_buffers, build_wcs_upper_buffer):
9176         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
9177         (re_string_reconstruct, re_string_peek_byte_case):
9178         (re_string_fetch_byte_case, re_string_context_at):
9179         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
9180         (re_node_set_init_copy, re_node_set_add_intersect):
9181         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9182         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9183         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
9184         (re_acquire_state, re_acquire_state_context, register_state):
9185         Likewise.
9186         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
9187         search_cur_bkref_entry):
9188         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
9189         (re_search_internal, re_search_2_stub, re_search_stub)
9190         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
9191         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
9192         (update_cur_sifted_state, check_dst_limits):
9193         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
9194         (check_subexp_limits, sift_states_bkref, merge_state_array):
9195         (check_subexp_matching_top, get_subexp, get_subexp_sub):
9196         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
9197         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
9198         (expand_bkref_cache, check_node_accept_bytes):
9199         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
9200         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
9201         (acquire_init_state_context, check_halt_node_context):
9202         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
9203         (sift_states_backward, clean_state_log_if_needed):
9204         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
9205         (find_recover_state, transit_state_sb, transit_state_mb):
9206         (transit_state_bkref, build_trtable, match_ctx_clean):
9207         Likewise.
9208         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
9209         to work around an assumption that REG_MISSING is negative.
9210
9211         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
9212         (seek_collating_symbol_entry) [defined _LIBC]:
9213         (lookup_collation_sequence_value) [defined _LIBC]:
9214         (build_range_exp, build_collating_symbol) [defined _LIBC]:
9215         Use prototypes rather than old-style function definitions.
9216         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
9217         (transit_state_sb) [0]:
9218         (find_collation_sequence_value) [defined _LIBC]: Likewise.
9219
9220         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
9221         rm_eo.
9222
9223         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
9224         (optimize_subexps, lower_subexp):
9225         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
9226         since the signed shift might overflow.  Use 1u<<31 instead.
9227         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
9228         Likewise.
9229         * lib/regexec.c (check_dst_limits_calc_pos_1,
9230         check_subexp_matching_top): Likewise.
9231
9232         * lib/regcomp.c (optimize_subexps, lower_subexp):
9233         Use CHAR_BIT rather than 8, for clarity.
9234         * lib/regexec.c (check_dst_limits_calc_pos_1):
9235         (check_subexp_matching_top): Likewise.
9236         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
9237         have to worry about portability issues when shifting it left.
9238         Remove no-longer-needed test for table_size > 0.
9239         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
9240         in a word, as the resulting behavior is undefined.
9241         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
9242         in one case, a <= should have been an <, and in another case the
9243         whole test was missing.
9244         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
9245         the standard name CHAR_BIT.
9246         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
9247         this is not true on one's complement and signed-magnitude hosts.
9248
9249         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
9250         next_last_offset.
9251         (struct re_dfa_t): Remove unused member states_alloc.
9252         * lib/regcomp.c (init_dfa): Don't initialize unused members.
9253
9254 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9255
9256         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
9257         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
9258         and large-file glibc and in 32-bit large-file Solaris.
9259
9260 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9261
9262         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
9263         lengths fit in regoff_t; this isn't true if regoff_t is the same
9264         width as size_t.
9265         * lib/regex.c (re_search_internal): 5th arg is LAST_START
9266         (= START + RANGE) instead of RANGE.  This avoids overflow
9267         problems when regoff_t is the same width as size_t.
9268         All callers changed.
9269         (re_search_2_stub): Check for overflow when adding the
9270         sizes of the two strings.
9271         (re_search_stub): Check for overflow when adding START
9272         to RANGE; if it occurs, substitute the extreme value.
9273
9274 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9275
9276         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
9277
9278 2005-08-31  Jim Meyering  <jim@meyering.net>
9279
9280         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
9281         a pointer-to-const.
9282         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
9283         (register_state): Likewise.
9284         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
9285         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
9286         (group_nodes_into_DFAstates): Likewise.
9287
9288 2005-08-31  Jim Meyering  <jim@meyering.net>
9289
9290         * check-module: Add a FIXME comment.
9291
9292 2005-08-31  Eric Blake  <ebb9@byu.net>
9293
9294         * modules/unistd-safer (Files): Add unistd--.h.
9295         * modules/stdio-safer (Files): Add stdio--.h.
9296
9297 2005-08-31  Derek Price  <derek@ximbiot.com>
9298
9299         * lib/getdelim.c (getdelim): Return EOF on EOF.
9300         Reported by Larry Jones <lawrence.jones@ugs.com>.
9301
9302 2005-08-31  Bruno Haible  <bruno@clisp.org>
9303
9304         Avoid unnecessary diffs in the generated lib/Makefile.am.
9305         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
9306         the generated files.
9307         (func_import): Don't set cmd.
9308
9309 2005-08-31  Bruno Haible  <bruno@clisp.org>
9310
9311         * lib/strstr.c: Include <stddef.h>, for NULL.
9312         * lib/strcasestr.c: Likewise.
9313         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9314
9315 2005-08-31  Bruno Haible  <bruno@clisp.org>
9316
9317         * gnulib-tool: New option --macro-prefix.
9318         (func_import): Use macro_prefix.
9319         (import): Handle option --macro-prefix.
9320
9321 2005-08-31  Bruno Haible  <bruno@clisp.org>
9322
9323         * gnulib-tool (import): Rename most ac_* variables to cached_*.
9324         Also use new variables cached_lgpl, cached_libtool.
9325
9326 2005-08-31  Bruno Haible  <bruno@clisp.org>
9327
9328         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
9329         always instantiating them.
9330
9331 2005-08-31  Bruno Haible  <bruno@clisp.org>
9332
9333         * gnulib-tool (func_import): Read the previous cached settings
9334         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
9335         earlier added by gnulib but are now dropped. Warn when a gnulib file
9336         overwrites a non-gnulib file.
9337
9338 2005-08-31  Bruno Haible  <bruno@clisp.org>
9339
9340         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
9341         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
9342         projects that don't keep autogenerated files in CVS. Put into
9343         actioncmd only the specified modules, not the transitive closure.
9344
9345 2005-08-31  Bruno Haible  <bruno@clisp.org>
9346
9347         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
9348         Create directories that shall be filled.
9349         (import): Don't look for gl_* macros in configure.ac. Recurse across
9350         all directories containing a gnulib-cache.m4 files, if meaningful.
9351
9352 2005-08-31  Bruno Haible  <bruno@clisp.org>
9353
9354         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
9355         (import): Set seen_libtool when we see gl_LIBTOOL.
9356
9357 2005-08-31  Bruno Haible  <bruno@clisp.org>
9358
9359         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
9360         declaration macro definitions from generated gnulib.m4.
9361
9362 2005-08-30  "Oskar Liljeblad" <oskar@osk.mine.nu>
9363
9364         * lib/iconvme.h: Add prototype for iconv_alloc.
9365
9366 2005-08-29  Simon Josefsson  <jas@extundo.com>
9367
9368         * lib/iconvme.c: Fix errno.
9369
9370 2005-08-29  Bruno Haible  <bruno@clisp.org>
9371
9372         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
9373         that it works when the directory contains spaces.
9374
9375 2005-08-29  Bruno Haible  <bruno@clisp.org>
9376
9377         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
9378
9379 2005-08-29  Bruno Haible  <bruno@clisp.org>
9380
9381         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
9382         Emit more advice.
9383
9384 2005-08-29  Bruno Haible  <bruno@clisp.org>
9385         and Stepan Kasal  <kasal@ucw.cz>
9386
9387         * check-module: If more parameters are given, check each of them
9388         separately; add more exceptions, as noted by Jim Meyering.
9389         (check_module): New procedure.
9390         (%exempt_header): Now contains all exceptions.
9391
9392 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
9393
9394         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
9395
9396 2005-08-29  "Oskar Liljeblad" <oskar@osk.mine.nu>
9397
9398         * lib/iconvme.c: Split iconv_string into iconv_alloc.
9399
9400 2005-08-28  Bruno Haible  <bruno@clisp.org>
9401
9402         * m4/gnulib-tool.m4: New file.
9403
9404 2005-08-27  Jim Meyering  <jim@meyering.net>
9405
9406         * modules/unistd-safer (Files): Add pipe-safer.c.
9407         * modules/fcntl-safer (Files): Add creat-safer.c.
9408
9409 2005-08-27  Jim Meyering  <jim@meyering.net>
9410
9411         * m4/stdlib-safer.m4: New file.  From coreutils.
9412         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
9413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
9414         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
9415         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
9416         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
9417
9418 2005-08-27  Jim Meyering  <jim@meyering.net>
9419
9420         * lib/fopen-safer.c: Merge minor changes from coreutils.
9421         * lib/dup-safer.c: Likewise.
9422         * lib/fd-safer.c: Likewise.
9423
9424         Merge from coreutils.
9425         * lib/stdio--.h: New file.
9426         * lib/stdlib--.h: New file.
9427         * lib/mkstemp-safer.c: New file.
9428
9429         GNU tar needs these.
9430         * lib/pipe-safer.c: New file.
9431         * lib/creat-safer.c: New file.
9432         * lib/fcntl--.h (creat): Define to creat_safer.
9433         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
9434         * lib/unistd--.h (pipe): Define to pipe_safer.
9435         * lib/unistd-safer.h: Declare pipe_safer.
9436
9437 2005-08-26  Simon Josefsson  <jas@extundo.com>
9438
9439         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
9440         Haible <bruno@clisp.org>.
9441
9442 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
9443
9444         * lib/regex_internal.h: Remove all references to
9445         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
9446         or better.
9447         (bitset_not, bitset_merge, bitset_not_merge):
9448         (bitset_mask, re_string_allocate, re_string_construct):
9449         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
9450         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
9451         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
9452         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
9453         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9454         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9455         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
9456         (re_acquire_state_context):
9457         Remove unnecessary forward decls.
9458         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
9459         Put __attribute at function definition,
9460         now that the function decl has been removed.
9461         * lib/regex_internal.c (re_string_peek_byte_case):
9462         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
9463         Likewise.
9464
9465 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
9466
9467         * m4/regex.m4: Add AC_PREREQ(2.50).
9468         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
9469
9470 2005-08-25  Simon Josefsson  <jas@extundo.com>
9471
9472         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
9473         __fsetlocking.
9474
9475 2005-08-25  Simon Josefsson  <jas@extundo.com>
9476
9477         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
9478         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
9479         GLIBC specific code.
9480
9481 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9482
9483         Make regex safe for g++.  This fixes one real bug (an "err"
9484         that should have been "*err").  g++ problem reported by
9485         Sam Steingold.
9486         * lib/regex_internal.h (re_calloc): New macro, consistent with
9487         re_malloc etc.  All callers of calloc changed to use re_calloc.
9488         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
9489         not int.  All callers changed.
9490         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
9491         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
9492         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
9493         (find_recover_state): Change "err" to "*err"; this fixes what
9494         appears to be a real bug.
9495         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
9496         versus int.
9497
9498 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9499
9500         * modules/regex (Depends-on): Add malloc, since the code
9501         assumes that !malloc(0) means failure.
9502
9503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9504
9505         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
9506
9507         alloca modernization/simplification for regex.
9508         * lib/regex.c: Remove portability cruft for alloca.  This no longer
9509         needs to be at the start of the file, and can be moved into
9510         regex_internal.h and simplified.
9511         * lib/regex_internal.h: Include <alloca.h>.
9512         (__libc_use_alloca) [!defined _LIBC]: New macro.
9513         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
9514         now works outside glibc.
9515
9516 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9517
9518         * config/srclist.txt: Add glibc bugs 1241, 1245.
9519
9520 2005-08-25  Jim Meyering  <jim@meyering.net>
9521
9522         * lib/open-safer.c: Include <config.h>.
9523         Otherwise, we'd lose LARGEFILE support in any file using
9524         e.g. "fcntl--.h"
9525
9526 2005-08-25  Bruno Haible  <bruno@clisp.org>
9527
9528         * m4/minmax.m4: Require autoconf 2.52.
9529         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
9530         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
9531         alternatives of translit over the alphabet.
9532         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
9533
9534 2005-08-24  Simon Josefsson  <jas@extundo.com>
9535
9536         * tests/test-getpass.c: New file.
9537
9538 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9539
9540         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
9541         for GNU regex features.
9542
9543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9544
9545         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
9546         * lib/regex.h (regerror): Likewise.
9547
9548         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
9549         requires this.  (The code never needed it.)
9550
9551         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
9552         All uses of recently-renamed identifiers changed to use the new,
9553         POSIX-compliant names.  The code will build and run just fine
9554         without these changes, but it's better to eat our own dog food
9555         and use the standard-conforming names.
9556
9557         * lib/regex.h: Fix a multitude of POSIX name space violations.
9558         These changes have an effect only for programs that define
9559         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
9560         do not change anything for programs compiled in the normal way.
9561         Also, there is no effect on the ABI.
9562
9563         (_REGEX_SOURCE): New macro.
9564         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
9565         defined and _GNU_SOURCE is not; this fixes a name space violation.
9566
9567         Rename the following macros to obey POSIX requirements.
9568         The old names are still visible as macros if _REGEX_SOURCE is defined.
9569         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
9570         RE_BACKSLASH_ESCAPE_IN_LISTS.
9571         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
9572         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
9573         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
9574         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
9575         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
9576         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
9577         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
9578         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
9579         (REG_INTERVALS): renamed from RE_INTERVALS.
9580         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
9581         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
9582         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
9583         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
9584         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
9585         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
9586         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
9587         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
9588         RE_UNMATCHED_RIGHT_PAREN_ORD.
9589         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
9590         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
9591         (REG_DEBUG): renamed from RE_DEBUG.
9592         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
9593         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
9594         unusual, since we can't clash with the POSIX REG_ICASE.
9595         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
9596         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
9597         (REG_NO_SUB): renamed from RE_NO_SUB.
9598         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
9599         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
9600         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
9601         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
9602         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
9603         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
9604         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
9605         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
9606         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
9607         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
9608         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
9609         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
9610         RE_SYNTAX_POSIX_MINIMAL_BASIC.
9611         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
9612         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
9613         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
9614         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
9615         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
9616         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
9617         (REG_FIXED): Renamed from REGS_FIXED.
9618         (REG_NREGS): Renamed from RE_NREGS.
9619
9620         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
9621         of other REG_* macros, since POSIX says the user is allowed to
9622         #undef these macros selectively.
9623
9624         (reg_errcode_t): Update comment stating what other tables need
9625         to be consistent.
9626
9627         Rename the following enum values to obey POSIX requirements.
9628         The old names are still visible as macros.
9629         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
9630         is not defined, since GNU is supposed to be a superset of POSIX as
9631         much as possible, and since we want reg_errcode_t to be a signed
9632         type for implementation consistency.
9633         (_REG_NOERROR): Renamed from REG_NOERROR.
9634         (_REG_NOMATCH): Renamed from REG_NOMATCH.
9635         (_REG_BADPAT): Renamed from REG_BADPAT.
9636         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
9637         (_REG_ECTYPE): Renamed from REG_ECTYPE.
9638         (_REG_EESCAPE): Renamed from REG_EESCAPE.
9639         (_REG_ESUBREG): Renamed from REG_ESUBREG.
9640         (_REG_EBRACK): Renamed from REG_EBRACK.
9641         (_REG_EPAREN): Renamed from REG_EPAREN.
9642         (_REG_EBRACE): Renamed from REG_EBRACE.
9643         (_REG_BADBR): Renamed from REG_BADBR.
9644         (_REG_ERANGE): Renamed from REG_ERANGE.
9645         (_REG_ESPACE): Renamed from REG_ESPACE.
9646         (_REG_BADRPT): Renamed from REG_BADRPT.
9647         (_REG_EEND): Renamed from REG_EEND.
9648         (_REG_ESIZE): Renamed from REG_ESIZE.
9649         (_REG_ERPAREN): Renamed from REG_ERPAREN.
9650         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
9651         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
9652         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
9653         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
9654
9655         (_REG_RE_NAME, _REG_RM_NAME): New macros.
9656         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
9657         changed.  But support the old name if the new one is not defined
9658         and if _REGEX_SOURCE.
9659
9660         Change the following member names in struct re_pattern_buffer.
9661         The old names are still supported if !_REGEX_SOURCE.
9662         The new names are always supported, regardless of _REGEX_SOURCE.
9663         (re_buffer): Renamed from buffer.
9664         (re_allocated): Renamed from allocated.
9665         (re_used): Renamed from used.
9666         (re_syntax): Renamed from syntax.
9667         (re_fastmap): Renamed from fastmap.
9668         (re_translate): Renamed from translate.
9669         (re_can_be_null): Renamed from can_be_null.
9670         (re_regs_allocated): Renamed from regs_allocated.
9671         (re_fastmap_accurate): Renamed from fastmap_accurate.
9672         (re_no_sub): Renamed from no_sub.
9673         (re_not_bol): Renamed from not_bol.
9674         (re_not_eol): Renamed from not_eol.
9675         (re_newline_anchor): Renamed from newline_anchor.
9676
9677         Change the following member names in struct re_registers.
9678         The old names are still supported if !_REGEX_SOURCE.
9679         The new names are always supported, regardless of _REGEX_SOURCE.
9680         (rm_num_regs): Renamed from num_regs.
9681         (rm_start): Renamed from start.
9682         (rm_end): Renamed from end.
9683
9684         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
9685         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
9686         Prepend __ to parameter names.
9687
9688         Undo yesterday's changes.
9689
9690 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9691
9692         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
9693         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
9694         lib/regex.c.
9695
9696 2005-08-24  Jim Meyering  <jim@meyering.net>
9697
9698         Sync from coreutils.
9699         * m4/fcntl-safer.m4: New file.
9700
9701         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
9702         and object files for this module.
9703
9704 2005-08-24  Jim Meyering  <jim@meyering.net>
9705
9706         Sync from coreutils.
9707         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
9708
9709 2005-08-24  Jim Meyering  <jim@meyering.net>
9710
9711         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
9712         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
9713
9714 2005-08-24  Jim Meyering  <jim@meyering.net>
9715
9716         * modules/fcntl-safer: New module.
9717         * modules/fts (Depends-on): Add fcntl-safer.
9718         * MODULES.html.sh (File descriptor based Input/Output):
9719         Add fcntl-safer.
9720
9721 2005-08-24  Bruno Haible  <bruno@clisp.org>
9722
9723         Support for unit test modules.
9724         * modules/README: Mention tests modules.
9725         * modules/TEMPLATE-TESTS: New file.
9726         * gnulib-tool: New options --extract-tests-module, --with-tests and
9727         --tests-base (unused for the moment).
9728         (testsbase, inctests): New variables.
9729         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
9730         (func_verify_module): Exclude TEMPLATE-TESTS.
9731         (func_verify_nontests_module, func_verify_tests_module): New functions.
9732         (func_get_dependencies): Add implicit dependency for tests modules.
9733         (func_get_tests_module): New function.
9734         (func_modules_transitive_closure): When --with-tests was specified,
9735         include the unit tests as well, unless explicitly avoided.
9736         (func_emit_lib_Makefile_am): Ignore the tests modules here.
9737         (func_emit_tests_Makefile_am): New function.
9738         (func_create_testdir): When --with-tests was specified, emit a
9739         tests/ directory.
9740         * MODULES.html.sh (Future developments): Update.
9741
9742 2005-08-24  Bruno Haible  <bruno@clisp.org>
9743
9744         * modules/tls-tests: New file.
9745         * tests/test-tls.c: New file, from GNU gettext.
9746
9747 2005-08-24  Bruno Haible  <bruno@clisp.org>
9748
9749         * modules/lock-tests: New file.
9750         * tests/test-lock.c: New file, from GNU gettext.
9751
9752 2005-08-24  Bruno Haible  <bruno@clisp.org>
9753
9754         * lib/lock.h: Add multiple inclusion guard.
9755         * lib/tls.h: Add multiple inclusion guard.
9756
9757 2005-08-24  Bruno Haible  <bruno@clisp.org>
9758
9759         * gnulib-tool: Add support for the --aux-dir option to
9760         --create-testdir, --create-megatestdir, --test, --megatest.
9761         (func_create_testdir, func_create_megatestdir): Optionally emit a
9762         AC_CONFIG_AUX_DIR directive.
9763         (create-testdir, create-megatestdir, test, megatest): Provide a
9764         default value for $auxdir.
9765
9766 2005-08-24  Bruno Haible  <bruno@clisp.org>
9767
9768         * gnulib-tool (import): Use compound statement instead of subshell
9769         where possible.
9770
9771 2005-08-24  Bruno Haible  <bruno@clisp.org>
9772
9773         * gnulib-tool (import): Change --aux-dir default to "build-aux".
9774
9775 2005-08-24  Bruno Haible  <bruno@clisp.org>
9776
9777         * gnulib-tool (func_version): Update.
9778
9779 2005-08-24  Bruno Haible  <bruno@clisp.org>
9780
9781         * gnulib-tool (func_import, func_create_testdir,
9782         func_create_megatestdir): Quote all autoconf macro arguments.
9783
9784 2005-08-24  Bruno Haible  <bruno@clisp.org>
9785
9786         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
9787         option --force, because --force causes the aclocal.m4 of each
9788         subdirectory to be newer than the corresponding config.h.in.
9789
9790 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9791
9792         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
9793         All contents moved to gl_REGEX.
9794         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
9795         assume that it does.
9796
9797 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9798
9799         * lib/regex.h (REG_NOSYS)
9800         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
9801         Define, since POSIX requires it as of 2001.
9802         (_REG_ENOSYS)
9803         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
9804         New private symbol, used to keep the enum signed in all cases.
9805         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
9806         Youngman in
9807         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
9808
9809         * lib/regex_internal.c (re_string_skip_chars, register_state):
9810         (calc_state_hash):
9811         Remove forward decls; no longer needed now that we use prototypes.
9812         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
9813         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
9814         (clean_state_log_if_needed): Likewise.
9815
9816 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9817
9818         * config/srclist.txt: Add glibc bugs 1231-1233.
9819
9820 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9821
9822         Fix problems reported by Sam Steingold in
9823         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
9824         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
9825         assumed that reg_errcode_t is a signed type, which is not
9826         necessarily true if _XOPEN_SOURCE is not defined.
9827         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
9828         since some compilers warn about it otherwise.
9829
9830 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9831
9832         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
9833         (init_word_char, create_initial_state, duplicate_node_closure):
9834         (fetch_token, peek_token_bracket, build_range_exp):
9835         (build_collating_symbol): Remove forward decls; no longer needed
9836         now that we use prototypes.
9837
9838         * lib/regcomp.c:
9839         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
9840         (re_compile_fastmap_iter, regcomp, regerror, regfree):
9841         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
9842         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
9843         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
9844         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
9845         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
9846         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
9847         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
9848         (build_range_exp, build_collating_symbol, parse_bracket_exp):
9849         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
9850         (build_charclass, build_charclass_op, fetch_number, create_tree):
9851         (create_token_tree, mark_opt_subexp, duplicate_tree):
9852         Use prototypes rather than old-style definitions.
9853
9854         * lib/regex_internal.c:
9855         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
9856         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
9857         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
9858         (re_string_reconstruct, re_string_peek_byte_case):
9859         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
9860         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
9861         (re_node_set_init_copy, re_node_set_add_intersect):
9862         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9863         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9864         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
9865         (re_acquire_state, re_acquire_state_context, register_state):
9866         (create_ci_newstate, create_cd_newstate, free_state):
9867         Likewise.
9868         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
9869         re_search_2):
9870         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
9871         (re_search_internal, prune_impossible_nodes):
9872         (acquire_init_state_context, check_matching, static):
9873         (check_halt_node_context, check_halt_state_context, proceed_next_node):
9874         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
9875         (update_regs, sift_states_backward, build_sifted_states):
9876         (clean_state_log_if_needed, merge_state_array):
9877         (update_cur_sifted_state, add_epsilon_src_nodes):
9878         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
9879         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
9880         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
9881         (find_recover_state, check_subexp_matching_top, transit_state_mb):
9882         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
9883         (check_arrival, check_arrival_add_next_nodes):
9884         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
9885         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
9886         (check_node_accept_bytes, check_node_accept, extend_buffers):
9887         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
9888         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
9889         (sift_ctx_init):
9890         Likewise.
9891
9892         * lib/regex_internal.h:
9893         (re_string_allocate, re_string_construct, re_string_reconstruct):
9894         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
9895         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
9896         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
9897         (re_string_context_at, re_string_peek_byte_case):
9898         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
9899         is defined, since we now use prototypes always.
9900
9901         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
9902         C89 or better.  All uses removed.
9903
9904 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9905
9906         * config/srclist.txt: Add glibc bugs 1220-1227.
9907
9908 2005-08-20  Jim Meyering  <jim@meyering.net>
9909
9910         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
9911         of unused local, dfa.
9912
9913 2005-08-20  Bruno Haible  <bruno@clisp.org>
9914
9915         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
9916
9917 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9918
9919         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
9920         (re_node_set_insert_last, re_dfa_add_node):
9921         Rename local variables to avoid GCC shadowing warnings.
9922
9923 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9924
9925         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
9926         [defined lint]: Suppress bogus uninitialized-variable warnings.
9927
9928         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
9929         and let the caller return REG_ESPACE if out of space.  This
9930         removes an uninitialied-variable warning with GCC 4.0.1, and also
9931         avoids taking the address of a local variable.  All callers
9932         changed.
9933
9934 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9935
9936         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
9937         $LIBCSRC/posix/regexec.c.
9938         Add glibc bug 1217 for regcomp.c.
9939
9940 2005-08-19  Jim Meyering  <jim@meyering.net>
9941
9942         * lib/regexec.c (proceed_next_node): Redo local variables to
9943         avoid GCC shadowing warnings.
9944
9945 2005-08-18  Bruno Haible  <bruno@clisp.org>
9946
9947         * lib/strstr.c (strstr): Fix return value in multibyte case.
9948         * lib/strcasestr.c (strcasestr): Likewise.
9949
9950 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9951
9952         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
9953
9954 2005-08-17  Jim Meyering  <jim@meyering.net>
9955
9956         Make the %s format (seconds since the epoch) work for a negative
9957         number and when used with a zero-padded field width, e.g. %015s.
9958
9959         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
9960         label so that it precedes the code to set `digits'.  Otherwise,
9961         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
9962         print `00-22'.  Now, it prints `-0022', as it should.
9963
9964 2005-08-17  Bruno Haible  <bruno@clisp.org>
9965
9966         * modules/strstr (Files): Add m4/mbrtowc.m4.
9967         (Depends-on): Add mbuiter.
9968
9969 2005-08-17  Bruno Haible  <bruno@clisp.org>
9970
9971         * modules/strcasestr: New file.
9972         * MODULES.html.sh (String handling, based on ANSI C 89): Add
9973         strcasestr.
9974
9975 2005-08-17  Bruno Haible  <bruno@clisp.org>
9976
9977         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
9978
9979 2005-08-17  Bruno Haible  <bruno@clisp.org>
9980
9981         * modules/mbuiter: New file.
9982         * MODULES.html.sh (Extended multibyte and wide character utilities):
9983         Add mbuiter.
9984
9985 2005-08-17  Bruno Haible  <bruno@clisp.org>
9986
9987         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
9988         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
9989
9990 2005-08-17  Bruno Haible  <bruno@clisp.org>
9991
9992         * m4/strcasestr.m4: New file.
9993
9994 2005-08-17  Bruno Haible  <bruno@clisp.org>
9995
9996         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
9997         * lib/strstr.c: Completely rewritten, with multibyte locale support.
9998
9999 2005-08-17  Bruno Haible  <bruno@clisp.org>
10000
10001         * lib/strcasestr.h: New file.
10002         * lib/strcasestr.c: New file.
10003
10004 2005-08-17  Bruno Haible  <bruno@clisp.org>
10005
10006         * lib/strcasecmp.c: Use mbuiter.h.
10007
10008 2005-08-17  Bruno Haible  <bruno@clisp.org>
10009
10010         * lib/mbuiter.h: New file.
10011
10012 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10013
10014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
10015         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
10016         and gl_GETOPT are both invoked via different paths (as happens
10017         with GNU tar CVS because it uses both argp and getopt), the former
10018         wins.
10019
10020 2005-08-16  Bruno Haible  <bruno@clisp.org>
10021
10022         * modules/tls: New file.
10023         * MODULES.html.sh (Multithreading): Add tls.
10024
10025 2005-08-16  Bruno Haible  <bruno@clisp.org>
10026
10027         * modules/strnlen1: New file.
10028         * MODULES.html.sh (String handling): Add strnlen1.
10029
10030 2005-08-16  Bruno Haible  <bruno@clisp.org>
10031
10032         * modules/strcase (Files): Add m4/mbrtowc.m4.
10033         (Depends-on): Add strnlen1, mbchar.
10034
10035 2005-08-16  Bruno Haible  <bruno@clisp.org>
10036
10037         * modules/mbiter: New file.
10038         * MODULES.html.sh (Extended multibyte and wide character utilities):
10039         Add mbiter.
10040
10041 2005-08-16  Bruno Haible  <bruno@clisp.org>
10042
10043         * modules/mbfile: New file.
10044         * MODULES.html.sh (Extended multibyte and wide character utilities):
10045         Add mbfile.
10046
10047 2005-08-16  Bruno Haible  <bruno@clisp.org>
10048
10049         * modules/mbchar: New file.
10050         * MODULES.html.sh (Extended multibyte and wide character utilities):
10051         New section.
10052
10053 2005-08-16  Bruno Haible  <bruno@clisp.org>
10054
10055         * m4/tls.m4: New file, from GNU gettext.
10056
10057 2005-08-16  Bruno Haible  <bruno@clisp.org>
10058
10059         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
10060         always.
10061         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
10062
10063 2005-08-16  Bruno Haible  <bruno@clisp.org>
10064
10065         * m4/mbiter.m4: New file.
10066
10067 2005-08-16  Bruno Haible  <bruno@clisp.org>
10068
10069         * m4/mbfile.m4: New file.
10070
10071 2005-08-16  Bruno Haible  <bruno@clisp.org>
10072
10073         * m4/mbchar.m4: New file.
10074
10075 2005-08-16  Bruno Haible  <bruno@clisp.org>
10076
10077         * lib/tls.h: New file, from GNU gettext.
10078         * lib/tls.c: New file, from GNU gettext.
10079
10080 2005-08-16  Bruno Haible  <bruno@clisp.org>
10081
10082         * lib/strnlen1.h: New file.
10083         * lib/strnlen1.c: New file.
10084
10085 2005-08-16  Bruno Haible  <bruno@clisp.org>
10086
10087         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
10088         (mbi_init): Update.
10089         (mbi_avail, mbi_advance): Let the iteration end before the terminating
10090         NUL byte, not after it.
10091
10092 2005-08-16  Bruno Haible  <bruno@clisp.org>
10093
10094         * lib/strcase.h (strcasecmp): Add note in comments.
10095         * lib/strncasecmp.c: Use code from strcasecmp.c.
10096         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
10097         (strcasecmp): Work correctly in multibyte locales.
10098
10099 2005-08-16  Bruno Haible  <bruno@clisp.org>
10100
10101         * lib/mbiter.h: New file.
10102
10103 2005-08-16  Bruno Haible  <bruno@clisp.org>
10104
10105         * lib/mbfile.h: New file.
10106
10107 2005-08-16  Bruno Haible  <bruno@clisp.org>
10108
10109         * lib/mbchar.h: New file.
10110         * lib/mbchar.c: New file.
10111
10112 2005-08-16  Bruno Haible  <bruno@clisp.org>
10113
10114         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
10115         the valid ones. Makes the comparison operations transitive:
10116         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
10117         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
10118
10119 2005-08-15  Simon Josefsson  <jas@extundo.com>
10120
10121         * modules/ssize_t (License): Change to 'unlimited'.
10122
10123         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
10124
10125 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10126
10127         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
10128         Add comments for each pending glibc patch.
10129
10130 2005-08-15  Bruno Haible  <bruno@clisp.org>
10131
10132         * lib/regex.h (__restrict_arr): Don't define to __restrict if
10133         __cplusplus is defined.
10134
10135 2005-08-14  Jim Meyering  <jim@meyering.net>
10136
10137         Sync from coreutils.
10138
10139         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
10140         Use the hash-table-based cycle-detection code not just when
10141         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
10142         Reported by James Youngman in
10143         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
10144         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
10145         FTS_TIGHT_CYCLE_CHECK.
10146         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
10147         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
10148         once again.
10149         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
10150         * lib/fts.c (fd_safer): Remove decl.
10151         Include fcntl--.h rather than unistd-safer.h
10152         (fts_safe_changedir): Don't call fd_safer; no longer needed
10153         now that we include fcntl--.h.
10154
10155 2005-08-12  Simon Josefsson  <jas@extundo.com>
10156
10157         * modules/getndelim2: Use ssize_t module.
10158         * modules/getnline: Likewise.
10159         * modules/safe-read: Likewise.
10160         * modules/xreadlink: Likewise.
10161
10162         * modules/ssize_t: New file.
10163
10164 2005-08-12  Simon Josefsson  <jas@extundo.com>
10165
10166         * m4/readline.m4: Look for termcap, curses or ncurses if required.
10167
10168 2005-08-12  Simon Josefsson  <jas@extundo.com>
10169
10170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10171         ssize_t.
10172
10173 2005-08-12  Simon Josefsson  <jas@extundo.com>
10174
10175         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
10176         readline, getdelim and check_version.
10177         (Support for systems lacking ISO C 99: Sizes of integer types):
10178         Add size_max.
10179
10180 2005-08-12  Bruno Haible  <bruno@clisp.org>
10181
10182         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
10183
10184 2005-08-11  Simon Josefsson  <jas@extundo.com>
10185
10186         * modules/readline: New file.
10187
10188         * modules/strnlen (Files): Add strnlen.h.
10189
10190 2005-08-11  Simon Josefsson  <jas@extundo.com>
10191
10192         * m4/readline.m4: New file.
10193
10194 2005-08-11  Simon Josefsson  <jas@extundo.com>
10195
10196         * lib/readline.h, readline.c: New file.
10197
10198 2005-08-11  Simon Josefsson  <jas@extundo.com>
10199
10200         * doc/gnulib.texi (Initial import, Finishing touches): Mention
10201         gl_AVOID.
10202
10203 2005-08-11  Bruno Haible  <bruno@clisp.org>
10204
10205         * lib/strnlen.h (strnlen): Change parameter name to match comment.
10206
10207 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
10208
10209         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
10210
10211 2005-08-10  Simon Josefsson  <jas@extundo.com>
10212
10213         * tests/test-iconvme.c: New file.
10214
10215 2005-08-10  Simon Josefsson  <jas@extundo.com>
10216
10217         * m4/strnlen.m4: New file.
10218
10219         * m4/strndup.m4: Don't check for strnlen declaration, done in
10220         strnlen.m4.
10221
10222 2005-08-10  Simon Josefsson  <jas@extundo.com>
10223
10224         * lib/strndup.c: Use strnlen.h.
10225
10226         * lib/strnlen.h: New file.
10227
10228 2005-08-08  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>  (tiny change)
10229
10230         * README: Typos.
10231
10232 2005-08-02  Simon Josefsson  <jas@extundo.com>
10233
10234         * modules/readline: New file.
10235
10236 2005-08-02  Simon Josefsson  <jas@extundo.com>
10237
10238         * modules/getdelim: New file.
10239
10240         * modules/getline: Rewrite, don't use getndelim2.
10241
10242 2005-08-02  Simon Josefsson  <jas@extundo.com>
10243
10244         * m4/getline.m4: Separate out getdelim stuff into separate module.
10245
10246         * m4/getdelim.m4: New file.
10247
10248 2005-08-02  Simon Josefsson  <jas@extundo.com>
10249
10250         * lib/getline.h, getline.c: Rewrite.
10251
10252         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
10253
10254 2005-07-31  Bruno Haible  <bruno@clisp.org>
10255
10256         * lib/lock.h (gl_lock_initializer): New macro.
10257         (gl_lock_define_initialized): Use it.
10258         (gl_rwlock_initializer): New macro.
10259         (gl_rwlock_define_initialized): Use it.
10260         (gl_recursive_lock_initializer): New macro.
10261         (gl_recursive_lock_define_initialized): Use it.
10262
10263 2005-07-30  Karl Berry  <karl@gnu.org>
10264
10265         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
10266         Report from Ben Pfaff, regarding getopt.
10267
10268 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
10269
10270         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
10271         normal way.
10272         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
10273         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
10274         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
10275         (gl_GETOPT): Use the new macros.  Most of the implementation
10276         is moved to the new macros.  This is for programs like Emacs
10277         that don't want all the functionality of gl_GETOPT.
10278
10279 2005-07-26  Bruno Haible  <bruno@clisp.org>
10280
10281         * m4/lock.m4: Update from GNU gettext.
10282
10283 2005-07-26  Bruno Haible  <bruno@clisp.org>
10284
10285         * lib/lock.h: Update from GNU gettext.
10286         * lib/lock.c: Update from GNU gettext.
10287
10288 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10289
10290         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
10291         obsolescent AC_TRY_RUN.  Include the default includes files, for
10292         'exit'.
10293
10294 2005-07-24  Bruno Haible  <bruno@clisp.org>
10295
10296         * modules/visibility: New file.
10297         * MODULES.html.sh (Misc): Add visibility.
10298
10299 2005-07-24  Bruno Haible  <bruno@clisp.org>
10300
10301         * m4/visibility.m4: New file.
10302
10303 2005-07-24  Bruno Haible  <bruno@clisp.org>
10304
10305         * doc/visibility.texi: New file.
10306
10307 2005-07-22  Bruno Haible  <bruno@clisp.org>
10308
10309         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
10310         $(ALLOCA_H), redundant through BUILT_SOURCES.
10311         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
10312         redundant through BUILT_SOURCES.
10313         * modules/byteswap (Makefile.am): Remove explicit dependency on
10314         $(BYTESWAP_H), redundant through BUILT_SOURCES.
10315         * modules/fnmatch (Makefile.am): Remove explicit dependency on
10316         $(FNMATCH_H), redundant through BUILT_SOURCES.
10317         * modules/getopt (Makefile.am): Remove explicit dependency on
10318         $(GETOPT_H), redundant through BUILT_SOURCES.
10319         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
10320         redundant through BUILT_SOURCES.
10321         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
10322         redundant through BUILT_SOURCES.
10323         * modules/stdbool (Makefile.am): Remove explicit dependency on
10324         $(STDBOOL_H), redundant through BUILT_SOURCES.
10325         * modules/stdint (Makefile.am): Remove explicit dependency on
10326         $(STDINT_H), redundant through BUILT_SOURCES.
10327         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
10328         Remove explicit dependency on $(SYSEXITS_H).
10329         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
10330
10331 2005-07-18  Simon Josefsson  <jas@extundo.com>
10332
10333         * lib/check-version.c (check_version): Accept identical versions too.
10334
10335 2005-07-18  Bruno Haible  <bruno@clisp.org>
10336
10337         * modules/lock: New file.
10338         * MODULES.html.sh (Multithreading): New section.
10339
10340 2005-07-18  Bruno Haible  <bruno@clisp.org>
10341
10342         * m4/lock.m4: New file, from GNU gettext.
10343
10344 2005-07-18  Bruno Haible  <bruno@clisp.org>
10345
10346         * lib/lock.h: New file, from GNU gettext.
10347         * lib/lock.c: New file, from GNU gettext.
10348
10349 2005-07-18  Bruno Haible  <bruno@clisp.org>
10350
10351         * lib/lock.h (gl_once_t): New type.
10352         (gl_once_define, gl_once): New macros.
10353         * lib/lock.c (fresh_once): New variable.
10354         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
10355         functions.
10356
10357 2005-07-16  Simon Josefsson  <jas@extundo.com>
10358
10359         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
10360         workaround, suggested by Bruno.
10361
10362 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10363
10364         * modules/xalloc (Depends-on): Add xalloc-die.
10365         * modules/xvasprintf (Depends-on): Add xalloc-die.
10366
10367 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10368
10369         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
10370         with a minor change.
10371
10372 2005-07-15  Bruno Haible  <bruno@clisp.org>
10373
10374         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
10375         When using lib/poll.c, define poll as rpl_poll.
10376
10377 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
10378
10379         * modules/argp (Depends-on): Remove unlocked-io.
10380
10381 2005-07-14  Derek Price  <derek@ximbiot.com>
10382
10383         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
10384         for glob symlink bug.
10385
10386 2005-07-14  Bruno Haible  <bruno@clisp.org>
10387
10388         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
10389         Instead, test for *_unlocked function declarations directly.
10390
10391 2005-07-11  Simon Josefsson  <jas@extundo.com>
10392
10393         * modules/size_max: New file.
10394
10395         * modules/xsize: Depend on size_max module for size_max.m4.
10396
10397 2005-07-11  Simon Josefsson  <jas@extundo.com>
10398
10399         * lib/size_max.h: New file.
10400
10401 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
10402
10403         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
10404         copyright symbol and the year.
10405         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
10406         (version_etc_va): Use parameterized copyright notice.
10407         Reword to conform to the current GNU coding standards.
10408
10409 2005-07-11  Karl Berry  <karl@gnu.org>
10410
10411         * doc/gnulib.texi (Quoting): new node.
10412         (Initial import): more info, from Patrice.
10413
10414 2005-07-11  Bruno Haible  <bruno@clisp.org>
10415
10416         * gnulib-tool (func_usage): Document option --avoid.
10417         (Command line options): Handle --avoid.
10418         (func_acceptable): New function.
10419         (func_modules_transitive_closure): Use it.
10420
10421 2005-07-11  Bruno Haible  <bruno@clisp.org>
10422
10423         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
10424         Reported by Jim Meyering.
10425
10426 2005-07-10  Bruno Haible  <bruno@clisp.org>
10427
10428         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
10429         Needed when size_t is smaller than 'unsigned int'.
10430         Reported by Paul Eggert.
10431
10432 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10433
10434         * modules/argp (Depends-on): Add unlocked-io
10435
10436 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10437
10438         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
10439         block of defines.
10440
10441 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10442
10443         * config/srclist.txt: Comment out regcomp.c, since we have a porting
10444         fix now.
10445
10446 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
10447         and Paul Eggert  <eggert@cs.ucla.edu>
10448
10449         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
10450         in wint_t, not wchar_t.  Remove now-unnecessary cast.
10451
10452 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10453
10454         * modules/regex (Files): Add lib/regex_internal.c,
10455         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
10456         (Depends-on): Add extensions.
10457         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
10458
10459 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10460
10461         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
10462         pathconf.
10463         * m4/same.m4 (gl_SAME): Likewise.
10464         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
10465
10466         * m4/regex.m4: Adjust to new libc regex implementation.
10467         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
10468         all the .c and .h parts of (the new) regex.
10469         Quote the m4 stuff better.
10470         Check for RE_ICASE bug of old gnulib.
10471         Check for REG_STARTEND of recent libc.
10472         Rename local variables from jm_* to gl_*.
10473         Quote operand of "test -f".
10474         Say "recent enough" version of libc, not "version 2".
10475         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
10476         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
10477         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
10478         Remove check for btowc, isascii.
10479         Require AM_LANGINFO_CODESET.
10480
10481 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10482
10483         * lib/regex.c, regex.h: Sync from libc.
10484         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
10485         * lib/regexec.c:
10486         New files, synced from libc, except that regex_internal.h
10487         currently has a small porting fix.
10488
10489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10490
10491         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
10492         regex_internal.c, regexec.c.
10493         Add regex_internal.h too, but as a comment, since the libc version
10494         is currently broken in gnulib mode.
10495
10496 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10497
10498         Support programs like Emacs that use gnulib but not gettext.
10499         * MODULES.html.sh (Internationalization functions): Add gettext-h.
10500         * modules/gettext-h: New file.
10501         * modules/gettext (Files): Remove lib/gettext.h.
10502         (Depends-on): Add gettext-h.
10503         (Makefile.am): Remove lib_SOURCES.
10504         * modules/argmatch, modules/c-stack, modules/closeout:
10505         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
10506         * modules/execute, modules/file-type, modules/getaddrinfo:
10507         * modules/getopt, modules/human, modules/javacomp:
10508         * modules/javaexec, modules/mkdir-p, modules/obstack:
10509         * modules/openat, modules/pagealign_alloc, modules/pipe:
10510         * modules/quotearg, modules/regex, modules/rpmatch:
10511         * modules/unicodeio, modules/userspec, modules/version-etc:
10512         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
10513         * modules/xsetenv:
10514         Depend on gettext-h, not gettext.
10515
10516 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10517
10518         * gnulib-tool (func_import): Add support for 'public domain' license.
10519         * modules/alloca, modules/atexit, modules/memmove:
10520         Now public domain, not GPL.
10521         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
10522         * modules/realloc, modules/strerror, modules/strtod:
10523         Now LGPL, not GPL.
10524
10525 2005-07-05  Bruno Haible  <bruno@clisp.org>
10526
10527         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
10528         autoconf CVS. Needed for mingw.
10529
10530 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10531
10532         Remove the dependency of the strftime module on the tzset module.
10533         * modules/strftime (Depends-on): Remove dependency on tzset.
10534
10535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10536
10537         Remove the dependency of the strftime module on the tzset module.
10538         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
10539         gl_FUNC_TZSET_CLOBBER.
10540
10541 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10542
10543         Remove the dependency of the strftime module on the tzset module.
10544         * lib/strftime.c (my_strftime)
10545         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
10546         Copy the input structure, to work around some of the bug with
10547         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
10548         Solaris releases, you should also use the tzset module, but we won't
10549         require it as a dependency any more since we don't want LGPLed code
10550         to depend on GPLed code.
10551
10552 2005-07-02  Jim Meyering  <jim@meyering.net>
10553
10554         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
10555         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
10556         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
10557         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
10558
10559 2005-07-02  Jim Meyering  <jim@meyering.net>
10560
10561         * lib/backupfile.c (backup_args): Change a `0' to NULL.
10562
10563 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10564
10565         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
10566         declares only 'struct timespec;' (!).
10567
10568 2005-07-01  Jim Meyering  <jim@meyering.net>
10569
10570         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
10571         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
10572         * lib/save-cwd.c, tempname.c:
10573         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10574         and don't include <sys/file.h>).
10575
10576 2005-06-29  Jim Meyering  <jim@meyering.net>
10577
10578         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
10579         type name.  Use the variable name instead.
10580         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
10581         Likewise.
10582
10583 2005-06-28  Simon Josefsson  <jas@extundo.com>
10584
10585         * modules/check-version (Files): Add check-version.m4.
10586
10587 2005-06-28  Simon Josefsson  <jas@extundo.com>
10588
10589         * m4/check-version.m4: New file, suggested by Jim Meyering
10590         <jim@meyering.net>.
10591
10592 2005-06-28  Simon Josefsson  <jas@extundo.com>
10593
10594         * lib/check-version.h, lib/check-version.c: New files.
10595
10596 2005-06-28  Simon Josefsson  <jas@extundo.com>
10597
10598         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
10599         collision with global variable.  Better indentation.  Don't
10600         increment buffer pointer beyond buffer end.  Based on comments
10601         from Paul Eggert <eggert@cs.ucla.edu>.
10602
10603         * lib/base64.h: Indent.
10604
10605 2005-06-28  Simon Josefsson  <jas@extundo.com>
10606
10607         * doc/gnulib.texi (Library version handling): New section.
10608
10609 2005-06-28  Jim Meyering  <jim@meyering.net>
10610
10611         * check-module (find_included_lib_files): Hard-code another
10612         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
10613         but modules/fts-lgpl (correctly) does not list those files.
10614
10615         * modules/canonicalize (Files): Add lib/pathmax.h.
10616
10617 2005-06-25  Simon Josefsson  <jas@extundo.com>
10618
10619         * modules/check-version: New file.
10620
10621 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10622
10623         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
10624         initializer of struct addrinfo, as an indication that we don't
10625         care how many members the structure has.
10626
10627 2005-06-24  Derek Price  <derek@ximbiot.com>
10628         and Bruno Haible  <bruno@clisp.org>
10629
10630         Remove stat module & update lstat.
10631         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
10632         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10633         * m4/stat.m4: Remove this file.
10634
10635 2005-06-24  Derek Price  <derek@ximbiot.com>
10636         and Bruno Haible  <bruno@clisp.org>
10637
10638         Remove stat module & update lstat.
10639         * lib/stat.c: Remove this file...
10640         (slash_aware_lstat): ...moving this content and its support...
10641         * lib/lstat.c (rpl_lstat): ...into here.
10642         * lib/lstat.h: New file.
10643
10644 2005-06-24  Derek Price  <derek@ximbiot.com>
10645         and Bruno Haible  <bruno@clisp.org>
10646
10647         Remove stat module & update lstat.
10648         * config/srclist.txt (libc sources): Remove stat.
10649
10650 2005-06-24  Derek Price  <derek@ximbiot.com>
10651         and Bruno Haible  <bruno@clisp.org>
10652
10653         Remove stat module & update lstat.
10654         * MODULES.html.sh (stat): Remove.
10655         * MODULES.html: Regenerated.
10656         * modules/lstat (Description): Correct function name.
10657         (Files): Add "lstat.h".
10658         (Depends-on): Remove stat, add xalloc, stat-macros.
10659         * modules/stat: Remove this file.
10660         (Include): Add "lstat.h", remove <sys/stat.h>.
10661
10662 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10663
10664         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
10665         (ranged_convert): Don't save conversion in a temporary struct.
10666         This causes a warning with GCC 4.0.0, and anyway in the typical
10667         case it's not worth the extra 100 bytes or so of code.
10668         (ranged_convert, __mktime_internal): When calling a function via a
10669         pointer P, use P () rather than (*P) (), as we now assume C89 or
10670         better.
10671
10672 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
10673
10674         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
10675         "who -r" failed to give output.  Problem reported by Tim Waugh.
10676
10677         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
10678         (xcalloc): Use it to avoid needless tests.
10679         Problem reported by Jim Meyering.
10680
10681 2005-06-20  Derek Price  <derek@ximbiot.com>
10682
10683         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
10684         unnecessary for Autoconfs > 2.59c.
10685
10686 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
10687
10688         * lib/argp.h (__option_is_short): Check upper limit of
10689         __key. Isprint() requires its argument to have the value
10690         of an unsigned char or EOF.
10691
10692 2005-06-16  Jim Meyering  <jim@meyering.net>
10693
10694         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
10695         when either N or S is zero.
10696
10697 2005-06-16  Derek Price  <derek@ximbiot.com>
10698
10699         * m4/bison.m4: Declare YACC & YFLAGS precious.
10700
10701 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
10702
10703         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
10704         multibyte string or pattern, fall back on unibyte matching.
10705         Problem reported by James Youngman.
10706
10707 2005-06-08  Bruno Haible  <bruno@clisp.org>
10708
10709         * modules/csharpcomp: New file.
10710         * MODULES.html.sh (C#): Add csharpcomp.
10711
10712 2005-06-08  Bruno Haible  <bruno@clisp.org>
10713
10714         * m4/csharpcomp.m4: New file, from GNU gettext.
10715
10716 2005-06-08  Bruno Haible  <bruno@clisp.org>
10717
10718         * lib/csharpcomp.h: New file, from GNU gettext.
10719         * lib/csharpcomp.c: New file, from GNU gettext.
10720         * lib/csharpcomp.sh.in: New file, from GNU gettext.
10721
10722 2005-06-08  Bruno Haible  <bruno@clisp.org>
10723
10724         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
10725         warning on mingw.
10726
10727 2005-06-07  Derek Price  <derek@ximbiot.com>
10728
10729         Sync from CVS.
10730         * lib/glob_.h: Indent nested #ifdef.
10731
10732 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10733
10734         Sync from coreutils.
10735         Use "file name" when talking about file names, instead of "filename"
10736         or "path", as per the GNU coding standards.
10737         * lib/mkdir-p.c: Renamed from makepath.c.
10738         (make_dir_parents): Renamed from make_path.  All callers changed.
10739         * lib/mkdir-p.h: Likewise.  All includers changed.
10740         * lib/filenamecat.c: Renamed from path-concat.c.
10741         (file_name_concat): Renamed from path_concat.  All callers changed.
10742         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
10743         * lib/filenamecat.h: Likewise.  All includers changed.
10744         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
10745         in comments or local variable names.
10746         * lib/basename.c: Likewise.
10747         * lib/canonicalize.c, canonicalize.h: Likewise.
10748         * lib/dirname.c, dirname.h: Likewise.
10749         * lib/euidaccess.c: Likewise.
10750         * lib/exclude.c: Likewise
10751         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
10752         * lib/fsusage.c, fsuage.h: Likewise.
10753         * lib/fts.c, fts_.h: Likewise.
10754         * lib/getcwd.c: Likewise.
10755         * lib/getloadavg.c: Likewise.
10756         * lib/mkstemp.c: Likewise.
10757         * lib/mountlist.c, mountlist.h: Likewise.
10758         * lib/openat.c, openat.h: Likewise.
10759         * lib/readlink-stub.c: Likewise.
10760         * lib/readutmp.c, readutmp.h: Likewise.
10761         * lib/rename.c: Likewise.
10762         * lib/rmdir.c: Likewise.
10763         * lib/same.c: Likewise.
10764         * lib/savedir.c: Likewise.
10765         * lib/stripslash.c: Likewise.
10766         * lib/tempname.c: Likewise.
10767         * lib/xreadlink.c: Likewise.
10768         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
10769         All uses changed.
10770         * lib/exclude.h: Likewise.
10771
10772         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
10773         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10774         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
10775         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10776         * lib/pathmax.h: Include <limits.h> unconditionally, since other
10777         files have been getting away with it for years (MORE/BSD 4.3
10778         is extinct now).
10779         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
10780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10781
10782         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
10783         Define to 256, not 255, as per modern POSIX.
10784
10785 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10786
10787         Sync from coreutils.
10788         Use "file name" when talking about file names, instead of "filename"
10789         or "path", as per the GNU coding standards.
10790         * MODULES.html.sh: mkdir-p renamed from makepath.
10791         filenamecat renamed from path-concat.
10792         * modules/filenamecat: Renamed from modules/path-concat.
10793         (Files): filenamecat.h and filenamecat.c renamed from
10794         path-concat.h and path-concat.c.
10795         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
10796         (Include): filenamecat.h, not path-concat.h.
10797         * modules/mkdir-p: Renamed from modules/makepath.
10798         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
10799         makepath.c.
10800         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
10801         (Include): mkdir-p.h, not makepath.h.
10802
10803 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10804
10805         Sync from coreutils.
10806         * m4/mkdir-p.m4: Renamed from makepath.m4.
10807         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
10808         Rename files from makepath.c to mkdir-p.c, and from
10809         makepath.h to mkdir-p.h.
10810         * m4/filenamecat.m4: Renamed from path-concat.m4.
10811         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
10812         Rename files from path-concat.c to filenamecat.c,
10813         and from path-concat.h to filenamecat.h.
10814         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
10815         "file name" in local variables or comments.
10816         * m4/rename.m4: Likewise.
10817
10818 2005-06-01  Bruno Haible  <bruno@clisp.org>
10819
10820         * modules/csharpexec: New file.
10821         * MODULES.html.sh (C#): New section.
10822
10823 2005-06-01  Bruno Haible  <bruno@clisp.org>
10824
10825         * m4/csharp.m4: New file, from GNU gettext.
10826         * m4/csharpexec.m4: New file, from GNU gettext.
10827
10828 2005-06-01  Bruno Haible  <bruno@clisp.org>
10829
10830         * lib/csharpexec.h: New file, from GNU gettext.
10831         * lib/csharpexec.c: New file, from GNU gettext.
10832         * lib/csharpexec.sh.in: New file, from GNU gettext.
10833
10834 2005-05-31  Derek Price  <derek@ximbiot.com>
10835             Paul Eggert  <eggert@cs.ucla.edu>
10836
10837         Sync from cvs.
10838         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
10839
10840 2005-05-31  Derek Price  <derek@ximbiot.com>
10841             Paul Eggert  <eggert@cs.ucla.edu>
10842
10843         Sync from cvs.
10844         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
10845
10846 2005-05-29  Derek Price  <derek@ximbiot.com>
10847
10848         * config/srclist.txt (glob_.h, glob.c): Add these files.
10849
10850 2005-05-29  Derek Price  <derek@ximbiot.com>
10851
10852         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
10853         * modules/glob: New file.
10854         * modules/getlogin_r: Add link to POSIX spec in description.
10855
10856 2005-05-29  Derek Price  <derek@ximbiot.com>
10857             Paul Eggert  <eggert@cs.ucla.edu>
10858
10859         * m4/glob.m4: New file.
10860
10861 2005-05-29  Derek Price  <derek@ximbiot.com>
10862             Paul Eggert  <eggert@cs.ucla.edu>
10863
10864         * lib/glob_.h, lib/glob.c: New files.
10865
10866 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10867
10868         * modules/fts (Files): Remove m4/inttypes-pri.m4.
10869         * modules/fts-lgpl (Depends-on): Remove gettext.
10870
10871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10872
10873         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
10874         and don't require gt_INTTYPES_PRI.
10875
10876 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10877
10878         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
10879
10880         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
10881         the configuration hassle isn't worth it.
10882         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
10883         (LONGEST_MODIFIER, PRIuMAX): Remove.
10884
10885 2005-05-27  Bruno Haible  <bruno@clisp.org>
10886
10887         * lib/getlogin_r.h: Remove second include of <stddef.h>.
10888
10889 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
10890
10891         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
10892         _POSIX_PTHREAD_SEMANTICS for Solaris.
10893
10894 2005-05-25  Derek Price  <derek@ximbiot.com>
10895
10896         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
10897
10898 2005-05-25  Derek Price  <derek@ximbiot.com>
10899             Paul Eggert  <eggert@cs.ucla.edu>
10900
10901         * modules/getlogin_r, m4/getlogin_r.m4: New files.
10902         * lib/getlogin_r.c, getlogin_r.h: New files.
10903
10904 2005-05-25  Bruno Haible  <bruno@clisp.org>
10905             Derek Price  <derek@ximbiot.com>
10906
10907         * lib/getlogin_r.h: Simplify API documentation.
10908
10909 2005-05-23  Derek Price  <derek@ximbiot.com>
10910
10911         * modules/minmax (Files): Add m4/minmax.m4.
10912         (configure.ac): Add gl_MINMAX.
10913
10914 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10915
10916         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
10917         so that unistd-safer.h (GPL'ed code) need not be included.
10918
10919 2005-05-22  Bruno Haible  <bruno@clisp.org>
10920
10921         * m4/minmax.m4: New file.
10922         Based on a patch by Derek Price <derek@ximbiot.com>.
10923
10924 2005-05-22  Bruno Haible  <bruno@clisp.org>
10925
10926         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
10927         (INT64_MIN): Fix definition.
10928         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
10929
10930         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
10931         NEED_SIGNED_INT_TYPES.
10932
10933         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
10934         HAVE_SYSTEM_INTTYPES.
10935
10936 2005-05-22  Bruno Haible  <bruno@clisp.org>
10937
10938         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
10939         Also include <sys/param.h> if it defines MIN, MAX.
10940         Based on a patch by Derek Price <derek@ximbiot.com>.
10941
10942 2005-05-21  Jim Meyering  <jim@meyering.net>
10943
10944         * modules/fts (Files): Add m4/inttypes-pri.m4.
10945         (Depends-on): Add lstat and remove gettext.  Alphabetize.
10946
10947 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10948
10949         New fts module.
10950         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
10951         (setup_dir, free_dir): New functions.
10952         (enter_dir, leave_dir): Define trivial
10953         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
10954         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
10955         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
10956         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
10957         Move to fts-cycle.c.
10958         (fts_open): Use setup_dir.
10959         (fts_close): Use free_dir.
10960         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
10961         This adds a label and some gotos, but the alternatives were messier.
10962         Check for memory allocation failure when entering a dir.
10963         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
10964         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
10965         (FTS): New member fts_cycle, that is a union that contains the
10966         old active_dir_ht and cycle_state.  All uses changed to mention
10967         fts_cycle.ht and fts_cycle.state.
10968         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
10969         fts.c, with the following changes:
10970         (setup_dir, free_dir): New functions.
10971         (enter_dir): Now returns bool.  Return true if successful, false
10972         if memory exhausted.  All callers changed.
10973         Do not bother partly cleaning up on
10974         memory allocation failure; that is free_dir's job.
10975         However, free ad if hash_insert fails, to avoid memory leak.
10976         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
10977         fts->fts_options to see which union member to use.
10978
10979 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10980
10981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
10982         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
10983
10984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10985
10986         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
10987
10988 2005-05-20  Jim Meyering  <jim@meyering.net>
10989
10990         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
10991         Now a macro, to pacify GCC.
10992
10993 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
10994
10995         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
10996         of -1.
10997
10998 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
10999
11000         * lib/chown.c (rpl_chown): Return -1 on failure.
11001
11002 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11003
11004         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
11005         Don't check for stddef.h.
11006         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
11007         don't use its results.
11008         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
11009         since we include them unconditionally.  Don't require
11010         AM_STDBOOL_H, since stdbool is a prerequisite.
11011         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
11012         since we assume C89 or better.
11013         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
11014         as we don't use their results.
11015         Don't check for fchdir, memmove, memset, strrchr, as we use
11016         them unconditionally.
11017         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
11018         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
11019
11020 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11021
11022         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
11023         Include <stddef.h> unconditionally, since we assume C89 now.
11024         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
11025         * lib/fts.c: Include fts_.h first, to check interface.
11026         Do not include intprops.h; no longer needed.
11027         Include cycle-check.h and hash.h, since fts_.h no longer does.
11028         Remove unnecessary casts of closedir to void.
11029         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
11030         decide whether to decrement nlinks.
11031         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
11032         (FTS): Use struct hash_table * instead of Hash_table, so that
11033         we no longer need to include hash.h here.
11034
11035 2005-05-18  Jim Meyering  <jim@meyering.net>
11036
11037         * modules/dirfd (License): Change to LGPL.  Most of the code
11038         is already in the public domain.
11039
11040 2005-05-18  Jim Meyering  <jim@meyering.net>
11041
11042         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
11043         Reported by Yoann Vandoorselaere.
11044
11045 2005-05-17  Jim Meyering  <jim@meyering.net>
11046
11047         * m4/fts.m4: New file, from coreutils.
11048
11049 2005-05-17  Jim Meyering  <jim@meyering.net>
11050
11051         * lib/fts.c, lib/fts_.h: New files, from coreutils.
11052
11053 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11054
11055         Sync from coreutils.
11056         * m4/unlinkdir.m4: New file.
11057
11058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11059
11060         Sync from coreutils.
11061         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
11062         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
11063         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
11064         White space changes only.
11065         * lib/makepath.c (make_path): Port to hosts where leading "//" is
11066         special.
11067         * lib/yesno.c: Include getline.h, not ctype.h.
11068         (yesno): Don't remove leading white space; POSIX doesn't allow it.
11069         Use getline to remove arbitrary restriction on response length.
11070
11071 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11072
11073         * config/srclist-update: Spell out "Street" in FSF postal
11074         mail address; this is the style the FSF seems to prefer.
11075
11076         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
11077         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
11078         this updates FSF postal mail address.
11079
11080         Sync from coreutils.
11081         * modules/unlinkdir: New file.
11082         * modules/yesno (Depends-on): Add getline.
11083         * MODULES.html.sh (File system functions): Add unlinkdir.
11084
11085 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11086
11087         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
11088         lib/strsep.h:
11089         Change the initial comment to refer to GPL, not LGPL.
11090         gnulib-tool will change it to LGPL as needed.
11091
11092         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
11093         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
11094         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
11095         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
11096         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
11097         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
11098         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
11099         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
11100         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
11101         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
11102         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
11103         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
11104         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
11105         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
11106         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
11107         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
11108         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
11109         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
11110         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
11111         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
11112         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
11113         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
11114         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
11115         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
11116         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
11117         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
11118         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
11119         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
11120         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
11121         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
11122         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
11123         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
11124         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
11125         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
11126         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
11127         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
11128         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
11129         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
11130         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
11131         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
11132         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
11133         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
11134         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
11135         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
11136         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
11137         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
11138         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
11139         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
11140         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
11141         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
11142         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
11143         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
11144         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
11145         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
11146         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
11147         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
11148         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
11149         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
11150         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
11151         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
11152         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
11153         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
11154         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
11155         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
11156         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
11157         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
11158         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
11159         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
11160         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
11161         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
11162         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
11163         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
11164         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
11165         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
11166         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
11167         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
11168         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
11169         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
11170         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
11171         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
11172         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
11173         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
11174         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
11175         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
11176         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
11177         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
11178         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
11179         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
11180         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
11181         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
11182         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
11183         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
11184         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
11185         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
11186         lib/yesno.c, lib/yesno.h:
11187         Update FSF postal mail address.
11188
11189 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11190
11191         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
11192         tests/test-memmem.c, tests/test-stpncpy.c:
11193         Update FSF postal mail address.
11194
11195 2005-05-13  Bruno Haible  <bruno@clisp.org>
11196
11197         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
11198         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
11199         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
11200         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
11201         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
11202         Add support for 64-bit integers in the MSVC compiler.
11203
11204 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11205
11206         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
11207
11208 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
11209
11210         * gnulib-tool (func_import): Sort and uniquify recommended includes.
11211
11212 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11213
11214         * doc/getdate.texi (General date syntax): Don't say that date
11215         date --iso-8601=ns generates acceptable dates; it doesn't yet.
11216         Problem reported by Nic Ferrier.
11217
11218 2005-05-10  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11219
11220         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
11221         specified in ai_socktype. Fix invalid ai_protocol
11222         check. ai_protocol is usually set to 0 or depending on
11223         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
11224         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
11225         ai_socktype / ai_protocol in the returned addrinfo structure.
11226
11227 2005-05-10  Simon Josefsson  <jas@extundo.com>
11228
11229         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
11230         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11231
11232 2005-05-10  Karl Berry  <karl@gnu.org>
11233
11234         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
11235         (from http://www.gnu.org/licenses).
11236         * doc/COPYING.LIB: also rename to COPYING.LESSER.
11237         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
11238         fdl.texi suffices.
11239
11240 2005-05-10  Karl Berry  <karl@gnu.org>
11241
11242         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
11243         (COPYING.DOC): remove.
11244
11245         * config/srclist-update: new FSF address.
11246
11247 2005-05-10  Derek Price  <derek@ximbiot.com>
11248
11249         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
11250         possible.
11251
11252 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11253             Bruno Haible  <bruno@clisp.org>
11254
11255         * modules/inet_ntop: New file.
11256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11257         inet_ntop.
11258
11259 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11260             Bruno Haible  <bruno@clisp.org>
11261
11262         * m4/inet_ntop.m4: New file.
11263
11264 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11265             Bruno Haible  <bruno@clisp.org>
11266
11267         * lib/inet_ntop.h: New file.
11268         * lib/inet_ntop.c: New file, from glibc with modifications.
11269
11270 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11271
11272         * modules/time_r (License): Change to LGPL.
11273         * modules/extensions (License): Change to LGPL.  Actually,
11274         the license is more permissive than that, but currently gnulib-tool
11275         doesn't know how to handle more-permissive licenses.
11276
11277         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
11278         Problem reported by Dave Love.
11279
11280 2005-05-08  Jim Meyering  <jim@meyering.net>
11281
11282         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
11283         blank.
11284
11285 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
11286
11287         * modules/argmatch (Depends-on): Add stdbool.
11288         * modules/backupfile (Depends-on): Likewise.
11289         * modules/chdir-long (Depends-on): Likewise.
11290         * modules/closeout (Depends-on): Likewise.
11291         * modules/cycle-check (Depends-on): Likewise.
11292         * modules/dirname (Depends-on): Likewise.
11293         * modules/fnmatch (Depends-on): Likewise.
11294         * modules/fsusage (Depends-on): Likewise.
11295         * modules/fwriteerror (Depends-on): Likewise.
11296         * modules/getcwd (Depends-on): Likewise.
11297         * modules/getloadavg (Depends-on): Likewise.
11298         * modules/hard-locale (Depends-on): Likewise.
11299         * modules/makepath (Depends-on): Likewise.
11300         * modules/mountlist (Depends-on): Likewise.
11301         * modules/nanosleep (Depends-on): Likewise.
11302         * modules/posixtm (Depends-on): Likewise.
11303         * modules/quotearg (Depends-on): Likewise.
11304         * modules/readtokens (Depends-on): Likewise.
11305         * modules/readtokens0 (Depends-on): Likewise.
11306         * modules/readutmp (Depends-on): Likewise.
11307         * modules/save-cwd (Depends-on): Likewise.
11308         * modules/strftime (Depends-on): Likewise.
11309         * modules/userspec (Depends-on): Likewise.
11310         * modules/utimecmp (Depends-on): Likewise.
11311         * modules/xgetcwd (Depends-on): Likewise.
11312         * modules/xnanosleep (Depends-on): Likewise.
11313         * modules/xstrtod (Depends-on): Likewise.
11314         * modules/yesno (Depends-on): Likewise.
11315
11316 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11317
11318         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
11319         needless checks.
11320
11321 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11322
11323         Merge from coreutils.  Among other things,
11324         add bulletproofing for cases where stdin, stdout, or stderr are closed.
11325         * lib/fd-safer.c: New file.
11326         * lib/fcntl-safer.h, open-safer.c: Remove.
11327         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
11328         * lib/dup-safer.c: Include unistd-safer.h first.
11329         Don't include errno.h.
11330         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
11331         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
11332         * lib/file-type.c: Rely on file-type.h change.
11333         * lib/getloadavg.c: Include unistd-safer.h.
11334         (getloadavg): Use safer open.
11335         * lib/getusershell.c: Include "stdio-safer.h".
11336         (getusershell): Use safer fopen.
11337         * lib/long-options.c (long_options): Use NULL rather than 0.
11338         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
11339         'free'.
11340         * lib/modechange.c: Likewise.
11341         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
11342         (MODE_DONE): New constant.
11343         (struct mode_change): Remove 'next' member.
11344         (make_node_op_equals): New function; like the old one of the
11345         same name, except it allocates an array.
11346         (mode_compile, mode_create_from_ref): Use it.
11347         (mode_compile): Allocate result as an array, not a linked list.
11348         Parse octal string ourself, so that we catch mistakes like "+0".
11349         (mode_adjust): Arg is an array, not a linked list.
11350         * lib/modechange.c: Include stat-macros.h, xalloc.h.
11351         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
11352         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
11353         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
11354         Remove.  This is now stat-macros.h's job.
11355         (talloc): Remove.  All callers replaced by xalloc, so that
11356         our invokers don't have to worry about reporting memory failures.
11357         (make_node_op_equals): Remove.
11358         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
11359         New constants.
11360         (struct mode_change): Moved here from modechange.h.
11361         (mode_append_entry): Remove.
11362         (mode_compile): Remove MASKED_OPS arg, since it encouraged
11363         apps to have incorrect behavior.  Use simpler algorithm for head
11364         and tail.  Don't futz with umask; that's now the job of mode_adjust.
11365         Detect more invalid usages rather than having somewhat-random behavior.
11366         Don't insert an "a=" action, as that leads to incorrect behavior.
11367         (mode_compile, mode_create_from_ref): Return NULL on error instead
11368         of an enum, since now there's only one way to have an error.  All
11369         callers changed.
11370         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
11371         at the correct time.  Simplify calculation of "+u" and its ilk.
11372         Don't mishandle "+X".
11373         (mode_free): Remove "register" and localize decls.
11374         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
11375         (struct mode_change): Move to modechange.c; callers don't
11376         need to see this stuff.
11377         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
11378         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
11379         (mode_change, mode_adjust): Reflect the new signatures noted above.
11380         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
11381         that might redefine system include files.
11382         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
11383         (my_usleep): Use NULL rather than (void *) 0.
11384         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
11385         Use siginterrupt to specify that system calls should be interrupted.
11386         (rpl_nanosleep): Move initialization of suspended closer to call of
11387         my_usleep.
11388         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
11389         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
11390         (desirable_utmp_entry): New function.
11391         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
11392         using x2nrealloc, to simplify logic.
11393         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
11394         size calculation.  Do not assume utmp file is a regular file.
11395         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
11396         (READ_UTMP_CHECK_PIDS): New constant.
11397         * lib/save-cwd.c: Include unistd-safer.h.
11398         (save_cwd): Use fd_safer.
11399         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
11400         [!_LIBC] Include "stat-macros.h" instead.
11401         * lib/unistd-safer.h (fd_safer): New decl.
11402
11403 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11404
11405         * modules/getloadavg (Depends-on): Add unistd-safer.
11406         * modules/getusershell (Depends-on): Add stdio-safer.
11407         * modules/lstat (Depends-on): Remove xalloc.
11408         * modules/mkstemp (Depends-on): Add stat-macros.
11409         * modules/modechange (Depends-on): Remove xstrtol.
11410         Add stat-macros, xalloc.
11411         * modules/save-cwd (Depends-on): Add unistd-safer.
11412         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
11413         * modules/unistd-safer (Files): Add lib/fd-safer.c
11414         (Makefile.am): Remove lib_SOURCES.
11415
11416         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
11417         Remove fcntl-safer; unistd-safer supersedes it.
11418
11419 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11420
11421         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
11422         AC_HEADER_STAT.
11423         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
11424         (gl_PREREQ_CHOWN): Remove.
11425         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
11426         it.  Don't require AC_HEADER_STAT.
11427         (gl_PREREQ_LSTAT): Remove.
11428         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
11429         Don't require AC_HEADER_STAT.
11430         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
11431         (gl_PREREQ_RMDIR): Remove.
11432         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
11433         mention stat-macros.h or AC_HEADER_STAT, since we'll make
11434         the stat-macros module a prerequisite.
11435         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
11436         * m4/filemode.m4 (gl_FILEMODE): Likewise.
11437         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
11438         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
11439         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
11440         variable names.
11441         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
11442         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
11443         variable prefixes.
11444         * m4/fcntl-safer.m4: Remove.
11445         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
11446         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
11447         Invoke gl_PREREQ_FD_SAFER.
11448         (gl_PREREQ_FD_SAFER): New macro.
11449         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
11450         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
11451         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
11452         Remove duplicate call to AC_LIBOBJ(readutmp).
11453         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
11454
11455         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
11456         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
11457
11458 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11459
11460         * MODULES.html.sh (Misc): Add byteswap.
11461
11462 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11463
11464         * modules/getcwd (Depends-on): Add extensions.
11465         * modules/openat (Depends-on): Likewise.
11466
11467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11468
11469         * modules/byteswap: New file.
11470
11471 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11472
11473         * m4/byteswap.m4: New file.
11474
11475 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
11476
11477         * lib/byteswap_.h: New file.
11478
11479 2005-04-25  Karl Berry  <karl@gnu.org>
11480
11481         * m4/gettext.m4: Update from GNU gettext 0.14.4.
11482
11483 2005-04-25  Albert Chin  <china@thewrittenword.com>
11484
11485         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
11486         Toolkit C bug.
11487
11488 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
11489
11490         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
11491         (func_ln_if_changed) Remove forcibly for no error message
11492         in case file does not exist.
11493
11494 2005-04-19  Simon Josefsson  <jas@extundo.com>
11495
11496         * gnulib-tool (Options): Make --symlink mean --symbolic.
11497
11498 2005-04-18  Oskar Liljeblad <oskar@osk.mine.nu>
11499
11500         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
11501
11502 2005-04-16  Simon Josefsson  <jas@extundo.com>
11503
11504         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
11505
11506 2005-04-15  Simon Josefsson  <jas@extundo.com>
11507
11508         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
11509
11510 2005-04-15  Simon Josefsson  <jas@extundo.com>
11511
11512         * gnulib-tool: Rename --symlink to --symbolic.
11513
11514 2005-04-15  Oskar Liljeblad <oskar@osk.mine.nu>
11515
11516         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
11517         symbolic links to files instead of copying/moving.  Add --aux-dir,
11518         specifying directory relative --dir where auxiliary build tools
11519         are placed.
11520
11521 2005-04-14  Bruno Haible  <bruno@clisp.org>
11522
11523         * modules/allocsa (License): Change to LGPL.
11524         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11525
11526 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11527
11528         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
11529         that "UTC +1 second" continues to work.  Problem reported
11530         by Dmitry V. Levin.
11531         (relunit_snumber): New rule.
11532         (relunit): Use it.
11533
11534 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11535
11536         * lib/getdate.y (universal_time_zone_table): New constant.
11537         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
11538         universal_time_zone_table.
11539         (lookup_zone): Prefer universal_time_zone_table to
11540         local_time_zone_table, so that "GMT" time stamps are allowed in
11541         London during the summer.  Problem reported by Ian Abbott.
11542
11543 2005-04-12  Jim Meyering  <jim@meyering.net>
11544
11545         * lib/human.c (humblock): Set *options even when returning due to
11546         xstrtoumax conversion failure.  Thanks to a used-uninitialized
11547         warning from gcc-4.
11548
11549 2005-04-09  Jim Meyering  <jim@meyering.net>
11550
11551         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
11552         -Wuninitialized: initialize tm0.tm_year.
11553
11554 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11555
11556         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
11557         count, since there's no maximum.  All uses changed.
11558         Add member dsts_seen.
11559         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
11560         not being INT_MAX.
11561         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
11562         Use pc_rels_seen to decide whther a date is absolute.
11563
11564         * lib/getdate.y (number): Don't overwrite year.
11565         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
11566         check.
11567
11568 2005-04-02  Simon Josefsson  <jas@extundo.com>
11569
11570         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
11571         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
11572
11573 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
11574
11575         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
11576         where no absolute path name can be longer than PATH_MAX.
11577
11578 2005-03-27  Jim Meyering  <jim@meyering.net>
11579
11580         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
11581
11582 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
11583
11584         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
11585         "one's complement" -> "ones' complement" in comment, as per Knuth.
11586         "value of type" -> "type or expression" in comment.
11587         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
11588
11589 2005-03-26  Jim Meyering  <jim@meyering.net>
11590
11591         Comment nits.
11592         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
11593         Correct typos: s/or/of/.
11594
11595 2005-03-26  Jim Meyering  <jim@meyering.net>
11596
11597         * modules/check-include-files: Move to ../ and rename to...
11598         * check-module: ...this.
11599
11600 2005-03-25  Jim Meyering  <jim@meyering.net>
11601
11602         * modules/xvasprintf (Files): Add xalloc.h.
11603
11604 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11605
11606         * modules/gettext (Files): config/config.rpath ->
11607         build-aux/config.rpath
11608         * modules/iconv (Files): Likewise.
11609         Problem reported by Oskar Liljeblad.
11610
11611 2005-03-23  Jim Meyering  <jim@meyering.net>
11612
11613         * modules/check-include-files: New script to check for
11614         missing dependencies, multiple includes, etc.
11615
11616         * modules/c-strtold (Depends-on): Add xalloc.
11617         * modules/c-strtod (Depends-on): Add xalloc.
11618         * modules/hash (Depends-on): Add xalloc.
11619         (Files): Remove lib/xalloc.h.
11620
11621         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
11622         * modules/userspec (Files): Add lib/inttostr.h.
11623
11624 2005-03-23  Jim Meyering  <jim@meyering.net>
11625
11626         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
11627
11628 2005-03-22  Jim Meyering  <jim@meyering.net>
11629
11630         * modules/stat-macros: New module.
11631         * modules/canonicalize, modules/euidaccess, modules/file-type,
11632         * modules/filemode, modules/lchown, modules/makepath,
11633         * modules/rmdir, modules/stat: Depend on new stat-macros module
11634         rather than listing lib/stat-macros.h manually.
11635         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
11636
11637 2005-03-22  Jim Meyering  <jim@meyering.net>
11638
11639         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
11640
11641 2005-03-22  Bruno Haible  <bruno@clisp.org>
11642
11643         * config/srclist.txt: Replace target directory 'config' with
11644         'build-aux'.
11645         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
11646         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
11647         ../build-aux/.
11648
11649 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
11650
11651         * modules/chdir-long (Depends-on): Add mempcpy.
11652
11653         * modules/acl, modules/backupfile, modules/c-strtod,
11654         modules/c-strtold, modules/canon-host, modules/canonicalize,
11655         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
11656         modules/exclude, modules/exitfail, modules/file-type,
11657         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
11658         modules/getdate, modules/getline, modules/getpagesize,
11659         modules/getpass, modules/getugroups, modules/group-member,
11660         modules/hard-locale, modules/hash, modules/human, modules/idcache,
11661         modules/inttostr, modules/long-options, modules/makepath,
11662         modules/md5, modules/memcasecmp, modules/memcoll,
11663         modules/modechange, modules/mountlist, modules/path-concat,
11664         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
11665         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
11666         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
11667         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
11668         modules/strftime, modules/strndup, modules/strverscmp,
11669         modules/timespec, modules/unlocked-io, modules/userspec,
11670         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
11671         modules/yesno:
11672         Remove lib_SOURCES line from Makefile.am section, as this is now
11673         done automatically by the corresponding Autoconf macro.
11674
11675 2005-03-21  Jim Meyering  <jim@meyering.net>
11676
11677         Changes imported from coreutils.
11678
11679         * lib/cycle-check.c: Don't include xalloc.h.
11680
11681         * lib/path-concat.c: Don't include assert.h.
11682         (path_concat): Remove assertion that would have triggered
11683         for ABASE starting with more than one slash.
11684         Reported by Andreas Schwab.
11685
11686         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
11687         properly when ABASE is an absolute file name.
11688         Correct the description of this function.
11689         Include <assert.h>.
11690         Add an assertion and a test driver.
11691         This fixes a bug introduced on 2004-07-02.
11692         Andreas Schwab reported the resulting failure of cp --parents:
11693         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
11694
11695 2005-03-21  Jim Meyering  <jim@meyering.net>
11696
11697         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
11698         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
11699
11700 2005-03-21  Jim Meyering  <jim@meyering.net>
11701         and  Paul Eggert  <eggert@cs.ucla.edu>
11702
11703         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
11704         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
11705         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
11706         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
11707         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
11708         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
11709         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
11710         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
11711         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
11712         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
11713         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
11714         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
11715         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
11716         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
11717         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
11718         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
11719         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
11720         for these modules.
11721
11722 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
11723
11724         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
11725         (which shouldn't happen), generate nothing instead of returning 0
11726         immediately, so that nstrftime (NULL, ...) doesn't return 0.
11727
11728 2005-03-16  Bruno Haible  <bruno@clisp.org>
11729
11730         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
11731         HAVE_LONGLONG_64BIT.
11732
11733 2005-03-16  Bruno Haible  <bruno@clisp.org>
11734
11735         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
11736         HAVE_LONGLONG_64BIT.
11737
11738 2005-03-16  Bruno Haible  <bruno@clisp.org>
11739
11740         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
11741         HAVE_LONGLONG_64BIT.
11742
11743 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
11744
11745         * lib/strftime.c (my_strftime): Prepend space to format so that we can
11746         reliably distinguish strftime failure from empty output on POSIX
11747         hosts.
11748
11749 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
11750
11751         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
11752         (iconv_string): Don't guess a size-zero buffer, as that might cause
11753         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
11754         result would be 'too large', where 'too large' is (heuristically)
11755         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
11756         overflow concerns.  This will prevent some unwanted malloc failures
11757         when the inputs are very large.
11758
11759 2005-03-15  Karl Berry  <karl@gnu.org>
11760
11761         * config/srclist.txt (config.rpath): from gettext.
11762         * config/config.rpath: update.
11763
11764 2005-03-15  Bruno Haible  <bruno@clisp.org>
11765
11766         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
11767         to 'negate'.
11768
11769         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
11770         variable.
11771
11772         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
11773         results.
11774
11775 2005-03-14  Simon Josefsson  <jas@extundo.com>
11776
11777         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
11778         <fx@gnu.org>.
11779
11780 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
11781
11782         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
11783         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
11784         intprops.h.
11785         * lib/strtol.c: Likewise.
11786
11787 2005-03-14  Jim Meyering  <jim@meyering.net>
11788
11789         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
11790         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
11791         to be nonzero so that we (and caller) can detect the difference
11792         between a valid zero-length expansion and an error return, even
11793         when the underlying strftime fails before writing anything into
11794         that location.
11795
11796 2005-03-14  Bruno Haible  <bruno@clisp.org>
11797
11798         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
11799         Update from GNU gettext 0.14.3.
11800
11801 2005-03-10  Jim Meyering  <jim@meyering.net>
11802
11803         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
11804
11805 2005-03-10  Jim Meyering  <jim@meyering.net>
11806
11807         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
11808         so that this module works on systems without fchdir.
11809
11810 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11811
11812         Factor int-properties macros into a single file, except for
11813         glibc-related files.
11814         * lib/intprops.h: New file.
11815         * lib/getloadavg.c: Include it instead of limits.h.
11816         (INT_STRLEN_BOUND): Remove.
11817         * lib/human.c: Include intprops.h.
11818         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
11819         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
11820         302/1000.
11821         * lib/inttostr.h: Include intprops.h instead of limits.h.
11822         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
11823         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
11824         for consistency with intprops.h.
11825         (time_t_is_integer, twos_complement_arithmetic): Use them.
11826         * lib/sig2str.h: Include <signal.h>, intprops.h.
11827         (INT_STRLEN_BOUND): Remove.
11828         * lib/strftime.c (TYPE_SIGNED): Remove.
11829         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
11830         * lib/strtol.c: Adjust comments to match intprops.h.
11831         * lib/userspec.c: Include intprops.h.
11832         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
11833         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
11834         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
11835         instead of rolling our own expressions.
11836         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
11837
11838         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
11839         instead of int.
11840         (my_strftime): Do not mishandle years close to INT_MAX, by doing
11841         the right thing even if adding 1900 would overflow.  Similarly
11842         for tm_mon + 1 and tm_yday + 1.
11843         Make %Y always equivalent to %C%y, and similarly for %G and %g.
11844         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
11845         (DO_SIGNED_NUMBER): New macro.
11846         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
11847
11848 2005-03-07  Bruno Haible  <bruno@clisp.org>
11849
11850         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
11851
11852 2005-03-07  Bruno Haible  <bruno@clisp.org>
11853
11854         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
11855
11856 2005-03-04  Derek R. Price  <derek@ximbiot.com>
11857
11858         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
11859         (func_import): Only replace files via --import when they have actually
11860         changed.
11861
11862 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11863
11864         * m4/mmap-anon.m4: New file.
11865         * m4/pagealign_alloc.m4: New file.
11866
11867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11868             Bruno Haible  <bruno@clisp.org>
11869
11870         * modules/pagealign_alloc: New file.
11871         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
11872
11873 2005-03-03  Derek R. Price  <derek@ximbiot.com>
11874             Bruno Haible  <bruno@clisp.org>
11875
11876         * lib/pagealign_alloc.h: New file.
11877         * lib/pagealign_alloc.c: New file.
11878
11879 2005-03-03  Bruno Haible  <bruno@clisp.org>
11880
11881         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
11882         Use an all-permissive copyright notice, recommended by RMS.
11883
11884 2005-03-02  Bruno Haible  <bruno@clisp.org>
11885
11886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
11887         of AIX, the replacement has to be done only after <string.h> is
11888         included, therefore not in config.h. stpncpy.h does the replacement,
11889         and stpncpy.c uses it.
11890
11891 2005-03-02  Bruno Haible  <bruno@clisp.org>
11892
11893         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
11894         stpncpy.c uses it.
11895
11896 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11897
11898         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
11899         The workaround isn't strictly needed for POSIX conformance, and
11900         it's too much of a pain to configure and maintain.  We'll ask
11901         people to fix their kernels instead.
11902         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
11903         (NANOSLEEP_BUG_WORKAROUND): Remove.
11904         (xnanosleep): Remove the workaround.
11905
11906 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11907
11908         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
11909         Reported by Derek Price.
11910         (Include): Add "timespec.h".
11911
11912         * modules/xnanosleep (Depends-on): Remove gethrxtime.
11913
11914 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11915
11916         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
11917         to detect nanosleep bug.
11918
11919 2005-03-01  Bruno Haible  <bruno@clisp.org>
11920
11921         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
11922
11923 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11924
11925         * modules/gethrxtime: New file.
11926         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
11927         (Depends-on): Add gethrxtime.
11928         (configure.ac): Add gl_XNANOSLEEP.
11929         (Makefile.am): Remove lib_SOURCES line.
11930
11931 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11932
11933         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
11934         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
11935
11936 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11937
11938         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
11939         * lib/timespec.h (gettime): Return void, since it always
11940         succeeds now.  All uses changed.
11941         * lib/gettime.c (gettime) Likewise.
11942         [HAVE_NANOTIME]: Prefer nanotime.
11943         Assume gettimeofday succeeds, as POSIX requires.
11944         Assime time () succeeds, since other code already does.
11945         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
11946         (timespec_subtract): Remove.
11947         (NANOSLEEP_BUG_WORKAROUND): New constant.
11948         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
11949         things considerably.  Use it only on GNU/Linux hosts, since the
11950         workaround shouldn't be needed elsewhere.
11951
11952 2005-02-24  Bruno Haible  <bruno@clisp.org>
11953
11954         * modules/gettext (Files): Add m4/glibc2.m4.
11955
11956 2005-02-24  Bruno Haible  <bruno@clisp.org>
11957
11958         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
11959         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
11960         * m4/progtest.m4:
11961         Update from GNU gettext 0.14.2.
11962         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
11963
11964 2005-02-24  Bruno Haible  <bruno@clisp.org>
11965
11966         * lib/localcharset.c: Update from GNU gettext 0.14.2.
11967         * lib/config.charset: Update from GNU gettext 0.14.2.
11968
11969 2005-02-24  Bruno Haible  <bruno@clisp.org>
11970
11971         * lib/gettext.h: Update from GNU gettext 0.14.2.
11972
11973 2005-02-23  Simon Josefsson  <jas@extundo.com>
11974
11975         * m4/iconvme.m4: New file.
11976
11977 2005-02-23  Jim Meyering  <jim@meyering.net>
11978
11979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
11980         change.
11981         Thanks to Bruno Haible for catching it.
11982
11983 2005-02-22  Simon Josefsson  <jas@extundo.com>
11984
11985         * modules/iconvme: New file.
11986
11987         * MODULES.html.sh: Add iconvme.
11988
11989 2005-02-22  Simon Josefsson  <jas@extundo.com>
11990
11991         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
11992
11993 2005-02-22  Simon Josefsson  <jas@extundo.com>
11994
11995         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
11996
11997 2005-02-22  Jim Meyering  <jim@meyering.net>
11998
11999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
12000         s/ifndef/ifdef/.
12001
12002 2005-02-20  Neil Conway  <neilc@samurai.com>
12003
12004         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
12005         returned by OSX/Darwin if the specified buffer is not large
12006         enough for the hostname.
12007
12008 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12009
12010         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
12011         pass it to _help, otherwise the latter coredumps trying to
12012         dereference state.root_argp.
12013
12014 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12015
12016         * modules/chdir-long (Depends-on): Add memrchr.
12017         * modules/memrchr (Files): Add lib/memrchr.h.
12018         (Include): "memrchr.h".
12019
12020 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12021
12022         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
12023
12024 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12025
12026         * lib/memrchr.h: New file.
12027         * lib/chdir-long.c: Include it.
12028         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
12029         Don't bother including stddef.h.
12030
12031 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
12032
12033         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
12034         inclusion.
12035         Include <sys/types.h>, for dev_t.
12036         (ME_DUMMY, ME_REMOTE): Move from here....
12037         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
12038         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
12039         Dmitry V. Levin.
12040         Include mountlist.h first, to test the interface.
12041
12042 2005-01-29  Bruno Haible  <bruno@clisp.org>
12043
12044         * lib/progname.c (program_name): Initialize.
12045         Needed when linking statically on MacOS X.
12046
12047 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12048
12049         Sync from coreutils.
12050         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
12051         (Depends-on): Add c-strtod.
12052         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
12053
12054 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12055
12056         Sync from coreutils.
12057         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
12058
12059         Remove files that are specific to coreutils.
12060         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
12061
12062 2005-01-28  Bruno Haible  <bruno@clisp.org>
12063
12064         * modules/javacomp: New file.
12065         * MODULES.html.sh (Java): Add javacomp.
12066
12067 2005-01-28  Bruno Haible  <bruno@clisp.org>
12068
12069         * m4/javacomp.m4: New file, from GNU gettext.
12070
12071 2005-01-28  Bruno Haible  <bruno@clisp.org>
12072
12073         * lib/javacomp.sh.in: New file, from GNU gettext.
12074         * lib/javacomp.h: New file, from GNU gettext.
12075         * lib/javacomp.c: New file, from GNU gettext.
12076
12077 2005-01-26  Simon Josefsson  <jas@extundo.com>
12078
12079         * lib/gai_strerror.c: Use GPL in header.
12080
12081 2005-01-26  Bruno Haible  <bruno@clisp.org>
12082
12083         * modules/javaexec: New file.
12084         * MODULES.html.sh (Java): Add javaexec.
12085
12086 2005-01-26  Bruno Haible  <bruno@clisp.org>
12087
12088         * m4/javaexec.m4: New file, from GNU gettext.
12089
12090 2005-01-26  Bruno Haible  <bruno@clisp.org>
12091
12092         * lib/javaexec.sh.in: New file, from GNU gettext.
12093         * lib/javaexec.h: New file, from GNU gettext.
12094         * lib/javaexec.c: New file, from GNU gettext.
12095
12096 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12097
12098         * modules/lchown (Depends-on): Remove lchown.h
12099
12100 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12101
12102         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
12103         must be defined if the header file was not found, in order
12104         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
12105
12106 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12107
12108         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
12109         initializers for struct pentry_state.
12110         (__argp_error): Check return value of __asprintf
12111         (__argp_failure): Translate error message
12112
12113         * lib/argp-parse.c: Removed braces around the expansion of N_()
12114
12115 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12116
12117         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
12118         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
12119         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
12120         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
12121         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
12122         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
12123         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
12124         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
12125         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
12126         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
12127         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
12128         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
12129         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
12130         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
12131         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
12132         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
12133         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
12134         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
12135         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
12136         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
12137         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
12138         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
12139         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
12140         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
12141         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
12142         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
12143         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
12144         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
12145         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
12146         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
12147         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
12148         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
12149         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
12150         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
12151         xstrtol.m4, xstrtoumax.m4, yesno.m4:
12152         Use an all-permissive copyright notice, recommended by RMS.
12153
12154 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12155
12156         * modules/chdir-long (Depends-on): Remove mempcpy.
12157
12158 2005-01-21  Jim Meyering  <jim@meyering.net>
12159
12160         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
12161         same value as for Solaris 9.
12162
12163         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
12164         component length.  This included changing the parameter to be
12165         of type `char *' rather than `char const *'.
12166         * lib/chdir-long.h (chdir_long): Update prototype.
12167
12168         * lib/openat.c (fdopendir, fstatat): New functions.
12169         * lib/openat.h: Include headers required for use of DIR and struct
12170         stat.
12171         [AT_SYMLINK_NOFOLLOW]: Define.
12172         (fdopendir, fstatat): Add prototypes.
12173
12174 2005-01-21  Bruno Haible  <bruno@clisp.org>
12175
12176         * modules/classpath: New file.
12177         * MODULES.html.sh (Java): Add classpath.
12178
12179 2005-01-21  Bruno Haible  <bruno@clisp.org>
12180
12181         * lib/classpath.h: New file, from GNU gettext.
12182         * lib/classpath.c: New file, from GNU gettext.
12183
12184 2005-01-20  Simon Josefsson  <jas@extundo.com>
12185
12186         * modules/version-etc-fsf: New file.
12187
12188 2005-01-20  Simon Josefsson  <jas@extundo.com>
12189
12190         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
12191         * lib/version-etc.c: Remove version_etc_copyright.
12192         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
12193         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
12194
12195 2005-01-20  Simon Josefsson  <jas@extundo.com>
12196
12197         * lib/base64.h (isbase64): Add.
12198
12199         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
12200         using a unsigned prototype, don't inline.
12201         (base64_decode): Use it.
12202
12203 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12204
12205         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
12206         it.
12207
12208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12209
12210         * lib/save-cwd.c (save_cwd): Remove code to support the case
12211         where fchdir is missing or flaky.
12212
12213 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12214
12215         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
12216
12217 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12218
12219         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
12220         AC_LIBSOURCES now does this.
12221         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
12222         with new ullong_max module.
12223
12224 2005-01-19  Bruno Haible  <bruno@clisp.org>
12225
12226         * modules/sh-quote: New file.
12227         * MODULES.html.sh (Executing programs): Add sh-quote.
12228
12229 2005-01-19  Bruno Haible  <bruno@clisp.org>
12230
12231         * lib/sh-quote.h: New file, from GNU gettext.
12232         * lib/sh-quote.c: New file, from GNU gettext.
12233
12234 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12235
12236         Merge from coreutils.
12237         * m4/ullong_max.m4: New file.
12238         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
12239         (gl_MACROS): Assume localeconv exists.
12240
12241 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12242
12243         Merge changes from coreutils, as described below in several
12244         changelogs dated today.
12245
12246         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
12247         (O_DIRECTORY): Remove; not needed here, since "." must be
12248         a directory.  All uses removed.
12249         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
12250         universal on Suns, and we also need to test for IRIX.
12251         Revamp code to use 'if' rather than '#if'.
12252         Avoid unnecessary comparison of cwd->desc to 0.
12253
12254         * lib/utimens.c (futimens): Robustify the previous patch, by checking
12255         for known valid error numbers rather than observed invalid ones.
12256
12257 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12258
12259         * modules/ullong_max: New file.
12260
12261         * modules/chdir-long, modules/openat: New files.
12262         * modules/save-cwd (Depends-on): Depend on chdir-long.
12263         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
12264
12265 2005-01-18  Jim Meyering  <jim@meyering.net>
12266
12267         Merge from coreutils.
12268         * m4/chdir-long.m4, m4/openat.m4: New files.
12269         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
12270         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
12271         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
12272         is sane and DOES follow symlinks.  Besides, testing 20 different
12273         systems found no broken chown implementations.
12274         Prompted by a change in rsync's copy of this macro.
12275         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
12276
12277         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
12278
12279         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
12280         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
12281         NULL-means-set-to-current-time semantics.
12282         Remove temporary file immediately, rather than waiting
12283         for configure's at-exit trap code to do it.
12284
12285 2005-01-18  Jim Meyering  <jim@meyering.net>
12286
12287         * lib/version-etc.c (version_etc_copyright): Update copyright date.
12288
12289         * lib/utimens.c (futimens): Account for the fact that futimes
12290         can also fail with errno == ENOSYS or errno == ENOENT.
12291         Patch from Dmitry V. Levin.
12292
12293         Change the name of the robust chdir function from chdir to chdir_long.
12294         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
12295         (restore_cwd): Use chdir_long, not chdir.
12296         * lib/chdir-long.c: Renamed from chdir.c.
12297         * lib/chdir-long.h: Renamed from chdir.h.
12298         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
12299         Hurd.
12300
12301 2005-01-18  Bruno Haible  <bruno@clisp.org>
12302
12303         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
12304         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
12305         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
12306         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
12307         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
12308         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
12309         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
12310         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
12311         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
12312         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
12313         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
12314         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
12315         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
12316         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
12317         Use an all-permissive copyright notice, recommended by RMS.
12318
12319 2005-01-18  Bob Proulx  <bob@proulx.com>
12320
12321         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
12322         simplify offsetof() macro construct to avoid compile failure with
12323         native HP-UX 11.0 ANSI C compiler.
12324
12325 2005-01-17  Bruno Haible  <bruno@clisp.org>
12326
12327         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
12328         redundant because stpncpy.m4 takes care of it.
12329
12330 2005-01-17  Bruno Haible  <bruno@clisp.org>
12331
12332         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
12333
12334 2005-01-17  Bruno Haible  <bruno@clisp.org>
12335
12336         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
12337         used.
12338
12339 2005-01-17  Bruno Haible  <bruno@clisp.org>
12340
12341         * lib/fwriteerror.h (fwriteerror): Change specification to include
12342         fclose.
12343         * lib/fwriteerror.c: Include <stdbool.h>.
12344         (fwriteerror): At the end, close the file stream. Record whether
12345         stdout was already closed.
12346
12347 2005-01-17  Bruno Haible  <bruno@clisp.org>
12348
12349         * lib/execute.c (environ): Declare if needed.
12350         * lib/pipe.c (environ): Likewise.
12351         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
12352
12353 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12354
12355         * modules/argp: Depend on vsnprintf
12356
12357 2005-01-10  Jim Meyering  <jim@meyering.net>
12358
12359         * modules/closeout (Depends-on): Add atexit.
12360
12361 2005-01-06  Bruno Haible  <bruno@clisp.org>
12362
12363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
12364
12365 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12366
12367         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
12368         definitions to be after all include files, to avoid collisions.
12369         Problem reported by Bob Proulx.
12370
12371 2005-01-04  Jim Meyering  <jim@meyering.net>
12372
12373         Changes imported from coreutils.
12374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
12375         as the mkstemp template, use a temporary directory and an
12376         8.3-friendly template to avoid trouble on systems like DJGPP.
12377         Reported by Juan M. Guerrero via Stepan Kasal.
12378         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
12379         close. Remove the temporary directory right away, rather than waiting
12380         for configure's at-exit trap code to do it.
12381         Suggestion from Stepan Kasal.
12382
12383 2005-01-01  Simon Josefsson  <jas@extundo.com>
12384
12385         * gnulib-tool: Print #include directives when --import'ing.
12386
12387 2004-12-28  Simon Josefsson  <jas@extundo.com>
12388
12389         * tests/test-base64.c: Include required header files.  Remove
12390         unused variables.
12391
12392 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12393
12394         * modules/error (Depends-on): Remove gettext.
12395
12396 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12397
12398         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
12399         not needed.  This removes a dependency on the gettext module.
12400         [defined _LIBC]: Do not include <libintl.h>; not needed.
12401
12402 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
12403
12404         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
12405         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
12406
12407 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
12408
12409         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
12410         HAVE_DECL_STRTOLD.
12411
12412 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12413
12414         * modules/getdate (Depends-on): Remove alloca-opt.
12415
12416 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
12419
12420 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12421
12422         * lib/argp-parse.c: Include <stddef.h>.
12423         (alignof, alignto): New macros.
12424         (parser_init): Don't assume that void * is aligned sufficiently
12425         for struct option.
12426
12427         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
12428         need to extend the stack.
12429         (YYINITDEPTH): New macro, so that the initial stack isn't overly
12430         large.
12431
12432 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12433
12434         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
12435
12436 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12437
12438         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
12439         (2004-10-24) change.  Apparently this was a false alarm.
12440
12441         * modules/getdate: Depend on alloca-opt, not alloca.
12442
12443 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12444
12445         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
12446         Remove now-obsolete comment about AIX.
12447         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
12448         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
12449         (YYMAXDEPTH): New macro.
12450
12451 2004-12-18  Simon Josefsson  <jas@extundo.com>
12452
12453         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
12454
12455 2004-12-18  Bruno Haible  <bruno@clisp.org>
12456
12457         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
12458
12459 2004-12-18  Bruno Haible  <bruno@clisp.org>
12460
12461         * lib/fatal-signal.c (fatal_signals): Make non-const.
12462         (init_fatal_signals): New function.
12463         (uninstall_handlers, install_handlers): Ignore signals that were set to
12464         SIG_IGN.
12465         (at_fatal_signal): Call init_fatal_signals.
12466         (init_fatal_signal_set): Likewise. Ignore signals that were set to
12467         SIG_IGN.
12468         Reported by Paul Eggert.
12469
12470 2004-12-18  Bruno Haible  <bruno@clisp.org>
12471
12472         * doc/alloca.texi: New file.
12473         * doc/alloca-opt.texi: New file.
12474
12475 2004-12-17  Jim Meyering  <jim@meyering.net>
12476
12477         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
12478         Otherwise, install-sh could exit with improper exit status when
12479         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
12480
12481 2004-12-16  Simon Josefsson  <jas@extundo.com>
12482
12483         * tests/test-base64.c: Add license.
12484
12485 2004-12-15  Stepan Kasal  <address@hidden>
12486
12487         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
12488
12489 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12490
12491         * modules/getcwd (Files): Add m4/d-ino.m4.
12492         Suggested by Mark D. Baushke.
12493
12494 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
12495
12496         * lib/getdate.y (textint): New member "negative".
12497         (time_zone_hhmm): New function.
12498         Expect 14 shift-reduce conflicts, not 13.
12499         (o_colon_minutes): New rule.
12500         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
12501         (yylex): Set the "negative" member of signed numbers.
12502
12503 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
12504
12505         * doc/getdate.texi (Time of day items, Time zone items):
12506         Describe new formats +00:00, UTC+00:00.
12507
12508 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
12509
12510         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
12511         spurious "-l"s.  Problem reported by Stepan Kasal.
12512
12513 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
12514
12515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
12516         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
12517
12518 2004-12-04  Simon Josefsson  <jas@extundo.com>
12519
12520         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
12521         Vandoorselaere <yoann@prelude-ids.org>.
12522
12523 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12524
12525         Changes imported from coreutils.
12526         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
12527         exist.
12528         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
12529
12530 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12531
12532         Changes imported from coreutils.
12533         * lib/hard-locale.c: Assume <locale.h> exists.
12534         Include "strdup.h".
12535         (GLIBC_VERSION): New macro.
12536         (hard_locale): Assume setlocale exists.
12537         Rewrite to avoid #ifdef.
12538         Use strdup rather than malloc + strcpy.
12539         * lib/human.c: Assume <locale.h> exists.
12540         (human_readable): Assume localeconv exists.
12541
12542 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12543
12544         * modules/hard-locale (Depends-on): Add strdup.
12545
12546 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
12547
12548         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
12549         convert T2, not T.  (Imported from libc.)
12550
12551 2004-11-30  Simon Josefsson  <jas@extundo.com>
12552
12553         * modules/restrict (License): Change to LGPL.
12554
12555 2004-11-30  Simon Josefsson  <jas@extundo.com>
12556
12557         * m4/restrict.m4: Add copyright and copying conditions.
12558
12559 2004-11-30  Simon Josefsson  <jas@extundo.com>
12560
12561         * m4/base64.m4: New file.
12562
12563 2004-11-30  Simon Josefsson  <jas@extundo.com>
12564
12565         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
12566         base64.
12567
12568         * tests/test-base64.c: New file.
12569
12570         * modules/base64: New file.
12571
12572 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12573
12574         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
12575         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
12576
12577         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
12578
12579 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12580
12581         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
12582         (__getcwd.c): Don't restore errno; glibc doesn't.
12583         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
12584         first, falling back to our code only if its results look suspicious.
12585         Ensure that the resulting buffer is only as large as necessary.
12586
12587         * lib/readutmp.c: Include readutmp.h first.
12588         Include <errno.h>, since readutmp.h no longer does that.
12589         * lib/readutmp.h: Don't include <errno.h>,
12590         <sys/param.h>, <time.h>; not needed to establish interface.
12591         (errno): Remove decl.
12592         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
12593         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
12594         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
12595
12596 2004-11-28  Simon Josefsson  <jas@extundo.com>
12597
12598         * lib/base64.h, base64.c: New file.
12599
12600 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
12601
12602         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
12603
12604 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
12605
12606         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
12607         (Depends-on): Remove pathmax, same.  Add mempcpy.
12608         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
12609         (Makefile.am): Append getcwd.h to lib_SOURCES.
12610         (Include): Add getcwd.h.
12611         (Maintainer): Change from Jim Meyering to "all, glibc",
12612         since getdate now uses intended-for-glibc code.
12613         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
12614         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
12615
12616 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12617
12618         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
12619         HP's ANSI C compiler.
12620         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
12621         Declaring int functions causes warnings on some modern systems and
12622         shouldn't be needed to compile on ancient ones.
12623         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
12624         defined.
12625
12626         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
12627         with the following changes.
12628         (__set_errno): Parenthesize properly.
12629         Include <stdbool.h>.
12630         (MIN, MAX, MATCHING_INO): New macros.
12631         (__getcwd): Define with prototype, not K&R form.
12632         Use heuristics to allocate default buffer on stack if possible.
12633         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
12634         behavior, and to avoid the PATH_MAX limit when computing
12635         ../../../../...
12636         Use MATCHING_INO to compare inode number to file.
12637         Check for arithmetic overflow in size calculations.
12638         Fix bug in reallocation of dot array that caused getcwd to fail
12639         on directories nested deeper than 75.
12640         Be more careful about saving errno on error.
12641         Do not use realloc; use only free+malloc, as this is a bit
12642         more flexible and avoids a needless copy operation.
12643         Do not inspect st_dev and st_ino for symbolic links; POSIX
12644         doesn't specify the latter.
12645         Check for closedir errors.
12646         Avoid needless casts.
12647         Use "#ifdef weak_alias" around weak_alias, to be like other
12648         glibc code.
12649         The following changes to getcwd.c have effect only when used in
12650         gnulib; they have no effect inside glibc proper.
12651         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
12652         as alloca isn't used.
12653         (alloca, __alloca): Likewise.
12654         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
12655         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
12656         unconditionally, as gnulib assumes C89 or better.
12657         Do not include <sys/param.h>.
12658         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
12659         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
12660         better.
12661         (NULL) [!defined NULL]: Remove; we assume C89 or better.
12662         Include <dirent.h> in a way that is compatible with modern Autoconf.
12663         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
12664         New macros, if not already defined.
12665         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
12666         Use "_LIBC", not "defined _LIBC", for consistency.
12667         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
12668         a mempcpy module.
12669         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
12670         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
12671         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
12672         credit only to Jim Meyering and adjust the copyright dates.
12673         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
12674         <stdlib.h>, <unistd.h>, "pathmax.h".
12675         Instead, include "xgetcwd.h" (first) and "getcwd.h".
12676         (INITIAL_BUFFER_SIZE): Remove.
12677         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
12678
12679 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12680
12681         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
12682         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
12683         Use the _ONCE methods, for efficiency.
12684         Check for fcntl.h.  In test program, include <errno.h>
12685         and <fcntl.h> if available.  Remove old K&R cruft from
12686         test program.  Check for common errors in GNU/Linux,
12687         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
12688         don't do AC_LIBOBJ, as that's getcwd.m4's job.
12689         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
12690         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
12691         name accordingly.
12692         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
12693         accommodate new getcwd.c.
12694         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
12695         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
12696         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
12697         that's all we need now.
12698
12699 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12700
12701         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
12702         argp-parse.c depends on getopt internals, that means we should
12703         always use our getopt, to be on the safe side.
12704         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
12705         order not to spoil the result of an eventual previous invocation
12706         of gl_GETOPT_SUBSTITUTE.
12707
12708 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12709
12710         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
12711         redefinition warnings. To avoid them, include the defines
12712         in `#if !defined __need_getopt ... #endif'. The only place
12713         where __getopt_argv_const is used is in definitions
12714         of getopt_long and getopt_long_only below, which are as well
12715         protected by `#ifndef __need_getopt'.
12716         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
12717         __need_getopt after including <stdio.h> and <unistd.h> These
12718         headers might have defined it.
12719
12720 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
12723
12724 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12725
12726         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
12727         (futimens): New function, which uses futimes if available.
12728         (futimens, utimens): Support timespec==NULL, with same semantics
12729         as utime and utimens.
12730         * lib/utimens.h (futimens): New decl.
12731
12732 2004-11-23  Jim Meyering  <jim@meyering.net>
12733
12734         * lib/getopt_.h: Remove trailing blanks.
12735
12736 2004-11-23  Jim Meyering  <jim@meyering.net>
12737
12738         * lib/__fpending.c: Add comment.
12739
12740 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12741
12742         * modules/canonicalize (Depends-on): Add xreadlink.
12743         Problem reported by James Youngman.
12744
12745 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12746
12747         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
12748         New macros.
12749         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
12750         optopt): Use them instead of invoking ## directly; otherwise, the
12751         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
12752
12753 2004-11-19  Bruno Haible  <bruno@clisp.org>
12754
12755         * lib/strtok_r.c: Move comments from here...
12756         * lib/strtok_r.h: ... to here.
12757
12758 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12759
12760         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
12761         implementations that mishandle size_t overflow.
12762
12763 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12764
12765         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
12766         might fail.  Problem reported by Yoann Vandoorselaere.
12767         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
12768         implementations that mishandle size_t overflow.
12769
12770 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12771
12772         * modules/canon-host (Depends-on): Add strdup.
12773
12774 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12775
12776         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
12777
12778 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12779
12780         * lib/canon-host.c: Include "strdup.h".
12781         (canon_host): Use getaddrinfo if available, so that IPv6 works.
12782         Use strdup instead of malloc/strcpy to duplicate strings.
12783
12784         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
12785         (human_space_before_unit): New constant.
12786         * lib/human.c (human_readable): Support it.
12787
12788         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
12789         (xgetcwd): Set errno correctly when failing.
12790         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
12791         the failure is actually due to a PATH_MAX problem.
12792
12793         Further getopt changes to make it more likely that glibc will
12794         buy the changes back.
12795         * lib/getopt.c (POSIXLY_CORRECT): New constant.
12796         (getopt): Use it, so to preserve glibc semantic
12797         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
12798         when compiling for libc.
12799         * lib/getopt_.h (__getopt_argv_const): Bring it back.
12800         (getopt_long, getopt_long_only): Use it.
12801
12802         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
12803         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
12804         (getopt): Argv is now char * const *, as per standard.
12805         (_getopt_internal_r, _getopt_internal): Argv is now char **,
12806         not char *__getopt_argv_const *.
12807         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
12808         _getopt_long_only_r): Likewise.
12809         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
12810         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
12811         _getopt_long_r, _getopt_long_only_r): Likewise.
12812         * lib/getopt_.h (__getopt_argv_const): Remove.
12813         (getopt): Argv is now char * const *, as per standard.
12814
12815         * lib/getdate.y (tORDINAL): New token.
12816         (day, relunit): Allow it for relative times.
12817         (relative_time_table): Use tORDINAL for ordinals.
12818
12819 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12820
12821         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
12822         Document that "second" isn't allowed as an ordinal number.
12823
12824 2004-11-16  Jim Meyering  <jim@meyering.net>
12825
12826         * modules/closeout (Depends-on): Add fpending.
12827
12828 2004-11-15  Jim Meyering  <jim@meyering.net>
12829
12830         * lib/closeout.c: Include "__fpending.h" once again.
12831         Include <stdbool.h>.
12832         (close_stdout): Don't fail just because stdout was closed initially,
12833         since some programs don't write to stdout in the normal course of
12834         operation (other than --version and --help), and we don't want this
12835         function to make e.g. `touch file >&-' fail.
12836         But do fail if it was closed and someone has tried to write to it.
12837         E.g., `printf foo >&-' must fail.
12838
12839 2004-11-13  Jim Meyering  <jim@meyering.net>
12840
12841         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
12842
12843 2004-11-12  Simon Josefsson  <jas@extundo.com>
12844
12845         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
12846         small doc fix is still pending.
12847
12848 2004-11-11  Simon Josefsson  <jas@extundo.com>
12849
12850         * modules/strtok_r: New file.
12851
12852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12853         strtok_r.
12854
12855 2004-11-11  Simon Josefsson  <jas@extundo.com>
12856
12857         * m4/strtok_r.m4: New file.
12858
12859         * m4/getopt.m4: Replace opterr.
12860
12861 2004-11-11  Simon Josefsson  <jas@extundo.com>
12862
12863         * lib/strtok_r.h, strtok_r.c: New file.
12864
12865 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12866
12867         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
12868         of replacing opterr, getopt, etc.  This should handle the
12869         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
12870
12871 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12872
12873         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
12874         we can stop lying to compilers about the constness of argv when we
12875         are compiled outside glibc.
12876         (getopt, getopt_long, getopt_long_only): Use it.
12877         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
12878         _getopt_internal, getopt): Likewise.
12879         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
12880         _getopt_long_only_r): Likewise.
12881         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
12882         _getopt_long_r, _getopt_long_only_r): Likewise.
12883
12884         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
12885         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
12886         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
12887         the other external symbols.
12888         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
12889         declaration, since the above renaming now works around collisions.
12890
12891 2004-11-11  Jim Meyering  <jim@meyering.net>
12892
12893         * lib/linebreak.c: Remove trailing blanks.
12894         * lib/alloca_.h: Likewise.
12895         * lib/acosl.c: Likewise.
12896         * lib/euidaccess.c: Likewise.
12897         * lib/allocsa.h: Likewise.
12898
12899 2004-11-10  Simon Josefsson  <jas@extundo.com>
12900
12901         * m4/getaddrinfo.m4: New file.
12902
12903 2004-11-10  Simon Josefsson  <jas@extundo.com>
12904
12905         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
12906
12907 2004-11-10  Simon Josefsson  <jas@extundo.com>
12908
12909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12910         getaddrinfo.
12911
12912         * modules/getaddrinfo: New file.
12913
12914 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12915
12916         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
12917
12918 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12919
12920         * lib/mktime.c (SHR): New macro, which is a portable
12921         substitute for >> that should work even on Crays.
12922         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
12923         Problem reported by Mark D. Baushke in
12924         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
12925         * lib/getdate.y (SHR): Likewise.
12926         (tm_diff): Use it.
12927         * lib/strftime.c (SHR): Likewise.
12928         (tm_diff): Use it.
12929         * lib/quotearg.c (struct quoting_options): Use unsigned int for
12930         quote_these_too, so that right shifts are well defined.  All uses
12931         changed.
12932
12933 2004-11-10  Jim Meyering  <jim@meyering.net>
12934
12935         Ensure that no close failure goes unreported.
12936         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
12937         return early when it seems there's nothing to flush.
12938         Don't include __fpending.h.
12939
12940 2004-11-10  Jim Meyering  <jim@meyering.net>
12941
12942         * modules/closeout (Depends-on): Remove fpending.
12943
12944 2004-11-10  Jim Meyering  <jim@meyering.net>
12945
12946         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
12947
12948 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12949
12950         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
12951         gl_FUNC_STRFTIME.
12952         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
12953         and AC_REQUIRE when possible, to avoid duplicate checks.
12954         Check for <wchar.h>.
12955
12956 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
12959
12960 2004-11-09  Bruno Haible  <bruno@clisp.org>
12961
12962         * m4/sockpfaf.m4: New file.
12963
12964 2004-11-05  Bruno Haible  <bruno@clisp.org>
12965
12966         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
12967         Reported by Mark D. Baushke <mdb@cvshome.org>.
12968
12969 2004-11-04  Bruno Haible  <bruno@clisp.org>
12970
12971         2004-09-11  Bruno Haible  <bruno@clisp.org>
12972                 * allocsa.valgrind: New file.
12973         2004-02-06  Bruno Haible  <bruno@clisp.org>
12974                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
12975                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
12976                 Reported by Christopher Seip <chris.seip@hp.com>.
12977
12978 2004-11-04  Bruno Haible  <bruno@clisp.org>
12979
12980         * modules/allocsa (Files): Add lib/allocsa.valgrind.
12981         (Makefile.am): Distribute it.
12982
12983 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12984
12985         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
12986         with errno == ERANGE if the buffer is too small.
12987         Problem reported by Mark D. Baushke.
12988
12989 2004-11-03  Albert Chin <china@thewrittenword.com>
12990             Paul Eggert  <eggert@cs.ucla.edu>
12991
12992         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
12993         equivalent, substitute $ac_type for equivalent type rather than
12994         blindly using uint32_t *always* which won't work if uint32_t is not
12995         available.  Define _UINT32_T to work around typedef of uint32_t if
12996         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
12997         2.5.1.
12998
12999 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13000
13001         * m4/jm-macros.m4: Sync from coreutils.
13002         (gl_MACROS): Check for mbrlen, for pathchk.
13003         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
13004
13005 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13006
13007         * lib/xreadlink.c (MAXSIZE): New macro.
13008         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
13009         size does not exceed MAXSIZE.  Avoid cast.
13010         As suggested by Mark D. Baushke in
13011         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
13012         if readlink fails with buffer size just under MAXSIZE, try again
13013         with MAXSIZE.
13014
13015 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13016
13017         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
13018
13019 2004-11-02  Derek R. Price  <derek@ximbiot.com>
13020         and  Paul Eggert  <eggert@cs.ucla.edu>
13021
13022         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
13023         (get_date): Overparenthesize to avoid GCC warning.
13024
13025 2004-11-02  Bruno Haible  <bruno@clisp.org>
13026
13027         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
13028         returns void.
13029
13030 2004-11-02  Bruno Haible  <bruno@clisp.org>
13031
13032         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
13033         function returns void.
13034
13035 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13036
13037         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
13038         fflush_unlocked, flockfile, funlockfile, funlockfile,
13039         fputs_unlocked, putc_unlocked.
13040
13041 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13042
13043         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
13044         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
13045         already declared.
13046
13047 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13048
13049         * modules/getdate (Files): Add doc/getdate.texi.
13050         (Depends-on): Add setenv, xalloc.
13051
13052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13053
13054         * lib/getdate.y: Add support for TZ="foo" within a date string.
13055         Fix some bugs near time_t boundaries.  Reject dates with
13056         out-of-range components, e.g., "Sept 31".
13057         Include <stdlib.h>, "setenv.h", "xalloc.h".
13058         (ISDIGIT_LOCALE): Remove; unused.
13059         Note that the TZ and time functions used here are not reentrant.
13060         (mktime_ok, get_tz): New functions.
13061         (TZBUFSIZE): New constant.
13062         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
13063         This requires that we sometimes generate our own TZ="XXX..." setting.
13064
13065 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13066
13067         * doc/getdate.texi: New file, from coreutils with modifications for
13068         the new TZ parsing.
13069
13070 2004-10-27  Derek R. Price  <derek@ximbiot.com>
13071
13072         * lib/mktime.c (not_equal_tm): Remove redundant check.
13073
13074 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13075
13076         * modules/regex (lib_SOURCES): Add regex.c.
13077         Reported by James Youngman in
13078         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
13079
13080 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13081
13082         * lib/getdate.y: Use Bison 1.875 features, and some minor
13083         code cleanups.  This change does not affect semantics.
13084         Don't include <stdlib.h>; no longer needed.
13085         Don't include unlocked-io.h; only the "#if TEST" code uses
13086         stdio, and performance isn't crucial there.
13087         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
13088         Bison 1.875 features as described below.
13089         All uses of "PC." replaced by "pc->".
13090         (YYSTYPE): Add a forward declaration.
13091         (yylex, yyerror): Use full prototypes in forward decls.
13092         Use "%pure-parser" rather than obsolescent "%pure_parser".
13093         Use %parse-param and %lex-param instead of obsolescent
13094         YYPARSE_PARAM and YYLEX_PARAM.
13095         (meridian_table, month_and_day_table, time_units_table,
13096         relative_time_table, time_zone_table, military_table,
13097         lookup_zone, lookup_word, get_date):
13098         Use NULL instead of 0 where appropriate.
13099         (to_hour): Avoid abort (), to avoid a dependency on
13100         stdlib.h.
13101         (yyerror, yylex): Now accepts parser_control * arg.
13102         (main) [TEST]: Use '\0' rather than 0 for char.
13103
13104 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13105
13106         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
13107
13108 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13109
13110         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
13111         It's now the caller's responsibility to handle the case where
13112         !HAVE_GETPAGESIZE && !defined getpagesize.
13113
13114         * lib/mktime.c (leapyear): Arg is long int, not int.
13115
13116 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13117
13118         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
13119
13120 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
13121
13122         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
13123         missing.  Problem reported by James Youngman.
13124
13125 2004-10-16  Simon Josefsson  <jas@extundo.com>
13126
13127         * gnulib-tool: Fix comments.  Fix parse problem.
13128         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
13129
13130 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13131
13132         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
13133         implementation of getopt_long.  Problem reported by Alexander Taler in:
13134         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
13135
13136 2004-10-15  Bruno Haible  <bruno@clisp.org>
13137
13138         * gnulib-tool: Untabify. Initialize supplied_libname.
13139         (func_usage): More homogenous output.
13140         (func_modules_transitive_closure, func_modules_to_filelist,
13141         func_emit_lib_Makefile_am): New functions.
13142         (func_import): New function, extracted from big case statement. Use
13143         func_get_license, func_modules_transitive_closure,
13144         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
13145         opt_lgpl. Don't use test -a, as it's not portable.
13146         (func_create_testdir): Use func_modules_transitive_closure,
13147         func_modules_to_filelist, func_emit_lib_Makefile_am.
13148
13149 2004-10-15  Bruno Haible  <bruno@clisp.org>
13150
13151         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
13152
13153 2004-10-15  Bruno Haible  <bruno@clisp.org>
13154
13155         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
13156         the portions belonging to each module.
13157         Suggested by Derek Robert Price <derek@ximbiot.com>.
13158
13159 2004-10-12  Simon Josefsson  <jas@extundo.com>
13160
13161         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
13162         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
13163         to real functions.
13164
13165 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13166
13167         * modules/vsnprintf: New file.
13168
13169 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13170
13171         * m4/vsnprintf.m4: New file.
13172
13173 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13174
13175         * lib/vsnprintf.h: New file.
13176         * lib/vsnprintf.c: New file.
13177
13178 2004-10-11  Bruno Haible  <bruno@clisp.org>
13179
13180         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
13181         vsnprintf.
13182
13183 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13184
13185         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
13186
13187 2004-10-07  Bruno Haible  <bruno@clisp.org>
13188
13189         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
13190         fits into the provided buffer.
13191
13192 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13193
13194         * lib/diacrit.c, diacrit.h: Add GPL notice.
13195
13196         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
13197         notice.
13198         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
13199         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
13200         This avoids a potential constant-folding bug.
13201
13202 2004-10-05  Bruno Haible  <bruno@clisp.org>
13203
13204         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
13205         for the declaration of strsep.
13206
13207 2004-10-05  Bruno Haible  <bruno@clisp.org>
13208
13209         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
13210
13211 2004-10-04  Simon Josefsson  <jas@extundo.com>
13212
13213         * modules/memmem: New file.
13214         * tests/test-memmem.c: New file.
13215         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
13216
13217 2004-10-04  Simon Josefsson  <jas@extundo.com>
13218
13219         * m4/memmem.m4: New file.
13220
13221 2004-10-04  Simon Josefsson  <jas@extundo.com>
13222
13223         * lib/memmem.h: New file.
13224         * lib/memmem.c: New file, taken from glibc.
13225
13226 2004-10-04  Simon Josefsson  <jas@extundo.com>
13227
13228         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
13229         '#ifdef USE_UNLOCKED_IO'.
13230
13231 2004-10-04  Simon Josefsson  <jas@extundo.com>
13232
13233         * config/srclist.txt: Add memmem from glibc.
13234
13235 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13236
13237         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
13238
13239         * modules/argmatch, modules/argp, modules/closeout, modules/error,
13240         modules/exclude, modules/getdate, modules/getline,
13241         modules/getndelim2, modules/getpass, modules/getpass-gnu,
13242         modules/getusershell, modules/linebuffer, modules/md5,
13243         modules/mountlist, modules/posixtm, modules/readtokens,
13244         modules/readutmp, modules/regex, modules/sha1,
13245         modules/version-etc, modules/yesno:
13246         Remove dependency on unlocked-io.
13247
13248 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13249
13250         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
13251
13252         * m4/unlocked-io.m4: Add copyright notice.
13253         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
13254
13255 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13256
13257         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
13258         * lib/xmalloc.c (xmemdup): Likewise.
13259         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
13260         XFREE): Remove these long-obsolescent macros.
13261         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
13262         * lib/xstrdup.c: Remove.
13263
13264         * lib/regex.c (re_comp): Cast gettext return value to char *,
13265         Problem reported by Martin Neitzel via Mark D. Baushke.
13266
13267 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13268
13269         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
13270         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
13271         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
13272         regex.c, sha1.c, version-etc.c, yesno.c:
13273         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
13274         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
13275         the includer's responsibility.
13276
13277         Sync from coreutils.
13278
13279         * lib/modechange.c (mode_compile): Don't decrement a pointer that
13280         points to the start of a string, as the C Standard says the
13281         resulting behavior is undefined.
13282
13283         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
13284         simple -> simple_backups, numbered_existing ->
13285         numbered_existing_backups, numbered -> numbered_backups
13286         to avoid shadowing problems.  All uses changed.
13287         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
13288         * lib/backupfile.c (check_extension, numbered_backup):
13289         Rename locals to avoid shadowing 'basename'.
13290         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
13291         once.
13292
13293         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
13294         * lib/.cvsignore: Add getopt.h.
13295
13296 2004-10-04  Bruno Haible  <bruno@clisp.org>
13297
13298         * modules/README: New file.
13299         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
13300         not a module.
13301
13302 2004-10-02  Jim Meyering  <jim@meyering.net>
13303
13304         * lib/dirfd.h, getpagesize.h: Add copyright notice.
13305
13306 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
13307
13308         * modules/strsep: New file.
13309
13310 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
13311
13312         * m4/strsep.m4: New file.
13313
13314 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
13315
13316         * lib/strsep.h: New file.
13317         * lib/strsep.c: New file.
13318
13319 2004-10-01  Simon Josefsson  <jas@extundo.com>
13320
13321         * lib/snprintf.c (snprintf): Handle size==0.
13322
13323 2004-10-01  Simon Josefsson  <jas@extundo.com>
13324             Bruno Haible  <bruno@clisp.org>
13325
13326         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
13327         (snprintf): Declare 'args'.
13328
13329 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
13330
13331         * lib/snprintf.c: Remove comments as to why each header is needed.
13332
13333 2004-10-01  Bruno Haible  <bruno@clisp.org>
13334
13335         * MODULES.html.sh: Add strsep.
13336
13337 2004-09-30  Simon Josefsson  <jas@extundo.com>
13338
13339         * modules/snprintf: New file.
13340
13341 2004-09-30  Simon Josefsson  <jas@extundo.com>
13342
13343         * m4/snprintf.m4: New file.
13344
13345 2004-09-30  Simon Josefsson  <jas@extundo.com>
13346
13347         * lib/snprintf.h, lib/snprintf.c: New files.
13348
13349 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13350
13351         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
13352         (hol_entry_help): Never translate an empty string.
13353         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
13354         * lib/argp.h (OPTION_NO_TRANS): New option.
13355
13356 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13357
13358         * modules/argp (Maintainer): Replace Simon Josefsson
13359         by Sergey Poznyakoff.
13360
13361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13362
13363         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
13364         changes merged back into glibc.
13365
13366 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13367
13368         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
13369
13370 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
13371
13372         * lib/xvasprintf.c: Include xalloc.h.
13373         (xvasprintf): Use xalloc_die, not xmalloc_die.
13374
13375 2004-09-29  Bruno Haible  <bruno@clisp.org>
13376
13377         * modules/alloca-opt: New file, derived from modules/alloca.
13378         * modules/allocsa: Depend on alloca-opt instead of alloca.
13379         * modules/setenv: Likewise.
13380         * modules/vasnprintf: Likewise.
13381         * MODULES.html.sh: Add alloca-opt.
13382
13383 2004-09-28  Simon Josefsson  <jas@extundo.com>
13384
13385         * gnulib-tool: New parameter --lgpl, to asseert that modules are
13386         LGPL, and to replace license template from GPL to LGPL.
13387
13388 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
13389
13390         * modules/dummy: Change license to LGPL.
13391
13392 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
13393
13394         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
13395
13396 2004-09-24  Simon Josefsson  <jas@extundo.com>
13397
13398         * modules/minmax (License): Change from GPL to LGPL.
13399
13400 2004-09-23  Simon Josefsson  <jas@extundo.com>
13401
13402         * gnulib-tool (--import): Typo.
13403
13404 2004-09-23  Simon Josefsson  <jas@extundo.com>
13405
13406         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
13407
13408 2004-09-22  Bruno Haible  <bruno@clisp.org>
13409
13410         * modules/*: Add 'License' field.
13411         * gnulib-tool: Accept --extract-license option.
13412         (func_get_license): New function.
13413
13414 2004-09-21  Bruno Haible  <bruno@clisp.org>
13415
13416         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
13417         Reported by Simon Josefsson.
13418
13419 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13420
13421         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
13422         gl_AC_TYPE_LONG_LONG.
13423
13424 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13425
13426         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
13427
13428 2004-09-18  Simon Josefsson  <jas@extundo.com>
13429         and  Paul Eggert  <eggert@cs.ucla.edu>
13430
13431         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
13432         calls with autoreconf.  Define GL_LIB.
13433
13434 2004-09-14  Karl Berry  <karl@gnu.org>
13435
13436         * config/srclist.txt: unsync setenv.c, sigh.
13437
13438 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13439
13440         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
13441         Problem reported by Bruno Haible in:
13442         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
13443
13444 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13445
13446         * config/srclist.txt: Comment out argp-pvh.c.
13447
13448 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13449
13450         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
13451         in case some system header has #define'd it.  Problem reported by
13452         Soeren D. Schulze in
13453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
13454
13455 2004-09-09  Karl Berry  <karl@gnu.org>
13456
13457         * regex.[ch]: delete from the root.  These were supposed to be
13458                 synced with emacs cvs, but this has not happened for about
13459                 a year, and anyway nothing else uses emacs regex.[ch].
13460                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
13461                 lib/regex[.ch] is untouched.
13462
13463 2004-09-09  Bruno Haible  <bruno@clisp.org>
13464
13465         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
13466
13467 2004-09-09  Bruno Haible  <bruno@clisp.org>
13468
13469         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
13470         modifications.
13471         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
13472
13473 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
13474
13475         * modules/xvasprintf: New file.
13476         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
13477
13478 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
13479
13480         * lib/xvasprintf.h: New file.
13481         * lib/xvasprintf.c: New file.
13482         * lib/xasprintf.c: New file.
13483
13484 2004-09-08  Bruno Haible  <bruno@clisp.org>
13485
13486         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
13487
13488 2004-09-08  Bruno Haible  <bruno@clisp.org>
13489
13490         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
13491         length is > INT_MAX.
13492         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
13493         more.
13494
13495 2004-09-08  Bruno Haible  <bruno@clisp.org>
13496
13497         * lib/stdint_.h: New file, taken from GNU clisp.
13498
13499 2004-09-08  Bruno Haible  <bruno@clisp.org>
13500             Oskar Liljeblad  <oskar@osk.mine.nu>
13501
13502         * modules/stdint: New file.
13503         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
13504
13505 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13506
13507         Import from coreutils.
13508         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
13509         strings on unbounded length.  alloca's performance benefits aren't
13510         that important here.
13511         (V_STRDUP): Remove.
13512         (parse_with_separator): New function, with most of the internals
13513         of the old parse_user_spec.  Allow user to omit both user and group,
13514         for compatibility with FreeBSD.
13515         Clone only the user name, not the entire spec.
13516         Do not set *uid, *gid unless entirely successful.
13517         Avoid memory leak in some failing cases.
13518         Fix regression for USER.GROUP reported by Dmitry V. Levin in
13519         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
13520         (parse_user_spec): Rewrite to use parse_with_separator.
13521
13522 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13523
13524         * modules/userspec: Don't depend on alloca.
13525
13526 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13527
13528         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
13529
13530 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13531
13532         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
13533         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
13534         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
13535
13536 2004-08-16  Simon Josefsson  <jas@extundo.com>
13537
13538         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
13539         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
13540         Add --dry-run for --import.
13541         Let user provided command line parameters override configure.ac
13542         settings.
13543
13544 2004-08-12  Simon Josefsson  <jas@extundo.com>
13545
13546         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
13547         as discussed with Paul Eggert in threads rooted at
13548         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
13549         and
13550         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
13551         Before, the test was empty, and relied on ELIDE_CODE in source
13552         code.)
13553         (gl_PREREQ_GETOPT): New macro.
13554         (gl_GETOPT): Use them.
13555
13556 2004-08-12  Simon Josefsson  <jas@extundo.com>
13557
13558         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
13559         * lib/getopt_.h: Renamed from getopt.h.
13560
13561 2004-08-12  Simon Josefsson  <jas@extundo.com>
13562
13563         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
13564         Change default library name from libfoo to libgnu.
13565         Now, if you have a configure.ac that says:
13566                 gl_SOURCE_BASE(gl)
13567                 gl_M4_BASE(gl/m4)
13568                 gl_MODULES(error getopt etcetera)
13569                 gl_INIT
13570         you can import all you need by running:
13571                 ../gnulib/gnulib-tool --import
13572
13573         * modules/getopt (Files): Rename getopt.h to getopt_.h.
13574         (Makefile.am): Rewrite, use logic from argz.
13575         (Include): Use <getopt.h> instead of "getopt.h".
13576
13577 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13578
13579         * modules/argp (Files): Add m4/unlocked-io.m4.
13580         (Depends-on): Add extensions.
13581
13582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13583
13584         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
13585         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
13586         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
13587         Check for program_invocation_name, program_invocation_short_name,
13588         flockfile, funlockfile, features.h, _getopt_long_only_r.
13589
13590 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13591
13592         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
13593         its complicated substitute.
13594         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
13595         and program_invocation_name.
13596         (__argp_basename) [!_LIBC]: Remove; the only use was
13597         replaced by its body.
13598         (__argp_short_program_name): Change condition from
13599         !defined __argp_short_program_name to
13600         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
13601         to match argp-namefrob.h.
13602         (__argp_failure): Don't assume strerror_r returns char *.
13603         * lib/argp-parse.c (N_): Define unconditionally.
13604         (argp_default_options): Fill out initializers with 0 to avoid
13605         gcc warnings.
13606
13607 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13608
13609         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
13610         getopt1.c.
13611
13612 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13613
13614         Merge from coreutils.
13615
13616         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
13617
13618         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
13619         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
13620
13621 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13622
13623         Merge from coreutils.
13624
13625         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
13626         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
13627         for Reliant Unix 5.43.
13628
13629         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
13630         (union fooround): Use uintmax_t, not long int.
13631         The rest is a merge from libc:
13632         [defined _LIBC]: Include <shlib-compat.h>.
13633         (_obstack) [defined _LIBC]: Remove after 2.3.4.
13634
13635         * lib/settime.c (settime): Recode to avoid warning with
13636         Sun Forte C 6U2.
13637
13638         * lib/strverscmp.c: Convert to UTF-8.
13639
13640 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13641
13642         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
13643         m4/uintmax_t.m4.
13644
13645 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13646
13647         * modules/xalloc-die: New file.
13648         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
13649
13650         * modules/md5 (Files): Add m4/uint32_t.m4.
13651         * modules/sha1: Renamed from modules/sha.
13652         (Files):
13653         Rename lib/sha.h to lib/sha1.h.
13654         Rename lib/sha.c to lib/sha1.c.
13655         Rename m4/sha.m4 to m4/sha1.m4.
13656         (lib_SOURCES): Likewise.
13657         (configure.ac): Rename gl_SHA to gl_SHA1.
13658         (Include): sha.h -> sha1.h.
13659
13660 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13661
13662         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
13663         * m4/sha1.m4: Renamed from sha.m4.
13664         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
13665
13666 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13667
13668         * lib/obstack.h (obstack_empty_p):
13669         Don't assume that chunk->contents is suitably aligned.
13670         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
13671         Likewise. Problem reported by Benno in
13672         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
13673
13674         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
13675         readable.  This could be improved further but it'd take some work.
13676
13677 2004-08-08  Simon Josefsson  <jas@extundo.com>
13678
13679         * modules/xgethostname (Depends-on): Remove exit and error (not
13680         used).
13681
13682         * modules/getpass-gnu: Add getpass.h.
13683         (Depends-on): Add stdbool.
13684         * modules/getpass: Add getpass.h.
13685
13686 2004-08-08  Simon Josefsson  <jas@extundo.com>
13687
13688         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
13689         Check getpass declaration.
13690
13691 2004-08-08  Simon Josefsson  <jas@extundo.com>
13692
13693         * lib/xgethostname.c: Don't include error.h (not used).
13694
13695         * lib/getpass.h: Add.
13696         * lib/getpass.c: Include getpass.h first.
13697
13698 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
13699
13700         * lib/xalloc-die.c: New file.
13701         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
13702         All uses removed.
13703         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
13704         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
13705         xalloc-die.c.
13706         (_, N_, xalloc_die): Move to xalloc-die.c.
13707         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
13708         so that we needn't mess with xalloc_msg_memory_exhausted.
13709
13710         * lib/sha1.h: Renamed from sha.h.
13711         (SHA1_H): Renamed from _SHA_H.
13712         (sha1_ctx): Renamed from sha_ctx.
13713         (sha1_init_ctx): Renamed from sha_init_ctx.
13714         (sha1_process_block): Renamed from sha_process_block.
13715         (sha1_process_bytes): Renamed from sha_process_bytes.
13716         (sha1_finish_ctx): Renamed from sha_finish_ctx.
13717         (sha1_read_ctx): Renamed from sha_read_ctx.
13718         (sha1_stream): Renamed from sha_stream.
13719         (sha1_buffer): Renamed from sha_buffer.
13720         * lib/sha1.c: Likewise; renamed from sha.c.
13721         Do not include <sys/types.h>.
13722         Include <stddef.h> rather than <stdlib.h>.
13723
13724 2004-08-08  Bruno Haible  <bruno@clisp.org>
13725
13726         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
13727         FILESYSTEM_PREFIX_LEN.
13728         * lib/progreloc.c: Likewise.
13729         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
13730
13731 2004-08-06  Simon Josefsson  <jas@extundo.com>
13732
13733         * modules/progname (Depends-on): Don't depend on stdbool.
13734
13735 2004-08-06  Simon Josefsson  <jas@extundo.com>
13736
13737         * modules/getsubopt: New file.
13738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13739         getsubopt.
13740
13741 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13742
13743         More merge from coreutils.
13744
13745         * m4/utimens.m4, m4/utimecmp.m4: New files.
13746         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
13747         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
13748         prereq.m4, sha.m4: Import changes from coreutils.
13749
13750 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13751
13752         More merge from coreutils.
13753         * modules/raise, modules/readtokens0, modules/utimens:
13754         * modules/utimecmp, module/xnanosleep: New files.
13755         * modules/strftime: Add lib/strftime.h.
13756         Change include from <time.h> to "strftime.h".
13757         * modules/yesno: Add lib/yesno.h.
13758         * modules/backupfile: Remove lib/addext.c.
13759         * modules/euidaccess: Add stat-macros.h.
13760         * modules/canonicalize, modules/euidaccess,
13761         modules/filemode, modules/lchown, modules/makepath,
13762         modules/rmdir, modules/stat: Likewise.
13763
13764 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13765
13766         Merge from tar.
13767         * lib/argp-help.c (make_hol, hol_append): Don't assume that
13768         SIZE_MAX is a valid preprocessor constant.
13769         (__argp_basename): Change from "#ifndef _LIBC"
13770         to "#ifndef __argp_short_program_name", so that
13771         we don't compile these functions for tar.
13772
13773         More merges from coreutils.
13774         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
13775         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
13776         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
13777         * lib/addext.c: Remove; no longer needed.
13778         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
13779         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
13780         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
13781         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
13782         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
13783         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
13784         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
13785         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
13786         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
13787         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13788         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
13789         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
13790         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
13791         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
13792         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
13793         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
13794         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
13795         Import changes from coreutils.
13796
13797 2004-08-05  Simon Josefsson  <jas@extundo.com>
13798
13799         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
13800
13801 2004-08-05  Simon Josefsson  <jas@extundo.com>
13802
13803         * m4/getsubopt.m4: New file.
13804
13805 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13806
13807         Merge from coreutils.
13808
13809         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
13810         * m4/getcwd-path-max.m4: New files.
13811
13812         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
13813         FILESYSTEM_PREFIX_LEN ->
13814         FILE_SYSTEM_PREFIX_LEN.
13815         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
13816         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
13817         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
13818         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
13819
13820         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
13821         prerequisite modules now handle the DOS stuff.
13822         Don't check for unistd.h.
13823
13824 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13825
13826         Merge from coreutils.
13827
13828         * lib/.gdb-history: Remove; this doesn't belong here.
13829
13830         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
13831         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
13832         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
13833         * lib/getcwd.c: New files.
13834
13835         * lib/dirname.h: Include <stdbool.h>.
13836         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
13837         for consistency with POSIX terminology.  All uses changed.
13838         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
13839         (strip_trailing_slashes): Use bool for booleans.
13840         * lib/stripslash.c (strip_trailing_slashes): Likewise.
13841
13842         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
13843         sometimes returns a positive errno value even when it succeeds.
13844         (print_errno_message) [!LIBC]: Fall back on strerror if
13845         __strerror_r fails.
13846
13847         * lib/path-concat.c (mempcpy): Don't define if a system header defines
13848         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
13849         (longest_relative_suffix): New function.
13850         (path_concat): Use it.  Assume first argument is not NULL.
13851         Port to DOS.  Omit redundant separators.
13852         Report an error instead of returning NULL.
13853         Use mempcpy instead of memcpy.
13854         (xpath_concat): Remove: not declared or used.
13855
13856         * lib/same.h: Include <stdbool.h>
13857         (same_name): Return bool, not int.
13858         * lib/same.c (same_name): Likewise.
13859         (errno): Don't declare; we assume C89 or better now.
13860
13861         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
13862         if not already defined.
13863
13864         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
13865         * lib/dup-safer.c (errno): Likewise.
13866
13867 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13868
13869         Merge from coreutils.
13870         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
13871         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
13872         * modules/path-concat: Don't depend on strdup.
13873
13874 2004-08-03  Simon Josefsson  <jas@extundo.com>
13875
13876         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
13877         * lib/progname.h: Don't include stdbool.h.
13878
13879 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13880
13881         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
13882         * MODULES.html.sh (func_all_modules): Remove fatal.
13883
13884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13885
13886         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
13887
13888 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13889
13890         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
13891         working.
13892
13893 2004-08-02  Simon Josefsson  <jas@extundo.com>
13894
13895         * lib/getsubopt.h: New file, with comments from Bruno Haible.
13896         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
13897         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
13898
13899 2004-08-01  Simon Josefsson  <jas@extundo.com>
13900
13901         * lib/xgetdomainname.c: Include stdlib.h, for free().
13902
13903 2004-07-19  Bruno Haible  <bruno@clisp.org>
13904
13905         * MODULES.html.sh (func_all_modules): Add dummy.
13906
13907 2004-07-16  Simon Josefsson  <jas@extundo.com>
13908
13909         * modules/dummy: New file.
13910
13911 2004-07-16  Simon Josefsson  <jas@extundo.com>
13912
13913         * lib/dummy.c: New file.
13914
13915 2004-07-16  Bruno Haible  <bruno@clisp.org>
13916
13917         * lib/backupfile.h: Add extern "C" for C++.
13918         * lib/closeout.h: Likewise.
13919         * lib/copy-file.h: Likewise.
13920         * lib/findprog.h: Likewise.
13921         * lib/full-write.h: Likewise.
13922         * lib/pathname.h: Likewise.
13923         * lib/progname.h: Likewise.
13924         * lib/stpcpy.h: Likewise.
13925         * lib/stpncpy.h: Likewise.
13926         * lib/strcase.h: Likewise.
13927         * lib/strstr.h: Likewise.
13928         * lib/xalloc.h: Likewise.
13929
13930         * lib/mbswidth.h: Add extern "C" for C++.
13931         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
13932
13933 2004-07-13  Robert Millan  <robertmh@gnu.org>
13934
13935         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
13936
13937 2004-07-09  Simon Josefsson  <jas@extundo.com>
13938
13939         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
13940         failed without this.)
13941
13942 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13943
13944         * modules/chown (Files): Add lib/fchown-stub.c, since
13945         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
13946
13947 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13948
13949         * lib/fchown-stub.c: New file.
13950
13951 2004-06-24  Jim Meyering  <jim@meyering.net>
13952
13953         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
13954
13955 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13956
13957         * modules/argz: Omit "#include".
13958
13959         * MODULES.html.sh (func_all_modules): Add calloc, to match
13960         2004-06-01 addition of calloc module.
13961
13962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13963
13964         * m4/argz.m4: New file, which is autoupdated from libtool.
13965
13966 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13967
13968         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
13969         libtool.
13970
13971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13972
13973         * config/srclist-update: Don't insist on "USA." before the
13974         close-comment, as libtool omits the period and puts the */ on a
13975         separate line.
13976         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
13977         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
13978
13979 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
13980
13981         * modules/argz: New file.
13982         * MODULES.html.sh (func_all_modules): Add argz.
13983
13984 2004-06-12  Jim Meyering  <jim@meyering.net>
13985         and  Paul Eggert  <eggert@cs.ucla.edu>
13986
13987         * modules/hash (Files): Add lib/xalloc.h.
13988         * modules/pipe (Depends-on): Add wait-process.
13989         * modules/stat (Depends-on): Add xalloc.
13990         * modules/userspec (Files): Add lib/userspec.h.
13991         * modules/xstrto
13992
13993         Upgrade from gettext-0.13.
13994         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
13995         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
13996         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
13997
13998 2004-06-10  Jim Meyering  <jim@meyering.net>
13999
14000         * lib/calloc.c: New file.
14001
14002 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14003
14004         * lib/getdate.y (yylex): Allow space between sign and number.
14005         Problem reported by Dan Jacobson.
14006
14007 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14008
14009         Merge from coreutils CVS.
14010
14011         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
14012         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
14013         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
14014         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
14015         xstrtol.m4: Fix copyright date and/or serial number.
14016
14017         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
14018         See if we need an fchown replacement.
14019         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
14020         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
14021         and use the replacement function if we detect either defect.
14022
14023         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
14024         gl_UTIMECMP.
14025
14026 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14027         and  Jim Meyering  <jim@meyering.net>
14028
14029         Merge from coreutils CVS.
14030
14031         * lib/stat-macros.h: New file, with contents from file-type.h
14032         and coreutils' system.h.
14033         * lib/file-type.c: Include "stat-macros.h".
14034         * lib/file-type.h (file_type): Move all macro definitions to new file,
14035         stat-macros.h.
14036
14037         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
14038         Wrap old code with this conditional.
14039         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
14040         function that does not dereference symlinks.
14041         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
14042
14043         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
14044         dependency problems.
14045         (xreadlink): Accept new arg SIZE, for efficiency.
14046         All decls and uses changed.
14047         * lib/xreadlink.h: Include <stddef.h>, for size_t.
14048
14049         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
14050         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
14051
14052         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
14053         sysexits.h.
14054
14055 2004-06-01  Jim Meyering  <jim@meyering.net>
14056
14057         * m4/calloc.m4: New file.
14058
14059 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14060
14061         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
14062         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
14063         Also, fix a typo in a diagnostic.
14064
14065 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14066
14067         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
14068         or AC_FUNC_REALLOC.
14069
14070 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14071
14072         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
14073         macros to be defined.
14074         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
14075         the allocator returns NULL because the requested size is zero.
14076
14077 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14078
14079         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
14080         var.  Add comment explaining why libc still defines it.  This
14081         merges the following patch from glibc:
14082         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
14083
14084 2004-05-20  Andreas Schwab  <schwab@suse.de>
14085
14086         * m4/free.m4: Replace free if it not known to work, not the other
14087         way round.
14088
14089 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14090
14091         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
14092         present in glibc since revision 1.1 of this file.
14093         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
14094         obstack_alignment_mask, obstack_alloc, obstack_base,
14095         obstack_blank, obstack_blank_fast, obstack_chunk_size,
14096         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
14097         obstack_grow0, obstack_init, obstack_int_grow,
14098         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
14099         obstack_next_free, obstack_object_size, obstack_ptr_grow,
14100         obstack_ptr_grow_fast, obstack_room): Remove declarations of
14101         nonexistent functions.
14102
14103 2004-05-18  Karl Berry  <karl@gnu.org>
14104
14105         * config/srclist.txt: break link for vasnprintf.c.
14106
14107 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14108
14109         Port obstack to the AS/400, where pointers are 16 bytes wide and
14110         you cannot cast an integer to a valid pointer.  This patch is
14111         currently waiting to be integrated into glibc; see
14112         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
14113
14114         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
14115         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
14116         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
14117         (struct obstack): temp member is now a union of a pointer and
14118         an integer, instead of an integer.  All integer uses changed.
14119         This does not affect the physical layout of struct obstack,
14120         except on hosts (like the AS/400) where the size or alignment of
14121         void * is greater than that of ptrdiff_t.
14122         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
14123         __STDC__)]: Store temporary in pointer member of union, not
14124         integer member.
14125         * lib/obstack.c: Include <stddef.h>, for offsetof.
14126         (struct fooalign): Remove; it doesn't need a name.
14127         (union fooround): Change double to long double, and add void *.
14128         (DEFAULT_ALIGNMENT): Use offsetof to compute.
14129         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
14130         not a macro.  Hence the values are always int; so remove all
14131         casts-to-int in uses.
14132
14133 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14134
14135         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
14136         we can get this patch merged into glibc.
14137
14138 2004-05-17  Derek R. Price  <derek@ximbiot.com>
14139             Paul Eggert  <eggert@cs.ucla.edu>
14140
14141         * m4/argp: Depend on alloca.
14142
14143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
14144             Paul Eggert  <eggert@cs.ucla.edu>
14145
14146         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
14147         freecoding.
14148
14149 2004-05-17  Bruno Haible  <bruno@clisp.org>
14150
14151         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
14152         precision that consists of a '.' followed by an empty digit string.
14153         Patch by Tor Lillqvist <tml@iki.fi>.
14154
14155 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14156
14157         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
14158         for backward compatibility with older code.  We need our own
14159         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
14160         it under some other name, and our alloca.h will define it.
14161
14162 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14163             Derek Price  <derek@ximbiot.com>
14164
14165         * lib/alloca.c: Include <alloca.h>, to get our interface.
14166         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
14167         include <alloca.h> first.  Use C89 prototype for alloca; this
14168         requires including <stddef.h> for size_t.  Use extern "C" if C++.
14169         Use #elif for simplicity, since we can assume C89 now.
14170         Don't try to source the system alloca.h since it will not be found
14171         and to prevent recursively including its replacement.
14172         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
14173         * lib/regex.c: Likewise.
14174
14175 2004-05-16  Derek Price  <derek@ximbiot.com>
14176             Paul Eggert  <eggert@cs.ucla.edu>
14177
14178         getline cleanup.  This changes the getndelim2 API: both order of
14179         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
14180         no delimiter).
14181
14182         * lib/getline.c: Don't include stddef.h or stdio.h, since our
14183         interface does that.
14184         (getline): Always use getdelim, so that we don't have two
14185         copies of this code.
14186         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
14187         if available.
14188         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
14189         (GETNDELIM2_MAXIMUM): New macro.
14190         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
14191         instead of the old practice of delim2==0.  All callers changed.
14192         Return -1 on overflow, instead of returning junk.
14193         Do not set *linesize unless allocation succeeds.
14194         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
14195         that we include sys/types.h.
14196         * lib/getnline.h: Likewise.
14197         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
14198         (getndelim2): Reorder arguments.
14199         * lib/getnline.c (getnline, getndelim):
14200         Don't discard the NMAX argument.
14201         (getnline): Invoke getndelim, to avoid code duplication.
14202         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
14203         of (size_t) -1 by callers of the getnline family.
14204
14205 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14206
14207         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
14208         Check for gettimeofday.
14209         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
14210         Check for settimeofday, stime.
14211
14212 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14213
14214         * lib/nanosleep.c (suspended): Change its type from int to
14215         sig_atomic_t volatile.
14216         (first_call): Make it private to rpl_nanosleep, and have it
14217         be zero initially as that's a bit faster.
14218         (my_usleep): Round up fractional times instead of truncating them,
14219         as this is the usual meaning for 'sleep'.
14220
14221         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
14222         doesn't work.
14223         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
14224         (ENOSYS): Define if not defined.
14225         (settime): Fall back on stime if it exists and settimeofday fails.
14226         But don't bother with fallbacks if a method fails with errno == EPERM.
14227
14228 2004-05-11  Jim Meyering  <jim@meyering.net>
14229
14230         Prior to this change, the save_cwd caller required read access to the
14231         current directory on most systems (ones with the fchdir function).
14232
14233         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
14234         fails, try write-only, and finally, resort to using xgetcwd.
14235
14236 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
14237
14238         * lib/obstack.c, obstack.h: Import changes from libc.
14239
14240 2004-04-28  Bruno Haible  <bruno@clisp.org>
14241
14242         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
14243         also implicitly appends .exe to executables.
14244         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
14245         accepts Windows pathnames.
14246         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
14247         Treat Cygwin like Windows, since it now accepts Windows pathnames.
14248         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
14249         Treat Cygwin like Windows, since it now accepts Windows pathnames.
14250         Reported by Derek Robert Price <derek@ximbiot.com>.
14251
14252 2004-04-21  Karl Berry  <karl@gnu.org>
14253
14254         * config/srclist.txt (localcharset.c): break sync.
14255
14256 2004-04-20  Paul Eggert  <eggert@twinsun.com>
14257
14258         * m4/host-os.m4: Add a copyright notice.
14259
14260 2004-04-20  Jim Meyering  <jim@meyering.net>
14261
14262         Change UTILS_ to gl_ in AC_DEFINE'd names.
14263         Change utils_- and jm_-prefixed variables, too.
14264         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
14265         UTILS_FUNC_MKDIR_TRAILING_SLASH.
14266         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
14267
14268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
14269         Don't emit trailing blanks.
14270         Also rename jm_-prefixed variables to have gl_ prefix.
14271
14272         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
14273         Also rename jm_-prefixed variables to have gl_ prefix.
14274
14275         * m4/jm-macros.m4: Reflect the renamings.
14276         * m4/prereq.m4: Likewise.
14277
14278 2004-04-20  Jim Meyering  <jim@meyering.net>
14279
14280         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
14281         memory.
14282
14283 2004-04-20  Jim Meyering  <jim@meyering.net>
14284             Bruno Haible  <bruno@clisp.org>
14285
14286         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
14287         memory when realloc fails.
14288
14289 2004-04-19  Jim Meyering  <jim@meyering.net>
14290
14291         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
14292         now that readutmp.c may call `free (0)'.
14293
14294 2004-04-19  Bruno Haible  <bruno@clisp.org>
14295
14296         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
14297         * m4/inttypes_h.m4: Likewise.
14298         * m4/stdint_h.m4: Likewise.
14299         * m4/intmax_t.m4: Likewise.
14300         * m4/uintmax_t.m4: Likewise.
14301
14302 2004-04-18  Jim Meyering  <jim@meyering.net>
14303
14304         * m4/prereq.m4: Don't forbid jm_ prefix.
14305
14306         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
14307         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
14308         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
14309         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
14310         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
14311         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
14312         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
14313         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
14314         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
14315         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
14316         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
14317         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
14318         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
14319         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
14320         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
14321         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
14322         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
14323         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
14324         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
14325
14326 2004-04-18  Jim Meyering  <jim@meyering.net>
14327
14328         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
14329         failure, don't leak memory and do call END_UTMP_ENT.
14330
14331 2004-04-16  Jim Meyering  <jim@meyering.net>
14332
14333         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
14334         coreutils' stat program.
14335         (gl_PREREQ): Don't require jm_PREREQ_STAT.
14336
14337 2004-04-11  Paul Eggert  <eggert@twinsun.com>
14338
14339         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
14340         C89.
14341         (CHAR_BIT): Remove, since we assume C89.
14342         Include <stdint.h> if available, as per current Autoconf CVS advice.
14343
14344 2004-03-31  Jim Meyering  <jim@meyering.net>
14345
14346         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
14347         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
14348         * m4/xalloc.m4: Likewise.
14349
14350 2004-03-30  Paul Eggert  <eggert@twinsun.com>
14351
14352         Merge from coreutils.
14353
14354         * m4/inttostr.m4: New file.
14355         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
14356         Require AM_STDBOOL_H and gl_TIMESPEC instead.
14357         Require gl_CLOCK_TIME.
14358         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
14359
14360 2004-03-30  Paul Eggert  <eggert@twinsun.com>
14361
14362         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
14363         not bool, to be more consistent with Unix conventions.
14364         Suggested by Bruno Haible.
14365
14366         Merge from coreutils.
14367
14368         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
14369         * lib/umaxtostr.c: New files.
14370
14371         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
14372         the usual <time.h> dance.
14373         (get_date): Change signature to support fractional time stamps.
14374         All callers changed.
14375         * lib/getdate.y: Include "getdate.h" first, as we can now
14376         assume C89 and don't need to worry about 'const'.
14377         Similarly, include "unlocked-io.h" near start, not in middle.
14378         Include <limits.h>.
14379         (textint.value): Use long int rather than int.
14380         (textint.digits): Use size_t rather than int.
14381         (BILLION, LOG10_BILLION): New constants.
14382         (parser_control): New member rel_ns.  Members day_ordinal,
14383         time_zone, month, day, hour, minutes, rel_year, rel_month,
14384         rel_day, rel_hour, rel_minutes, rel_seconds
14385         are now long int, not int.  Member seconds is now struct timespec,
14386         not int.  New member timespec_seen.  Members dates_seen, days_seen,
14387         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
14388         not int.
14389         (%union.intval): Now long int, not int.
14390         New member timespec.
14391         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
14392         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
14393         (spec): Now is a timespec or an item list.
14394         (timespec, items): New nonterminals.
14395         (time, rel, relunit, number, get_date):
14396         Add support for fractional seconds.
14397         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
14398         (gmtime, localtime, mktime): Remove decls; not needed with C89.
14399         (to_hour): First arg is now long int, not int.
14400         (to_year): Returns long int, not int.
14401         Don't treat year -70 like 70.
14402         (tm_diff): Returns long int, not int.
14403         (lookup_word): Use bool instead of int when appropriate.
14404         (yylex): Use size_t for count, not int.
14405         Detect overflow when parsing large integer constants.
14406         Add support for fractions.
14407         (get_date): Make pointers 'const' if possible.
14408         Use more-portable code to detect integer overflow.
14409         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
14410         Don't use ctime; it's not reliable if the year has >4 digits.
14411
14412         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
14413         This is for compatibility with BSD.
14414
14415         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
14416         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
14417         From coreutils' system.h.
14418
14419         * lib/userspec.c: Don't include "posixver.h".
14420         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
14421         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
14422         compatible extension.  Simplify code by removing a boolean int
14423         that was always nonzero if a string was nonnull.
14424
14425 2004-03-30  Jim Meyering  <jim@meyering.net>
14426
14427         Merge from coreutils.
14428
14429         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
14430         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
14431         on some systems one must include <grp.h> before it.
14432         Reported by Christian Krackowizer.
14433
14434 2004-03-30  Jim Meyering  <jim@meyering.net>
14435
14436         Merge from coreutils.
14437
14438         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
14439
14440         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
14441         an empty input stream.
14442
14443         * lib/readtokens.c: Include <stdbool.h>.
14444         (readtoken): Use `size_t' rather than int/long.
14445         All callers adjusted.
14446         Use `bool' rather than `int' where appropriate.
14447         Use memset rather than an explicit loop.
14448         Use x2nrealloc rather than xrealloc.
14449         Allow the use of `\0' as a delimiter.
14450         (readtokens): Likewise.
14451         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
14452
14453 2004-03-30  Jim Meyering  <jim@meyering.net>
14454
14455         * m4/realloc.m4: Remove file, since now it does no more than
14456         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
14457         the `configure.ac' section of module/realloc.
14458         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
14459
14460 2004-03-30  Bruno Haible  <bruno@clisp.org>
14461
14462         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
14463         nonnull.
14464
14465 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14466
14467         Merge changes to getloadavg.c from coreutils and Emacs.
14468
14469         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
14470         Define to an expression, not to the empty string.
14471         Include cloexec.h and xalloc.h.
14472         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
14473         Use set_cloexec_flag rather than rolling our own.
14474         * lib/cloexec.c, lib/cloexec.h: New files.
14475
14476 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14477
14478         * m4/cloexec.m4: New file.
14479
14480 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14481
14482         * lib/getopt.h: Sync with libc CVS.
14483
14484 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14485             Bruno Haible  <bruno@clisp.org>
14486
14487         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
14488         mbswidth.
14489
14490 2004-03-18  Paul Eggert  <eggert@twinsun.com>
14491             Bruno Haible  <bruno@clisp.org>
14492
14493         * lib/mbswidth.h: Include <wchar.h> only if
14494         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
14495         <wchar.h>.
14496         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
14497
14498 2004-03-09  Paul Eggert  <eggert@twinsun.com>
14499
14500         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
14501         Sync with libc CVS.
14502         * lib/getopt_int.h: New file, also synced from libc.
14503
14504 2004-03-09  Paul Eggert  <eggert@twinsun.com>
14505
14506         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
14507         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
14508         Bring back getopt.c, getopt.h, getopt1.c.
14509
14510 2004-03-07  Paul Eggert  <eggert@twinsun.com>
14511
14512         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
14513         All uses changed.  Check for sa_sigaction member; this fixes
14514         a bug first reported by Jason Andrade in
14515         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
14516
14517 2004-03-07  Paul Eggert  <eggert@twinsun.com>
14518
14519         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
14520         '#if' expressions.  Unlike the code it replaces, it does not
14521         depend on (defined _SC_PAGESIZE).  However, it does depend on
14522         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
14523         first reported by Jason Andrade in
14524         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
14525
14526 2004-02-25  Simon Josefsson  <jas@extundo.com>
14527
14528         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
14529
14530 2004-02-25  Simon Josefsson  <jas@extundo.com>
14531
14532         * lib/strdup.h: New file.
14533         * lib/strdup.c: Include it.
14534         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
14535         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
14536
14537 2004-02-23  Karl Berry  <karl@gnu.org>
14538
14539         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
14540         (from fencepost.gnu.org:/gd/gnuorg).
14541
14542 2004-02-23  Karl Berry  <karl@gnu.org>
14543
14544         * config/srclistvars.sh (GNUORG) [karl]: redefine.
14545         * config/srclist.txt: add maintain/standards documents.
14546
14547 2004-02-18  Bruno Haible  <bruno@clisp.org>
14548
14549         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
14550         Reported by Derek Robert Price <derek@ximbiot.com>.
14551
14552 2004-02-16  Karl Berry  <karl@gnu.org>
14553
14554         * config/mkinstalldirs, install-sh: update from automake.
14555
14556 2004-02-06  Karl Berry  <karl@gnu.org>
14557
14558         * m4/po.m4: update from gettext 0.14.1.
14559
14560 2004-02-06  Karl Berry  <karl@gnu.org>
14561
14562         * lib/config.charset: update from gettext 0.14.1.
14563
14564 2004-02-05  Paul Eggert  <eggert@twinsun.com>
14565
14566         Add comments and code, prompted by suggestions from Bruno Haible
14567         for sh-quote.
14568         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
14569         describing the enum quoting_style values.
14570         * lib/quotearg.c (quotearg_alloc): New function.
14571         (quotearg_buffer_restyled): Treat lone { and } as special.
14572         Treat = as special.  Work around bug with older shells
14573         that "see" a '\' that is really the 2nd byte of a multibyte char.
14574         Quote empty string with shell_quoting_style.
14575
14576 2004-02-03  Bruno Haible  <bruno@clisp.org>
14577
14578         * m4/pipe.m4: New file, from GNU gettext.
14579
14580 2004-02-03  Bruno Haible  <bruno@clisp.org>
14581
14582         * lib/pipe.h: New file, from GNU gettext.
14583         * lib/pipe.c: New file, from GNU gettext.
14584
14585 2004-01-27  Bruno Haible  <bruno@clisp.org>
14586
14587         * m4/execute.m4: New file, from GNU gettext.
14588
14589 2004-01-27  Bruno Haible  <bruno@clisp.org>
14590
14591         * lib/execute.h: New file, from GNU gettext.
14592         * lib/execute.c: New file, from GNU gettext.
14593         * lib/w32spawn.h: New file, from GNU gettext.
14594
14595 2004-01-24  Paul Eggert  <eggert@twinsun.com>
14596
14597         Merge from diffutils.
14598
14599         * lib/file-type.c (file_type): Add typed memory objects.
14600         * lib/file-type.h (S_TYPEISTMO): New macro.
14601
14602         * lib/c-stack.h (c_stack_action): Remove argv argument.
14603         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
14604         (die): Don't calculate message unless segv_action returns.
14605         (get_stack_location, min_address_from_argv, max_address_from_argv,
14606         volatile stack_base, volatile_stack_size): Remove.
14607         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
14608         that every segmentation violation is a stack overflow.  (Ouch!)
14609         See Debian bug 136249 (still outstanding) for more info about why
14610         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
14611
14612 2004-01-24  Paul Eggert  <eggert@twinsun.com>
14613
14614         Exit-status fix from coreutils.
14615
14616         Use exit_failure consistently in place of EXIT_FAILURE,
14617         so that program exit statuses are consistent on failure.
14618
14619         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
14620         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
14621         * lib/argmatch.h: Comment fix to match the above.
14622         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
14623         Now a macro referring to exit_failure, instead of a separate
14624         variable.  Include "exitfail.h" to get it.
14625         * lib/xstrtol.h: Include "exitfail.h".
14626         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
14627
14628         * lib/long-options.c (parse_long_options): Use prototype
14629         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
14630         for clarity.
14631
14632 2004-01-21  Jim Meyering  <jim@meyering.net>
14633
14634         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
14635         so as not to conflict with a different-sized __mktime_internal
14636         function in GNU libc.
14637         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
14638         Problem building statically-linked `ls' reported by Michael Brunnbauer.
14639
14640 2004-01-20  Karl Berry  <karl@gnu.org>
14641
14642         * config/config.guess: update from config.
14643
14644         * config/srclistvars.sh: GNUWWWLICENSES for karl.
14645
14646 2004-01-20  Bruno Haible  <bruno@clisp.org>
14647
14648         Safer stack allocation.
14649         * lib/setenv.c: Include allocsa.h.
14650         (alloca): Remove fallback definition.
14651         (freea): Remove macro.
14652         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
14653         instead of freea.
14654
14655 2004-01-20  Bruno Haible  <bruno@clisp.org>
14656
14657         * m4/eealloc.m4: New file, from GNU gettext.
14658
14659 2004-01-20  Bruno Haible  <bruno@clisp.org>
14660
14661         * m4/allocsa.m4: New file, from GNU gettext.
14662
14663 2004-01-20  Bruno Haible  <bruno@clisp.org>
14664
14665         * lib/xallocsa.h: New file, from GNU gettext.
14666         * lib/xallocsa.c: New file, from GNU gettext.
14667
14668 2004-01-20  Bruno Haible  <bruno@clisp.org>
14669
14670         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
14671
14672 2004-01-20  Bruno Haible  <bruno@clisp.org>
14673
14674         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
14675         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
14676         specially.
14677
14678 2004-01-20  Bruno Haible  <bruno@clisp.org>
14679
14680         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
14681         patch.
14682
14683 2004-01-20  Bruno Haible  <bruno@clisp.org>
14684
14685         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
14686
14687 2004-01-20  Bruno Haible  <bruno@clisp.org>
14688
14689         * lib/eealloc.h: New file.
14690
14691 2004-01-20  Bruno Haible  <bruno@clisp.org>
14692
14693         * lib/binary-io.h: Avoid warnings on Cygwin.
14694
14695 2004-01-20  Bruno Haible  <bruno@clisp.org>
14696
14697         * lib/allocsa.h: New file, from GNU gettext.
14698         * lib/allocsa.c: New file, from GNU gettext.
14699
14700 2004-01-18  Karl Berry  <karl@gnu.org>
14701
14702         * doc/gpl.texi, doc/lgpl.texi: new files.
14703
14704 2004-01-18  Karl Berry  <karl@gnu.org>
14705
14706         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
14707         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
14708
14709 2004-01-15  Paul Eggert  <eggert@twinsun.com>
14710
14711         Merge from coreutils.
14712
14713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
14714         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
14715         (gl_DEFAULT_POSIX2_VERSION): Move
14716         the documentation from 'configure' into 'config.hin',
14717         so that 'configure --help' isn't burdened by it and
14718         we don't have to worry about its formatting there.
14719         Reword the documentation so that it's more succinct
14720         and can be run together into a single paragraph.
14721         * m4/same.m4 (gl_SAME): Check for pathconf.
14722
14723 2004-01-15  Paul Eggert  <eggert@twinsun.com>
14724
14725         Merge from coreutils.
14726
14727         * lib/posixver.c: Include posixver.h.
14728
14729         * lib/same.c: Include <stdbool.h>, <limits.h>.
14730         (_POSIX_NAME_MAX): Define if not defined.
14731         (MIN): New macro.
14732         (same_name): If file names are silently truncated, report
14733         that the file names are the same if they are the same after
14734         the silent truncation.
14735
14736         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
14737         conversion function.
14738         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
14739         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
14740         longer needed.
14741
14742 2004-01-15  Jim Meyering  <jim@meyering.net>
14743
14744         Merge from coreutils.
14745
14746         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
14747         if no library is required.
14748         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
14749         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
14750         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
14751         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
14752         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
14753         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
14754         value, $ac_cv_search_crypt, if it's "none required".
14755         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
14756         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
14757         not gl_FUNC_GETLOADAVG.
14758         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
14759         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
14760
14761 2004-01-15  Jim Meyering  <jim@meyering.net>
14762
14763         Merge from coreutils.
14764
14765         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
14766         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
14767         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
14768
14769         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
14770         optional configure-time default.
14771
14772         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14773
14774         * lib/xreadlink.c (xreadlink): Correct outdated comment.
14775
14776 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
14777
14778         Merge from coreutils.
14779
14780         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
14781         value, $ac_cv_search_nanosleep, if it's "none required".
14782
14783 2004-01-14  Paul Eggert  <eggert@twinsun.com>
14784
14785         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
14786         with like-named macro in fnmatch.c.
14787         (EXT): Use an internal constant instead.
14788
14789         Merge fnmatch patches from glibc.
14790         * lib/fnmatch.c (mbsinit): Remove define.
14791         Add libc_hidden_ver (__fnmatch, fnmatch).
14792         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
14793         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
14794
14795 2004-01-14  Karl Berry  <karl@gnu.org>
14796
14797         * config/install-sh: update from automake.
14798
14799 2004-01-13  Karl Berry  <karl@gnu.org>
14800
14801         * config/install-sh: update from automake.
14802
14803 2004-01-09  Karl Berry  <karl@gnu.org>
14804
14805         * config/install-sh: update from automake.
14806
14807 2004-01-05  Karl Berry  <karl@gnu.org>
14808
14809         * config/config.{sub,guess}: update from config.
14810
14811 2003-12-31  Karl Berry  <karl@gnu.org>
14812
14813         * config/depcomp: update from automake.
14814
14815 2003-12-14  Karl Berry  <karl@gnu.org>
14816
14817         * lib/config.charset: update from gettext-runtime.
14818
14819 2003-12-03  Paul Eggert  <eggert@twinsun.com>
14820
14821         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
14822         Bug reported by Alfred M. Szmidt.
14823
14824 2003-12-03  Bruno Haible  <bruno@clisp.org>
14825
14826         * m4/gettext.m4: Upgrade from gettext-0.13.
14827         * m4/po.m4: Upgrade from gettext-0.13.
14828         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
14829         * m4/intmax.m4: New file, from gettext-0.13.
14830         * m4/printf-posix.m4: New file, from gettext-0.13.
14831
14832 2003-11-29  Karl Berry  <karl@gnu.org>
14833
14834         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
14835
14836 2003-11-25  Paul Eggert  <eggert@twinsun.com>
14837             Bruno Haible  <bruno@clisp.org>
14838
14839         * lib/printf-parse.h: Don't include sys/types.h.
14840         (ARG_NONE): New macro.
14841         (char_directive): Change type of *arg_index fields to size_t.
14842         * lib/printf-parse.c: Don't include sys/types.h.
14843         (SSIZE_MAX): Remove macro.
14844         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
14845         Remove unnecessary overflow check.
14846         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
14847         fields.
14848
14849 2003-11-25  Bruno Haible  <bruno@clisp.org>
14850
14851         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
14852
14853 2003-11-25  Bruno Haible  <bruno@clisp.org>
14854
14855         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
14856         gt_TYPE_SSIZE_T.
14857
14858 2003-11-24  Paul Eggert  <eggert@twinsun.com>
14859
14860         * modules/alloca: Remove dependency on xalloc.
14861
14862 2003-11-24  Paul Eggert  <eggert@twinsun.com>
14863
14864         * lib/alloca.c: Remove dependency on xalloc module.
14865         (xalloc_die): Remove.
14866         (memory_full) [!defined emacs]: New macro.
14867         [!defined emacs]: Don't include xalloc.h.
14868         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
14869         address arithmetic overflows.  Change datatypes a bit to avoid
14870         unnecessary casts.
14871
14872 2003-11-22  Jim Meyering  <jim@meyering.net>
14873
14874         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
14875         s/size/size_t/.
14876
14877 2003-11-21  Karl Berry  <karl@gnu.org>
14878
14879         * config/config.{sub,guess}: update from config.
14880
14881 2003-11-18  Karl Berry  <karl@gnu.org>
14882
14883         * config/config.{sub,guess}: update from config.
14884
14885         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
14886
14887 2003-11-17  Paul Eggert  <eggert@twinsun.com>
14888
14889         * README: Mention that S+T cannot overflow if S is the size of
14890         an existing object and T is sufficiently small.
14891
14892 2003-11-17  Jim Meyering  <jim@meyering.net>
14893
14894         On systems without utime and without a utimes function capable of
14895         dealing with a NULL struct utimbuf* argument, this utime replacement
14896         could -- in unusual circumstances -- leak a file descriptor.
14897         * lib/utime.c: Include <unistd.h> and <errno.h>.
14898         (utime_null): Be sure to close `fd' and to preserve errno.
14899         Reported by Geoff Collyer via Arnold Robbins.
14900
14901 2003-11-17  Bruno Haible  <bruno@clisp.org>
14902
14903         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
14904         (Depends-on): Add xsize.
14905
14906 2003-11-17  Bruno Haible  <bruno@clisp.org>
14907
14908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
14909
14910 2003-11-17  Bruno Haible  <bruno@clisp.org>
14911
14912         * lib/vasnprintf.c (alloca): Remove fallback definition.
14913         (freea): Remove definition.
14914         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
14915         Reported by Paul Eggert.
14916
14917 2003-11-16  Paul Eggert  <eggert@twinsun.com>
14918             Bruno Haible  <bruno@clisp.org>
14919
14920         Protect against address arithmetic overflow.
14921         * lib/printf-args.h: Include stddef.h.
14922         (arguments): Change type of field 'count' to size_t.
14923         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
14924         'unsigned int' where appropriate.
14925         * lib/printf-parse.h: Include sys/types.h.
14926         (char_directive): Change type of *arg_index fields to ssize_t.
14927         (char_directives): Change type of fields 'count', max_*_length to
14928         size_t.
14929         * lib/printf-parse.c: Include sys/types.h and xsize.h.
14930         (SSIZE_MAX): Define fallback value.
14931         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
14932         instead of 'int' where appropriate. Check a_allocated, d_allocated
14933         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
14934         * lib/vasnprintf.c: Include xsize.h.
14935         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
14936         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
14937         overflow. Avoid wraparound when converting a width or precision from
14938         decimal to binary.
14939
14940 2003-11-16  Bruno Haible  <bruno@clisp.org>
14941
14942         Update from GNU gettext.
14943         * lib/printf-parse.c: Generalize to it can be compiled for wide
14944         strings.
14945         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
14946         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
14947         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
14948         SNPRINTF): New macros.
14949         Don't include <alloca.h> if the file is used inside libintl.
14950         (local_wcslen): New function, for Solaris 2.5.1.
14951         (VASNPRINTF): Use it instead of wcslen.
14952
14953 2003-11-16  Bruno Haible  <bruno@clisp.org>
14954
14955         * lib/xsize.h (xmax): New function.
14956         (xsum, xsum3, xsum4): Declare as "pure" functions.
14957
14958 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14959
14960         * modules/xalloc (Files): Undo latest change, since xalloc.h
14961         no longer needs SIZE_MAX or PTRDIFF_MAX.
14962
14963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14964
14965         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
14966         gl_PTRDIFF_MAX.
14967
14968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14969
14970         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
14971         "return", to pacify some unknown compiler.  Problem reported
14972         by Joerg Schilling.
14973
14974 2003-11-12  Paul Eggert  <eggert@twinsun.com>
14975
14976         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
14977         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
14978         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
14979         heuristic is just as accurate as far as we know, and it removes a
14980         dependency on size_max.m4 and ptrdiff_max.m4.
14981
14982 2003-11-11  Bruno Haible  <bruno@clisp.org>
14983
14984         * modules/xsize (Files): Add m4/size_max.m4.
14985         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
14986
14987 2003-11-11  Bruno Haible  <bruno@clisp.org>
14988
14989         * m4/size_max.m4: New file.
14990         * m4/ptrdiff_max.m4: New file.
14991         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
14992         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
14993         (gl_XALLOC): Invoke it.
14994
14995 2003-11-11  Bruno Haible  <bruno@clisp.org>
14996
14997         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
14998         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
14999         defined.
15000
15001 2003-11-10  Paul Eggert  <eggert@twinsun.com>
15002
15003         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
15004         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
15005         rejected some allocations of exactly SIZE_MAX - 2 bytes.
15006         From Bruno Haible.
15007         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
15008         not (size_t) -1, since it's defined here.
15009
15010 2003-11-09  Karl Berry  <karl@gnu.org>
15011
15012         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
15013
15014 2003-11-06  Paul Eggert  <eggert@twinsun.com>
15015
15016         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
15017         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
15018         Reject sizes of exactly SIZE_MAX bytes.
15019         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
15020         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
15021
15022 2003-11-05  Bruno Haible  <bruno@clisp.org>
15023
15024         * lib/xsize.h: Include limits.h, to avoid a possible collision with
15025         SIZE_MAX defined in <limits.h> on Solaris.
15026
15027 2003-11-04  Jim Meyering  <jim@meyering.net>
15028
15029         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
15030         variable names, rather than @VAR@.
15031         * modules/poll: Likewise.
15032
15033 2003-11-04  Bruno Haible  <bruno@clisp.org>
15034
15035         * modules/xsize: New file.
15036         * modules/linebreak: Depend on xsize.
15037         * MODULES.html.sh (func_all_modules): Add xsize.
15038
15039 2003-11-04  Bruno Haible  <bruno@clisp.org>
15040
15041         * m4/xsize.m4: New file.
15042
15043 2003-11-04  Bruno Haible  <bruno@clisp.org>
15044
15045         * lib/xsize.h: New file.
15046         * lib/linebreak.c: Include xsize.h.
15047         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
15048         argument for overflow.
15049         Suggested by Paul Eggert.
15050
15051 2003-11-03  Karl Berry  <karl@gnu.org>
15052
15053         * config/config.{guess,sub}: update from config.
15054
15055 2003-11-03  Jim Meyering  <jim@meyering.net>
15056
15057         * modules/userspec (lib_SOURCES): Add userspec.h.
15058         (Include): Add "userspec.h".
15059         Improve description.
15060
15061 2003-11-03  Jim Meyering  <jim@meyering.net>
15062
15063         * lib/userspec.c: Include "userspec.h".
15064         * lib/userspec.h: New file.
15065
15066 2003-11-03  Bruno Haible  <bruno@clisp.org>
15067
15068         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
15069
15070 2003-11-03  Bruno Haible  <bruno@clisp.org>
15071
15072         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
15073         available, to avoid (extremely rare) race condition.
15074         Suggested by Paul Eggert.
15075
15076 2003-11-02  Karl Berry  <karl@gnu.org>
15077
15078         * config/srclist.txt (vasprintf.c): sync broken, sigh.
15079
15080 2003-10-31  Paul Eggert  <eggert@twinsun.com>
15081
15082         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
15083         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
15084         (read_filesystem_list): Set and use me_type_malloced.
15085         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
15086         whatever the type happens to be), for brevity and consistency.
15087         Check for size calculation overflow on Alphas running OSF/1.
15088
15089 2003-10-31  Jim Meyering  <jim@meyering.net>
15090
15091         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
15092
15093         * lib/linebuffer.c: Include <string.h> for declaration of memset.
15094
15095 2003-10-30  Paul Eggert  <eggert@twinsun.com>
15096             Bruno Haible  <bruno@clisp.org>
15097
15098         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
15099         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
15100
15101 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15102
15103         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
15104         netbsd*-gnu*.  Suggested by Robert Millan.
15105
15106 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15107
15108         * modules/group-member: Depend on stdbool.
15109
15110 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15111
15112         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
15113
15114 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15115
15116         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
15117         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
15118         after the 'gnu' in these cases.  This fixes some bugs in the
15119         previous change, and is based on suggestions by Robert Millan.
15120
15121 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15122
15123         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
15124         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
15125         no longer needed.
15126         * lib/quotearg.c (quotearg_n_options): Use it.
15127         * lib/group-member.c: Include <stdbool.h>.
15128         (free_group_info): Arg is now const *; don't free arg.
15129         (get_group_info): Now returns bool and accepts struct group_info *,
15130         rather than returning a malloc'ed struct group_info *.
15131         All uses changed.  Check for overflow in internal size calculation.
15132
15133         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
15134         rather than xmalloc/xrealloc.
15135         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
15136         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
15137         conformance bug: the old code used a pointer after freeing the
15138         storage that it addressed.
15139         * lib/hash.c (hash_initialize): Simplify the code by using
15140         xalloc_oversized rather than doing it by hand.
15141         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
15142         the buffer preserved.  Use free and xmalloc instead.
15143         * lib/quotearg.c (quotearg_n_options): Likewise.
15144         Use a simpler test for size overflow.  Don't use xalloc_oversized
15145         because unsigned int might be wider than size_t (!); this suggests
15146         that we should switch from unsigned int to size_t for slot numbers.
15147
15148 2003-10-28  Paul Eggert  <eggert@twinsun.com>
15149
15150         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
15151         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
15152         NetBSD kernels.  Requested by Richard Stallman.
15153
15154 2003-10-27  Paul Eggert  <eggert@twinsun.com>
15155
15156         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
15157         to allocate the returned structure.  Do not allocate a subarray,
15158         as x2nrealloc will do that.
15159         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
15160         instead of xnrealloc.
15161         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
15162
15163 2003-10-27  Bruno Haible  <bruno@clisp.org>
15164
15165         * lib/stdbool_.h: Better support for BeOS.
15166
15167 2003-10-26  Paul Eggert  <eggert@twinsun.com>
15168
15169         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
15170         now uses inline.
15171
15172 2003-10-26  Paul Eggert  <eggert@twinsun.com>
15173
15174         * lib/xalloc.h (xalloc_oversized): New static inline function, for
15175         callers that want to do their own size-overflow checking.  Include
15176         <stdbool.h>, since xalloc_oversized returns bool.
15177         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
15178         to use xalloc_oversized.
15179
15180         Add two functions x2realloc, x2nrealloc, for programs that grow
15181         arrays dynamically by doubling their sizes.
15182         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
15183         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
15184         New functions.
15185
15186         Port to C99 semantics for 'inline' of external functions.
15187         Bug reported by Bruno Haible.
15188         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
15189         with the old contents of xnmalloc.
15190         (xnmalloc, xmalloc): Use it.
15191         (xnrealloc_inline): New static inline function,
15192         with the old contents of xnrealloc.
15193         (xnrealloc, xrealloc): Use it.
15194
15195         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
15196         that.
15197
15198 2003-10-26  Karl Berry  <karl@gnu.org>
15199
15200         * config/srclist.txt (COPYING.DOC): no longer available from
15201         /gd/gnuorg; don't know where the ultimate source is.
15202
15203 2003-10-25  Paul Eggert  <eggert@twinsun.com>
15204
15205         Fix several address-calculation bugs in the hash modules,
15206         plus some minor code cleanup.
15207
15208         * lib/hash.h: Include <stdbool.h>, for bool.
15209         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
15210         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
15211         hash_get_n_entries, hash_get_max_bucket_length,
15212         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
15213         hash_rehash): Use size_t rather than unsigned.
15214         * lib/hash.c (struct hash_table, hash_get_n_buckets,
15215         hash_get_n_buckets_used, hash_get_n_entries,
15216         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
15217         hash_get_entries, hash_do_for_each, hash_string, is_prime,
15218         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
15219         Likewise.
15220         (SIZE_MAX): Define if not defined.
15221         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
15222         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
15223         hash_print):
15224         Use const * when possible.
15225         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
15226         (check_tuning): Fix bug: if tuning parameters were very close to
15227         0 or 1, rounding errors could have caused subscript violations.
15228         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
15229         (hash_initialize): Add 'fail:' label
15230         to free table and return NULL, and use it to simplify code.
15231         Use calloc rather than clearing the storage ourself.
15232         (hash_initialize, hash_rehash): Check for arithmetic overflow in
15233         buffer size calculations.
15234         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
15235         Include <stddef.h>, for size_t.
15236         * lib/hash-pjw.c (hash_pjw): Likewise.
15237         Switch to method described by Bruno Haible.
15238         Include <limits.h>, for CHAR_BIT.
15239         (SIZE_BITS): New macro.
15240
15241 2003-10-23  Paul Eggert  <eggert@twinsun.com>
15242
15243         * m4/getline.m4 (AM_FUNC_GETLINE):
15244         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
15245         hosts.  Problem reported by Derek Robert Price in
15246         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
15247         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
15248         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
15249
15250 2003-10-21  Paul Eggert  <eggert@twinsun.com>
15251
15252         * lib/getndelim2.c (getndelim2): When size calculation overflows,
15253         ceiling the allocation at NMAX bytes rather than silently
15254         discarding input bytes before NMAX is reached.  This makes
15255         a difference only if NMAX exceeds SIZE_MAX / 2.
15256
15257         * lib/obstack.c: Merge from glibc.
15258         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
15259         Add libc_hidden_def (_obstack_newchunk).
15260         (_obstack_free) [! defined _LIBC]: Remove.
15261         [defined _LIBC]: Make a strong alias from obstack_free, rather than
15262         a clone of the function body.
15263         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
15264         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
15265
15266         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
15267         glibc.
15268         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
15269         arg to memcpy.
15270
15271         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
15272         (obstack_ptr_grow_fast, obstack_int_grow_fast):
15273         Don't use lvalue casts, as GCC plans to remove support for them
15274         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
15275         was also present in the non-GCC version, indicating that this
15276         code had always been buggy and had never been widely used.
15277         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
15278         Use the fast variant of each macro, rather than copying the
15279         definiens of the fast variant; that way, we'll be more likely to
15280         catch future bugs in the fast variants.
15281
15282 2003-10-20  Bruno Haible  <bruno@clisp.org>
15283
15284         * modules/wait-process: New file.
15285         * MODULES.html.sh (func_all_modules): Add wait-process.
15286
15287 2003-10-20  Bruno Haible  <bruno@clisp.org>
15288
15289         * m4/wait-process.m4: New file.
15290
15291 2003-10-20  Bruno Haible  <bruno@clisp.org>
15292
15293         * lib/wait-process.h: New file, from GNU gettext.
15294         * lib/wait-process.c: New file, from GNU gettext.
15295
15296 2003-10-19  Jim Meyering  <jim@meyering.net>
15297
15298         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
15299         HPUX 10.20.
15300
15301 2003-10-18  Karl Berry  <karl@gnu.org>
15302
15303         * config/config.guess: update from config.
15304
15305 2003-10-16  Paul Eggert  <eggert@twinsun.com>
15306
15307         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
15308         (getgroups): First arg is int, not size_t.
15309         Don't let 'free' mangle errno.
15310
15311 2003-10-16  Paul Eggert  <eggert@twinsun.com>
15312
15313         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
15314
15315 2003-10-16  Karl Berry  <karl@gnu.org>
15316
15317         * config/config.{guess,sub}: update from config.
15318
15319 2003-10-16  Jim Meyering  <jim@meyering.net>
15320
15321         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
15322         memcpy.
15323
15324 2003-10-15  Paul Eggert  <eggert@twinsun.com>
15325
15326         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
15327         (SIZE_MAX): Remove.
15328         (new_exclude, add_exclude_file): Initial size no longer needs to
15329         be a power of 2.
15330         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
15331         our own address arithmetic overflow checking.
15332
15333         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
15334         (fnmatch): Do not alloca more than 2000 wide characters;
15335         instead, use malloc for large buffers.
15336         Check for address arithmetic overflow, and return -1
15337         with errno set to ENOMEM in that case.
15338         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
15339         (NEW_PATTERN): Do not alloca more than 8000 bytes;
15340         instead, return -1.  Check for address arithmetic overflow.
15341
15342 2003-10-14  Paul Eggert  <eggert@twinsun.com>
15343
15344         Handle invalid suffixes and overflow independently, so that
15345         callers can treat them independently as needed.  Fix some bugs in
15346         suffix handling, e.g., "100k@" was not diagnosed as an invalid
15347         suffix for a human-readable blocksize.  The major caller-visible
15348         change is the addition of a new
15349         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
15350         that both overflow and suffix chars were found.
15351
15352         * lib/human.c (humblock): Don't check separately for invalid suffix
15353         char; that is xstrtoumax's job (now that its bug is fixed).
15354         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
15355         INTMAX_MAX]: New macros.
15356         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
15357         TYPE_MAXIMUM): New macros.
15358         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
15359         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
15360         if overflow occurs, as it's what __strtol does and it's more useful
15361         in practice.
15362         (__xstrtol): If __strtol reports some error other than ERANGE,
15363         reflect it to the caller as LONGINT_INVALID.  If it reports
15364         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
15365         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
15366         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
15367         value.
15368         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
15369         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
15370         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
15371         [defined UINTMAX_MAX]: New macros.
15372
15373 2003-10-14  Bruno Haible  <bruno@clisp.org>
15374
15375         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
15376
15377 2003-10-14  Bruno Haible  <bruno@clisp.org>
15378
15379         * m4/sig_atomic_t: New file, from GNU gettext.
15380         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
15381
15382 2003-10-14  Bruno Haible  <bruno@clisp.org>
15383
15384         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
15385         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
15386         Also use volatile where needed.
15387
15388 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15389
15390         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
15391         Change maintainer from Bruno Haible to 'all'.
15392
15393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15394
15395         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
15396
15397 2003-10-12  Paul Eggert  <eggert@twinsun.com>
15398
15399         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
15400         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
15401         and define in terms of the other primitives.
15402         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
15403         (SIZE_MAX): Define if not already defined.
15404         (array_size_overflow): New function.
15405         (xalloc_die): Abort instead of exiting if 'error' returns.
15406         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
15407         (xmalloc, xrealloc): Use them.
15408         (xcalloc): Check for address arithmetic overflow.
15409         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
15410         a bit faster than strcpy.
15411
15412 2003-10-10  Simon Josefsson  <jas@extundo.com>
15413
15414         * modules/argp (Depends-on): Add restrict and strcase.
15415
15416 2003-10-10  Simon Josefsson  <jas@extundo.com>
15417
15418         * m4/argp.m4: Add AC_C_INLINE.
15419
15420 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15421
15422         Merge getpass from libc, plus a few fixes.
15423
15424         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
15425         Include <stdbool.h>.
15426         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
15427         __fsetlocking to empty.
15428         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
15429         do include <bits/libc-lock.h>.
15430         Do not include <fcntl.h>; not needed.
15431         [_LIBC]: Include <wchar.h>.
15432         (NOTCANCEL_MODE): New macro.
15433         (flockfile, funlockfile) [_LIBC]: New macros.
15434         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
15435         [!_LIBC]: New macros.
15436         (call_fclose): New function.
15437         (getpass): Use it.  Save tty stream separately; this simplifies the
15438         code and makes it more reliable if stdin happens to equal stdout.
15439         Invoke __fsetlocking on tty.
15440         Handle thread cancellation if needed.
15441         Namespace cleanup (use __tcgetattr, __getline).
15442         Use bool for Booleans.
15443         [USE_IN_LIBIO]: Handle wide streams.
15444         [!_LIBC]: Unconditionally do the fseek, since we don't know what
15445         stream might go where.
15446
15447         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
15448         doesn't have to include <stdio.h> before us.
15449         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
15450         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
15451         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
15452         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
15453         if not declared, so that we can use getpass.c code from libc without
15454         rewriting it.
15455         (flockfile, ftrylockfile, funlockfile): New macros.
15456
15457 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15458
15459         * modules/getpass: Depend on stdbool.
15460
15461 2003-10-08  Paul Eggert  <eggert@twinsun.com>
15462
15463         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
15464
15465 2003-10-07  Karl Berry  <karl@gnu.org>
15466
15467         * config/config.{guess,sub}: update from config.
15468
15469 2003-10-06  Jim Meyering  <jim@meyering.net>
15470             Bruno Haible  <bruno@clisp.org>
15471
15472         This lets translators provide better translations for the
15473         "Written by ..." part of --version output.
15474         * lib/version-etc.h: Include stdarg.h.
15475         (version_etc_copyright): Declare as readonly.
15476         (version_etc): Make this function variadic with a NULL-terminated list
15477         of author name strings.
15478         (version_etc_va): New declaration.
15479         * lib/version-etc.c: Include stdarg.h, stdlib.h.
15480         (version_etc_copyright): Declare as readonly.
15481         (version_etc_va): New function. Provide a different translatable string
15482         for each possible number of authors < 10. Abbreviate when there are 10
15483         authors or more.
15484         (version_etc): Make this function variadic. Call version_etc_va.
15485         Suggestion from Gary V. Vaughan.
15486
15487         * lib/long-options.h (parse_long_options): Change prototype: the
15488         authors string is moved to the end and becomes variadic.
15489         * lib/long-options.c: Include stdarg.h.
15490         (parse_long_options): Make this function variadic, too.
15491         Call version_etc_va, not version_etc.
15492
15493 2003-10-06  Bruno Haible  <bruno@clisp.org>
15494
15495         * modules/version-etc-2: Remove file.
15496         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
15497
15498 2003-10-06  Bruno Haible  <bruno@clisp.org>
15499
15500         * modules/fatal-signal: New file.
15501         * MODULES.html.sh (func_all_modules): Add fatal-signal.
15502
15503 2003-10-06  Bruno Haible  <bruno@clisp.org>
15504
15505         * m4/fatal-signal.m4: New file.
15506         * m4/signalblocking.m4: New file, from GNU gettext.
15507
15508 2003-10-06  Bruno Haible  <bruno@clisp.org>
15509
15510         * lib/version-etc-2.h: Remove file.
15511         * lib/version-etc-2.c: Remove file.
15512
15513 2003-10-06  Bruno Haible  <bruno@clisp.org>
15514
15515         * lib/fatal-signal.h: New file, from GNU gettext.
15516         * lib/fatal-signal.c: New file, from GNU gettext.
15517
15518 2003-10-05  Paul Eggert  <eggert@twinsun.com>
15519
15520         * README: Rework advice for preventing empty .o files.
15521         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
15522         not <sys/types.h>.
15523
15524 2003-10-04  Karl Berry  <karl@gnu.org>
15525
15526         * lib/argp*: update from libc.
15527
15528 2003-10-04  Karl Berry  <karl@gnu.org>
15529
15530         * config/config.{guess,sub}: update from config.
15531
15532 2003-10-02  Bruno Haible  <bruno@clisp.org>
15533
15534         * modules/lchown (Include): Add lchown.h.
15535         * modules/time_r (Include): Use "..." syntax.
15536         * modules/xgetdomainname (Include): Add xgetdomainname.h.
15537
15538 2003-10-01  Simon Josefsson  <jas@extundo.com>
15539
15540         * MODULES.html.sh (func_all_modules): Move gethostname from section
15541         'based on' to section 'lacking' POSIX:2001.
15542
15543 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
15544
15545         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
15546         to output mode on the same stream.
15547
15548 2003-09-29  Paul Eggert  <eggert@twinsun.com>
15549
15550         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
15551         Fix arg typo in previous patch.
15552
15553 2003-09-28  Jim Meyering  <jim@meyering.net>
15554
15555         * lib/error.c: Correct cpp indentation.
15556
15557 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15558
15559         * modules/free: New file.
15560
15561 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15562
15563         * m4/free.m4: New file.
15564
15565 2003-09-27  Paul Eggert  <eggert@twinsun.com>
15566
15567         * lib/minmax.h (MIN, MAX)
15568         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
15569         Omit the special code that used __typeof__, since we worry that
15570         it could be more trouble than it's worth.  See:
15571         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
15572         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
15573
15574         * lib/free.c: New file.
15575
15576 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
15577
15578         Trivial fixes to Makefile.am parts of module listings.
15579         * modules/strstr: Append strstr.h to lib_SOURCES.
15580         * modules/strcase: Likewise, for strcase.h.
15581
15582 2003-09-27  Karl Berry  <karl@gnu.org>
15583
15584         * config/mkinstalldirs: update from automake.
15585
15586 2003-09-26  Paul Eggert  <eggert@twinsun.com>
15587
15588         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
15589         (error_tail): Do not loop, reallocating temporary buffer, since
15590         the output cannot contain more wide characters than the input
15591         contains bytes, the size must be big enough already.  This avoids
15592         one potential size overflow calculation.  Check for size overflow
15593         when calculating temporary buffer size.  Free temporary buffer
15594         when done, if it was allocated with malloc; this plugs a memory
15595         leak.  Remove casts from void * to pointers, that are no longer
15596         needed now that we're assuming C89 or better.
15597
15598         Merge error changes from glibc.
15599
15600         * lib/error.c, error.h: Update copyright notice header to match glibc.
15601         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
15602         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
15603         Disable cancellation while printing error.
15604         * lib/error.h: Prepend __ to parameter names.
15605
15606 2003-09-26  Jim Meyering  <jim@meyering.net>
15607
15608         * lib/error.c (error_tail): Move some declarations
15609         into inner scope where the local variables are used.
15610
15611 2003-09-26  Bruno Haible  <bruno@clisp.org>
15612
15613         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
15614         stpncpy().
15615         Don't define stpncpy through config.h; it's now done through stpncpy.h.
15616
15617 2003-09-26  Bruno Haible  <bruno@clisp.org>
15618
15619         * lib/stpncpy.h (gnu_stpncpy): New declaration.
15620         (stpncpy): Define as alias for gnu_stpncpy.
15621         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
15622
15623 2003-09-25  Simon Josefsson  <jas@extundo.com>
15624
15625         * lib/xgetdomainname.h: New file.
15626         * lib/xgetdomainname.c: New file.
15627
15628 2003-09-25  Simon Josefsson  <jas@extundo.com>
15629             Bruno Haible  <bruno@clisp.org>
15630
15631         * modules/getdomainname: New file.
15632         * modules/xgetdomainname: New file.
15633         * MODULES.html.sh (func_all_modules): Add getdomainname,
15634         xgetdomainname.
15635
15636 2003-09-25  Simon Josefsson  <jas@extundo.com>
15637             Bruno Haible  <bruno@clisp.org>
15638
15639         * m4/getdomainname.m4: New file.
15640
15641 2003-09-25  Simon Josefsson  <jas@extundo.com>
15642             Bruno Haible  <bruno@clisp.org>
15643
15644         * lib/getdomainname.h: New file.
15645         * lib/getdomainname.c: New file.
15646
15647 2003-09-25  Karl Berry  <karl@gnu.org>
15648
15649         * lib/argp-fmtstream.c, argp-help.c: update from libc.
15650
15651 2003-09-25  Karl Berry  <karl@gnu.org>
15652
15653         * config/install-sh: update from automake.
15654
15655 2003-09-25  Bruno Haible  <bruno@clisp.org>
15656
15657         * modules/version-etc-2: New file, from modules/version-etc with
15658         modifications.
15659         * MODULES.html.sh (func_all_modules): Add version-etc-2.
15660
15661 2003-09-25  Bruno Haible  <bruno@clisp.org>
15662
15663         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
15664         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
15665
15666 2003-09-24  Simon Josefsson  <jas@extundo.com>
15667
15668         * modules/xgethostname: Add xgethostname.h.
15669
15670 2003-09-24  Paul Eggert  <eggert@twinsun.com>
15671
15672         * lib/linebuffer.c (freebuffer): Don't free the argument, just
15673         the buffer associated with the argument.  Bug reported by
15674         Simon Josefsson.
15675
15676 2003-09-24  Paul Eggert  <eggert@twinsun.com>
15677
15678         * README: Document assumptions that 'int' is at least 32 bits
15679         wide, that integer arithmetic is 2's complement without overflow,
15680         that there are no holes in integer values, that adding sizes of
15681         two nonoverlapping objects can't overflow, and that all-bits-zero
15682         yields scalar zero.  Fix spelling and capitalization typos.
15683
15684 2003-09-19  Karl Berry  <karl@gnu.org>
15685
15686         * lib/argp.h: update from libc.
15687
15688 2003-09-17  Paul Eggert  <eggert@twinsun.com>
15689
15690         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
15691         to avoid spurious warnings like "AC_RUN_IFELSE was called before
15692         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
15693
15694 2003-09-17  Paul Eggert  <eggert@twinsun.com>
15695
15696         * gnulib-tool: Use "test -h", not "test -L", for portability
15697         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
15698         (tags_regexp): Remove, since \| doesn't conform to POSIX.
15699         (sed_extract_prog): Issue s commands one-by-one, rather than
15700         using \| in one s command.
15701
15702 2003-09-16  Paul Eggert  <eggert@twinsun.com>
15703
15704         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
15705         input error, instead of returning NULL the next time we are called
15706         (and therefore losing track of errno).
15707
15708 2003-09-16  Bruno Haible  <bruno@clisp.org>
15709
15710         * gnulib-tool (func_create_testdir): Warn about duplicated
15711         dependencies.
15712
15713 2003-09-15  Paul Eggert  <eggert@twinsun.com>
15714
15715         * modules/argmatch, modules/fatal, modules/obstack,
15716         modules/xalloc, modules/xgethostname: Sort dependencies by
15717         importance, not alphabetically.
15718
15719 2003-09-15  Paul Eggert  <eggert@twinsun.com>
15720
15721         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
15722         fails, so that the caller gets the proper errno.
15723
15724         * lib/readutmp.c (read_utmp): Likewise.
15725         Check for fstat error.  Close stream and free storage
15726         when failing.
15727
15728 2003-09-14  Karl Berry  <karl@gnu.org>
15729
15730         * config/srclist.txt (strdup.c): disable for c89 changes.
15731
15732 2003-09-14  Jim Meyering  <jim@meyering.net>
15733
15734         * lib/getloadavg.c: Correct cpp indentation.
15735         * lib/strdup.c: Likewise.
15736         * lib/vasnprintf.c: Likewise.
15737
15738 2003-09-14  Bruno Haible  <bruno@clisp.org>
15739
15740         * modules/fwriteerror: New file.
15741         * MODULES.html.sh (func_all_modules): Add fwriteerror.
15742
15743 2003-09-14  Bruno Haible  <bruno@clisp.org>
15744
15745         * lib/fwriteerror.h: New file.
15746         * lib/fwriteerror.c: New file.
15747
15748 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15749
15750         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
15751         modules/xgethostname, modules/xalloc: Depend on exit.
15752
15753 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15754
15755         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
15756
15757         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
15758         and AC_MINIX, too, so that their extensions are available.
15759
15760         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
15761         This macro has been superseded by gl_BACKUPFILE.
15762
15763         More patches to assume C89 or better.
15764
15765         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
15766
15767         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
15768         unconditionally.
15769         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
15770         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
15771         Include <string.h>, <stdlib.h> unconditionally.
15772         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
15773         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
15774         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
15775         headers or for string.h.
15776         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
15777         or strtoul.
15778
15779         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
15780         headers.
15781         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
15782         * m4/userspec.m4 (gl_USERSPEC): Likewise.
15783         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
15784         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
15785         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
15786         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
15787         memcpy, memset.
15788         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
15789         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
15790         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
15791         strtol.
15792         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
15793         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
15794         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
15795         strtoul.
15796
15797 2003-09-12  Paul Eggert  <eggert@twinsun.com>
15798
15799         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
15800         * lib/obstack.c [!defined _LIBC]: Likewise.
15801         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
15802         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
15803         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
15804
15805         More changes to assume C89 or better.
15806
15807         * lib/error.c (error_tail): Assume vprintf.
15808
15809         * lib/argmatch.c (getenv): Remove decl.
15810         * lib/progreloc.c (get_full_program_name): Define via prototype.
15811         * lib/setenv.c (clearenv): Likewise.
15812         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
15813         needed.
15814         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
15815         (malloc, memcpy): Remove decls.
15816         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
15817         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
15818         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
15819         (memcpy): Remove macro.
15820         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
15821         (__P): Remove.  All uses removed.
15822         (PTR): Remove.  All uses changed to void *.
15823         (CHAR_BIT, NULL): Remove.
15824         (spaces, zeros, memset_space, memset_zero)
15825         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
15826         Remove.
15827         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
15828         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
15829         Define with prototype.
15830         Remove now-unnecessary prototype decl.
15831         (extra_args_spec): Assume ANSI C.  All uses changed.
15832         (extra_args_spec_iso): Remove.
15833         (my_strftime, emacs_strftimeu): Define via prototype.
15834         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
15835         unconditionally.
15836         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
15837         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
15838         (strtoul, strtol): Remove decls.
15839         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
15840         LONG_MAX): Remove.
15841         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
15842         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
15843         (LOCALE_PARAM_PROTO): New macro.
15844         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
15845         (INTERNAL (strtol), strtol): Define with a prototype.
15846         (PARAMS): Remove.  All uses removed.
15847         * lib/tempname.c: Include <string.h> unconditionally.
15848         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
15849         * lib/xgethostname.c (main): Define with a prototype.
15850         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
15851         Include <stdlib.h> unconditionally.
15852         (calloc, malloc, realloc, free): Remove decls.
15853         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
15854         Include <stdlib.h> unconditionally.  Sort include file names.
15855         (strtod): Remove.
15856         (xstrtod): Define with a prototype.
15857         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
15858         (strtol, strtoul): Remove decls.
15859
15860 2003-09-11  Paul Eggert  <eggert@twinsun.com>
15861
15862         More patches to assume C89 or better.
15863         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
15864         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
15865         string.h, memchr, STDC_HEADERS.
15866
15867 2003-09-11  Paul Eggert  <eggert@twinsun.com>
15868
15869         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
15870         Include <stdlib.h>, <string.h> unconditionally.
15871         Remove now-unnecessary cast to char *.
15872         * lib/strnlen.c: Include <string.h> unconditionally.
15873         * lib/yesno.c (yesno): Define with a prototype.
15874
15875 2003-09-11  Bruno Haible  <bruno@clisp.org>
15876
15877         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
15878
15879 2003-09-10  Jim Meyering  <jim@meyering.net>
15880
15881         * lib/error.c: Correct indentation of cpp directives.
15882
15883 2003-09-10  Bruno Haible  <bruno@clisp.org>
15884
15885         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
15886         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
15887         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
15888         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
15889         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
15890         <stdlib.h> and <string.h> checks.
15891         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
15892         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
15893
15894 2003-09-10  Bruno Haible  <bruno@clisp.org>
15895
15896         * lib/strcspn.c: Include <string.h> unconditionally.
15897         * lib/strpbrk.c: Include <string.h> unconditionally.
15898         * lib/strstr.c: Include <string.h> unconditionally.
15899         * lib/unicodeio.c: Include <string.h> unconditionally.
15900         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
15901         * lib/unsetenv.c: Likewise.
15902         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
15903         * lib/yesno.c: Include <stdlib.h> unconditionally.
15904         (rpmatch): Add prototype.
15905
15906 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15907
15908         More patches to assume C89 or better.
15909         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
15910         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
15911         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
15912         or for string.h.
15913         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
15914         stdlib.h.
15915         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
15916         C headers.
15917         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
15918         string.h.
15919         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
15920         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
15921         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
15922         or for string.h.
15923         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
15924         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
15925         C headers.
15926         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
15927         memcpy.
15928         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
15929         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
15930         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
15931         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
15932         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
15933         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
15934         string.h, free.
15935         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
15936         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
15937         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
15938         C headers, or for string.h.
15939         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
15940         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
15941         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
15942         headers, memory.h, stdlib.h, string.h, strings.h.
15943         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
15944         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
15945         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
15946         strchr.
15947         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
15948         headers, memory.h, string.h.
15949         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
15950         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
15951         free.
15952         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
15953         headers.
15954         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
15955         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
15956         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
15957         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
15958         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
15959
15960 2003-09-09  Paul Eggert  <eggert@twinsun.com>
15961
15962         More K&R removal.
15963
15964         * lib/acosl.c (main): Use a prototype.
15965         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
15966         tanl.c: Likewise.
15967
15968         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
15969
15970         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
15971         (getopt, etopt_long, getopt_long_only, _getopt_internal)
15972         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
15973         with a prototype.
15974         * lib/getopt.c (const): Remove macro.
15975         Include <string.h> unconditionally.
15976         (my_index): Remove; all uses changed to strchr.
15977         (strlen): Remove decl.
15978         (exchange): Remove forward decl; no longer needed.
15979         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
15980         Define with prototype.
15981         * lib/getopt1.c (const): Remove macro.
15982         (getopt_long, getopt_long_only, main): Define with prototype.
15983
15984         * lib/getugroups.c: Include <string.h> unconditionally.
15985
15986         * lib/getusershell.c: Include <stdlib.h> unconditionally.
15987         (getusershell, setusershell, endusershell, readname, main):
15988         Define with prototypes.
15989
15990         * lib/group-member.c: Include group-member.h first.
15991         Include <stdlib.h> unconditionally.
15992
15993         * lib/hard-locale.c: Include hard-locale.h first.
15994         Include <stdlib.h>, <string.h> unconditionally.
15995
15996         * lib/hash.c (free, malloc): Remove decls.
15997         Include <stdlib.h> unconditionally.
15998
15999         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
16000         (getenv): Do not declare.
16001
16002         * lib/idcache.c: Include <string.h> unconditionally.
16003
16004         * lib/long-options.c: Include long-options.h first, to test interface.
16005         Include <stdlib.h> unconditionally.
16006
16007         * lib/makepath.c: Include makepath.h first, to test interface.
16008         Include <stdlib.h> and <string.h> unconditionally.
16009
16010         * lib/linebuffer.c: Include <stdlib.h>.
16011         (free): Remove decl.
16012
16013         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
16014         stddef.h. rpl_malloc returns void *, not char *.
16015         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
16016         prototype.
16017
16018         * lib/md5.h: Include <limits.h> unconditionally.
16019         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
16020         (__P): Remove; all uses removed.
16021         * lib/md5.c: Include "md5.h" first.
16022         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
16023         md5_buffer, md5_process_bytes, md5_process_block):
16024         Define with prototypes.
16025         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
16026         * lib/sha.c: Include "sha.h" first.
16027         Include <stdlib.h>, <string.h> unconditionally.
16028
16029         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
16030         * lib/memcmp.c (__ptr_t): Likewise.
16031         * lib/memrchr.c (__ptr_t): Likewise.
16032         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
16033         Include <string.h> unconditionally.
16034         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
16035         * lib/memchr.c: Include <stdlib.h> unconditionally.
16036         * lib/memchr.c (LONG_MAX): Remove.
16037         * lib/memrchr.c (LONG_MAX): Likewise.
16038         * lib/memchr.c (__memchr): Define via a prototype.
16039         * lib/memrchr.c (__memrchr): Likewise.
16040         * lib/memcmp.c (__P): Remove, and remove all uses.
16041         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
16042         Remove forward decls; no longer needed.
16043         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
16044         Use types required by C89 in prototype.
16045
16046         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
16047         * lib/savedir.c: Likewise.
16048         * lib/mkdir.c (free): Remove decl.
16049         * lib/rmdir.c (rmdir): Define with a prototype.
16050         * lib/savedir.c: Include savedir.h first, to test interface.
16051
16052         * lib/mktime.c (STDC_HEADERS): Remove.
16053         Include <stdlib.h>, <string.h> unconditionally.
16054
16055         * lib/modechange.c: Include <stdlib.h> unconditionally.
16056         (malloc): Remove decl.
16057
16058         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
16059         (free): Remove decl.
16060
16061         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
16062         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
16063         (This type really should be intptr_t, but that's a C99ism.)
16064         (_obstack_memcpy): Remove: all uses changed to memcpy.
16065         Include <string.h> unconditionally.
16066         (struct obstack): Assume __STDC__ for types of members
16067         chunkfun, freefun, extra_arg.
16068         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
16069         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
16070         obstack_begin, obstack_specify_allocation,
16071         obstack_specify_allocation_with_arg, obstack_chunkfun,
16072         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
16073         Remove unprototyped decls and the macros that use them.
16074         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
16075         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
16076         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
16077         (defined __STDC__ && __STDC__)]:
16078         Remove nonprototyped code.
16079         Include <stdlib.h> unconditionally.
16080         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
16081         _obstack_allocated_p, _obstack_free, obstack_free,
16082         _obstack_memory_used, print_and_abort):
16083         Define using prototypes.
16084         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
16085         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
16086         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
16087         obstack_next_free, obstack_object_size, obstack_room) [0]:
16088         Remove unused, unprototyped code.
16089
16090         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
16091
16092         * lib/physmem.c (physmem_total, physmem_available, main): Define
16093         with prototypes.
16094
16095         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
16096         (main): Define with a prototype.
16097
16098         * lib/posixver.c (getenv): Remove decl.
16099
16100         * lib/putenv.c (malloc): Returns void *, not char *.
16101         Include <string.h> unconditionally.
16102         (strchr, memcpy, NULL): Do not define.
16103
16104         * lib/readtokens.c: Include readtokens.h first, to test interface.
16105         Include <stdlib.h>, <string.h> unconditionally.
16106         (init_tokenbuffer): Define with a prototype.
16107
16108         * lib/regex.c (PARAMS): Remove.  All uses removed.
16109         All uses of _RE_ARGS removed, too.
16110         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
16111         unconditionally.
16112         (bzero): Assume memset exists.
16113         (memcmp, memcpy, NULL): Remove.
16114         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
16115         char, or assignments to local vars of type signed char.
16116         (init_syntax_once, PREFIX(extract_number_and_incr),
16117         PREFIX(print_partial_compiled_pattern),
16118         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
16119         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
16120         PREFIX(regex_grow_registers), PREFIX(regex_compile),
16121         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
16122         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
16123         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
16124         wcs_compile_range, byte_compile_range, truncate_wchar,
16125         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
16126         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
16127         count_mbs_length, wcs_re_match_2_internal,
16128         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
16129         PREFIX(alt_match_null_string_p),
16130         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
16131         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
16132         regfree, PREFIX(extract_number)): Define with prototype.  Remove
16133         now-unnecessary declaration, if any.
16134         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
16135         regcomp, regexec):
16136         Remove now-unnecessary casts among pointer types.
16137         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
16138
16139         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
16140         (free): Remove decl.
16141
16142         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
16143
16144         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
16145         (free): Remove decl.
16146
16147         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
16148         * lib/xgetcwd.c: Likewise.
16149
16150         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
16151         (free): Remove decl.
16152
16153         * lib/strchrnul.c (strchrnul): Define with a prototype.
16154         Fix bug: c_in was not converted to char before searching.
16155
16156         The following changes are not K&R related:
16157
16158         * lib/group-member.h: Include <sys/types.h>, so that this file is
16159         self-contained.
16160         * lib/makepath.h: Likewise.
16161
16162         * lib/getusershell.c (readname, default_index, line_size, readname):
16163         Use size_t, not int, for sizes.
16164         (readname): If the size overflows, report an error instead of
16165         looping forever.
16166
16167 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16168
16169         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
16170         libc.
16171
16172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16173
16174         * README: New section: portability guidelines.
16175
16176 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
16177
16178         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
16179         C89 spec.
16180
16181 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
16182
16183         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
16184
16185 2003-09-08  Paul Eggert  <eggert@twinsun.com>
16186
16187         Assume C89 or better; remove K&R cruft.
16188         A few of these changes were first proposed by Derek Robert Price
16189         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
16190
16191         * lib/addext.c: Include <string.h> unconditionally.
16192         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
16193         Don't declare getenv or malloc.
16194
16195         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
16196         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
16197         (NULL): Remove.
16198         (find_stack_direction, alloca): Use prototypes.
16199
16200         * lib/atexit.c (atexit): Define using a prototype.
16201
16202         * lib/basename.c, dirname.c, stripslash.c:
16203         Include <string.h> unconditionally.
16204
16205         * lib/bcopy.c: Include <stddef.h>.
16206         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
16207
16208         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
16209
16210         * lib/error.h (error, error_at_line, error_print_progname)
16211         [! (defined (__STDC__) && __STDC__)]: Remove decls.
16212         * lib/error.c: Include error.h first, to check interface.
16213         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
16214         (VA_START): Remove; all uses changeed to va_start.
16215         (exit, strerror): Remove decls.
16216         (error_print_progname): Prototype uncondionally.
16217         Don't include <errno.h>; no longer needed.
16218         (private_strerror): Remove.
16219         (error_tail): Always define.
16220         (error, error_at_line): Assume C89 or better; always use prototypes.
16221         * lib/fatal.c: Include "fatal.h" first, to test interface.
16222         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
16223         (VA_START): Remove; all uses changed to va_start.
16224         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
16225         this case.
16226         (exit): Remove decl.
16227         (fatal): Prototype unconditionally.  Assume va_start works.
16228         Abort at end, to pacify gcc.
16229
16230         * lib/euidaccess.c (main): Define with a prototype.
16231
16232         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
16233
16234         * lib/exitfail.c: Include <stdlib.h> unconditionally.
16235
16236         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
16237         prototypes.
16238         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
16239         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
16240         (getenv): Remove decl.
16241         (fnmatch): Define using a prototype.
16242         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
16243         (FCT): Define using a prototype.
16244
16245         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
16246
16247         * lib/gethostname.c: Include <stddef.h>.
16248         (gethostname): Define with prototype.  Length is size_t, not int.
16249
16250 2003-09-08  Paul Eggert  <eggert@twinsun.com>
16251
16252         Assume C89 or better; remove K&R cruft.
16253         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
16254         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
16255         string.h, getenv, malloc.
16256         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
16257         headers.
16258         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
16259         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
16260         do not check for strerror.
16261         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
16262         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
16263         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
16264         do not check for doprnt or vprintf.
16265         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
16266         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
16267
16268 2003-09-08  Paul Eggert  <eggert@twinsun.com>
16269
16270         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
16271         getversion.c should have been removed then, but was accidentally
16272         preserved.
16273
16274         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
16275         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
16276
16277 2003-09-08  Karl Berry  <karl@gnu.org>
16278
16279         * config/config.sub, config.guess, srclistvars.sh: update from savannah
16280                 config, forget about prep.
16281
16282         * config/depcomp, missing: update from automake.
16283
16284 2003-09-07  Paul Eggert  <eggert@twinsun.com>
16285
16286         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
16287         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
16288
16289 2003-09-07  Paul Eggert  <eggert@twinsun.com>
16290
16291         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
16292         copy_tm_result.  Bug reported by Simon Josefsson in
16293         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
16294
16295 2003-09-06  Paul Eggert  <eggert@twinsun.com>
16296
16297         * m4/time_r.m4: New file.
16298         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
16299         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
16300         is. Check for timegm declaration.
16301         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
16302         Do not check for gmtime_r.
16303         Replace mktime if __mktime_internal does not exist and if mktime
16304         hasn't been replaced already.
16305
16306 2003-09-06  Paul Eggert  <eggert@twinsun.com>
16307
16308         * lib/time_r.c, lib/time_r.h: New files.
16309
16310         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
16311         __localtime_r.
16312         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
16313         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
16314
16315         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
16316         __gmtime_r.
16317         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
16318         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
16319         Include <time_r.h>.
16320
16321         * lib/timegm.c: Switch to glibc implementation, with the following
16322         changes:
16323         [defined HAVE_CONFIG_H]: Include <config.h>.
16324         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
16325         (__mktime_internal) [!defined _LIBC]: New decl.
16326         (__gmtime_r) [!defined _LIBC]: New macro and function.
16327         (timegm): Use a prototype, since gnulib assumes C89.
16328         Do not bother declaring tmp to be const, as it's not really usefu.
16329         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
16330         (timegm): Declare only if HAVE_DECL_TIMEGM.
16331
16332 2003-09-06  Paul Eggert  <eggert@twinsun.com>
16333
16334         * MODULES.html.sh (func_all_modules): Add time_r.
16335         * modules/time_r: New file.
16336         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
16337         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
16338
16339 2003-09-03  Paul Eggert  <eggert@twinsun.com>
16340
16341         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
16342         Bug reported by Lute Kamstra in
16343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
16344
16345         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
16346         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
16347         course with correspondingly smaller numbers for tomorrow and
16348         yesterday.  From Tadayoshi Funaba.  Originally installed into
16349         sh-utils on 1999-08-07, but the patch got lost (I guess during the
16350         coreutils merge?).
16351
16352 2003-08-31  Simon Josefsson  <jas@extundo.com>
16353
16354         * modules/timegm: New file.
16355         * MODULES.html.sh (func_all_modules): Add timegm.
16356
16357 2003-08-31  Simon Josefsson  <jas@extundo.com>
16358
16359         * m4/timegm.m4: New file.
16360
16361 2003-08-31  Simon Josefsson  <jas@extundo.com>
16362
16363         * lib/timegm.h: New file.
16364         * lib/timegm.c: New file.  Based on
16365         wget-1.8.2/src/http.c:mktime_from_utc.
16366
16367 2003-08-31  Karl Berry  <karl@gnu.org>
16368
16369         * lib/argp.h: update from libc.
16370
16371 2003-08-28  Bruno Haible  <bruno@clisp.org>
16372
16373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
16374         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
16375         followed by '#define fnmatch fnmatch_posix' gives an error.
16376
16377 2003-08-28  Bruno Haible  <bruno@clisp.org>
16378
16379         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
16380         warning on QNX, which defines O_BINARY to 000000.
16381
16382 2003-08-27  Jim Meyering  <jim@meyering.net>
16383
16384         * m4/mkstemp.m4: Require that the system mkstemp be able to create
16385         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
16386         would fail after 32.  Reported by Danny Levinson.  Details here:
16387         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
16388
16389 2003-08-24  Bruno Haible  <bruno@clisp.org>
16390
16391         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
16392         MSVC7 <stdio.h> is included later.
16393
16394 2003-08-22  Simon Josefsson  <jas@extundo.com>
16395
16396         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
16397
16398 2003-08-20  Karl Berry  <karl@gnu.org>
16399
16400         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
16401
16402 2003-08-20  Bruno Haible  <bruno@clisp.org>
16403
16404         * modules/progname: New file.
16405         * MODULES.html.sh (func_all_modules): Add progname.
16406
16407 2003-08-20  Bruno Haible  <bruno@clisp.org>
16408
16409         * lib/progname.h: New file, from GNU gettext.
16410         * lib/progname.c: New file, from GNU gettext.
16411         * lib/progreloc.c: New file, from GNU gettext.
16412
16413 2003-08-19  Jim Meyering  <jim@meyering.net>
16414
16415         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
16416         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
16417
16418 2003-08-19  Bruno Haible  <bruno@clisp.org>
16419
16420         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
16421         more.
16422
16423 2003-08-19  Bruno Haible  <bruno@clisp.org>
16424
16425         * lib/xstrdup.c: Assume <string.h> exists.
16426
16427 2003-08-18  Paul Eggert  <eggert@twinsun.com>
16428
16429         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
16430         in makefile rules.
16431
16432 2003-08-18  Jim Meyering  <jim@meyering.net>
16433
16434         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
16435         * m4/lib-ld.m4: Likewise.
16436
16437 2003-08-18  Jim Meyering  <jim@meyering.net>
16438
16439         * lib/setenv.h: Indent nested cpp directive.
16440         * lib/vasnprintf.c: Remove trailing blanks.
16441
16442 2003-08-17  Simon Josefsson  <jas@extundo.com>
16443
16444         * modules/xstrndup: New file.
16445         * MODULES.html.sh (func_all_modules): Add xstrndup.
16446
16447 2003-08-17  Simon Josefsson  <jas@extundo.com>
16448
16449         * modules/argp: Fix autoconf macro name. Add more dependencies.
16450
16451 2003-08-17  Simon Josefsson  <jas@extundo.com>
16452
16453         * m4/xstrndup.m4: New file.
16454
16455 2003-08-17  Simon Josefsson  <jas@extundo.com>
16456
16457         * m4/argp.m4: New file.
16458
16459 2003-08-17  Simon Josefsson  <jas@extundo.com>
16460             Bruno Haible  <bruno@clisp.org>
16461
16462         * lib/xstrndup.h: New file.
16463         * lib/xstrndup.c: New file.
16464
16465 2003-08-17  Bruno Haible  <bruno@clisp.org>
16466
16467         * modules/strndup (Files, Include): Add lib/strndup.h.
16468
16469 2003-08-17  Bruno Haible  <bruno@clisp.org>
16470
16471         * modules/euidaccess (Files): Add lib/euidaccess.h.
16472
16473 2003-08-17  Bruno Haible  <bruno@clisp.org>
16474
16475         * lib/strndup.h: New file.
16476
16477 2003-08-17  Bruno Haible  <bruno@clisp.org>
16478
16479         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
16480         like AC_GNU_SOURCE.
16481         * modules/extensions (configure.ac): Comment out the invocation of
16482         gl_USE_SYSTEM_EXTENSIONS.
16483
16484 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16485
16486         Merges from coreutils, etc.
16487         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
16488         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
16489         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
16490         fixing a typo.
16491         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
16492         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
16493
16494 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16495
16496         Document merge from coreutils.
16497         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
16498         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
16499         * modules/utime: Add m4/utimes-null.m4.
16500
16501 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16502
16503         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
16504         space, undoing this 2003-08-12 change:
16505         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
16506
16507 2003-08-16  Paul Eggert  <eggert@twinsun.com>
16508
16509         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
16510         strtoul.c from libc, undoing this 2003-08-12 change:
16511         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
16512
16513 2003-08-16  Jim Meyering  <jim@meyering.net>
16514
16515         Merges from coreutils.
16516         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
16517         prefix.  Adjust cache variables similarly.  Create 500 rather than
16518         just 300 files, to exercise bug on Darwin6.5, too.
16519         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
16520         $missing_dir.
16521         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
16522         AM_SYS_POSIX_TERMIOS.
16523         Reported by mkc@mathdogs.com.
16524         Also change use of $am_cv_sys_posix_termios
16525         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
16526         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
16527         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
16528         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
16529         in /proc/mounts until it finds one with matching device number.  This
16530         is unnecessary when the FILE argument *is* a mount point.  No stat call
16531         is necessary in that case.  So, disable the statvfs-testing code on
16532         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
16533         as RedHat bug# 84846.
16534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
16535         to 1MB, so as not to render systems with no stack size limit (e.g.,
16536         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
16537         Include <unistd.h>.  On some systems,
16538         it is required for the definition of _SC_PAGESIZE.
16539
16540 2003-08-16  Jim Meyering  <jim@meyering.net>
16541
16542         Merge from coreutils.
16543         * lib/xstrtoimax.c: #else #if -> #elif.
16544         * lib/xstrtoumax.c: Likewise.
16545
16546 2003-08-16  Jim Meyering  <jim@meyering.net>
16547
16548         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
16549         * m4/utimes.m4: Removed.
16550         * m4/utimes-null.m4: Renamed from utimes.m4.
16551
16552         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
16553         to 1MB, so as not to render systems with no stack size limit (e.g.,
16554         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
16555         Include <unistd.h>.  On some systems,
16556         it is required for the definition of _SC_PAGESIZE.
16557
16558 2003-08-16  Jim Meyering  <jim@meyering.net>
16559         and Paul Eggert  <eggert@cs.ucla.edu>
16560
16561         Merges from coreutils, etc.
16562
16563         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
16564         using the latest version from cvs.  This avoids problems with #line
16565         directives using a vendor (Sun) compiler.
16566         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
16567         Don't set GETGROUPS_LIB here; now it's
16568         done via getgroups.m4's wrapper function.
16569         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
16570         rather than just in sh-util/configure.in, so that the
16571         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
16572         same.
16573         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
16574         AC_FUNC_GETLOADAVG where to find getloadavg.c.
16575         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
16576         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
16577         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
16578         Remove code that is now done by the newly-required macros.
16579         Append $(EXEEXT) to DF_PROG.
16580         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
16581         Do not invoke or require the following here,
16582         since prereq.m4 or some gnulib .m4 now does this for us:
16583         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
16584         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
16585         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
16586         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
16587         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
16588         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
16589         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
16590         AC_FUNC_OBSTACK.
16591         Do not replace the following functions, as this is now the job
16592         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
16593         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
16594         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
16595         atexit getpass, strdup, getpagesize.
16596         Replace 'raise'.
16597         Do not check for the following functions, as this is now the job
16598         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
16599         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
16600         setregid.
16601         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
16602         Check for sys/sysctl.h.
16603         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
16604         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
16605         of checking for ssize_t ourselves.
16606
16607         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
16608         Require every macro that gnulib/modules/* suggests for us.
16609         (jm_PREREQ_ADDEXT): New macro.
16610         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
16611         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
16612
16613         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
16614         (gl_PHYSMEM): Use it.
16615         Also check for `table' function.
16616         Check for new headers and functions.
16617         Add check for sys/sysmp.h.
16618         With suggestions from Kaveh Ghazi.
16619         Ignore headers that are present but cannot be compiled.  This
16620         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
16621         C 5.4.
16622
16623 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16624
16625         Document merge from coreutils.
16626         * modules/userspec: Depend on posixver.
16627         * modules/strftime: Depend on tzset.
16628
16629 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16630
16631         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
16632         rather than tab, after '#' in shell-script copyright notices.
16633         Suggested by Bruno Haible.
16634
16635 2003-08-15  Paul Eggert  <eggert@twinsun.com>
16636
16637         * config/srclist-update: Use three spaces, rather than tab, after '#'
16638         in shell-script copyright notices.  Suggested by Bruno Haible.
16639         Remove unnecessary parenthesization in regular expression.
16640
16641 2003-08-15  Jim Meyering  <jim@meyering.net>
16642
16643         Merge from coreutils.
16644         * lib/xgethostname.c: Include <stdlib.h>.
16645         (xghostname): Don't exit for anything other than memory-related
16646         failure; just return NULL.
16647         * lib/userspec.c: Include "posixver.h".
16648         (parse_user_spec): Accept `.' as a separator only
16649         in pre-POSIX-200112 mode.
16650         * lib/strtoimax.c: Use #elif rather than #else #if.
16651         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
16652         Remove function, now that we can rely on a working tzset function.
16653         [!_LIBC]: Ensure that the required autoconf test has been run.
16654         [!defined _NL_CURRENT && HAVE_STRFTIME]:
16655         Use underlying_strftime for %r.
16656         * lib/sha.c: Merge in some clean-up and optimization changes from
16657         glibc.
16658         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
16659         Ensure that it is a multiple of 64.
16660         Rearrange loop exit tests so as to avoid performing an
16661         additional fread after encountering an error or EOF.
16662         * lib/realloc.c: Update copyright date.
16663
16664 2003-08-15  Jim Meyering  <jim@meyering.net>
16665         and Paul Eggert  <eggert@twinsun.com>
16666
16667         Merge from coreutils.
16668         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
16669         member but strut utmpx does not.  Needed for AIX 4.3.3.
16670         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
16671
16672 2003-08-15  Jim Meyering  <jim@meyering.net>
16673         and Paul Eggert  <eggert@cs.ucla.edu>
16674
16675         Merges from coreutils, etc.
16676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
16677         Require gl_FUNC_TZSET_CLOBBER.
16678         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
16679         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
16680         members.
16681
16682 2003-08-14  Paul Eggert  <eggert@twinsun.com>
16683
16684         Help the merge from coreutils.
16685         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
16686         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
16687         * m4/tzset.m4: Use it too.
16688
16689 2003-08-14  Paul Eggert  <eggert@twinsun.com>
16690
16691         * modules/tzset: New file.
16692
16693 2003-08-14  Jim Meyering  <jim@meyering.net>
16694
16695         Merges from coreutils.
16696         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
16697         variable names, rather than @FNMATCH_H@.
16698         * modules/alloca: Likewise for $(ALLOCA_H).
16699
16700         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
16701         the three copies of the literal target, `fnmatch.h'.
16702         * modules/alloca (alloca.h): Likewise.
16703
16704 2003-08-14  Jim Meyering  <jim@meyering.net>
16705
16706         Merge from coreutils.
16707         * m4/tzset.m4: New file.
16708         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
16709         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
16710         otherwise, AIX 5.1 systems would end up using the latter.
16711         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
16712         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
16713         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
16714         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
16715
16716 2003-08-14  Jim Meyering  <jim@meyering.net>
16717
16718         Merge from coreutils.
16719         * lib/obstack.h: Whitespace changes.
16720         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
16721         and xcalloc return values.
16722         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
16723         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
16724         hang on OSF/1 5.1 for DIR on both local and remote file systems.
16725         Reported by (and fix confirmed by) Nelson H. F. Beebe.
16726         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
16727         error from mntctl.
16728         Use mntctl's return value to drive the entry-processing loop, since
16729         we can't rely on the value of the vmt_length member in the last
16730         entry.  On some systems doing so could result in exhausting
16731         virtual memory.  Based in part on a patch from Mike Jetzer.
16732
16733 2003-08-14  Jim Meyering  <jim@meyering.net>
16734         and Paul Eggert  <eggert@twinsun.com>
16735
16736         Merges from coreutils, plus other fixes.
16737         * lib/physmem.c: Merge in portability changes from gcc/libiberty
16738         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
16739         for credits and details.  Thanks to Kaveh Ghazi for helping
16740         to keep these files in sync.
16741         (ARRAY_SIZE): Define it.
16742         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
16743         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
16744         (memcasecmp): Don't assume size_t fits in unsigned int.
16745         Remove casts and duplicate code.
16746         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
16747         (memcpy): Remove definition.
16748         Merge in some clean-up and optimization changes from glibc.
16749         [BLOCKSIZE]: Move definition to top of file.
16750         Ensure that it is a multiple of 64.
16751         Rearrange loop exit tests so as to avoid performing an
16752         additional fread after encountering an error or EOF.
16753         * lib/md5.h (md5_uintptr): Define.
16754         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
16755         return to the initial working directory.  Preserve errno
16756         for caller.
16757         * lib/idcache.c: Include "xalloc.h".
16758         (xmalloc, xrealloc): Remove decls.
16759         (getuser): Remove casts no longer required in C89.
16760         * lib/human.c: Include stdio.h, for sprintf.
16761         * lib/group-member.c: Include "xalloc.h".
16762         (xmalloc, xrealloc): Remove decls.
16763         (get_group_info): Remove casts no longer required in C89.
16764         * lib/getusershell.c (readname): Remove casts no longer required in
16765         C89.
16766         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
16767         * lib/getline.c: Whitespace fix, from coreutils.
16768
16769 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16770
16771         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
16772         Check for isascii.
16773
16774         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
16775         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
16776         Undo previous (whitespace-only) change.
16777
16778 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16779
16780         * lib/exclude.c: Include <ctype.h>
16781         (IN_CTYPE_DOMAIN): New macro.
16782         (is_space): New fn.
16783         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
16784         and empty lines.
16785
16786         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
16787         Undo previous (whitespace-only) change.
16788
16789 2003-08-13  Paul Eggert  <eggert@twinsun.com>
16790
16791         * config/srclist-update: Change update back to the old behavior,
16792         leaving whitespace alone.  Use one 'sed' command rather than a
16793         pipeline.
16794         (fixlicense): Now a variable, not a function.
16795         (remove_trailing_blanks): Remove.
16796         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
16797         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
16798         Undo previous (whitespace-only) change.
16799
16800 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16801
16802         Merge from coreutils.
16803         * modules/euidaccess: Add lib_SOURCES, include for new
16804         file euidaccess.h
16805
16806 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16807
16808         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
16809         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
16810         Normalize leading white space and remove trailing white space.
16811
16812         Merge from coreutils
16813         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
16814
16815         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
16816         0.12.1.  These files are now being upgraded automatically by
16817         ../config/srclist-update.
16818
16819 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16820
16821         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
16822         Normalize leading white space and remove trailing white space.
16823         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
16824         notice, as per ../config/srclist-update.
16825
16826         Merge from coreutils.
16827         * lib/euidaccess.h: New file.
16828         * lib/euidaccess.c: Include it.
16829         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
16830         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
16831         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
16832
16833 2003-08-12  Paul Eggert  <eggert@twinsun.com>
16834
16835         * config/srclist-update: Add copyright notice.
16836         (remove_id_lines, remove_trailing_blanks): New constants.
16837         (fixfile): Use them to normalize spacing a bit in copied files.
16838         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
16839         Normalize leading white space and remove trailing white space.
16840
16841         * config/texinfo.tex: Sync with texinfo.
16842
16843         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
16844         strtoul.c from libc, to merge coreutils whitespace changes.
16845
16846         * config/srclist.txt: Get the following m4 files from gettext:
16847         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
16848         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
16849         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
16850         wint_t.m4.
16851
16852 2003-08-12  Karl Berry  <karl@gnu.org>
16853
16854         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
16855         been made.
16856
16857 2003-08-11  Paul Eggert  <eggert@twinsun.com>
16858
16859         * modules/gnu-source, m4/gnu-source.m4:
16860         Remove; we're assuming Autoconf 2.54 or later now.
16861         Suggested by Bruno Haible.
16862         * MODULES.html.sh (func_all_modules): Remove gnu-source.
16863
16864 2003-08-11  Bruno Haible  <bruno@clisp.org>
16865
16866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
16867
16868 2003-08-11  Bruno Haible  <bruno@clisp.org>
16869
16870         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
16871         (vasnprintf): Use it instead of wcslen.
16872
16873 2003-08-11  Bruno Haible  <bruno@clisp.org>
16874
16875         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
16876         value to ensure that _Bool promotes to int. Use #define for _Bool when
16877         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
16878
16879 2003-08-10  Karl Berry  <karl@gnu.org>
16880
16881         * lib/regex.h: update from libc (whitespace fix).
16882
16883 2003-08-09  Paul Eggert  <eggert@twinsun.com>
16884
16885         Merge some files from coreutils.  These changes were
16886         originally made by Jim Meyering.
16887         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
16888         many older Unixes require this.
16889         * lib/alloca.c (alloca): Remove cast to argument of free;
16890         no longer needed in C89.
16891         * lib/alloca_.h, regex.h: Fix white space to match
16892         what GNU indent does.
16893
16894 2003-08-09  Paul Eggert  <eggert@twinsun.com>
16895
16896         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
16897         apparently Emacs's Unicode mode got confused before my 2003-08-05
16898         checkin.
16899
16900 2003-08-08  Paul Eggert  <eggert@twinsun.com>
16901
16902         * m4/extensions.m4: New file.
16903         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
16904         Require gl_USE_SYSTEM_EXTENSIONS.
16905         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
16906         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
16907
16908 2003-08-08  Paul Eggert  <eggert@twinsun.com>
16909
16910         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
16911         * modules/extensions, modules/gnu-source: New files.
16912         * modules/timespec, modules/unlocked-io: Depend on extensions.
16913
16914 2003-08-07 Paul Eggert  <eggert@twinsun.com>
16915
16916         * modules/restrict: New file.
16917         * MODULES.html.sh (func_all_modules): Add restrict.
16918         * modules/regex: Depend on restrict.
16919
16920 2003-08-07  Paul Eggert  <eggert@twinsun.com>
16921
16922         * m4/restrict.m4: New file.
16923         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
16924
16925 2003-08-07  Bruno Haible  <bruno@clisp.org>
16926
16927         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
16928         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
16929
16930 2003-08-07  Bruno Haible  <bruno@clisp.org>
16931
16932         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
16933         makes the module 'getndelim2' compatible with the module 'getline'.
16934
16935 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16936
16937         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
16938         byte with "\201" to avoid glitches when editing that source file
16939         with multi-gnome-terminal.
16940
16941 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16942
16943         * lib/bumpalloc.h: Remove.
16944
16945 2003-08-05  Paul Eggert  <eggert@twinsun.com>
16946
16947         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
16948         * modules/bumpalloc: Remove.
16949
16950 2003-08-04  Paul Eggert  <eggert@twinsun.com>
16951
16952         * lib/getloadavg.c: Change copyright notice and spacing to conform to
16953         GNU coding style.
16954
16955         Merge from coreutils.
16956         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
16957         1. From glibc.
16958         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
16959         from Karl Berry, implemented by Jim Meyering.
16960         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
16961         from Dmitry V. Levin.
16962         Remove anachronistic cast of xrealloc.
16963         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
16964         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
16965         type. Otherwise, it wouldn't compile with at least /bin/cc on
16966         ymp-cray-unicos9.0.2.X.
16967         Combine two mostly-identical uses of alloca into one.
16968         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
16969
16970 2003-08-04  Dave Love <d.love@dl.ac.uk>
16971
16972         [From Emacs.]
16973
16974         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
16975         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
16976         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
16977         obsolete NLIST_NAME_UNION.
16978         [__GNU__]: Undef BSD and FSCALE.
16979         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
16980
16981 2003-08-03  Paul Eggert  <eggert@twinsun.com>
16982
16983         * lib/stdbool_.h (_Bool): Make it signed char, instead of
16984         an enum type, so that it's guaranteed to promote to int.  See:
16985         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
16986
16987 2003-08-03  Karl Berry  <karl@gnu.org>
16988
16989         * config/depcomp: update from automake.
16990
16991 2003-07-31  Paul Eggert  <eggert@twinsun.com>
16992
16993         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
16994         (strerror): Don't assume that a printable int fits in 14 bytes.
16995
16996 2003-07-31  Bruno Haible  <bruno@clisp.org>
16997
16998         * modules/getpass-gnu: New file.
16999         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
17000
17001 2003-07-31  Bruno Haible  <bruno@clisp.org>
17002
17003         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
17004
17005 2003-07-24  Karl Berry  <karl@gnu.org>
17006
17007         * config/missing: update from automake.
17008
17009 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
17010             Bruno Haible  <bruno@clisp.org>
17011
17012         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
17013         * lib/getline.c (getline, getdelim): Likewise.
17014         Remove _GNU_SOURCE define; now it's defined in config.h through
17015         m4/getline.m4.
17016
17017 2003-07-23  Karl Berry  <karl@gnu.org>
17018
17019         * config/config.sub: update from prep.
17020
17021 2003-07-22  Paul Eggert  <eggert@twinsun.com>
17022
17023         * modules/xalloc (Depends-on): Add exitfail.
17024         * modules/xmemcoll: Likewise.
17025
17026 2003-07-22  Paul Eggert  <eggert@twinsun.com>
17027
17028         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
17029         over-parenthesization in macros.
17030
17031         Sync with coreutils.
17032
17033         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
17034         required by C99.
17035
17036         Use `exit_failure' for xalloc and xmemcoll instead of their own
17037         private exit-failure variables.
17038         * lib/xalloc.h (xalloc_exit_failure): Remove.
17039         * lib/xmalloc.c: Likewise.  Include exitfail.h.
17040         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
17041         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
17042         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
17043         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
17044
17045 2003-07-20  Jim Meyering  <jim@meyering.net>
17046
17047         * modules/closeout (Depends-on): Add exitfail.
17048         Suggestion from Bruno Haible.
17049
17050 2003-07-19  Karl Berry  <karl@gnu.org>
17051
17052         * config/config.sub: update from prep.
17053
17054 2003-07-18  Paul Eggert  <eggert@twinsun.com>
17055
17056         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
17057         Remove.
17058         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
17059         to test that it can stand by itself.  Include "exitfail.h".
17060         Clients should set exit_failure instead.
17061         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
17062
17063 2003-07-18  Bruno Haible  <bruno@clisp.org>
17064
17065         * modules/getndelim2: New file.
17066         * modules/getline: Share files with module getndelim2.
17067         * modules/getnline: Depend on getndelim2 instead of sharing files with
17068         it. Add getnline.c to lib_SOURCES.
17069         * MODULES.html.sh (func_all_modules): Add getndelim2.
17070
17071 2003-07-18  Bruno Haible  <bruno@clisp.org>
17072
17073         * m4/getndelim2.m4: New file.
17074         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
17075         invoke gl_PREREQ_GETNDELIM2.
17076         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
17077         gl_PREREQ_GETNDELIM2.
17078         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
17079         gl_GETNDELIM2.
17080
17081 2003-07-18  Bruno Haible  <bruno@clisp.org>
17082
17083         * lib/getndelim2.h: New file.
17084         * lib/getndelim2.c: Make into a module of its own. Include config.h,
17085         getndelim2.h.
17086         (getndelim2): Make non-static. Change return type to ssize_t.
17087         * lib/getline.h: Change argument names.
17088         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
17089         * lib/getnline.c: Include getndelim2.h.
17090
17091 2003-07-18  Andreas Schwab  <schwab@suse.de>
17092
17093         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
17094
17095 2003-07-17  Karl Berry  <karl@gnu.org>
17096
17097         * config/config.sub: update from prep.
17098
17099 2003-07-17  Bruno Haible  <bruno@clisp.org>
17100
17101         * modules/getnline: New file.
17102         * modules/getline: Add lib/getndelim2.c to source file list.
17103         * MODULES.html.sh (func_all_modules): Add getnline.
17104
17105 2003-07-17  Bruno Haible  <bruno@clisp.org>
17106
17107         * m4/getnline.m4: New file.
17108
17109 2003-07-17  Bruno Haible  <bruno@clisp.org>
17110
17111         * m4/Makefile.am.in: Remove file.
17112         * m4/Makefile.am: Remove file.
17113         * m4/Makefile.in: Remove file.
17114
17115 2003-07-17  Bruno Haible  <bruno@clisp.org>
17116
17117         * lib/getnline.h: New file.
17118         * lib/getnline.c: New file.
17119         * lib/getndelim2.c: New file, extracted from getline.c.
17120         (getndelim2): Renamed from getdelim2, with added nmax argument.
17121         * lib/getline.c: Include getndelim2.c.
17122         (getdelim2): Moved out to getndelim2.c.
17123         (getline, getdelim): Update.
17124
17125 2003-07-17  Bruno Haible  <bruno@clisp.org>
17126
17127         * lib/Makefile.am: Remove file.
17128         * lib/Makefile.in: Remove file.
17129
17130 2003-07-17  Bruno Haible  <bruno@clisp.org>
17131
17132         * configure.in: Remove file.
17133         * Makefile.in: Remove file.
17134
17135 2003-07-17  Bruno Haible  <bruno@clisp.org>
17136
17137         * MODULES.html.sh: Put the </BODY> right before </HTML>.
17138
17139 2003-07-16  Karl Berry  <karl@gnu.org>
17140
17141         * config/srclist-update: was running fixlicense twice, which caused
17142                 texinfo.tex to be nullified for some reason.  Simplify,
17143                 $gplsrc is no longer needed as far as I can see?
17144
17145 2003-07-16  Jim Meyering  <jim@meyering.net>
17146
17147         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
17148
17149 2003-07-15  Paul Eggert  <eggert@twinsun.com>
17150
17151         * config/srclist.txt: Get the following files from gettext-runtime/intl
17152         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
17153         ref-del.sin.  From Bruno Haible.
17154         * config/srclist-update (fixfile): Change grep pattern again, since the
17155         previous fix didn't work (there was another trailing $).  Use
17156         '[$]' to escape the $s.
17157
17158 2003-07-15  Karl Berry  <karl@gnu.org>
17159
17160         * lib/vasnprintf.c: update from gettext.
17161
17162 2003-07-15  Karl Berry  <karl@gnu.org>
17163
17164         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
17165         gets expanded when surrounded by '$'.
17166
17167 2003-07-15  Jim Meyering  <jim@meyering.net>
17168
17169         * modules/save-cwd: Don't depend on error.  From Derek Price.
17170
17171 2003-07-15  Jim Meyering  <jim@meyering.net>
17172
17173         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
17174
17175 2003-07-14  Simon Josefsson  <jas@extundo.com>
17176
17177         * modules/mempcpy: New file.
17178         * MODULES.html.sh (func_all_modules): Add mempcpy.
17179
17180 2003-07-14  Simon Josefsson  <jas@extundo.com>
17181
17182         * m4/mempcpy.m4: New file.
17183
17184 2003-07-14  Simon Josefsson  <jas@extundo.com>
17185
17186         * lib/mempcpy.h: New file.
17187         * lib/mempcpy.c: New file.
17188
17189 2003-07-14  Paul Eggert  <eggert@twinsun.com>
17190
17191         * modules/getdate, modules/posixtm: Depend on mktime.
17192
17193 2003-07-14  Paul Eggert  <eggert@twinsun.com>
17194
17195         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
17196         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
17197         unicodeio.c, unicodeio.h, unlocked-io.h:
17198         Switch from LGPL to GPL.
17199
17200 2003-07-14  Paul Eggert  <eggert@twinsun.com>
17201
17202         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
17203         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
17204         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
17205         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
17206         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
17207         updated automatically by ../config/srclist-update.  This changes
17208         their license from LPGL to GPL.
17209
17210 2003-07-14  Paul Eggert  <eggert@twinsun.com>
17211
17212         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
17213         assumed to refer to the root of the most recent stable gettext version.
17214         * config/srclistvars.sh: Add defaults for eggert.
17215         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
17216         Match "This program" as well as "The program".  This is needed
17217         for gettext.
17218
17219 2003-07-14  Jim Meyering  <jim@meyering.net>
17220
17221         Don't emit diagnostics.  Let callers do that.
17222         * lib/save-cwd.c: Don't include "error.h".
17223         (save_cwd): Don't call error.  Ensure that errno is valid
17224         when returning nonzero.
17225
17226         * lib/save-cwd.h (restore_cwd): Update prototype.
17227         * lib/save-cwd.c (restore_cwd): Remove two parameters.
17228         Simplify.  Don't call error upon failure.  Let callers do that.
17229         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
17230         when auditing is enabled.  But don't bother updating the #if.
17231
17232 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
17233
17234         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
17235         it breaks C++ compilation.
17236         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
17237
17238 2003-07-10  Simon Josefsson  <jas@extundo.com>
17239
17240         * modules/strchrnul (Makefile.am): Add strchrnul.h.
17241
17242 2003-07-10  Jim Meyering  <jim@meyering.net>
17243
17244         * m4/clock_time.m4: Remove trailing blank.
17245         * m4/intmax_t.m4: Likewise.
17246
17247 2003-07-10  Jim Meyering  <jim@meyering.net>
17248
17249         * lib/vasnprintf.c: Remove trailing blanks.
17250         Make cpp indentation consistent.
17251
17252 2003-07-09  Paul Eggert  <eggert@twinsun.com>
17253
17254         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
17255         posixver.c, strftime.c, strnlen.c, strverscmp.c:
17256         Switch from LGPL to GPL.
17257
17258 2003-07-09  Paul Eggert  <eggert@twinsun.com>
17259
17260         * config/srclist.txt: Sort sublists.  Add
17261         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
17262         that differ from gnulib for one reason or another; we'd like this list
17263         to be smaller but for now let's document what we have.
17264
17265 2003-07-08  Paul Eggert  <eggert@twinsun.com>
17266
17267         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
17268         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
17269         and sweeter "eval x=$x".
17270         * config/srclist.txt: Get lib/argp* from glibc.
17271
17272 2003-07-07  Paul Eggert  <eggert@twinsun.com>
17273
17274         * lib/mktime.c: Fix some boundary cases and remove need for floating
17275         point.
17276
17277         Issue a compile-time diagnostic if time_t is floating point, or if
17278         two's complement arithmetic is not in effect, or if arithmetic
17279         right shift does not propagate the sign.  These assumptions were
17280         all in the original code but they weren't checked.
17281
17282         (TIME_T_MIDPOINT, verify): New macros.
17283         (__isleap): Remove; it has integer overflow problems.
17284         (leapyear): New function, without those problems.
17285         (ydhms_tm_diff): Remove; splitting into two parts.
17286         (ydhms_diff): New function, containing the arithmetic part of
17287         the old ydhms_tm_diff function.  Issue a compile-time
17288         diagnostic if we are not using C99 integer division.
17289         Avoid casts when possible.
17290         (guess_time_tm): New function, containing the checking part of
17291         the old ydhms_tm_diff function.  Return the new value, rather than
17292         the difference between it and the old.  Accept a new argument T
17293         so that *T specifies the old value.  Check for overflow in the result.
17294
17295         (__mktime_internal): Use a time_t offset, not a long int offset.
17296         This undoes the 2003-06-04 change, which is no longer needed now
17297         that we have better overflow checking.
17298         (localtime_offset): Likewise.
17299
17300         (__mktime_internal): Avoid harmful overflow on hosts where time_t
17301         and long are 64-bit but int is only 32-bit.
17302         (ydhms_diff): Use long int to store year1 and yday1.
17303         Issue a compile-time diagnostic if long int is not wide enough.
17304
17305         (__mktime_internal): Use long int to store adjusted year and yday.
17306         Use plain C rather than preprocessor commands, if that doesn't
17307         affect efficiency.
17308         Check for overflow (and try to repair) after each probe
17309         rather than checking only at the very end.  This avoids some bugs
17310         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
17311         does not equal GMT offset at maximum time).
17312         Use integer to check for overflow rather than floating point; this
17313         is more portable to non-IEEE hosts, and is a tad faster.
17314         When we detect that we are oscillating between two values,
17315         don't check whether tm_isdst has the requested value, since
17316         we already know the answer.  When tm_isdst has the wrong value,
17317         use a different heuristic to find the right one, based on the
17318         extreme values actually observed in practice in tz2003a,
17319         rather than the (overly optimistic) "previous 3 calendar quarters".
17320
17321         (not_equal_tm, print_tm, check_result): Use "const T" rather than
17322         "T const" to accommodate glibc style.
17323         (check_result): Use less-confusing report format.  "long" -> "long int.
17324         (main): Likewise.
17325         Don't loop if the iteration overflows time_t.
17326         Allow a negative step in the iteration.
17327
17328 2003-07-06  Karl Berry  <karl@gnu.org>
17329
17330         * config/depcomp: update from automake.
17331         * config/config.sub: update from prep.
17332
17333 2003-07-03  Karl Berry  <karl@gnu.org>
17334
17335         * config/config.guess: update from prep.
17336
17337 2003-07-01  Paul Eggert  <eggert@twinsun.com>
17338
17339         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
17340         xreadlink.c now includes it unconditionally.
17341
17342 2003-07-01  Paul Eggert  <eggert@twinsun.com>
17343
17344         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
17345         having it depend on HAVE_SYS_TYPES_H.
17346
17347 2003-07-01  Bruno Haible  <bruno@clisp.org>
17348
17349         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
17350         <sys/types.h> should be sufficient.
17351         Reported by Paul Eggert.
17352
17353 2003-06-26  Karl Berry  <karl@gnu.org>
17354
17355         * config/depcomp: update from automake.
17356
17357 2003-06-26  Bruno Haible  <bruno@clisp.org>
17358
17359         * modules/human: Depend on module stdbool.
17360
17361 2003-06-25  Bruno Haible  <bruno@clisp.org>
17362
17363         * modules/readlink: New file.
17364         * modules/xreadlink: Depend on it.
17365         * MODULES.html.sh (func_all_modules): Add readlink.
17366
17367 2003-06-25  Bruno Haible  <bruno@clisp.org>
17368
17369         * m4/readlink.m4: New file.
17370
17371 2003-06-25  Bruno Haible  <bruno@clisp.org>
17372
17373         * lib/readlink.c: New file.
17374
17375 2003-06-22  Karl Berry  <karl@gnu.org>
17376
17377         * config/srclist.txt: update mkinstalldirs from automake.
17378         * config/mkinstalldirs: update.
17379
17380 2003-06-22  Bruno Haible  <bruno@clisp.org>
17381
17382         Portability to mingw32.
17383         * m4/ssize_t.m4: New file, from GNU gettext.
17384         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
17385         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
17386
17387 2003-06-22  Bruno Haible  <bruno@clisp.org>
17388
17389         * modules/safe-read: Add m4/ssize_t.m4.
17390         * modules/xreadlink: Add m4/ssize_t.m4.
17391
17392 2003-06-20  Bruno Haible  <bruno@clisp.org>
17393
17394         Assume C89, so PARAMS isn't needed.
17395         * lib/unicodeio.h (PARAMS): Remove.
17396         * lib/unicodeio.c: Don't use PARAMS.
17397
17398 2003-06-18  Karl Berry  <karl@gnu.org>
17399
17400         * config/config.{guess,sub}: update from prep.
17401
17402 2003-06-18  Jim Meyering  <jim@meyering.net>
17403
17404         Merge changes from coreutils.
17405         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
17406         Remove explicit declarations of xmalloc and realloc.
17407         Include xalloc.h.
17408         (read_utmp): Remove anachronistic cast of xmalloc.
17409
17410 2003-06-17  Paul Eggert  <eggert@twinsun.com>
17411
17412         Assume C89, so PARAMS isn't needed.
17413         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
17414         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
17415         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
17416         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
17417         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
17418         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
17419         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
17420         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
17421         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
17422         lib/xstrtod.h, lib/xstrtol.h: Likewise.
17423         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
17424         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
17425         no longer needed. Anyway, config.h should always be included before any
17426         other file.
17427
17428 2003-06-11  Simon Josefsson  <jas@extundo.com>
17429
17430         * modules/sysexits: New file.
17431         * MODULES.html.sh (func_all_modules): Add sysexits.
17432
17433 2003-06-11  Simon Josefsson  <jas@extundo.com>
17434
17435         * lib/sysexit_.h: New file.
17436
17437 2003-06-11  Derek Price  <derek@ximbiot.com>
17438
17439         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
17440         necessary.
17441
17442 2003-06-11  Bruno Haible  <bruno@clisp.org>
17443
17444         * m4/sysexits.m4: New file.
17445
17446 2003-06-10  Simon Josefsson <jas@extundo.com>
17447
17448         * lib/argp.h: New file, from glibc.
17449         * lib/argp-ba.c: New file, from glibc.
17450         * lib/argp-eexst.c: New file, from glibc.
17451         * lib/argp-fmtstream.c: New file, from glibc.
17452         * lib/argp-fmtstream.h: New file, from glibc.
17453         * lib/argp-fs-xinl.c: New file, from glibc.
17454         * lib/argp-help.c: New file, from glibc.
17455         * lib/argp-namefrob.h: New file, from glibc.
17456         * lib/argp-parse.c: New file, from glibc.
17457         * lib/argp-pv.c: New file, from glibc.
17458         * lib/argp-pvh.c: New file, from glibc.
17459         * lib/argp-xinl.c: New file, from glibc.
17460
17461 2003-06-10  Simon Josefsson  <jas@extundo.com>
17462
17463         * modules/strchrnul: New file.
17464
17465 2003-06-10  Simon Josefsson  <jas@extundo.com>
17466
17467         * modules/argp: New file.
17468
17469 2003-06-10  Simon Josefsson  <jas@extundo.com>
17470
17471         * m4/strchrnul.m4: New file.
17472
17473 2003-06-10  Simon Josefsson  <jas@extundo.com>
17474
17475         * lib/strchrnul.h: New file.
17476         * lib/strchrnul.c: New file.
17477
17478 2003-06-10  Bruno Haible  <bruno@clisp.org>
17479
17480         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
17481
17482 2003-06-07  Karl Berry  <karl@gnu.org>
17483
17484         * config/config.{guess,sub}: update from prep.
17485
17486 2003-06-07  Jim Meyering  <jim@meyering.net>
17487
17488         * modules/strtod: Use $(...) notation, not @...@ for
17489         AC_REPLACE'd variables.
17490         * modules/localcharset: Likewise.
17491
17492 2003-06-07  Jim Meyering  <jim@meyering.net>
17493
17494         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
17495         in place of my name in the copyright comment.
17496         Remove definition and uses of __P.
17497
17498         From coreutils.
17499         * lib/stat.c: Don't declare xmalloc explicitly.
17500         Instead, include "xalloc.h".
17501         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
17502         xrealloc, and xcalloc return values.
17503         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
17504         Improve comment.
17505         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
17506
17507 2003-06-07  Bruno Haible  <bruno@clisp.org>
17508
17509         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
17510         avoid AC_CONFIG_LINKS.
17511         * modules/fnmatch (Makefile.am): Use explicit creation rule for
17512         fnmatch.h, to avoid AC_CONFIG_LINKS.
17513         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
17514
17515 2003-06-07  Bruno Haible  <bruno@clisp.org>
17516
17517         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
17518         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
17519         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
17520         directory.
17521         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
17522         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
17523         directory.
17524
17525 2003-06-06  Jim Meyering  <jim@meyering.net>
17526
17527         Merge from coreutils.
17528         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
17529         Consolidate declarations and initializations of *_base* locals.
17530
17531         Merge from coreutils.
17532         This avoids a core dump on systems without GNU putenv,
17533         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
17534         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
17535         (unsetenv): New static function, from GNU libc.
17536         (rpl_putenv): Use it.
17537
17538         * lib/modechange.c: Remove trailing blanks.
17539
17540         Merge from coreutils.
17541         * lib/fsusage.c: Remove declaration of statfs.
17542         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
17543
17544         * lib/posixtm.c: Include <stdbool.h> unconditionally.
17545
17546 2003-06-06  Jim Meyering  <jim@meyering.net>
17547
17548         * lib/stdbool_.h: Renamed from stdbool.h.in.
17549
17550 2003-06-06  Jim Meyering  <jim@meyering.net>
17551             Bruno Haible  <bruno@clisp.org>
17552
17553         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
17554         Adjust Makefile.am snippet not to redirect directly to target.
17555         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
17556
17557 2003-06-05  Paul Eggert  <eggert@twinsun.com>
17558
17559         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
17560         mismatch, look in future quarters as well as past.  This fixes a
17561         bug when processing fall-backwards gaps immediately after a long
17562         period of daylight-saving time.
17563
17564         * lib/mktime.c: Assume freestanding C89 or better.
17565         (HAVE_LIMITS_H): Remove.  Assume it's 1.
17566         (__P): Remove; not used.
17567         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
17568         (mktime, not_equal_tm, print_tm, check_result,
17569         main): Use prototypes.  Use const * where appropriate.
17570         (main): Fix typo in testing code that uncovered by above changes.
17571         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
17572
17573 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17574
17575         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
17576         locale.h, localeconv.  This merges changes from coreutils.
17577
17578         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
17579         It can be removed after the next Autoconf is released.
17580         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
17581         needed.
17582
17583 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17584
17585         * lib/mktime.c: Fix Debian bug 177940
17586         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
17587         (localtime_offset): Now long int, not time_t, because we want it
17588         to be guaranteed to be signed.  All uses changed.
17589         (__mktime_internal): If overflow would occur when adding offset,
17590         don't add it.
17591
17592         Merge 'human' changes from coreutils.  Rewrite to support
17593         locale-specific notations like thousands separators.
17594         * lib/human.c: Simplify authorship notice.
17595         Include human.h immediately after config.h.
17596         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
17597         <limits.h>: Do not include, since human.h does.
17598         (SIZE_MAX, UINTMAX_MAX): New macros.
17599         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
17600         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
17601         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
17602         (power_letter): Renamed from suffixes.
17603         (generate_suffix_backwards): Remove.
17604         (adjust_value): Now takes int style (because of human.h changes)
17605         and long double value (for greater precision on some platforms).
17606         (group_number): New function.
17607         (human_readable): Use it.  Use integer options, not enum.
17608         Put the options before the sizes in the arg list.
17609         Support all the new options.
17610         The old human_readable function has been removed;
17611         use inttostr.h instead.
17612         (human_readable, default_block_size, humblock):
17613         Use uintmax_t, not int, for block sizes.
17614         (human_readable_inexact, block_size_types): Remove.
17615         (block_size_opts): New constant.
17616         (human_options): Renamed from human_block_size, with new signature
17617         that allows block sizes up to UINTMAX_MAX.  All callers changed.
17618         * lib/human.h: Add copyright and authorship notice.
17619         Include <limits.h> and <stdbool.h> unconditionally.
17620         (PARAMS): Remove.  All uses removed.
17621         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
17622         (enum human_inexact_style): Remove tag; now a nameless enum.
17623         (human_floor, human_ceiling, human_round_to_even): Now have
17624         values 2, 0, 1 rather than -1, 1, 0.
17625         (human_group_digits, human_suppress_point_zero, human_autoscale,
17626         human_base_1024, human_SI, human_B): New constants.
17627         (human_readable_inexact, human_block_size): Remove.
17628         (human_readable): Size args are now uintmax_t, not int.
17629         (human_options): New decl.
17630
17631         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
17632         unnecessary now that we assume C89 or better.  This change
17633         imported from coreutils.
17634
17635         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
17636         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
17637         in the 2003-05-30 sync from glibc.
17638
17639         .h files should stand alone, but we shouldn't include <sys/types.h>
17640         if we can get away with just <stddef.h>.
17641
17642         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
17643         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
17644         rather than <sys/types.h>, as we merely need size_t.
17645         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
17646         to get size_t.
17647         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
17648         Include <stdio.h>, to get FILE.
17649         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
17650         memcasecmp.h has included <stddef.h> and all we need is size_t.
17651         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
17652         our interface, instead of including <sys/types.h>
17653
17654 2003-06-04  Paul Eggert  <eggert@twinsun.com>
17655
17656         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
17657         now, as glibc mktime is buggy on non-glibc systems.
17658
17659 2003-06-03  Karl Berry  <karl@gnu.org>
17660
17661         * config/config.sub: update from prep.
17662
17663 2003-06-02  Paul Eggert  <eggert@twinsun.com>
17664
17665         [from coreutils]
17666         Fix some minor time-related bugs with POSIX time arguments.
17667         Some valid time stamps were being rejected (notably -1, and
17668         time stamps before 1900 on 64-bit hosts).  And some invalid
17669         time stamps were being accepted, e.g. September 31.
17670
17671         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
17672         that we can return (time_t) -1 successfully.
17673         * lib/posixtm.c: Likewise.
17674         [HAVE_STDBOOL_H]: Include <stdbool.h>.
17675         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
17676         (t): Remove static var.
17677         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
17678         of static var.  All uses changed.
17679         (year): Do not reject years before 1900; they can occur with
17680         64-bit time_t.
17681         (posix_time_parse): Do not check for out-of-range components;
17682         that is now the caller's responsibility, since our checks were
17683         only approximations.
17684         (posixtime): Use mktime to check for out-of-range components,
17685         since it knows them exactly.
17686         If mktime returns (time_t) -1, check whether an error actually occurred
17687         by invoking localtime on -1.
17688         (main) [TEST_POSIXTIME]: Check for input data errors, and report
17689         posixtime failures better.
17690         Improve the test data (in comments only).
17691
17692 2003-06-02  Karl Berry  <karl@gnu.org>
17693
17694         * config/mkinstalldirs (version): new variable.
17695         (--version): new option.
17696         (usage): improve message.
17697
17698 2003-05-30  Karl Berry  <karl@gnu.org>
17699
17700         * lib/mktime.c: update from libc.
17701
17702 2003-05-30  Bruno Haible  <bruno@clisp.org>
17703
17704         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
17705         * config/config.rpath: Upgrade to gettext-0.12.1.
17706
17707 2003-05-30  Bruno Haible  <bruno@clisp.org>
17708
17709         * m4/gettext.m4: Upgrade to gettext-0.12.1.
17710         * m4/nls.m4: New file, from gettext-0.12.1.
17711         * m4/po.m4: New file, from gettext-0.12.1.
17712         * m4/progtest.m4: Upgrade to gettext-0.12.1.
17713
17714 2003-05-30  Bruno Haible  <bruno@clisp.org>
17715
17716         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
17717         * lib/localcharset.h: Likewise.
17718         * lib/localcharset.c: Likewise.
17719
17720 2003-05-29  Karl Berry  <karl@gnu.org>
17721
17722         * config/config.rpath: update from gettext.
17723
17724 2003-05-28  Paul Eggert  <eggert@twinsun.com>
17725
17726         Assume the headers required for C89 freestanding compilers.
17727         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
17728         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
17729         * m4/human.m4 (gl_HUMAN): Likewise.
17730         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
17731         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
17732         * m4/userspec.m4 (gl_USERSPEC): Likewise.
17733         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
17734         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17735         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
17736
17737 2003-05-28  Paul Eggert  <eggert@twinsun.com>
17738
17739         Assume the headers required for C89 freestanding compilers.
17740         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
17741         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
17742         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
17743         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
17744         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
17745         define, since <limits.h> is guaranteed to do that.
17746         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
17747         * lib/exclude.c: Include <stdbool.h> unconditionally.
17748         * lib/tempname.c: Include <stddef.h> unconditionally.
17749         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
17750         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
17751         <stddef.h> does that.
17752         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
17753         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
17754         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
17755         needed.
17756         * lib/xstrtol.c: Likewise.
17757         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
17758         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
17759
17760         * lib/addext.c (addext): Use assignment rather than cast, to avoid
17761         warnings on some platforms.
17762
17763         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
17764         arbitrarily.
17765
17766 2003-05-26  Jim Meyering  <jim@meyering.net>
17767
17768         Merge in a change from coreutils:
17769         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
17770         that is guaranteed to be `no'.  Use `no_such_member' to indicate
17771         that condition, rather than `-1' which is slightly misleading.
17772         Change the name of the cache variable to have the gl_ prefix.
17773         Prompted by a patch from Richard Dawe for DJGPP.
17774
17775 2003-05-24  Karl Berry  <karl@gnu.org>
17776
17777         * config/config.guess: update from prep.
17778
17779 2003-05-22  Karl Berry  <karl@gnu.org>
17780
17781         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
17782
17783 2003-05-20  Karl Berry  <karl@gnu.org>
17784
17785         * config/config.guess: update from prep.
17786
17787 2003-05-18  Karl Berry  <karl@gnu.org>
17788
17789         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
17790         might actually be set by the user.
17791
17792         * config/depcomp, install-sh, mdate-sh: update from automake.
17793
17794 2003-05-17  Bruno Haible  <bruno@clisp.org>
17795
17796         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
17797         invalid expansion for AC_EGREP_CPP.
17798         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17799         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17800         Suggested by Akim Demaille <akim@epita.fr> in
17801         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
17802
17803 2003-05-12  Jim Meyering  <jim@meyering.net>
17804
17805         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
17806         the space-padded-by-default conversion specifiers, %e, %k, %l.
17807
17808 2003-05-12  Bruno Haible  <bruno@clisp.org>
17809
17810         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
17811         the string is longer than 4 KB.
17812
17813 2003-05-11  Karl Berry  <karl@gnu.org>
17814
17815         * config/config.{guess,sub}: update from prep.
17816
17817 2003-05-09  Bruno Haible  <bruno@clisp.org>
17818
17819         * modules/error: Add m4/strerror_r.m4 to file list.
17820
17821 2003-05-03  Bruno Haible  <bruno@clisp.org>
17822
17823         Upgrade to Unicode-4.0.
17824         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
17825         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
17826         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
17827         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
17828         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
17829         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
17830         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
17831         Change width of U+E0100..U+E01EF from 1 to 0.
17832
17833 2003-04-25  Jim Meyering  <jim@meyering.net>
17834
17835         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
17836         of type size_t, not int.
17837
17838 2003-04-25  Bruno Haible  <bruno@clisp.org>
17839
17840         * lib/copy-file.c: Include <stddef.h>, for size_t.
17841
17842 2003-04-21  Paul Eggert  <eggert@twinsun.com>
17843
17844         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
17845         code which expansion is under static control.  Patch imported from
17846         Akim Demaille's patch to Bison; see
17847         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
17848
17849 2003-04-14  Bruno Haible  <bruno@clisp.org>
17850
17851         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
17852
17853 2003-04-11  Jim Meyering  <jim@meyering.net>
17854
17855         Merge changes from Coreutils.
17856
17857         2003-03-22  Jim Meyering  <jim@meyering.net>
17858
17859         * lib/strftime.c (widen): Cast alloca return value to proper type.
17860
17861         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
17862
17863         From GNU libc.
17864         * lib/strftime.c (my_strftime): Handle very large width
17865         specifications for numeric values correctly.  Improve checks for
17866         overflow.
17867
17868         2003-01-19  Jim Meyering  <jim@meyering.net>
17869
17870         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
17871         definitions.
17872         (nl_get_alt_digit) [! defined my_strftime]: Define.
17873         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
17874         _nl_get_alt_digit and _nl_get_walt_digit.
17875
17876         * lib/strftime.c (my_strftime): Merge in locale-related changes from
17877         libc. These changes have no effect outside of _LIBC.
17878
17879 2003-04-10  Bruno Haible  <bruno@clisp.org>
17880
17881         * modules/findprog: New file.
17882         * MODULES.html.sh (func_all_modules): Add it.
17883
17884 2003-04-10  Bruno Haible  <bruno@clisp.org>
17885
17886         * m4/findprog.m4: New file.
17887         * m4/eaccess.m4: New file.
17888
17889 2003-04-10  Bruno Haible  <bruno@clisp.org>
17890
17891         * lib/findprog.h: New file, from GNU gettext.
17892         * lib/findprog.c: New file, from GNU gettext.
17893
17894 2003-04-05  Jim Meyering  <jim@meyering.net>
17895
17896         Merge changes from Coreutils.
17897
17898         * lib/exclude.h (PARAMS): Remove definition and uses.
17899         * lib/exclude.c: Remove uses of `PARAMS'.
17900
17901         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
17902         Add test-cases for DOS filenames. Declare program_name.
17903         (main): Set up program_name.  Patch by Rich Dawe.
17904
17905         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
17906         error from mntctl.
17907         Use mntctl's return value to drive the entry-processing loop, since
17908         we can't rely on the value of the vmt_length member in the last
17909         entry.  On some systems doing so could result in exhausting
17910         virtual memory.  Based in part on a patch from Mike Jetzer.
17911
17912 2003-04-04  Bruno Haible  <bruno@clisp.org>
17913
17914         * modules/linebreak: New file.
17915         * MODULES.html.sh (func_all_modules): Add it.
17916
17917 2003-04-04  Bruno Haible  <bruno@clisp.org>
17918
17919         * m4/linebreak.m4: New file.
17920
17921 2003-04-04  Bruno Haible  <bruno@clisp.org>
17922
17923         * lib/linebreak.h: New file, from GNU gettext.
17924         * lib/linebreak.c: New file, from GNU gettext with slight
17925         modifications.
17926         * lib/lbrkprop.h: New file, from GNU gettext.
17927
17928 2003-04-03  Bruno Haible  <bruno@clisp.org>
17929
17930         * modules/utf8-ucs4: New file.
17931         * modules/utf16-ucs4: New file.
17932         * modules/ucs4-utf8: New file.
17933         * modules/ucs4-utf16: New file.
17934         * MODULES.html.sh (func_all_modules): Add them.
17935
17936 2003-04-03  Bruno Haible  <bruno@clisp.org>
17937
17938         * m4/utf-ucs4.m4: New file.
17939         * m4/ucs4-utf.m4: New file.
17940
17941 2003-04-03  Bruno Haible  <bruno@clisp.org>
17942
17943         * lib/utf8-ucs4.h: New file, from GNU gettext.
17944         * lib/utf16-ucs4.h: New file, from GNU gettext.
17945         * lib/ucs4-utf8.h: New file, from GNU gettext.
17946         * lib/ucs4-utf16.h: New file, from GNU gettext.
17947
17948 2003-04-02  Bruno Haible  <bruno@clisp.org>
17949
17950         * modules/binary-io: New file.
17951         * MODULES.html.sh (func_all_modules): Add it.
17952
17953 2003-04-02  Bruno Haible  <bruno@clisp.org>
17954
17955         * lib/binary-io.h: New file, from GNU gettext.
17956
17957 2003-04-01  Bruno Haible  <bruno@clisp.org>
17958
17959         * modules/pathname: New file.
17960         * MODULES.html.sh (func_all_modules): Add it.
17961
17962 2003-04-01  Bruno Haible  <bruno@clisp.org>
17963
17964         * lib/pathname.h: New file, from GNU gettext.
17965         * lib/concatpath.c: New file, from GNU gettext.
17966
17967 2003-03-30  Bruno Haible  <bruno@clisp.org>
17968
17969         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
17970
17971 2003-03-30  Bruno Haible  <bruno@clisp.org>
17972
17973         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
17974         function chown() doesn't exist.
17975
17976 2003-03-28  Bruno Haible  <bruno@clisp.org>
17977
17978         * modules/copy-file: New file.
17979         * MODULES.html.sh (func_all_modules): Add it.
17980
17981 2003-03-28  Bruno Haible  <bruno@clisp.org>
17982
17983         * m4/copy-file.m4: New file.
17984
17985 2003-03-28  Bruno Haible  <bruno@clisp.org>
17986
17987         * lib/copy-file.h: New file, from GNU gettext.
17988         * lib/copy-file.c: New file, from GNU gettext.
17989
17990 2003-03-18  Jim Meyering  <jim@meyering.net>
17991
17992         * lib/quote.c (quote_n): Fix typo in comment.
17993
17994 2003-03-18  Bruno Haible  <bruno@clisp.org>
17995
17996         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
17997         checking.
17998         * m4/onceonly_2_57.m4: Likewise.
17999
18000 2003-03-17  Bruno Haible  <bruno@clisp.org>
18001
18002         * m4/onceonly.m4: Require autoconf 2.54 or newer.
18003         (m4_quote): Remove macro.
18004         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
18005
18006 2003-03-14  Jim Meyering  <jim@meyering.net>
18007
18008         Merge changes from Coreutils.
18009         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
18010         to be const, in order to avoid warnings.
18011         (obstack_room): Likewise.
18012         (obstack_empty_p): Likewise.
18013
18014 2003-03-14  Bruno Haible  <bruno@clisp.org>
18015
18016         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
18017         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
18018
18019 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18020
18021         Merge changes from Bison.
18022         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
18023         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
18024         when compiling Bison 1.875's `bitset bset = obstack_alloc
18025         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
18026         * lib/hash.c: Include <stdbool.h> unconditionally.
18027
18028 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18029
18030         * m4/onceonly.m4 (m4_quote): New macro.
18031         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
18032         Quote AC_FOREACH variable-expansions properly.
18033
18034 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18035
18036         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
18037
18038 2003-03-09  Paul Eggert  <eggert@twinsun.com>
18039
18040         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
18041         Reported by Bruce Becker; see:
18042         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
18043
18044 2003-03-03  Paul Eggert  <eggert@twinsun.com>
18045             Bruno Haible  <bruno@clisp.org>
18046
18047         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
18048         Reported by John Hughes, see
18049         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
18050
18051 2003-02-20  Bruno Haible  <bruno@clisp.org>
18052
18053         * MODULES.html.sh (func_all_modules): Add poll.
18054
18055 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18056
18057         * modules/poll: New file.
18058
18059 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18060
18061         * lib/poll_.h: New file.
18062         * lib/poll.c: New file.
18063
18064 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18065
18066         * m4/poll.m4: New file.
18067
18068 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18069
18070         * modules/mathl: New file.
18071
18072 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18073
18074         * lib/mathl.h: New file.
18075         * lib/acosl.c: New file.
18076         * lib/asinl.c: New file.
18077         * lib/atanl.c: New file.
18078         * lib/ceill.c: New file.
18079         * lib/cosl.c: New file.
18080         * lib/expl.c: New file.
18081         * lib/floorl.c: New file.
18082         * lib/frexpl.c: New file.
18083         * lib/ldexpl.c: New file.
18084         * lib/logl.c: New file.
18085         * lib/sincosl.c: New file.
18086         * lib/sinl.c: New file.
18087         * lib/sqrtl.c: New file.
18088         * lib/tanl.c: New file.
18089         * lib/trigl.c: New file.
18090         * lib/trigl.h: New file.
18091
18092 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18093
18094         * m4/mathl.m4: New file.
18095
18096 2003-02-18  Bruno Haible  <bruno@clisp.org>
18097
18098         * MODULES.html.sh (func_all_modules): Add mathl.
18099
18100 2003-02-17  Bruno Haible  <bruno@clisp.org>
18101
18102         * modules/mkdtemp: New module.
18103         * MODULES.html.sh (func_all_modules): Add it.
18104
18105 2003-02-17  Bruno Haible  <bruno@clisp.org>
18106
18107         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
18108
18109 2003-02-17  Bruno Haible  <bruno@clisp.org>
18110
18111         * lib/mkdtemp.h: New file, from GNU gettext.
18112         * lib/mkdtemp.c: New file, from GNU gettext.
18113
18114 2003-02-02  Jim Meyering  <jim@meyering.net>
18115
18116         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
18117         e.g. glibc-2.2.93.
18118
18119 2003-01-31  Bruno Haible  <bruno@clisp.org>
18120
18121         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
18122         'rpl_rename'.
18123         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
18124         'rpl_strnlen'.
18125         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
18126         'rpl_strtod'.
18127         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
18128         'rpl_utime'.
18129
18130 2003-01-31  Bruno Haible  <bruno@clisp.org>
18131
18132         * lib/rename.c: #undef rename before defining rpl_rename.
18133         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
18134
18135 2003-01-30  Bruno Haible  <bruno@clisp.org>
18136
18137         * modules/vasnprintf, modules/vasprintf: New modules.
18138         * MODULES.html.sh (func_all_modules): Add them.
18139
18140 2003-01-30  Bruno Haible  <bruno@clisp.org>
18141
18142         * m4/signed.m4: New file, from GNU gettext.
18143         * m4/longdouble.m4: New file, from GNU gettext.
18144         * m4/wchar_t.m4: New file, from GNU gettext.
18145         * m4/wint_t.m4: New file, from GNU gettext.
18146         * m4/vasnprintf.m4: New file.
18147         * m4/vasprintf.m4: New file.
18148
18149 2003-01-30  Bruno Haible  <bruno@clisp.org>
18150
18151         * lib/printf-args.h: New file, from GNU gettext.
18152         * lib/printf-args.c: New file, from GNU gettext.
18153         * lib/printf-parse.h: New file, from GNU gettext.
18154         * lib/printf-parse.c: New file, from GNU gettext.
18155         * lib/vasnprintf.h: New file, from GNU gettext.
18156         * lib/vasnprintf.c: New file, from GNU gettext.
18157         * lib/asnprintf.c: New file, from GNU gettext.
18158         * lib/vasprintf.h: New file, from GNU gettext with modifications.
18159         * lib/vasprintf.c: New file, from GNU gettext.
18160         * lib/asprintf.c: New file, from GNU gettext.
18161
18162 2003-01-29  Bruno Haible  <bruno@clisp.org>
18163
18164         * modules/stpncpy: New module.
18165         * MODULES.html.sh (func_all_modules): Add it.
18166
18167 2003-01-29  Bruno Haible  <bruno@clisp.org>
18168
18169         * m4/stpncpy.m4: New file.
18170
18171 2003-01-29  Bruno Haible  <bruno@clisp.org>
18172
18173         * lib/stpncpy.h: New file, from GNU gettext with modifications.
18174         * lib/stpncpy.c: New file, from GNU gettext with modifications.
18175
18176 2003-01-28  Bruno Haible  <bruno@clisp.org>
18177
18178         * modules/c-ctype: New module.
18179         * MODULES.html.sh (func_all_modules): Add it.
18180
18181 2003-01-28  Bruno Haible  <bruno@clisp.org>
18182
18183         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
18184         Paul Eggert.
18185         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
18186         Paul Eggert.
18187
18188 2003-01-27  Bruno Haible  <bruno@clisp.org>
18189
18190         * modules/xsetenv: New module.
18191         * MODULES.html.sh (func_all_modules): Add it.
18192
18193 2003-01-27  Bruno Haible  <bruno@clisp.org>
18194
18195         * lib/xsetenv.h: New file, from GNU gettext.
18196         * lib/xsetenv.c: New file, from GNU gettext.
18197
18198 2003-01-23  Jim Meyering  <jim@meyering.net>
18199
18200         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
18201         from working on systems without dirfd (at least Irix and OSF1/Tru64).
18202
18203 2003-01-23  Bruno Haible  <bruno@clisp.org>
18204
18205         * modules/minmax: New module.
18206         * MODULES.html.sh (func_all_modules): Add it.
18207
18208 2003-01-23  Bruno Haible  <bruno@clisp.org>
18209
18210         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
18211         Eggert.
18212
18213 2003-01-22  Bruno Haible  <bruno@clisp.org>
18214
18215         * modules/exit: New module.
18216         * MODULES.html.sh (func_all_modules): Add it.
18217
18218 2003-01-22  Bruno Haible  <bruno@clisp.org>
18219
18220         * lib/exit.h: New file, from GNU gettext.
18221
18222 2003-01-19  Bruno Haible  <bruno@clisp.org>
18223
18224         * gnulib-tool: Recognize option --extract-maintainer.
18225         (func_get_maintainer): New function.
18226         * modules/*: Add Maintainer entry.
18227
18228 2003-01-16  Jim Meyering  <jim@meyering.net>
18229
18230         * m4/regex.m4: The `regex' struct is both input and output.
18231         Initialize it before each use.  Patch by Tim Waugh.
18232
18233 2003-01-16  Bruno Haible  <bruno@clisp.org>
18234
18235         * MODULES.html.sh: Add a table of contents. Add the module name as
18236         leftmost column. Add hyperlinks.
18237
18238 2003-01-15  Bruno Haible  <bruno@clisp.org>
18239
18240         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
18241
18242 2003-01-15  Bruno Haible  <bruno@clisp.org>
18243
18244         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
18245         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
18246         suffix.
18247
18248 2003-01-15  Bruno Haible  <bruno@clisp.org>
18249
18250         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
18251
18252 2003-01-15  Bruno Haible  <bruno@clisp.org>
18253
18254         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
18255         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
18256
18257 2003-01-14  Jim Meyering  <jim@meyering.net>
18258
18259         * lib/same.c (same_name): Tweak a comment.
18260
18261 2003-01-14  Bruno Haible  <bruno@clisp.org>
18262
18263         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
18264         when a string comparison is sufficient.
18265
18266 2003-01-14  Bruno Haible  <bruno@clisp.org>
18267
18268         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
18269         'unsigned int'.
18270
18271 2003-01-14  Bruno Haible  <bruno@clisp.org>
18272
18273         * lib/hash-pjw.c: Add comment about low quality of this function.
18274
18275 2003-01-13  Bruno Haible  <bruno@clisp.org>
18276
18277         * modules/stpcpy: Distribute lib/stpcpy.h.
18278         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
18279
18280 2003-01-13  Bruno Haible  <bruno@clisp.org>
18281
18282         * modules/*: Add a description.
18283         * modules/strpbrk: Fix Makefile.am snippet.
18284         * modules/strtoimax: Fix dependencies.
18285         * modules/strtoumax: Likewise.
18286
18287 2003-01-13  Bruno Haible  <bruno@clisp.org>
18288
18289         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
18290         * modules/alloca (Makefile.am): All object files depend on alloca.h.
18291         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
18292
18293 2003-01-13  Bruno Haible  <bruno@clisp.org>
18294
18295         * gnulib-tool (func_create_testdir): Store config/* files in the main
18296         directory.
18297         * config.rpath: Move to ...
18298         * config/config.rpath: ... here.
18299         * modules/gettext: Contains config/config.rpath, not config.rpath.
18300         * modules/iconv: Likewise.
18301
18302 2003-01-12  Paul Eggert  <eggert@twinsun.com>
18303
18304         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
18305         to avoid collisions with libcurses and libreadline.
18306
18307         * m4/getstr.m4: Remove.
18308         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
18309
18310 2003-01-12  Paul Eggert  <eggert@twinsun.com>
18311
18312         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
18313         to avoid collisions with libcurses and libreadline.
18314
18315         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
18316         * lib/getstr.h, getstr.c: Remove.
18317         * lib/getline.c: Include "getline.h", to check interface.
18318         Move body of old getstr.c here: this defines MIN_CHUNK and
18319         declares getdelim2, which is renamed from getstr.
18320         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
18321
18322         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
18323         All uses changed.
18324         * lib/linebuffer.h: Likewise.
18325         (readline): Remove backward-compatibility macro.
18326
18327 2003-01-12  Paul Eggert  <eggert@twinsun.com>
18328
18329         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
18330         to avoid collisions with libcurses and libreadline.
18331         * getstr: Remove.
18332         * MODULES.html.sh: Remove getstr.
18333         * modules/getline: Depend on unlocked-io, not getstr.
18334
18335 2003-01-12  Jim Meyering  <jim@meyering.net>
18336
18337         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
18338
18339 2003-01-10  Bruno Haible  <bruno@clisp.org>
18340
18341         * modules/alloca: Change Makefile.am requirements. Simplify Include
18342         requirements. Add lib/alloca_.h to file list.
18343
18344 2003-01-10  Bruno Haible  <bruno@clisp.org>
18345
18346         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
18347
18348 2003-01-10  Bruno Haible  <bruno@clisp.org>
18349
18350         * lib/alloca_.h: New file.
18351         * lib/getdate.y: Unconditionally include alloca.h.
18352         * lib/makepath.c: Likewise.
18353         * lib/setenv.c: Likewise.
18354         * lib/userspec.c: Likewise.
18355
18356 2003-01-09  Karl Berry  <karl@gnu.org>
18357
18358         * MODULES.html.sh: include `dirname $0` in PATH, to find
18359         gnulib-tool.
18360
18361 2003-01-09  Bruno Haible  <bruno@clisp.org>
18362
18363         * modules/stdbool: Change configure.ac, Makefile.am requirements.
18364         Simplify Include requirements. Add lib/stdbool.h.in to file list.
18365
18366 2003-01-09  Bruno Haible  <bruno@clisp.org>
18367
18368         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
18369
18370 2003-01-09  Bruno Haible  <bruno@clisp.org>
18371
18372         * lib/stdbool.h.in: New file.
18373
18374 2003-01-09  Bruno Haible  <bruno@clisp.org>
18375
18376         * gnulib-tool (func_all_modules): Ignore files ending in ~.
18377         * MODULES.html.sh: Likewise.
18378
18379 2003-01-08  Jim Meyering  <jim@meyering.net>
18380
18381         * lib/full-write.c: Undefine and define-away `const' after inclusion
18382         of errno.h, not before.  Suggestion from Bruno Haible.
18383
18384 2003-01-08  Bruno Haible  <bruno@clisp.org>
18385
18386         * modules/full-read: Depend on full-write.
18387
18388 2003-01-08  Bruno Haible  <bruno@clisp.org>
18389
18390         * lib/safe-read.c: Include specification header first, to ensure its
18391         selfcontainedness.
18392         * lib/full-write.c: Likewise.
18393
18394 2003-01-07  Jim Meyering  <jim@meyering.net>
18395
18396         * lib/full-write.c: Rework so that it may serve to define full_read,
18397         too.
18398         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
18399
18400 2003-01-07  Bruno Haible  <bruno@clisp.org>
18401
18402         * lib/strtoimax.c: Include <stdint.h> as an alternative to
18403         <inttypes.h>.
18404         * lib/xstrtol.h: Likewise.
18405         * lib/xstrtoimax.c: Likewise.
18406         * lib/xstrtoumax.c: Likewise.
18407         * lib/human.h: Likewise.
18408
18409         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
18410         on systems that have <inttypes.h> but not <stdint.h>.
18411
18412 2003-01-07  Bruno Haible  <bruno@clisp.org>
18413
18414         * MODULES.html.sh: Add copyright notice.
18415         (missed_files): Omit CVS directory entries.
18416         (func_module): Make it work with sed-3.02.
18417         * MODULES.txt: Remove file.
18418
18419 2003-01-06  Jim Meyering  <jim@meyering.net>
18420
18421         * lib/version-etc.c: Update year in translatable copyright string.
18422
18423 2003-01-03  Karl Berry  <karl@gnu.org>
18424
18425         * config/config.{guess,sub}: update from prep.
18426
18427 2003-01-02  Karl Berry  <karl@gnu.org>
18428
18429         * doc/COPYING.DOC: belatedly updated to 1.2.
18430
18431 2003-01-01  Karl Berry  <karl@gnu.org>
18432
18433         * gnulib-tool (func_verify_module): report module name $module in
18434         error message, not $1.
18435         * gnulib-tool (create-testdir): don't complain if destdir couldn't
18436         be created, only if it doesn't exist.
18437         * gnulib-tool (last_checkin_date): don't expand the $Date here.
18438
18439 2002-12-31  Paul Eggert  <eggert@twinsun.com>
18440
18441         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
18442
18443 2002-12-31  Paul Eggert  <eggert@twinsun.com>
18444
18445         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
18446         memcmp if strcoll doesn't work.
18447
18448 2002-12-31  Bruno Haible  <bruno@clisp.org>
18449
18450         * lib/utime.c (utime_null): No need to call ftruncate if the file was
18451         nonempty.
18452
18453 2002-12-31  Bruno Haible  <bruno@clisp.org>
18454
18455         * lib/memcoll.c (STRCOLL): New macro.
18456         (memcoll): Use it.
18457
18458 2002-12-31  Bruno Haible  <bruno@clisp.org>
18459
18460         * lib/localcharset.h: New file.
18461         * lib/localcharset.c: Include it.
18462         * lib/unicodeio.c: Likewise.
18463
18464 2002-12-31  Bruno Haible  <bruno@clisp.org>
18465
18466         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
18467         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
18468
18469 2002-12-31  Bruno Haible  <bruno@clisp.org>
18470
18471         * lib/getline.h: Include <stddef.h>, for size_t.
18472
18473         * lib/unicodeio.h: Include <stddef.h>, for size_t.
18474         * lib/unicodeio.c: Don't include <stddef.h>.
18475
18476 2002-12-31  Bruno Haible  <bruno@clisp.org>
18477
18478         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
18479         HAVE_TM_ZONE.
18480
18481 2002-12-24  Karl Berry  <karl@gnu.org>
18482
18483         * config/config.guess: update from prep.
18484
18485 2002-12-24  Bruno Haible  <bruno@clisp.org>
18486
18487         General infrasructure.
18488         * m4/README: Rewritten.
18489         * m4/onceonly.m4: New file.
18490         * m4/onceonly_2_57.m4: New file.
18491
18492         Module atexit.
18493         * m4/atexit.m4: New file.
18494
18495         Module strtod.
18496         * m4/strtod.m4: New file.
18497
18498         Module strtol.
18499         * m4/strtol.m4: New file.
18500
18501         Module strtoul.
18502         * m4/strtoul.m4: New file.
18503
18504         Module memchr.
18505         * m4/memchr.m4: New file.
18506
18507         Module memcmp.
18508         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
18509         (jm_FUNC_MEMCMP): Invoke it.
18510
18511         Module memcpy.
18512         * m4/memcpy.m4: New file.
18513
18514         Module memmove.
18515         * m4/memmove.m4: New file.
18516
18517         Module memset.
18518         * m4/memset.m4: New file.
18519
18520         Module strcspn.
18521         * m4/strcspn.m4: New file.
18522
18523         Module strpbrk.
18524         * m4/strpbrk.m4: New file.
18525
18526         Module strstr.
18527         * m4/strstr.m4: New file.
18528
18529         Module strerror.
18530         * m4/strerror.m4: New file.
18531
18532         Module mktime.
18533         * m4/mktime.m4: Renamed from jm-mktime.m4.
18534         (gl_PREREQ_MKTIME): New macro.
18535         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
18536
18537         Module malloc.
18538         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
18539         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
18540         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
18541
18542         Module realloc.
18543         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
18544         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
18545         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
18546
18547         Module strftime.
18548         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
18549         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
18550         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
18551         gl_TM_GMTOFF.
18552         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
18553
18554         Module xalloc.
18555         * m4/xalloc.m4: New file.
18556
18557         Module alloca.
18558         * m4/alloca.m4: New file.
18559
18560         Module putenv.
18561         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
18562         (jm_FUNC_PUTENV): Invoke it.
18563
18564         Module setenv.
18565         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
18566         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
18567         when invoked twice.
18568         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
18569         gt_FUNC_SETENV.
18570
18571         Module memrchr.
18572         * m4/memrchr.m4: New file.
18573
18574         Module stpcpy.
18575         * m4/stpcpy.m4: New file.
18576
18577         Module strcase.
18578         * m4/strcase.m4: New file.
18579
18580         Module strdup.
18581         * m4/strdup.m4: New file.
18582
18583         Module strnlen.
18584         * m4/strnlen.m4: New file.
18585
18586         Module strndup.
18587         * m4/strndup.m4: New file.
18588
18589         Module xstrtod.
18590         * m4/xstrtod.m4: New file.
18591
18592         Module xstrtol.
18593         * m4/xstrtol.m4: New file.
18594
18595         Module getdate.
18596         * m4/getdate.m4: New file.
18597
18598         Module unlocked-io.
18599         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
18600         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
18601         * m4/jm-glibc-io.m4n: Remove file.
18602
18603         Module long-options.
18604         * m4/long-options.m4: New file.
18605
18606         Module md5.
18607         * m4/md5.m4: New file.
18608
18609         Module sha.
18610         * m4/sha.m4: New file.
18611
18612         Module getstr.
18613         * m4/getstr.m4: New file.
18614
18615         Module getline.
18616         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
18617         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
18618         <sys/types.h>, for size_t. Use the function name gnu_getline, not
18619         simply getline. Infoke gl_PREREQ_GETLINE.
18620
18621         Module obstack.
18622         * m4/obstack.m4: New file.
18623
18624         Module hash.
18625         * m4/hash.m4: New file.
18626
18627         Module readtokens.
18628         * m4/readtokens.m4: New file.
18629
18630         Module strverscmp.
18631         * m4/strverscmp.m4: New file.
18632
18633         Module stdbool.
18634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
18635         OSF/1.
18636
18637         Module strtoll.
18638         * m4/strtoll.m4: New file.
18639
18640         Module strtoull.
18641         * m4/strtoull.m4: New file.
18642
18643         Module strtoimax.
18644         * m4/strtoimax.m4: New file.
18645
18646         Module strtoumax.
18647         * m4/strtoumax.m4: New file.
18648
18649         Module xstrtoimax.
18650         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
18651         jm_AC_PREREQ_XSTRTOIMAX.
18652         Moved the strtol prerequisites to strtol.m4.
18653         Moved the strtoll prerequisites to strtoll.m4.
18654         Moved the strtoimax prerequisites to strtoimax.m4.
18655
18656         Module xstrtoumax.
18657         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
18658         jm_AC_PREREQ_XSTRTOUMAX.
18659         Moved the strtoul prerequisites to strtoul.m4.
18660         Moved the strtoull prerequisites to strtoull.m4.
18661         Moved the strtoumax prerequisites to strtoumax.m4.
18662
18663         Module chown.
18664         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
18665         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
18666
18667         Module dup2.
18668         * m4/dup2.m4: New file.
18669
18670         Module ftruncate.
18671         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
18672         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
18673
18674         Module getgroups.
18675         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
18676         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
18677
18678         Module gettimeofday.
18679         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
18680         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
18681         gl_PREREQ_GETTIMEOFDAY.
18682
18683         Module mkdir.
18684         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
18685         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
18686
18687         Module mkstemp.
18688         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
18689         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
18690         jm_AC_TYPE_UINTMAX_T.
18691         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
18692
18693         Module stat.
18694         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
18695         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
18696
18697         Module lstat.
18698         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
18699         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
18700
18701         Module timespec.
18702         * m4/timespec.m4 (gl_TIMESPEC): New macro.
18703         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
18704         * m4/st_mtim.m4: Indentation.
18705
18706         Module nanosleep.
18707         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
18708         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
18709         gl_PREREQ_NANOSLEEP.
18710
18711         Module regex.
18712         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
18713         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
18714         (gl_REGEX): New macro.
18715
18716         Module rename.
18717         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
18718         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
18719
18720         Module rmdir.
18721         * m4/rmdir.m4: New file.
18722
18723         Module utime.
18724         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
18725         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
18726         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
18727
18728         Module dirname.
18729         * m4/dirname.m4: New file.
18730
18731         Module getopt.
18732         * m4/getopt.m4: New file.
18733
18734         Module unistd-safer.
18735         * m4/unistd-safer.m4: New file.
18736
18737         Module fnmatch.
18738         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
18739         declaration.
18740         (gl_PREREQ_FNMATCH_EXTRA): New macro.
18741         (gl_FUNC_FNMATCH_POSIX): New macro.
18742         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
18743         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
18744         simply fnmatch.
18745
18746         Module exclude.
18747         * m4/exclude.m4: New file.
18748
18749         Module human.
18750         * m4/human.m4: New file.
18751
18752         Module acl.
18753         * m4/acl.m4: Nop.
18754
18755         Module backupfile.
18756         * m4/backupfile.m4: New file.
18757         * m4/d-ino.m4: Indentation.
18758
18759         Module fsusage.
18760         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
18761         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
18762         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
18763
18764         Module dirfd.
18765         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
18766         requirements.
18767
18768         Module euidaccess.
18769         * m4/euidaccess.m4: New file.
18770
18771         Module file-type.
18772         * m4/file-type.m4: New file.
18773
18774         Module fileblocks.
18775         * m4/fileblocks.m4: New file.
18776
18777         Module filemode.
18778         * m4/filemode.m4: New file.
18779
18780         Module isdir.
18781         * m4/isdir.m4: New file.
18782
18783         Module lchown.
18784         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
18785         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
18786
18787         Module makepath.
18788         * m4/makepath.m4: New file.
18789
18790         Module modechange.
18791         * m4/modechange.m4: New file.
18792
18793         Module mountlist.
18794         * m4/mountlist.m4: New file.
18795         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
18796         Indentation.
18797
18798         Module path-concat.
18799         * m4/path-concat.m4: New file.
18800
18801         Module pathmax.
18802         * m4/pathmax.m4: New file.
18803
18804         Module same.
18805         * m4/same.m4: New file.
18806
18807         Module save-cwd.
18808         * m4/save-cwd.m4: New file.
18809
18810         Module savedir.
18811         * m4/savedir.m4: New file.
18812
18813         Module xgetcwd.
18814         * m4/xgetcwd.m4: New file.
18815         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
18816
18817         Module xreadlink.
18818         * m4/xreadlink.m4: New file.
18819
18820         Module safe-read.
18821         * m4/safe-read.m4: New file.
18822
18823         Module safe-write.
18824         * m4/safe-write.m4: New file.
18825
18826         Module closeout.
18827         * m4/closeout.m4: New file.
18828
18829         Module stdio-safer.
18830         * m4/stdio-safer.m4: New file.
18831
18832         Module getpass.
18833         * m4/getpass.m4: New file.
18834
18835         Module getugroups.
18836         * m4/getugroups.m4: New file.
18837
18838         Module group-member.
18839         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
18840         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
18841
18842         Module idcache.
18843         * m4/idcache.m4: New file.
18844
18845         Module userspec.
18846         * m4/userspec.m4: New file.
18847
18848         Module gettime.
18849         * m4/clock_time.m4: New file.
18850         * m4/gettime.m4: New file.
18851
18852         Module settime.
18853         * m4/settime.m4: New file.
18854
18855         Module posixtm.
18856         * m4/posixtm.m4: New file.
18857
18858         Module gethostname.
18859         * m4/gethostname.m4: New file.
18860
18861         Module canon-host.
18862         * m4/canon-host.m4: New file.
18863
18864         Module gettext.
18865         * m4/codeset.m4: New file, from gettext-0.11.5.
18866         * m4/gettext.m4: New file, from gettext-0.11.5.
18867         * m4/glibc21.m4: New file, from gettext-0.11.5.
18868         * m4/iconv.m4: New file, from gettext-0.11.5.
18869         * m4/intdiv0.m4: New file, from gettext-0.11.5.
18870         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
18871         * m4/inttypes.m4: New file, from gettext-0.11.5.
18872         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
18873         * m4/isc-posix.m4: New file, from gettext-0.11.5.
18874         * m4/lcmessage.m4: New file, from gettext-0.11.5.
18875         * m4/lib-ld.m4: New file, from gettext-0.11.5.
18876         * m4/lib-link.m4: New file, from gettext-0.11.5.
18877         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
18878         * m4/progtest.m4: New file, from gettext-0.11.5.
18879         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
18880         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
18881         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
18882
18883         Module localcharset.
18884         * m4/localcharset.m4: New file.
18885
18886         Module hard-locale.
18887         * m4/hard-locale.m4: New file.
18888
18889         Module mbswidth.
18890         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
18891         onceonly macros.
18892         * m4/mbrtowc.m4: Add comment.
18893
18894         Module memcasecmp.
18895         * m4/memcasecmp.m4: New file.
18896
18897         Module memcoll.
18898         * m4/memcoll.m4: New file.
18899
18900         Module unicodeio.
18901         * m4/unicodeio.m4: New file.
18902
18903         Module rpmatch.
18904         * m4/rpmatch.m4: New file.
18905
18906         Module yesno.
18907         * m4/yesno.m4: New file.
18908
18909         Module exitfail.
18910         * m4/exitfail.m4: New file.
18911
18912         Module c-stack.
18913         * m4/c-stack.m4 (gl_C_STACK): New macro.
18914         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
18915
18916         Module error.
18917         * m4/error.m4 (gl_ERROR): New macro.
18918         (jm_PREREQ_ERROR): Use onceonly macros.
18919
18920         Module fatal.
18921         * m4/fatal.m4: New file.
18922
18923         Module getloadavg.
18924         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
18925         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
18926
18927         Module getpagesize.
18928         * m4/getpagesize.m4: New file.
18929
18930         Module getusershell.
18931         * m4/getusershell.m4: New file.
18932
18933         Module physmem.
18934         * m4/physmem.m4: New file.
18935
18936         Module posixver.
18937         * m4/posixver.m4: New file.
18938
18939         Module quotearg.
18940         * m4/quotearg.m4: New file.
18941
18942         Module quote.
18943         * m4/quote.m4: New file.
18944
18945         Module readutmp.
18946         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
18947
18948         Module sig2str.
18949         * m4/sig2str.m4: New file.
18950
18951         Other.
18952         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
18953         ulonglong.m4.
18954         * m4/intmax_t.m4: New file.
18955         * m4/d-type.m4: Indentation.
18956         * m4/jm-macros.m4: Update.
18957         * m4/prereq.m4 (jm_PREREQ): Update.
18958         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
18959         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
18960         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
18961         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
18962         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
18963         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
18964         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
18965         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
18966         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
18967         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
18968         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
18969         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
18970         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
18971         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
18972         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
18973         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
18974         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
18975         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
18976         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
18977
18978 2002-12-24  Bruno Haible  <bruno@clisp.org>
18979
18980         * MODULES.txt: Update according to m4/ changes.
18981
18982         Module gettext.
18983         * config.rpath: New file, from gettext-0.11.5.
18984
18985         * modules/*: New module descriptions.
18986         * gnulib-tool: New file.
18987         * MODULES.html.sh: New file.
18988
18989 2002-12-21  Karl Berry  <karl@gnu.org>
18990
18991         * doc/fdl.texi: update to version 1.2.
18992
18993 2002-12-19  Karl Berry  <karl@gnu.org>
18994
18995         * config/config.guess: update from prep.
18996
18997 2002-12-18  Bruno Haible  <bruno@clisp.org>
18998
18999         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
19000         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
19001
19002 2002-12-17  Bruno Haible  <bruno@clisp.org>
19003
19004         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
19005         stdlib.h, string.h.
19006
19007 2002-12-17  Bruno Haible  <bruno@clisp.org>
19008
19009         * lib/canon-host.c (strdup): Remove unused declaration.
19010
19011         * lib/fsusage.c: Include full_read.h.
19012         (get_fs_usage): Use full_read instead of safe_read.
19013
19014         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
19015
19016 2002-12-12  Karl Berry  <karl@gnu.org>
19017
19018         * config/config.guess: update from prep.
19019
19020 2002-12-11  Bruno Haible  <bruno@clisp.org>
19021
19022         * m4/setenv.m4: New file, from gettext-0.11.5.
19023
19024 2002-12-11  Bruno Haible  <bruno@clisp.org>
19025
19026         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
19027         not unsetenv().
19028         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
19029         modifications:
19030
19031         2002-12-11  Bruno Haible  <bruno@clisp.org>
19032
19033                 * setenv.c (alloca): Fall back to malloc.
19034                 (freea): New macro.
19035                 (setenv): Use freea() to free memory allocated with alloca().
19036
19037         2002-11-13  Bruno Haible  <bruno@clisp.org>
19038
19039                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
19040                 function declarations.
19041                 * unsetenv.c (unsetenv): Likewise.
19042
19043         2002-03-04  Bruno Haible  <bruno@clisp.org>
19044
19045                 Portability to AIX 4.3.3.
19046                 * unsetenv.c: New file, extracted from setenv.c.
19047                 * setenv.c: Move the unsetenv() function to unsetenv.c.
19048
19049         2001-12-20  Bruno Haible  <bruno@clisp.org>
19050
19051                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
19052                 use malloc instead. For SunOS 4.
19053
19054         2001-12-11  Bruno Haible  <bruno@clisp.org>
19055
19056                 * setenv.c: Declare alloca.
19057                 (compar_fn_t): New typedef.
19058                 (KNOWN_VALUE, STORE_VALUE): Use it.
19059
19060         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
19061         setenv.h.
19062
19063 2002-12-10  Paul Eggert  <eggert@twinsun.com>
19064
19065         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
19066         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
19067         Choose values that are less likely to collide with system fnmatch
19068         options.
19069         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
19070         defined (e.g., a pure POSIX system).
19071         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
19072         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
19073
19074 2002-12-06  Paul Eggert  <eggert@twinsun.com>
19075
19076         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
19077         a pain in practice to deal with generated m4 files.  This change
19078         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
19079
19080         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
19081         and jm-glibc-io.m4, as they are no longer a special case.
19082         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
19083         kludge and the auto-generation stuff.  Check only whether the
19084         functions are declared, not whether they exist, since older hosts
19085         that don't declare the functions can't use the optimization anyway.
19086
19087 2002-12-06  Jim Meyering  <jim@meyering.net>
19088
19089         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
19090
19091         Merge in changes from libc's misc/error.c, in preparation
19092         for the merge of gnulib's changes back into libc.
19093
19094         * lib/error.c (_): Define only if not already defined.
19095         Move definition to follow all #include directives.
19096         Include unlocked-io.h only if !_LIBC.
19097         [_LIBC]: Include <libio/libioP.h>.
19098         [USE_IN_LIBIO]: Include <libio/iolibio.h>
19099         (fflush): Tweak definition to use INTUSE.
19100         (putc): Define.
19101
19102 2002-12-05  Paul Eggert  <eggert@twinsun.com>
19103
19104         * lib/alloca.c [defined emacs]: Include "lisp.h".
19105         (xalloc_die) [defined emacs]: New macro.
19106         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
19107         [! defined emacs]: Include <xalloc.h>.
19108         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
19109         (pointer): Typedef to POINTER_TYPE *.
19110         (malloc): Remove decl; we now always use xmalloc.
19111         (alloca): Use old-style definition, since Emacs needs this.
19112         Check for arithmetic overflow when computing combined size.
19113
19114 2002-12-04  Paul Eggert  <eggert@twinsun.com>
19115
19116         Do not generate unlocked-io.h automatically, since it's easier to
19117         maintain it by hand.
19118
19119         * lib/unlocked-io.h: New file, from GNU diffutils,
19120         but with proper copyright notice and attribution.
19121         * lib/gen-uio: Remove.
19122         * lib/Makefile.am: Add copyright notice.
19123         (libfetish_a_SOURCES): Add unlocked-io.h.
19124         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
19125         (DISTCLEANFILES, io_functions): Remove macros.
19126         (EXTRA_DIST): Remove gen_uio.
19127         (unlocked-io.h): Remove rule.
19128
19129 2002-12-04  Jim Meyering  <jim@meyering.net>
19130
19131         Reflect the fact that stat.c and lstat.c are no longer generated.
19132         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
19133         (DISTCLEANFILES): Likewise.
19134         (EXTRA_DIST): Likewise.
19135         (all_local): Don't depend on stat.c or lstat.c.
19136         (stat.c, lstat.c): Remove rules.
19137         (EXTRA_DIST): Remove xstat.in.
19138
19139         * lib/xstat.in: Remove file.  Contents moved into stat.c.
19140         * lib/stat.c: New file.  Contents mostly from xstat.in.
19141         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
19142         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
19143
19144         * lib/safe-read.c: Rework so that it may serve to define safe_write,
19145         too.
19146         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
19147
19148 2002-12-03  Jim Meyering  <jim@meyering.net>
19149
19150         * lib/safe-read.c, safe-write.c: Change variable names and comments,
19151         but not semantics, to minimize the differences between these two files.
19152         (safe_read): Change comment to mention SAFE_READ_ERROR.
19153
19154         * lib/safe-read.c (IS_EINTR): Define.
19155         (safe_read): Use IS_EINTR in place of in-function cpp directives.
19156
19157 2002-12-02  Jim Meyering  <jim@meyering.net>
19158
19159         * lib/safe-read.c (EINTR): Define.
19160         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
19161         (INT_MAX): Provide fallback.
19162         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
19163
19164         * lib/safe-read.h (SAFE_READ_ERROR): Define.
19165
19166 2002-12-02  Bruno Haible  <bruno@clisp.org>
19167
19168         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
19169         Define, taken from safe-read.c.
19170         (INT_MAX): Provide fallback.
19171         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
19172         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
19173
19174         * lib/safe-read.c (EINTR): Remove definition.
19175         (safe_read): Don't use EINTR if it is absent.
19176
19177 2002-12-01  Jim Meyering  <jim@meyering.net>
19178
19179         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
19180         zero.
19181         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
19182
19183 2002-11-27  Paul Eggert  <eggert@twinsun.com>
19184
19185         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
19186         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
19187         with `if (! (value < limit)) abort ();', for readability.
19188
19189 2002-11-26  Karl Berry  <karl@gnu.org>
19190
19191         * lib/strdup.c: copy from libc again, with jim's ok.
19192         * lib/.cppi-disable: re-add strdup.c
19193
19194 2002-11-25  Karl Berry  <karl@gnu.org>
19195
19196         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
19197         instead of "strtol.c".
19198
19199 2002-11-25  Karl Berry  <karl@gnu.org>
19200
19201         * config/install-sh: update from automake for variable quoting, $0 in
19202         error msgs, etc.
19203
19204         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
19205         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
19206         entry.
19207
19208 2002-11-25  Jim Meyering  <jim@meyering.net>
19209
19210         * lib/mktime.c: Sync from libc, now that it has the latest fix.
19211
19212 2002-11-24  Karl Berry  <karl@gnu.org>
19213
19214         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
19215         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
19216
19217 2002-11-24  Jim Meyering  <jim@meyering.net>
19218
19219         Update from coreutils:
19220
19221         * lib/mktime.c: Merge in changes from libc.
19222
19223         Avoid a link-time failure on some Linux systems.
19224         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
19225         (otherwise).
19226         (__mon_yday): Declare with the STATIC attribute.
19227         (__mktime_internal): Likewise.
19228         Based on a report from Greg Schafer.
19229
19230 2002-11-23  Jim Meyering  <jim@meyering.net>
19231
19232         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
19233         Use `unsigned', not `int', as type of index.
19234
19235         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
19236
19237         * lib/fsusage.c: Remove unneeded parentheses around operands of
19238         `defined'.
19239
19240 2002-11-22  Paul Eggert  <eggert@twinsun.com>
19241
19242         * lib/quotearg.h: Allow multiple inclusion by surrounding with
19243         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
19244         so that we can be included first.
19245         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
19246         * lib/quotearg.c: Include quotearg.h immediately after config.h.
19247         No need to include stddef.h or sys/types.h any more.
19248         Surround local include files with "", not "<>".
19249         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
19250         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
19251         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
19252         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
19253         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
19254         (ISPRINT): Remove; no longer needed now that we assume C89.
19255
19256         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
19257         Preserve errno.
19258
19259         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
19260         quotearg_char): Use SIZE_MAX rather than
19261         (size_t) -1 when we are talking about "infinity".
19262
19263         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
19264
19265 2002-11-22  Paul Eggert  <eggert@twinsun.com>
19266
19267         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
19268         hint that one should use `if (! x) abort ();' rather than `assert
19269         (x);', and anyway it's one less thing to worry about configuring.
19270         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
19271         hash_rehash, hash_insert): Use abort rather than assert.
19272
19273 2002-11-22  Bruno Haible  <bruno@clisp.org>
19274
19275         * lib/safe-read.h: Assume C89. Add comments.
19276         (safe_read): Change return type to size_t.
19277         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
19278         byte counts > SSIZE_MAX correctly.
19279         * lib/safe-write.h: New file.
19280         * lib/safe-write.c: New file.
19281         * lib/full-read.h: New file.
19282         * lib/full-read.c: New file.
19283         * lib/full-write.h: Assume C89. Add comments.
19284         * lib/full-write.c: Include safe-write.h.
19285         (full_write): Rewritten to use safe_write.
19286         Suggested by Jim Meyering and Paul Eggert.
19287
19288 2002-11-21  Jim Meyering  <jim@meyering.net>
19289
19290         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
19291
19292         Merge in changes from the coreutils.
19293
19294         2002-09-25  Paul Eggert  <eggert@twinsun.com>
19295         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
19296         <stdint.h>.
19297         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
19298         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
19299         int.  Work more efficiently if X is the same width as uintmax_t.
19300         Do not compare X to -1, to avoid bogus compiler warning.
19301         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
19302         Don't assume that f_frsize and f_bsize are the same type.
19303
19304         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
19305         warning on FreeBSD.
19306
19307         * lib/makepath.c (make_path): Restore umask *before* creating the final
19308         component.
19309         (make_path): Minor reformatting.
19310
19311         * lib/xmalloc.c: Adjust to work with new autoconf macros,
19312         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
19313         HAVE_MALLOC/HAVE_REALLOC.
19314
19315         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
19316         dummy ones.  At least on GNU/Linux systems, `auto' means something
19317         else.
19318         From Michael Stone.
19319
19320 2002-11-21  Bruno Haible  <bruno@clisp.org>
19321
19322         Remove case insensitive option matching.
19323         * lib/argmatch.h (argcasematch): Remove declaration.
19324         (ARGCASEMATCH): Remove macro.
19325         (__xargmatch_internal): Remove case_sensitive argument.
19326         (XARGMATCH): Update.
19327         (XARGCASEMATCH): Remove macro.
19328         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
19329         case_sensitive argument.
19330         (argcasematch): Remove function.
19331         (__xargmatch_internal): Remove case_sensitive argument.
19332         (main): Use XARGMATCH instead of XARGCASEMATCH.
19333
19334         * lib/xmalloc.c: Change compile-time error message. Add comment about
19335         required autoconf version.
19336
19337 2002-11-20  Paul Eggert  <eggert@twinsun.com>
19338
19339         Merge argmatch cleanups from Bison.  Assume C89.
19340
19341         * lib/argmatch.c: Include config.h here, not in argmatch.h.
19342         Include stdlib.h, for EXIT_FAILURE.
19343         Always include <string.h>, since we assume C89.
19344         (EXIT_FAILURE): Remove pre-C89 bug workaround.
19345         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
19346         Include <stddef.h> instead, since it's all we need for size_t.
19347         (PARAMS): Remove.  All uses removed.
19348         (ARRAY_CARDINALITY): Do not bother to #undef.
19349         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
19350         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
19351         Remove unnecessary parentheses.
19352         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
19353         Insert necessary parentheses.
19354         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
19355         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
19356
19357 2002-11-19  Bruno Haible  <bruno@clisp.org>
19358
19359         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
19360         * lib/mbswidth.h: Include <stddef.h>, for size_t.
19361
19362         * lib/mbswidth.h (PARAMS): Remove macro.
19363         (mbswidth, mbsnwidth): Use ANSI C function declarations.
19364         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
19365
19366         * lib/gcd.h (PARAMS): Remove macro.
19367         (gcd): Use ANSI C function declarations.
19368         * lib/gcd.c (gcd): Likewise.
19369
19370 2002-11-15  Bruno Haible  <bruno@clisp.org>
19371
19372         * lib/strcspn.c: Include <stddef.h>.
19373         (strcspn): Use ANSI C function declaration. Change return type to
19374         size_t. Use NULL.
19375         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
19376         (strpbrk): Use NULL.
19377         * lib/strpbrk.h (PARAMS): Remove macro.
19378         (strpbrk): Use ANSI C function declaration.
19379         * lib/strstr.c: Don't include <sys/types.h>.
19380         * lib/strstr.h (PARAMS): Remove macro.
19381         (strstr): Use ANSI C function declarations.
19382
19383 2002-11-14  Karl Berry  <karl@gnu.org>
19384
19385         * config/mkinstalldirs: `do' on separate line, instead of
19386         `for var; do'.
19387
19388 2002-11-06  Bruno Haible  <bruno@clisp.org>
19389
19390         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
19391         * lib/gcd.c (gcd): Likewise.
19392
19393 2002-11-05  Bruno Haible  <bruno@clisp.org>
19394
19395         * lib/gcd.h: New file, from gettext-0.11.5.
19396         * lib/gcd.c: New file, from gettext-0.11.5.
19397
19398 2002-11-05  Bruno Haible  <bruno@clisp.org>
19399
19400         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19401         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19402         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19403         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
19404
19405         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
19406         <libintl.h>.
19407         * lib/makepath.c: Include gettext.h instead of <locale.h> and
19408         <libintl.h>.
19409
19410         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
19411         * lib/human.c: Include gettext.h instead of <libintl.h>.
19412         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
19413         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
19414         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
19415         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
19416         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
19417         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
19418         (textdomain): Remove definition.
19419         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
19420
19421         * lib/long-options.c: Remove include of <libintl.h> and definition of
19422         _.
19423         * lib/same.c: Remove include of <libintl.h> and definition of _.
19424
19425 2002-11-04  Owen Taylor  <otaylor@redhat.com>
19426
19427         * lib/config.charset: A few additions for Solaris.
19428
19429 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
19430
19431         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
19432         * lib/localcharset.c (locale_charset): Declare as extern "C".
19433
19434 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
19435
19436         * lib/config.charset: msdos in uk_UA uses CP1125.
19437
19438 2002-11-04  Bruno Haible  <bruno@clisp.org>
19439
19440         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
19441         * lib/strcase.h: New file, from GNU gettext-0.11.5.
19442         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
19443         * lib/strstr.h: New file, from GNU gettext-0.11.5.
19444         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
19445
19446 2002-11-04  Bruno Haible  <bruno@clisp.org>
19447
19448         * lib/localcharset.c (locale_charset): Don't return an empty string.
19449
19450 2002-11-04  Bruno Haible  <bruno@clisp.org>
19451
19452         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
19453         aliases.
19454
19455 2002-11-04  Bruno Haible  <bruno@clisp.org>
19456
19457         * lib/config.charset: Update for newest glibc. Add canonical names
19458         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
19459
19460 2002-11-04  Bruno Haible  <bruno@clisp.org>
19461
19462         * lib/config.charset: Add support for NetBSD.
19463
19464 2002-11-04  Bruno Haible  <bruno@clisp.org>
19465
19466         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
19467
19468 2002-11-01  Bruno Haible  <bruno@clisp.org>
19469
19470         * configure.in: Add AC_CONFIG_AUX_DIR call.
19471         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
19472         test/Makefile.
19473         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
19474
19475 2002-09-28  Karl Berry  <karl@gnu.org>
19476
19477         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
19478         installed automake until the next release, since changes have been
19479         made.
19480
19481 2002-09-25  Karl Berry  <karl@gnu.org>
19482
19483         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
19484         * lib/getopt*: copy from libc/posix.
19485         * lib/gettext.h: copy from gettext.
19486         * lib/.cppi-disable: add strdup.c, gettext.h.
19487
19488 2002-09-25  Karl Berry  <karl@gnu.org>
19489
19490         * config/srclist.txt: enable gettext.h check.
19491         * config/config.{guess,sub}: update from prep.
19492         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
19493                 from automake 1.6.3.
19494         See srclist*.
19495
19496 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
19497
19498         * regex.c (PATFETCH): Remove the translating fetch.
19499         (PATFETCH_RAW): Rename to PATFETCH.
19500         (set_image_of_range): New fun.
19501         (SET_RANGE_TABLE_WORK_AREA): Use it.
19502         (regex_compile): Don't translate the pattern chars so eagerly.
19503         Only do it when inserting an `exactn' bytecode or when handling
19504         a char-range.
19505         (mutually_exclusive_p): Avoid empty statement.
19506
19507 2002-07-06  Jim Meyering  <meyering@lucent.com>
19508
19509         * m4/README: Don't mention Makefile.am.in.
19510         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
19511
19512 2002-07-01  Jim Meyering  <meyering@lucent.com>
19513
19514         * lib/c-stack.c: Include sys/time.h.
19515         From Volker Borchert.
19516
19517 2002-06-26  Paul Eggert  <eggert@twinsun.com>
19518
19519         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
19520
19521 2002-06-26  Paul Eggert  <eggert@twinsun.com>
19522
19523         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
19524         New macro.  Use it uniformly instead of
19525         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
19526         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
19527         reported by Vin Shelton.
19528
19529 2002-06-22  Paul Eggert  <eggert@twinsun.com>
19530
19531         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
19532         Do not assume SA_SIGINFO behavior.
19533         Bug reported by Jim Meyering on NetBSD 1.5.2.
19534
19535 2002-06-22  Jim Meyering  <meyering@lucent.com>
19536
19537         * m4/c-stack.m4: New file, from diffutils-2.8.2.
19538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
19539
19540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
19541         now that configure.ac uses AC_GNU_SOURCE.
19542         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
19543         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
19544
19545         Update to latest tools.  Suggestions from Paul Eggert.
19546         * m4/stdbool.m4: New file, from diffutils-2.8.2.
19547         * m4/gnu-source.m4: Update from diffutils-2.8.2.
19548         * m4/fnmatch.m4: Likewise.
19549         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
19550         to AC_HEADER_STDBOOL
19551
19552 2002-06-22  Jim Meyering  <meyering@lucent.com>
19553
19554         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
19555         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
19556
19557 2002-06-22  Jim Meyering  <meyering@lucent.com>
19558
19559         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
19560
19561         * lib/exitfail.c, exitfail.h: Likewise.
19562         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
19563
19564         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
19565         of fnmatch.h.
19566         (EXTRA_DIST): Add fnmatch_loop.c.
19567         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
19568
19569         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
19570         * lib/fnmatch.c: Update from diffutils-2.8.2.
19571         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
19572         * lib/fnmatch.h: Remove file.
19573
19574 2002-06-21  Jim Meyering  <meyering@lucent.com>
19575
19576         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
19577         * m4/mbrtowc.m4: Likewise.
19578
19579         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
19580         * m4/mbswidth.m4: Reflect name change:
19581         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
19582         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
19583
19584         * m4/lib-link.m4: Update from gettext-0.11.2.
19585         * m4/gettext.m4: Likewise.
19586
19587         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
19588         From Alfred M. Szmidt.
19589
19590 2002-06-18  Paul Eggert  <eggert@twinsun.com>
19591
19592         * lib/file-type.h: Report an error if neither S_ISREG nor
19593         S_IFREG is defined, instead of using a test specific to glibc
19594         2.2.  This should be safe, since POSIX requires S_ISREG and
19595         Unix Version 7 had S_IFREG.  We don't need to check for
19596         <sys/types.h> since we don't use any symbols that it defines.
19597
19598 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
19599
19600         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
19601         $@-t, so that each temporary file name is unique and valid in the first
19602         8 characters, for operation under DOS.
19603
19604 2002-06-15  Paul Eggert  <eggert@twinsun.com>
19605
19606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
19607
19608 2002-06-15  Jim Meyering  <meyering@lucent.com>
19609
19610         Work even with DJGPP 2.03, which lacks support for symlinks.
19611         From Richard Dawe.
19612         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
19613         is defined.
19614         * lib/lchown.c (S_ISLNK): Likewise.
19615
19616 2002-06-15  Jim Meyering  <meyering@lucent.com>
19617
19618         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
19619         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
19620         have been included before this file.
19621
19622 2002-06-14  Jim Meyering  <meyering@lucent.com>
19623
19624         * lib/file-type.h: Use the version from diffutils-2.8.2.
19625         * lib/file-type.c: Likewise.
19626
19627 2002-06-07  Jim Meyering  <meyering@lucent.com>
19628
19629         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
19630         They're needed at least for NetBSD 1.5.2.
19631         ($statxfs_includes): Include those same headers.
19632         ($statxfs_includes): Include sys/vfs.h if available.
19633         ($statxfs_includes): Likewise for sys/statvfs.h.
19634         Check for the following members in both structs statfs and statvfs:
19635         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
19636
19637 2002-06-01  Jim Meyering  <meyering@lucent.com>
19638
19639         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
19640         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
19641
19642 2002-05-28  Jim Meyering  <meyering@lucent.com>
19643
19644         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
19645         Reported by Volker Borchert.
19646
19647 2002-05-27  Jim Meyering  <meyering@lucent.com>
19648
19649         Fix a problem seen only on nonconforming systems whereby ls.c's
19650         use of localtime, and then of gettimeofday would cause trouble:
19651         the localtime call used to initialize rpl_gettimeofday's save
19652         mechanism would clobber ls's current local time information so
19653         that in any long listing the first file would always be listed
19654         with date 1970-01-01.  Analysis by Volker Borchert.
19655
19656         * lib/gettimeofday.c (localtime): Undefine.
19657         (rpl_localtime): New function.
19658
19659 2002-05-27  Jim Meyering  <meyering@lucent.com>
19660
19661         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
19662         localtime.
19663
19664         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
19665         use the replacement function; it wouldn't resolve at link time.
19666         Reported by Volker Borchert.
19667
19668 2002-05-22  Jim Meyering  <meyering@lucent.com>
19669
19670         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
19671         file-type.h.
19672         * lib/file-type.h: New file.
19673         * lib/file-type.c (file_type): New file/function.  Extracted from
19674         diffutils.
19675
19676 2002-04-30  Jim Meyering  <meyering@lucent.com>
19677
19678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
19679
19680 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19681
19682         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
19683
19684 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19685
19686         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
19687         Do not check for alloca.h (no longer used) or stdbool.h (was never
19688         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
19689
19690 2002-04-29  Paul Eggert  <eggert@twinsun.com>
19691
19692         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
19693
19694 2002-04-29  Jim Meyering  <meyering@lucent.com>
19695
19696         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
19697         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
19698         Use AC_FUNC_STRNLEN here instead.
19699
19700         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
19701         With autoconf-2.53a, it's part of AC_PROG_CC.
19702
19703 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19704
19705         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
19706         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
19707
19708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19709
19710         * lib/sig2str.h, lib/sig2str.c: New files.
19711         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
19712
19713 2002-04-28  Paul Eggert  <eggert@twinsun.com>
19714
19715         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
19716         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
19717         of 127, since 64 is the largest conceivable number for ancient
19718         nonstandard hosts.
19719         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
19720
19721 2002-04-28  Jim Meyering  <meyering@lucent.com>
19722
19723         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
19724
19725 2002-04-24  Jim Meyering  <meyering@lucent.com>
19726
19727         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
19728         (jm_PREREQ): Use it.
19729
19730         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
19731         mach/mach.h fcntl.h.
19732         Check for this function: setlocale.
19733
19734 2002-04-24  Jim Meyering  <meyering@lucent.com>
19735
19736         * lib/gettext.h: New file, from Gettext.
19737         * lib/Makefile.am (INCLUDES): Remove -I../intl.
19738         (libfetish_a_SOURCES): Add gettext.h.
19739
19740 2002-04-16  Jim Meyering  <meyering@lucent.com>
19741
19742         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
19743         ut_pid, ut_id, ut_exit.
19744
19745 2002-04-16  Jim Meyering  <meyering@lucent.com>
19746
19747         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
19748         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
19749         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
19750
19751 2002-04-12  Jim Meyering  <meyering@lucent.com>
19752
19753         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
19754         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
19755         existence of the getmntinfo function.  Needed for Darwin 5.3.
19756
19757         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
19758         This is necessary at least on Darwin 5.3.
19759
19760         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
19761         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
19762         strnlen.o in the library, and that makes some versions of ranlib
19763         object.
19764
19765 2002-04-12  Jim Meyering  <meyering@lucent.com>
19766
19767         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
19768
19769 2002-04-09  Jim Meyering  <meyering@lucent.com>
19770
19771         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
19772         to be more precise.  Rather than saying we're checking whether the
19773         function `works', say what we're testing.
19774         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
19775         Reported by Bruno Haible.
19776
19777 2002-03-10  Jim Meyering  <meyering@lucent.com>
19778
19779         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
19780         Suggestion from Santiago Vila.
19781
19782 2002-03-08  Jim Meyering  <meyering@lucent.com>
19783
19784         * lib/rename.c: Mention that this wrapper is needed also on
19785         mips-dec-ultrix4.4 systems.
19786
19787 2002-03-02  Jim Meyering  <meyering@lucent.com>
19788
19789         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
19790         not HAVE_CLOCK_SETTIME.
19791
19792 2002-02-27  Paul Eggert  <eggert@twinsun.com>
19793
19794         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
19795         Check for clock_settime.
19796
19797 2002-02-27  Paul Eggert  <eggert@twinsun.com>
19798
19799         * lib/nanosleep.h: Rename to....
19800         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
19801
19802         * lib/gettime.c: New file.
19803         * lib/settime.c: New file.
19804         * lib/stime.c: Remove.
19805
19806         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
19807         timespec.h.  Remove nanosleep.h.
19808
19809 2002-02-25  Paul Eggert  <eggert@twinsun.com>
19810
19811         * m4/acl.m4: New file.
19812         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
19813         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
19814
19815 2002-02-25  Paul Eggert  <eggert@twinsun.com>
19816
19817         * lib/acl.c, lib/acl.h: New files.
19818         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
19819
19820 2002-02-24  Jim Meyering  <meyering@lucent.com>
19821
19822         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
19823         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
19824         cause trouble.  Reported by Nelson Beebe.
19825
19826 2002-02-23  Paul Eggert  <eggert@twinsun.com>
19827
19828         * lib/path-concat.c (xpath_concat): Reorder code to pacify
19829         compilers that don't know that xalloc_die never returns.
19830
19831 2002-02-20  Jim Meyering  <meyering@lucent.com>
19832
19833         * lib/getdate.c: Regenerate using bison-1.33.
19834
19835 2002-02-17  Jim Meyering  <meyering@lucent.com>
19836
19837         * config/config.guess (main): Don't use `head -1'; it's no longer
19838         portable. Use `sed 1q' instead.
19839
19840 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
19841
19842         * m4/codeset.m4: Upgrade to gettext-0.11.
19843         * m4/gettext.m4: Upgrade to gettext-0.11.
19844         * m4/glibc21.m4: Upgrade to gettext-0.11.
19845         * m4/iconv.m4: Upgrade to gettext-0.11.
19846         * m4/isc-posix.m4: Upgrade to gettext-0.11.
19847         * m4/lcmessage.m4: Upgrade to gettext-0.11.
19848         * m4/lib-ld.m4: New file, from gettext-0.11.
19849         * m4/lib-link.m4: New file, from gettext-0.11.
19850         * m4/lib-prefix.m4: New file, from gettext-0.11.
19851         * m4/progtest.m4: Upgrade to gettext-0.11.
19852
19853 2002-02-15  Paul Eggert  <eggert@twinsun.com>
19854
19855         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
19856         (jm_PREREQ): Use it.
19857
19858 2002-02-15  Paul Eggert  <eggert@twinsun.com>
19859
19860         * lib/posixver.c, lib/posixver.h: New files.
19861         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
19862
19863 2002-02-02  Paul Eggert  <eggert@twinsun.com>
19864             Bruno Haible  <bruno@clisp.org>
19865
19866         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
19867         (fwrite_success_callback): New declaration.
19868         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
19869         print_unicode_char. Call failure callback instead of error.
19870         (fwrite_success_callback): New function.
19871         (exit_failure_callback): New function.
19872         (fallback_failure_callback): New function.
19873         (print_unicode_char): Call unicode_to_mb.
19874
19875 2002-01-26  Jim Meyering  <meyering@lucent.com>
19876
19877         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
19878         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
19879
19880 2002-01-26  Jim Meyering  <meyering@lucent.com>
19881
19882         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
19883
19884 2002-01-22  Paul Eggert  <eggert@twinsun.com>
19885
19886         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
19887
19888 2002-01-22  Jim Meyering  <meyering@lucent.com>
19889
19890         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
19891         Otherwise, some versions of automake would omit the rule that makes
19892         Makefile from Makefile.in.
19893
19894 2002-01-21  Paul Eggert  <eggert@twinsun.com>
19895
19896         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
19897         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
19898         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
19899         (memcoll): Set errno to zero if there is no error.
19900
19901         * lib/quotearg.c (quotearg_buffer_restyled):
19902         Fix bug with quoting buffers containing NUL when backslashing escapes.
19903         This bug was exposed by the other changes in this patch.
19904         (quotearg_n_options): New arg ARGSIZE.
19905         All callers changed.
19906         (quoting_options_from_style): New function.
19907         (quotearg_n_style): Use it.
19908         (quotearg_n_style_mem): New function.
19909
19910         * lib/quotearg.h (quotearg_n_style_mem): New function.
19911
19912 2002-01-19  Jim Meyering  <meyering@lucent.com>
19913
19914         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
19915         Remove useless quotes: DF_PROG="df".
19916         * m4/strnlen.m4: New file.
19917
19918 2002-01-16  Paul Eggert  <eggert@twinsun.com>
19919
19920         * lib/backupfile.c (ISDIGIT): Comment fix.
19921         * lib/getdate.y (ISDIGIT): Likewise.
19922         * lib/posixtm.c (ISDIGIT, year): Likewise.
19923         * lib/strverscmp.c (ISDIGIT): Likewise.
19924         * lib/userspec.c (ISDIGIT): Likewise.
19925
19926 2002-01-16  Jim Meyering  <meyering@lucent.com>
19927
19928         * lib/getdate.y: Add three semicolons, each just before a closing
19929         brace. Bison (as of version 1.31) no longer papers over that mistake.
19930
19931 2002-01-05  Jim Meyering  <meyering@lucent.com>
19932
19933         * lib/version-etc.c (version_etc_copyright): Update copyright year.
19934
19935 2001-12-19  Paul Eggert  <eggert@twinsun.com>
19936
19937         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
19938         not silently exit merely because the output buffer happens to
19939         have nothing pending.
19940
19941 2001-12-18  Paul Eggert  <eggert@twinsun.com>
19942
19943         See the big note in ../ChangeLog.
19944         * lib/human.c (suffixes): Prefer K to k for 1024.
19945         (generate_suffix_backwards): New function.
19946         (human_readable_inexact): Use it.
19947         * lib/xstrtol.c (__xstrtol): If there is no number but there
19948         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
19949         Accept 'K' as well as 'k'.
19950
19951 2001-12-15  Jim Meyering  <meyering@lucent.com>
19952
19953         * lib/regex.h (__restrict_arr): Update from libc.
19954
19955         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
19956         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
19957         (STREQ): Define.
19958
19959 2001-12-14  Jim Meyering  <meyering@lucent.com>
19960
19961         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
19962         Suggestion from Bruno Haible.
19963
19964 2001-12-10  Jim Meyering  <meyering@lucent.com>
19965
19966         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
19967         xrealloc, Instead, include "xalloc.h".
19968         (initbuffer): Don't cast xmalloc return value to char*.
19969         (readline): Reword comment.
19970         Don't cast xrealloc return value to char*
19971         Return NULL, not 0.
19972
19973 2001-12-09  Jim Meyering  <meyering@lucent.com>
19974
19975         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
19976         about `signed and unsigned type in conditional expression'.
19977         * lib/posixtm.c (posix_time_parse): Likewise.
19978
19979         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
19980
19981         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
19982         to avoid a pedantic warning.
19983
19984         * lib/getstr.c: Don't include assert.h.
19985         (getstr): Remove warning-evoking assertions.
19986         Return -1 if offset parameter is out of bounds.
19987         Change the type of a local from int to size_t.
19988
19989         * lib/strftime.c (my_strftime_localtime_r): Include this function
19990         definition in the `#if ! HAVE_TM_GMTOFF' block.
19991
19992         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
19993         Include xalloc.h instead.
19994
19995 2001-12-02  Jim Meyering  <meyering@lucent.com>
19996
19997         * lib/tempname.c: Don't declare getenv, thus reverting the change of
19998         2001-11-18.  It's no longer necessary, now that stdlib.h is always
19999         included.
20000
20001         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
20002         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
20003
20004 2001-11-30  Akim Demaille  <akim@epita.fr>
20005
20006         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
20007         before being defined.
20008
20009 2001-11-27  Paul Eggert  <eggert@twinsun.com>
20010
20011         * lib/quotearg.h (quotearg_n, quotearg_n_style):
20012         First arg is int, not unsigned.
20013         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
20014         (SIZE_MAX, UINT_MAX): New macros.
20015         (quotearg_n_options): Abort if N is negative.
20016         Avoid overflow check on hosts where size_t is 64 bits and int
20017         is 32 bits, as overflow is impossible there.
20018         Fix off-by-one typo that caused unnecessary reallocation.
20019
20020 2001-11-27  Jim Meyering  <meyering@lucent.com>
20021
20022         * lib/tempname.c: Merge with version from libc.
20023         * lib/regex.c: Likewise.
20024
20025         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
20026         systems for which STDC_HEADERS is 0, it was not included, resulting in
20027         a warning about an integer-to-pointer conversion problem with getenv.
20028         Reported by Volker Borchert.
20029
20030 2001-11-26  Jim Meyering  <meyering@lucent.com>
20031
20032         * lib/gtod.h: Remove file.
20033         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
20034         * lib/gettimeofday.c: Don't include gtod.h.
20035         (GTOD_init): Remove function.
20036         (rpl_gettimeofday): Do its job here instead, rather than aborting.
20037         Suggestion from Volker Borchert.
20038
20039 2001-11-23  Jim Meyering  <meyering@lucent.com>
20040
20041         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
20042         it.
20043         * lib/hash.c (struct hash_table): Define it here instead.
20044
20045 2001-11-22  Jim Meyering  <meyering@lucent.com>
20046
20047         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
20048
20049 2001-11-20  Jim Meyering  <meyering@lucent.com>
20050
20051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
20052         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
20053
20054 2001-11-19  Jim Meyering  <meyering@lucent.com>
20055
20056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
20057         directory.  Use "conftestXXXXXX" as the template.
20058         Suggestion from Paul Eggert.
20059
20060         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
20061         immediately, so the test doesn't mistakenly hit the max-open-files
20062         limit.
20063
20064 2001-11-18  Paul Eggert  <eggert@twinsun.com>
20065
20066         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
20067         (TEMPORARIES): New macro.
20068         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
20069         removes an artificial limitation (e.g. HP-UX 10.20, where
20070         TMP_MAX is 17576).
20071
20072 2001-11-18  Jim Meyering  <meyering@lucent.com>
20073
20074         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
20075
20076 2001-11-18  Jim Meyering  <meyering@lucent.com>
20077
20078         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
20079         on SunOS 4.
20080
20081         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
20082         files will be created before anything else.
20083
20084 2001-11-17 Paul Eggert  <eggert@twinsun.com>
20085
20086         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
20087         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
20088
20089 2001-11-17  Jim Meyering  <meyering@lucent.com>
20090
20091         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
20092         Prompted by a report from Bob Proulx.
20093
20094         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
20095         Instead, require UTILS_FUNC_MKSTEMP.
20096
20097 2001-11-17  Jim Meyering  <meyering@lucent.com>
20098
20099         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
20100         Now, that's done as part of AC_FUNC_STRTOD.
20101
20102 2001-11-17  Jim Meyering  <meyering@lucent.com>
20103
20104         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
20105         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
20106         rather than group writable.  Patch by Juan F. Codagnone.
20107
20108         * lib/readtokens.c: Remove explicit declarations of xmalloc and
20109         xrealloc, Instead, include "xalloc.h".
20110
20111         * lib/mountlist.c: Include unlocked-io.h after all system headers.
20112         Remove explicit declarations of xmalloc, xrealloc,
20113         and xstrdup.  Instead, include "xalloc.h".
20114
20115         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
20116         unlocked-io.h.
20117         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
20118         Likewise.
20119         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
20120
20121         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
20122         Reported by Padraig Brady.
20123
20124         * lib/mkstemp.c: #undef mkstemp.
20125         Include config.h.
20126         (rpl_mkstemp): Rename from mkstemp.
20127         Protoize.
20128
20129 2001-11-16  Jim Meyering  <meyering@lucent.com>
20130
20131         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
20132         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
20133         determine the amount of total physical memory, use pstat_getstatic.
20134         HPUX-11 doesn't define _SC_PHYS_PAGES.
20135         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
20136         If sysconf couldn't be used to determine the amount of available
20137         physical memory, use both pstat_getstatic and pstat_getdynamic.
20138         Based on a patch from Bob Proulx.
20139
20140 2001-11-10  Jim Meyering  <meyering@lucent.com>
20141
20142         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
20143         (jm_PREREQ): Use it.
20144
20145 2001-11-09  Jim Meyering  <meyering@lucent.com>
20146
20147         * m4/jm-macros.m4: Require autoconf-2.52f.
20148         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
20149         Use these AC_-prefixed names, not the AM_-prefixed ones.
20150
20151         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
20152
20153 2001-11-05  Jim Meyering  <meyering@lucent.com>
20154
20155         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
20156
20157 2001-11-04  Jim Meyering  <meyering@lucent.com>
20158
20159         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
20160         $DEFS.
20161
20162 2001-11-03  Jim Meyering  <meyering@lucent.com>
20163
20164         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
20165         of AC_DEFUN.
20166
20167         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
20168         know the name of the variable in the macro definition.
20169
20170 2001-11-03  Jim Meyering  <meyering@lucent.com>
20171
20172         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
20173         in argmatch_to_argument call.
20174
20175         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
20176         argument.
20177
20178         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
20179         e.g., a fault due to an attempt to free a NULL pointer.
20180
20181 2001-11-01  Jim Meyering  <meyering@lucent.com>
20182
20183         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
20184         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
20185
20186 2001-11-01  Jim Meyering  <meyering@lucent.com>
20187
20188         * lib/dirfd.c, lib/dirfd.h: New files.
20189         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
20190
20191         * lib/hash.c (hash_print) [TESTING]: Clean up.
20192
20193 2001-10-22  Paul Eggert  <eggert@twinsun.com>
20194
20195         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
20196         to avoid a warning if -Wall.
20197
20198 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
20199
20200         * README: New file
20201         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
20202         (per RMS's instructions, this is now the canonical source)
20203         * lgpl/, gpl/: New directories.
20204
20205 2001-10-21  Paul Eggert  <eggert@twinsun.com>
20206
20207         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
20208
20209 2001-10-21  Jim Meyering  <meyering@lucent.com>
20210
20211         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
20212         this code would end up calling gettext even in packages built
20213         with --disable-nls.
20214         * lib/getopt.c (_): Likewise.
20215         * lib/regex.c (_): Likewise.
20216
20217 2001-10-20  Paul Eggert  <eggert@twinsun.com>
20218
20219         * m4/error.m4 (jm_PREREQ_ERROR):
20220         Do not invoke AC_CHECK_FUNCS with strerror_r, as
20221         AC_FUNC_STRERROR_R does that.
20222         Check for strerror declaration.
20223
20224         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
20225         are supposed to have them these days.
20226         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
20227         Merge changes from latest Autoconf CVS.
20228         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
20229         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
20230         POSIX decided to standardize on the int flavor of strerror_r.
20231
20232 2001-10-20  Paul Eggert  <eggert@twinsun.com>
20233
20234         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
20235         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
20236         Use strerror_r that is only a macro, even if it is not a function.
20237         (strerror): Check for HAVE_DECL_STRERROR before declaring.
20238         (private_strerror): Use prototypes, not old-style function definition.
20239         (print_errno_message): New function.
20240         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
20241         char*-flavored one.
20242         (error_tail, error, error_at_line): Use it.
20243
20244 2001-10-11  Jim Meyering  <meyering@lucent.com>
20245
20246         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
20247         and quote_n (1, ... to avoid clobbering a buffer.
20248
20249 2001-10-05  Jim Meyering  <meyering@lucent.com>
20250
20251         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
20252         hash-pjw.h.
20253         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
20254         * lib/hash-pjw.h: New file.
20255
20256 2001-09-30  Jim Meyering  <meyering@lucent.com>
20257
20258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
20259         `struct fsstat' has the `f_fstypename' member.
20260         Use that to define FS_TYPE, which is now used to make
20261         the getfsstat link test tighter.
20262
20263 2001-09-30  Jim Meyering  <meyering@lucent.com>
20264
20265         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
20266         Include <sys/ucred.h>, for Apple Darwin.
20267         Include sys/mount.h and sys/fs_types.h only if available.
20268         (FS_TYPE): Define.
20269         (read_filesystem_list): Use FS_TYPE.
20270
20271 2001-09-29  Paul Eggert  <eggert@twinsun.com>
20272
20273         * lib/exclude.c (excluded_filename): 0 -> false, since it's
20274         a boolean context.
20275
20276 2001-09-29  Jim Meyering  <meyering@lucent.com>
20277
20278         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
20279         [one-argument getmntent function]): Include stdio.h before mntent.h.
20280         SunOS 4.1.x needs it for the declaration of `FILE'.
20281         Patch by Volker Borchert.
20282
20283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
20284         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
20285         sys/fs_types.h, and make the link-test for getfsstat guard #include
20286         directives with appropriate #if HAVE_*_H tests so that we can
20287         detect getfsstat on Apple Darwin1.3.7 systems.
20288         Reported by Nelson Beebe.
20289         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
20290
20291 2001-09-28  Paul Eggert  <eggert@twinsun.com>
20292
20293         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
20294         #defines strtoimax.  Also treat the other strto* functions
20295         like strtoimax.
20296
20297         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
20298         Check for strtoul and strtoumax,
20299         as those declarations are made even in the signed case.
20300         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
20301         Likewise, for strtol and strtoimax.
20302
20303 2001-09-28  Paul Eggert  <eggert@twinsun.com>
20304
20305         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
20306         #defines strtoimax.  Also treat the other strto* functions
20307         like strtoimax.
20308
20309         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
20310         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
20311         (strtoimax, strtoumax): Do not declare if already defined as a macro.
20312
20313 2001-09-26  Jim Meyering  <meyering@lucent.com>
20314
20315         Most macros in unlocked-io.h had the wrong number of arguments.
20316         * lib/gen-uio: New script.
20317         (USE_UNLOCKED_IO): Define to 1 if not already defined.
20318         * lib/unlocked-io.hin: Remove file.
20319         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
20320         rather than trying to embed it here.
20321         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
20322         Reported by Padraig Brady.
20323
20324 2001-09-25  Volker Borchert  <bt@teknon.de>
20325
20326         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
20327         `result'.
20328
20329 2001-09-24  Jim Meyering  <meyering@lucent.com>
20330
20331         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
20332
20333 2001-09-23  Jim Meyering  <meyering@lucent.com>
20334
20335         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
20336         instead of the mere test for existence of mntent.h.  The latter
20337         would get a false-positive on AIX 3.4 systems.
20338         In the outer getmntent if-block, don't die if neither of the getmntent
20339         tests succeeds.  Instead, just fall through and continue with the
20340         remaining tests.
20341
20342 2001-09-23  Jim Meyering  <meyering@lucent.com>
20343
20344         * lib/mountlist.c: Remove useless parentheses in #if directives.
20345         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
20346         the deprecated MOUNTED symbol is no longer defined in mntent.h.
20347
20348 2001-09-22  Jim Meyering  <meyering@lucent.com>
20349
20350         * m4/gettext.m4: New file.  From gettext.
20351         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
20352         * m4/progtest.m4: Likewise
20353         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
20354         * m4/glibc21.m4: Likewise.
20355
20356         * m4/libintl.m4: Remove.  No longer used.
20357
20358 2001-09-22  Jim Meyering  <meyering@lucent.com>
20359
20360         * lib/localcharset.c: Update from latest gettext.
20361         * lib/config.charset: Likewise.
20362
20363 2001-09-20  Jim Meyering  <meyering@lucent.com>
20364
20365         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
20366         strtoimax.
20367         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
20368         strtoumax.
20369
20370 2001-09-20  Jim Meyering  <meyering@lucent.com>
20371
20372         * lib/xstrtol.c (strtoimax): Guard declaration with
20373         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
20374         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
20375         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
20376         (strtoumax): Likewise, for completeness (it wasn't necessary).
20377
20378 2001-09-17  Paul Eggert  <eggert@twinsun.com>
20379
20380         * lib/strtoimax.c (HAVE_LONG_LONG):
20381         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
20382         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
20383         to work around bug in IBM C compiler.
20384
20385 2001-09-17  Jim Meyering  <meyering@lucent.com>
20386
20387         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
20388         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
20389         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
20390         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
20391         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
20392         whenever the right hand side need not be expanded by the shell.
20393
20394 2001-09-16  Paul Eggert  <eggert@twinsun.com>
20395
20396         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
20397         library.  It's not correct, as some older glibcs are buggy.
20398         fnmatch wasn't fixed until glibc 2.2.
20399
20400         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
20401         special shell magic here.
20402
20403 2001-09-16  Jim Meyering  <meyering@lucent.com>
20404
20405         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
20406         * m4/jm-macros.m4: Require it.
20407
20408 2001-09-16  Jim Meyering  <meyering@lucent.com>
20409
20410         * lib/mkdir.c: New file.
20411
20412 2001-09-15  Jim Meyering  <meyering@lucent.com>
20413
20414         * m4/jm-macros.m4: Check for help2man.
20415
20416 2001-09-11  Jim Meyering  <meyering@lucent.com>
20417
20418         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
20419         The body, by Paul Eggert, was moved here from configure.in.
20420         * m4/jm-macros.m4: Require UTILS_HOST_OS.
20421
20422 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20423
20424         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
20425         (jm_PREREQ): Use it.
20426
20427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20428
20429         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
20430         Use ssize_t, not int, to store result of readlink.
20431         Check for ssize_t overflow as well as size_t overflow,
20432         as POSIX says the result of readlink is implementation-defined
20433         when ssize_t overflows.
20434         Remove unnecessary cast to char*.
20435         Use free+malloc instead of realloc, as the storage doesn't need
20436         to be preserved and it's clearer and can be more efficient that way.
20437         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
20438         * lib/xreadlink.h (xreadlink): Update prototype.
20439
20440 2001-09-04  Paul Eggert  <eggert@twinsun.com>
20441
20442         * lib/xgetcwd.c: Revert some of the previous change; intead,
20443         fix the HAVE_GETCWD_NULL code to behave more like the
20444         !HAVE_GETCWD_NULL code used to.
20445
20446         Include "xalloc.h".
20447         (xgetcwd): Do not return NULL when memory is exhausted; instead,
20448         invoke xalloc_die.
20449
20450 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20451
20452         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
20453         sys/param.h, as pathmax.h includes them.
20454
20455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20456
20457         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
20458         (jm_PREREQ_XGETCWD): New macro.
20459
20460         * m4/getcwd.m4: New file.
20461
20462 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20463
20464         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
20465         like the HAVE_GETCWD_NULL code.
20466         Include pathmax.h if not HAVE_GETCWD.
20467         Do not include xalloc.h.
20468         (INITIAL_BUFFER_SIZE): New symbol.
20469         Do not use xmalloc / xrealloc, since the caller is responsible for
20470         handling errors.  Preserve errno around `free' during failure.
20471         Do not overrun buffer when using getwd.
20472
20473 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20474
20475         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
20476         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
20477         getcwd (NULL, 0).
20478
20479 2001-09-03  Paul Eggert  <eggert@twinsun.com>
20480
20481         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
20482         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
20483         spotted by Jim Meyering.
20484
20485 2001-09-03  Jim Meyering  <meyering@lucent.com>
20486
20487         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
20488         failure.
20489
20490 2001-09-02  Jim Meyering  <meyering@lucent.com>
20491
20492         * lib/error.c: Update from GNU libc.
20493
20494 2001-09-01  Jim Meyering  <meyering@lucent.com>
20495
20496         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
20497         Used by df.
20498
20499 2001-09-01  Jim Meyering  <meyering@lucent.com>
20500
20501         * lib/xreadlink.c: New file.
20502         * lib/xreadlink.h: New file.
20503         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
20504         xreadlink.h.
20505
20506         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
20507         doesn't conflict with sparc Solaris 7's definition in
20508         /usr/include/sys/int_types.h.
20509
20510         * lib/exclude.c: Use `""', not `<>' to #include non-system header
20511         files.
20512         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
20513         and strncasecmp as r-values.  Unixware didn't have declarations.
20514
20515 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20516
20517         * lib/xstrtol.h: Add copyright notice.
20518         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
20519         LONGINT_INVALID_SUFFIX_CHAR.
20520
20521 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20522
20523         * lib/xstrtol.c (strtoimax): New decl.
20524
20525 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20526
20527         * lib/xgetcwd.c: Don't include pathmax.h.
20528         Include stdlib.h and unistd.h if available.
20529         Include xalloc.h.
20530         (xmalloc, xstrdup, free): Remove decls.
20531         (xgetcwd): Don't assume sizes fit in unsigned.
20532         Check for overflow when computing sizes.
20533         Simplify reallocation code.
20534
20535 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20536
20537         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
20538         a directory's st_size can have an arbitrary value, so the old
20539         usage could waste an arbitrary amount of memory.  All uses
20540         changed.
20541         * lib/savedir.h: Update prototype.
20542
20543 2001-08-31  Paul Eggert  <eggert@twinsun.com>
20544
20545         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
20546
20547         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
20548         old strtoimax.c.
20549
20550         Also, make the following further changes to make this file's
20551         configuration more similar to that of strtol.c:
20552         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
20553         (strtoumax, uintmax_t, strtoull, strtol): Remove.
20554         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
20555         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
20556         changed to signed values.
20557
20558         And make the following changes as well:
20559         Fix copyright notice, as 1999 was missing.
20560         (verify): New macro.
20561         (strtoimax): Check sizes at compile-time, not run-time.
20562         Prefer strtol to strtoll if both work.
20563         (main): Remove; it was not that useful and was a pain to maintain.
20564
20565         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
20566
20567 2001-08-31  Jim Meyering  <meyering@lucent.com>
20568
20569         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
20570         Use an initial, malloc'd, buffer of length 128 rather than
20571         a statically allocated one of length 1024.
20572
20573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20574
20575         Simplify code, partly by assuming autoconf 2.52 semantics.
20576
20577         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
20578
20579         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
20580         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
20581         All uses removed.
20582         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
20583         Move AC_REQUIRE to next-to-top level, to avoid confusion.
20584         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
20585         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
20586         jm_AC_HEADER_INTTYPES_H.
20587         * m4/jm-macros.m4 (jm_MACROS): Likewise.
20588
20589         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
20590
20591         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
20592         Quote first arg of AC_DEFUN.
20593         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
20594         since they are needed to parse the include file even if we need
20595         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
20596         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
20597         but with opposite signedness.
20598
20599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20600
20601         Merge 'exclude' changes from tar 1.13.22.
20602         This fixes one or two unlikely storage allocation overflow bugs,
20603         but doesn't change user-visible behavior otherwise.
20604
20605 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20606
20607         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
20608         (jm_PREREQ_EXCLUDE): New macro.
20609
20610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20611
20612         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
20613         tm to be declared.
20614
20615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20616
20617         * lib/hash.c: Remove '2001' from copyright notice.
20618
20619 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20620
20621         * lib/full-write.h: New file.
20622         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
20623         * lib/full-write.c: Correct credits, as cccp.c no longer
20624         exists and anyway it was so heavily changed from the old cccp
20625         code as to be unrecognizable.  Include full-write.h.
20626         (full_write) Return size_t, with short writes meaning failure.
20627         All callers changed.  This fixes a bug with large buffers
20628         on 64-bit hosts.
20629         * lib/utime.c: Include full-write.h.
20630
20631 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20632
20633         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
20634         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
20635         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
20636         Include if available.
20637         (<xalloc.h>): Include
20638         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
20639         (verify): New macro.  Use it to verify that EXCLUDE macros do not
20640         collide with FNM macros.
20641         (struct patopts): New struct.
20642         (struct exclude): Use it, as exclude patterns now come with options.
20643         (new_exclude): Support above changes.
20644         (new_exclude, add_exclude_file):
20645         Initial size must now be a power of two to simplify overflow checking.
20646         (free_exclude, fnmatch_no_wildcards): New function.
20647         (excluded_filename): No longer requires options arg, as the options
20648         are determined by add_exclude.  Now returns bool, not int.
20649         (excluded_filename, add_exclude):
20650         Add support for the fancy new exclusion options.
20651         (add_exclude, add_exclude_file): Now takes int options arg.
20652         Check for arithmetic overflow when computing sizes.
20653         (add_exclude_file): xrealloc might modify errno, so don't
20654         realloc until after errno might be used.
20655
20656         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
20657         New macros.
20658         (free_exclude): New decl.
20659         (add_exclude, add_exclude_file): Now takes int options arg.
20660         (excluded_filename): No longer requires options arg, as the options
20661         are determined by add_exclude.  Now returns bool, not int.
20662
20663 2001-08-30  Paul Eggert  <eggert@twinsun.com>
20664
20665         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
20666
20667 2001-08-27  Jim Meyering  <meyering@lucent.com>
20668
20669         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
20670
20671         * lib/version-etc.c (N_): Remove definition.
20672         Revert most of last change.
20673         Instead, simply don't mark the `Copyright...' string for translation.
20674         Based on advice from Paul Eggert.
20675
20676         * lib/strtoxmax.c: Tweak comment.
20677
20678 2001-08-26  Jim Meyering  <meyering@lucent.com>
20679
20680         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
20681
20682         * m4/xstrtoimax.m4: New file.
20683         * m4/xstrtoumax.m4: Add comments explaining why we
20684         AC_REPLACE_FUNCS(strtol).
20685
20686 2001-08-26  Jim Meyering  <meyering@lucent.com>
20687
20688         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
20689         of copyright with `%s' so translators don't get an untranslated
20690         message in 2002.
20691         (COPYRIGHT_YEAR): Define.
20692         (version_etc): Use fprintf rather than fputs.
20693         Suggestion from Ulrich Drepper.
20694
20695         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
20696
20697         * lib/strtoll.c: New file, from GNU libc.
20698         * lib/xstrtoimax.c: New file.
20699
20700         * lib/xstrtol.h: Add xstrtoimax.
20701         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
20702         * lib/strtoimax.c: New file.  Likewise, but first define
20703         STRTOUXMAX_SIGNED.
20704
20705         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
20706         ...
20707         * lib/strtoxmax.c: ... then renamed to this.
20708
20709 2001-08-18  Paul Eggert  <eggert@twinsun.com>
20710
20711         * m4/inttypes.m4: Add AC_PREREQ(2.13).
20712         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
20713         (jm_AC_TYPE_INTMAX_T): New macro.
20714         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
20715
20716         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
20717
20718         * m4/longlong.m4: Renamed from ulonglong.m4.
20719         * m4/inttypes.m4: Renamed from inttypes_h.m4.
20720         * m4/uintmax_t.m4: Removed.
20721
20722 2001-08-13  Paul Eggert  <eggert@twinsun.com>
20723
20724         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
20725         Port to Solaris 8, where 'sed' requires a space after the 'r'
20726         command, and where sh dislikes "$/".  Clean up the spacing a bit.
20727         Redirect output to $tmp just once.
20728
20729 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
20730
20731         * lib/addext.c (<errno.h>): Include.
20732         (errno): Declare if not defined.
20733         (addext): Work correctly when pathconf returns -1 and leaves
20734         errno alone because there is no limit.  Also, work even if
20735         pathconf returns a value greater than SIZE_MAX.
20736
20737 2001-08-12  Jim Meyering  <meyering@lucent.com>
20738
20739         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
20740         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
20741         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
20742         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
20743         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
20744         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
20745         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
20746         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
20747         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
20748         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
20749         utime.m4, utimes.m4, xstrtoumax.m4:
20750         Quote the first argument in each use of AC_DEFUN.
20751
20752 2001-08-12  Jim Meyering  <meyering@lucent.com>
20753
20754         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
20755         Simply `return getcwd (NULL, 0);'.
20756         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
20757         Use 1300 as initial value for length, not PATH_MAX.
20758
20759         * lib/pathmax.h: Clean up cpp syntax.
20760
20761 2001-08-12  Jim Meyering  <meyering@lucent.com>
20762
20763         * lib/gettimeofday.c: New file.
20764         * lib/gtod.h: New file.
20765         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
20766
20767 2001-08-05  Jim Meyering  <meyering@lucent.com>
20768
20769         * m4/jm-macros.m4: Require autoconf-2.52.
20770
20771 2001-08-04  Jim Meyering  <meyering@lucent.com>
20772
20773         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
20774         stmt, to get in sync with glibc.
20775
20776 2001-08-03  Paul Eggert  <eggert@twinsun.com>
20777
20778         The following changes are from gettext 0.10.39 as maintained by
20779         Bruno Haible.
20780
20781         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
20782         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
20783         with inverted sense.  All uses changed.
20784
20785         * lib/mbswidth.c: Don't include <limits.h>.
20786         Include <stdlib.h> and <string.h> unconditionally.
20787         (iswcntrl, mbsinit, ISCNTRL): New macros.
20788         (mbsnwidth): Use K&R style function declarations.
20789         Don't bother checking for MB_LEN_MAX == 1, since the compiler
20790         can optimize it when MB_CUR_MAX == 1.
20791         The width of control characters is zero, not 1.
20792
20793 2001-08-03  Paul Eggert  <eggert@twinsun.com>
20794
20795         The following changes are from gettext 0.10.39 as maintained by
20796         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
20797
20798         * m4/codeset.m4: Upgrade to serial AM1.
20799         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
20800         all uses changed.  Quote first arg of AC_DEFUN.
20801         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
20802
20803         * m4/iconv.m4: Upgrade to serial AM2.
20804         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
20805         Add --with-libconv-prefix.
20806         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
20807         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
20808         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
20809         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
20810         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
20811
20812         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
20813         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
20814         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
20815         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
20816         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
20817         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
20818         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20819         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
20820         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
20821
20822         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
20823         string.h any more.
20824
20825         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
20826         not the default value.
20827
20828         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
20829         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
20830         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
20831         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
20832         Also check for iswcntrl, used for wcwidth fallback.
20833         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
20834         to Autoconf 2.13.
20835
20836 2001-08-03  Jim Meyering  <meyering@lucent.com>
20837
20838         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
20839         as it was in the original.  Reported by Paul Eggert.
20840
20841 2001-07-16  Jim Meyering  <meyering@lucent.com>
20842
20843         * m4/gettimeofday.m4: New file.
20844         Prompted by a report from Bernhard Baehr.
20845
20846 2001-07-15  Jim Meyering  <meyering@lucent.com>
20847
20848         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
20849         stuff. Now it's in ../Makefile.cfg.
20850
20851 2001-07-15  Jim Meyering  <meyering@lucent.com>
20852
20853         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
20854         (BUILT_SOURCES): Add unlocked-io.h.
20855         (io_functions): Define.
20856         (unlocked-io.h): New rule.
20857         (DISTCLEANFILES): Add unlocked-io.h.
20858         (all-local): Depend on unlocked-io.h, to ensure it is created.
20859
20860         * lib/unlocked-io.hin: New file
20861
20862         * lib/regex.c: Update from glibc.
20863
20864 2001-07-05  Jim Meyering  <meyering@lucent.com>
20865
20866         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
20867         recommendation.
20868         (libfetish_a_SOURCES): Put all .h files here instead.
20869         Remove a thus-exposed (better checks in automake) duplicate and
20870         two unnecessary .h files.
20871
20872 2001-07-04  Jim Meyering  <meyering@lucent.com>
20873
20874         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
20875         that generates jm-glibc-io.m4 so that it doesn't trigger any make
20876         distcheck failure.
20877
20878 2001-07-02  Jim Meyering  <meyering@lucent.com>
20879
20880         The following changes were prompted by suggestions from Bruno Haible.
20881
20882         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
20883         is now generated.
20884         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
20885         definition of EXTRA_DIST.
20886         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
20887         ensure that the generated file is created/updated whenever the list
20888         of $(unlocked_functions) is changed.
20889         (jm-glibc-io.m4): New rule.
20890         (unlocked-io.h): New rule -- currently unused.
20891
20892 2001-06-24  Jim Meyering  <meyering@lucent.com>
20893
20894         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
20895         unmatched right bracket, rather than kludging it with an extra,
20896         falsely-matching quote in a comment.  Patch by Akim Demaille.
20897
20898 2001-06-11  Jim Meyering  <meyering@lucent.com>
20899
20900         * lib/regex.c: Update from GNU libc.
20901
20902 2001-05-27  Jim Meyering  <meyering@lucent.com>
20903
20904         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
20905         Check for ut_type in struct utmp.
20906
20907 2001-05-27  Jim Meyering  <meyering@lucent.com>
20908
20909         * lib/readutmp.h (UT_TYPE): Define.
20910
20911 2001-05-24  Jim Meyering  <meyering@lucent.com>
20912
20913         * lib/argmatch.c: Include "quote.h".
20914         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
20915         quote function.  Reported by Göran Uddeborg.
20916
20917 2001-05-22  Jim Meyering  <meyering@lucent.com>
20918
20919         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
20920         now that we use the package-supplied version unconditionally.
20921         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
20922
20923 2001-05-21  Jim Meyering  <meyering@lucent.com>
20924
20925         * m4/regex.m4: Change a couple backticks to single quotes to avoid
20926         shell syntax errors.
20927
20928 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
20929
20930         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
20931
20932 2001-05-20  Paul Eggert  <eggert@twinsun.com>
20933
20934         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
20935         Don't bother to check library strftime, since
20936         we'll be using our own my_strftime function anyway.
20937         Define my_strftime instead of strftime.
20938
20939 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
20940
20941         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
20942         which is not yet declared.
20943
20944 2001-05-15  Jim Meyering  <meyering@lucent.com>
20945
20946         * m4/regex.m4: Use proper quoting so brackets appear in the test
20947         program.
20948         Reported by, and with help from, Bruno Haible.
20949
20950 2001-05-13  Jim Meyering  <meyering@lucent.com>
20951
20952         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
20953         undefined.
20954
20955 2001-05-11  Paul Eggert  <eggert@twinsun.com>
20956
20957         dirname code cleanup.  base_name now behaves more compatibly
20958         with POSIX basename when given file names that have trailing
20959         slashes, and similarly for dir_name.  Add new primitives
20960         base_len and dir_len.  Put the directory-name-related decls
20961         into dirname.h.
20962
20963         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
20964         * lib/backupfile.c (base_name): Likewise.
20965         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
20966         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
20967         * lib/makepath.c (strip_trailing_slashes): Likewise.
20968         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
20969         ISSLASH): Likewise.
20970         * lib/rename.c (strip_trailing_slashes): Likewise.
20971         * lib/same.c (base_name): Likewise.
20972         * lib/stripslash.c (ISSLASH): Likewise.
20973
20974         * lib/addext.c: Include <dirname.h> after size_t is defined.
20975         * lib/backupfile.c: Likewise.
20976
20977         * lib/addext.c (addext): Use base_len to trim redundant
20978         trailing slashes instead of doing it ourselves.
20979         But do not trim the last slash if it is not redundant.
20980
20981         * lib/backupfile.c (find_backup_file_name,
20982         max_backup_version): Use base_len instead of rolling it ourselves.
20983         Handle the case of "" and (on DOS) "C:" correctly.
20984
20985         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
20986         needed. Include <string.h>, <dirname.h>.
20987         (base_name): Allow file names ending in slashes, other than names
20988         that are all slashes.  In this case, return the basename followed
20989         by the slashes.  This is more general, and can be used in places
20990         where the original base_name purposely had an assertion failure.
20991         (base_len): New function.
20992
20993         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
20994         Do not include <assert.h>; no longer needed.
20995         Include xalloc.h.
20996         (memrchr): Remove decl.
20997         (dir_name_r): Remove.
20998         (dir_len): Renamed from dirlen.  All callers changed.
20999         Rewrite in terms of base_name, for simplicity and consistency.
21000         (dir_name): Never return NULL.  All callers changed.
21001         Do not include <stdlib.h> in test program; no longer needed.
21002         return 0; is fine for test program.
21003
21004         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
21005         New macros.
21006         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
21007
21008         * lib/path-concat.c (path_concat): Use base_len to compute
21009         base length, not strlen; this means we cannot rely on memcpy
21010         to null-terminate.
21011
21012         * lib/same.c (STREQ): Remove.
21013         (same_name): Handle the case where the basename ends in trailing '/'.
21014
21015         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
21016         a slash was stripped.  Do not strip the last slash after a
21017         file system prefix.
21018
21019 2001-05-11  Paul Eggert  <eggert@twinsun.com>
21020
21021         * lib/Makefile.am (libfetish_a_SOURCES):
21022         Add strftime.c, since we now compile it on all hosts.
21023
21024         * lib/strftime.c (my_strftime):
21025         Define to nstrftime if emacs, but only if my_strftime is not defined.
21026         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
21027         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
21028         Add one more extra argument: a nanoseconds value.
21029         All uses changed.
21030         (ns): New macro.
21031         (my_strftime function): Add %N format.
21032         (emacs_strftimeu): Renamed from emacs_strftime,
21033         with extra ut argument.
21034
21035 2001-05-09  Paul Eggert  <eggert@twinsun.com>
21036
21037         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
21038
21039 2001-04-21  Jim Meyering  <meyering@lucent.com>
21040
21041         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
21042         doesn't interfere.
21043
21044 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
21045
21046         * m4/ftruncate.m4: Check for chsize.
21047         Link with ftruncate.o unconditionally if ftruncate is missing.
21048         This was required when cross-compiling to i586-mingw32msvc.
21049
21050 2001-04-08  Jim Meyering  <meyering@lucent.com>
21051
21052         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
21053         recomputed; that's necessary when the offset spans a DST transition.
21054         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
21055
21056 2001-04-02  Jim Meyering  <meyering@lucent.com>
21057
21058         * lib/regex.h, regex.c: Update from GNU libc.
21059
21060 2001-03-24  Jim Meyering  <meyering@lucent.com>
21061
21062         * m4/jm-macros.m4: Require autoconf-2.49d.
21063
21064 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
21065
21066         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
21067
21068 2001-03-19  Paul Eggert  <eggert@twinsun.com>
21069
21070         * lib/version-etc.c (version_etc_copyright): Update to 2001.
21071
21072 2001-03-17  Jim Meyering  <meyering@lucent.com>
21073
21074         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
21075         now that the version in autoconf is equivalent.
21076         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
21077
21078         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
21079         Suggestion from Akim Demaille.
21080
21081         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
21082         (jm_PREREQ_TEMPNAME): New function.
21083
21084 2001-03-16  Paul Eggert  <eggert@twinsun.com>
21085
21086         * lib/tempname.c (uint64_t): Define to uintmax_t if
21087         not defined, and if UINT64_MAX is not defined.
21088         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
21089         Reported by John David Anglin.
21090
21091 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
21092
21093         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
21094         resolve alias if codeset is empty.
21095         * lib/config.charset (BeOS): Use wildcard syntax.
21096
21097 2001-03-13  Jim Meyering  <meyering@lucent.com>
21098
21099         * lib/path-concat.c (path_concat)
21100         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
21101         concatenating e.g., `C:' and `foo'.
21102         From Bruno Haible.
21103
21104 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
21105
21106         * lib/localcharset.c (locale_charset): Don't use
21107         setlocale(LC_CTYPE,NULL). Don't return NULL.
21108         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
21109
21110 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
21111
21112         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
21113         support for DOS/DJGPP.
21114
21115 2001-03-01  Paul Eggert  <eggert@twinsun.com>
21116
21117         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
21118         lacks mkstemp.  Compile our own tempname.c if we compile our own
21119         mkstemp.c, as mkstemp relies on tempname.
21120
21121 2001-03-01  Jim Meyering  <meyering@lucent.com>
21122
21123         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
21124         AH_VERBATIM really does output its argument verbatim.
21125
21126 2001-02-28  Paul Eggert  <eggert@twinsun.com>
21127
21128         * lib/Makefile.am (libfetish_a_SOURCES):
21129         Add dup-safer.c, fopen-safer.c.
21130         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
21131
21132         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
21133         * lib/unistd-safer.h: New files.
21134
21135 2001-02-25  Paul Eggert  <eggert@twinsun.com>
21136
21137         The mkstemp replacement is taken from glibc 2.2.2, with some
21138         portability fixes for use outside glibc, as follows:
21139
21140         * lib/tempname.c (struct_stat64): New macro.
21141         (direxists, __gen_tempname): Use it.
21142         This avoids a portability problem with Solaris 8.
21143
21144         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
21145         (<stddef.h>, <stdint.h>, <string.h>):
21146         Include only if STDC_HEADERS || _LIBC.
21147         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
21148         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
21149         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
21150         (__set_errno): Define this macro if <errno.h> doesn't.
21151         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
21152         Define these macros if <stdio.h> doesn't.
21153         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
21154         Define these macros if <sys/stat.h>
21155         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
21156         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
21157         __xstat64): Define if not _LIBC.
21158         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
21159         (__gen_tempname): Invoke gettimeofday only if
21160         HAVE_GETTIMEOFDAY || _LIBC;
21161         otherwise, fall back on plain "time".
21162         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
21163
21164         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
21165
21166         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
21167
21168 2001-02-18  Paul Eggert  <eggert@twinsun.com>
21169
21170         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
21171
21172 2001-02-17  Paul Eggert  <eggert@twinsun.com>
21173
21174         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
21175         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
21176         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
21177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
21178
21179 2001-02-17  Paul Eggert  <eggert@twinsun.com>
21180
21181         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
21182         Remove workaround macros for hosts that have mbrtowc but not
21183         mbstate_t, as we now insist on proper declarations for both
21184         before using mbrtowc.
21185
21186 2001-02-17  Jim Meyering  <meyering@lucent.com>
21187
21188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
21189         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
21190         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
21191         UnixWare 7.1.1.
21192
21193         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
21194         rather than AC_CACHE_VAL.
21195
21196 2001-02-17  Jim Meyering  <meyering@lucent.com>
21197
21198         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
21199         around included file name.
21200
21201         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
21202
21203         * lib/strftime.c: Update from GNU libc (the only changes were to
21204         comments).
21205
21206 2001-02-17  Jim Meyering  <meyering@lucent.com>
21207
21208         * lib/regex.c: Update from libc.
21209
21210 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
21211
21212         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
21213         clash.
21214
21215 2001-02-16  Paul Eggert  <eggert@twinsun.com>
21216
21217         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
21218         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
21219         Reported by Mark Hounschell via Paul Eggert.
21220
21221 2001-02-07  Jim Meyering  <meyering@lucent.com>
21222
21223         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
21224
21225 2001-02-05  Jim Meyering  <meyering@lucent.com>
21226
21227         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
21228         it includes the patch required for `large file' support with at least
21229         HP-UX's 10.20 /bin/cc.
21230
21231 2001-02-03  Jim Meyering  <meyering@lucent.com>
21232
21233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
21234         AS_IF, now that it works once again (mysteriously).
21235         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
21236
21237 2001-01-30  Jim Meyering  <meyering@lucent.com>
21238
21239         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
21240         * m4/chown.m4: Rename conftestchown to conftest.chown.
21241         * m4/rename.m4: s/conftestdir/conftest.d1/ and
21242         s/conftestdir2/conftest.d2/.
21243         * m4/utimes.m4: s/conftestdata/conftest.data/
21244         Inspired by Pavel Roskin's change in autoconf.
21245
21246 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
21247
21248         * lib/config.charset: Update for FreeBSD 4.2.
21249
21250 2001-01-27  Jim Meyering  <meyering@lucent.com>
21251
21252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
21253         a use of AS_IF.
21254         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
21255
21256 2001-01-26  Jim Meyering  <meyering@lucent.com>
21257
21258         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
21259         quotearg.c includes it.
21260
21261 2001-01-26  Jim Meyering  <meyering@lucent.com>
21262
21263         * lib/quotearg.c: Include stddef.h.
21264         * lib/quote.c: Include stddef.h.
21265         Reported by Axel Kittenberger.
21266
21267         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
21268         line in double quotes so that it evokes a better diagnostic.
21269         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
21270         Reported by Axel Kittenberger.
21271
21272 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
21273
21274         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
21275         as if it was a `charset'.
21276
21277 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
21278
21279         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
21280         has const.
21281
21282 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
21283
21284         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
21285         to avoid a warning.  Add back 'const' to inptr.
21286
21287 2001-01-20  Jim Meyering  <meyering@lucent.com>
21288
21289         Be sure that headers are checked before used in code compiled
21290         for the type checks.
21291         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
21292         In place of that, invoke jm_CHECK_ALL_TYPES.
21293         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
21294         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
21295         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
21296         The check for ssize_t was mistakenly run before the test for unistd.h.
21297
21298         The configure-time check for stdbool.h was missing.
21299         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
21300         (jm_PREREQ_HASH): New function.
21301
21302 2001-01-17  Jim Meyering  <meyering@lucent.com>
21303
21304         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
21305         for autoconf-2.49c.
21306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
21307
21308 2001-01-16  Jim Meyering  <meyering@lucent.com>
21309
21310         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
21311         From Bruno Haible.
21312
21313 2001-01-14  Jim Meyering  <meyering@lucent.com>
21314
21315         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
21316         foo and bar.  Create conftestdir/ in the script, not in the C code.
21317         Remove directories in the script, not in the C code.
21318         Remove conftestdir{,2} before trying to create the directory.
21319         Make the entire configure script fail if the mkdir fails.
21320
21321 2001-01-14  Jim Meyering  <meyering@lucent.com>
21322
21323         * lib/rename.c: New file.  From Volker Borchert.
21324         Include stdlib.h, string.h or strings.h, and xalloc.h.
21325         Use strip_trailing_slashes rather than open-coding it.
21326
21327 2001-01-03  Paul Eggert  <eggert@twinsun.com>
21328
21329         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
21330
21331 2001-01-03  Jim Meyering  <meyering@lucent.com>
21332
21333         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
21334         of local `inptr' to avoid warning with some system declarations of
21335         iconv.
21336
21337 2001-01-02  Volker Borchert  <bt@teknon.de>
21338
21339         * m4/rename.m4: New file.
21340         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
21341
21342 2001-01-01  Jim Meyering  <meyering@lucent.com>
21343
21344         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
21345         even on systems with utmpx.h.  It's necessary for the declaration of
21346         utmp's ut_user member.  Reported by Andreas Jaeger.
21347
21348         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
21349         available. They are required for the declarations of getgrgid and
21350         getpwuid resp.
21351         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
21352         Reported by Andreas Jaeger.
21353
21354 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
21355
21356         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
21357         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
21358         so `make install' also works in VPATH builds.
21359
21360 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
21361
21362         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
21363         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
21364         can be used in subdirectories.
21365
21366 2000-12-29  Paul Eggert  <eggert@twinsun.com>
21367
21368         * lib/modechange.c: Do not assume that mode_t uses the
21369         traditional octal encoding.  E.g. "chmod 1 FOO" should set
21370         the other-execute bit of FOO even if S_IXOTH != 1.
21371
21372         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
21373         WOTH, XOTH, ALLM): New macros.
21374         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
21375          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
21376         Use them.
21377         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
21378         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
21379         (mode_compile):
21380         No need to use uintmax_t; unsigned long is long enough.
21381         Don't bother to get suffix since we don't use it.
21382
21383 2000-12-26  Jim Meyering  <meyering@lucent.com>
21384
21385         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
21386         better with autoheader.
21387
21388 2000-12-24  Jim Meyering  <meyering@lucent.com>
21389
21390         * lib/hash.c (is_prime): Return explicit boolean values.
21391         (hash_get_first): Return NULL to appease Irix5.6's 89.
21392         Reported by Nelson Beebe.
21393
21394 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
21395
21396         * lib/localcharset.c (locale_charset): Add support for Win32.
21397
21398 2000-12-18  Paul Eggert  <eggert@twinsun.com>
21399
21400         * lib/physmem.h, lib/physmem.c: New files.
21401
21402         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
21403         (noinst_HEADERS): Add physmem.h.
21404
21405         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
21406         't' for compatibility with Solaris 8 sort.
21407
21408 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
21409
21410         * lib/config.charset: Add support for BeOS.
21411
21412 2000-12-17  Jim Meyering  <meyering@lucent.com>
21413
21414         * m4/dos.m4 (jm_AC_DOS): New file and macro.
21415         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
21416
21417 2000-12-16  Jim Meyering  <meyering@lucent.com>
21418
21419         This bug had a serious impact on chown: `chown N:M FILE' (for integer
21420         N and M) would have treated it like `chown N:N FILE'.
21421
21422         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
21423
21424 2000-12-16  Jim Meyering  <meyering@lucent.com>
21425
21426         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
21427         SHELLS_FILE to a file name that's useful on djgpp systems.
21428         Include stdlib.h.
21429         (ADDITIONAL_DEFAULT_SHELLS): Define.
21430         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
21431         Based mostly on a patch from Prashant TR.
21432
21433 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
21434
21435         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
21436         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
21437         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
21438
21439 2000-12-08  Andreas Schwab  <schwab@suse.de>
21440
21441         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
21442         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
21443
21444 2000-12-07  Jim Meyering  <meyering@lucent.com>
21445
21446         * lib/stripslash.c (ISSLASH): Define.
21447         (strip_trailing_slashes): Use ISSLASH rather than comparing against
21448         `/'.
21449         From Prashant TR.
21450
21451         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
21452         (dir_name_r): Declare this function as static.
21453         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
21454         manifest itself on a name containing a mix of slashes and
21455         backslashes.
21456         Make this function work with names starting with a DOS-style
21457         drive letter and colon prefix.
21458         (dir_name): Append `.' if necessary.
21459         Based mostly on patches from Prashant TR and Eli Zaretskii.
21460
21461         * lib/dirname.h (dir_name_r): Remove prototype.
21462
21463 2000-12-06  Paul Eggert  <eggert@twinsun.com>
21464
21465         * m4/off_t-format.m4: Remove this file.
21466         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
21467
21468 2000-12-06  Jim Meyering  <meyering@lucent.com>
21469
21470         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
21471         replacement strtoull, we may well need the replacement strtoul, too.
21472         Check for declarations of strtoul and strtoull.
21473         Check for strtol.  Mainly as a cue to cause automake to include
21474         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
21475         Check for limits.h -- strtol.c needs it.
21476
21477 2000-12-05  Jim Meyering  <meyering@lucent.com>
21478
21479         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
21480
21481 2000-12-04  Jim Meyering  <meyering@lucent.com>
21482
21483         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
21484         Also include memory.h, stdlib.h, unistd.h if appropriate.
21485         Reported by Andreas Jaeger (conflicting declaration of malloc).
21486
21487 2000-12-02  Jim Meyering  <meyering@lucent.com>
21488
21489         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
21490         * m4/jm-macros.m4 (jm_MACROS): require it.
21491
21492 2000-12-02  Jim Meyering  <meyering@lucent.com>
21493
21494         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
21495
21496 2000-12-01  Paul Eggert  <eggert@twinsun.com>
21497
21498         * lib/memrchr.c: Include <config.h> before any system include file.
21499
21500 2000-11-30  Jim Meyering  <meyering@lucent.com>
21501
21502         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
21503
21504 2000-11-30  Jim Meyering  <meyering@lucent.com>
21505
21506         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
21507
21508 2000-11-29  Paul Eggert  <eggert@twinsun.com>
21509
21510         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
21511
21512 2000-11-26  Jim Meyering  <meyering@lucent.com>
21513
21514         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
21515
21516 2000-11-22  Paul Eggert  <eggert@twinsun.com>
21517
21518         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
21519         size of (size_t) -1; it's not portable.
21520
21521 2000-11-17  Jim Meyering  <meyering@lucent.com>
21522
21523         * lib/strstr.c: Update from GNU libc.
21524
21525 2000-11-17  Akim Demaille  <akim@epita.fr>
21526
21527         * lib/obstack.h: Formatting changes.
21528         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
21529         prevent type checking.
21530         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
21531         cast the value to (void *): assigning a `foo *' to a `void *'
21532         variable is valid.
21533         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
21534
21535 2000-11-16  Jim Meyering  <meyering@lucent.com>
21536
21537         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
21538
21539 2000-11-11  Jim Meyering  <meyering@lucent.com>
21540
21541         * lib/error.c: Add a couple #includes, merging from GNU libc version.
21542
21543 2000-11-10  Jim Meyering  <meyering@lucent.com>
21544
21545         * lib/obstack.h: Update from GNU libc.
21546         * lib/obstack.c: Likewise.
21547
21548 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
21549
21550         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
21551
21552 2000-11-06  Paul Eggert  <eggert@twinsun.com>
21553
21554         * lib/getusershell.c (setusershell): Use rewind rather than
21555         fseek/fseeko, to avoid configuration hassles with fseeko.
21556         Don't bother opening SHELLS_FILE if shellstream is NULL;
21557         it's not necessary.
21558
21559 2000-11-05  Jim Meyering  <meyering@lucent.com>
21560
21561         * lib/makepath.h (make_dir): Declare.
21562         * lib/makepath.c (make_dir): Remove `static' attribute.
21563         Tweak a comment.
21564
21565 2000-11-04  Jim Meyering  <meyering@lucent.com>
21566
21567         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
21568
21569 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
21570
21571         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
21572         last one in a bucket, advance to the next bucket.
21573
21574 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
21575
21576         * lib/fnmatch.c: Do not comment out all the code if we are using
21577         the GNU C library, because in some cases we are replacing buggy
21578         code in the GNU C library itself.
21579
21580 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
21581
21582         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
21583         (regex_compile): Catch bogus \(\1\).
21584
21585 2000-10-30  Paul Eggert  <eggert@twinsun.com>
21586
21587         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
21588         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
21589         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
21590
21591 2000-10-30  Paul Eggert  <eggert@twinsun.com>
21592
21593         * lib/error.h, getline.h, modechange.h:
21594         Remove "2000" from Copyright line, as the file hasn't been
21595         changed this year other than in the copyright notice.
21596
21597         * lib/xalloc.h: Add "2000" to Copyright line, as this file
21598         was changed this year.
21599
21600 2000-10-29  Jim Meyering  <meyering@lucent.com>
21601
21602         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
21603         renaming.
21604         * m4/ls-mntd-fs.m4: Likewise
21605
21606 2000-10-29  Jim Meyering  <meyering@lucent.com>
21607
21608         * lib/xstat.in: Fix grammar in comment.
21609
21610 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
21611
21612         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
21613         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
21614         doesn't define __restrict_arr.
21615
21616 2000-10-28  Jim Meyering  <meyering@lucent.com>
21617
21618         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
21619         (jm_PREREQ_MEMCHR): New function.
21620
21621 2000-10-28  Jim Meyering  <meyering@lucent.com>
21622
21623         * lib/memchr.c: Update from libc.
21624         Adjust for portability:
21625         [HAVE_STDLIB_H]: Include stdlib.h.
21626         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
21627         Undef __memchr, too.
21628         [!weak_alias]: Define __memchr to memchr.
21629
21630         * lib/regex.c: Update from libc.
21631         * lib/regex.h: Likewise.
21632         * lib/getopt1.c: Likewise.
21633         * lib/memcmp.c: Likewise.
21634
21635         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
21636         Avoid using fseek, when possible -- it's broken by design.
21637         Patch by Ulrich Drepper.
21638
21639 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
21640
21641         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
21642         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
21643         Giving in to popular pressure to shut up the compiler with casts.
21644
21645 2000-10-26  Jim Meyering  <meyering@lucent.com>
21646
21647         * lib/strftime.c: Update from libc.
21648
21649 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
21650
21651         * regex.c: More `unsigned char' -> `re_char' changes.
21652         Also change several `int' into `re_wchar_t'.
21653         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
21654         (PUSH_FAILURE_POINTER): Don't cast any more.
21655         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
21656         We want GCC to complain, since this piece of code makes
21657         re_match non-reentrant, which *should* be fixed.
21658         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
21659         (EXTEND_BUFFER): Use RETALLOC.
21660         (SET_LIST_BIT): Don't cast.
21661         (re_wchar_t): New type.
21662         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
21663         that those two functions will always properly return.
21664         (IMMEDIATE_QUIT_CHECK): Cast to void.
21665         (analyse_first): Use recursion rather than an explicit stack.
21666         (re_compile_fastmap): Can't fail anymore.
21667         (re_search_2): Don't check re_compile_fastmap for failure.
21668         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
21669         Now also sets the new value (passed in a new argument).
21670         (re_match_2_internal): Use it.
21671         Also, use a new var `reg' of type size_t when looping through regs
21672         rather than reuse the inappropriate `mcnt'.
21673
21674 2000-10-25  Jim Meyering  <meyering@lucent.com>
21675
21676         * lib/obstack.c: Update from libc.
21677
21678 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
21679
21680         * regex.c (regex_compile): Change the way of handling a range from
21681         a char less than 256 to a char not less than 256.
21682
21683 2000-10-24  Andrew Innes  <andrewi@gnu.org>
21684
21685         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
21686         NT-Emacs only.
21687         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
21688         so that re_search functions only quit when callers expect them to.
21689
21690 2000-10-23  Jim Meyering  <meyering@lucent.com>
21691
21692         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
21693         wrong.  That set_locale call must not have any side effects.
21694         From Paul Eggert.
21695
21696 2000-10-22  Jim Meyering  <meyering@lucent.com>
21697
21698         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
21699         [CYCLIC]: Remove now-unused definition.
21700
21701         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
21702         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
21703         Suggestion from Ulrich Drepper.
21704
21705 2000-10-21  Jim Meyering  <meyering@lucent.com>
21706
21707         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
21708         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
21709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
21710
21711 2000-10-21  Jim Meyering  <meyering@lucent.com>
21712
21713         * lib/dirname.c (memrchr): Declare if necessary.
21714         (dir_name): Remove the restriction that there be no
21715         trailing slashes.  Now, this code skips past them, effectively
21716         ignoring them.
21717         [TEST_DIRNAME] (main): New unit tests.
21718
21719         * lib/memrchr.c: New file from GNU libc.
21720         Undef __memrchr, too.
21721         [!weak_alias]: Define __memrchr to memrchr.
21722         Guard weak_alias use with `#ifdef weak_alias'.
21723
21724 2000-10-21  Jim Meyering  <meyering@lucent.com>
21725
21726         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
21727         (dir_name): Use dir_name_r.
21728         * lib/dirname.h (dir_name_r): Declare it.
21729
21730 2000-10-17  Jim Meyering  <meyering@lucent.com>
21731
21732         * lib/quote.h (PARAMS): Define and use.
21733         Reported by Akim Demaille.
21734
21735         * lib/getopt.c: Update from libc.
21736
21737 2000-10-16  Jim Meyering  <meyering@lucent.com>
21738
21739         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
21740         setlocale.
21741         From Jan Fedak.
21742
21743 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
21744
21745         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
21746
21747 2000-09-25  Jim Meyering  <meyering@lucent.com>
21748
21749         * lib/md5.h (rol): Define (from GnuPG).
21750
21751         * lib/sha.c: Give credit (GnuPG) where due.
21752         (M): Use rol rather than open-coding it.
21753         Add a FIXME comment.
21754
21755 2000-09-21  Jim Meyering  <meyering@lucent.com>
21756
21757         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
21758         Reported by Michael Stone.
21759
21760 2000-09-20  Jim Meyering  <meyering@lucent.com>
21761
21762         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
21763         (noinst_HEADERS): Add sha.h.
21764         Based on code from Scott G. Miller and from GnuPG.
21765
21766 2000-09-18  Jim Meyering  <meyering@lucent.com>
21767
21768         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
21769         LIBS. Otherwise, everyone ends up linking with -lelf for some
21770         configurations.
21771         Reported by Mike Stone.
21772
21773 2000-09-15  Jim Meyering  <meyering@lucent.com>
21774
21775         * lib/regex.c: Update from libc.
21776
21777 2000-09-10  Jim Meyering  <meyering@lucent.com>
21778
21779         * lib/getopt.c (_getopt_internal): Update from glibc.
21780
21781 2000-09-09  Jim Meyering  <meyering@lucent.com>
21782
21783         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
21784         think it should be used as a general replacement for isascii.
21785         * lib/fnmatch.c: Likewise.
21786         * lib/mbswidth.c: Likewise
21787         * lib/regex.c: Likewise.
21788
21789         Don't use atoi.
21790         * lib/userspec.c: Include sys/param.h and limits.h.
21791         Include xstrtol.h.
21792         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21793         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
21794         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
21795         UID, GID.  Check range.
21796
21797 2000-09-06  Jim Meyering  <meyering@lucent.com>
21798
21799         * lib/getopt.c (_getopt_internal): Update from glibc.
21800
21801 2000-08-30  Jim Meyering  <meyering@lucent.com>
21802
21803         * lib/strftime.c: Merge in changes from GNU libc.
21804
21805 2000-08-26  Jim Meyering  <meyering@lucent.com>
21806
21807         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
21808         * m4/fpending.m4: New file.
21809
21810 2000-08-26  Jim Meyering  <meyering@lucent.com>
21811
21812         * lib/closeout.c: Include "__fpending.h".
21813         (close_stdout_status): Return right away if there's nothing to flush.
21814
21815         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
21816         * lib/__fpending.c: New file.
21817         * lib/__fpending.h: New file.
21818
21819 2000-08-20  Jim Meyering  <meyering@lucent.com>
21820
21821         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
21822         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
21823         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
21824
21825 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
21826
21827         Improve fileutils installation on systems where running
21828         programs (like install) can't be unlinked.
21829         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
21830         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
21831
21832 2000-08-07  Paul Eggert  <eggert@twinsun.com>
21833
21834         Standardize on "memory exhausted" instead of "Memory exhausted"
21835         or "virtual memory exhausted".
21836         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
21837         "virtual memory exhausted".
21838         * lib/same.c (same_name): Invoke xalloc_die instead of printing
21839         our own message.
21840         * lib/userspec.c (parse_user_spec): Likewise.
21841         * lib/bumpalloc.h: comment fix
21842         * lib/same.c, userspec.c: Include xalloc.h.
21843
21844         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
21845         not char *const and pointing to a constant array.
21846         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
21847         (xrealloc): Comment fix.
21848
21849         * lib/userspec.c (parse_user_spec):
21850         Don't translate a message until just before returning,
21851         to avoid unnecessary translation.
21852
21853 2000-08-07  Jim Meyering  <meyering@lucent.com>
21854
21855         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
21856         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
21857         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
21858         getgroups.c, gethostname.c, getopt.h, group-member.c,
21859         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
21860         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
21861         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
21862         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
21863         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
21864         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
21865         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
21866         yesno.c: Back out Copyright date changes for each file with no change
21867         this year.  This eases coordination with other programs using the same
21868         source code modules.  From Paul Eggert.
21869
21870 2000-08-06  Paul Eggert  <eggert@twinsun.com>
21871
21872         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
21873         not char, for compatibility with glibc 2.1.3 strftime.c.
21874
21875 2000-08-03  Greg McGary  <greg@mcgary.org>
21876
21877         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
21878         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
21879         (EXTEND_BUFFER): Use them.
21880
21881 2000-08-01  Jim Meyering  <meyering@lucent.com>
21882
21883         * lib/dirname.c (ISSLASH): Define.
21884         (BACKSLASH_IS_PATH_SEPARATOR): Define.
21885         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
21886         both `\' and `/' may be use as path separators.
21887         Based on a patch from Prashant TR.
21888
21889 2000-07-31  Paul Eggert  <eggert@twinsun.com>
21890
21891         * lib/quotearg.c (quotearg_n_options): Don't make the initial
21892         slot vector a constant, since it might get modified.
21893
21894 2000-07-31  Jim Meyering  <meyering@lucent.com>
21895
21896         * lib/xmalloc.c: Use `virtual memory exhausted', not
21897         `Memory exhausted'.
21898         * lib/obstack.c (print_and_abort): Likewise.
21899
21900 2000-07-30  Paul Eggert  <eggert@twinsun.com>
21901
21902         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
21903         buffer, so that the caller can always quote one small
21904         component of a "memory exhausted" message in slot 0.
21905         From a suggestion by Jim Meyering.
21906
21907 2000-07-30  Jim Meyering  <meyering@lucent.com>
21908
21909         * lib/makepath.c (make_path): Quote the other instance, too.
21910
21911         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
21912         (STATIC_BUF_SIZE): Define.
21913         (quotearg_n_options): Use only statically allocated storage when
21914         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
21915         than STATIC_BUF_SIZE.
21916
21917 2000-07-29  Jim Meyering  <meyering@lucent.com>
21918
21919         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
21920         * lib/dirname.c (dir_name): Likewise.
21921
21922         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
21923         `/'.
21924
21925         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
21926         (dir_name): Assert that there are no trailing slashes.
21927
21928 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
21929
21930         * lib/mbswidth.h (mbswidth): Add a flags argument.
21931         (mbswidth): New declaration.
21932         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
21933         * lib/mbswidth.c (mbswidth): Add a flags argument.
21934         (mbsnwidth): New function.
21935
21936 2000-07-24  Jim Meyering  <meyering@lucent.com>
21937
21938         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
21939
21940 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21941
21942         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
21943
21944 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21945
21946         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
21947         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
21948         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
21949         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
21950         invoke multibyte primitives.
21951
21952 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21953
21954         * lib/quotearg.c:
21955         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
21956         so that mbstate_t is always defined.
21957
21958         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
21959         be 1 in at least one GCC installation, and this configuration
21960         error is likely to be common.  Ignoring MB_LEN_MAX hurts
21961         performance on hosts that have mbrtowc but have only unibyte
21962         locales, but I assume these hosts are rare.
21963
21964 2000-07-23  Paul Eggert  <eggert@twinsun.com>
21965
21966         * lib/mbswidth.c (_XOPEN_SOURCE):
21967         Don't define; this causes problems on Solaris 7.
21968         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
21969
21970 2000-07-23  Jim Meyering  <meyering@lucent.com>
21971
21972         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
21973         too: getgrgid, getpwuid, getuid.
21974
21975 2000-07-23  Jim Meyering  <meyering@lucent.com>
21976
21977         * lib/basename.c (base_name): Add an assertion.
21978
21979 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
21980
21981         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
21982         shadow its mbsinit function.
21983
21984 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
21985
21986         * lib/mbswidth.h: New file.
21987         * lib/mbswidth.c: New file.
21988         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
21989         (noinst_HEADERS): Add mbswidth.h.
21990
21991 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
21992
21993         * lib/config.charset: Add support for FreeBSD. Improve support for
21994         HP-UX and IRIX 6.
21995
21996 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
21997
21998         * m4/mbswidth.m4: New file.
21999         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
22000
22001 2000-07-15  Jim Meyering  <meyering@lucent.com>
22002
22003         * lib/makepath.c: Include quote.h.
22004         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
22005         corresponding argument in a `quote (...)' call.
22006         Give better diagnostics.
22007
22008         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
22009         (noinst_HEADERS): Add quote.h.
22010
22011         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
22012         from tar's src/misc.c.
22013         * lib/quote.h: New file.  Prototypes for same.
22014
22015 2000-07-14  Paul Eggert  <eggert@twinsun.com>
22016
22017         From a suggestion by Bruno Haible.
22018         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
22019         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
22020         to decide whether to define the BeOS workaround macro;
22021         this adjusts to the change to AC_MBSTATE_T.
22022
22023 2000-07-14  Jim Meyering  <meyering@lucent.com>
22024
22025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
22026         jm_AC_TYPE_UINTMAX_T.
22027
22028 2000-07-13  Paul Eggert  <eggert@twinsun.com>
22029
22030         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
22031
22032         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
22033         quotearg_buffer_restyled): Add support for
22034         clocale_quoting_style.  Undo previous change to
22035         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
22036         and "{RIGHT QUOTATION MARK}" msgids.
22037
22038 2000-07-10  Paul Eggert  <eggert@twinsun.com>
22039
22040         From a suggestion by Bruno Haible.
22041         * m4/mbstate_t.m4 (AC_MBSTATE_T):
22042         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
22043         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
22044         and mbstate_t, to a single-part test that simply defines mbstate_t.
22045         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
22046         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
22047
22048 2000-07-10  Jim Meyering  <meyering@lucent.com>
22049
22050         * m4/strerror_r.m4: Mirror the correction made in autoconf.
22051
22052         * m4/gnu-source.m4: Output to confdefs.h directly.
22053         Suggestion from Akim Demaille.
22054
22055 2000-07-09  Paul Eggert  <eggert@twinsun.com>
22056
22057         The old behavior of quoting `like this' doesn't look good with
22058         newer, ISO-style fonts.  See:
22059         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
22060
22061         Instead, quote "like this" by default.  Let the translator
22062         tailor the locale-specific quoting behavior by providing
22063         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
22064
22065         * lib/quotearg.c (N_): New macro.
22066         (gettext_default): New function.
22067         (quotearg_buffer_restyled): Use
22068         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
22069         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
22070
22071 2000-07-09  Jim Meyering  <meyering@lucent.com>
22072
22073         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
22074         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
22075
22076         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
22077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
22078
22079 2000-07-09  Jim Meyering  <meyering@lucent.com>
22080
22081         * lib/Most files: Update copyright dates to include 2000.
22082
22083 2000-07-08  Jim Meyering  <meyering@lucent.com>
22084
22085         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
22086         if not defined.
22087         (xgethostname): Remove now-unnecessary #ifdef.
22088         Move declaration of `err' into loop where it's used.
22089
22090 2000-07-05  Paul Eggert  <eggert@twinsun.com>
22091         and Bruno Haible  <haible@clisp.cons.org>
22092
22093         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
22094         only if the test for an object-type mbstate_t fails.  This
22095         prevents us from mistakenly reporting that mbstate_t is a
22096         system object type after we "#define mbstate_t int" to work
22097         around its lack.
22098
22099 2000-07-05  Paul Eggert  <eggert@twinsun.com>
22100         and Bruno Haible  <haible@clisp.cons.org>
22101
22102         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
22103
22104 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22105
22106         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
22107         to strerror_r.
22108         Include <ctype.h> for use of isalpha.
22109
22110 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22111
22112         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
22113         by allocating a larger buffer. Test the gethostname return value for
22114         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
22115         returns an error and ENAMETOOLONG isn't defined.
22116
22117 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22118
22119         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
22120         dimension.
22121
22122 2000-07-04  Jim Meyering  <meyering@lucent.com>
22123
22124         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
22125         of the deprecated AC_CHECKING.
22126
22127 2000-07-04  Jim Meyering  <meyering@lucent.com>
22128
22129         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
22130         Reported by Bruno Haible.
22131
22132 2000-07-04  Jim Meyering  <meyering@lucent.com>
22133
22134         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
22135         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
22136         lacks mbrtowc.
22137
22138 2000-07-03  Paul Eggert  <eggert@twinsun.com>
22139
22140         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
22141         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
22142
22143 2000-07-03  Paul Eggert  <eggert@twinsun.com>
22144         and Bruno Haible  <haible@clisp.cons.org>
22145
22146         * lib/quotearg.c (mbrtowc):
22147         Assign to *pwc, and return 1 only if result is nonzero.
22148         (iswprint): Use ISPRINT when substituting our own mbrtowc.
22149
22150 2000-07-03  Jim Meyering  <meyering@lucent.com>
22151
22152         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
22153
22154 2000-07-03  Jim Meyering  <meyering@lucent.com>
22155
22156         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
22157         This is necessary to get a definition of e.g., UTMP_FILE on
22158         HP-UX 10.20.
22159         From Bob Proulx.
22160
22161 2000-07-02  Jim Meyering  <meyering@lucent.com>
22162
22163         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
22164
22165         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
22166         AC_LIBOBJ(function_name).
22167         * m4/chown.m4: Likewise.
22168         * m4/fnmatch.m4: Likewise.
22169         * m4/ftruncate.m4: Likewise.
22170         * m4/getgroups.m4: Likewise.
22171         * m4/getline.m4: Likewise.
22172         * m4/group-member.m4: Likewise.
22173         * m4/jm-macros.m4: Likewise.
22174         * m4/lstat.m4: Likewise.
22175         * m4/malloc.m4: Likewise.
22176         * m4/memcmp.m4: Likewise.
22177         * m4/nanosleep.m4: Likewise.
22178         * m4/putenv.m4: Likewise.
22179         * m4/realloc.m4: Likewise.
22180         * m4/regex.m4: Likewise.
22181         * m4/stat.m4: Likewise.
22182         * m4/strftime.m4: Likewise.
22183
22184 2000-07-02  Jim Meyering  <meyering@lucent.com>
22185
22186         * lib/quotearg.c (mbstate_t): Don't define here.
22187
22188 2000-07-02  Jim Meyering  <meyering@lucent.com>
22189
22190         * lib/nanosleep.c (SIGCONT): Define if not already defined.
22191
22192 2000-07-01  Jim Meyering  <meyering@lucent.com>
22193
22194         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
22195
22196 2000-07-01  Jim Meyering  <meyering@lucent.com>
22197
22198         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
22199         problem.
22200
22201 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
22202
22203         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
22204         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
22205
22206 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
22207
22208         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
22209         per change in ../m4/ls-mntd-fs.m4.
22210         (read_filesystem_list): Ignore symbolic links.
22211
22212 2000-06-29  Jim Meyering  <meyering@lucent.com>
22213
22214         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
22215         for declaration of strcmp.
22216
22217         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
22218
22219         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
22220         Avoid warning by casting result to `char *' to remove `const'.
22221
22222 2000-06-28  Jim Meyering  <meyering@lucent.com>
22223
22224         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
22225         included by quotearg.c, for which we perform this test.  From
22226         Bruno Haible.
22227
22228 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
22229
22230         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
22231         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
22232         <utmpx.h> exists, put readutmp.o into LIBOBJS.
22233
22234 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
22235
22236         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
22237
22238 2000-06-26  Paul Eggert  <eggert@twinsun.com>
22239
22240         savedir now sets errno on failure and invokes xmalloc to get memory.
22241         Fix a couple of other minor bugs while we're at it.
22242
22243         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
22244         (NAMLEN): Remove macro.
22245         (malloc, realloc): Remove decls.
22246         (stpcpy): Likewise.
22247         ("xalloc.h"): Include.
22248         (NAME_SIZE_DEFAULT): New macro.
22249         (savedir): Use xmalloc / xrealloc to allocate memory.
22250         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
22251         Skip "" directory entries.
22252         Use strlen to calculate directory entry length, since the old method
22253         is rarely used these days and isn't worth supporting.
22254         Don't use a pointer after freeing it.
22255         Check for integer overflow when calculating allocation size.
22256         Use memcpy to copy entries, instead of stpcpy.
22257         Set errno properly when returning NULL.
22258         Check for readdir error.
22259
22260 2000-06-26  Jim Meyering  <meyering@lucent.com>
22261
22262         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
22263
22264 2000-06-25  Jim Meyering  <meyering@lucent.com>
22265
22266         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
22267         Linux header bug when _XOPEN_SOURCE is defined to 500.
22268
22269 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
22270
22271         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
22272         deficiency.
22273
22274 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
22275
22276         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
22277         Include xalloc.h.
22278         Don't include <stdlib.h>.  Don't declare malloc, realloc.
22279
22280 2000-06-24  Jim Meyering  <meyering@lucent.com>
22281
22282         * m4/strerror_r.m4: Revive this file -- to try out an experimental
22283         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
22284         for which strerror does return char*, but which lacks a conveniently
22285         accessible declaration of the function.  If the compile-test says
22286         strerror_r doesn't work, then resort to a `run'-test that works on
22287         BeOS and segfaults on DEC Unix.
22288
22289 2000-06-24  Jim Meyering  <meyering@lucent.com>
22290
22291         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
22292
22293 2000-06-23  Paul Eggert  <eggert@twinsun.com>
22294
22295         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
22296         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
22297
22298 2000-06-23  Paul Eggert  <eggert@twinsun.com>
22299
22300         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
22301         (mbrtowc, mbstate_t): Define substitutes if
22302         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
22303         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
22304         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
22305
22306 2000-06-23  Jim Meyering  <meyering@lucent.com>
22307
22308         * m4/afs.m4: Add missing AC_MSG_RESULT.
22309         Reported by Bruno Haible.
22310
22311         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
22312         Suggestion from Bruno Haible.
22313
22314 2000-06-23  Jim Meyering  <meyering@lucent.com>
22315
22316         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
22317
22318 2000-06-21  Jim Meyering  <meyering@lucent.com>
22319
22320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
22321
22322 2000-06-21  Jim Meyering  <meyering@lucent.com>
22323
22324         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
22325         (noinst_HEADERS): Add getstr.h.
22326
22327         * lib/getline.c (getstr): Move into a separate file.
22328         * lib/getstr.c (getstr): New file, extracted from getline.c, with
22329         the following changes: new parameter, delim2; both delim[12]
22330         parameters have type `int', not `char'.  The latter would lose
22331         with 8-bit delimiters.
22332         * lib/getstr.h: New file.
22333
22334 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22335
22336         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
22337         than 1024, return a memory chunk of least possible size, instead
22338         of size PATH_MAX + 2. In the loop, increment the size proportionally.
22339         Use free/xmalloc instead of xrealloc to avoid copying for very long
22340         paths.
22341
22342 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22343
22344         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
22345         the empty string.
22346
22347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
22348
22349         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
22350         address, not strdup.  Include <stdlib.h> and don't declare free().
22351
22352 2000-06-19  Jim Meyering  <meyering@lucent.com>
22353
22354         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
22355
22356 2000-06-18  Jim Meyering  <meyering@lucent.com>
22357
22358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
22359
22360         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
22361         `checking whether...' message to be consistent with that of the
22362         lstat test.
22363
22364 2000-06-18  Jim Meyering  <meyering@lucent.com>
22365
22366         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
22367         Besides, these days every porting target provides a mkdir function.
22368
22369         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
22370         needed. (this snippet comes from src/system.h).
22371
22372 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
22373
22374         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
22375
22376 2000-06-15  Paul Eggert  <eggert@twinsun.com>
22377
22378         * lib/human.c (adjust_value): New function.
22379         (human_readable_inexact): Apply rounding style even when
22380         printing approximate values.
22381
22382 2000-06-14  Paul Eggert  <eggert@twinsun.com>
22383
22384         * lib/human.c (human_readable_inexact): Allow an input block
22385         size that is not a multiple of the output block size, and vice versa.
22386         Reported by Piergiorgio Sartor.
22387
22388 2000-06-14  Paul Eggert  <eggert@twinsun.com>
22389
22390         * lib/getdate.y (get_date): Apply relative times after time
22391         zone indicator, not before.  Reported by Todd A. Jacobs.
22392
22393 2000-06-13  Jim Meyering  <meyering@lucent.com>
22394
22395         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
22396
22397         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
22398
22399 2000-06-12  Paul Eggert  <eggert@twinsun.com>
22400
22401         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
22402
22403 2000-06-12  Jim Meyering  <meyering@lucent.com>
22404
22405         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
22406         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
22407         optional argument.
22408         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
22409         the optional argument, `lib'.
22410
22411 2000-06-08  Jim Meyering  <meyering@lucent.com>
22412
22413         * m4/largefile.m4: Remove file (now that it's part of autoconf).
22414
22415 2000-06-04  Paul Eggert  <eggert@twinsun.com>
22416
22417         Rewrite largefile configuration so that we don't need to run
22418         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
22419         AC_CANONICAL_HOST in configure.in -- jmm]
22420
22421         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
22422         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
22423         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
22424         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
22425         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
22426         All uses changed.
22427         Instead of inspecting the output of getconf, try to compile the
22428         test program without and with the macro definition.
22429         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
22430         for getconf.  Instead, check for the needed flags by compiling
22431         test programs.
22432
22433 2000-06-04  Paul Eggert  <eggert@twinsun.com>
22434
22435         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
22436
22437 2000-06-04  Jim Meyering  <meyering@lucent.com>
22438
22439         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
22440         SunOS 4.1.4 for which gid_t is an unsigned type.
22441
22442 2000-06-03  Jim Meyering  <meyering@lucent.com>
22443
22444         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
22445         now that autoconf requires that.
22446
22447         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
22448         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
22449         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
22450
22451 2000-06-03  Jim Meyering  <meyering@lucent.com>
22452
22453         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
22454
22455 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
22456
22457         * m4/glibc21.m4: New file.
22458         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
22459
22460 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
22461
22462         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
22463         newer, don't install charset.alias.
22464         * lib/config.charset: Change the Linux/glibc rules so they become empty
22465         on glibc-2.1 or newer.
22466
22467 2000-06-02  Jim Meyering  <meyering@lucent.com>
22468
22469         * lib/mountlist.c: Back out last change.  Instead, do this...
22470         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
22471         me_dummy member using the same `ignore'-testing code.
22472         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
22473         fs_type strings.
22474         From Mark D. Roth.
22475
22476 2000-05-29  Jim Meyering  <meyering@lucent.com>
22477
22478         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
22479         mounts with the `ignore' attribute.  Based on a patch from
22480         Mark D. Roth.
22481
22482 2000-05-28  Jim Meyering  <meyering@lucent.com>
22483
22484         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
22485         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22486         * m4/stat.m4: Likewise.
22487         * m4/lstat.m4: Likewise.
22488         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
22489
22490         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
22491         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
22492
22493 2000-05-26  Jim Meyering  <meyering@lucent.com>
22494
22495         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
22496
22497 2000-05-24  Jim Meyering  <meyering@lucent.com>
22498
22499         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
22500         autoconf requires that.
22501         * m4/lib-check.m4: Likewise.
22502         * m4/jm-macros.m4: Likewise.
22503         * m4/strftime.m4: Likewise.
22504
22505         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
22506         AC_CHECK_DECLS, now that autoconf requires that.
22507
22508 2000-05-22  Jim Meyering  <meyering@lucent.com>
22509
22510         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22511         * m4/lstat.m4: Likewise.
22512
22513 2000-05-22  Jim Meyering  <meyering@lucent.com>
22514
22515         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
22516
22517 2000-05-20  Jim Meyering  <meyering@lucent.com>
22518
22519         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
22520         (jm_PREREQ): Use it.
22521
22522 2000-05-18  Jim Meyering  <meyering@lucent.com>
22523
22524         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
22525         back, too, since it may have been modified by allocate_entry.
22526         (hash_delete): Rewrite to use neither the assignment operator
22527         nor the comma operator in an if-expression.
22528
22529 2000-05-15  Paul Eggert  <eggert@twinsun.com>
22530
22531         * lib/closeout.c:
22532         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
22533         Remove; no longer needed.
22534         "quotearg.h": Add include.
22535         (file_name): Do not bother to explicitly initialize to NULL; it's less
22536         efficient on some hosts.
22537         (close_stdout_status): Remove test as to whether stdout was already
22538         closed; it breaks for the case "echo x | sort >&-".
22539         Quote file name colons.
22540         Do not assume that _("write error") lacks format strings.
22541
22542 2000-05-15  Jim Meyering  <meyering@lucent.com>
22543
22544         * lib/version-etc.c (version_etc_copyright): Update the copyright
22545         string used in all --version output.
22546
22547 2000-05-14  Jim Meyering  <meyering@lucent.com>
22548
22549         * lib/closeout.c (close_stdout_set_file_name): New function.
22550         (close_stdout_status): Use new file-scoped global.
22551         Return right away if fstat says the stdout file descriptor is invalid.
22552         * lib/closeout.h (close_stdout_set_file_name): Declare.
22553
22554 2000-05-10  Jim Meyering  <meyering@lucent.com>
22555
22556         * lib/closeout.c [default_exit_status]: New file-scoped variable.
22557         (close_stdout_set_status): New function.
22558         * lib/closeout.h (close_stdout_set_status): Declare.
22559
22560 2000-05-09  Jim Meyering  <meyering@lucent.com>
22561
22562         * m4/gettext.m4: Rename this...
22563         * m4/libintl.m4: ...to this.
22564
22565 2000-05-08  Jim Meyering  <meyering@lucent.com>
22566
22567         * lib/long-options.c: Don't include closeout.h.
22568         (parse_long_options): Don't call close_stdout for --version.
22569
22570 2000-05-06  Paul Eggert  <eggert@twinsun.com>
22571
22572         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
22573         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
22574         2.1.3 bug.  This avoids a clash when files like regex.c define
22575         _GNU_SOURCE.
22576
22577 2000-05-06  Jim Meyering  <meyering@lucent.com>
22578
22579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
22580         (AC_REPLACE_FUNCS): Add strnlen.
22581
22582         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
22583         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
22584
22585         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
22586         AC_SEARCH_LIBS call for nanosleep.
22587         (LIB_NANOSLEEP): Set and AC_SUBST.
22588
22589 2000-05-06  Jim Meyering  <meyering@lucent.com>
22590
22591         * lib/strnlen.c: Undefine __strnlen and strnlen.
22592         [!weak_alias]: Define __strnlen to strnlen.
22593
22594         * lib/atexit.c: New file, from libiberty.
22595
22596 2000-05-06  Jim Meyering  <meyering@lucent.com>
22597
22598         * lib/closeout.c (close_stdout_status): Also check for errors on the
22599         stderr stream.
22600
22601 2000-05-05  Jim Meyering  <meyering@lucent.com>
22602
22603         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
22604         AC_SEARCH_LIBS call for clock_gettime.
22605         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
22606
22607         * m4/search-libs.m4: Update from autoconf.
22608
22609         su doesn't work on Solaris 2.6.
22610         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
22611         <shadow.h>.  Reported by Dragos Harabor.
22612
22613 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
22614
22615         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
22616         memcpy instead of xmalloc, xrealloc, path_concat.
22617         (locale_charset): Treat empty environment variables as absent.
22618         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
22619
22620 2000-05-04  Jim Meyering  <meyering@lucent.com>
22621
22622         * lib/getopt.c: Update from glibc.
22623         * lib/obstack.c: Likewise.
22624         * lib/obstack.h: Likewise.
22625         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
22626         file
22627
22628         * lib/regex.h: Likewise.
22629         * lib/strndup.c: Likewise.
22630         * lib/strnlen.c: New file, from glibc.
22631
22632 2000-05-03  Jim Meyering  <meyering@lucent.com>
22633
22634         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
22635
22636 2000-05-02  Paul Eggert  <eggert@twinsun.com>
22637
22638         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
22639         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
22640         compile-time test, rather than inspecting host and OS, to
22641         decide whether to define _LARGEFILE_SOURCE.
22642
22643 2000-05-01  Jim Meyering  <meyering@lucent.com>
22644
22645         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
22646
22647         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
22648         Based on a patch from Bruno Haible.
22649
22650 2000-05-01  Jim Meyering  <meyering@lucent.com>
22651
22652         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
22653
22654 2000-04-29  Jim Meyering  <meyering@lucent.com>
22655
22656         * lib/path-concat.c: Declare strdup only if it's not defined.
22657         * lib/canon-host.c: Likewise.
22658
22659 2000-04-28  Jim Meyering  <meyering@lucent.com>
22660
22661         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
22662         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
22663         is included first, then limits.h is included by locale.h by libintl.h.
22664         From John David Anglin.
22665
22666 2000-04-25  Jim Meyering  <meyering@lucent.com>
22667
22668         * lib/makepath.c (S_IRWXUGO): Define.
22669         (make_path): Always perform explicit chmod if MODE specifies any
22670         of the `special' permission bits.  Prompted by a bug report against
22671         install from Mate Wierdl and Joost van Baal.
22672
22673 2000-04-18  Jim Meyering  <meyering@lucent.com>
22674
22675         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
22676         (jm_PREREQ): Use it.
22677
22678 2000-04-18  Jim Meyering  <meyering@lucent.com>
22679
22680         * lib/README: New file.
22681
22682         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
22683         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
22684
22685 2000-04-17  Jim Meyering  <meyering@lucent.com>
22686
22687         Get it right :-)
22688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
22689         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
22690         Suggestion from Akim Demaille.
22691
22692 2000-04-17  Jim Meyering  <meyering@lucent.com>
22693
22694         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
22695         the definition of it to rpl_strftime also defined-away the system's
22696         declaration.
22697
22698 2000-04-15  Jim Meyering  <meyering@lucent.com>
22699
22700         Use `C' to denote so-called `contiguous' files, the same way
22701         that tar does.
22702         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
22703         (ftypelet): Use S_ISCTG.
22704         From Michael Deutschmann.
22705
22706 2000-04-14  Jim Meyering  <meyering@lucent.com>
22707
22708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
22709         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
22710         clobbered.
22711
22712 2000-04-14  Jim Meyering  <meyering@lucent.com>
22713
22714         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
22715
22716 2000-04-13  Jim Meyering  <meyering@lucent.com>
22717
22718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
22719         AH_VERBATIM to insert required #ifndef into config.h.in.
22720         Suggestion from Akim Demaille.
22721
22722 2000-04-12  Jim Meyering  <meyering@lucent.com>
22723
22724         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
22725         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
22726         Christian Krackowizer.
22727
22728         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
22729         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
22730         (AC_SYS_LARGEFILE): Require.
22731         (AM_C_PROTOTYPES): Require.
22732
22733 2000-04-08  Jim Meyering  <meyering@lucent.com>
22734
22735         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
22736         names don't conflict.  Reported by Eli Zaretskii.
22737
22738 2000-04-07  Jim Meyering  <meyering@lucent.com>
22739
22740         * lib/putenv.c: Move inclusion of errno.h so it follows that of
22741         sys/types.h, to work around system header problems on AIX 3.2.5.
22742         From Bruno Haible.
22743
22744 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
22745
22746         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
22747         bug.  Deal with the different error behavior of Irix iconv.
22748
22749 2000-04-05  Paul Eggert  <eggert@twinsun.com>
22750
22751         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
22752         IRIX if the installer said otherwise.
22753
22754 2000-04-05  Jim Meyering  <meyering@lucent.com>
22755
22756         Portability tweaks required for ultrix4.3.
22757         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
22758         (jm_CHECK_DECLS): Add getutent to the list of functions.
22759         (_jm_DECL_HEADERS): Add utmpx.h.
22760         From John David Anglin.
22761
22762         * m4/strftime.m4: Back out the 2000-04-02 change.
22763         Instead of that change, simply undefine putenv in the test program.
22764
22765 2000-04-05  Jim Meyering  <meyering@lucent.com>
22766
22767         Portability tweaks required for ultrix4.3.
22768         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
22769         getutent.
22770         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
22771         * lib/canon-host.c: Declare strdup.
22772         * lib/path-concat.c: Likewise.
22773         From John David Anglin.
22774
22775 2000-04-04  Jim Meyering  <meyering@lucent.com>
22776
22777         Be more DOS 8.3-friendly.
22778         * lib/ref-add.sin: Renamed from ref-add.sed.in.
22779         * lib/ref-del.sin: Renamed from ref-del.sed.in.
22780         * lib/Makefile.am: Reflect renaming.
22781         Reported by Eli Zaretskii.
22782
22783         Use a temporary file name that won't clash with `charset.alias'
22784         in the DOS 8.3 name space.
22785         * lib/Makefile.am (charset_tmp): Define.
22786         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
22787         (uninstall-local): Likewise.
22788         Reported by Eli Zaretskii.
22789
22790 2000-04-03  Jim Meyering  <meyering@lucent.com>
22791
22792         * m4/gettext.m4: Fix typo in comment.
22793
22794         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
22795         textutils/configure.in).  Suggestion from Paul Eggert.
22796         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
22797
22798 2000-04-02  Paul Eggert  <eggert@twinsun.com>
22799
22800         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
22801         variable in the shell rather than using putenv, which isn't
22802         portable.  This avoids the configure-time inter-test dependency
22803         on the potentially-renamed putenv function.
22804
22805 2000-03-30  Paul Eggert  <eggert@twinsun.com>
22806
22807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
22808         before checking struct stat.st_blksize, so that
22809         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
22810
22811 2000-03-29  Paul Eggert  <eggert@twinsun.com>
22812
22813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
22814         since strftime.c uses HAVE_STRFTIME to decide whether to use
22815         the underlying strftime.
22816
22817 2000-03-29  Paul Eggert  <eggert@twinsun.com>
22818
22819         * lib/time/strftime.c (my_strftime): Make sure we call the system
22820         strftime, not ourselves, when invoking the underlying strftime.
22821
22822 2000-03-24  Jim Meyering  <meyering@lucent.com>
22823
22824         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
22825         (charset_alias): Define.
22826         (install-exec-local): Factor out common code.
22827         (uninstall-local): Split lines longer than 80.
22828         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
22829         (SUFFIXES): Define.
22830         (.sed.in.sed): New rule.  Don't redirect directly to $@.
22831         (CLEANFILES): Add ref-add.sed and ref-del.sed.
22832
22833 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
22834
22835         * lib/config.charset: Output a line containing "Packages using this
22836         file".
22837         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
22838         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
22839         ref-del.sed): New rules.
22840
22841 2000-03-17  Jim Meyering  <meyering@lucent.com>
22842
22843         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
22844         Otherwise, include <strings.h>
22845
22846 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
22847
22848         * lib/unicodeio.c (utf8_wctomb): New function.
22849         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
22850         format instead of in UCS-4 with platform dependent endianness.
22851
22852 2000-03-10  Jim Meyering  <meyering@lucent.com>
22853
22854         * m4/lib-check.m4: Look for getspnam in -lgen, too.
22855         From Marco Franzen.
22856
22857 2000-03-07  Paul Eggert  <eggert@twinsun.com>
22858
22859         * lib/savedir.c (savedir): Work even if directory size is
22860         negative; this can happen with some screwy NFS configurations.
22861
22862 2000-03-06  Jim Meyering  <meyering@lucent.com>
22863
22864         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
22865         if it's NULL (because we ran out of memory).  From Bruno Haible.
22866
22867 2000-03-05  Jim Meyering  <meyering@lucent.com>
22868
22869         * lib/localcharset.c ("path-concat.h"): Include.
22870         (get_charset_aliases): Use path_concat instead of ANSI string
22871         concatenation.
22872
22873         * lib/unicodeio.h (PARAMS): Define.
22874         Use it to guard prototype.
22875
22876 2000-03-04  Jim Meyering  <meyering@lucent.com>
22877
22878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
22879         for lib/localcharset.c.
22880
22881 2000-03-04  Jim Meyering  <meyering@lucent.com>
22882
22883         * lib/Makefile.am (install-exec-local): Create $(libdir) before
22884         installing into it.
22885         (uninstall-local): Uncomment this rule so `make distcheck' works
22886         once again.
22887
22888         * lib/unicodeio.c (<errno.h>): Include it.
22889         (errno): Declare if not defined.
22890
22891         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
22892
22893         * lib/config.charset: New version, incorporating remarks from a linux
22894         i18n mailing list.  From Bruno Haible.
22895
22896 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
22897
22898         * m4/codeset.m4: New file.
22899         * m4/iconv.m4: New file.
22900         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
22901
22902 2000-03-03  Jim Meyering  <meyering@lucent.com>
22903
22904         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
22905
22906 2000-03-02  Jim Meyering  <meyering@lucent.com>
22907
22908         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
22909         the messages come out on separate lines.
22910
22911         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
22912         rather than jm_CHECK_DECLARATIONS.
22913         * m4/decl.m4: Remove now-unused file.
22914
22915         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
22916         geteuid.
22917
22918 2000-03-02  Jim Meyering  <meyering@lucent.com>
22919
22920         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
22921
22922 2000-03-01  Jim Meyering  <meyering@lucent.com>
22923
22924         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
22925         * lib/unicodeio.c: Likewise.
22926
22927 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
22928
22929         * lib/config.charset: New file.
22930         * lib/localcharset.c: New file.
22931         * lib/unicodeio.h, lib/unicodeio.c: New files.
22932         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
22933         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
22934         (noinst_HEADERS): Add unicodeio.h.
22935         (all-local, install-exec-local, charset.alias): New targets.
22936
22937 2000-02-28  Paul Eggert  <eggert@twinsun.com>
22938
22939         * lib/quotearg.c (ALERT_CHAR): New macro.
22940         (quotearg_buffer_restyled): Use it.
22941
22942 2000-02-27  Jim Meyering  <meyering@lucent.com>
22943
22944         * m4/check-decl.m4: Add getenv to the list.
22945
22946 2000-02-27  Jim Meyering  <meyering@lucent.com>
22947
22948         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
22949         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
22950
22951         * lib/backupfile.c: Guard inclusion of stdlib.h with
22952         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
22953         Declare malloc if needed.
22954
22955         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
22956         `#ifndef HAVE_DECL..'
22957         now that autoconf always defines the HAVE_DECL_ symbols.
22958         * lib/human.c: Likewise.
22959         * lib/same.c: Likewise.
22960         * lib/strtoumax.c: Likewise.
22961
22962         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
22963         declaration check was not run.
22964         * lib/hash.c: Likewise.
22965         * lib/human.c: Likewise.
22966         * lib/same.c: Likewise.
22967         * lib/strtoumax.c: Likewise.
22968
22969         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
22970         `.', then first look up the entire `.'-containing string as a login
22971         name.
22972
22973 2000-02-23  Jim Meyering  <meyering@lucent.com>
22974
22975         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
22976         in place of my hack.
22977
22978 2000-02-18  Paul Eggert  <eggert@twinsun.com>
22979
22980         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
22981         (textint): New typedef.
22982         (parser_control): Member year changed from int to textint.
22983         All uses changed.
22984         (YYSTYPE): Removed; replaced by %union with int and textint members.
22985         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
22986         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
22987         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
22988         (tSNUMBER, tUNUMBER): Now of type <textintval>.
22989         (date, number, to_year): Use width of number in digits, not its value,
22990         to determine whether it's a 2-digit year, or a 2-digit time.
22991         (yylex): Store number of digits of numeric tokens.
22992         Reported by John Kendall.
22993
22994         (parser_control): Changed from struct parser_control to typedef (for
22995         consistency).  All uses changed.
22996
22997         (tID): Removed; not used.
22998         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
22999
23000 2000-02-14  Paul Eggert  <eggert@twinsun.com>
23001
23002         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
23003         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
23004
23005 2000-02-12  Jim Meyering  <meyering@lucent.com>
23006
23007         * lib/userspec.c (ISDIGIT): Define it.
23008         (isdigit): Remove definition.
23009         (is_number): Use ISDIGIT, not isdigit.
23010         <libintl.h>: Include.
23011         (_ and N_): Define.
23012         (parse_user_spec): Mark translatable strings.
23013
23014 2000-02-10  Jim Meyering  <meyering@lucent.com>
23015
23016         With these changes, nanosleep.[ch] are finally enough like the other
23017         lib/* replacement files to compile on a few more losing systems.
23018
23019         * lib/nanosleep.h: Don't include config.h.
23020         Remove prototype from declaration of nanosleep.
23021         (PARAMS): Remove now-unneeded definition.
23022         * lib/nanosleep.c: #undef nanosleep.
23023         (rpl_nanosleep): Rename from nanosleep.
23024
23025 2000-02-10  Jim Meyering  <meyering@lucent.com>
23026
23027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
23028         gnu_nanosleep to rpl_nanosleep.
23029
23030 2000-02-09  Jim Meyering  <meyering@lucent.com>
23031
23032         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
23033         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
23034
23035 2000-02-08  Akim Demaille  <akim@epita.fr>
23036
23037         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
23038         `[' and `]' and remove uses of `changequote'.
23039         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
23040         (AC_SYS_LARGEFILE): Likewise.
23041         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
23043         of changequote.
23044         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
23045         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
23046         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
23047         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
23048
23049 2000-02-05  Jim Meyering  <meyering@lucent.com>
23050
23051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
23052         Remove explicit use of AC_HEADER_TIME.  It is required by
23053         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
23054         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
23055         in autoconf whereby the expansion of the latter ended up preceding
23056         the expansion of its prerequisite, AC_HEADER_TIME.
23057         Reported by Volker Borchert.
23058
23059 2000-02-03  Jim Meyering  <meyering@lucent.com>
23060
23061         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
23062
23063 2000-02-03  Jim Meyering  <meyering@lucent.com>
23064
23065         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
23066         rather than with `#if HAVE_UTMPNAME'.
23067
23068 2000-02-02  Jim Meyering  <meyering@lucent.com>
23069
23070         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
23071         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
23072         Reported by Eli Zaretskii.
23073
23074 2000-02-01  Jim Meyering  <meyering@lucent.com>
23075
23076         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
23077
23078 2000-01-31  Jim Meyering  <meyering@lucent.com>
23079
23080         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
23081         functions.  Add the time.h and sys/time.h headers along with the
23082         AC_REQUIRE'ment of AC_HEADER_TIME.
23083
23084 2000-01-31  Jim Meyering  <meyering@lucent.com>
23085
23086         * lib/nanosleep.h (nanosleep): Guard declaration with
23087         `#if ! HAVE_DECL_NANOSLEEP'.
23088         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
23089         the declaration in that vendor's sys/timers.h.
23090         Reported by Christian Krackowizer.
23091
23092         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
23093         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
23094         (ISPRINT): Likewise.
23095         Reported by Tom Tromey.
23096
23097 2000-01-30  Jim Meyering  <meyering@lucent.com>
23098
23099         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
23100
23101         * m4/prereq.m4 (utmp_includes): Define.
23102         Check for ut_user and ut_name members in both struct utmpx
23103         and struct utmp.
23104
23105 2000-01-30  Jim Meyering  <meyering@lucent.com>
23106
23107         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
23108         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
23109         header files where only utmpx.ut_user is declared.
23110
23111         * lib/readutmp.h (UT_USER): Define.
23112
23113 2000-01-29  Jim Meyering  <meyering@lucent.com>
23114
23115         * m4/lib-check.m4: New file containing library-related checks from
23116         fileutils and sh-utils (textutils had none).
23117
23118 2000-01-28  Jim Meyering  <meyering@lucent.com>
23119
23120         * m4/perl.m4: Change format of warning message to look more like that
23121         from the missing script.  Suggestion from François Pinard.
23122
23123 2000-01-25  Jim Meyering  <meyering@lucent.com>
23124
23125         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
23126         well as time.h in the compile check.
23127         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
23128         Fix typo in cross-compiling case: s/yes/no/.
23129
23130 2000-01-23  Jim Meyering  <meyering@lucent.com>
23131
23132         * m4/jm-macros.m4: Move df-related tests here from
23133         fileutils/configure.in
23134
23135         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
23136         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
23137
23138         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
23139         s/space/ac_fsusage_space/.
23140         (jm_FILE_SYSTEM_USAGE): Take two parameters.
23141
23142         * m4/ftruncate.m4: New file (derived from part of
23143         fileutils/configure.in).
23144         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
23145         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
23146
23147         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
23148         AC_SUBST these here, rather than just in sh-util/configure.in, so
23149         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
23150         all the same.
23151         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
23152         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
23153         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
23154         (AC_SUBST(POW_LIBM)): Likewise.
23155         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
23156
23157 2000-01-23  Jim Meyering  <meyering@lucent.com>
23158
23159         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
23160         obstack.c.
23161
23162 2000-01-22  Jim Meyering  <meyering@lucent.com>
23163
23164         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
23165
23166         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
23167
23168         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
23169         configure.in
23170         (AC_CHECK_HEADERS): Likewise for sh-utils.
23171         (AC_CHECK_HEADERS): Likewise for textutils.
23172         Merge the three lists of headers.
23173
23174         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
23175         from fileutils' configure.in.
23176
23177         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
23178         code. Moved tests into their own function (_jm_DECL_HEADERS) in
23179         check-decl.m4.
23180
23181         * m4/check-decl.m4: Use #if rather than #ifdef.
23182         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
23183         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
23184         (_jm_DECL_HEADERS): Define new function.
23185         (jm_CHECK_DECLARATIONS): Require it.
23186
23187 2000-01-22  Jim Meyering  <meyering@lucent.com>
23188
23189         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
23190         [! HAVE_DECL_STRTOULL]: Declare strtoull.
23191         Required for some AIX systems.  Reported by Christian Krackowizer.
23192         [TESTING] (main): New function.
23193
23194         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
23195         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
23196         letters.
23197
23198         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
23199         iswprint.
23200
23201         * lib/strverscmp.c (ISDIGIT): Define.
23202         (strverscmp): Use ISDIGIT, not isdigit.
23203
23204 2000-01-19  Jim Meyering  <meyering@lucent.com>
23205
23206         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
23207         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
23208         defines `struct timespec' in <sys/time.h>
23209
23210         * m4/c-bs-a.m4: Remove uses of changequote altogether.
23211         Thanks to Akim for explaining.
23212
23213 2000-01-17  Paul Eggert  <eggert@twinsun.com>
23214
23215         * lib/nanosleep.c (nanosleep):
23216         Don't use SA_INTERRUPT to decide whether to call sigaction, as
23217         POSIX.1 doesn't require SA_INTERRUPT and some systems
23218         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
23219         it's been part of POSIX.1 since day 1 (in 1988).
23220
23221 2000-01-17  Jim Meyering  <meyering@lucent.com>
23222
23223         * lib/interlock: Remove unused file.  Reported by François Pinard.
23224
23225 2000-01-16  Paul Eggert  <eggert@twinsun.com>
23226
23227         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
23228         alert, backslash, formfeed, and vertical tab unnecessarily in
23229         shell quoting style.
23230
23231 2000-01-16  Jim Meyering  <meyering@lucent.com>
23232
23233         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
23234         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
23235         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
23236         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
23237
23238 2000-01-16  Jim Meyering  <meyering@lucent.com>
23239
23240         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
23241         because the latter didn't work.
23242
23243 2000-01-15  Jim Meyering  <meyering@lucent.com>
23244
23245         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
23246         (AC_REPLACE_FUNCS): Add memcpy and memset.
23247         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
23248         Add strpbrk.
23249         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
23250
23251 2000-01-12  Jim Meyering  <meyering@lucent.com>
23252
23253         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
23254         (jm_PREREQ): Use it.
23255         (jm_PREREQ_READUTMP): New macro.
23256         (jm_PREREQ): Use it.
23257
23258 2000-01-11  Paul Eggert  <eggert@twinsun.com>
23259
23260         Quote multibyte characters correctly.
23261         * m4/c-bs-a.m4: New file.
23262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
23263         (jm_PREREQ): Use it.
23264
23265 2000-01-11  Paul Eggert  <eggert@twinsun.com>
23266
23267         * m4/uintmax_t.m4: Port to autoconf 2.13.
23268
23269 2000-01-08  Jim Meyering  <meyering@ascend.com>
23270
23271         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
23272         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
23273
23274 2000-01-04  Jim Meyering  <meyering@ascend.com>
23275
23276         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
23277         jm_STRUCT_DIRENT_D_TYPE.
23278         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
23279         jm_STRUCT_DIRENT_D_INO.
23280         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
23281         jm_STRUCT_UTIMBUF.
23282         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
23283         renamings.
23284         * m4/utime.m4: Likewise.
23285
23286         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
23287         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
23288
23289 2000-01-03  Paul Eggert  <eggert@twinsun.com>
23290
23291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
23292         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
23293
23294 2000-01-02  Jim Meyering  <meyering@ascend.com>
23295
23296         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
23297         remember if this is necessary.
23298
23299 1999-12-26  Jim Meyering  <meyering@ascend.com>
23300
23301         * m4/jm-macros.m4: Use it here.
23302         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
23303
23304 1999-12-23  Jim Meyering  <meyering@ascend.com>
23305
23306         * m4/jm-macros.m4: Check for clock_gettime (moved from
23307         fileutils/configure.in)
23308         Check for gettimeofday.
23309
23310 1999-12-20  Jim Meyering  <meyering@ascend.com>
23311
23312         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
23313         autoconf-2.14a-1999-12-20.
23314
23315 1999-12-19  Jim Meyering  <meyering@ascend.com>
23316
23317         * m4/lstat-slash.m4: New file.
23318         * m4/jm-macros.m4: Use the new macro:
23319         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23320
23321 1999-12-07  Jim Meyering  <meyering@ascend.com>
23322
23323         * m4/perl.m4: Require that File::Compare be available, too.
23324         Too many systems seem to lack it.
23325
23326         * m4/strftime.m4: Add checks for most of the cpp macros tested in
23327         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
23328
23329 1999-11-18  Paul Eggert  <eggert@twinsun.com>
23330
23331         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
23332         problem with the QNX 4.25 shell, which doesn't propagate exit
23333         status of failed commands inside shell assignments.
23334
23335 1999-11-17  Jim Meyering  <meyering@ascend.com>
23336
23337         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
23338
23339 1999-11-07  Jim Meyering  <meyering@ascend.com>
23340
23341         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
23342
23343 1999-11-06  Jim Meyering  <meyering@ascend.com>
23344
23345         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
23346         * m4/jm-macros.m4 (jm_MACROS): Use it here.
23347
23348 1999-11-05  Jim Meyering  <meyering@ascend.com>
23349
23350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
23351         configure.in of textutils, fileutils, and sh-utils into this one
23352         (shared between those packages) file.
23353         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
23354         AC_STRUCT_ST_BLKSIZE.
23355
23356 1999-11-03  Jim Meyering  <meyering@ascend.com>
23357
23358         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
23359         of AC_CHECK_TYPE checks includes unistd.h.
23360         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
23361         Suggestion from Akim Demaille.
23362
23363 1999-10-30  Jim Meyering  <meyering@ascend.com>
23364
23365         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
23366         m4-quoted string.
23367         * m4/ls-mntd-fs.m4: Likewise.
23368         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
23369         * m4/jm-winsz1.m4: Likewise.
23370
23371         * m4/const.m4: Remove file, since the fix made it into the experimental
23372         version of autoconf.
23373         * m4/mktime.m4: Likewise.
23374
23375         * m4/check-type.m4: Remove file, now that the latest version of
23376         AC_CHECK_TYPE takes a third arg to specify additional #includes.
23377
23378         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
23379         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
23380         AC_CHECK_TYPE.
23381
23382 1999-10-04  Jim Meyering  <meyering@ascend.com>
23383
23384         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
23385
23386 1999-09-22  Paul Eggert  <eggert@twinsun.com>
23387
23388         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
23389         2.95.1 bug with HP-UX 10.20.
23390
23391 1999-09-17  Jim Meyering  <meyering@ascend.com>
23392
23393         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
23394         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
23395         due to missing strdup (against sh-utils-2.0).
23396
23397 1999-08-29  Jim Meyering  <meyering@ascend.com>
23398
23399         * m4/jm-macros.m4: Require jm_BISON.
23400         * m4/bison.m4: New file.
23401
23402 1999-08-17  Paul Eggert  <eggert@twinsun.com>
23403
23404         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
23405         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
23406
23407 1999-08-05  Jim Meyering  <meyering@ascend.com>
23408
23409         * m4/getline.m4: Rename test file from conftestdata to conftest.data
23410         to avoid conflicts with `conftest' on 8+3 filesystems.
23411         Suggestion from Eli Zaretskii.
23412
23413 1999-08-04  Jim Meyering  <meyering@ascend.com>
23414
23415         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
23416         fileutils and sh-utils (textutils's getline test was inadequate).
23417         (AM_FUNC_GETLINE): Run this test.
23418         (AC_CHECK_FUNCS): Check for getdelim.
23419         Reported by Bob Proulx.
23420
23421 1999-08-02  Jim Meyering  <meyering@ascend.com>
23422
23423         * m4/jm-macros.m4: Add a comment.
23424
23425 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23426
23427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
23428         <inttypes.h> defines strtoumax as a macro (and not as a
23429         function).
23430
23431 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23432
23433         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
23434         that we can shift, multiply and divide unsigned long long
23435         values; Ultrix cc can't do it.
23436
23437 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23438
23439         * m4/mktime.m4: New file, which is a preview of what should appear
23440         in the next public autoconf release.
23441
23442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23443
23444         * m4/lfs.m4: Remove this file.
23445         * m4/largefile.m4: New file.  It contains the old contents of
23446         lfs.m4, except that all names with prefix AC_LFS have been
23447         changed to use the prefix AC_SYS_LARGEFILE instead, to be
23448         compatible with future autoconf versions.  Also, some minor m4
23449         quoting problems have been fixed.
23450
23451 1999-08-01  Paul Eggert  <eggert@twinsun.com>
23452
23453         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
23454         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
23455         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
23456         and simplify the shell code.
23457
23458 1999-08-01  Jim Meyering  <meyering@ascend.com>
23459
23460         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
23461         m4.
23462
23463 1999-07-20  Jim Meyering  <meyering@ascend.com>
23464
23465         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
23466
23467 1999-07-15  Jim Meyering  <meyering@ascend.com>
23468
23469         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
23470
23471 1999-05-22  Jim Meyering  <meyering@ascend.com>
23472
23473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
23474
23475 1999-05-20  Jim Meyering  <meyering@ascend.com>
23476
23477         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
23478         Add a colon after each `then' in case $4 is empty.
23479
23480 1999-05-16  Jim Meyering  <meyering@ascend.com>
23481
23482         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
23483
23484 1999-05-10  Jim Meyering  <meyering@ascend.com>
23485
23486         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
23487
23488         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
23489         AC_FUNC_MKTIME.
23490
23491 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
23492
23493         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
23494
23495 1999-05-04  Paul Eggert  <eggert@twinsun.com>
23496
23497         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
23498         not CPPFLAGS, so that linking works correctly in IRIX.
23499
23500 1999-04-30  Paul Eggert  <eggert@twinsun.com>
23501
23502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
23503
23504 1999-04-20  Paul Eggert  <eggert@twinsun.com>
23505
23506         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
23507         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
23508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
23509         jm_AC_TYPE_UNSIGNED_LONG_LONG.
23510         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
23511
23512         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
23513
23514 1999-04-20  Jim Meyering  <meyering@ascend.com>
23515
23516         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
23517         AC_REPLACE xstroull if necessary.  From Paul Eggert.
23518         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
23519
23520 1999-04-18  Jim Meyering  <meyering@ascend.com>
23521
23522         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
23523         * m4/jm-macros.m4: Use it.
23524
23525 1999-04-06  Jim Meyering  <meyering@ascend.com>
23526
23527         * m4/strftime.m4: Remove test for %f.
23528
23529 1999-03-29  Jim Meyering  <meyering@ascend.com>
23530
23531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
23532         superset of the AC_TYPE_* checks in the textutils, fileutils,
23533         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
23534         AC_TYPE_PID_T.
23535
23536 1999-03-28  Jim Meyering  <meyering@ascend.com>
23537
23538         * m4/jm-macros.m4: Define GNU_PACKAGE here.
23539         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
23540         replaced e.g., in the *.sh files of the sh-utils.
23541
23542 1999-03-20  Jim Meyering  <meyering@ascend.com>
23543
23544         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
23545         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
23546         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
23547
23548 1999-03-19  Jim Meyering  <meyering@ascend.com>
23549
23550         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
23551
23552 1999-03-12  Jim Meyering  <meyering@ascend.com>
23553
23554         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
23555
23556 1999-03-07  Jim Meyering  <meyering@ascend.com>
23557
23558         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
23559         declared.
23560
23561 1999-02-17  Jim Meyering  <meyering@ascend.com>
23562
23563         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
23564         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
23565
23566 1999-02-07  Jim Meyering  <meyering@ascend.com>
23567
23568         * m4/group-member.m4: New file -- extracted from sh-utils'
23569         configure.in.
23570
23571         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
23572         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
23573
23574 1999-02-06  Jim Meyering  <meyering@ascend.com>
23575
23576         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
23577         * m4/fnmatch.m4: Likewise.
23578         * m4/getgroups.m4: Likewise.
23579         * m4/lstat.m4: Likewise.
23580         * m4/malloc.m4: Likewise.
23581         * m4/putenv.m4: Likewise.
23582         * m4/realloc.m4: Likewise.
23583         * m4/regex.m4: Likewise.
23584         * m4/stat.m4: Likewise.
23585         * m4/strftime.m4: Likewise.
23586         Suggestion from Alain Magloire.
23587
23588         * m4/chown.m4: Use `.$ac_objext', not `.o'.
23589         * m4/fnmatch.m4: Likewise.
23590         * m4/getgroups.m4: Likewise.
23591         * m4/getline.m4: Likewise.
23592         * m4/lstat.m4: Likewise.
23593         * m4/malloc.m4: Likewise.
23594         * m4/memcmp.m4: Likewise.
23595         * m4/putenv.m4: Likewise.
23596         * m4/realloc.m4: Likewise.
23597         * m4/regex.m4: Likewise.
23598         * m4/stat.m4: Likewise.
23599         * m4/strftime.m4: Likewise.
23600         Suggestion from Alain Magloire.
23601
23602         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
23603         an argument.
23604
23605         * m4/regex.m4: Add a run-time Test for proper operation of
23606         re_compile_pattern.
23607
23608 1999-01-31  Jim Meyering  <meyering@ascend.com>
23609
23610         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
23611
23612 1999-01-30  Jim Meyering  <meyering@ascend.com>
23613
23614         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
23615
23616         * m4/jm-mktime.m4: Make this a wrapper around the official
23617         AM_FUNC_MKTIME rather than my private copy, now that the official one
23618         is up to date.
23619         * m4/mktime.m4: Remove file.
23620
23621         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
23622         * m4/uptime.m4: Likewise.
23623         * m4/uintmax_t.m4: Likewise.
23624
23625 1999-01-28  Jim Meyering  <meyering@ascend.com>
23626
23627         * m4/jm-macros.m4: Use jm_AFS.
23628         * m4/afs.m4: New file (from fileutils' configure.in).
23629
23630         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
23631         * m4/chown.m4: Likewise.
23632         * m4/d-ino.m4: Likewise.
23633         * m4/d-type.m4: Likewise.
23634         * m4/fnmatch.m4: Likewise.
23635         * m4/getgroups.m4: Likewise.
23636         * m4/gettext.m4: Likewise.
23637         * m4/jm-mktime.m4: Likewise.
23638         * m4/jm-winsz2.m4: Likewise.
23639         * m4/lcmessage.m4: Likewise.
23640         * m4/ls-mntd-fs.m4: Likewise.
23641         * m4/malloc.m4: Likewise.
23642         * m4/memcmp.m4: Likewise.
23643         * m4/putenv.m4: Likewise.
23644         * m4/realloc.m4: Likewise.
23645         * m4/st_mtim.m4: Likewise.
23646         * m4/strftime.m4: Likewise.
23647
23648 1999-01-16  Jim Meyering  <meyering@ascend.com>
23649
23650         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
23651         (ARGMATCH_DIE_DECL): Define.
23652
23653 1999-01-12  Jim Meyering  <meyering@ascend.com>
23654
23655         * m4/Makefile.am.in: Rewrite to avoid using fmt.
23656         Reported by Lars Hecking.
23657
23658 1999-01-10  Jim Meyering  <meyering@ascend.com>
23659
23660         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
23661         gross kludge.
23662         * m4/inttypes_h.m4: Likewise.
23663         * m4/lstat.m4: Likewise.
23664         * m4/malloc.m4: Likewise.
23665         * m4/readdir.m4: Likewise.
23666         * m4/realloc.m4: Likewise.
23667         * m4/st_dm_mode.m4: Likewise.
23668         * m4/stat.m4: Likewise.
23669         * m4/utimbuf.m4: Likewise.
23670         * m4/utimes.m4: Likewise.
23671
23672         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
23673         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
23674         comments in config.h.in are meaningful.
23675
23676         * m4/jm-macros.m4: Require autoconf-2.13 here.
23677
23678         * m4/regex.m4: By default, don't use the included regex.c on systems
23679         with glibc 2.  Suggestion from Uli Drepper.
23680
23681 1999-01-02  Jim Meyering  <meyering@ascend.com>
23682
23683         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
23684
23685 1998-12-18  Jim Meyering  <meyering@ascend.com>
23686
23687         * m4/Makefile.am.in (Makefile.am): Simplify rule.
23688         Based on a suggestion from Lars Hecking.
23689
23690 1998-11-16  Paul Eggert  <eggert@twinsun.com>
23691
23692         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
23693
23694 1998-11-16  Jim Meyering  <meyering@ascend.com>
23695
23696         * m4/lfs.m4: Double-quote the `uname...` expression.
23697
23698 1998-11-14  Jim Meyering  <meyering@ascend.com>
23699
23700         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
23701         * m4/stat.m4: Likewise.
23702
23703 1998-11-03  Jim Meyering  <meyering@ascend.com>
23704
23705         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
23706         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
23707
23708 1998-10-18  Jim Meyering  <meyering@ascend.com>
23709
23710         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
23711
23712 1998-10-17  Jim Meyering  <meyering@ascend.com>
23713
23714         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
23715         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
23716         calls for those previously hard-coded headers.  Instead, take a new
23717         parameter.
23718         (jm_CHECK_DECLARATIONS): Reflect interface change.
23719         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
23720         (jm_CHECK_DECL_LOCALTIME_R): New macro.
23721
23722         * m4/mktime.m4: Test for spring-forward gap before long-running test.
23723
23724 1998-10-14  Jim Meyering  <meyering@ascend.com>
23725
23726         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
23727         instead of "TZ=America/Vancouver".  From Paul Eggert.
23728
23729 1998-10-11  Jim Meyering  <meyering@ascend.com>
23730
23731         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
23732         This adds a test for a recently added compatibility fix for mktime.c.
23733         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
23734
23735 1998-09-27  Jim Meyering  <meyering@ascend.com>
23736
23737         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
23738
23739         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
23740         ../configure.in, including a change from Gordon Matzigkeit to allow
23741         cross-compiling for the Hurd.
23742
23743         * m4/glibc.m4: New file/macro to test for the GNU C Library
23744         versions 1 and 2.  From Gordon Matzigkeit.
23745         Indent.
23746
23747 1998-09-21  Jim Meyering  <meyering@ascend.com>
23748
23749         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
23750
23751 1998-08-18  Paul Eggert  <eggert@twinsun.com>
23752
23753         Port nanosecond-resolution times to UnixWare 2.1.2 and
23754         pedantic Solaris 2.6.
23755
23756         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
23757         AC_STRUCT_ST_MTIM.
23758         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
23759         Generate name of ns member, instead of just 1 or undef.
23760         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
23761
23762 1998-08-15  Jim Meyering  <meyering@ascend.com>
23763
23764         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
23765         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
23766         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
23767         instead of jm_TYPE_SSIZE_T.
23768
23769 1998-08-12  Jim Meyering  <meyering@ascend.com>
23770
23771         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
23772
23773 1998-08-02  Jim Meyering  <meyering@ascend.com>
23774
23775         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
23776         in acconfig.h manually.
23777
23778 1998-07-31  Paul Eggert  <eggert@twinsun.com>
23779
23780         * m4/st_mtim.m4: New file.
23781
23782 1998-07-28  Jim Meyering  <meyering@ascend.com>
23783
23784         * m4/utimes.m4: Undef stat.
23785
23786 1998-07-25  Jim Meyering  <meyering@ascend.com>
23787
23788         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
23789         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
23790
23791 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
23792
23793         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
23794         uid and gid actually remain unchanged.
23795
23796 1998-07-07  Jim Meyering  <meyering@ascend.com>
23797
23798         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
23799
23800 1998-07-04  Jim Meyering  <meyering@ascend.com>
23801
23802         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
23803         to prove that this macro can be used in packages without regex.c.
23804
23805 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
23806
23807         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
23808         is to be used.
23809
23810 1998-07-03  Jim Meyering  <meyering@ascend.com>
23811
23812         * m4/gettext.m4: Add -lintl if it's found to be necessary.
23813
23814         * m4/gettext.m4: New file -- from gettext-0.10.35.
23815         * m4/lcmessage.m4: Likewise.
23816         * m4/progtest.m4: Likewise.
23817
23818         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
23819         * m4/jm-macros.m4: Require the new macro.
23820
23821 1998-06-29  Jim Meyering  <meyering@ascend.com>
23822
23823         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
23824         for the definition of NGROUPS (used in a system header included
23825         by sys/mount.h).
23826
23827 1998-06-28  Jim Meyering  <meyering@ascend.com>
23828
23829         * m4/ls-mntd-fs.m4: New file.
23830         * m4/fstypename.m4: New file.
23831
23832         * m4/jm-macros.m4: Require the new macro.
23833         * m4/jm-glibc-io.m4: New file.
23834
23835 1998-05-19  Jim Meyering  <meyering@ascend.com>
23836
23837         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
23838         * m4/lchown.m4: New file.
23839
23840         * m4/Makefile.am.in: New file.
23841         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
23842
23843 1998-05-14  Jim Meyering  <meyering@ascend.com>
23844
23845         * m4/Makefile.am (EXTRA_DIST): Add them.
23846         * m4/jm-macros.m4: New file.
23847         * m4/utimbuf.m4: New file.
23848
23849 1998-05-12  Jim Meyering  <meyering@ascend.com>
23850
23851         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
23852
23853 1998-05-11  Jim Meyering  <meyering@ascend.com>
23854
23855         * m4/isc-posix.m4: New file.
23856
23857 1998-05-10  Jim Meyering  <meyering@ascend.com>
23858
23859         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
23860
23861 1998-05-09  Jim Meyering  <meyering@ascend.com>
23862
23863         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
23864         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
23865         with automake.
23866
23867         * m4/ssize_t.m4: New file.
23868         * m4/mktime.m4: Remove file -- the new automake has this now.
23869
23870 1998-04-26  Jim Meyering  <meyering@ascend.com>
23871
23872         * m4/assert.m4: New file.
23873         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
23874
23875 1998-04-05  Jim Meyering  <meyering@ascend.com>
23876
23877         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
23878         (jm_PREREQ): Use it here.
23879
23880 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
23881
23882         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
23883         in acconfig.h.
23884
23885 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
23886
23887         * m4/prereq.m4: New file.
23888         * m4/error.m4: New file.
23889         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
23890
23891 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
23892
23893         * m4/getline.m4: Don't set am_cv_func_working_getline before the
23894         cache-check for the same variable -- that defeated the purpose of
23895         the test; the test program was never run.  This was a problem only
23896         on systems with losing getline functions -- HP-UX 10.20 is one.
23897         Reported by Bjorn Helgaas.
23898
23899 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
23900
23901         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
23902
23903 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
23904
23905         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
23906
23907         * m4/const.m4: New file.  Use an initializer in this declaration
23908         typedef int charset[2]; const charset x;
23909         Reported by Bob Glickstein.
23910
23911 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
23912
23913         * m4/chown.m4: Fix reversed types on -1 args to chown.
23914         From Kaveh Ghazi.
23915
23916 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
23917
23918         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
23919         Add lseek and memchr.
23920
23921         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
23922         T.E.Dickey <dickey@clark.net> said that some older preprocessors
23923         have a 20-character limit on names.
23924
23925 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
23926
23927         * m4/inttypes_h.m4: New file.
23928         * m4/uintmax_t.m4: New file.
23929         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
23930
23931 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
23932   Free Software Foundation, Inc.
23933 Copying and distribution of this file, with or without modification,
23934 are permitted provided the copyright notice and this notice are preserved.