Test of fuzzy string matching.
[gnulib.git] / ChangeLog
1 2007-08-18  Bruno Haible  <bruno@clisp.org>
2
3         * modules/fstrcmp-tests: New file.
4         * tests/test-fstrcmp.c: New file.
5
6 2007-08-18  Bruno Haible  <bruno@clisp.org>
7
8         * modules/fstrcmp: New file, from GNU gettext with modifications.
9         * lib/fstrcmp.h: New file, from GNU gettext.
10         * lib/fstrcmp.c: New file, from GNU gettext.
11         * MODULES.html.sh (String handling): Add fstrcmp.
12
13 2007-08-18  Bruno Haible  <bruno@clisp.org>
14
15         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
16         'bool'.
17         (diag, compareseq): Remove const from the ctxt argument.
18         (USE_HEURISTIC): Undefine at the end.
19
20 2007-08-18  Jim Meyering  <jim@meyering.net>
21
22         New file: lib/idcache.h
23         * NEWS: Mention the addition.
24         * modules/idcache (Files): Add lib/idcache.h
25         * lib/idcache.c: Include "idcache.h".
26         Don't include <sys/types.h>.
27         Add a FIXME comment.
28         Move file-scoped "static" declarations to the top.
29         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
30
31 2007-08-17  Bruno Haible  <bruno@clisp.org>
32         and Paul Eggert  <eggert@cs.ucla.edu>
33
34         * MODULES.html.sh: Add diffseq.
35         * modules/diffseq: New file.
36         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
38
39 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40
41         Import changes from coreutils for bootstrap script.
42
43         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
44
45         * build-aux/bootstrap (slurp): Work even in environments where
46         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47         current code does not slurp files whose names start with ".", and
48         this looks like it might be a troublesome area.
49
50         2007-07-11  Jim Meyering  <jim@meyering.net>
51
52         If there's a GPL vN copyright comment, require that N == 3.
53
54         2007-07-08  Jim Meyering  <jim@meyering.net>
55
56         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57         * build-aux/bootstrap (mam_template): Move definition out of loop.
58
59         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
60
61         * build-aux/bootstrap (symlink_to_dir): Rename function from
62         symlink_to_gnulib.  Add a directory parameter.  Update all
63         callers.
64         (cp_mark_as_generated): Also check for -- and link to -- files in
65         gl/.
66
67         2007-07-08  Jim Meyering  <jim@meyering.net>
68
69         Adapt to deeper hierarchy in gnulib.
70         * build-aux/bootstrap (symlink_to_dir): If the destination
71         directory doesn't exist, create it. This is required at least for
72         "lib/uniwidth/cjk.h".
73
74         2007-05-15  Jim Meyering  <jim@meyering.net>
75
76         * build-aux/bootstrap: Now that generated Makefile.am files
77         are no longer under version control, they must be created at
78         bootstrap time.
79
80 2007-08-14  Ben Pfaff  <blp@gnu.org>
81
82         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
83
84 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
85
86         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
87         given the changes below.
88         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
89         even on hosts that have padding bits beyond the supported 64.
90
91 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
92
93         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
94         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
95         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
96         depends on it.
97         (xstrtol_error): Remove.
98         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
99         but with a different signature.
100         (ATTRIBUTE_NORETURN, __attribute__): New macros.
101         * lib/xstrtol-error.c: Include exitfail.h.
102         (xstrtol_fatal): New function, with a different signature from the
103         old xstrtol_error, so that the caller need not worry about passing
104         in an exit status, or about storage management of the option argument.
105         (xstrtol_error): Now a static function.  Redo signature to
106         implement xstrtol_fatal.  Output the correct number of hyphens in
107         front of the option so that the caller need not worry about
108         storage management.
109         (N_): New macro.
110         (_): Remove; not used now.
111         * modules/xstrtol: Depend on getopt.
112         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
113         of old STRTOL_FATAL_ERROR macro.
114         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
115         of test program.
116         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
117         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
118
119 2007-08-08  Eric Blake  <ebb9@byu.net>
120
121         * lib/xstrtol-error.c: Add missing include.
122
123         Move xstrtol messages into gnulib domain, when --pobase is used.
124         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
125         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
126         * modules/xstrtol (Files): Distribute new file.
127         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
128         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
129         * tests/test-xstrtol.c: ...into new file.
130         * tests/test-xstrtoul.c: Also test xstrtoul.
131         * tests/test-xstrtoimax.c: Also test xstrtoimax.
132         * tests/test-xstrtoumax.c: Also test xstrtoumax.
133         * tests/test-xstrtol.sh: Drive the tests.
134         * tests/test-xstrtoimax.sh: Likewise.
135         * tests/test-xstrtoumax.sh: Likewise.
136         * modules/xstrtol-tests: New module.
137         * modules/xstrtoimax-tests: Likewise.
138         * modules/xstrtoumax-tests: Likewise.
139
140 2007-08-08  Jim Meyering  <jim@meyering.net>
141
142         New function: mfile_name_concat.
143         * lib/filenamecat.c (mfile_name_concat): New function, just like
144         file_name_concat, but return NULL upon failure rather than exiting
145         with a diagnostic.
146         * lib/filenamecat.h: Declare it.
147
148 2007-08-07  Bruno Haible  <bruno@clisp.org>
149
150         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
151         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
152         warning from gcc.
153         Reported by Eric Blake.
154
155 2007-08-07  Simon Josefsson  <simon@josefsson.org>
156
157         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
158         * modules/crypto/arcfour (License): Likewise.
159         * modules/crypto/des-tests (License): Likewise.
160         * modules/crypto/gc-arctwo-tests (License): Likewise.
161         * modules/crypto/gc-des-tests (License): Likewise.
162         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
163         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
164         * modules/crypto/gc-md2-tests (License): Likewise.
165         * modules/crypto/gc-md4-tests (License): Likewise.
166         * modules/crypto/gc-md5-tests (License): Likewise.
167         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
168         * modules/crypto/gc-rijndael-tests (License): Likewise.
169         * modules/crypto/gc-sha1-tests (License): Likewise.
170         * modules/crypto/gc-tests (License): Likewise.
171         * modules/crypto/hmac-md5 (License): Likewise.
172         * modules/crypto/hmac-sha1 (License): Likewise.
173         * modules/crypto/md2-tests (License): Likewise.
174         * modules/crypto/md4-tests (License): Likewise.
175         * modules/crypto/md5 (License): Likewise.
176         * modules/crypto/rijndael (License): Likewise.
177         * modules/crypto/sha1 (License): Likewise.
178         * modules/memxor (License): Likewise.
179
180 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
181         and Bruno Haible  <bruno@clisp.org>
182
183         * NEWS: Describe interface changes to human, xstrtol.
184         * lib/human.h: Include <xstrtol.h>.
185         (human_options): Return enum strtol_error, not int.  Remove
186         bool arg; take int * instead.
187         * lib/human.c: Don't include "gettext.h".
188         (_): Remove; no longer used.
189         Don't include <xstrtol.h>, since human.h does it.
190         (human_options): Adjust to abovementioned interface changes.
191         Do not report error to stderr; that's now the caller's
192         responsibility.
193         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
194         interface change.
195         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
196         Str, Argument_type_string.  All uses changed.  Put " argument"
197         in diagnostics to make them clearer.  Change wording of suffix
198         message for clarity.
199         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
200         Argument_type_string.
201         (STRTOL_FATAL_WARN): Remove; no longer used.
202         * modules/human (Depends-on): Remove gettext-h.
203
204 2007-08-06  Simon Josefsson  <simon@josefsson.org>
205
206         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
207
208 2007-07-31  Bruno Haible  <bruno@clisp.org>
209
210         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
211         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
212         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
213
214 2007-07-31  Bruno Haible  <bruno@clisp.org>
215
216         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
217         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
218
219 2007-07-30  Bruno Haible  <bruno@clisp.org>
220
221         * modules/base64 (License): Use the synonymous term "LGPLv2+".
222         * modules/c-ctype (License): Likewise.
223         * modules/c-strcase (License): Likewise.
224         * modules/check-version (License): Likewise.
225         * modules/iconv (License): Likewise.
226         * modules/iconv_open (License): Likewise.
227         * modules/read-file (License): Likewise.
228         * modules/striconv (License): Likewise.
229         * modules/strverscmp (License): Likewise.
230         * modules/vasprintf (License): Likewise.
231         * modules/crypto/des (License): Likewise.
232         * modules/crypto/gc (License): Likewise.
233         * modules/crypto/gc-arcfour (License): Likewise.
234         * modules/crypto/gc-arctwo (License): Likewise.
235         * modules/crypto/gc-des (License): Likewise.
236         * modules/crypto/gc-hmac-md5 (License): Likewise.
237         * modules/crypto/gc-hmac-sha1 (License): Likewise.
238         * modules/crypto/gc-md2 (License): Likewise.
239         * modules/crypto/gc-md4 (License): Likewise.
240         * modules/crypto/gc-md5 (License): Likewise.
241         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
242         * modules/crypto/gc-random (License): Likewise.
243         * modules/crypto/gc-rijndael (License): Likewise.
244         * modules/crypto/gc-sha1 (License): Likewise.
245         * modules/crypto/md2 (License): Likewise.
246         * modules/crypto/md4 (License): Likewise.
247
248 2007-07-30  Jim Meyering  <jim@meyering.net>
249
250         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
251         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
252         it has valid stat data.  This bug would cause du not to count the
253         sizes of inaccessible directories.
254         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
255         in <http://bugzilla.redhat.com/250077>.
256
257 2007-07-25  Peter O'Gorman  <peter@pogma.com>
258             Bruno Haible  <bruno@clisp.org>
259
260         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
261         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
262         #include_next, gives a diagnostic about it, but reports no error in
263         the exit code.
264         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
265
266 2007-07-24  Ben Pfaff  <blp@gnu.org>
267
268         Improve name: "count-one-bits" is better than "popcount".
269         * MODULES.html.sh: Update name.
270         * lib/popcount.h: Renamed lib/count-one-bits.h.
271         (popcount): Renamed count_one_bits.
272         (popcountl): Renamed count_one_bits_l.
273         (popcountll): Renamed count_one_bits_ll.
274         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
275         * modules/popcount: Renamed module/count-one-bits.
276         * modules/popcount-tests: Renamed module/count-one-bits-tests.
277         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
278
279 2007-07-23  Ben Pfaff  <blp@gnu.org>
280
281         * lib/popcount.h (popcount32): Reduce size of constants, to allow
282         better code generation, and add U to large constants to avoid
283         warnings, in non-GCC case.
284         Suggested by Bruno Haible.
285
286 2007-07-23  Ben Pfaff  <blp@gnu.org>
287
288         * lib/popcount.h: Use verify_true instead of if...abort.
289         * modules/popcount: Depend on verify module.
290         Suggested by Jim Meyering.
291
292 2007-07-23  Bruno Haible  <bruno@clisp.org>
293
294         * gnulib-tool (func_import): Create a .cvsignore file also when the
295         directory is not yet in CVS but the toplevel directory is. When
296         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
297         Reported by Karl Berry.
298
299 2007-07-22  Ben Pfaff  <blp@gnu.org>
300
301         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
302         case.
303         Suggested by Eric Blake.
304
305 2007-07-22  Ben Pfaff  <blp@gnu.org>
306
307         New module: popcount.
308         * MODULES.html.sh: Add popcount.
309         * modules/popcount: New file.
310         * modules/popcount-tests: New file.
311         * tests/test-popcount.c: New file.
312         * lib/popcount.h: New file.
313         * m4/popcount.m4: New file.
314
315 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
316
317         * build-aux/announce-gen: Update to GPLv3.
318
319         * build-aux/config.guess: Update from config.
320
321 2007-07-21  Bruno Haible  <bruno@clisp.org>
322
323         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
324         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
325
326 2007-07-20  Jim Meyering  <jim@meyering.net>
327
328         * check-module: Diagnose a self-dependency.
329
330 2007-07-19  Bruno Haible  <bruno@clisp.org>
331
332         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
333         empty.
334         Reported by Eric Blake.
335
336 2007-07-18  Bruno Haible  <bruno@clisp.org>
337
338         * gnulib-tool: New options --po-base, --po-domain.
339         (func_usage): Document them.
340         (pobase, po_domain): New variables.
341         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
342         DEFAULT_TEXT_DOMAIN.
343         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
344         (func_import): Consider pobase and po_domain. Create a po/ directory.
345         (func_create_testdir): Set pobase and po_domain to empty.
346         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
347         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
348
349 2007-07-18  Bruno Haible  <bruno@clisp.org>
350
351         * gnulib-tool (func_get_automake_snippet): Synthesize also an
352         EXTRA_DIST augmentation for files in build-aux/.
353
354 2007-07-16  Bruno Haible  <bruno@clisp.org>
355
356         * modules/lseek (License): Use the synonymous term "LGPLv2+".
357         * modules/getdelim (License): Likewise.
358
359 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
360
361         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
362         * modules/d-type (License): Likewise.
363         * modules/extensions (License): Likewise.
364         * modules/fnmatch (License): Likewise.
365         * modules/fseeko (License): Likewise.
366         * modules/getaddrinfo (License): Likewise.
367         * modules/getline (License): Likewise.
368         * modules/getlogin_r (License): Likewise.
369         * modules/getpass (License): Likewise.
370         * modules/gettimeofday (License): Likewise.
371         * modules/glob (License): Likewise.
372         * modules/inet_ntop (License): Likewise.
373         * modules/malloc (License): Likewise.
374         * modules/malloca (License): Likewise.
375         * modules/memmem (License): Likewise.
376         * modules/mempcpy (License): Likewise.
377         * modules/memset (License): Likewise.
378         * modules/minmax (License): Likewise.
379         * modules/mktime (License): Likewise.
380         * modules/netinet_in (License): Likewise.
381         * modules/pathmax (License): Likewise.
382         * modules/poll (License): Likewise.
383         * modules/regex (License): Likewise.
384         * modules/snprintf (License): Likewise.
385         * modules/stdbool (License): Likewise.
386         * modules/stdint (License): Likewise.
387         * modules/stdio (License): Likewise.
388         * modules/strcase (License): Likewise.
389         * modules/strcasestr (License): Likewise.
390         * modules/strdup (License): Likewise.
391         * modules/string (License): Likewise.
392         * modules/strndup (License): Likewise.
393         * modules/strnlen (License): Likewise.
394         * modules/strpbrk (License): Likewise.
395         * modules/strptime (License): Likewise.
396         * modules/strsep (License): Likewise.
397         * modules/sys_select (License): Likewise.
398         * modules/sys_socket (License): Likewise.
399         * modules/sys_stat (License): Likewise.
400         * modules/sys_time (License): Likewise.
401         * modules/time (License): Likewise.
402         * modules/time_r (License): Likewise.
403         * modules/timegm (License): Likewise.
404         * modules/unistd (License): Likewise.
405         * modules/vsnprintf (License): Likewise.
406         * modules/wctype (License): Likewise.
407
408 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
409
410         * modules/argz (License): LGPLv2+.
411
412 2007-07-15  Karl Berry  <karl@gnu.org>
413
414         * doc/gnulib.texi: revise node structure per new fdl.texi.
415
416 2007-07-14  Bruno Haible  <bruno@clisp.org>
417
418         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
419         the output file.
420         * lib/uniname/uninames.h: Regenerated.
421
422 2007-07-14  Karl Berry  <karl@gnu.org>
423
424         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
425         omitting sectioning and index commands.
426
427 2007-07-13  Bruno Haible  <bruno@clisp.org>
428
429         New gnulib-tool option --more-symlinks.
430         * gnulib-tool (func_usage): Document --more-symlinks.
431         (do_copyrights): New variable.
432         Recognize option --more-symlinks.
433         (func_import): Don't add a copyright notice transform to
434         sed_transform_lib_file if do_copyrights is empty.
435
436 2007-07-13  Bruno Haible  <bruno@clisp.org>
437
438         * lib/vasnprintf.c (decimal_point_char): Define also if
439         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
440         && !NEED_PRINTF_DIRECTIVE_A.
441         Reported by Clemens Koller <clemens.koller@anagramm.de> via
442         Gary V. Vaughan <gary@gnu.org>.
443
444 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
445
446         * lib/inttypes_.h: Undo previous change, since it was fixed
447         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
448
449 2007-07-13  Bruno Haible  <bruno@clisp.org>
450
451         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
452         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
453
454 2007-07-13  Jim Meyering  <jim@meyering.net>
455
456         df: Don't fail for Tru64's "file-on-file mount".
457         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
458         so we fall through and use statfs instead.  Details here:
459         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
460         Reported by Albert Chin.
461
462 2007-07-13  Bruno Haible  <bruno@clisp.org>
463
464         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
465         * modules/configmake (License): Likewise.
466         * modules/gettext (License): Likewise.
467         * modules/gettext-h (License): Likewise.
468         * modules/include_next (License): Likewise.
469         * modules/link-warning (License): Likewise.
470         * modules/localcharset (License): Likewise.
471         * modules/localename (License): Likewise.
472         * modules/lock (License): Likewise.
473         * modules/relocatable-lib-lgpl (License): Likewise.
474         * modules/size_max (License): Likewise.
475         * modules/vasnprintf (License): Likewise.
476         * modules/wchar (License): Likewise.
477         * modules/xsize (License): Likewise.
478
479 2007-07-13  Bruno Haible  <bruno@clisp.org>
480
481         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
482         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
483
484 2007-07-12  Bruno Haible  <bruno@clisp.org>
485
486         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
487         in the modules files.
488
489 2007-07-11  Karl Berry  <karl@gnu.org>
490
491         * MODULES.html.sh (func_module): use
492          sed -e '\|^'"${includefile}"'$|d'
493          instead of /.../d, to avoid errors on $includefile's containing /.
494
495 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
496
497         * gnulib-tool (func_import): Avoid duplication of --avoid
498         statements
499         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
500         names to `_' in variable names.
501
502 2007-07-10  Eric Blake  <ebb9@byu.net>
503
504         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
505         * NEWS: Document this change.
506
507 2007-07-08  Bruno Haible  <bruno@clisp.org>
508
509         Update to Unicode 5.0.
510         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
511         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
512         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
513         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
514         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
515         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
516         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
517         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
518         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
519         U+10A3F, U+1D242..U+1D244.
520         (nonspacing_table_ind): Update.
521         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
522         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
523
524 2007-07-08  Bruno Haible  <bruno@clisp.org>
525
526         Update to Unicode 5.0.
527         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
528         code transform. Extend the name index field of unicode_name_to_code and
529         unicode_code_to_name from 16 to 24 bits.
530         * lib/uniname/uniname.c (unicode_character_name,
531         unicode_name_character): Add the range 0x12xxx to the code transform.
532         * lib/uniname/uninames.h: Regenerated.
533         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
534
535 2007-07-07  Bruno Haible  <bruno@clisp.org>
536
537         * modules/wcwidth-tests: New file.
538         * tests/test-wcwidth.c: New file.
539
540         Work around MacOS X wcwidth() bug.
541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
542         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
543         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
544         original wcwidth in non-UTF-8 locales.
545         * modules/wcwidth (Depends-on): Add localcharset, streq,
546         uniwidth/width.
547         * doc/functions/wcwidth.texi: Update.
548
549 2007-07-07  Bruno Haible  <bruno@clisp.org>
550
551         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
552         (wcwidth): New declaration.
553         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
554         macros.
555         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
556         here. Prepare for creating <wchar.h> unconditionally.
557         * modules/wchar (Depends-on): Add link-warning.
558         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
559         REPLACE_WCWIDTH, and GL_LINK_WARNING.
560         * lib/wcwidth.h: Remove file.
561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
562         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
563         * modules/wcwidth (Files): Remove lib/wcwidth.h.
564         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
565         (Include): Replace wcwidth.h with <wchar.h>.
566         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
567         * lib/mbchar.h: Don't include wcwidth.h.
568         * lib/mbswidth.c: Likewise.
569         * NEWS: Mention the change.
570
571 2007-07-07  Bruno Haible  <bruno@clisp.org>
572
573         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
574         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
575         definition with an external declaration.
576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
577         defined as a function. Remove AC_C_INLINE requirement.
578         * modules/wcwidth (Files): Add lib/wcwidth.c.
579         (Makefile.am): Remove redundant statement.
580
581 2007-07-07  Bruno Haible  <bruno@clisp.org>
582
583         * MODULES.html.sh (Unicode string functions): Add the new modules.
584
585         * tests/uniwidth/test-u32-strwidth.c: New file.
586         * modules/uniwidth/u32-strwidth-tests: New file.
587
588         * lib/uniwidth/u32-strwidth.c: New file.
589         * modules/uniwidth/u32-strwidth: New file.
590
591         * tests/uniwidth/test-u16-strwidth.c: New file.
592         * modules/uniwidth/u16-strwidth-tests: New file.
593
594         * lib/uniwidth/u16-strwidth.c: New file.
595         * modules/uniwidth/u16-strwidth: New file.
596
597         * tests/uniwidth/test-u8-strwidth.c: New file.
598         * modules/uniwidth/u8-strwidth-tests: New file.
599
600         * lib/uniwidth/u8-strwidth.c: New file.
601         * modules/uniwidth/u8-strwidth: New file.
602
603         * tests/uniwidth/test-u32-width.c: New file.
604         * modules/uniwidth/u32-width-tests: New file.
605
606         * lib/uniwidth/u32-width.c: New file.
607         * modules/uniwidth/u32-width: New file.
608
609         * tests/uniwidth/test-u16-width.c: New file.
610         * modules/uniwidth/u16-width-tests: New file.
611
612         * lib/uniwidth/u16-width.c: New file.
613         * modules/uniwidth/u16-width: New file.
614
615         * tests/uniwidth/test-u8-width.c: New file.
616         * modules/uniwidth/u8-width-tests: New file.
617
618         * lib/uniwidth/u8-width.c: New file.
619         * modules/uniwidth/u8-width: New file.
620
621         * tests/uniwidth/test-uc_width.c: New file.
622         * modules/uniwidth/width-tests: New file.
623
624         * lib/uniwidth/width.c: New file, from GNU libiconv.
625         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
626         * modules/uniwidth/width: New file.
627
628         * lib/uniwidth.h: New file, from GNU libiconv.
629         * modules/uniwidth/base: New file.
630
631 2007-07-07  Bruno Haible  <bruno@clisp.org>
632
633         * lib/uniname.h: New file, from GNU gettext.
634         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
635         * lib/uniname/uninames.h: New file, from GNU gettext.
636         * lib/uniname/uniname.c: New file, from GNU gettext.
637         * tests/uniname/test-uninames.sh: New file.
638         * tests/uniname/test-uninames.c: New file, from GNU gettext.
639         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
640         * modules/uniname/base: New file.
641         * modules/uniname/uniname: New file.
642         * modules/uniname/uniname-tests: New file.
643         * MODULES.html.sh (Unicode string functions): Add the new modules.
644
645 2007-07-06  Bruno Haible  <bruno@clisp.org>
646
647         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
648
649 2007-07-06  Bruno Haible  <bruno@clisp.org>
650
651         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
652         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
653         includes <cygwin/sys_time.h> which includes <sys/select.h> which
654         include <sys/time.h>.
655         Reported by Eric Blake.
656
657 2007-07-06  Eric Blake  <ebb9@byu.net>
658
659         Fix testing canonicalize on cygwin.
660         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
661         Revert patch from 2007-06-19.
662         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
663         canonicalize module is also in use.
664         * tests/test-canonicalize.c: New file.
665         * tests/test-canonicalize.sh: Likewise.
666         * modules/canonicalize-tests: Likewise.
667
668 2007-07-06  Jim Meyering  <jim@meyering.net>
669
670         * lib/getugroups.c (getugroups): Detect getgrent failure.
671         Adjust comment to reflect reality: this function may return -1.
672
673 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
674
675         * build-aux/bootstrap (TP_URL,get_translations): Update to use
676         the new TP address.
677         (usage): Fix typo
678         (gnulib_mk): New variable.
679
680 2007-07-05  Jim Meyering  <jim@meyering.net>
681
682         Don't let endgrent clobber errno, no matter how improbable.
683         * lib/getugroups.c (getugroups): Save and restore errno around
684         endgrent call.
685
686         Close the group DB even when failing with 2^31 or more members.
687         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
688
689 2007-07-04  Jim Meyering  <jim@meyering.net>
690
691         * lib/getugroups.h: New file.
692         * lib/getugroups.c: Include "getugroups.h".
693         Remove uses of "register" keyword.
694         Move local variable, "cp", down into scope where used.
695         Give "username" parameter the "const" attribute.
696         * modules/getugroups (Files): Add lib/getugroups.h
697
698 2007-07-04  Karl Berry  <karl@gnu.org>
699
700         * MODULES.html.sh (func_all_modules): Complete rename of
701         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
702
703 2007-07-02  Bruno Haible  <bruno@clisp.org>
704
705         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
706         mode, when inttypes.h comes from gnulib.
707         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
708
709 2007-07-02  Simon Josefsson  <simon@josefsson.org>
710
711         * NEWS: Mention lgpl module name change.
712
713         * modules/lgpl-2.1: Renamed from lgpl.
714
715         * NEWS: Mention gpl module name change.
716
717         * modules/gpl-3.0: New file, based on gpl-2.0.
718
719         * modules/gpl-2.0: Renamed from gpl.
720
721         * modules/gpl: Fix filename, doc/gpl.texi is now found at
722         doc/gpl-2.0.texi.
723
724 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
725
726         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
727         #define __STDC_LIMIT_MACROS temporarily while including
728         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
729         Problem reported by Joel E. Denny in
730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
731
732 2007-07-01  Bruno Haible  <bruno@clisp.org>
733
734         * lib/unistdio.h: New file.
735         * lib/unistdio/u-asnprintf.h: New file.
736         * lib/unistdio/u-asprintf.h: New file.
737         * lib/unistdio/u-printf-args.c: New file.
738         * lib/unistdio/u-printf-args.h: New file.
739         * lib/unistdio/u-printf-parse.h: New file.
740         * lib/unistdio/u-snprintf.h: New file.
741         * lib/unistdio/u-sprintf.h: New file.
742         * lib/unistdio/u-vasprintf.h: New file.
743         * lib/unistdio/u-vsnprintf.h: New file.
744         * lib/unistdio/u-vsprintf.h: New file.
745         * lib/unistdio/ulc-asnprintf.c: New file.
746         * lib/unistdio/ulc-asprintf.c: New file.
747         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
748         * lib/unistdio/ulc-printf-parse.c: New file.
749         * lib/unistdio/ulc-snprintf.c: New file.
750         * lib/unistdio/ulc-sprintf.c: New file.
751         * lib/unistdio/ulc-vasnprintf.c: New file.
752         * lib/unistdio/ulc-vasprintf.c: New file.
753         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
754         * lib/unistdio/ulc-vsnprintf.c: New file.
755         * lib/unistdio/ulc-vsprintf.c: New file.
756         * lib/unistdio/u8-asnprintf.c: New file.
757         * lib/unistdio/u8-asprintf.c: New file.
758         * lib/unistdio/u8-printf-parse.c: New file.
759         * lib/unistdio/u8-snprintf.c: New file.
760         * lib/unistdio/u8-sprintf.c: New file.
761         * lib/unistdio/u8-vasnprintf.c: New file.
762         * lib/unistdio/u8-vasprintf.c: New file.
763         * lib/unistdio/u8-vsnprintf.c: New file.
764         * lib/unistdio/u8-vsprintf.c: New file.
765         * lib/unistdio/u8-u8-asnprintf.c: New file.
766         * lib/unistdio/u8-u8-asprintf.c: New file.
767         * lib/unistdio/u8-u8-snprintf.c: New file.
768         * lib/unistdio/u8-u8-sprintf.c: New file.
769         * lib/unistdio/u8-u8-vasnprintf.c: New file.
770         * lib/unistdio/u8-u8-vasprintf.c: New file.
771         * lib/unistdio/u8-u8-vsnprintf.c: New file.
772         * lib/unistdio/u8-u8-vsprintf.c: New file.
773         * lib/unistdio/u16-asnprintf.c: New file.
774         * lib/unistdio/u16-asprintf.c: New file.
775         * lib/unistdio/u16-printf-parse.c: New file.
776         * lib/unistdio/u16-snprintf.c: New file.
777         * lib/unistdio/u16-sprintf.c: New file.
778         * lib/unistdio/u16-vasnprintf.c: New file.
779         * lib/unistdio/u16-vasprintf.c: New file.
780         * lib/unistdio/u16-vsnprintf.c: New file.
781         * lib/unistdio/u16-vsprintf.c: New file.
782         * lib/unistdio/u16-u16-asnprintf.c: New file.
783         * lib/unistdio/u16-u16-asprintf.c: New file.
784         * lib/unistdio/u16-u16-snprintf.c: New file.
785         * lib/unistdio/u16-u16-sprintf.c: New file.
786         * lib/unistdio/u16-u16-vasnprintf.c: New file.
787         * lib/unistdio/u16-u16-vasprintf.c: New file.
788         * lib/unistdio/u16-u16-vsnprintf.c: New file.
789         * lib/unistdio/u16-u16-vsprintf.c: New file.
790         * lib/unistdio/u32-asnprintf.c: New file.
791         * lib/unistdio/u32-asprintf.c: New file.
792         * lib/unistdio/u32-printf-parse.c: New file.
793         * lib/unistdio/u32-snprintf.c: New file.
794         * lib/unistdio/u32-sprintf.c: New file.
795         * lib/unistdio/u32-vasnprintf.c: New file.
796         * lib/unistdio/u32-vasprintf.c: New file.
797         * lib/unistdio/u32-vsnprintf.c: New file.
798         * lib/unistdio/u32-vsprintf.c: New file.
799         * lib/unistdio/u32-u32-asnprintf.c: New file.
800         * lib/unistdio/u32-u32-asprintf.c: New file.
801         * lib/unistdio/u32-u32-snprintf.c: New file.
802         * lib/unistdio/u32-u32-sprintf.c: New file.
803         * lib/unistdio/u32-u32-vasnprintf.c: New file.
804         * lib/unistdio/u32-u32-vasprintf.c: New file.
805         * lib/unistdio/u32-u32-vsnprintf.c: New file.
806         * lib/unistdio/u32-u32-vsprintf.c: New file.
807         * tests/unistdio/test-ulc-asnprintf1.c: New file.
808         * tests/unistdio/test-ulc-asnprintf1.h: New file.
809         * tests/unistdio/test-ulc-printf1.h: New file.
810         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
811         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
812         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
813         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
814         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
815         * tests/unistdio/test-ulc-vasprintf1.c: New file.
816         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
817         * tests/unistdio/test-ulc-vsprintf1.c: New file.
818         * tests/unistdio/test-u8-asnprintf1.c: New file.
819         * tests/unistdio/test-u8-asnprintf1.h: New file.
820         * tests/unistdio/test-u8-printf1.h: New file.
821         * tests/unistdio/test-u8-vasnprintf1.c: New file.
822         * tests/unistdio/test-u8-vasnprintf2.c: New file.
823         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
824         * tests/unistdio/test-u8-vasnprintf3.c: New file.
825         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
826         * tests/unistdio/test-u8-vasprintf1.c: New file.
827         * tests/unistdio/test-u8-vsnprintf1.c: New file.
828         * tests/unistdio/test-u8-vsprintf1.c: New file.
829         * tests/unistdio/test-u16-asnprintf1.c: New file.
830         * tests/unistdio/test-u16-asnprintf1.h: New file.
831         * tests/unistdio/test-u16-printf1.h: New file.
832         * tests/unistdio/test-u16-vasnprintf1.c: New file.
833         * tests/unistdio/test-u16-vasnprintf2.c: New file.
834         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
835         * tests/unistdio/test-u16-vasnprintf3.c: New file.
836         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
837         * tests/unistdio/test-u16-vasprintf1.c: New file.
838         * tests/unistdio/test-u16-vsnprintf1.c: New file.
839         * tests/unistdio/test-u16-vsprintf1.c: New file.
840         * tests/unistdio/test-u32-asnprintf1.c: New file.
841         * tests/unistdio/test-u32-asnprintf1.h: New file.
842         * tests/unistdio/test-u32-printf1.h: New file.
843         * tests/unistdio/test-u32-vasnprintf1.c: New file.
844         * tests/unistdio/test-u32-vasnprintf2.c: New file.
845         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
846         * tests/unistdio/test-u32-vasnprintf3.c: New file.
847         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
848         * tests/unistdio/test-u32-vasprintf1.c: New file.
849         * tests/unistdio/test-u32-vsnprintf1.c: New file.
850         * tests/unistdio/test-u32-vsprintf1.c: New file.
851         * modules/unistdio/base: New file.
852         * modules/unistdio/u-printf-args: New file.
853         * modules/unistdio/ulc-asnprintf: New file.
854         * modules/unistdio/ulc-asprintf: New file.
855         * modules/unistdio/ulc-fprintf: New file.
856         * modules/unistdio/ulc-printf-parse: New file.
857         * modules/unistdio/ulc-snprintf: New file.
858         * modules/unistdio/ulc-sprintf: New file.
859         * modules/unistdio/ulc-vasnprintf: New file.
860         * modules/unistdio/ulc-vasprintf: New file.
861         * modules/unistdio/ulc-vfprintf: New file.
862         * modules/unistdio/ulc-vsnprintf: New file.
863         * modules/unistdio/ulc-vsprintf: New file.
864         * modules/unistdio/u8-asnprintf: New file.
865         * modules/unistdio/u8-asprintf: New file.
866         * modules/unistdio/u8-printf-parse: New file.
867         * modules/unistdio/u8-snprintf: New file.
868         * modules/unistdio/u8-sprintf: New file.
869         * modules/unistdio/u8-vasnprintf: New file.
870         * modules/unistdio/u8-vasprintf: New file.
871         * modules/unistdio/u8-vsnprintf: New file.
872         * modules/unistdio/u8-vsprintf: New file.
873         * modules/unistdio/u8-u8-asnprintf: New file.
874         * modules/unistdio/u8-u8-asprintf: New file.
875         * modules/unistdio/u8-u8-snprintf: New file.
876         * modules/unistdio/u8-u8-sprintf: New file.
877         * modules/unistdio/u8-u8-vasnprintf: New file.
878         * modules/unistdio/u8-u8-vasprintf: New file.
879         * modules/unistdio/u8-u8-vsnprintf: New file.
880         * modules/unistdio/u8-u8-vsprintf: New file.
881         * modules/unistdio/u16-asnprintf: New file.
882         * modules/unistdio/u16-asprintf: New file.
883         * modules/unistdio/u16-printf-parse: New file.
884         * modules/unistdio/u16-snprintf: New file.
885         * modules/unistdio/u16-sprintf: New file.
886         * modules/unistdio/u16-vasnprintf: New file.
887         * modules/unistdio/u16-vasprintf: New file.
888         * modules/unistdio/u16-vsnprintf: New file.
889         * modules/unistdio/u16-vsprintf: New file.
890         * modules/unistdio/u16-u16-asnprintf: New file.
891         * modules/unistdio/u16-u16-asprintf: New file.
892         * modules/unistdio/u16-u16-snprintf: New file.
893         * modules/unistdio/u16-u16-sprintf: New file.
894         * modules/unistdio/u16-u16-vasnprintf: New file.
895         * modules/unistdio/u16-u16-vasprintf: New file.
896         * modules/unistdio/u16-u16-vsnprintf: New file.
897         * modules/unistdio/u16-u16-vsprintf: New file.
898         * modules/unistdio/u32-asnprintf: New file.
899         * modules/unistdio/u32-asprintf: New file.
900         * modules/unistdio/u32-printf-parse: New file.
901         * modules/unistdio/u32-snprintf: New file.
902         * modules/unistdio/u32-sprintf: New file.
903         * modules/unistdio/u32-vasnprintf: New file.
904         * modules/unistdio/u32-vasprintf: New file.
905         * modules/unistdio/u32-vsnprintf: New file.
906         * modules/unistdio/u32-vsprintf: New file.
907         * modules/unistdio/u32-u32-asnprintf: New file.
908         * modules/unistdio/u32-u32-asprintf: New file.
909         * modules/unistdio/u32-u32-snprintf: New file.
910         * modules/unistdio/u32-u32-sprintf: New file.
911         * modules/unistdio/u32-u32-vasnprintf: New file.
912         * modules/unistdio/u32-u32-vasprintf: New file.
913         * modules/unistdio/u32-u32-vsnprintf: New file.
914         * modules/unistdio/u32-u32-vsprintf: New file.
915         * modules/unistdio/ulc-asnprintf-tests: New file.
916         * modules/unistdio/ulc-vasnprintf-tests: New file.
917         * modules/unistdio/ulc-vasprintf-tests: New file.
918         * modules/unistdio/ulc-vsnprintf-tests: New file.
919         * modules/unistdio/ulc-vsprintf-tests: New file.
920         * modules/unistdio/u8-asnprintf-tests: New file.
921         * modules/unistdio/u8-vasnprintf-tests: New file.
922         * modules/unistdio/u8-vasprintf-tests: New file.
923         * modules/unistdio/u8-vsnprintf-tests: New file.
924         * modules/unistdio/u8-vsprintf-tests: New file.
925         * modules/unistdio/u16-asnprintf-tests: New file.
926         * modules/unistdio/u16-vasnprintf-tests: New file.
927         * modules/unistdio/u16-vasprintf-tests: New file.
928         * modules/unistdio/u16-vsnprintf-tests: New file.
929         * modules/unistdio/u16-vsprintf-tests: New file.
930         * modules/unistdio/u32-asnprintf-tests: New file.
931         * modules/unistdio/u32-vasnprintf-tests: New file.
932         * modules/unistdio/u32-vasprintf-tests: New file.
933         * modules/unistdio/u32-vsnprintf-tests: New file.
934         * modules/unistdio/u32-vsprintf-tests: New file.
935         * MODULES.html.sh (Unicode string functions): Add the new modules.
936
937 2007-07-01  Bruno Haible  <bruno@clisp.org>
938
939         * lib/sprintf.c (sprintf): Limit the available length estimation,
940         to avoid address wraparound.
941         * lib/vsprintf.c (vsprintf): Likewise.
942         * modules/sprintf-posix (Dependencies): Add stdint.
943         * modules/vsprintf-posix (Dependencies): Likewise.
944
945 2007-07-01  Bruno Haible  <bruno@clisp.org>
946
947         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
948         Windows PATH as well. Conservative double-quoting. Comments.
949
950 2007-07-01  Bruno Haible  <bruno@clisp.org>
951             Eric Blake  <ebb9@byu.net>
952             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
953
954         * gnulib-tool (self_abspathname): Fix algorithm to cope with
955         empty components in $PATH, denoting '.'.
956
957 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
958
959         * gnulib-tool: Fix indentation.
960         (func_create_megatestdir): Likewise.
961         Report by Bruno Haible.
962
963 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
964
965         Sync from Automake.
966         * build-aux/gnupload: Fix shell portability issues with for loops.
967         Report by Karl Berry.
968
969 2007-06-29  Simon Josefsson  <simon@josefsson.org>
970
971         * build-aux/maint.mk (POURL): Use translationproject.org.
972
973 2007-06-27  Simon Josefsson  <simon@josefsson.org>
974             Bruno Haible  <bruno@clisp.org>
975
976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
977         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
978         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
979         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
980         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
981
982 2007-06-27  Bruno Haible  <bruno@clisp.org>
983
984         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
985         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
986
987 2007-06-26  Karl Berry  <karl@gnu.org>
988
989         * MODULES.html.sh: remove xreadlink-with-size.
990
991 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
992
993         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
994         method that I hope also handles the double-include problem noted
995         by Bruno Haible in
996         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
997
998 2007-06-23  Bruno Haible  <bruno@clisp.org>
999
1000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1001         Don't let the 'mostlyclean' target fail if the last subdirectory could
1002         not be removed.
1003         Reported by Karl Berry.
1004
1005 2007-06-23  Bruno Haible  <bruno@clisp.org>
1006
1007         * gnulib-tool (echo): Add a speedier workaround for ksh.
1008         * tests/test-echo.sh: Likewise.
1009
1010 2007-06-23  Bruno Haible  <bruno@clisp.org>
1011
1012         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
1013         * tests/test-echo.sh: Likewise.
1014
1015 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1016
1017         * gnulib-tool (IFS): Initialize early, so we don't set it to
1018         empty later.
1019         (self_abspathname): Rewrite algorithm to set it, reindent.
1020         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1021         (func_create_megatestdir): Merge some sed scripts.
1022
1023 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1024
1025         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
1026         exposed by Sun Studio 11 cc on Solaris 8.
1027
1028 2007-06-22  Bruno Haible  <bruno@clisp.org>
1029
1030         * gnulib-tool (echo): Ensure the echo primitive does not interpret
1031         backslashes.
1032         * tests/test-echo.sh: New file.
1033
1034 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1035
1036         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
1037         simplify `sed_replace_build_aux' scripts, they are portable but
1038         echoing them with `echo' is not.
1039         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
1040
1041 2007-06-21  Karl Berry  <karl@gnu.org>
1042
1043         * config/srclist.txt: guess we can't handle the licenses via
1044         srclist at the moment.
1045
1046 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1047
1048         * MODULES.html.sh: Add include_next.
1049         * modules/include_next: New file.
1050
1051 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1052
1053         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
1054         INCLUDE_NEXT.
1055         (gl_CHECK_NEXT_HEADERS): New macro.
1056         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
1057         the obsolescent gl_ABSOLUTE_HEADER.
1058         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1059         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1060         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1061         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1062         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1063         * m4/math_h.m4 (gl_MATH_H): Likewise.
1064         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1065         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1066         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1067         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1068         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1069         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1070         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1072         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1074         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1075         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1076         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1077         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1078         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1079         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1080         * m4/inttypes.m4 (gl_INTTYPES_H): Define
1081         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
1082         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
1083         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
1084         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
1085         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
1086         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
1087         * lib/float_.h: Likewise.
1088         * lib/inttypes_.h: Likewise.
1089         * lib/math_.h: Likewise.
1090         * lib/search_.h: Likewise.
1091         * lib/signal_.h: Likewise.
1092         * lib/stdint_.h: Likewise.
1093         * lib/stdio_.h: Likewise.
1094         * lib/stdlib_.h: Likewise.
1095         * lib/string_.h: Likewise.
1096         * lib/sys_stat_.h: Likewise.
1097         * lib/sys_time_.h: Likewise.
1098         * lib/time_.h: Likewise.
1099         * lib/unistd_.h: Likewise.
1100         * lib/wchar_.h: Likewise.
1101         * lib/wctype_.h: Likewise.
1102         * lib/dirent_.h: Likewise.
1103         * lib/iconv_.h: Likewise.
1104         * lib/locale_.h: Likewise.
1105         * lib/netinet_in_.h: Likewise.
1106         * lib/sys_select_.h: Likewise.
1107         * lib/sys_socket_.h: Likewise.
1108         * lib/sysexits_.h: Likewise.
1109         * modules/fcntl (Depends-on): Depend on include_next, not
1110         absolute_header.
1111         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
1112         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
1113         * modules/fchdir: Likewise.
1114         * modules/float: Likewise.
1115         * modules/iconv_open: Likewise.
1116         * modules/inttypes: Likewise.
1117         * modules/locale: Likewise.
1118         * modules/math: Likewise.
1119         * modules/netinet_in: Likewise.
1120         * modules/search: Likewise.
1121         * modules/signal: Likewise.
1122         * modules/stdint: Likewise.
1123         * modules/stdio: Likewise.
1124         * modules/stdlib: Likewise.
1125         * modules/string: Likewise.
1126         * modules/sys_select: Likewise.
1127         * modules/sys_socket: Likewise.
1128         * modules/sys_stat: Likewise.
1129         * modules/sys_time: Likewise.
1130         * modules/sysexits: Likewise.
1131         * modules/time: Likewise.
1132         * modules/unistd: Likewise.
1133         * modules/wchar: Likewise.
1134         * modules/wctype: Likewise.
1135         * modules/sys_stat: Change maintainer to "all".
1136         * modules/unistd: Likewise.
1137
1138 2007-06-20  Karl Berry  <karl@gnu.org>
1139
1140         * config/srclist.txt: track www changes in license files.
1141
1142 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
1143
1144         * build-aux/bootstrap: Remove stray dot.
1145         Make sure build_aux settings are honored when linking
1146         gnulib_extra_files.
1147
1148 2007-06-19  Eric Blake  <ebb9@byu.net>
1149
1150         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1151         Allow compilation on cygwin.
1152
1153 2007-06-19  Jim Meyering  <jim@meyering.net>
1154
1155         xreadlink-with-size: Remove module.  No longer used.
1156         Ex-callers now use xreadlink or mreadlink-with-size.
1157         * modules/xreadlink-with-size: Remove module.
1158         * lib/xreadlink-with-size.c: Remove file.
1159         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
1160         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
1161         just before the function definition *is* accurate.
1162
1163         Eliminate one way canonicalize_filename_mode could exit.
1164         * lib/canonicalize.c (canonicalize_filename_mode):
1165         Use mreadlink_with_size, not xreadlink_with_size.
1166
1167 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1168
1169         Detect porting problems to FreeBSD/arm, which has time_t wider than
1170         long int.  Original problem reported for GNU diff by Xin Li in
1171         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
1172         * modules/getdate (Depends-on): Add intprops, verify.
1173         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
1174         is an integer type no wider than long int.
1175
1176 2007-06-18  Jim Meyering  <jim@meyering.net>
1177
1178         New module: mreadlink-with-size.
1179         * MODULES.html.sh: Add mreadlink-with-size.
1180         * modules/mreadlink-with-size: New module
1181         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
1182         not xreadlink-with-size.
1183         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
1184
1185 2007-06-16  Bruno Haible  <bruno@clisp.org>
1186
1187         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
1188         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
1189         Reported by Gary V. Vaughan <gary@gnu.org>.
1190
1191 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1192
1193         Revamp lchown so that it lives in unistd.h where it belongs.
1194         * lib/lchown.h: Remove.
1195         * lib/dirchownmod.c: Don't include lib/lchown.h.
1196         * lib/fchownat.c: Likewise.
1197         * lib/openat.c: Likewise.
1198         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
1199         does not follow symlinks.
1200         (EOPNOTSUPP): Define if not defined.
1201         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
1202         is defined to 0.
1203         (lchown): New decl.
1204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
1205         Do not check for lchown decl.
1206         Set REPLACE_LCHOWN.
1207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
1208         REPLACE_LCHOWN.
1209         * modules/chown: Make it clear it follows symlinks.
1210         * modules/lchown: Make it clear it doesn't follow symlinks.
1211         (Files): Remove lib/lchown.h
1212         (Depends-on): Add unistd.
1213         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
1214         (Include): Include <unistd.h>, not "lchown.h".
1215         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
1216         REPLACE_LCHOWN.
1217
1218 2007-06-15  Jim Meyering  <jim@meyering.net>
1219
1220         Change license (GPL to LGPL) of fsusage and dependents.
1221         * modules/fsusage (License): Change to LGPL.
1222         * modules/full-read (License): Likewise.
1223         * modules/full-write (License): Likewise.
1224         * modules/safe-read (License): Likewise.
1225         * modules/safe-write (License): Likewise.
1226
1227 2007-06-14  Ben Pfaff  <blp@gnu.org>
1228
1229         Missing part of allocsa -> malloca transition.
1230         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
1231         gl_MALLOCA.
1232
1233 2007-06-12  Bruno Haible  <bruno@clisp.org>
1234
1235         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
1236         to ia64, x86_64, i386.
1237         Reported by Eric Blake.
1238
1239 2007-06-12  Bruno Haible  <bruno@clisp.org>
1240
1241         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
1242         cross-compiling to x86_64.
1243
1244 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
1245
1246         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
1247         glitch reported by Ralf Wildenhues in
1248         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
1249
1250         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
1251         Vin Shelton.
1252
1253 2007-06-11  Bruno Haible  <bruno@clisp.org>
1254
1255         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
1256         replacement string.
1257         Reported by Eric Blake.
1258
1259 2007-06-10  Bruno Haible  <bruno@clisp.org>
1260
1261         Prepare vasnprintf code for use with Unicode strings.
1262         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
1263         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
1264         TYPE_U32_STRING.
1265         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
1266         a_u32_string variants.
1267         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1268         * lib/printf-args.c: Don't include config.h and the specification
1269         header if PRINTF_FETCHARGS is already defined.
1270         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1271         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
1272         TYPE_U16_STRING, TYPE_U32_STRING.
1273         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
1274         u16_directive, u16_directives, u32_directive, u32_directives): New
1275         types.
1276         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
1277         New declarations.
1278         * lib/printf-parse.c: Don't include config.h and the specification
1279         header if PRINTF_PARSE is already defined. Eliminate the set of
1280         parameters for WIDE_CHAR_VERSION; the user of this file must provide
1281         them now. Include c-ctype.h.
1282         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
1283         directive and CHAR_T_ONLY_ASCII.
1284         * lib/vasnprintf.c: Don't include config.h and the specification header
1285         if VASNPRINTF is already defined.
1286         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
1287         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
1288         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
1289         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
1290         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
1291         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
1292         code accordingly.
1293         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
1294         pad_ourselves also in this case, with the 'c' and 's' directives, and
1295         with a different notion of "width".
1296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
1297
1298 2007-06-10  Bruno Haible  <bruno@clisp.org>
1299
1300         * modules/unistr/u32-mbsnlen: New file.
1301         * lib/unistr/u32-mbsnlen.c: New file.
1302
1303         * modules/unistr/u16-mbsnlen: New file.
1304         * lib/unistr/u16-mbsnlen.c: New file.
1305
1306         * modules/unistr/u8-mbsnlen: New file.
1307         * lib/unistr/u8-mbsnlen.c: New file.
1308
1309         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
1310         declarations.
1311
1312 2007-06-10  Bruno Haible  <bruno@clisp.org>
1313
1314         * lib/string_.h (mbsnlen): New declaration.
1315         * lib/mbsnlen.c: New file.
1316         * m4/mbsnlen.m4: New file.
1317         * modules/mbsnlen: New file.
1318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
1319         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
1320         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
1321
1322 2007-06-10  Bruno Haible  <bruno@clisp.org>
1323
1324         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
1325
1326 2007-06-10  Bruno Haible  <bruno@clisp.org>
1327
1328         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
1329         * lib/mbuiter.h: Likewise.
1330
1331 2007-06-10  Bruno Haible  <bruno@clisp.org>
1332
1333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
1334         declaration.
1335
1336 2007-06-10  Karl Berry  <karl@gnu.org>
1337
1338         * config/srclist.txt: remove gettext entries, Bruno prefers
1339         to update individually.
1340
1341 2007-06-10  Bruno Haible  <bruno@clisp.org>
1342
1343         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
1344         'maxlen'. Ensure only length + width bytes are allocated, not
1345         length + 1 + width.
1346
1347 2007-06-09  Bruno Haible  <bruno@clisp.org>
1348
1349         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
1350         (CHAR_T): Remove macro.
1351         (VASNPRINTF): Update.
1352
1353 2007-06-09  Bruno Haible  <bruno@clisp.org>
1354
1355         * MODULES.html.sh (Unicode string functions): Add the new modules.
1356
1357         * modules/uniconv/u32-conv-to-enc: New file.
1358         * lib/uniconv/u32-conv-to-enc.c: New file.
1359         * modules/uniconv/u32-conv-to-enc-tests: New file.
1360         * tests/uniconv/test-u32-conv-to-enc.c: New file.
1361
1362         * modules/uniconv/u16-conv-to-enc: New file.
1363         * lib/uniconv/u16-conv-to-enc.c: New file.
1364         * lib/uniconv/u-conv-to-enc.h: New file.
1365         * modules/uniconv/u16-conv-to-enc-tests: New file.
1366         * tests/uniconv/test-u16-conv-to-enc.c: New file.
1367
1368         * modules/uniconv/u8-conv-to-enc: New file.
1369         * lib/uniconv/u8-conv-to-enc.c: New file.
1370         * modules/uniconv/u8-conv-to-enc-tests: New file.
1371         * tests/uniconv/test-u8-conv-to-enc.c: New file.
1372
1373         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1374         u32_conv_to_encoding): New declarations.
1375
1376 2007-06-09  Bruno Haible  <bruno@clisp.org>
1377
1378         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
1379
1380 2007-06-09  Bruno Haible  <bruno@clisp.org>
1381
1382         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
1383         * modules/malloca: Renamed from modules/allocsa, updated.
1384         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
1385         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
1386         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
1387         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
1388         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
1389         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
1390         * modules/xmalloca: Renamed from modules/xallocsa, updated.
1391         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
1392         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
1393         * modules/c-strcasestr (Depends-on): Update.
1394         * lib/c-strcasestr.c: Update.
1395         * modules/c-strstr (Depends-on): Update.
1396         * lib/c-strstr.c: Update.
1397         * modules/canonicalize-lgpl (Depends-on): Update.
1398         * lib/canonicalize-lgpl.c: Update.
1399         * modules/clean-temp (Depends-on): Update.
1400         * lib/clean-temp.c: Update.
1401         * modules/csharpcomp (Depends-on): Update.
1402         * lib/csharpcomp.c: Update.
1403         * modules/csharpexec (Depends-on): Update.
1404         * lib/csharpexec.c: Update.
1405         * modules/javacomp (Depends-on): Update.
1406         * lib/javacomp.c: Update.
1407         * modules/javaexec (Depends-on): Update.
1408         * lib/javaexec.c: Update.
1409         * modules/mbscasestr (Depends-on): Update.
1410         * lib/mbscasestr.c: Update.
1411         * modules/mbsstr (Depends-on): Update.
1412         * lib/mbsstr.c: Update.
1413         * modules/setenv (Depends-on): Update.
1414         * lib/setenv.c: Update.
1415         * modules/strcasestr (Depends-on): Update.
1416         * lib/strcasestr.c: Update.
1417         * modules/striconveha (Depends-on): Update.
1418         * lib/striconveha.c: Update.
1419         * modules/relocatable-prog-wrapper (Files): Update.
1420         * lib/relocwrapper.c: Update.
1421         * build-aux/install-reloc: Update.
1422         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
1423
1424 2007-06-08  Bruno Haible  <bruno@clisp.org>
1425
1426         Port to uClibc.
1427         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
1428         * lib/fpurge.c (fpurge): Likewise.
1429         * lib/freading.c (freading): Likewise.
1430         * lib/fseeko.c (rpl_fseeko): Likewise.
1431         * lib/fseterr.c (fseterr): Likewise.
1432         * lib/fwriting.c (fwriting): Likewise.
1433         * tests/test-fflush.c (main): Avoid a failure on uClibc.
1434
1435 2007-06-08  Bruno Haible  <bruno@clisp.org>
1436
1437         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
1438         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
1439         * modules/gettext (Files): Add m4/intlmacosx.m4.
1440
1441 2007-06-07  Bruno Haible  <bruno@clisp.org>
1442
1443         * modules/localename-tests: New file.
1444         * tests/test-localename.c: New file.
1445
1446         New module 'localename'.
1447         * lib/localename.h: New file.
1448         * lib/localename.c: New file, from GNU gettext.
1449         * m4/localename.m4: New file.
1450         * modules/localename: New file.
1451
1452 2007-06-07  Bruno Haible  <bruno@clisp.org>
1453
1454         Work around the lack of <wchar.h> on some builds of uClibc.
1455         * doc/headers/wchar.texi: Update.
1456         * lib/wchar_.h: Include <wchar.h> only if it exists.
1457         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
1458         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
1459         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
1460         doesn't exist.
1461         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
1462         * modules/mbfile (Depends-on): Add wchar.
1463         * modules/mbiter (Depends-on): Likewise.
1464         * modules/mbuiter (Depends-on): Likewise.
1465         Reported by Simon Josefsson.
1466
1467 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
1468
1469         Work around problem reported by Steven M. Schweda in
1470         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
1471         Tru64 5.1B with the Compaq compiler environment installed declares
1472         an 'isblank' function but does not define it in the C library.
1473         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
1474         * lib/regex_internal.h (isblank): Likewise.
1475         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
1476         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1477
1478 2007-06-05  Bruno Haible  <bruno@clisp.org>
1479
1480         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
1481         ia64.
1482         * modules/printf-safe: New file.
1483         * modules/fprintf-posix (Depends-on): Add printf-safe.
1484         * modules/printf-posix (Depends-on): Likewise.
1485         * modules/snprintf-posix (Depends-on): Likewise.
1486         * modules/sprintf-posix (Depends-on): Likewise.
1487         * modules/vasnprintf-posix (Depends-on): Likewise.
1488         * modules/vasprintf-posix (Depends-on): Likewise.
1489         * modules/vfprintf-posix (Depends-on): Likewise.
1490         * modules/vprintf-posix (Depends-on): Likewise.
1491         * modules/vsnprintf-posix (Depends-on): Likewise.
1492         * modules/vsprintf-posix (Depends-on): Likewise.
1493         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1494         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
1495         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
1496         "no" on i386, x86_64, ia64.
1497         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
1498         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1499         on i386, x86_64, ia64.
1500         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
1501         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1502         on i386, x86_64, ia64.
1503         * tests/test-vasnprintf-posix.c: Include float.h.
1504         (LDBL80_WORDS): New macro.
1505         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1506         on i386, x86_64, ia64.
1507         * tests/test-vasprintf-posix.c: Include float.h.
1508         (LDBL80_WORDS): New macro.
1509         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1510         on i386, x86_64, ia64.
1511         * tests/test-snprintf-posix.c: Include float.h.
1512         * tests/test-sprintf-posix.c: Likewise.
1513         * tests/test-vsnprintf-posix.c: Likewise.
1514         * tests/test-vsprintf-posix.c: Likewise.
1515
1516 2007-06-05  Bruno Haible  <bruno@clisp.org>
1517
1518         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
1519         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
1520         non-IEEE numbers on i386, x86_64, ia64.
1521         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
1522         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
1523         * tests/test-isnanl.h: Include float.h.
1524         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
1525
1526 2007-06-05  Bruno Haible  <bruno@clisp.org>
1527
1528         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
1529         also the %a / %A. Handle the %a / %A code before this extra handling.
1530
1531 2007-06-05  Bruno Haible  <bruno@clisp.org>
1532
1533         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
1534         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
1535
1536 2007-06-05  Bruno Haible  <bruno@clisp.org>
1537
1538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
1539         typo in variable name.
1540
1541 2007-06-05  Eric Blake  <ebb9@byu.net>
1542
1543         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
1544         Reported by Simon Josefsson.
1545
1546 2007-06-04  Bruno Haible  <bruno@clisp.org>
1547
1548         Avoid test failures on some PowerPC platforms.
1549         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
1550         Define differently for PowerPC.
1551         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
1552         Reported by Gary V. Vaughan <gary@gnu.org>.
1553
1554 2007-06-02  Bruno Haible  <bruno@clisp.org>
1555
1556         Fix test-stdint failure on FreeBSD/ia64.
1557         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
1558         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
1559         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
1560         * doc/headers/stdint.texi: Update.
1561
1562 2007-06-01  Bruno Haible  <bruno@clisp.org>
1563
1564         * tests/test-binary-io.c (main): Pass a third argument to open().
1565         Reported by Gary V. Vaughan <gary@gnu.org>.
1566
1567 2007-06-01  Bruno Haible  <bruno@clisp.org>
1568
1569         * doc/functions/frexpl.texi: Update for mingw.
1570
1571 2007-06-01  Bruno Haible  <bruno@clisp.org>
1572
1573         * tests/test-lseek.c (main): Disable test of errno for invalid third
1574         argument.
1575         * doc/functions/lseek.texi: Update.
1576         Reported by Gary V. Vaughan <gary@gnu.org>.
1577
1578 2007-05-28  Bruno Haible  <bruno@clisp.org>
1579
1580         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
1581
1582 2007-05-31  Eric Blake  <ebb9@byu.net>
1583
1584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
1585         cross compiling.
1586
1587 2007-05-30  Eric Blake  <ebb9@byu.net>
1588         and Bruno Haible  <bruno@clisp.org>
1589
1590         Work around mingw test failures exposed by m4-1.4.9b.
1591         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
1592         * tests/test-unistd.c: Disable uid_t and git_t tests for the
1593         moment.
1594
1595 2007-05-30  Bruno Haible  <bruno@clisp.org>
1596
1597         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
1598         assuming that they are closed. Needed on HP-UX 11.
1599
1600 2007-05-29  Bruno Haible  <bruno@clisp.org>
1601
1602         Fix a problem with #include_next.
1603         * lib/dirent_.h: Split the double-inclusion guard.
1604         * lib/fcntl_.h: Likewise.
1605         * lib/float_.h: Likewise.
1606         * lib/iconv_.h: Likewise.
1607         * lib/inttypes_.h: Likewise.
1608         * lib/locale_.h: Likewise.
1609         * lib/math_.h: Likewise.
1610         * lib/netinet_in_.h: Likewise.
1611         * lib/search_.h: Likewise.
1612         * lib/signal_.h: Likewise.
1613         * lib/stdint_.h: Likewise.
1614         * lib/stdio_.h: Likewise.
1615         * lib/stdlib_.h: Likewise.
1616         * lib/string_.h: Likewise.
1617         * lib/sys_select_.h: Likewise.
1618         * lib/sys_socket_.h: Likewise.
1619         * lib/sys_stat_.h: Likewise.
1620         * lib/sys_time_.h: Likewise.
1621         * lib/sysexits_.h: Likewise.
1622         * lib/time_.h: Likewise.
1623         * lib/unistd_.h: Likewise.
1624         * lib/wchar_.h: Likewise.
1625         * lib/wctype_.h: Likewise.
1626
1627 2007-05-29  Bruno Haible  <bruno@clisp.org>
1628
1629         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
1630         for the moment.
1631
1632 2007-05-29  Bruno Haible  <bruno@clisp.org>
1633
1634         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
1635         invocation.
1636         Reported by Eric Blake.
1637
1638 2007-05-29  Bruno Haible  <bruno@clisp.org>
1639
1640         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
1641         compiling case.
1642
1643 2007-05-29  Eric Blake  <ebb9@byu.net>
1644             Bruno Haible  <bruno@clisp.org>
1645
1646         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
1647         cross compiles.
1648
1649 2007-05-28  Eric Blake  <ebb9@byu.net>
1650
1651         * modules/closein-tests (test_closein_LDADD): Support test on
1652         cygwin with libtool.
1653
1654 2007-05-28  Bruno Haible  <bruno@clisp.org>
1655
1656         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
1657         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1658         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1659         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1660         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1661         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1662         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1663         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1664         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1665
1666 2007-05-28  Eric Blake  <ebb9@byu.net>
1667
1668         Unconditionally include <config.h> in unit tests.
1669         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
1670         * tests/test-allocsa.c, tests/test-arcfour.c,
1671         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
1672         tests/test-array_list.c, tests/test-array_oset.c,
1673         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
1674         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
1675         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
1676         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
1677         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
1678         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
1679         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
1680         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
1681         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
1682         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
1683         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
1684         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
1685         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
1686         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
1687         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
1688         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
1689         test-md5.c, test-memmem.c, test-printf-posix.c,
1690         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
1691         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
1692         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
1693         test-strcasestr.c, test-striconv.c, test-striconveh.c,
1694         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
1695         test-vasnprintf-posix2.c, test-vasnprintf.c,
1696         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
1697         test-vfprintf-posix.c, test-vprintf-posix.c,
1698         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
1699         test-xvasprintf.c: Likewise.
1700
1701 2007-05-28  Bruno Haible  <bruno@clisp.org>
1702
1703         * gnulib-tool (func_import): Remember the --with-tests command-line
1704         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
1705         Reported by Eric Blake.
1706
1707 2007-05-28  Bruno Haible  <bruno@clisp.org>
1708
1709         * modules/ftell-tests: New file.
1710         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
1711         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
1712
1713         * lib/ftell.c: New file.
1714         * modules/ftell: New file.
1715         * m4/ftell.m4: New file.
1716         * doc/functions/ftell.texi: Update.
1717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
1718         REPLACE_FTELL.
1719         * lib/stdio_.h (rpl_ftell): New declaration.
1720         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
1721         REPLACE_FTELL.
1722
1723 2007-05-28  Eric Blake  <ebb9@byu.net>
1724
1725         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
1726
1727 2007-05-28  Bruno Haible  <bruno@clisp.org>
1728
1729         * modules/fseek-tests: New file.
1730         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
1731         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
1732
1733         * lib/fseek.c: New file.
1734         * modules/fseek: New file.
1735         * m4/fseek.m4: New file.
1736         * doc/functions/fseek.texi: Update.
1737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
1738         REPLACE_FSEEK.
1739         * lib/stdio_.h (rpl_fseek): New declaration.
1740         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
1741         REPLACE_FSEEK.
1742
1743 2007-05-28  Bruno Haible  <bruno@clisp.org>
1744
1745         * lib/stdio_.h (fflush): More comments.
1746
1747 2007-05-28  Bruno Haible  <bruno@clisp.org>
1748
1749         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
1750         runtime test.
1751
1752 2007-05-28  Eric Blake  <ebb9@byu.net>
1753
1754         Improve lseek module.
1755         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
1756         * lib/unistd_.h (lseek): Scale back link warning message.
1757         * tests/test-lseek.c: Beef up test.
1758         * tests/test-lseek.sh: Exercise more facets of lseek.
1759         Reported by Bruno Haible.
1760
1761 2007-05-28  Bruno Haible  <bruno@clisp.org>
1762
1763         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
1764         to define.
1765
1766 2007-05-27  Bruno Haible  <bruno@clisp.org>
1767
1768         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
1769
1770 2007-05-27  Bruno Haible  <bruno@clisp.org>
1771
1772         * modules/openmp: New file.
1773         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
1774         Noah Misch.
1775
1776 2007-05-26  Bruno Haible  <bruno@clisp.org>
1777
1778         * modules/chdir-long (Depends-on): Add fchdir.
1779         * modules/chdir-safer (Depends-on): Likewise.
1780         * modules/fts (Depends-on): Likewise.
1781         * modules/fts-lgpl (Depends-on): Likewise.
1782         * modules/openat (Depends-on): Likewise.
1783         * modules/savewd (Depends-on): Likewise.
1784
1785 2007-05-24  Eric Blake  <ebb9@byu.net>
1786
1787         Fix lseek on mingw.
1788         * modules/lseek: New module.
1789         * m4/lseek.m4: New file.
1790         * lib/lseek.c: New file.
1791         * modules/lseek-tests: New file.
1792         * tests/test-lseek.c: New file.
1793         * tests/test-lseek.sh: New file.
1794         * MODULES.html.sh: Document lseek module.
1795         * modules/fflush (Depends-on): Add lseek, fseeko.
1796         * modules/fseeko (Depends-on): Likewise.
1797         * modules/ftello (Depends-on): Likewise.
1798         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
1799         broken.
1800         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
1801         broken.
1802         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
1803         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
1804         * lib/ftello.c (rpl_ftello): Likewise.
1805         * tests/test-fseeko.c (main): Test this.
1806         * tests/test-fseeko.sh: Likewise.
1807         * tests/test-ftello.c (main): Likewise.
1808         * tests/test-ftello.sh: Likewise.
1809         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
1810         implies replacing fseek.
1811         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
1812         HAVE_FTELLO.
1813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
1814         * modules/unistd (Makefile.am): Likewise.
1815         * lib/unistd_.h (lseek): Declare a replacement.
1816         * doc/functions/lseek.texi (lseek): Document this fix.
1817         * doc/functions/fseek.texi (fseek): Likewise.
1818         * doc/functions/ftell.texi (ftell): Likewise.
1819
1820 2007-05-24  Bruno Haible  <bruno@clisp.org>
1821
1822         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
1823         in the printed representation of a NaN.
1824         * tests/test-vasprintf-posix.c (test_function): Likewise.
1825         * tests/test-snprintf-posix.h (test_function): Likewise.
1826         * tests/test-sprintf-posix.h (test_function): Likewise.
1827         Reported by Eric Blake.
1828
1829 2007-05-23  Eric Blake  <ebb9@byu.net>
1830
1831         Fix fseeko/ftello on cygwin 1.5.24.
1832         * doc/functions/fseeko.texi (fseeko): Document the fix.
1833         * doc/functions/ftello.texi (ftello): Document the fix.
1834         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
1835         * doc/functions/stdout.text (stdout): New file.
1836         * doc/functions/stderr.text (stderr): New file.
1837         * doc/gnulib.texi (Function Substitutes): Use new files.
1838         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
1839         prior to 1.7.0.
1840         * tests/test-ftello.c (main): Likewise for ftello.
1841         * tests/test-fseeko.sh: New file.
1842         * tests/test-ftello.sh: New file.
1843         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
1844         with seekable stdin.
1845         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
1846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
1847         (gl_REPLACE_FSEEKO): New macro.
1848         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
1849         * modules/fseeko (Files): Distribute fseeko.c.
1850         * modules/ftello (Files): Distribute ftello.c.
1851         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
1852         mode.
1853         * lib/ftello.c (rpl_ftello): New file.
1854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
1855         fseeko, ftello.
1856         (gl_STDIN_LARGE_OFFSET): New macro.
1857         * modules/stdio (Makefile.am): Perform the replacement.
1858         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
1859
1860 2007-05-23  Bruno Haible  <bruno@clisp.org>
1861
1862         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
1863         GNULIB_POSIXCHECK is defined.
1864
1865 2007-05-21  Bruno Haible  <bruno@clisp.org>
1866
1867         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
1868         Check also the output for NaN arguments. When cross-compiling, guess
1869         no on IRIX.
1870         * lib/vasnprintf.c: Update comments.
1871         * tests/test-vasnprintf-posix.c (strisnan): New function.
1872         (test_function): Use it.
1873         * tests/test-vasprintf-posix.c (strisnan): New function.
1874         (test_function): Use it.
1875         * tests/test-snprintf-posix.h (strisnan): New function.
1876         (test_function): Use it.
1877         * tests/test-sprintf-posix.h (strisnan): New function.
1878         (test_function): Use it.
1879         Reported by Eric Blake.
1880
1881 2007-05-20  Bruno Haible  <bruno@clisp.org>
1882
1883         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
1884         numbers that fails on BeOS.
1885         * doc/functions/frexpl.texi: Update.
1886
1887 2007-05-20  Jim Meyering  <jim@meyering.net>
1888
1889         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
1890         forced upon us by glibc-2.6.
1891
1892 2007-05-20  Bruno Haible  <bruno@clisp.org>
1893
1894         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
1895         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
1896         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
1897         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
1898         NEED_PRINTF_INFINITE.
1899         (is_infinitel): New function.
1900         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
1901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
1902         gl_PREREQ_VASNPRINTF_INFINITE.
1903         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
1904         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1905         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
1906         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
1907         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
1908         gl_PREREQ_VASNPRINTF_INFINITE.
1909         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1910         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1916         * doc/functions/fprintf.texi: Update.
1917         * doc/functions/printf.texi: Update.
1918         * doc/functions/snprintf.texi: Update.
1919         * doc/functions/sprintf.texi: Update.
1920         * doc/functions/vfprintf.texi: Update.
1921         * doc/functions/vprintf.texi: Update.
1922         * doc/functions/vsnprintf.texi: Update.
1923         * doc/functions/vsprintf.texi: Update.
1924
1925 2007-05-20  Bruno Haible  <bruno@clisp.org>
1926
1927         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
1928         was not found in libc.
1929         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1930
1931 2007-05-20  Bruno Haible  <bruno@clisp.org>
1932
1933         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1934         printed as "-nan" instead of "nan".
1935         * tests/test-vasprintf-posix.c (test_function): Likewise.
1936         * tests/test-snprintf-posix.h (test_function): Likewise.
1937         * tests/test-sprintf-posix.h (test_function): Likewise.
1938         Needed for HP-UX 11.
1939
1940 2007-05-20  Jim Meyering  <jim@meyering.net>
1941
1942         Fix buggy test for the fchownat-deref bug.
1943         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
1944         symlink required for the run-test.  Without it, this test would
1945         always declare that fchownat doesn't work, and client code would
1946         unnecessarily use the replacement function with fixed libc.
1947         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
1948         Reported by Greg Schafer.
1949
1950 2007-05-19  Bruno Haible  <bruno@clisp.org>
1951
1952         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
1953         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
1954         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
1955         Needed for IRIX 6.5 and Solaris 2.5.1.
1956
1957 2007-05-19  Bruno Haible  <bruno@clisp.org>
1958
1959         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
1960         (test_function): Skip tests involving -0.0 on platforms where
1961         -0.0 = 0.0.
1962         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
1963         (test_function): Skip tests involving -0.0 on platforms where
1964         -0.0 = 0.0.
1965         * tests/test-snprintf-posix.h (have_minus_zero): New function.
1966         (test_function): Skip tests involving -0.0 on platforms where
1967         -0.0 = 0.0.
1968         * tests/test-sprintf-posix.h (have_minus_zero): New function.
1969         (test_function): Skip tests involving -0.0 on platforms where
1970         -0.0 = 0.0.
1971         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
1972         tests.
1973         * tests/test-printf-posix.h (test_function): Likewise.
1974         * tests/test-printf-posix.output: Remove all -0.0 related results.
1975         Needed for IRIX 6.5.
1976
1977 2007-05-19  Bruno Haible  <bruno@clisp.org>
1978
1979         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1980         printed as "nan0x7fffffff" instead of "nan".
1981         * tests/test-vasprintf-posix.c (test_function): Likewise.
1982         * tests/test-snprintf-posix.h (test_function): Likewise.
1983         * tests/test-sprintf-posix.h (test_function): Likewise.
1984         * tests/test-fprintf-posix.h (NaN): Remove macro.
1985         (test_function): Remove all NaN related tests.
1986         * tests/test-printf-posix.h (NaN): Remove macro.
1987         (test_function): Remove all NaN related tests.
1988         * tests/test-printf-posix.output: Remove all NaN related results.
1989         Needed for IRIX 6.5.
1990
1991 2007-05-19  Bruno Haible  <bruno@clisp.org>
1992
1993         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
1994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1995
1996 2007-05-19  Bruno Haible  <bruno@clisp.org>
1997
1998         * lib/float_.h: New file.
1999         * m4/float_h.m4: New file.
2000         * modules/float: New file.
2001         * modules/isnanl (Dependencies): Add float.
2002         * modules/isnanl-nolibm (Dependencies): Likewise.
2003         * modules/mathl (Dependencies): Likewise.
2004         * modules/printf-frexpl (Dependencies): Likewise.
2005         * modules/signbit (Dependencies): Likewise.
2006         * modules/vasnprintf (Dependencies): Likewise.
2007         * doc/headers/float.texi: Update.
2008
2009 2007-05-19  Jim Meyering  <jim@meyering.net>
2010
2011         * lib/utimens.c (gl_futimens): Rename from futimens,
2012         now that glibc-2.6 declares futimens.
2013         * lib/utimens.h: Likewise.
2014
2015 2007-05-19  Bruno Haible  <bruno@clisp.org>
2016
2017         Avoid test failures on mingw.
2018         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
2019         * tests/test-printf-posix.sh: Likewise.
2020         * tests/test-vfprintf-posix.sh: Likewise.
2021         * tests/test-vprintf-posix.sh: Likewise.
2022
2023 2007-05-19  Bruno Haible  <bruno@clisp.org>
2024
2025         Fix *printf result for NaN, Inf, -0.0 on mingw.
2026         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
2027         * lib/vasnprintf.c: Include math.h and isnan.h.
2028         (is_infinite_or_zero): New function.
2029         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
2030         values in the %f, %F, %e, %E, %g, %G directives.
2031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
2032         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2033         gl_PRINTF_INFINITE and test its result. Invoke
2034         gl_PREREQ_VASNPRINTF_INFINITE.
2035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2036         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2037         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2039         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2040         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2042         * doc/functions/fprintf.texi: Update.
2043         * doc/functions/printf.texi: Update.
2044         * doc/functions/snprintf.texi: Update.
2045         * doc/functions/sprintf.texi: Update.
2046         * doc/functions/vfprintf.texi: Update.
2047         * doc/functions/vprintf.texi: Update.
2048         * doc/functions/vsnprintf.texi: Update.
2049         * doc/functions/vsprintf.texi: Update.
2050
2051 2007-05-19  Bruno Haible  <bruno@clisp.org>
2052
2053         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
2054         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
2055         Instead of multiplying with 10^k, set extra_zeroes to k.
2056         (scale10_round_long_double): Remove function.
2057
2058 2007-05-18  Bruno Haible  <bruno@clisp.org>
2059
2060         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
2061         introduced on 2007-05-06.
2062
2063 2007-05-18  Bruno Haible  <bruno@clisp.org>
2064
2065         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
2066         %g directives.
2067         * tests/test-vasprintf-posix.c (test_function): Likewise.
2068         * tests/test-snprintf-posix.h (test_function): Likewise.
2069         * tests/test-sprintf-posix.h (test_function): Likewise.
2070
2071 2007-05-18  Bruno Haible  <bruno@clisp.org>
2072
2073         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
2074         (strmatch): New function.
2075         (test_function): Test the %f directive on numbers of various exponents.
2076         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
2077         (strmatch): New function.
2078         (test_function): Test the %f directive on numbers of various exponents.
2079         * tests/test-snprintf-posix.h (strmatch): New function.
2080         (test_function): Test the %f directive on numbers of various exponents.
2081         * tests/test-sprintf-posix.h (strmatch): New function.
2082         (test_function): Test the %f directive on numbers of various exponents.
2083         * tests/test-snprintf-posix.c (SIZEOF): New macro.
2084         * tests/test-sprintf-posix.c (SIZEOF): New macro.
2085         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
2086         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
2087
2088 2007-05-18  Bruno Haible  <bruno@clisp.org>
2089
2090         Add support for 'long double' number output.
2091         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
2092         * lib/vasnprintf.c: Include math.h and float+.h.
2093         (mp_limb_t): New type.
2094         (GMP_LIMB_BITS): New macro.
2095         (mp_twolimb_t): New type.
2096         (GMP_TWOLIMB_BITS): New macro.
2097         (mpn_t): New type.
2098         (multiply, divide, convert_to_decimal, decode_long_double,
2099         scale10_round_long_double, scale10_round_decimal_long_double,
2100         floorlog10l): New functions.
2101         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
2102         for the %f, %F, %e, %E, %g, %G directives.
2103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
2104         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2105         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
2106         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
2107         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2108         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2111         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2113         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2114         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
2115         * modules/snprintf-posix (Depends-on): Likewise.
2116         * modules/sprintf-posix (Depends-on): Likewise.
2117         * modules/vasnprintf-posix (Depends-on): Likewise.
2118         * modules/vasprintf-posix (Depends-on): Likewise.
2119         * modules/vfprintf-posix (Depends-on): Likewise.
2120         * modules/vsnprintf-posix (Depends-on): Likewise.
2121         * modules/vsprintf-posix (Depends-on): Likewise.
2122         * modules/vasnprintf (Files): Add lib/float+.h.
2123         * doc/functions/fprintf.texi: Update.
2124         * doc/functions/printf.texi: Update.
2125         * doc/functions/snprintf.texi: Update.
2126         * doc/functions/sprintf.texi: Update.
2127         * doc/functions/vfprintf.texi: Update.
2128         * doc/functions/vprintf.texi: Update.
2129         * doc/functions/vsnprintf.texi: Update.
2130         * doc/functions/vsprintf.texi: Update.
2131
2132 2007-05-18  Bruno Haible  <bruno@clisp.org>
2133
2134         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
2135
2136 2007-05-18  Bruno Haible  <bruno@clisp.org>
2137
2138         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
2139         for printing 64-bit integers. Needed for mingw.
2140
2141 2007-05-18  Bruno Haible  <bruno@clisp.org>
2142
2143         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2144         gl_FUNC_FREXPL_WORKS.
2145         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
2146
2147 2007-05-18  Bruno Haible  <bruno@clisp.org>
2148
2149         * modules/frexpl-nolibm-tests: New file.
2150
2151         * modules/frexpl-nolibm: New file.
2152         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
2153
2154 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2155
2156         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
2157         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
2158         GCC 4.2, which otherwise issues a lot of warnings.
2159         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
2160         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
2161         Likewise.
2162         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
2163         * modules/iconv_open (iconv.h): Likewise.
2164         * modules/locale (locale.h): Likewise.
2165         * modules/netinet_in (netinet/in.h): Likewise.
2166         * modules/sys_select (sys_select.h): Likewise.
2167         * modules/sys_socket (sys/socket.h): Likewise.
2168         * modules/sys_stat (sys/stat.h): Likewise.
2169         * modules/sysexits (sysexits.h): Likewise.
2170         * modules/unistd (unistd.h): Likewise.
2171
2172 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2173
2174         * modules/closein-tests (Makefile.am): Distribute
2175         `test-closein.sh'.
2176
2177 2007-05-17  Bruno Haible  <bruno@clisp.org>
2178
2179         * tests/test-printf-posix.output: Renamed from
2180         tests/test-fprintf-posix.out.
2181         * modules/fprintf-posix-tests: Update.
2182         * modules/printf-posix-tests: Update.
2183         * modules/vfprintf-posix-tests: Update.
2184         * modules/vprintf-posix-tests: Update.
2185         * tests/test-fprintf-posix.sh: Update.
2186         * tests/test-printf-posix.sh: Update.
2187         * tests/test-vfprintf-posix.sh: Update.
2188         * tests/test-vprintf-posix.sh: Update.
2189         Reported by Ralf Wildenhues.
2190
2191 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2192
2193         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
2194         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
2195         GCC 4.2, which otherwise issues a lot of warnings.
2196         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
2197         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
2198         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
2199         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
2200         it should no longer be needed.
2201         * lib/string_.h: Likewise.
2202         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
2203         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
2204         * modules/inttypes (inttypes.h): Likewise.
2205         * modules/math (math.h): Likewise.
2206         * modules/search (search.h): Likewise.
2207         * modules/signal (signal.h): Likewise.
2208         * modules/stdint (stdint.h): Likewise.
2209         * modules/stdio (stdio.h): Likewise.
2210         * modules/stdlib (stdlib.h): Likewise.
2211         * modules/string (string.h): Likewise.
2212         * modules/sys_time (sys/time.h): Likewise.
2213         * modules/time (time.h): Likewise.
2214         * modules/wchar (wchar.h): Likewise.
2215         * modules/wctype (wtype.h): Likewise.
2216
2217 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2218
2219         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
2220
2221 2007-05-13  Bruno Haible  <bruno@clisp.org>
2222
2223         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
2224         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2225         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
2226         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2227         (gl_PREREQ_STRTOK_R): Don't require it here.
2228
2229 2007-05-13  Bruno Haible  <bruno@clisp.org>
2230
2231         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
2232         when used in C++ mode.
2233
2234 2007-05-12  Bruno Haible  <bruno@clisp.org>
2235
2236         * lib/linebuffer.h: Tweak doc.
2237         * lib/linebuffer.c: Likewise.
2238
2239 2007-05-12  James Youngman  <jay@gnu.org>
2240
2241         * lib/linebuffer.c (readlinebuffer_delim): New function,
2242         like readlinebuffer, but use a caller-specified delimiter.
2243         (readlinebuffer): Just call readlinebuffer_delim with '\n'
2244         as the delimiter.
2245         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
2246
2247 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2248
2249         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
2250         * modules/openat (Files): Remove openat-die.c.
2251         (Depends-on): Add openat-die.
2252         * modules/openat-die: New module.
2253
2254 2007-05-06  Bruno Haible  <bruno@clisp.org>
2255
2256         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
2257         Update with info about Cygwin.
2258         * doc/functions/fprintf.texi: Update.
2259         * doc/functions/printf.texi: Update.
2260         * doc/functions/snprintf.texi: Update.
2261         * doc/functions/sprintf.texi: Update.
2262         * doc/functions/vfprintf.texi: Update.
2263         * doc/functions/vprintf.texi: Update.
2264         * doc/functions/vsnprintf.texi: Update.
2265         * doc/functions/vsprintf.texi: Update.
2266         Reported by Eric Blake.
2267
2268 2007-05-06  Bruno Haible  <bruno@clisp.org>
2269
2270         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
2271         padding ourselves for the floating-point directives.
2272         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
2273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
2274         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2275         gl_PRINTF_FLAG_ZERO and test its result. Invoke
2276         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
2277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2278         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2279         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2280         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2281         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2283         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2284         * tests/test-snprintf-posix.h (test_function): Also check the width
2285         and some flags in the %f directive.
2286         * tests/test-sprintf-posix.h (test_function): Likewise.
2287         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2288         * tests/test-vasprintf-posix.c (test_function): Likewise.
2289         * doc/functions/fprintf.texi: Update.
2290         * doc/functions/printf.texi: Update.
2291         * doc/functions/snprintf.texi: Update.
2292         * doc/functions/sprintf.texi: Update.
2293         * doc/functions/vfprintf.texi: Update.
2294         * doc/functions/vprintf.texi: Update.
2295         * doc/functions/vsnprintf.texi: Update.
2296         * doc/functions/vsprintf.texi: Update.
2297
2298 2007-05-06  Bruno Haible  <bruno@clisp.org>
2299
2300         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
2301         pass the ' flag character to sprintf or snprintf.
2302         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
2303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
2304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2305         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
2306         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
2307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2314         * tests/test-snprintf-posix.h (test_function): Also check the grouping
2315         flag.
2316         * tests/test-sprintf-posix.h (test_function): Likewise.
2317         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2318         * tests/test-vasprintf-posix.c (test_function): Likewise.
2319         * doc/functions/fprintf.texi: Update.
2320         * doc/functions/printf.texi: Update.
2321         * doc/functions/snprintf.texi: Update.
2322         * doc/functions/sprintf.texi: Update.
2323         * doc/functions/vfprintf.texi: Update.
2324         * doc/functions/vprintf.texi: Update.
2325         * doc/functions/vsnprintf.texi: Update.
2326         * doc/functions/vsprintf.texi: Update.
2327
2328 2007-05-01  Bruno Haible  <bruno@clisp.org>
2329
2330         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
2331
2332 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
2333
2334         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
2335         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
2336
2337 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
2338
2339         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
2340         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
2341         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
2342
2343 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
2344
2345         * lib/argp-help.c (struct hol_entry): New member `ord'.
2346         (HOL_ENTRY_PTRCMP): Use ord for comparison
2347         (hol_sort): Initialize ord.
2348
2349 2007-05-01  Bruno Haible  <bruno@clisp.org>
2350
2351         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
2352         Reported by Eric Blake.
2353         * doc/gnulib.texi (Function Substitutes): Update.
2354
2355 2007-05-01  Bruno Haible  <bruno@clisp.org>
2356
2357         * doc/functions.texi: Remove file, now redundant through
2358         doc/functions/*.texi.
2359
2360 2007-05-01  Bruno Haible  <bruno@clisp.org>
2361
2362         * modules/argp (Depends-on): Add sleep.
2363
2364 2007-05-01  Bruno Haible  <bruno@clisp.org>
2365
2366         * modules/sleep-tests: New file.
2367         * tests/test-sleep.c: New file.
2368
2369         * modules/sleep: New file.
2370         * lib/sleep.c: New file.
2371         * m4/sleep.m4: New file.
2372         * lib/unistd_.h (sleep): New declaration.
2373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
2374         HAVE_SLEEP.
2375         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
2376         * doc/functions/sleep.texi: Document the sleep module.
2377
2378 2007-05-01  Bruno Haible  <bruno@clisp.org>
2379
2380         * lib/sigprocmask.h: Remove file.
2381         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
2382         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
2383         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
2384         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
2385         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2386         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
2387         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
2388         HAVE_SIGSET_T as a shell variable.
2389         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
2390         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
2391         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
2392         (Depends-on): Add signal. Remove verify.
2393         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
2394         (Include): Mention <signal.h> instead of sigprocmask.h.
2395         * NEWS: Mention the change.
2396         * lib/fatal-signal.c: Don't include sigprocmask.h.
2397
2398 2007-05-01  Bruno Haible  <bruno@clisp.org>
2399
2400         * modules/signal: New file.
2401         * lib/signal_.h: New file.
2402         * m4/signal_h.m4: New file.
2403
2404 2007-05-01  Bruno Haible  <bruno@clisp.org>
2405
2406         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
2407         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
2408         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
2409         HAVE_WCTYPE_CTMP_BUG into wctype.h.
2410
2411 2007-05-01  Bruno Haible  <bruno@clisp.org>
2412
2413         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
2414         configure time.
2415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
2416         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
2417         * modules/sys_stat (Makefile.am): Substitute their values into
2418         sys/stat.h.
2419
2420 2007-05-01  Bruno Haible  <bruno@clisp.org>
2421
2422         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
2423         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
2424         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
2425
2426 2007-05-01  Bruno Haible  <bruno@clisp.org>
2427
2428         * doc/header/assert.texi: Undo last change: don't mention the gnulib
2429         'assert' module here.
2430
2431 2007-05-01  Bruno Haible  <bruno@clisp.org>
2432
2433         * doc/functions/*.texi: New files.
2434         * doc/functions/google-ranking.txt: New file.
2435         * doc/gnulib.texi (Function Substitutes): New chapter.
2436         (ctime, inet_ntoa): Remove sections.
2437         * doc/ctime.texi: Remove file.
2438         * doc/inet_ntoa.texi: Remove file.
2439         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
2440         dependencies.
2441         (%.info): New rule, specifying a --reference-limit.
2442
2443 2007-05-01  Bruno Haible  <bruno@clisp.org>
2444
2445         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
2446
2447 2007-05-01  Bruno Haible  <bruno@clisp.org>
2448
2449         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
2450         the portability of 'mkdir' to mingw systems.
2451
2452 2007-05-01  Bruno Haible  <bruno@clisp.org>
2453
2454         * doc/headers/google-ranking.txt: New file.
2455
2456 2007-04-30  Eric Blake  <ebb9@byu.net>
2457
2458         Prefer fseeko to fseek.
2459         * modules/getpass (Depends-on): Add fseeko.
2460         * lib/getpass.c (getpass): Use fseeko, not fseek.
2461
2462 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
2463
2464         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
2465         assumes the sorting is stable, while most qsort implementations
2466         are not.  Use argument addresses to ensure they never compare as
2467         equal.
2468
2469         * tests/test-argp-2.sh (usage-indent test): Fix output
2470         (func_compare): Restore diff options
2471         * tests/test-argp.c: Restore #include "progname.h"
2472
2473 2007-04-29  Bruno Haible  <bruno@clisp.org>
2474
2475         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
2476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2477         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
2478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2479         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
2480         (configure.ac): Define CHECK_SNPRINTF_POSIX.
2481         (TESTS, check_PROGRAMS): Add test-snprintf.
2482         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
2483         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
2484         (TESTS, check_PROGRAMS): Add test-vsnprintf.
2485         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
2486         assertions that fail on HP-UX, OSF/1, or IRIX.
2487         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
2488
2489 2007-04-29  Bruno Haible  <bruno@clisp.org>
2490
2491         * MODULES.html.sh (posix_functions): Remove 'contents'.
2492
2493 2007-04-29  Karl Berry  <karl@gnu.org>
2494
2495         * config/srclist.txt (gendocs_template_min): new entry.
2496
2497 2007-04-29  Bruno Haible  <bruno@clisp.org>
2498
2499         Work around fpurge bug on BSD systems.
2500         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
2501         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
2502         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
2503         fpurge to rpl_fpurge if the system already has this function.
2504         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
2505         the case where the system already has this function. Correct invariants
2506         on BSD systems.
2507         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
2508         BSD systems.
2509
2510 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
2511
2512         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
2513         proposed by Sven Verdoolaege.
2514
2515         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
2516         options.
2517         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
2518         (usage and help tests): Update
2519
2520 2007-04-29  Bruno Haible  <bruno@clisp.org>
2521
2522         * tests/test-fflush.c (main): Use a file of size 17, not 10.
2523         Print more information in case of failure. Disable a test on BeOS.
2524
2525 2007-04-29  Bruno Haible  <bruno@clisp.org>
2526
2527         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
2528         This helps debugging on systems on which no gdb is available.
2529
2530 2007-04-29  Bruno Haible  <bruno@clisp.org>
2531
2532         * lib/freading.h: Improve comments.
2533         * lib/fwriting.h: Likewise.
2534         * tests/test-freading.c (main): Don't check freading immediately after
2535         repositioning. Needed for glibc.
2536
2537 2007-04-29  Bruno Haible  <bruno@clisp.org>
2538
2539         * lib/freading.c (freading): Trivial simplification.
2540
2541 2007-04-28  Bruno Haible  <bruno@clisp.org>
2542
2543         * tests/test-fwriting.c (main): Also test the interaction between
2544         fflush and fwriting.
2545         * modules/fwriting-tests (Depends-on): Add fflush.
2546
2547         * tests/test-freading.c (main): Also test the interaction between
2548         fflush and freading.
2549         * modules/freading-tests (Depends-on): Add fflush.
2550
2551 2007-04-28  Bruno Haible  <bruno@clisp.org>
2552
2553         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
2554         fseeko and ftello.
2555         Suggested by Eric Blake.
2556
2557 2007-04-28  Jim Meyering  <jim@meyering.net>
2558
2559         Avoid false-negative in gl_STDINT_H's C99 conformance test.
2560         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
2561         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
2562
2563 2007-04-27  Eric Blake  <ebb9@byu.net>
2564
2565         * doc/headers/assert.texi (assert.h): Document assert module use.
2566
2567 2007-04-27  Bruno Haible  <bruno@clisp.org>
2568
2569         * doc/headers/*.texi: New files.
2570         * doc/gnulib.texi (Header File Substitutes): New chapter.
2571         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
2572         dependencies.
2573         (standards.info ,standards.html, standards.dvi): Update dependencies.
2574         (mostlyclean, clean): New targets.
2575
2576 2007-04-27  Bruno Haible  <bruno@clisp.org>
2577
2578         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
2579         * modules/sysexits (Files, Makefile.am): Update.
2580
2581         * lib/sys_socket_.h: Renamed from lib/socket_.h.
2582         * modules/sys_socket (Files, Makefile.am): Update.
2583
2584         * lib/sys_stat_.h: Renamed from lib/stat_.h.
2585         * modules/sys_stat (Files, Makefile.am): Update.
2586
2587 2007-04-27  Eric Blake  <ebb9@byu.net>
2588
2589         * lib/freading.h: Improve comments.
2590         * lib/fwriting.h: Likewise.
2591         * lib/fflush.c: Likewise.
2592
2593         Fix closein for mingw.
2594         * modules/closein-tests: Add tests for closein.
2595         * tests/test-closein.c: New file.
2596         * tests/test-closein.sh: Likewise.
2597         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
2598         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
2599
2600 2007-04-27  Bruno Haible  <bruno@clisp.org>
2601
2602         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
2603         version is < 6.
2604         * lib/math_.h [__DECC]: Likewise.
2605         * lib/stdio_.h [__DECC]: Likewise.
2606         * lib/stdlib_.h [__DECC]: Likewise.
2607         * lib/string_.h [__DECC]: Likewise.
2608         * lib/time_.h [__DECC]: Likewise.
2609         * lib/wchar_.h [__DECC]: Likewise.
2610         * lib/wctype_.h [__DECC]: Likewise.
2611
2612 2007-04-27  Bruno Haible  <bruno@clisp.org>
2613
2614         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
2615
2616 2007-04-27  Bruno Haible  <bruno@clisp.org>
2617
2618         * lib/fflush.c: Add comments.
2619         * modules/fpurge-tests (Depends-on): Add fflush.
2620         * modules/freadable-tests (Depends-on): Likewise.
2621         * modules/fwritable-tests (Depends-on): Likewise.
2622
2623 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
2624
2625         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
2626         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
2627         Report by Bruno Haible <bruno@clisp.org>.
2628
2629 2007-04-26  Eric Blake  <ebb9@byu.net>
2630
2631         Fix fflush on mingw.
2632         * modules/fflush (Depends-on): Add freading.
2633         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
2634         but unread data.
2635
2636 2007-04-26  Eric Blake  <ebb9@byu.net>
2637         and Bruno Haible  <bruno@clisp.org>
2638
2639         Implement freading and fwriting.
2640         * lib/freading.c: New file.
2641         * lib/freading.h: Likewise.
2642         * m4/freading.m4: Likewise.
2643         * modules/freading: Likewise.
2644         * modules/freading-tests: Likewise.
2645         * tests/test-freading.c: Likewise.
2646         * lib/fwriting.c: New file.
2647         * lib/fwriting.h: Likewise.
2648         * m4/fwriting.m4: Likewise.
2649         * modules/fwriting: Likewise.
2650         * modules/fwriting-tests: Likewise.
2651         * tests/test-fwriting.c: Likewise.
2652         * MODULES.html.sh (File stream based Input/Output): Mention them.
2653
2654 2007-04-26  Bruno Haible  <bruno@clisp.org>
2655
2656         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
2657         'long' when we assume it.
2658         Suggested by Eric Blake.
2659
2660 2007-04-26  Bruno Haible  <bruno@clisp.org>
2661
2662         Ensure fseeko, ftello are declared on glibc systems.
2663         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
2664         * modules/fseeko (configure.ac-early): Likewise.
2665         * modules/ftello (configure.ac-early): Likewise.
2666         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
2667         AC_FUNC_FSEEKO for this.
2668         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
2669         (gl_CHECK_FSEEKO): Remove macro.
2670
2671 2007-04-26  Bruno Haible  <bruno@clisp.org>
2672
2673         * tests/test-fflush.c (main): Also check the ftell result after
2674         fflush and fseek/fseeko.
2675         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
2676         file descriptor position cache in the stream.
2677         * lib/fseeko.c (rpl_fseeko): Likewise.
2678
2679 2007-04-26  Bruno Haible  <bruno@clisp.org>
2680
2681         * modules/fflush-tests (Depends-on): Add fseeko.
2682
2683 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
2684             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2685
2686         * lib/argz_.h: ensure error_t definition is obtained in same
2687         mechanism system argz.h would have.
2688         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
2689         argz facilities are known bad.  Err on the side of caution if
2690         cross-compiling.
2691
2692 2007-04-25  Eric Blake  <ebb9@byu.net>
2693
2694         * lib/fpurge.c (includes): Use stdlib.h for free.
2695         * tests/test-fflush.c (main): Also test fflush-fseeko.
2696
2697 2007-04-25  Bruno Haible  <bruno@clisp.org>
2698
2699         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
2700         * lib/fseeko.c: New file.
2701         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
2702         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
2703         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
2704         gl_FUNC_FSEEKO.
2705         (gl_FUNC_FSEEKO): Invoke it.
2706         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
2707         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
2708         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
2709
2710 2007-04-25  Bruno Haible  <bruno@clisp.org>
2711
2712         * modules/fflush (Depends-on): Add ftello.
2713
2714 2007-04-25  Bruno Haible  <bruno@clisp.org>
2715
2716         * modules/ftello-tests: New file.
2717         * tests/test-ftello.c: New file.
2718
2719         * modules/ftello: New file.
2720         * m4/ftello.m4: New file.
2721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
2722         HAVE_FTELLO.
2723         * lib/stdio_.h (ftello): New declaration.
2724         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
2725         HAVE_FTELLO.
2726
2727 2007-04-25  Bruno Haible  <bruno@clisp.org>
2728
2729         * modules/fseeko-tests: New file.
2730         * tests/test-fseeko.c: New file.
2731
2732         * modules/fseeko: New file.
2733         * m4/fseeko.m4: New file.
2734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
2735         HAVE_FSEEKO.
2736         * lib/stdio_.h (fseeko): New declaration.
2737         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
2738         HAVE_FSEEKO.
2739
2740 2007-04-25  Bruno Haible  <bruno@clisp.org>
2741
2742         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
2743
2744 2007-04-25  Bruno Haible  <bruno@clisp.org>
2745
2746         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
2747         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
2748         * tests/test-unistd.c: Likewise.
2749         * tests/test-fcntl.c: Likewise.
2750
2751 2007-04-23  Eric Blake  <ebb9@byu.net>
2752
2753         * lib/fflush.c: Fix missing include.
2754         Reported by Bruno Haible.
2755
2756 2007-04-23  Bruno Haible  <bruno@clisp.org>
2757
2758         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
2759         Reported by Eric Blake.
2760
2761 2007-04-23  Bruno Haible  <bruno@clisp.org>
2762
2763         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
2764
2765 2007-04-23  Bruno Haible  <bruno@clisp.org>
2766
2767         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
2768
2769 2007-04-23  Bruno Haible  <bruno@clisp.org>
2770
2771         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
2772         Needed on HP-UX 11.
2773
2774 2007-04-16  Eric Blake  <ebb9@byu.net>
2775
2776         Make fflush rely on fpurge.
2777         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
2778         open coding all variants.
2779         * modules/fflush (Depends-on): Add fpurge and unistd.
2780         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
2781         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
2782
2783         Fix --with-tests compilation on cygwin.
2784         * modules/argmatch-tests (Makefile.am): List gnulib library first
2785         in LDADD.
2786         * modules/argp-tests (Makefile.am): Likewise.
2787         * modules/array-list-tests (Makefile.am): Likewise.
2788         * modules/array-oset-tests (Makefile.am): Likewise.
2789         * modules/avltree-list-tests (Makefile.am): Likewise.
2790         * modules/avltree-oset-tests (Makefile.am): Likewise.
2791         * modules/avltreehash-list-tests (Makefile.am): Likewise.
2792         * modules/carray-list-tests (Makefile.am): Likewise.
2793         * modules/dirname-tests (Makefile.am): Likewise.
2794         * modules/frexp-tests (Makefile.am): Likewise.
2795         * modules/isnanl-tests (Makefile.am): Likewise.
2796         * modules/linked-list-tests (Makefile.am): Likewise.
2797         * modules/linkedhash-list-tests (Makefile.am): Likewise.
2798         * modules/lock-tests (Makefile.am): Likewise.
2799         * modules/rbtree-list-tests (Makefile.am): Likewise.
2800         * modules/rbtree-oset-tests (Makefile.am): Likewise.
2801         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
2802         * modules/tls-tests (Makefile.am): Likewise.
2803         * modules/tsearch-tests (Makefile.am): Likewise.
2804         * modules/xvasprintf-tests (Makefile.am): Likewise.
2805
2806         Fix fpurge for cygwin.
2807         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
2808         value.
2809         * modules/fpurge-tests (Depends-on): Clean up trash.
2810
2811 2007-04-16  Simon Josefsson  <simon@josefsson.org>
2812
2813         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
2814
2815         * m4/autobuild.m4: Re-indent.
2816
2817 2007-04-13  Bruno Haible  <bruno@clisp.org>
2818
2819         * modules/fpurge-tests: New file.
2820         * tests/test-fpurge.c: New file.
2821
2822         * modules/fpurge: New file.
2823         * lib/fpurge.h: New file.
2824         * lib/fpurge.c: New file.
2825         * m4/fpurge.m4: New file.
2826
2827 2007-04-13  Bruno Haible  <bruno@clisp.org>
2828
2829         * modules/fbufmode-tests: New file.
2830         * tests/test-fbufmode.c: New file.
2831
2832         * modules/fbufmode: New file.
2833         * lib/fbufmode.h: New file.
2834         * lib/fbufmode.c: New file.
2835         * m4/fbufmode.m4: New file.
2836
2837 2007-04-13  Bruno Haible  <bruno@clisp.org>
2838
2839         * modules/fwritable-tests: New file.
2840         * tests/test-fwritable.c: New file.
2841
2842         * modules/fwritable: New file.
2843         * lib/fwritable.h: New file.
2844         * lib/fwritable.c: New file.
2845         * m4/fwritable.m4: New file.
2846
2847 2007-04-13  Bruno Haible  <bruno@clisp.org>
2848
2849         * modules/freadable-tests: New file.
2850         * tests/test-freadable.c: New file.
2851
2852         * modules/freadable: New file.
2853         * lib/freadable.h: New file.
2854         * lib/freadable.c: New file.
2855         * m4/freadable.m4: New file.
2856
2857 2007-04-13  Bruno Haible  <bruno@clisp.org>
2858
2859         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
2860         MOSTLYCLEANFILES.
2861
2862 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
2863
2864         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
2865         gzip bootstrap.conf to avoid dragging in i18n machinery.
2866         (gnulib_tool_option): Use it.
2867
2868 2007-04-13  Bruno Haible  <bruno@clisp.org>
2869
2870         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
2871         %F directives.
2872         * tests/test-vasprintf-posix.c (test_function): Likewise.
2873         * tests/test-snprintf-posix.h (test_function): Likewise.
2874         * tests/test-sprintf-posix.h (test_function): Likewise.
2875         * tests/test-fprintf-posix.h (test_function): Likewise.
2876         * tests/test-printf-posix.h (test_function): Likewise.
2877         * tests/test-fprintf-posix.out: Likewise.
2878
2879 2007-04-13  Bruno Haible  <bruno@clisp.org>
2880
2881         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
2882         * modules/tls-tests (configure.ac): Likewise.
2883         Reported by Arto C. Nirkko <anirkko@insel.ch>.
2884
2885 2007-04-13  Bruno Haible  <bruno@clisp.org>
2886
2887         * lib/tls.c (glthread_tls_get): Fix return type.
2888         Patch by Arto C. Nirkko <anirkko@insel.ch>.
2889
2890 2007-04-12  Eric Blake  <ebb9@byu.net>
2891
2892         * modules/gettime (Depends-on): Remove gettime.
2893         Reported by Dmitry V. Levin.
2894
2895 2007-04-12  Bruno Haible  <bruno@clisp.org>
2896
2897         * modules/fflush (Include): Mention <stdio.h>.
2898         * modules/strtoimax (Include): Mention <inttypes.h>.
2899         * modules/strtoumax (Include): Likewise.
2900
2901 2007-04-12  Eric Blake  <ebb9@byu.net>
2902
2903         * .cvsignore: New file.
2904         * .gitignore: Likewise.
2905
2906 2007-04-12  Bruno Haible  <bruno@clisp.org>
2907
2908         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
2909         not before, since $(LDADD) often contains libgnu.a.
2910         * modules/striconv-tests (test_striconv_LDADD): Likewise.
2911         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
2912         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
2913         Needed on Cygwin.
2914
2915 2007-04-12  Eric Blake  <ebb9@byu.net>
2916
2917         Work around glibc's failure to flush stdin on fclose.
2918         * lib/closein.c (close_stdin): Flush stdin before closing.
2919
2920         Work around glibc's failure to reset seekable stdin on exit.
2921         * modules/closein: New module.
2922         * lib/closein.c: New file.
2923         * lib/closein.h: Likewise.
2924         * m4/closein.m4: Likewise.
2925         * MODULES.html.sh (File stream based Input/Output): Document it.
2926
2927 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2928
2929         * gnulib-tool: Rename generated 'autobuild' script to
2930         'do-autobuild' in --create-megatestdir output.
2931
2932         * doc/gnulib.texi (Build robot for gnulib): Fix.
2933
2934 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2935
2936         * modules/sysexits (Depends-on): Add absolute-header.
2937
2938 2007-04-12  Eric Blake  <ebb9@byu.net>
2939
2940         No need to preserve errno on success.
2941         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
2942         Reported by Bruno Haible.
2943
2944 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2945
2946         * MODULES.html.sh (Support for maintaining and releasing
2947         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
2948
2949 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2950
2951         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
2952
2953 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2954
2955         * modules/autobuild: New module.
2956
2957         * m4/autobuild.m4: New file.
2958
2959 2007-04-11  Bruno Haible  <bruno@clisp.org>
2960
2961         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
2962         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
2963         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
2964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
2965         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2966         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2967         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2969         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2970         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
2972         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2973         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
2975         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2976         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
2978         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2979         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2980         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
2981         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2982         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
2984         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2985         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
2987         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2988         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2989         Reported by Eric Blake.
2990
2991 2007-04-11  Bruno Haible  <bruno@clisp.org>
2992
2993         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
2994
2995 2007-04-10  Bruno Haible  <bruno@clisp.org>
2996
2997         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
2998         for NaN and Infinity. Needed on FreeBSD 6.1.
2999         * tests/test-vasnprintf-posix.c (test_function): Undo last change
3000         regarding results for "%010a" of Infinity and NaN.
3001         * tests/test-vasprintf-posix.c (test_function): Likewise.
3002         * tests/test-snprintf-posix.h (test_function): Likewise.
3003         * tests/test-sprintf-posix.h (test_function): Likewise.
3004         * tests/test-fprintf-posix.h (test_function): Likewise.
3005         * tests/test-printf-posix.h (test_function): Likewise.
3006         * tests/test-fprintf-posix.out: Likewise.
3007
3008 2007-04-10  Bruno Haible  <bruno@clisp.org>
3009
3010         * modules/locale-tests: New file.
3011         * tests/test-locale.c: New file.
3012
3013         * modules/locale: New file.
3014         * lib/locale_.h: New file.
3015         * m4/locale_h.m4: New file.
3016
3017 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
3018             Bruno Haible  <bruno@clisp.org>
3019
3020         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
3021         be determined, test for availability of the copysignf, copysign,
3022         copysignl functions.
3023         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
3024         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
3025         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
3026
3027 2007-04-09  Eric Blake  <ebb9@byu.net>
3028
3029         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
3030         * modules/stdio (Makefile.am): Support fflush.
3031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3032         * modules/fflush: New file.
3033         * lib/fflush.c: Likewise.
3034         * m4/fflush.m4: Likewise.
3035         * modules/fflush-tests: New test.
3036         * tests/test-fflush.c: Likewise.
3037         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
3038
3039 2007-04-06  Bruno Haible  <bruno@clisp.org>
3040
3041         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
3042         (VASNPRINTF): Use signbit for faster determination whether to print a
3043         minus sign.
3044         * modules/vasnprintf (Files): Remove lib/float+.h.
3045         * modules/fprintf-posix (Depends-on): Add signbit.
3046         * modules/snprintf-posix (Depends-on): Likewise.
3047         * modules/sprintf-posix (Depends-on): Likewise.
3048         * modules/vasnprintf-posix (Depends-on): Likewise.
3049         * modules/vasprintf-posix (Depends-on): Likewise.
3050         * modules/vfprintf-posix (Depends-on): Likewise.
3051         * modules/vsnprintf-posix (Depends-on): Likewise.
3052         * modules/vsprintf-posix (Depends-on): Likewise.
3053
3054 2007-04-06  Bruno Haible  <bruno@clisp.org>
3055
3056         * tests/test-frexp.c (main): Test also the sign bit of zero results.
3057         * tests/test-frexpl.c (main): Likewise.
3058         * tests/test-ldexpl.c (main): Likewise.
3059         * modules/frexp-tests (Depends-on): Add signbit.
3060         * modules/frexpl-tests (Depdends-on): Likewise.
3061         * modules/ldexpl-tests (Depdends-on): Likewise.
3062
3063 2007-04-06  Bruno Haible  <bruno@clisp.org>
3064
3065         * modules/signbit-tests: New file.
3066         * tests/test-signbit.c: New file.
3067
3068         * modules/signbit: New file.
3069         * lib/signbitf.c: New file.
3070         * lib/signbitd.c: New file.
3071         * lib/signbitl.c: New file.
3072         * m4/signbit.m4: New file.
3073         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
3074         (signbit): New macro.
3075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
3076         REPLACE_SIGNBIT.
3077         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
3078         REPLACE_FREXPL into math.h.
3079
3080 2007-04-06  Bruno Haible  <bruno@clisp.org>
3081
3082         * modules/isnanf-nolibm-tests: New file.
3083         * tests/test-isnanf.c: New file.
3084
3085         * modules/isnanf-nolibm: New file.
3086         * lib/isnanf.h: New file.
3087         * lib/isnanf.c: New file.
3088         * lib/isnan.c: Consider the USE_FLOAT macro.
3089         * m4/isnanf.m4: New file.
3090
3091 2007-04-06  Bruno Haible  <bruno@clisp.org>
3092
3093         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
3094         (Link): New section.
3095
3096         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
3097
3098 2007-04-06  Bruno Haible  <bruno@clisp.org>
3099
3100         Assume the 'long double' type.
3101         * m4/longdouble.m4: Remove file.
3102         * config/srclist.txt: Don't mention longdouble.m4.
3103         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
3104         * lib/float+.h: Likewise.
3105         * lib/frexp.c: Likewise.
3106         * lib/printf-args.h: Likewise.
3107         * lib/printf-args.c: Likewise.
3108         * lib/printf-frexp.c: Likewise.
3109         * lib/printf-parse.c: Likewise.
3110         * lib/vasnprintf.c: Likewise.
3111         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
3112         * m4/intl.m4: Likewise.
3113         * m4/isnanl.m4: Likewise.
3114         * m4/printf.m4: Likewise.
3115         * m4/printf-frexpl.m4: Likewise.
3116         * m4/vasnprintf.m4: Likewise.
3117         * modules/allocsa (Files): Remove m4/longdouble.m4.
3118         * modules/gettext (Files): Likewise.
3119         * modules/relocatable-prog-wrapper (Files): Likewise.
3120         * modules/vasnprintf (Files): Likewise.
3121         * modules/isnanl (Files): Likewise.
3122         (Include): Simplify.
3123         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
3124         (Include): Simplify.
3125         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
3126         (Include): Simplify.
3127         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
3128         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3129         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
3130         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3131         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3132         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3133         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
3134         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3135         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3136         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3137         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
3138         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3139         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
3140         * tests/test-isnanl.c: Likewise.
3141         * tests/test-snprintf-posix.h: Likewise.
3142         * tests/test-sprintf-posix.h: Likewise.
3143         * tests/test-vasnprintf-posix.c: Likewise.
3144         * tests/test-vasnprintf-posix2.c: Likewise.
3145         * tests/test-vasprintf-posix.c: Likewise.
3146
3147 2007-04-06  Bruno Haible  <bruno@clisp.org>
3148
3149         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
3150         * lib/math_.h [__DECC]: Include the overridden include file through
3151         #include_next, outside the double-inclusion guard.
3152         * lib/stdio_.h [__DECC]: Likewise.
3153         * lib/stdlib_.h [__DECC]: Likewise.
3154         * lib/string_.h [__DECC]: Likewise.
3155         * lib/time_.h [__DECC]: Likewise.
3156         * lib/wchar_.h [__DECC]: Likewise.
3157         * lib/wctype_.h [__DECC]: Likewise.
3158         * lib/inttypes_.h [__DECC]: Likewise.
3159         Reported by Albert Chin <china@thewrittenword.com> in
3160         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
3161
3162 2007-04-04  Eric Blake  <ebb9@byu.net>
3163
3164         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
3165         1.5.x.
3166
3167 2007-04-04  Bruno Haible  <bruno@clisp.org>
3168
3169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
3170         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
3171
3172 2007-04-04  Bruno Haible  <bruno@clisp.org>
3173
3174         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
3175         results for "%010a" of Infinity and NaN.
3176         * tests/test-vasprintf-posix.c (test_function): Likewise.
3177         * tests/test-snprintf-posix.h (test_function): Likewise.
3178         * tests/test-sprintf-posix.h (test_function): Likewise.
3179         * tests/test-fprintf-posix.h (test_function): Remove these tests.
3180         * tests/test-printf-posix.h (test_function): Likewise.
3181         * tests/test-fprintf-posix.out: Update.
3182         Needed for FreeBSD 6.1.
3183
3184 2007-04-04  Bruno Haible  <bruno@clisp.org>
3185
3186         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
3187         directly used by the gnulib modules nor by gnulib-tool.
3188
3189 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3190
3191         * DEPENDENCIES: Give overall description of version dependency
3192         desirability.  Use more-typical names for apps.
3193         Add shell, coreutils, diffutils, grep, tar, gzip.
3194
3195 2007-04-04  Simon Josefsson  <simon@josefsson.org>
3196
3197         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
3198
3199 2007-04-04  Karl Berry  <karl@gnu.org>
3200
3201         * MODULES.html.sh (func_module): missing '.
3202
3203 2007-04-03  Bruno Haible  <bruno@clisp.org>
3204
3205         * modules/argmatch-tests (Makefile.am): New variable
3206         test_argmatch_LDADD.
3207         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
3208         * modules/array-list-tests (Makefile.am): New variable
3209         test_array_list_LDADD.
3210         * modules/array-oset-tests (Makefile.am): New variable
3211         test_array_oset_LDADD.
3212         * modules/avltree-list-tests (Makefile.am): New variable
3213         test_avltree_list_LDADD.
3214         * modules/avltree-oset-tests (Makefile.am): New variable
3215         test_avltree_oset_LDADD.
3216         * modules/avltreehash-list-tests (Makefile.am): New variable
3217         test_avltreehash_list_LDADD.
3218         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
3219         test_canonicalize_lgpl_LDADD.
3220         * modules/carray-list-tests (Makefile.am): New variable
3221         test_carray_list_LDADD.
3222         * modules/dirname-tests (Makefile.am): New variable
3223         test_dirname_LDADD.
3224         * modules/linked-list-tests (Makefile.am): New variable
3225         test_linked_list_LDADD.
3226         * modules/linkedhash-list-tests (Makefile.am): New variable
3227         test_linkedhash_list_LDADD.
3228         * modules/rbtree-list-tests (Makefile.am): New variable
3229         test_rbtree_list_LDADD.
3230         * modules/rbtree-oset-tests (Makefile.am): New variable
3231         test_rbtree_oset_LDADD.
3232         * modules/rbtreehash-list-tests (Makefile.am): New variable
3233         test_rbtreehash_list_LDADD.
3234         * modules/xvasprintf-tests (Makefile.am): New variable
3235         test_xvasprintf_LDADD.
3236         Reported by Eric Blake.
3237
3238 2007-04-03  Eric Blake  <ebb9@byu.net>
3239
3240         * DEPENDENCIES: Weaken m4 requirements.
3241
3242 2007-04-03  Bruno Haible  <bruno@clisp.org>
3243
3244         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
3245         * modules/isnanl-tests (configure.ac): Likewise.
3246
3247 2007-04-03  Ben Pfaff  <blp@gnu.org>
3248
3249         * modules/iconv_open: Add $(srcdir)/ to source directory
3250         references in Makefile fragments that call gperf, to fix VPATH
3251         builds.
3252
3253 2007-04-03  Bruno Haible  <bruno@clisp.org>
3254
3255         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
3256         * lib/ldexpl.c: Undo last change.
3257
3258 2007-04-03  Bruno Haible  <bruno@clisp.org>
3259
3260         * modules/printf-frexpl (Depends-on): Undo last change.
3261         (Files): Add m4/ldexpl.m4.
3262
3263 2007-04-03  Bruno Haible  <bruno@clisp.org>
3264
3265         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
3266         * modules/isnanl (Link): New section.
3267
3268         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
3269         * modules/frexp (Link): New section.
3270
3271         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
3272         * modules/frexpl (Link): New section.
3273
3274         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
3275         * modules/ldexpl (Link): New section.
3276
3277 2007-04-03  Bruno Haible  <bruno@clisp.org>
3278
3279         * modules/TEMPLATE-EXTENDED: New file.
3280         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
3281
3282 2007-04-03  Bruno Haible  <bruno@clisp.org>
3283
3284         * DEPENDENCIES: New file.
3285         Suggested by Simon Josefsson.
3286
3287 2007-04-03  Bruno Haible  <bruno@clisp.org>
3288
3289         * doc/gnulib.texi: Escape @.
3290
3291 2007-04-03  James Youngman  <jay@gnu.org>
3292         and Paul Eggert  <eggert@cs.ucla.edu>
3293
3294         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
3295         birthtime on all systems that have birthtime, not just those which
3296         use st_birthtimensec rather than st_birthtim.  Putting zero in
3297         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
3298         that the birth time is not available for files on an NFS mount.
3299
3300 2007-04-03  Simon Josefsson  <simon@josefsson.org>
3301
3302         * modules/memxor: Move back from crypto/, suggested by Bruno.
3303         * modules/crypto/hmac-sha1: Fix memxor dependency.
3304
3305         * modules/crypto/gc: Moved from ../.
3306
3307 2007-04-02  Eric Blake  <ebb9@byu.net>
3308
3309         * lib/ldexpl.c (includes): Avoid libm.
3310
3311         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
3312
3313 2007-04-02  Bruno Haible  <bruno@clisp.org>
3314
3315         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
3316         on IRIX.
3317
3318 2007-04-02  Bruno Haible  <bruno@clisp.org>
3319
3320         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
3321         x86 or x86_64 platforms running MacOS X.
3322         Reported by Ryan Schmidt <@ryandesign.com>.
3323
3324 2007-04-02  Bruno Haible  <bruno@clisp.org>
3325
3326         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
3327         i386.
3328
3329 2007-04-01  Simon Josefsson  <simon@josefsson.org>
3330
3331         * modules/crypto/arcfour: Moved from ../.
3332         * modules/crypto/arcfour-tests: Moved from ../.
3333         * modules/crypto/arctwo: Moved from ../.
3334         * modules/crypto/arctwo-tests: Moved from ../.
3335         * modules/crypto/des: Moved from ../.
3336         * modules/crypto/des-tests: Moved from ../.
3337         * modules/crypto/gc-arcfour: Moved from ../.
3338         * modules/crypto/gc-arcfour-tests: Moved from ../.
3339         * modules/crypto/gc-arctwo: Moved from ../.
3340         * modules/crypto/gc-arctwo-tests: Moved from ../.
3341         * modules/crypto/gc-des: Moved from ../.
3342         * modules/crypto/gc-des-tests: Moved from ../.
3343         * modules/crypto/gc-hmac-md5: Moved from ../.
3344         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
3345         * modules/crypto/gc-hmac-sha1: Moved from ../.
3346         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
3347         * modules/crypto/gc-md2: Moved from ../.
3348         * modules/crypto/gc-md2-tests: Moved from ../.
3349         * modules/crypto/gc-md4: Moved from ../.
3350         * modules/crypto/gc-md4-tests: Moved from ../.
3351         * modules/crypto/gc-md5: Moved from ../.
3352         * modules/crypto/gc-md5-tests: Moved from ../.
3353         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
3354         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
3355         * modules/crypto/gc-random: Moved from ../.
3356         * modules/crypto/gc-rijndael: Moved from ../.
3357         * modules/crypto/gc-rijndael-tests: Moved from ../.
3358         * modules/crypto/gc-sha1: Moved from ../.
3359         * modules/crypto/gc-sha1-tests: Moved from ../.
3360         * modules/crypto/gc-tests: Moved from ../.
3361         * modules/crypto/hmac-md5: Moved from ../.
3362         * modules/crypto/hmac-md5-tests: Moved from ../.
3363         * modules/crypto/hmac-sha1: Moved from ../.
3364         * modules/crypto/hmac-sha1-tests: Moved from ../.
3365         * modules/crypto/md2: Moved from ../.
3366         * modules/crypto/md2-tests: Moved from ../.
3367         * modules/crypto/md4: Moved from ../.
3368         * modules/crypto/md4-tests: Moved from ../.
3369         * modules/crypto/md5: Moved from ../.
3370         * modules/crypto/md5-tests: Moved from ../.
3371         * modules/crypto/memxor: Moved from ../.
3372         * modules/crypto/rijndael: Moved from ../.
3373         * modules/crypto/rijndael-tests: Moved from ../.
3374         * modules/crypto/sha1: Moved from ../.
3375
3376 2007-03-30  James Youngman  <jay@gnu.org>
3377
3378         * tests/test-stat-time.c (prepare_test): use chmod() rather than
3379         rename() to change the ctime of a file (because ctime is unaffected
3380         by rename on jfs2 on AIX 5.1).
3381         (main): Start by doing cleanup, in case a previous run failed leaving
3382         test files behind.
3383
3384 2007-03-31  Bruno Haible  <bruno@clisp.org>
3385
3386         Support old proprietary implementations of iconv.
3387         * modules/iconv_open: New file.
3388         * lib/iconv_.h: New file.
3389         * m4/iconv_h.m4: New file.
3390         * lib/iconv_open.c: New file.
3391         * lib/iconv_open-aix.gperf: New file.
3392         * lib/iconv_open-hpux.gperf: New file.
3393         * lib/iconv_open-irix.gperf: New file.
3394         * lib/iconv_open-osf.gperf: New file.
3395         * m4/iconv_open.m4: New file.
3396         * modules/linebreak (Depends-on): Add iconv_open.
3397         * modules/striconv (Depends-on): Likewise.
3398         * modules/striconveh (Depends-on): Likewise.
3399         * modules/unicodeio (Depends-on): Likewise.
3400         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
3401         (iconv_t)(-1).
3402         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
3403         conversion if cd is (iconv_t)(-1).
3404         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
3405         is not possible.
3406
3407 2007-03-31  Bruno Haible  <bruno@clisp.org>
3408
3409         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3410         work on Solaris either. Protect also second use of "autodetect_jp".
3411
3412 2007-03-31  Bruno Haible  <bruno@clisp.org>
3413
3414         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
3415         the function is not present.
3416
3417 2007-03-31  Bruno Haible  <bruno@clisp.org>
3418
3419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
3420         the function is not present.
3421
3422 2007-03-31  Bruno Haible  <bruno@clisp.org>
3423
3424         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
3425         a bug in HP-UX iconv_open().
3426
3427 2007-03-31  Bruno Haible  <bruno@clisp.org>
3428
3429         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
3430         (Mathematics <math.h>): New section, add fpieee.
3431         (Input/output <stdio.h>): Add fseterr.
3432         (Mathematics <math.h>): New section, add printf-frexp.
3433         (Container data structures): Add sublist.
3434         (Core language properties): Add fpucw, inline.
3435         (Functions for greatest-width integer types <inttypes.h>): Add
3436         imaxabs, imaxdiv, inttypes.
3437         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
3438         isnanl-nolibm, ldexp.
3439         (Mathematics <math.h>): New section, add printf-frexpl.
3440         (Support for systems lacking POSIX:2001): Add fprintf-posix,
3441         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
3442         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
3443         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
3444         (Unicode string functions): Add unistr/u*-mbtoucr.
3445         (Java): Add javacomp-script, javaexec-script.
3446         (C#): Add csharpcomp-script, csharpexec-script.
3447         (Support for building libraries and executables): Add havelib,
3448         relocatable-*.
3449         (Support for maintaining and releasing projects): Renamed from
3450         'Support for maintaining and release projects'. Add announce-gen.
3451
3452 2007-03-31  Bruno Haible  <bruno@clisp.org>
3453
3454         * README: Talk primarily about git.
3455         (git and CVS): Renamed from CVS.
3456         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
3457         gnulib is available through git.
3458         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
3459
3460 2007-03-30  Bruno Haible  <bruno@clisp.org>
3461
3462         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
3463         * lib/poll_.h: Likewise.
3464         * lib/stat_.h: Likewise.
3465         * lib/sys_time_.h: Likewise.
3466         * lib/sysexit_.h: Likewise.
3467         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
3468         * lib/stdbool_.h: Likewise.
3469         * lib/byteswap_.h: Add double-inclusion guard.
3470
3471 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
3472
3473         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
3474
3475 2007-03-30  Karl Berry  <karl@gnu.org>
3476
3477         * config/srclist-update: double space after USA in the license
3478         substitution, since that's how it's usually (?) written.
3479
3480 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3481
3482         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
3483         reported by Bruno Haible.
3484
3485 2007-03-29  Bruno Haible  <bruno@clisp.org>
3486
3487         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
3488         a bug in AIX iconv().
3489
3490 2007-03-29  Bruno Haible  <bruno@clisp.org>
3491
3492         * modules/ldexpl-tests: New file.
3493         * tests/test-ldexpl.c: New file.
3494
3495 2007-03-29  Bruno Haible  <bruno@clisp.org>
3496
3497         * lib/ldexpl.c: Include fpucw.h.
3498         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
3499         multiplication.
3500         * modules/ldexpl (Depends-on): Add fpucw.
3501
3502 2007-03-29  Bruno Haible  <bruno@clisp.org>
3503
3504         * modules/ldexpl: New file.
3505         * m4/ldexpl.m4: New file.
3506         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
3507         set.
3508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
3509         REPLACE_LDEXPL.
3510         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
3511         REPLACE_LDEXPL.
3512         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
3513         gl_FUNC_LDEXPL_WORKS.
3514         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
3515         * modules/mathl (Files): Remove lib/ldexpl.c.
3516         (Depends-on): Add ldexpl.
3517
3518 2007-03-29  Bruno Haible  <bruno@clisp.org>
3519
3520         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
3521
3522 2007-03-29  Bruno Haible  <bruno@clisp.org>
3523
3524         * tests/test-striconveh.c (main): Don't assume that a direct conversion
3525         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
3526         and possibly also HP-UX.
3527         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3528         work on AIX, IRIX, HP-UX, OSF/1.
3529         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3530         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3531         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3532         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3533         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
3534         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3535
3536 2007-03-29  Bruno Haible  <bruno@clisp.org>
3537
3538         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
3539
3540 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
3541
3542         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
3543         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
3544
3545 2007-03-29  Eric Blake  <ebb9@byu.net>
3546
3547         * lib/acl-internal.h: Remove redundant include.
3548         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
3549         Cygwin when a file is locked.
3550
3551 2007-03-29  Bruno Haible  <bruno@clisp.org>
3552
3553         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
3554         file.
3555         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
3556
3557 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
3558
3559         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
3560         try to remove a parent directory if the child couldn't be removed
3561         (except for the first rmdir, which could fail because the child
3562         doesn't exist).  Problem reported by Jeff Blaine in
3563         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
3564
3565 2007-03-28  Bruno Haible  <bruno@clisp.org>
3566
3567         * lib/striconveh.c (utf8conv_carefully): New function.
3568         (mem_cd_iconveh_internal): Invoke it.
3569
3570 2007-03-28  Bruno Haible  <bruno@clisp.org>
3571
3572         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
3573         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
3574         input.
3575         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
3576         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
3577         unistr/u8-uctomb.
3578
3579 2007-03-28  Bruno Haible  <bruno@clisp.org>
3580
3581         * modules/unistr/u8-mbtoucr: New file.
3582         * lib/unistr/u8-mbtoucr.c: New file.
3583         * modules/unistr/u16-mbtoucr: New file.
3584         * lib/unistr/u16-mbtoucr.c: New file.
3585         * modules/unistr/u16-mbtoucr: New file.
3586         * lib/unistr/u16-mbtoucr.c: New file.
3587         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
3588
3589 2007-03-27  Simon Josefsson  <simon@josefsson.org>
3590             Bruno Haible  <bruno@clisp.org>
3591
3592         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
3593         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
3594         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
3595
3596         * m4/stdio_h.m4: Add stubs for vasprintf too.
3597
3598         * modules/stdio: Support vasprintf in sed command.
3599
3600         * modules/vasprintf: Depend on stdio for prototypes.  Remove
3601         vasprintf.h.  Add stdio module indicator.
3602
3603         * lib/stdio_.h: Declare asprintf and vasprintf, based on
3604         vasprintf.h.
3605
3606         * lib/vasprintf.h: File removed.
3607
3608         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
3609         * lib/vasprintf.c: Ditto.
3610         * lib/xvasprintf.c: Ditto.
3611         * tests/test-vasprintf-posix.c: Ditto.
3612         * tests/test-vasprintf.c: Ditto.
3613
3614 2007-03-27  Bruno Haible  <bruno@clisp.org>
3615
3616         Make vasnprintf multithread-safe.
3617         * lib/vasnprintf.c (decimal_point_char): New function.
3618         (VASNPRINTF): Use it.
3619         Suggested by Simon Josefsson.
3620
3621 2007-03-27  Eric Blake  <ebb9@byu.net>
3622
3623         Support sub-second birthtime on cygwin.
3624         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
3625         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
3626         (get_stat_birthtime): Also work with st_birthtim.
3627
3628 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
3629
3630         * lib/stat-time.h (USE_BIRTHTIME): Remove.
3631         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
3632         (get_stat_birthtime_ns): Do not try to use "spare" fields.
3633         (get_stat_birthtime_ns): Simplify compile-time tests.
3634         (get_stat_birthtime): Change the API to look like
3635         get_stat_mtime etc., except return a negative tv_nsec on error.
3636         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3637         Don't check for "spare" fields.
3638         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
3639         or for struct stat.st_birthtime, as these tests aren't used.
3640         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
3641
3642 2007-03-27  Bruno Haible  <bruno@clisp.org>
3643
3644         * lib/stat-time.h: Include <sys/stat.h>.
3645
3646 2007-03-27  James Youngman  <jay@gnu.org>
3647
3648         * lib/stat-time.h (get_stat_birthtime): New function for
3649           retrieving st_birthtime as provided by UFS2 (hence *BSD).
3650         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
3651           and its variants.
3652         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
3653         * modules/stat-time-test: New file.
3654         * tests/test-stat-time.c: New test, devised by Bruno Haible.
3655
3656 2007-03-26  Bruno Haible  <bruno@clisp.org>
3657
3658         Better support of signalling NaNs.
3659         * lib/atanl.c: Include isnanl.h.
3660         (atanl): Perform test for NaN at the beginning of the function and
3661         through a call to isnanl.
3662         * lib/cosl.c: Include isnanl.h.
3663         (cosl): Perform test for NaN at the beginning of the function and
3664         through a call to isnanl.
3665         * lib/ldexpl.c: Include isnanl.h.
3666         (ldexpl): Perform test for NaN through a call to isnanl.
3667         * lib/logl.c: Include isnanl.h.
3668         (logl): Perform test for NaN at the beginning of the function and
3669         through a call to isnanl.
3670         * lib/sinl.c: Include isnanl.h.
3671         (sinl): Perform test for NaN at the beginning of the function and
3672         through a call to isnanl.
3673         * lib/sqrtl.c: Include isnanl.h.
3674         (sqrtl): Perform test for NaN at the beginning of the function and
3675         through a call to isnanl.
3676         * lib/tanl.c: Include isnanl.h.
3677         (tanl): Perform test for NaN at the beginning of the function and
3678         through a call to isnanl.
3679         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
3680         * modules/mathl (Depends-on): Add isnanl.
3681
3682 2007-03-26  Eric Blake  <ebb9@byu.net>
3683
3684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
3685         regression in logic sense of previous patch.
3686
3687 2007-03-26  Bruno Haible  <bruno@clisp.org>
3688
3689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
3690         unportable shell command "if ! ...".
3691         Reported by Ralf Wildenhues.
3692
3693 2007-03-25  Bruno Haible  <bruno@clisp.org>
3694
3695         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
3696         <sysexits.h> file, and only add EX_CONFIG.
3697         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
3698         absolute file name and whether it is sufficient. Substitute also
3699         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
3700         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
3701         ABSOLUTE_SYSEXITS_H into sysexits.h.
3702
3703 2007-03-25  Bruno Haible  <bruno@clisp.org>
3704
3705         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
3706         hints is NULL.
3707
3708 2007-03-25  Bruno Haible  <bruno@clisp.org>
3709
3710         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
3711         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
3712
3713 2007-03-25  Bruno Haible  <bruno@clisp.org>
3714
3715         * lib/vasnprintf.c: Include langinfo.h.
3716         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
3717         multithread-safe.
3718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
3719         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
3720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3721         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3722         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3723         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3724         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
3726         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3727         Reported by Simon Josefsson.
3728
3729 2007-03-25  Bruno Haible  <bruno@clisp.org>
3730
3731         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
3732         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
3733         * modules/vasnprintf (Depends-on): Add stdint.
3734
3735 2007-03-25  Bruno Haible  <bruno@clisp.org>
3736
3737         * modules/fpieee: New file.
3738         * m4/fpieee.m4: New file.
3739         * modules/isnan-nolibm (Depends-on): Add fpieee.
3740         * modules/isnanl-nolibm (Depends-on): Add fpieee.
3741         * modules/isnanl (Depends-on): Add fpieee.
3742
3743 2007-03-25  Bruno Haible  <bruno@clisp.org>
3744
3745         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
3746
3747 2007-03-25  Bruno Haible  <bruno@clisp.org>
3748
3749         Avoid test failures on IRIX 6.5.
3750         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
3751         (main): Use it.
3752         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
3753         macros.
3754         (main): Use them.
3755
3756 2007-03-25  Bruno Haible  <bruno@clisp.org>
3757
3758         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
3759         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
3760         exists but doesn't work.
3761         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
3762         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
3763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
3764         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
3765
3766 2007-03-25  Bruno Haible  <bruno@clisp.org>
3767
3768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
3769         returns inf. Needed on IRIX 6.5.
3770
3771 2007-03-25  Bruno Haible  <bruno@clisp.org>
3772
3773         * tests/test-frexpl.c: Include isnanl-nolibm.h.
3774         (main): Use isnanl instead of x != x idiom.
3775         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
3776
3777         * tests/test-frexp.c: Include isnan.h.
3778         (main): Use isnan instead of x != x idiom.
3779         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
3780
3781 2007-03-25  Bruno Haible  <bruno@clisp.org>
3782
3783         * tests/test-frexp.c (NaN): New function/macro.
3784         (main): Use it instead of 0.0 / 0.0.
3785         * tests/test-isnan.c (NaN): New function/macro.
3786         (main): Use it instead of 0.0 / 0.0.
3787         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
3788         (test_function): Use it instead of 0.0 / 0.0.
3789         * tests/test-vasprintf-posix.c (NaN): New function/macro.
3790         (test_function): Use it instead of 0.0 / 0.0.
3791         * tests/test-snprintf-posix.h (NaN): New function/macro.
3792         (test_function): Use it instead of 0.0 / 0.0.
3793         * tests/test-sprintf-posix.h (NaN): New function/macro.
3794         (test_function): Use it instead of 0.0 / 0.0.
3795         * tests/test-fprintf-posix.h (NaN): New function/macro.
3796         (test_function): Use it instead of 0.0 / 0.0.
3797         * tests/test-printf-posix.h (NaN): New function/macro.
3798         (test_function): Use it instead of 0.0 / 0.0.
3799
3800         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
3801
3802 2007-03-25  Bruno Haible  <bruno@clisp.org>
3803
3804         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
3805
3806 2007-03-25  Bruno Haible  <bruno@clisp.org>
3807
3808         * lib/regexec.c (merge_state_with_log): Make static.
3809
3810 2007-03-25  Bruno Haible  <bruno@clisp.org>
3811
3812         * lib/trigl.c (kernel_rem_pio2): Make static.
3813
3814 2007-03-25  Bruno Haible  <bruno@clisp.org>
3815
3816         * lib/sincosl.c (sincosl_table): Make static.
3817
3818 2007-03-25  Bruno Haible  <bruno@clisp.org>
3819
3820         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
3821         if the compiler does not support C99.
3822
3823 2007-03-25  Bruno Haible  <bruno@clisp.org>
3824
3825         * modules/time (Makefile.am): Ensure all rule action lines start with a
3826         tab.
3827
3828 2007-03-24  Bruno Haible  <bruno@clisp.org>
3829
3830         * modules/tsearch-tests: New file.
3831         * tests/test-tsearch.sh: New file.
3832         * tests/test-tsearch.c: New file, mostly copied from glibc.
3833
3834         * modules/search-tests: New file.
3835         * tests/test-search.c: New file.
3836
3837         * modules/search: New file.
3838         * lib/search_.h: New file, incorporating lib/tsearch.h.
3839         * m4/search_h.m4: New file.
3840         * lib/tsearch.h: Remove file.
3841         * lib/tsearch.c: Include search.h instead of tsearch.h.
3842         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
3843         HAVE_TSEARCH.
3844         * modules/tsearch (Files): Remove lib/tsearch.h.
3845         (Depends-on): Add search.
3846         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
3847         (Include): Change tsearch.h into search.h.
3848
3849 2007-03-24  Bruno Haible  <bruno@clisp.org>
3850
3851         * modules/fpucw: New file.
3852         * lib/fpucw.h: New file.
3853         * lib/frexp.c: Include fpucw.h.
3854         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3855         (FUNC): Use them.
3856         * lib/printf-frexp.c: Include fpucw.h.
3857         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3858         (FUNC): Use them.
3859         * lib/vasnprintf.c: Include fpucw.h.
3860         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
3861         'long double' calculations.
3862         * tests/test-frexpl.c: Include fpucw.h.
3863         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3864         * tests/test-printf-frexpl.c: Include fpucw.h.
3865         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3866         * modules/frexpl (Depends-on): Add fpucw.
3867         * modules/printf-frexpl (Depends-on): Likewise.
3868         * modules/fprintf-posix (Depends-on): Likewise.
3869         * modules/snprintf-posix (Depends-on): Likewise.
3870         * modules/sprintf-posix (Depends-on): Likewise.
3871         * modules/vasnprintf-posix (Depends-on): Likewise.
3872         * modules/vasprintf-posix (Depends-on): Likewise.
3873         * modules/vfprintf-posix (Depends-on): Likewise.
3874         * modules/vsnprintf-posix (Depends-on): Likewise.
3875         * modules/vsprintf-posix (Depends-on): Likewise.
3876         * modules/frexpl-tests (Depends-on): Likewise.
3877         * modules/printf-frexpl-tests (Depends-on): Likewise.
3878
3879 2007-03-24  Bruno Haible  <bruno@clisp.org>
3880
3881         * lib/float+.h: New file.
3882         * lib/isnan.c: Include float+.h.
3883         (SIZE): New macro.
3884         (FUNC): Compare only SIZE bytes of the value.
3885         * lib/vasnprintf.c: Include float+.h.
3886         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
3887         SIZEOF_LDBL or SIZEOF_DBL bytes.
3888         * modules/isnan-nolibm (Files): Add lib/float+.h.
3889         * modules/isnanl-nolibm (Files): Add lib/float+.h.
3890         * modules/isnanl (Files): Add lib/float+.h.
3891         * modules/vasnprintf (Files): Add lib/float+.h.
3892
3893 2007-03-24  Bruno Haible  <bruno@clisp.org>
3894
3895         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
3896         include isnanl-nolibm.h.
3897
3898 2007-03-24  Bruno Haible  <bruno@clisp.org>
3899
3900         * tests/test-read-file.c (main): Don't produce spurious output for
3901         expected situations. Make the test fail if it encountered unexpected
3902         results.
3903
3904 2007-03-24  Bruno Haible  <bruno@clisp.org>
3905
3906         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
3907         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
3908
3909 2007-03-24  Bruno Haible  <bruno@clisp.org>
3910
3911         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
3912
3913 2007-03-24  Bruno Haible  <bruno@clisp.org>
3914
3915         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
3916         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
3917
3918         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
3919         * modules/utf8-ucs4: Turn into a symbolic link to module
3920         unistr/u8-mbtouc.
3921
3922         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
3923         utf8-ucs4-unsafe.
3924         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
3925         unistr/u8-mbtouc-unsafe.
3926
3927         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
3928         * modules/utf16-ucs4: Turn into a symbolic link to module
3929         unistr/u16-mbtouc.
3930
3931         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
3932         utf16-ucs4-unsafe.
3933         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
3934         unistr/u16-mbtouc-unsafe.
3935
3936         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
3937         * modules/ucs4-utf8: Turn into a symbolic link to module
3938         unistr/u8-ubtomb.
3939
3940         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
3941         * modules/ucs4-utf16: Turn into a symbolic link to module
3942         unistr/u16-ubtomb.
3943
3944 2007-03-24  Bruno Haible  <bruno@clisp.org>
3945
3946         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
3947         Enable the function only if HAVE_INLINE.
3948         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
3949         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3950         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
3951         Enable the function only if HAVE_INLINE.
3952         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
3953         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3954         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
3955         Enable the function only if HAVE_INLINE.
3956         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
3957         Enable the function only if HAVE_INLINE.
3958         * modules/utf8-ucs4: Update.
3959         * modules/utf8-ucs4-unsafe: Update.
3960         * modules/utf16-ucs4: Update.
3961         * modules/utf16-ucs4-unsafe: Update.
3962         * modules/ucs4-utf8: Update.
3963         * modules/ucs4-utf16: Update.
3964
3965 2007-03-24  Bruno Haible  <bruno@clisp.org>
3966
3967         * lib/utf8-ucs4.h: Remove file.
3968         * lib/utf8-ucs4-unsafe.h: Remove file.
3969         * lib/utf16-ucs4.h: Remove file.
3970         * lib/utf16-ucs4-unsafe.h: Remove file.
3971         * lib/ucs4-utf8.h: Remove file.
3972         * lib/ucs4-utf16.h: Remove file.
3973         * lib/unistr.h: Include their previous contents.
3974         * m4/utf-ucs4.m4: Remove file.
3975         * m4/ucs4-utf.m4: Remove file.
3976         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
3977         (Depends-on): Add unistr/base.
3978         (configure.ac): Remove gl_UTF_UCS4.
3979         (Makefile.am): Update.
3980         (Include): Change to unistr.h.
3981         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
3982         (Depends-on): Add unistr/base.
3983         (configure.ac): Remove gl_UTF_UCS4.
3984         (Makefile.am): Update.
3985         (Include): Change to unistr.h.
3986         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
3987         (Depends-on): Add unistr/base.
3988         (configure.ac): Remove gl_UTF_UCS4.
3989         (Makefile.am): Update.
3990         (Include): Change to unistr.h.
3991         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
3992         (Depends-on): Add unistr/base.
3993         (configure.ac): Remove gl_UTF_UCS4.
3994         (Makefile.am): Update.
3995         (Include): Change to unistr.h.
3996         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
3997         (Depends-on): Add unistr/base.
3998         (configure.ac): Remove gl_UCS4_UTF.
3999         (Makefile.am): Update.
4000         (Include): Change to unistr.h.
4001         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
4002         (Depends-on): Add unistr/base.
4003         (configure.ac): Remove gl_UCS4_UTF.
4004         (Makefile.am): Update.
4005         (Include): Change to unistr.h.
4006         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
4007         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
4008         utf8-ucs4-unsafe.h.
4009         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
4010         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
4011         utf16-ucs4-unsafe.h.
4012         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
4013         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
4014         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
4015         * lib/unistr/u8-strchr.c: Likewise.
4016         * lib/unistr/u8-strrchr.c: Likewise.
4017         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
4018         * lib/unistr/u16-strchr.c: Likewise.
4019         * lib/unistr/u16-strrchr.c: Likewise.
4020         * lib/striconveh.c: Update.
4021         * lib/linebreak.c: Update.
4022
4023 2007-03-24  Bruno Haible  <bruno@clisp.org>
4024
4025         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
4026         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
4027
4028 2007-03-22  Bruno Haible  <bruno@clisp.org>
4029
4030         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
4031
4032 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4033
4034         * MODULES.html.sh (File system functions): New module write-any-file.
4035         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
4036         * m4/write-any-file.m4: New files.
4037
4038 2007-03-23  Eric Blake  <ebb9@byu.net>
4039
4040         * gnulib-tool: Rearrange space-tab sequences, since some editors
4041         like to eat them.
4042
4043 2007-03-23  Eric Blake  <ebb9@byu.net>
4044
4045         * lib/version-etc.c (version_etc_va): Update license wording to
4046         be more concise.  Recommended by Richard Stallman.
4047
4048 2007-03-22  Bruno Haible  <bruno@clisp.org>
4049
4050         * lib/poll.c (MSG_PEEK): New fallback definition.
4051
4052 2007-03-22  Bruno Haible  <bruno@clisp.org>
4053
4054         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
4055         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
4056         (main): Update.
4057         Fixes a compilation error on BeOS.
4058
4059 2007-03-22  Bruno Haible  <bruno@clisp.org>
4060
4061         * modules/frexpl-tests: New file.
4062         * tests/test-frexpl.c: New file.
4063
4064         * modules/frexpl: New file.
4065         * m4/frexpl.m4: New file.
4066         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
4067         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
4068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
4069         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
4070         (Depends-on): Add frexpl. Remove isnanl-nolibm.
4071         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
4072
4073 2007-03-22  Bruno Haible  <bruno@clisp.org>
4074
4075         * lib/frexpl.c: Share code with lib/frexp.c.
4076         * modules/mathl (Files): Add lib/frexp.c.
4077         (Depends-on): Add isnanl-nolibm.
4078
4079 2007-03-22  Bruno Haible  <bruno@clisp.org>
4080
4081         * modules/printf-frexp (Files): Add m4/frexp.m4.
4082         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
4083         only if the found frexp function actually works.
4084
4085 2007-03-22  Bruno Haible  <bruno@clisp.org>
4086
4087         * lib/frexp.c: Remove older implementation that uses divisions.
4088
4089 2007-03-21  Bruno Haible  <bruno@clisp.org>
4090
4091         * modules/frexp-tests: New file.
4092         * tests/test-frexp.c: New file.
4093
4094         * modules/frexp: New file.
4095         * lib/frexp.c: New file.
4096         * m4/frexp.m4: New file.
4097         * lib/math_.h (frexp): New declaration.
4098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
4099         REPLACE_FREXP.
4100         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
4101
4102 2007-03-21  Bruno Haible  <bruno@clisp.org>
4103
4104         * modules/isnanl-tests: New file.
4105         * tests/test-isnanl.c: New file.
4106
4107         * modules/isnanl: New file.
4108         * lib/isnanl.h: New file.
4109         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
4110         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
4111         gl_FUNC_ISNANL_WORKS.
4112         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
4113         New macros.
4114
4115 2007-03-21  Bruno Haible  <bruno@clisp.org>
4116
4117         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
4118         lib/isnanl.h.
4119         (Include): Update.
4120         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
4121         * lib/vasnprintf.c: Update.
4122         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
4123         tests/test-isnanl.h, remove tests/test-isnanl.c.
4124         (Makefile.am): Update.
4125         * tests/test-isnanl-nolibm.c: New file.
4126         * tests/test-isnanl.h: New file.
4127         * tests/test-isnanl.c: Remove file.
4128
4129 2007-03-21  Jim Meyering  <jim@meyering.net>
4130
4131         When trying to open ".", treat ESTALE like EACCES.
4132         * lib/savewd.c (savewd_save): Resort to forking not just upon
4133         failure with EACCES, but also when errno is ESTALE.
4134
4135 2007-03-20  Bruno Haible  <bruno@clisp.org>
4136
4137         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
4138         Needed on AIX 5.1. Reported by Matthew Woehlke.
4139
4140 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4141
4142         Suggestions by Bruno Haible:
4143         * lib/acl-internal.h: Include "gettext.h" rather than rolling
4144         our own.
4145         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
4146         * modules/acl (Depends-on): Add gettext.
4147
4148 2007-03-19  Bruno Haible  <bruno@clisp.org>
4149
4150         * modules/iconvme: Remove file.
4151         * lib/iconvme.h: Remove file.
4152         * lib/iconvme.c: Remove file.
4153         * m4/iconvme.m4: Remove file.
4154
4155 2007-03-19  Bruno Haible  <bruno@clisp.org>
4156
4157         * doc/relocatable-maint.texi: Break long shell script line.
4158         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4159
4160 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4161
4162         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
4163         handle file_has_acl.
4164         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
4165         * lib/acl.c: Move header inclusions and related macro defns into
4166         lib/acl-internal.h.
4167         (S_ISLNK): Remove defn, since that's now done for us.
4168         (file_has_acl): Move to lib/file-has-acl.c.
4169         Call acl_trivial if available.  This is the crucial part of the fix.
4170         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
4171         shared within the library.  Rewrite a bit, partly to make it compatible
4172         with the GNU coding style.
4173         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
4174         Remove unnecessary double-quotes.
4175         Don't test for acl_to_text; the build will catch that.
4176         Replace acl_entries if it doesn't exist and it is needed.
4177         Check for -lsec and acl_trivial (as used on Solaris 10).
4178         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
4179         lib/file-has-acl.c.
4180         (Depends-on): Add sys_stat, for S_ISLNK.
4181
4182 2007-03-19  Ben Pfaff  <blp@gnu.org>
4183
4184         * doc/gnulib.texi: Fix typos.
4185         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4186
4187 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4188
4189         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
4190         If size is zero here, buf must be zero.
4191
4192 2007-03-19  Simon Josefsson  <simon@josefsson.org>
4193
4194         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
4195         <bruno@clisp.org>.
4196
4197 2007-03-18  Bruno Haible  <bruno@clisp.org>
4198
4199         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
4200         Suggested by Eric Blake.
4201
4202 2007-03-18  Ben Pfaff  <blp@gnu.org>
4203
4204         * doc/relocatable.texi: Recommend using as prefix a directory
4205         that does not exist and will never be created.  Based on
4206         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
4207         and others.
4208
4209 2007-03-17  Bruno Haible  <bruno@clisp.org>
4210
4211         * lib/fchownat.c: Include lchown.h.
4212
4213 2007-03-17  Bruno Haible  <bruno@clisp.org>
4214
4215         Fix endless loop when the given allocated size was > INT_MAX.
4216         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
4217         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
4218         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
4219         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
4220         * lib/sprintf.c (sprintf): Likewise.
4221
4222 2007-03-17  Bruno Haible  <bruno@clisp.org>
4223
4224         * tests/test-argp-2.sh (func_compare): Output a context diff.
4225
4226 2007-03-17  Bruno Haible  <bruno@clisp.org>
4227
4228         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
4229         locale's decimal-point character.
4230
4231 2007-03-17  Bruno Haible  <bruno@clisp.org>
4232
4233         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
4234         before comparing it. Needed because on some platforms (e.g. x86) a
4235         'long double' occupies less bytes than sizeof (long double).
4236
4237 2007-03-17  Bruno Haible  <bruno@clisp.org>
4238
4239         * tests/test-crc.c (main): Make printf statements 64-bit clean.
4240         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
4241         * tests/test-getaddrinfo.c (simple): Likewise.
4242         * tests/test-read-file.c (main): Likewise.
4243
4244 2007-03-17  Bruno Haible  <bruno@clisp.org>
4245
4246         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
4247
4248 2007-03-17  Bruno Haible  <bruno@clisp.org>
4249
4250         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
4251         unused variable.
4252
4253 2007-03-17  Bruno Haible  <bruno@clisp.org>
4254
4255         * tests/test-c-strcasecmp.c: Include c-strcase.h.
4256         * tests/test-c-strncasecmp.c: Likewise.
4257
4258 2007-03-17  Bruno Haible  <bruno@clisp.org>
4259
4260         * modules/stdlib (Depends-on): Add unistd.
4261         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
4262         Needed for MacOS X 10.3.
4263
4264 2007-03-17  Bruno Haible  <bruno@clisp.org>
4265
4266         * lib/unistr/u-strdup.h: Include <stdlib.h>.
4267
4268 2007-03-17  Bruno Haible  <bruno@clisp.org>
4269
4270         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
4271
4272 2007-03-17  Bruno Haible  <bruno@clisp.org>
4273
4274         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
4275         to reflect files copied from gnulib (with or without modifications).
4276         Suggested by Jim Meyering.
4277
4278 2007-03-17  Eric Blake  <ebb9@byu.net>
4279
4280         * NEWS: Document stdlib change from 2007-02-18.
4281
4282 2007-03-17  Jim Meyering  <jim@meyering.net>
4283
4284         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
4285         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
4286         someone uses a name containing shell meta-characters.
4287         Reported by Alfred M. Szmidt.
4288
4289         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
4290
4291 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
4292
4293         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
4294         and copy gettext configuration files only if configure.ac contains
4295         a use of AM_GNU_GETTEXT_VERSION.
4296
4297 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
4298
4299         * build-aux/bootstrap (gnulib_name): New variable.
4300         (gnulib_tool_options): Use it.
4301
4302 2007-03-13  Simon Josefsson  <simon@josefsson.org>
4303
4304         * tests/test-des.c: Use new namespace.
4305
4306 2007-03-15  Bruno Haible  <bruno@clisp.org>
4307
4308         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
4309         Reported by James Youngman <jay@gnu.org>.
4310
4311 2007-03-15  Bruno Haible  <bruno@clisp.org>
4312
4313         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
4314         declared prototype. Needed with cc on OSF/1 5.1.
4315
4316 2007-03-15  Bruno Haible  <bruno@clisp.org>
4317
4318         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
4319         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
4320         (struct gl_list_implementation): Add dispose_fn argument to the
4321         'create_empty', 'create' methods.
4322         (struct gl_list_impl_base): Add field 'dispose_fn'.
4323         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
4324         argument.
4325         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
4326         dispose_fn argument.
4327         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
4328         dispose_fn on the dropped values.
4329         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
4330         dispose_fn argument.
4331         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
4332         dropped values.
4333         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
4334         (gl_tree_remove_node): Call dispose_fn on the dropped value.
4335         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
4336         (gl_tree_remove_node): Call dispose_fn on the dropped value.
4337         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
4338         argument.
4339         (gl_tree_list_free): Call dispose_fn on the dropped values.
4340         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
4341         the dropped values.
4342         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4343         Add dispose_fn argument.
4344         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
4345         Call dispose_fn on the dropped values.
4346         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
4347         Add dispose_fn argument.
4348         (gl_sublist_create): Initialize the 'dispose_fn' field.
4349         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
4350         * tests/test-array_list.c (main): Update.
4351         * tests/test-carray_list.c (main): Update.
4352         * tests/test-avltree_list.c (main): Update.
4353         * tests/test-rbtree_list.c (main): Update.
4354         * tests/test-avltreehash_list.c (main): Update.
4355         * tests/test-rbtreehash_list.c (main): Update.
4356         * tests/test-linked_list.c (main): Update.
4357         * tests/test-linkedhash_list.c (main): Update.
4358         * tests/test-array_oset.c (main): Update.
4359
4360 2007-03-15  Bruno Haible  <bruno@clisp.org>
4361
4362         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
4363         (gl_oset_create_empty): Add dispose_fn argument.
4364         (struct gl_oset_implementation): Add dispose_fn argument to
4365         'create_empty' method.
4366         (struct gl_oset_impl_base): Add dispose_fn field.
4367         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
4368         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
4369         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
4370         values.
4371         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
4372         (gl_tree_oset_free): Call dispose_fn on the dropped values.
4373         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4374         dropped value.
4375         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4376         dropped value.
4377         * tests/test-array_oset.c (main): Update.
4378         * tests/test-avltree_oset.c (main): Update.
4379         * tests/test-rbtree_oset.c (main): Update.
4380         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
4381
4382 2007-03-13  Bruno Haible  <bruno@clisp.org>
4383
4384         * tests/test-stdbool.c (i): Update after last patch.
4385
4386 2007-03-12  Bruno Haible  <bruno@clisp.org>
4387
4388         * lib/quotearg.c: Include <wctype.h> early, before the definition of
4389         the iswprint macro. Needed on Solaris 2.5.1.
4390
4391 2007-03-12  Bruno Haible  <bruno@clisp.org>
4392
4393         * tests/test-printf-frexp.c (main): Declare x as volatile.
4394
4395 2007-03-12  Simon Josefsson  <simon@josefsson.org>
4396
4397         * doc/gnulib.texi (Build robot for gnulib): New section.
4398
4399 2007-03-12  Jim Meyering  <jim@meyering.net>
4400
4401         * build-aux/bootstrap: New file.
4402         * build-aux/bootstrap.conf: New file, from coreutils.
4403
4404 2007-03-11  Bruno Haible  <bruno@clisp.org>
4405
4406         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
4407
4408 2007-03-12  Simon Josefsson  <simon@josefsson.org>
4409
4410         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
4411         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
4412         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
4413
4414 2007-03-11  Bruno Haible  <bruno@clisp.org>
4415
4416         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
4417         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
4418
4419 2007-03-11  Bruno Haible  <bruno@clisp.org>
4420
4421         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
4422         formula. Needed for SunPRO C 5.0.
4423
4424 2007-03-11  Bruno Haible  <bruno@clisp.org>
4425
4426         * modules/long-options (Depends-on): Add getopt.
4427
4428 2007-03-11  Bruno Haible  <bruno@clisp.org>
4429
4430         * modules/modechange (Depends-on): Add stdbool.
4431
4432 2007-03-11  Bruno Haible  <bruno@clisp.org>
4433
4434         * modules/i-ring (Depends-on): Add stdbool.
4435
4436 2007-03-11  Bruno Haible  <bruno@clisp.org>
4437
4438         * modules/gc-des (Depends-on): Add stdbool.
4439
4440 2007-03-11  Bruno Haible  <bruno@clisp.org>
4441
4442         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
4443
4444 2007-03-11  Bruno Haible  <bruno@clisp.org>
4445
4446         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
4447
4448 2007-03-11  Bruno Haible  <bruno@clisp.org>
4449
4450         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
4451
4452 2007-03-11  Bruno Haible  <bruno@clisp.org>
4453
4454         * lib/vasnprintf.c (sprintf): Undefine.
4455
4456 2007-03-11  Bruno Haible  <bruno@clisp.org>
4457
4458         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
4459         initializers in SunPRO C and Compaq C compilers.
4460
4461 2007-03-11  Bruno Haible  <bruno@clisp.org>
4462
4463         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
4464         decrementing code ANSI C compliant.
4465
4466 2007-03-11  Bruno Haible  <bruno@clisp.org>
4467
4468         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
4469         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
4470
4471 2007-03-11  Bruno Haible  <bruno@clisp.org>
4472
4473         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
4474         <stdbool.h> substitute doesn't pass.
4475
4476 2007-03-11  Bruno Haible  <bruno@clisp.org>
4477
4478         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
4479
4480 2007-03-11  Bruno Haible  <bruno@clisp.org>
4481
4482         * gnulib-tool (func_create_megatestdir): Create also an autobuild
4483         script, for submission to autobuild.josefsson.org.
4484
4485 2007-03-10  Bruno Haible  <bruno@clisp.org>
4486
4487         * modules/canonicalize-lgpl-tests: New file.
4488         * tests/test-canonicalize-lgpl.sh: New file.
4489         * tests/test-canonicalize-lgpl.c: New file.
4490
4491         * modules/c-strcase-tests: New file.
4492         * tests/test-c-strcase.sh: New file.
4493         * tests/test-c-strcasecmp.c: New file.
4494         * tests/test-c-strncasecmp.c: New file.
4495
4496         * modules/atexit-tests: New file.
4497         * tests/test-atexit.sh: New file.
4498         * tests/test-atexit.c: New file.
4499
4500 2007-03-10  Bruno Haible  <bruno@clisp.org>
4501
4502         * tests/test-binary-io.sh: Use temporary filenames that are not so
4503         likely to clash with those of other tests (in a parallel make).
4504         * tests/test-binary-io.c: Likewise.
4505
4506 2007-03-10  Bruno Haible  <bruno@clisp.org>
4507
4508         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
4509         fallback; use #error instead.
4510         Suggested by Simon Josefsson.
4511
4512 2007-03-10  Bruno Haible  <bruno@clisp.org>
4513
4514         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
4515         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
4516         first and the last.
4517
4518 2007-03-10  Bruno Haible  <bruno@clisp.org>
4519
4520         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
4521
4522 2007-03-10  Bruno Haible  <bruno@clisp.org>
4523
4524         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
4525         "make distcheck".
4526         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
4527         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
4528         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
4529
4530 2007-03-10  Bruno Haible  <bruno@clisp.org>
4531
4532         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
4533         variable.
4534         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
4535         variable.
4536
4537 2007-03-09  Eric Blake  <ebb9@byu.net>
4538         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
4539
4540         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
4541         types are not being provided by gnulib.
4542         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
4543         types are supported.
4544
4545 2007-03-10  Bruno Haible  <bruno@clisp.org>
4546
4547         * lib/stdio_.h (__attribute__): New macro.
4548         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
4549         vsprintf): Specify __attribute__ __format__ for GCC.
4550         Suggested by Eric Blake.
4551
4552 2007-03-09  Bruno Haible  <bruno@clisp.org>
4553
4554         * modules/printf-posix-tests: New file.
4555         * tests/test-printf-posix.sh: New file.
4556         * tests/test-printf-posix.c: New file.
4557
4558         * modules/printf-posix: New file.
4559         * lib/printf.c: New file.
4560         * m4/printf-posix-rpl.m4: New file.
4561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
4562         REPLACE_PRINTF.
4563         * lib/stdio_.h (printf): New declaration.
4564         (format, __format__, ____printf____, ____scanf____, ____strftime____,
4565         ____strfmon____): New macros.
4566         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
4567         REPLACE_PRINTF.
4568
4569 2007-03-09  Bruno Haible  <bruno@clisp.org>
4570
4571         * tests/test-vasnprintf-posix2.sh: New file.
4572         * tests/test-vasnprintf-posix2.c: New file.
4573         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
4574         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
4575         (Makefile.am): Activate test-vasnprintf-posix2.sh.
4576
4577         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
4578         a locale dependent decimal point, rather than always '.'.
4579
4580 2007-03-09  Eric Blake  <ebb9@byu.net>
4581
4582         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
4583         spite of platforms like Tandem/NSK that define it to -1.
4584
4585 2007-03-08  Bruno Haible  <bruno@clisp.org>
4586
4587         * modules/vprintf-posix-tests: New file.
4588         * tests/test-vprintf-posix.sh: New file.
4589         * tests/test-vprintf-posix.c: New file.
4590         * tests/test-printf-posix.h: New file.
4591
4592         * modules/vprintf-posix: New file.
4593         * lib/vprintf.c: New file.
4594         * m4/vprintf-posix.m4: New file.
4595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
4596         REPLACE_VPRINTF.
4597         * lib/stdio_.h (vprintf): New declaration.
4598         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
4599         REPLACE_VPRINTF.
4600
4601 2007-03-08  Bruno Haible  <bruno@clisp.org>
4602
4603         * modules/fprintf-posix-tests: New file.
4604         * tests/test-fprintf-posix.sh: New file.
4605         * tests/test-fprintf-posix.c: New file.
4606
4607         * modules/fprintf-posix: New file.
4608         * lib/fprintf.c: New file.
4609         * m4/fprintf-posix.m4: New file.
4610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
4611         REPLACE_FPRINTF.
4612         * lib/stdio_.h (fprintf): New declaration.
4613         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
4614         REPLACE_FPRINTF.
4615
4616 2007-03-08  Bruno Haible  <bruno@clisp.org>
4617
4618         * modules/vfprintf-posix-tests: New file.
4619         * tests/test-vfprintf-posix.sh: New file.
4620         * tests/test-vfprintf-posix.c: New file.
4621         * tests/test-fprintf-posix.h: New file.
4622         * tests/test-fprintf-posix.out: New file.
4623
4624         * modules/vfprintf-posix: New file.
4625         * lib/vfprintf.c: New file.
4626         * m4/vfprintf-posix.m4: New file.
4627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
4628         REPLACE_VFPRINTF.
4629         * lib/stdio_.h (vfprintf): New declaration.
4630         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
4631         REPLACE_VFPRINTF.
4632
4633 2007-03-08  Bruno Haible  <bruno@clisp.org>
4634
4635         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
4636
4637 2007-03-08  Bruno Haible  <bruno@clisp.org>
4638
4639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
4640         instead of 'expr' invocations.
4641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4646         Suggested by Paul Eggert.
4647
4648 2007-03-08  Bruno Haible  <bruno@clisp.org>
4649
4650         * modules/fseterr-tests: New file.
4651         * tests/test-fseterr.c: New file.
4652
4653         * modules/fseterr: New file.
4654         * lib/fseterr.h: New file.
4655         * lib/fseterr.c: New file.
4656
4657 2007-03-08  Bruno Haible  <bruno@clisp.org>
4658
4659         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
4660         * lib/getopt_.h: Likewise.
4661         * lib/mbswidth.h: Likewise.
4662         * lib/setenv.h: Likewise.
4663         * lib/vasnprintf.h: Likewise.
4664         * lib/vasprintf.h: Likewise.
4665         * lib/verror.h: Likewise.
4666         * lib/xsetenv.h: Likewise.
4667         * lib/xvasprintf.h: Likewise.
4668
4669 2007-03-08  Jim Meyering  <jim@meyering.net>
4670
4671         * users.txt: Add parted.
4672
4673         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
4674
4675 2007-03-07  Bruno Haible  <bruno@clisp.org>
4676
4677         * m4/printf.m4: Make the shell script snippets copy&pastable.
4678
4679 2007-03-02  Bruno Haible  <bruno@clisp.org>
4680
4681         * lib/netinet_in_.h: New file.
4682         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
4683         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
4684         * modules/netinet_in (Files): Add lib/netinet_in_.h.
4685         (Depends-on): Add absolute-header.
4686         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
4687         into netinet/in.h.
4688
4689 2007-03-03  Bruno Haible  <bruno@clisp.org>
4690
4691         * lib/sys_select_.h: New file.
4692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
4693         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
4694         * modules/sys_select (Files): Add lib/sys_select_.h.
4695         (Depends-on): Add absolute-header.
4696         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
4697         into sys/select.h.
4698
4699 2007-03-02  Bruno Haible  <bruno@clisp.org>
4700
4701         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
4702         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
4703         values.
4704         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
4705         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
4706         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
4707         * modules/sys_socket (Depends-on): Add absolute-header.
4708         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
4709         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
4710         (Include): Remove requirement of inclusion of <sys/types.h>.
4711
4712 2007-03-02  Bruno Haible  <bruno@clisp.org>
4713
4714         * lib/byteswap_.h (bswap_32): Fix formula.
4715
4716 2007-03-06  Bruno Haible  <bruno@clisp.org>
4717
4718         * modules/sprintf-posix-tests: New file.
4719         * tests/test-sprintf-posix.c: New file.
4720
4721         * modules/sprintf-posix: New file.
4722         * lib/sprintf.c: New file.
4723         * m4/sprintf-posix.m4: New file.
4724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
4725         REPLACE_SPRINTF.
4726         * lib/stdio_.h (sprintf): New declaration.
4727         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
4728         REPLACE_SPRINTF.
4729
4730 2007-03-06  Bruno Haible  <bruno@clisp.org>
4731
4732         * modules/vsprintf-posix-tests: New file.
4733         * tests/test-vsprintf-posix.c: New file.
4734         * tests/test-sprintf-posix.h: New file.
4735
4736         * modules/vsprintf-posix: New file.
4737         * lib/vsprintf.c: New file.
4738         * m4/vsprintf-posix.m4: New file.
4739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
4740         REPLACE_VSPRINTF.
4741         * lib/stdio_.h (vsprintf): New declaration.
4742         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
4743         REPLACE_VSPRINTF.
4744
4745 2007-03-06  Bruno Haible  <bruno@clisp.org>
4746
4747         * modules/vsnprintf (Depend-on): Remove minmax.
4748
4749 2007-03-06  Bruno Haible  <bruno@clisp.org>
4750
4751         * modules/snprintf-posix-tests: New file.
4752         * tests/test-snprintf-posix.c: New file.
4753
4754         * modules/snprintf-posix: New file.
4755         * m4/snprintf-posix.m4: New file.
4756         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
4757         gl_FUNC_SNPRINTF.
4758         (gl_FUNC_SNPRINTF): Invoke it.
4759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
4760         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
4761         is set.
4762         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
4763
4764 2007-03-06  Bruno Haible  <bruno@clisp.org>
4765
4766         * modules/vsnprintf-posix-tests: New file.
4767         * tests/test-vsnprintf-posix.c: New file.
4768         * tests/test-snprintf-posix.h: New file.
4769
4770         * modules/vsnprintf-posix: New file.
4771         * m4/vsnprintf-posix.m4: New file.
4772         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
4773         gl_FUNC_VSNPRINTF.
4774         (gl_FUNC_VSNPRINTF): Invoke it.
4775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
4776         * lib/stdio_.h (vsnprintf): Define as a replacement if
4777         REPLACE_VSNPRINTF is set.
4778         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
4779
4780 2007-03-06  Bruno Haible  <bruno@clisp.org>
4781
4782         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
4783         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
4784
4785 2007-03-06  Bruno Haible  <bruno@clisp.org>
4786
4787         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
4788         (asinl): Declare also if HAVE_DECL_ASINL is set.
4789         (atanl): Declare also if HAVE_DECL_ATANL is set.
4790         (ceill): Declare also if HAVE_DECL_CEILL is set.
4791         (cosl): Declare also if HAVE_DECL_COSL is set.
4792         (expl): Declare also if HAVE_DECL_EXPL is set.
4793         (floorl): Declare also if HAVE_DECL_FLOORL is set.
4794         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
4795         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
4796         (logl): Declare also if HAVE_DECL_LOGL is set.
4797         (sinl): Declare also if HAVE_DECL_SINL is set.
4798         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
4799         (tanl): Declare also if HAVE_DECL_TANL is set.
4800         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
4801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
4802         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
4803         declaration of frexpl, ldexpl.
4804         * modules/printf-frexpl (Depends-on): Add math.
4805         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
4806
4807 2007-03-05  Bruno Haible  <bruno@clisp.org>
4808
4809         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
4810         frexpl and ldexpl are declared.
4811         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
4812
4813 2007-03-05  Bruno Haible  <bruno@clisp.org>
4814
4815         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
4816         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
4817
4818 2007-03-05  Bruno Haible  <bruno@clisp.org>
4819
4820         * lib/stdio_.h: Include <stddef.h>.
4821
4822 2007-03-05  Bruno Haible  <bruno@clisp.org>
4823
4824         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
4825
4826 2007-03-05  Bruno Haible  <bruno@clisp.org>
4827
4828         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
4829         NetBSD 4, from Ralf Wildenhues.
4830
4831 2007-03-04  Bruno Haible  <bruno@clisp.org>
4832
4833         * lib/vasprintf.h: Update #if logic for the case when the functions
4834         exist but are overridden.
4835
4836 2007-03-04  Bruno Haible  <bruno@clisp.org>
4837
4838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
4839         implementations: glibc-2.4 and MacOS X 10.3.
4840         * tests/test-vasnprintf-posix.c (test_function): Test also the case
4841         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
4842         * tests/test-vasprintf-posix.c (test_function): Likewise.
4843
4844 2007-03-04  Bruno Haible  <bruno@clisp.org>
4845
4846         * modules/vasprintf-posix-tests: New file.
4847         * tests/test-vasprintf-posix.c: New file.
4848
4849         * modules/vasprintf-posix: New file.
4850         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
4851         defined.
4852         * m4/vasprintf-posix.m4: New file.
4853         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
4854         gl_FUNC_VASPRINTF.
4855         (gl_FUNC_VASPRINTF): Invoke it.
4856         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
4857         here.
4858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
4859
4860 2007-03-04  Bruno Haible  <bruno@clisp.org>
4861
4862         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
4863         REPLACE_GETTIMEOFDAY.
4864         * modules/sys_time (Makefile.am): Likewise.
4865         * m4/sys_time_h.m4: Likewise.
4866         * m4/gettimeofday.m4: Likewise.
4867
4868 2007-03-04  Bruno Haible  <bruno@clisp.org>
4869
4870         * modules/vasnprintf-posix-tests: New file.
4871         * tests/test-vasnprintf-posix.c: New file.
4872
4873         * modules/vasnprintf-posix: New file.
4874         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
4875         printf-frexpl.h.
4876         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
4877         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
4878         REPLACE_VASNPRINTF is defined.
4879         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
4880         gl_FUNC_VASNPRINTF.
4881         (gl_FUNC_VASNPRINTF): Invoke it.
4882         * m4/vasnprintf-posix.m4: New file.
4883         * m4/printf.m4: New file.
4884
4885 2007-03-04  Bruno Haible  <bruno@clisp.org>
4886
4887         Compile progreloc.c only if --enable-relocatable is specified.
4888         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
4889         if --enable-relocatable was specified.
4890         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
4891         lib_SOURCES.
4892
4893 2007-03-04  Jim Meyering  <jim@meyering.net>
4894
4895         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
4896         Use it consistently, rather than enumerating errno constants.
4897
4898 2007-03-04  Bruno Haible  <bruno@clisp.org>
4899
4900         * modules/xvasprintf-tests: New file.
4901         * tests/test-xvasprintf.c: New file.
4902
4903         * modules/vasprintf-tests: New file.
4904         * tests/test-vasprintf.c: New file.
4905
4906         * modules/vasnprintf-tests: New file.
4907         * tests/test-vasnprintf.c: New file.
4908
4909         * modules/vsnprintf-tests: New file.
4910         * tests/test-vsnprintf.c: New file.
4911
4912         * modules/snprintf-tests: New file.
4913         * tests/test-snprintf.c: New file.
4914
4915 2007-03-04  Bruno Haible  <bruno@clisp.org>
4916
4917         Compile relocatable.c only if --enable-relocatable is specified.
4918         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
4919         gl_RELOCATABLE_LIBRARY.
4920         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
4921         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
4922         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
4923         gl_RELOCATABLE_LIBRARY.
4924         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
4925         (Makefile.am): Remove lib_SOURCES.
4926         * modules/relocatable-lib-lgpl (configure.ac): Invoke
4927         gl_RELOCATABLE_LIBRARY.
4928         (Makefile.am): Remove lib_SOURCES.
4929         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
4930         always.
4931         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4932         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
4933
4934 2007-03-04  Bruno Haible  <bruno@clisp.org>
4935
4936         * modules/argmatch-tests: New file.
4937         * tests/test-argmatch.c: New file.
4938
4939         * tests/test-allocsa.c (main): Halve the number of loop runs.
4940
4941         * modules/alloca-opt-tests: New file.
4942         * tests/test-alloca-opt.c: New file.
4943
4944 2007-03-04  Jim Meyering  <jim@meyering.net>
4945
4946         Work around difference between Linux ACLs and Solaris 10 ZFS.
4947         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
4948         for EINVAL.
4949
4950 2007-03-03  Bruno Haible  <bruno@clisp.org>
4951
4952         * modules/relocatable-prog (Depends-on): Add back progreloc's
4953         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
4954
4955 2007-03-03  Bruno Haible  <bruno@clisp.org>
4956
4957         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
4958         * modules/relocatable-lib: New file.
4959
4960 2007-03-03  Bruno Haible  <bruno@clisp.org>
4961
4962         * modules/relocatable-prog: Renamed from modules/relocatable.
4963         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
4964
4965 2007-03-03  Bruno Haible  <bruno@clisp.org>
4966
4967         * modules/relocatable-script (Files): Add doc/relocatable.texi,
4968         m4/relocatable-lib.m4.
4969         (Depends-on): Remove 'relocatable'.
4970         (configure.ac): Add gl_RELOCATABLE_NOP.
4971
4972 2007-03-03  Bruno Haible  <bruno@clisp.org>
4973
4974         * modules/relocatable-prog-wrapper: New file.
4975         * modules/relocatable (Depends-on): Add it. Remove all other
4976         dependencies except progname.
4977         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
4978
4979         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
4980         (gl_FUNC_STRERROR): Nop.
4981         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
4982
4983         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
4984         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
4985
4986         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
4987         (gl_FUNC_READLINK): Update.
4988
4989         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
4990
4991 2007-03-03  Bruno Haible  <bruno@clisp.org>
4992
4993         * lib/xreadlink.c: Include <unistd.h> unconditionally.
4994         * modules/xreadlink (Depends-on): Add unistd.
4995         * modules/xreadlink-with-size (Depends-on): Likewise.
4996
4997 2007-03-03  Bruno Haible  <bruno@clisp.org>
4998
4999         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
5000         extracted from gt_FUNC_SETENV.
5001         (gt_FUNC_SETENV): Remove macro.
5002         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
5003         remove gt_FUNC_SETENV.
5004
5005 2007-03-03  Bruno Haible  <bruno@clisp.org>
5006
5007         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
5008         ENABLE_RELOCATABLE here.
5009         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
5010
5011 2007-03-03  Bruno Haible  <bruno@clisp.org>
5012
5013         * modules/rbtreehash-list-tests (Depends-on): Add progname.
5014         * tests/test-rbtreehash_list.c: Include progname.h.
5015         (main): Call set_program_name.
5016
5017         * modules/rbtree-oset-tests (Depends-on): Add progname.
5018         * tests/test-rbtree_oset.c: Include progname.h.
5019         (main): Call set_program_name.
5020
5021         * modules/rbtree-list-tests (Depends-on): Add progname.
5022         * tests/test-rbtree_list.c: Include progname.h.
5023         (main): Call set_program_name.
5024
5025         * modules/linked-list-tests (Depends-on): Add progname.
5026         * tests/test-linked_list.c: Include progname.h.
5027         (main): Call set_program_name.
5028
5029 2007-03-03  Bruno Haible  <bruno@clisp.org>
5030
5031         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
5032         All uses of __restrict changed to _Restrict_.
5033         * lib/glob_.h (__restrict): Remove macro.
5034
5035 2007-03-02  Bruno Haible  <bruno@clisp.org>
5036
5037         * modules/gettext (configure.ac): Require gettext infrastructure
5038         from version 0.16.1.
5039
5040 2007-03-02  Bruno Haible  <bruno@clisp.org>
5041
5042         * modules/linkedhash-list-tests (Depends-on): Add progname.
5043         * tests/test-linkedhash_list.c: Include progname.h.
5044         (main): Call set_program_name.
5045
5046         * modules/carray-list-tests (Depends-on): Add progname.
5047         * tests/test-carray_list.c: Include progname.h.
5048         (main): Call set_program_name.
5049
5050         * modules/avltreehash-list-tests (Depends-on): Add progname.
5051         * tests/test-avltreehash_list.c: Include progname.h.
5052         (main): Call set_program_name.
5053
5054         * modules/avltree-oset-tests (Depends-on): Add progname.
5055         * tests/test-avltree_oset.c: Include progname.h.
5056         (main): Call set_program_name.
5057
5058         * modules/avltree-list-tests (Depends-on): Add progname.
5059         * tests/test-avltree_list.c: Include progname.h.
5060         (main): Call set_program_name.
5061
5062         * modules/array-oset-tests (Depends-on): Add progname.
5063         * tests/test-array_oset.c: Include progname.h.
5064         (main): Call set_program_name.
5065
5066         * modules/array-list-tests (Depends-on): Add progname.
5067         * tests/test-array_list.c: Include progname.h.
5068         (main): Call set_program_name.
5069
5070         * modules/argp-tests (Depends-on): Add progname.
5071         * tests/test-argp.c: Include argp.h first. Include progname.h.
5072         (main): Call set_program_name.
5073
5074 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         * doc/gnulib-tool.texi (Initial import): Reword description of
5077         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
5078         limited effect even if defined after the first system include.
5079
5080 2007-03-01  Bruno Haible  <bruno@clisp.org>
5081
5082         * build-aux/config.libpath: Update to libtool-1.5.22.
5083         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5084
5085 2007-03-01  Bruno Haible  <bruno@clisp.org>
5086
5087         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
5088         foo_CFLAGS.
5089         Reported by Ralf Wildenhues.
5090
5091 2007-03-01  Bruno Haible  <bruno@clisp.org>
5092
5093         * build-aux/install-reloc: Remove object files left over by some
5094         compilers.
5095         Reported by Ralf Wildenhues.
5096
5097 2007-03-01  Bruno Haible  <bruno@clisp.org>
5098
5099         * build-aux/install-reloc: Break long lines.
5100
5101 2007-03-01  Bruno Haible  <bruno@clisp.org>
5102
5103         * doc/relocatable.texi: Document that it may not work on OpenBSD.
5104         Reported by Ralf Wildenhues.
5105
5106 2007-03-01  Bruno Haible  <bruno@clisp.org>
5107
5108         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
5109         include ordering constraints.
5110
5111 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
5112
5113         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
5114         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
5115         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
5116         as another example.
5117         * lib/time_.h: Fix misspelling.
5118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5119         Require gl_HEADER_TIME_H_DEFAULTS.
5120         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
5121         * m4/time_r.m4 (gl_TIME_R): Likewise.
5122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
5123
5124 2007-03-01  Bruno Haible  <bruno@clisp.org>
5125
5126         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
5127         * m4/utimens.m4 (gl_UTIMENS): Likewise.
5128
5129 2007-03-01  Jim Meyering  <jim@meyering.net>
5130
5131         * modules/xreadlink (Maintainer): Add my name.
5132         * modules/xreadlink-with-size (Depends-on): Alphabetize.
5133
5134 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
5135             Bruno Haible  <bruno@clisp.org>
5136
5137         * build-aux/install-reloc: Compile also c-ctype.c.
5138         * build-aux/relocatable.sh.in: New file.
5139         * doc/relocatable.texi: New file.
5140         * doc/relocatable-maint.texi: New file.
5141         * doc/gnulib.texi: Include relocatable-maint.texi.
5142         * lib/progreloc.c: Include unistd.h unconditionally.
5143         * lib/relocwrapper.c: Include unistd.h unconditionally.
5144         Include c-ctype.h.
5145         (add_dotbin): Use c_tolower.
5146         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
5147         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
5148         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
5149         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
5150         to m4/relocatable-lib.m4.
5151         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
5152         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
5153         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
5154         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
5155         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
5156         * modules/relocatable: New file.
5157         * modules/relocatable-lib: New file.
5158         * modules/relocatable-script: New file.
5159
5160 2007-02-28  Bruno Haible  <bruno@clisp.org>
5161
5162         Import --enable-relocatable infrastructure.
5163         * build-aux/config.libpath: New file, from GNU gettext.
5164         * build-aux/install-reloc: New file, from GNU gettext.
5165         * build-aux/reloc-ldflags: New file, from GNU gettext.
5166         * lib/relocatable.h: New file, from GNU gettext.
5167         * lib/relocatable.c: New file, from GNU gettext.
5168         * lib/relocwrapper.c: New file, from GNU gettext.
5169         * m4/relocatable.m4: New file, from GNU gettext.
5170
5171 2007-02-28  Bruno Haible  <bruno@clisp.org>
5172
5173         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
5174
5175         * modules/xreadlink: New file, from GNU gettext with modifications.
5176         * lib/xreadlink.c: New file, from GNU gettext.
5177         * lib/xreadlink.h: Add comments.
5178         (xreadlink): New declaration.
5179
5180         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
5181         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
5182         lib/xreadlink-with-size.c.
5183         (configure.ac): Remove gl_XREADLINK invocation.
5184         (Makefile.am): Augment lib_SOURCES.
5185         * m4/xreadlink.m4: Remove file.
5186         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
5187         (xreadlink_with_size): Renamed from xreadink.
5188         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
5189         * modules/canonicalize (Depends-on): Replace xreadlink with
5190         xreadlink-with-size.
5191         * lib/canonicalize.c (canonicalize_filename_mode): Update.
5192
5193 2007-02-25  Jim Meyering  <jim@meyering.net>
5194
5195         * build-aux/announce-gen: When complaining about excess arguments,
5196         list them.
5197
5198 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5199
5200         * README: Document signed integer overflow situation more
5201         accurately.
5202
5203 2007-02-25  Bruno Haible  <bruno@clisp.org>
5204
5205         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
5206         'a' or 'A' conversion.
5207
5208 2007-02-25  Bruno Haible  <bruno@clisp.org>
5209
5210         * modules/filename: Renamed from modules/pathname.
5211         (Files): Replace lib/pathname.h with lib/filename.h. Replace
5212         lib/concatpath.c with lib/concat-filename.c.
5213         (Makefile.am): Update.
5214         (Include): Replace pathname.h with filename.h.
5215         * lib/filename.h: Renamed from lib/pathname.h.
5216         (concatenated_filename): Renamed from concatenated_pathname.
5217         * lib/concat-filename.c: Renamed from lib/concatpath.c.
5218         (concatenated_filename): Renamed from concatenated_pathname.
5219         * lib/findprog.c: Include filename.h instead of pathname.h.
5220         (find_in_path): Update.
5221         * lib/javacomp.c: Include filename.h instead of pathname.h.
5222         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
5223         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
5224         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
5225         is_oldgcj_14_13_usable, is_javac_usable): Update.
5226         * lib/javaexec.c: Include filename.h instead of pathname.h.
5227         (execute_java_class): Update.
5228         * modules/findprog: Update.
5229         * modules/javacomp: Update.
5230         * modules/javaexec: Update.
5231         * MODULES.html.sh (File system functions): Add 'filename', remove
5232         'pathname'.
5233
5234 2007-02-25  Bruno Haible  <bruno@clisp.org>
5235
5236         * modules/printf-frexpl-tests: New file.
5237         * tests/test-printf-frexpl.c: New file.
5238
5239         * modules/printf-frexpl: New file.
5240         * lib/printf-frexpl.h: New file.
5241         * lib/printf-frexpl.c: New file.
5242         * m4/printf-frexpl.m4: New file.
5243
5244 2007-02-25  Bruno Haible  <bruno@clisp.org>
5245
5246         * modules/printf-frexp-tests: New file.
5247         * tests/test-printf-frexp.c: New file.
5248
5249         * modules/printf-frexp: New file.
5250         * lib/printf-frexp.h: New file.
5251         * lib/printf-frexp.c: New file.
5252         * m4/printf-frexp.m4: New file.
5253
5254 2007-02-25  Bruno Haible  <bruno@clisp.org>
5255
5256         Assume automake >= 1.10 for the tests.
5257         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
5258         * modules/arctwo-tests: Likewise.
5259         * modules/argp-tests: Likewise.
5260         * modules/avltree-list-tests: Likewise.
5261         * modules/avltree-oset-tests: Likewise.
5262         * modules/avltreehash-list-tests: Likewise.
5263         * modules/carray-list-tests: Likewise.
5264         * modules/crc-tests: Likewise.
5265         * modules/des-tests: Likewise.
5266         * modules/gc-arcfour-tests: Likewise.
5267         * modules/gc-arctwo-tests: Likewise.
5268         * modules/gc-des-tests: Likewise.
5269         * modules/gc-hmac-md5-tests: Likewise.
5270         * modules/gc-hmac-sha1-tests: Likewise.
5271         * modules/gc-md2-tests: Likewise.
5272         * modules/gc-md4-tests: Likewise.
5273         * modules/gc-md5-tests: Likewise.
5274         * modules/gc-pbkdf2-sha1-tests: Likewise.
5275         * modules/gc-rijndael-tests: Likewise.
5276         * modules/gc-sha1-tests: Likewise.
5277         * modules/gc-tests: Likewise.
5278         * modules/getaddrinfo-tests: Likewise.
5279         * modules/hmac-md5-tests: Likewise.
5280         * modules/hmac-sha1-tests: Likewise.
5281         * modules/linked-list-tests: Likewise.
5282         * modules/linkedhash-list-tests: Likewise.
5283         * modules/lock-tests: Likewise.
5284         * modules/md2-tests: Likewise.
5285         * modules/md4-tests: Likewise.
5286         * modules/md5-tests: Likewise.
5287         * modules/rbtree-list-tests: Likewise.
5288         * modules/rbtree-oset-tests: Likewise.
5289         * modules/rbtreehash-list-tests: Likewise.
5290         * modules/read-file-tests: Likewise.
5291         * modules/rijndael-tests: Likewise.
5292         * modules/stdint-tests: Likewise.
5293         * modules/tls-tests: Likewise.
5294
5295 2007-02-24  Bruno Haible  <bruno@clisp.org>
5296
5297         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
5298         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
5299         function; instead check whether isnan with a double argument links.
5300         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
5301         function; instead check whether isnan with a 'long double' argument
5302         links.
5303         Reported by Eric Blake <ebb9@byu.net>.
5304
5305 2007-02-24  Bruno Haible  <bruno@clisp.org>
5306
5307         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
5308         defined.
5309         * lib/isnanl.c: Remove all code. Just include isnan.c.
5310         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
5311
5312 2007-02-25  Jim Meyering  <jim@meyering.net>
5313
5314         Avoid conflicting types for 'unsetenv' on FreeBSD.
5315         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
5316         conflicting with FreeBSD's (5.0 and 6.1) function declaration
5317         in stdlib.h.
5318
5319 2007-02-24  Bruno Haible  <bruno@clisp.org>
5320
5321         * modules/isnanl-nolibm-tests: New file.
5322         * tests/test-isnanl.c: New file.
5323
5324         * modules/isnanl-nolibm: New file.
5325         * lib/isnanl.h: New file.
5326         * lib/isnanl.c: New file.
5327         * m4/isnanl.m4: New file.
5328
5329 2007-02-24  Bruno Haible  <bruno@clisp.org>
5330
5331         * modules/isnan-nolibm-tests: New file.
5332         * tests/test-isnan.c: New file.
5333
5334         * modules/isnan-nolibm: New file.
5335         * lib/isnan.h: New file.
5336         * lib/isnan.c: New file.
5337         * m4/isnan.m4: New file.
5338
5339 2007-02-24  Bruno Haible  <bruno@clisp.org>
5340
5341         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
5342         assume that an exponent fits in 20 bits.
5343
5344 2007-02-24  Jim Meyering  <jim@meyering.net>
5345
5346         * m4/regex.m4: Update the description of the configure-time option,
5347         --without-included-regex, to state accurately what the defaults are,
5348         and perhaps to give people an idea why using this option is risky.
5349
5350 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5351
5352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
5353         loops on small arguments.  This attempts to avoid the problem
5354         Bruno Haible reported for AIX 4.3.2 in
5355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
5356
5357 2007-02-23  Bruno Haible  <bruno@clisp.org>
5358
5359         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
5360         Needed for help2man.
5361
5362 2007-02-23  Karl Berry  <karl@gnu.org>
5363
5364         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
5365         exists, foo.h should be cvs-ignored, not committed.
5366
5367 2007-02-23  Eric Blake  <ebb9@byu.net>
5368
5369         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
5370         * lib/stat-time.h (includes): Likewise.
5371         * lib/utimecmp.c (includes): Likewise.
5372         * lib/utimens.h (includes): Likewise.
5373         * lib/getdate.y (includes): Also include "timespec.h" for use
5374         internal to the module.
5375         * modules/utimens (Depends-on): Revert yesterday's patch.
5376         * modules/nanosleep (Depends-on): Add missing dependency.
5377
5378 2007-02-22  Bruno Haible  <bruno@clisp.org>
5379
5380         * lib/glob.c: Don't include getlogin_r.h.
5381
5382 2007-02-22  Jim Meyering  <jim@meyering.net>
5383
5384         * modules/utimens (Depends-on): Add timespec, required for
5385         utimens.h's inclusion of timespec.h.
5386
5387 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5388
5389         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
5390         long unreadable paths in GNU/Linux.  Problem reported by Andreas
5391         Schwab in
5392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
5393         I'll try to think of a better way to fix the Solaris problem.
5394
5395         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
5396         like glibc; on Solaris 10, it fails with errno == EINVAL.
5397         POSIX says the behavior is unspecified if the first argument is NULL,
5398         so play it safe and never pass NULL to the system getcwd.
5399
5400 2007-02-21  Jim Meyering  <jim@meyering.net>
5401
5402         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
5403         of gettimeofday.  It would conflict with the one now always
5404         provided via sys_time_.h.  Reported by Matthew Woehlke, as
5405         an IRIX 6.5 build failure.
5406
5407 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5408
5409         Minor fixups to port to Solaris 10 with Sun C 5.8.
5410         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
5411         * modules/getcwd (Depends-on): Add dirfd.
5412         * lib/putenv.c (putenv): #undef it.
5413         (rpl_putenv): New decl.
5414         (malloc, free): Include <stdlib.h> rather than prototyping separately.
5415
5416 2007-02-20  Bruno Haible  <bruno@clisp.org>
5417
5418         * modules/stdio-tests: New file.
5419         * tests/test-stdio.c: New file.
5420
5421         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
5422         (Depends-on): Add stdio.
5423         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5424         (Include): Use <stdio.h> instead of vsnprintf.h.
5425         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5426         HAVE_DECL_VSNPRINTF.
5427         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
5428
5429         * modules/snprintf (Files): Remove lib/snprintf.h.
5430         (Depends-on): Add stdio.
5431         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5432         (Include): Use <stdio.h> instead of snprintf.h.
5433         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5434         HAVE_DECL_SNPRINTF.
5435         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
5436         * lib/getaddrinfo.c: Likewise.
5437
5438         * modules/stdio: New file.
5439         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
5440         * lib/snprintf.h: Remove file.
5441         * lib/vsnprintf.h: Remove file.
5442         * lib/.cppi-disable: Remove snprintf.h.
5443         * m4/stdio_h.m4: New file.
5444         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
5445
5446 2007-02-20  Jim Meyering  <jim@meyering.net>
5447
5448         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
5449         used by e.g., mingw.  From Bruno Haible.
5450
5451 2007-02-19  Bruno Haible  <bruno@clisp.org>
5452
5453         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
5454         warnings.
5455         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5456
5457 2007-02-19  Bruno Haible  <bruno@clisp.org>
5458
5459         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
5460         from mingw users.
5461
5462 2007-02-19  Bruno Haible  <bruno@clisp.org>
5463
5464         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
5465         warnings.
5466         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
5467
5468 2007-02-19  Jim Meyering  <jim@meyering.net>
5469
5470         Don't use FD after a successful "fdopendir (fd)".
5471         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
5472         Reset it by calling dirfd on the just-obtained DIR*.
5473
5474         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
5475         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
5476
5477 2007-02-18  Bruno Haible  <bruno@clisp.org>
5478
5479         * lib/readlink.c: Include <unistd.h>.
5480         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
5481         HAVE_READLINK.
5482         * modules/readlink (Depends-on): Add unistd.
5483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5484         (Include): Add <unistd.h>.
5485
5486         * lib/getlogin_r.h: Remove file.
5487         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
5488         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
5489         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
5490         HAVE_DECL_GETLOGIN_R.
5491         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
5492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5493         (Include): Use <unistd.h> instead of getlogin_r.h.
5494
5495         * lib/getcwd.h: Remove file.
5496         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
5497         * lib/xgetcwd.c: Likewise.
5498         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
5499         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
5500         * modules/getcwd (Files): Remove lib/getcwd.h.
5501         (Depends-on): Add unistd.
5502         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5503         (Include): Use <unistd.h> instad of getcwd.h.
5504
5505         * lib/ftruncate.c: Include <unistd.h> first.
5506         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
5507         Set HAVE_FTRUNCATE.
5508         * modules/ftruncate (Depends-on): Add unistd.
5509         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5510
5511         * lib/fchdir.c: Include <unistd.h> first.
5512         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
5513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
5514         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
5515         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5516         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
5517
5518         * lib/dup2.c: Include <unistd.h> first.
5519         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
5520         HAVE_DUP2.
5521         * modules/dup2 (Depends-on): Add unistd.
5522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5523
5524         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
5525         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
5526         REPLACE_CHOWN. Don't define chown as a macro here.
5527         * modules/chown (Depends-on): Add unistd.
5528         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5529
5530         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
5531         Add definition for GL_LINK_WARNING.
5532         (chown, dup2): New declarations.
5533         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
5534         link warning.
5535         (ftruncate): New declaration.
5536         (getcwd): New declaration, taken from old getcwd.h.
5537         (getlogin_r): New declaration, taken from old getlogin_r.h.
5538         (readlink): New declaration.
5539         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
5540         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
5541         (gl_PREREQ_UNISTD): Remove macro.
5542         (gl_UNISTD_MODULE_INDICATOR): New macro.
5543         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
5544         many new variables. Don't set UNISTD_H.
5545         * modules/unistd (Description): Change.
5546         (Depends-on): Add link-warning.
5547         (configure.ac): Update.
5548         (Makefile.am): Create unistd.h always. Substitute many new variables
5549         into it.
5550
5551 2007-02-18  Bruno Haible  <bruno@clisp.org>
5552
5553         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
5554         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
5555         HAVE_GETSUBOPT.
5556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
5557         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
5558         * lib/getsubopt.h: Remove file.
5559         * modules/getsubopt (Files): Remove lib/getsubopt.h.
5560         (Depends-on): Add stdlib.
5561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5562         (Includes): Use <stdlib.h> instead of getsubopt.h.
5563         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
5564         Set HAVE_GETSUBOPT.
5565         * lib/getsubopt.c: Don't include getsubopt.h.
5566
5567 2007-02-18  Bruno Haible  <bruno@clisp.org>
5568
5569         * modules/fchdir (Depends-on): Add dup2.
5570
5571 2007-02-18  Bruno Haible  <bruno@clisp.org>
5572
5573         * lib/stdlib_.h: Handle glibc's special invocation convention
5574         specially.
5575
5576 2007-02-18  Bruno Haible  <bruno@clisp.org>
5577
5578         * modules/stdlib-tests: New file.
5579         * tests/test-stdlib.c: New file.
5580
5581         * modules/mkstemp (Files): Remove lib/mkstemp.h.
5582         (Depends-on): Add stdlib.
5583         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5584         (Includes): Use <stdlib.h> instead of mkstemp.h.
5585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
5586         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
5587         * lib/mkstemp.c: Don't include mkstemp.h.
5588         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
5589         * lib/stdlib--.h: Don't include mkstemp.h.
5590
5591         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
5592         (Depends-on): Add stdlib.
5593         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5594         (Includes): Use <stdlib.h> instead of mkdtemp.h.
5595         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
5596         HAVE_MKDTEMP.
5597         * lib/mkdtemp.c: Don't include mkdtemp.h.
5598         * lib/clean-temp.c: Don't include mkdtemp.h.
5599
5600         * modules/exit (Files): Remove lib/exit.h.
5601         (Depends-on): Add stdlib.
5602         (Makefile.am): Remove lib_SOURCES.
5603         (Include): Use <stdlib.h> instead of exit.h.
5604         * lib/argmatch.c: Don't include exit.h.
5605         * lib/execute.c: Likewise.
5606         * lib/pagealign_alloc.c: Likewise.
5607         * lib/pipe.c: Likewise.
5608         * lib/wait-process.c: Likewise.
5609         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
5610         * lib/exitfail.c: Likewise.
5611         * lib/savewd.c: Likewise.
5612         * lib/xsetenv.c: Likewise.
5613
5614         * modules/stdlib: New file.
5615         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
5616         and extra comments about mkstemp().
5617         * lib/exit.h: Remove file.
5618         * lib/mkdtemp.h: Remove file.
5619         * lib/mkstemp.h: Remove file.
5620         * m4/stdlib_h.m4: New file.
5621         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
5622
5623 2007-02-18  Bruno Haible  <bruno@clisp.org>
5624
5625         * modules/math-tests: New file.
5626         * tests/test-math.c: New file.
5627
5628         * modules/math: New file.
5629         * modules/mathl (Files): Remove lib/mathl.h.
5630         (Depends-on): Add math.
5631         (Makefile.am): Don't mention mathl.h.
5632         (Include): Use <math.h> instead of mathl.h.
5633         * lib/math_.h: New file.
5634         * lib/mathl.h: Remove file.
5635         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
5636         mathl.h.
5637         * lib/asinl.c: Likewise.
5638         * lib/atanl.c: Likewise.
5639         * lib/ceill.c: Likewise.
5640         * lib/cosl.c: Likewise.
5641         * lib/expl.c: Likewise.
5642         * lib/floorl.c: Likewise.
5643         * lib/frexpl.c: Likewise.
5644         * lib/ldexpl.c: Likewise.
5645         * lib/logl.c: Likewise.
5646         * lib/sincosl.c: Likewise.
5647         * lib/sinl.c: Likewise.
5648         * lib/sqrtl.c: Likewise.
5649         * lib/tanl.c: Likewise.
5650         * lib/trigl.c: Likewise.
5651         * m4/math_h.m4: New file.
5652         * MODULES.html.sh (Mathematics): Add math.
5653
5654 2007-02-17  Bruno Haible  <bruno@clisp.org>
5655
5656         * modules/wctype-tests: New file.
5657         * tests/test-wctype.c: New file.
5658
5659         * modules/wchar-tests: New file.
5660         * tests/test-wchar.c: New file.
5661
5662         * modules/unistd-tests: New file.
5663         * tests/test-unistd.c: New file.
5664
5665         * modules/time-tests: New file.
5666         * tests/test-time.c: New file.
5667
5668         * modules/sysexits-tests: New file.
5669         * tests/test-sysexits.c: New file.
5670
5671         * modules/sys_time-tests: New file.
5672         * tests/test-sys_time.c: New file.
5673
5674         * modules/sys_stat-tests: New file.
5675         * tests/test-sys_stat.c: New file.
5676
5677         * modules/sys_socket-tests: New file.
5678         * tests/test-sys_socket.c: New file.
5679
5680         * modules/sys_select-tests: New file.
5681         * tests/test-sys_select.c: New file.
5682
5683         * modules/string-tests: New file.
5684         * tests/test-string.c: New file.
5685
5686         * modules/stdbool-tests: New file.
5687         * tests/test-stdbool.c: New file.
5688
5689         * modules/netinet_in-tests: New file.
5690         * tests/test-netinet_in.c: New file.
5691
5692         * modules/inttypes-tests: New file.
5693         * tests/test-inttypes.c: New file.
5694
5695         * modules/fcntl-tests: New file.
5696         * tests/test-fcntl.c: New file.
5697
5698         * modules/byteswap-tests: New file.
5699         * tests/test-byteswap.c: New file.
5700
5701         * modules/arpa_inet-tests: New file.
5702         * tests/test-arpa_inet.c: New file.
5703
5704 2007-02-17  Bruno Haible  <bruno@clisp.org>
5705
5706         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
5707         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
5708         if the corresponding module is not enabled. Emit link warnings if
5709         the function is used nevertheless.
5710         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
5711         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
5712         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
5713         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
5714         * modules/inttypes (Depends-on): Add link-warning.
5715         (Makefile.am): Copy the contents of build-aux/link-warning.h into
5716         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
5717         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
5718         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
5719         * modules/imaxdiv (configure.ac): Likewise.
5720         * modules/strtoimax (configure.ac): Likewise.
5721         * modules/strtoumax (configure.ac): Likewise.
5722
5723 2007-02-17  Bruno Haible  <bruno@clisp.org>
5724
5725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
5726         gl_STRING_MODULE_INDICATOR_DEFAULTS.
5727         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
5728         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
5729
5730 2007-02-17  Bruno Haible  <bruno@clisp.org>
5731
5732         * modules/link-warning: New file.
5733         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
5734         * lib/string_.h (GL_LINK_WARNING): Remove definition.
5735         * modules/string (Depends-on): Add link-warning.
5736         (Makefile.am): Copy the contents of build-aux/link-warning.h into
5737         string.h.
5738         * MODULES.html.sh (Support for building libraries and executables): Add
5739         link-warning.
5740
5741 2007-02-17  Bruno Haible  <bruno@clisp.org>
5742
5743         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
5744         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
5745         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
5746         long lines.
5747
5748 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
5749             Bruno Haible  <bruno@clisp.org>
5750
5751         * modules/tmpfile: New file.
5752         * lib/tmpfile.c: New file.
5753         * m4/tmpfile.m4: New file.
5754         * MODULES.html.sh (func_all_modules): New section "Input/output".
5755
5756 2007-02-15  Bruno Haible  <bruno@clisp.org>
5757
5758         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
5759         (supports_delete_on_close): New function.
5760         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
5761
5762 2007-02-14  Bruno Haible  <bruno@clisp.org>
5763
5764         * modules/mbspcasecmp-tests: New file.
5765         * tests/test-mbspcasecmp.sh: New file.
5766         * tests/test-mbspcasecmp.c: New file.
5767
5768         New module mbspcasecmp.
5769         * modules/mbspcasecmp: New file.
5770         * lib/mbspcasecmp.c: New file.
5771         * lib/string_.h (strncasecmp): Change warning message.
5772         (mbspcasecmp): New declaration.
5773         * m4/mbspcasecmp.m4: New file.
5774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5775         GNULIB_MBSPCASECMP.
5776         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
5777         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
5778
5779 2007-02-14  Bruno Haible  <bruno@clisp.org>
5780
5781         * modules/mbsncasecmp-tests: New file.
5782         * tests/test-mbsncasecmp.sh: New file.
5783         * tests/test-mbsncasecmp.c: New file.
5784
5785         New module mbsncasecmp.
5786         * modules/mbsncasecmp: New file.
5787         * lib/mbsncasecmp.c: New file.
5788         * lib/string_.h (mbsncasecmp): New declaration.
5789         * m4/mbsncasecmp.m4: New file.
5790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5791         GNULIB_MBSNCASECMP.
5792         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
5793         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
5794
5795 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
5796
5797         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
5798         Verify that it doesn't overlap with our flags.
5799         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
5800         do not have the desired effect in multibyte locales; instead, use
5801         mbscasecmp.
5802         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
5803         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
5804         we don't require GNU fnmatch ourselves (if our users require it, they
5805         should do so explicitly).
5806
5807         Fix regex code so it doesn't rely on strcasecmp.
5808         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
5809         Otherwise, include gnulib's langinfo.h.
5810         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
5811         undesirable behavior in non-C locales.  Instead, rely on localecharset.
5812         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
5813         * modules/regex (FILES): Remove m4/codeset.m4.
5814         (Depends-on): Add localcharset.  Remove strcase.
5815
5816 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5817
5818         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
5819         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5820
5821 2007-02-13  Bruno Haible  <bruno@clisp.org>
5822
5823         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
5824         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5825
5826 2007-02-12  Bruno Haible  <bruno@clisp.org>
5827
5828         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5829         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
5830         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
5831         time warning rather than a link error.
5832
5833 2007-02-12  Bruno Haible  <bruno@clisp.org>
5834
5835         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
5836         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5838
5839 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5840
5841         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
5842         args, not 2.
5843
5844 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5845
5846         New module 'time', so that apps can include <time.h> as per
5847         POSIX and GNU instead of separate include files like time_r.h
5848         and timegm.h.  This implementation tries out a simpler approach
5849         for replacing decls in standard include files (as compared to
5850         the string module), somewhat as an experiment.
5851
5852         * config/srclist.txt: Comment out mktime.c for now.
5853         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
5854         since it doesn't apply any more.  Use generic wording instead.
5855         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
5856         'time'.
5857         * lib/time_.h, m4/time_h.m4, modules/time: New files.
5858         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
5859         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
5860         Don't include <sys/types.h>; no longer needed since we assume C89.
5861         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
5862         * lib/strftime.c: Likewise.
5863         * lib/time_r.c: Likewise.
5864         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
5865         * lib/nanosleep.c: Include <time.h> first, to check interface.
5866         * lib/strptime.c: Likewise.
5867         * lib/time_r.c: Likewise.
5868         * lib/timegm.c: Likewise.
5869         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
5870         needed.
5871         * lib/timegm.c: Don't include timegm.h; no longer needed.
5872         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
5873         time.h now handles any problems in that area.
5874         (struct timespec, nanosleep): Remove; time.h now arranges for these.
5875         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
5876         that time.h defines struct timespec.
5877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
5878         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
5879         handles that.
5880         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
5881         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
5882         needed.  Set REPLACE_LOCALTIME.
5883         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
5884         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
5885         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
5886         nanosleep; time_h.m4 now does that.  Don't require
5887         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
5888         module handles this now.
5889         * modules/getdate (Depends-on): Remove timespec.  Add time.
5890         * modules/nanosleep (Depends-on): Likewise.
5891         * modules/stat-time (Depends-on): Likewise.
5892         * modules/nanosleep (Include): Include time.h, not timespec.h.
5893         * modules/strptime (Files): Remove lib/strptime.h.
5894         (Depends-on): Add extensions, time.
5895         (Include): Include time.h, not strptime.h.
5896         * modules/time_r (Files): Remove lib/time_r.h.
5897         (Depends-on): Add time.
5898         (Include): Include time.h, not time_r.h.
5899         * modules/timegm: Likewise.
5900         * modules/timespec (Description): Now does timespec-related decls
5901         of our own, instead of struct timespec itself.
5902         (Depends-on): Add time; remove extensions.
5903         (Maintainer): Add self.
5904         * modules/utimecmp (Depends-on): Add time; remove timespec.
5905         * modules/utimens (Depends-on): Likewise.
5906         * modules/xnanosleep (Depends-on): Likewise.
5907
5908 2007-02-11  Bruno Haible  <bruno@clisp.org>
5909
5910         * lib/c-strstr.c: Include allocsa.h.
5911         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5912         * lib/c-strcasestr.c: Include allocsa.h.
5913         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5914         * lib/strcasestr.c: Include allocsa.h.
5915         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5916         * lib/mbsstr.c: Include allocsa.h.
5917         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5918         allocsa/freesa instead of malloc/free.
5919         * lib/mbscasestr.c: Include allocsa.h.
5920         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5921         allocsa/freesa instead of malloc/free.
5922         * modules/c-strstr (Depends-on): Add allocsa.
5923         * modules/c-strcasestr (Depends-on): Likewise.
5924         * modules/strcasestr (Depends-on): Likewise.
5925         * modules/mbsstr (Depends-on): Likewise.
5926         * modules/mbscasestr (Depends-on): Likewise.
5927
5928 2007-02-11  Bruno Haible  <bruno@clisp.org>
5929
5930         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
5931
5932         * modules/mbsspn-tests: New file.
5933         * tests/test-mbsspn.sh: New file.
5934         * tests/test-mbsspn.c: New file.
5935
5936 2007-02-11  Bruno Haible  <bruno@clisp.org>
5937
5938         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
5939
5940         * modules/mbspbrk-tests: New file.
5941         * tests/test-mbspbrk.sh: New file.
5942         * tests/test-mbspbrk.c: New file.
5943
5944 2007-02-11  Bruno Haible  <bruno@clisp.org>
5945
5946         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
5947         unneeded cast.
5948
5949         * modules/mbscspn-tests: New file.
5950         * tests/test-mbscspn.sh: New file.
5951         * tests/test-mbscspn.c: New file.
5952
5953 2007-02-11  Bruno Haible  <bruno@clisp.org>
5954
5955         * modules/mbscasecmp-tests: New file.
5956         * tests/test-mbscasecmp.sh: New file.
5957         * tests/test-mbscasecmp.c: New file.
5958
5959 2007-02-11  Bruno Haible  <bruno@clisp.org>
5960
5961         Ensure O(n) worst-case complexity of mbscasestr.
5962         * lib/mbscasestr.c: Include stdbool.h.
5963         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
5964         functions.
5965         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
5966         the bookkeeping indicates that it's worth it.
5967         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
5968
5969         * modules/mbscasestr-tests: New file.
5970         * tests/test-mbscasestr1.c: New file.
5971         * tests/test-mbscasestr2.sh: New file.
5972         * tests/test-mbscasestr2.c: New file.
5973         * tests/test-mbscasestr3.sh: New file.
5974         * tests/test-mbscasestr3.c: New file.
5975         * tests/test-mbscasestr4.sh: New file.
5976         * tests/test-mbscasestr4.c: New file.
5977         * m4/locale-tr.m4: New file.
5978
5979 2007-02-11  Bruno Haible  <bruno@clisp.org>
5980
5981         Ensure O(n) worst-case complexity of mbsstr.
5982         * lib/mbsstr.c: Include stdbool.h.
5983         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
5984         functions.
5985         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
5986         bookkeeping indicates that it's worth it.
5987         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
5988
5989         * modules/mbsstr-tests: New file.
5990         * tests/test-mbsstr1.c: New file.
5991         * tests/test-mbsstr2.sh: New file.
5992         * tests/test-mbsstr2.c: New file.
5993         * tests/test-mbsstr3.sh: New file.
5994         * tests/test-mbsstr3.c: New file.
5995         * m4/locale-fr.m4: New file.
5996
5997 2007-02-11  Bruno Haible  <bruno@clisp.org>
5998
5999         * lib/mbsrchr.c (mbsrchr): Fix bug.
6000
6001         * modules/mbsrchr-tests: New file.
6002         * tests/test-mbsrchr.sh: New file.
6003         * tests/test-mbsrchr.c: New file.
6004
6005 2007-02-11  Bruno Haible  <bruno@clisp.org>
6006
6007         * lib/mbschr.c (mbschr): Fix bug.
6008
6009         * modules/mbschr-tests: New file.
6010         * tests/test-mbschr.sh: New file.
6011         * tests/test-mbschr.c: New file.
6012         * m4/locale-zh.m4: New file.
6013
6014 2007-02-11  Bruno Haible  <bruno@clisp.org>
6015
6016         Support for copying multibyte string iterators.
6017         * lib/mbiter.h: Include <string.h>.
6018         (mbiter_multi_copy): New function.
6019         (mbi_copy): New macro.
6020         * lib/mbuiter.h: Include <string.h>.
6021         (mbuiter_multi_copy): New function.
6022         (mbui_copy): New macro.
6023
6024 2007-02-11  Bruno Haible  <bruno@clisp.org>
6025
6026         New module mbslen.
6027         * modules/mbslen: New file.
6028         * lib/mbslen.c: New file.
6029         * lib/string_.h (mbslen): New declaration.
6030         * m4/mbslen.m4: New file.
6031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6032         GNULIB_MBSLEN.
6033         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
6034         * MODULES.html.sh (Internationalization functions): Add mbslen.
6035
6036 2007-02-11  Bruno Haible  <bruno@clisp.org>
6037
6038         Ensure O(n) worst-case complexity of strcasestr substitute.
6039         * lib/strcasestr.c: Include stdbool.h.
6040         (knuth_morris_pratt): New function.
6041         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6042         bookkeeping indicates that it's worth it.
6043         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
6044
6045         * modules/strcasestr-tests: New file.
6046         * tests/test-strcasestr.c: New file.
6047
6048 2007-02-11  Bruno Haible  <bruno@clisp.org>
6049
6050         Ensure O(n) worst-case complexity of c_strcasestr.
6051         * lib/c-strcasestr.c: Include stdbool.h, string.h.
6052         (knuth_morris_pratt): New function.
6053         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
6054         the bookkeeping indicates that it's worth it.
6055         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
6056
6057         * modules/c-strcasestr-tests: New file.
6058         * tests/test-c-strcasestr.c: New file.
6059
6060 2007-02-11  Bruno Haible  <bruno@clisp.org>
6061
6062         Ensure O(n) worst-case complexity of c_strstr.
6063         * lib/c-strstr.c: Include stdbool.h, string.h.
6064         (knuth_morris_pratt): New function.
6065         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6066         bookkeeping indicates that it's worth it.
6067         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
6068
6069         * lib/c-strstr.c: Complete rewrite for maintainability.
6070
6071         * modules/c-strstr-tests: New file.
6072         * tests/test-c-strstr.c: New file.
6073
6074 2007-02-11  Bruno Haible  <bruno@clisp.org>
6075
6076         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
6077         5.2.1 and earlier, whereby \055 was treated just like the range
6078         delimiter '-'.
6079         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6080
6081 2007-02-08  Bruno Haible  <bruno@clisp.org>
6082
6083         * modules/regex (Depends-on): Add stdbool.
6084         Reported by Dalibor Topic <robilad@kaffe.org>.
6085
6086 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
6087
6088         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
6089         Prefer returning from main to exiting from it.
6090         Remove unnecessary parens after sizeof.
6091
6092 2007-02-05  Bruno Haible  <bruno@clisp.org>
6093
6094         New module mbssep.
6095         * modules/mbssep: New file.
6096         * lib/mbssep.c: New file.
6097         * lib/string_.h (strsep): Add a conditional link warning.
6098         (mbssep): New declaration.
6099         * m4/mbssep.m4: New file.
6100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6101         GNULIB_MBSSEP.
6102         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
6103         * MODULES.html.sh (Internationalization functions): Add mbssep.
6104
6105 2007-02-05  Bruno Haible  <bruno@clisp.org>
6106
6107         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
6108         Optimize search in case of 1 delimiter.
6109
6110 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
6111
6112         * lib/acl.h: Include sys/types.h before sys/acl.h.
6113
6114 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
6115
6116         Merge upstream fix for glibc bugzilla #3957:
6117
6118         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
6119
6120         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6121         bit for RE_HAT_LISTS_NOT_NEWLINE.
6122         (build_charclass_op): Remove bogus comment.
6123
6124 2007-02-05  Simon Josefsson  <simon@josefsson.org>
6125
6126         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
6127
6128 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6129
6130         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
6131         * lib/memmem.c [!defined _LIBC]: Include config.h.
6132
6133 2007-02-04  Bruno Haible  <bruno@clisp.org>
6134
6135         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
6136         warning message.
6137
6138 2007-02-04  Bruno Haible  <bruno@clisp.org>
6139
6140         New module mbstok_r.
6141         * modules/mbstok_r: New file.
6142         * lib/mbstok_r.c: New file.
6143         * lib/string_.h (strtok_r): Change argument names to match the
6144         comments. Add a conditional link warning.
6145         (mbstok_r): New declaration.
6146         * m4/mbstok_r.m4: New file.
6147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6148         GNULIB_MBSTOK_R.
6149         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
6150         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
6151
6152 2007-02-04  Bruno Haible  <bruno@clisp.org>
6153
6154         New module mbsspn.
6155         * modules/mbsspn: New file.
6156         * lib/mbsspn.c: New file.
6157         * lib/string_.h (strspn): Add a conditional link warning.
6158         (mbsspn): New declaration.
6159         * m4/mbsspn.m4: New file.
6160         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6161         GNULIB_MBSSPN.
6162         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
6163         * MODULES.html.sh (Internationalization functions): Add mbsspn.
6164
6165 2007-02-04  Bruno Haible  <bruno@clisp.org>
6166
6167         New module mbspbrk.
6168         * modules/mbspbrk: New file.
6169         * lib/mbspbrk.c: New file.
6170         * lib/string_.h (strpbrk): Add a conditional link warning.
6171         (mbspbrk): New declaration.
6172         * m4/mbspbrk.m4: New file.
6173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6174         GNULIB_MBSPBRK.
6175         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
6176         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
6177
6178 2007-02-04  Bruno Haible  <bruno@clisp.org>
6179
6180         New module mbscspn.
6181         * modules/mbscspn: New file.
6182         * lib/mbscspn.c: New file.
6183         * lib/string_.h (strcspn): Add a conditional link warning.
6184         (mbscspn): New declaration.
6185         * m4/mbscspn.m4: New file.
6186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6187         GNULIB_MBSCSPN.
6188         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
6189         * MODULES.html.sh (Internationalization functions): Add mbscspn.
6190
6191 2007-02-04  Bruno Haible  <bruno@clisp.org>
6192
6193         New module mbscasestr, reduced goal of strcasestr.
6194         * modules/mbscasestr: New file.
6195         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
6196         (mbscasestr): Renamed from strcasestr.
6197         * lib/strcasestr.c: Don't include mbuiter.h.
6198         (strcasestr): Remove support for multibyte locales.
6199         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
6200         Change the conditional link warning.
6201         (mbscasestr): New declaration.
6202         * m4/mbscasestr.m4: New file.
6203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
6204         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
6205         REPLACE_STRCASESTR.
6206         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
6207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6208         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6209         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
6210         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
6211         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6212         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
6213         (Depends-on): Remove mbuiter.
6214         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
6215
6216 2007-02-04  Bruno Haible  <bruno@clisp.org>
6217
6218         Simplify handling of strncasecmp.
6219         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
6220         the conditional link warning.
6221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6222         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
6223         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
6224         * modules/strcase (configure.ac): Don't invoke
6225         gl_STRING_MODULE_INDICATOR.
6226         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
6227
6228 2007-02-04  Bruno Haible  <bruno@clisp.org>
6229
6230         New module mbscasecmp, reduced goal of strcasecmp.
6231         * modules/mbscasecmp: New file.
6232         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
6233         (mbscasecmp): Renamed from strcasecmp.
6234         * lib/strcasecmp.c: Don't include mbuiter.h.
6235         (strcasecmp): Remove support for multibyte locales.
6236         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
6237         Change the conditional link warning.
6238         (mbscasecmp): New declaration.
6239         * m4/mbscasecmp.m4: New file.
6240         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
6241         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
6242         REPLACE_STRCASECMP.
6243         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
6244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6245         GNULIB_MBSCASECMP.
6246         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
6247         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
6248         * modules/strcase (Files): Remove m4/mbrtowc.m4.
6249         (Depends-on): Remove mbuiter.
6250         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
6251
6252 2007-02-04  Bruno Haible  <bruno@clisp.org>
6253
6254         New module mbsstr. Remove module strstr.
6255         * modules/mbsstr: New file.
6256         * modules/strstr: Remove file.
6257         * lib/mbsstr.c: Renamed from lib/strstr.c.
6258         (mbsstr): Renamed from strstr.
6259         * lib/string_.h (strstr): Remove declaration. Change the conditional
6260         link warning.
6261         (mbsstr): New declaration.
6262         * m4/mbsstr.m4: New file.
6263         * m4/strstr.m4: Remove file.
6264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6265         REPLACE_STRSTR.
6266         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
6267         Don't initialize GNULIB_STRSTR.
6268         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
6269         substitute GNULIB_STRSTR and REPLACE_STRSTR.
6270         * MODULES.html.sh (Internationalization functions): Add mbsstr.
6271         (Support for systems lacking ANSI C 89): Remove strstr.
6272
6273 2007-02-04  Bruno Haible  <bruno@clisp.org>
6274
6275         New module mbsrchr.
6276         * modules/mbsrchr: New file.
6277         * lib/mbsrchr.c: New file.
6278         * lib/string_.h (strrchr): Add a conditional link warning.
6279         (mbsrchr): New declaration.
6280         * m4/mbsrchr.m4: New file.
6281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6282         GNULIB_MBSRCHR.
6283         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
6284         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
6285
6286 2007-02-04  Bruno Haible  <bruno@clisp.org>
6287
6288         New module mbschr.
6289         * modules/mbschr: New file.
6290         * lib/mbschr.c: New file.
6291         * lib/string_.h (strchr): Add a conditional link warning.
6292         (mbschr): New declaration.
6293         * m4/mbschr.m4: New file.
6294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6295         GNULIB_MBSCHR.
6296         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
6297         * MODULES.html.sh (Internationalization functions): Add mbschr.
6298
6299 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6300
6301         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
6302
6303         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
6304
6305 2007-02-04  Bruno Haible  <bruno@clisp.org>
6306
6307         New module description section 'configure.ac-early'.
6308         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
6309         (func_get_autoconf_early_snippet): New function.
6310         (func_import, func_create_testdir): Use it. Remove special cases for
6311         modules 'extensions' and 'lock'.
6312         * modules/extensions (configure.ac-early): Require
6313         gl_USE_SYSTEM_EXTENSIONS.
6314         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
6315
6316 2007-02-04  Bruno Haible  <bruno@clisp.org>
6317
6318         Make use of gcj-4.3's -fsource and -ftarget option.
6319         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
6320         and if so try the options -fsource and -ftarget.
6321         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
6322         source_version, ftarget_option, target_version arguments.
6323         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
6324         (is_envjavac_oldgcj_14_14_usable): Renamed from
6325         is_envjavac_gcj_14_14_usable.
6326         (is_envjavac_oldgcj_14_13_usable): Renamed from
6327         is_envjavac_gcj_14_13_usable.
6328         (is_gcj_present): Update.
6329         (is_gcj_43, is_gcj43_usable): New functions.
6330         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
6331         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
6332         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
6333         try the options -fsource and -ftarget.
6334
6335 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
6336
6337         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
6338         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
6339         larger value.
6340
6341 2007-02-03  Jim Meyering  <jim@meyering.net>
6342
6343         Give tools a better chance to allocate space for very large buffers.
6344         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
6345
6346         Make pwd and readlink work also when run with an unreadable parent dir
6347         on systems with openat support.
6348         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
6349         provided getcwd function, even when we have openat support.
6350         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
6351
6352 2007-02-02  Bruno Haible  <bruno@clisp.org>
6353
6354         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6355         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
6356         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
6357         portability problems if one of these functions is only used on specific
6358         platforms.
6359         Reported by Paul Eggert.
6360
6361 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
6362
6363         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
6364         is causing more trouble than it's curing.
6365         * lib/regex_internal.h (__mempcpy): Remove.
6366         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
6367         (and make the code a tad smaller to boot).
6368         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
6369
6370 2007-02-02  Jim Meyering  <jim@meyering.net>
6371
6372         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
6373         section, not in the Makefile.am: one.
6374
6375 2007-02-02  Eric Blake  <ebb9@byu.net>
6376
6377         * lib/strchrnul.c: Always include config.h first.
6378
6379         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
6380         gnulib strstr is not necessary here.
6381
6382 2007-02-02  Simon Josefsson  <simon@josefsson.org>
6383
6384         * m4/socklen.m4: Fix typo.
6385
6386 2007-02-02  Eric Blake  <ebb9@byu.net>
6387
6388         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
6389         * modules/netinet_in (Makefile.am): Likewise.
6390
6391 2007-02-01  Bruno Haible  <bruno@clisp.org>
6392
6393         * lib/string_.h (GL_LINK_WARNING): New macro.
6394         (strcasecmp, strstr, strcasestr): If provided by the system,
6395         conditionally define as a macro that leads to a warning instead of to
6396         an error.
6397         (strncasecmp): Conditionally define as a macro that leads to a warning.
6398
6399 2007-02-01  Karl Berry  <karl@gnu.org>
6400
6401         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
6402
6403 2007-02-01  Bruno Haible  <bruno@clisp.org>
6404
6405         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
6406         renamings.
6407
6408 2007-02-01  Eric Blake  <ebb9@byu.net>
6409
6410         * modules/regex (Depends-on): Revert dependence on mempcpy.
6411         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
6412         module's definition of mempcpy.
6413         Reported by Paul Eggert.
6414
6415 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
6416
6417         * lib/string_.h: If the gnulib module XYZ is not present, undefine
6418         the symbol XYZ before redefining it.  This fixes a problem with
6419         programs that don't use XYZ, when compiled on systems that define
6420         XYZ to something else.
6421
6422 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
6423
6424         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
6425         occurs when "mkdir -m foo" creates a setgid directory that is (1)
6426         writeable to group or other and (2) is intended to have a special
6427         mode bit that is set or cleared.  In such a case, the directory
6428         should be neither group- nor other-writeable until the special
6429         mode bits are right.
6430
6431 2007-01-31  Eric Blake  <ebb9@byu.net>
6432
6433         * modules/mountlist (Depends-on): Add strstr.
6434
6435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
6436         bug.
6437         * modules/string (Makefile.am): Remove redundant replacement.
6438         * modules/regex (Depends-on): Add mempcpy.
6439
6440 2007-01-31  Bruno Haible  <bruno@clisp.org>
6441
6442         New module description field 'Link'.
6443         * gnulib-tool (func_usage): Document --extract-link-directive.
6444         (sed_extract_prog): Recognize 'Link' directive.
6445         (func_get_link_directive): New function.
6446         (func_import): Show summary of link directives.
6447         Handle --extract-link-directive option.
6448         * modules/acl (Link): New section.
6449         * modules/clock-time (Link): New section.
6450         * modules/euidaccess (Link): New section.
6451         * modules/gettext (Link): New section.
6452         * modules/iconv (Link): New section.
6453         * modules/lock (Link): New section.
6454         * modules/nanosleep (Link): New section.
6455         * modules/readline (Link): New section.
6456
6457 2007-01-27  Bruno Haible  <bruno@clisp.org>
6458
6459         Enforce the use of gnulib modules for unportable <string.h> functions.
6460         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
6461         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
6462         (gl_HEADER_STRING_H_BODY): Require it.
6463         * lib/string_.h: If the gnulib module XYZ is not present, redefine
6464         the symbol XYZ to one that gives a link error.
6465         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
6466         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
6467         * modules/mempcpy (configure.ac): Likewise.
6468         * modules/memrchr (configure.ac): Likewise.
6469         * modules/stpcpy (configure.ac): Likewise.
6470         * modules/stpncpy (configure.ac): Likewise.
6471         * modules/strcase (configure.ac): Likewise.
6472         * modules/strcasestr (configure.ac): Likewise.
6473         * modules/strchrnul (configure.ac): Likewise.
6474         * modules/strdup (configure.ac): Likewise.
6475         * modules/strndup (configure.ac): Likewise.
6476         * modules/strnlen (configure.ac): Likewise.
6477         * modules/strpbrk (configure.ac): Likewise.
6478         * modules/strsep (configure.ac): Likewise.
6479         * modules/strstr (configure.ac): Likewise.
6480         * modules/strtok_r (configure.ac): Likewise.
6481
6482 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
6483
6484         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
6485
6486 2007-01-30  Jim Meyering  <jim@meyering.net>
6487
6488         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
6489
6490 2007-01-29  Bruno Haible  <bruno@clisp.org>
6491
6492         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
6493         * lib/execute.c: Likewise.
6494         * lib/pipe.c: Likewise.
6495         * lib/printf-args.h: Likewise.
6496         * lib/printf-args.c: Likewise.
6497         * lib/printf-parse.c: Likewise.
6498         * lib/vasnprintf.c: Likewise.
6499
6500 2007-01-29  Eric Blake  <ebb9@byu.net>
6501
6502         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
6503         declaration.
6504
6505 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6506
6507         * lib/strptime.h (strptime): Use 'restrict' for args where
6508         POSIX requires this.
6509         * lib/strptime.c (strptime): Likewise.
6510         Change license notice from LGPL to GPL, since gnulib-tool will
6511         change this as needed.
6512         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
6513         defined.
6514         Include "strptime.h" first, to check interface.
6515         Do not #undef _LIBC and _NL_CURRENT.
6516         Do not include <stdlib.h>; no longer needed.
6517         Include "time_r.h" and declare ptime_locale_status
6518         only if _LIBC is not defined.
6519         (__P): Remove unused macro.
6520         (match_string): Bring back glibc version, but use it only if _LIBC
6521         is defined.
6522         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
6523         Remove unnecessary assertion and abort() call.
6524         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
6525         * m4/strptime.m4: Fix serial number comment.
6526         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
6527         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
6528         (Depends-on): Add time_r.
6529
6530 2007-01-29  Bruno Haible  <bruno@clisp.org>
6531
6532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6533         strptime.
6534         * modules/strptime (Depends-on): Add stdbool.
6535         * lib/strptime.h: Include <time.h> always. Add comments.
6536
6537 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6538
6539         * modules/strptime: New file.
6540         * lib/strptime.h: New file.
6541         * lib/strptime.c: New file.
6542         * m4/strptime.m4: New file.
6543
6544 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6545
6546         * MODULES.html.sh: New module mpsort.
6547         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
6548
6549         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
6550         a circularity problem with HP-UX ia64 reported by Bob Proulx in
6551         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
6552         All uses changed.
6553         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
6554         All uses changed.
6555         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
6556         to _Restrict_.
6557         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
6558         the parameter matches the prototype.
6559
6560 2007-01-28  Jim Meyering  <jim@meyering.net>
6561
6562         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
6563         sys/time.h here, reverting that part of the previous patch:
6564         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
6565
6566 2007-01-28  Bruno Haible  <bruno@clisp.org>
6567
6568         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
6569         value of $(SYS_TIME_H).
6570         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
6571         remove it conditionally, too. [added by Jim Meyering]
6572         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
6573         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6574         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
6575         GETTIMEOFDAY_REPLACEMENT to 1.
6576
6577 2007-01-28  Bruno Haible  <bruno@clisp.org>
6578
6579         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
6580         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
6581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
6582         Set UNISTD_H instead of UNISTD_H2.
6583         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
6584
6585 2007-01-28  Bruno Haible  <bruno@clisp.org>
6586
6587         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
6588         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
6589
6590 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6591
6592         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
6593         (func_create_testdir): Ensure C locale for `grep' and `tr'
6594         character ranges.
6595         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
6596         ACLOCAL_AMFLAGS parsing state machine.
6597
6598 2007-01-27  Bruno Haible  <bruno@clisp.org>
6599
6600         * modules/unistr/base: Update.
6601
6602 2007-01-27  Bruno Haible  <bruno@clisp.org>
6603
6604         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
6605         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
6606         * modules/unistr/u32-mbtouc-unsafe: Renamed from
6607         modules/unistr/u32-mbtouc.
6608         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
6609         * lib/unistr.h: Update.
6610         * lib/linebreak.c: Update.
6611         * modules/unistr/u32-mbtouc: Renamed from
6612         modules/unistr/u32-mbtouc-safe.
6613         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
6614         * lib/unistr.h: Update.
6615         * lib/unistr/u32-to-u8.c: Update.
6616         * lib/unistr/u32-to-u16.c: Update.
6617
6618 2007-01-27  Bruno Haible  <bruno@clisp.org>
6619
6620         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
6621         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
6622         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
6623         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
6624         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
6625         * modules/unistr/u16-mbtouc-unsafe: Renamed from
6626         modules/unistr/u16-mbtouc.
6627         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
6628         * lib/unistr.h: Update.
6629         * lib/linebreak.c: Update.
6630         * modules/linebreak: Update.
6631         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
6632         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
6633         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
6634         * modules/unistr/u16-mbtouc: Renamed from
6635         modules/unistr/u16-mbtouc-safe.
6636         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
6637         * lib/unistr.h: Update.
6638         * lib/unistr/u16-to-u8.c: Update.
6639         * modules/unistr/u16-to-u8: Update.
6640         * lib/unistr/u16-to-u32.c: Update.
6641         * modules/unistr/u16-to-u32: Update.
6642
6643 2007-01-27  Bruno Haible  <bruno@clisp.org>
6644
6645         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
6646         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
6647         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
6648         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
6649         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
6650         * modules/unistr/u8-mbtouc-unsafe: Renamed from
6651         modules/unistr/u8-mbtouc.
6652         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
6653         * lib/unistr.h: Update.
6654         * lib/striconveh.c: Update.
6655         * modules/striconveh: Update.
6656         * lib/linebreak.c: Update.
6657         * modules/linebreak: Update.
6658         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
6659         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
6660         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
6661         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
6662         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
6663         * lib/unistr.h: Update.
6664         * lib/striconveh.c: Update.
6665         * modules/striconveh: Update.
6666         * lib/unistr/u8-to-u16.c: Update.
6667         * modules/unistr/u8-to-u16: Update.
6668         * lib/unistr/u8-to-u32.c: Update.
6669         * modules/unistr/u8-to-u32: Update.
6670
6671 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6672
6673         Sync from Libtool.
6674         * lib/argz.c: Do not include strings.h nor memory.h, include
6675         string.h unconditionally.  Patch by Simon Josefsson.
6676
6677 2007-01-27  Bruno Haible  <bruno@clisp.org>
6678
6679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
6680         from gl_HEADER_STRING_H_BODY.
6681         (gl_HEADER_STRING_H_BODY): Require it.
6682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
6683         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6684         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6685         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6686         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6687         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
6688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6689         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6690         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
6691         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6692         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6693         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
6694         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6695         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6696         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6697
6698 2007-01-27  Bruno Haible  <bruno@clisp.org>
6699
6700         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
6701         check_PROGRAMS into noinst_PROGRAMS.
6702         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
6703         check_PROGRAMS in this case.
6704         (func_import): Set for_test to false.
6705         (func_create_testdir): Set for_test to true.
6706
6707 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6708             Bruno Haible  <bruno@clisp.org>
6709
6710         * modules/strcasestr (Files): Remove lib/strcasestr.h.
6711         (Depends-on): Add string.
6712         (Includes): Use <string.h> instead of strcasestr.h.
6713         * modules/string (Makefile.am): Also substitute the value of
6714         REPLACE_STRCASESTR.
6715         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
6716         assume strcasestr is declared in <string.h> not <strings.h>. Also
6717         set REPLACE_STRCASESTR.
6718         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
6719         REPLACE_STRCASESTR.
6720         * lib/strcasestr.h: Remove file.
6721         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
6722         * lib/string_.h (strcasestr): New declaration.
6723
6724 2007-01-27  Bruno Haible  <bruno@clisp.org>
6725
6726         * lib/string_.h: Use 'extern'.
6727
6728 2007-01-27  Jim Meyering  <jim@meyering.net>
6729
6730         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
6731         of set-but-not-used local, "q".
6732
6733         * lib/mempcpy.c: Include <config.h> before <string.h>.
6734         This fixes a compilation error on HP-UX, due to the system's
6735         "restrict"-using mempcpy prototype.
6736
6737 2007-01-26  Bruno Haible  <bruno@clisp.org>
6738
6739         Small optimization.
6740         * lib/javacomp.c: Include c-strstr.h.
6741          (is_envjavac_gcj): Use c_strstr instead of strstr.
6742         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
6743
6744 2007-01-26  Bruno Haible  <bruno@clisp.org>
6745
6746         * MODULES.html.sh (Unicode string functions): Add the new modules.
6747
6748         * modules/uniconv/u32-strconv-to-locale: New file.
6749         * lib/uniconv/u32-strconv-to-locale.c: New file.
6750
6751         * modules/uniconv/u16-strconv-to-locale: New file.
6752         * lib/uniconv/u16-strconv-to-locale.c: New file.
6753
6754         * modules/uniconv/u8-strconv-to-locale: New file.
6755         * lib/uniconv/u8-strconv-to-locale.c: New file.
6756
6757         * modules/uniconv/u32-strconv-from-locale: New file.
6758         * lib/uniconv/u32-strconv-from-locale.c: New file.
6759
6760         * modules/uniconv/u16-strconv-from-locale: New file.
6761         * lib/uniconv/u16-strconv-from-locale.c: New file.
6762
6763         * modules/uniconv/u8-strconv-from-locale: New file.
6764         * lib/uniconv/u8-strconv-from-locale.c: New file.
6765
6766         * modules/uniconv/u32-strconv-to-enc: New file.
6767         * lib/uniconv/u32-strconv-to-enc.c: New file.
6768         * modules/uniconv/u32-strconv-to-enc-tests: New file.
6769         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
6770
6771         * modules/uniconv/u16-strconv-to-enc: New file.
6772         * lib/uniconv/u16-strconv-to-enc.c: New file.
6773         * lib/uniconv/u-strconv-to-enc.h: New file.
6774         * modules/uniconv/u16-strconv-to-enc-tests: New file.
6775         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
6776
6777         * modules/uniconv/u8-strconv-to-enc: New file.
6778         * lib/uniconv/u8-strconv-to-enc.c: New file.
6779         * modules/uniconv/u8-strconv-to-enc-tests: New file.
6780         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
6781
6782         * modules/uniconv/u32-strconv-from-enc: New file.
6783         * lib/uniconv/u32-strconv-from-enc.c: New file.
6784         * modules/uniconv/u32-strconv-from-enc-tests: New file.
6785         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
6786
6787         * modules/uniconv/u16-strconv-from-enc: New file.
6788         * lib/uniconv/u16-strconv-from-enc.c: New file.
6789         * modules/uniconv/u16-strconv-from-enc-tests: New file.
6790         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
6791
6792         * modules/uniconv/u8-strconv-from-enc: New file.
6793         * lib/uniconv/u8-strconv-from-enc.c: New file.
6794         * lib/uniconv/u-strconv-from-enc.h: New file.
6795         * modules/uniconv/u8-strconv-from-enc-tests: New file.
6796         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
6797
6798         * modules/uniconv/u32-conv-from-enc: New file.
6799         * lib/uniconv/u32-conv-from-enc.c: New file.
6800         * modules/uniconv/u32-conv-from-enc-tests: New file.
6801         * tests/uniconv/test-u32-conv-from-enc.c: New file.
6802
6803         * modules/uniconv/u16-conv-from-enc: New file.
6804         * lib/uniconv/u16-conv-from-enc.c: New file.
6805         * lib/uniconv/u-conv-from-enc.h: New file.
6806         * modules/uniconv/u16-conv-from-enc-tests: New file.
6807         * tests/uniconv/test-u16-conv-from-enc.c: New file.
6808
6809         * modules/uniconv/u8-conv-from-enc: New file.
6810         * lib/uniconv/u8-conv-from-enc.c: New file.
6811         * modules/uniconv/u8-conv-from-enc-tests: New file.
6812         * tests/uniconv/test-u8-conv-from-enc.c: New file.
6813
6814         * modules/uniconv/base: New file.
6815         * lib/uniconv.h: New file.
6816
6817 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
6818
6819         * doc/gnulib-tool.texi (Initial import): Update to match current
6820         behavior with strdup module.
6821         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
6822         * lib/memmem.h: Remove; all uses removed.  This is now done
6823         by <string.h>.
6824         * lib/mempcpy.h: Likewise.
6825         * lib/memrchr.h: Likewise.
6826         * lib/stpcpy.h: Likewise.
6827         * lib/stpncpy.h: Likewise.
6828         * lib/strcase.h: Likewise.
6829         * lib/strchrnul.h: Likewise.
6830         * lib/strdup.h: Likewise.
6831         * lib/strndup.h: Likewise.
6832         * lib/strnlen.h: Likewise.
6833         * lib/strpbrk.h: Likewise.
6834         * lib/strsep.h: Likewise.
6835         * lib/strstr.h: Likewise.
6836         * lib/strtok_r.h: Likewise.
6837         * lib/string_.h: New file.
6838         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
6839         Rely on <string.h> instead.
6840         * lib/canon-host.c: Likewise.
6841         * lib/chdir-long.c: Likewise.
6842         * lib/concatpath.c: Likewise.
6843         * lib/exclude.c: Likewise.
6844         * lib/fchdir.c: Likewise.
6845         * lib/getaddrinfo.c: Likewise.
6846         * lib/getcwd.c: Likewise.
6847         * lib/getsubopt.c: Likewise.
6848         * lib/glob.c: Likewise.
6849         * lib/hard-locale.c: Likewise.
6850         * lib/iconvme.c: Likewise.
6851         * lib/javacomp.c: Likewise.
6852         * lib/mempcpy.c: Likewise.
6853         * lib/memrchr.c: Likewise.
6854         * lib/regex_internal.h: Likewise.
6855         * lib/stpncpy.c: Likewise.
6856         * lib/strcasecmp.c: Likewise.
6857         * lib/strchrnul.c: Likewise.
6858         * lib/strdup.c: Likewise.
6859         * lib/striconv.c: Likewise.
6860         * lib/striconveh.c: Likewise.
6861         * lib/striconveha.c: Likewise.
6862         * lib/strncasecmp.c: Likewise.
6863         * lib/strndup.c: Likewise.
6864         * lib/strnlen.c: Likewise.
6865         * lib/strsep.c: Likewise.
6866         * lib/strstr.c: Likewise.
6867         * lib/strtok_r.c: Likewise.
6868         * lib/userspec.c: Likewise.
6869         * lib/w32spawn.h: Likewise.
6870         * lib/xstrndup.c: Likewise.
6871         * lib/mountlist.c (strstr): Remove decl.
6872         * m4/string_h.m4: New file.
6873         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
6874         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
6875         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
6876         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
6877         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
6878         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
6879         Set REPLACE_STRCASECMP if necessary.
6880         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
6881         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
6882         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
6883         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
6884         HAVE_DECL_STRDUP if necessary.
6885         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
6886         since gl_FUNC_STRNDUP does that now.
6887         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
6888         Check for decl here...
6889         (gl_PREREQ_STRNLEN): ... not here.
6890         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
6891         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
6892         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
6893         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
6894         necessary.
6895         * modules/string: New file.
6896         * modules/memmem (Files): Remove special-purpose include file.
6897         (Depends-on): Add string.
6898         (Include): Include <string.h>, not the removed file.
6899         * modules/mempcpy: Likewise.
6900         * modules/memrchr: Likewise.
6901         * modules/stpcpy: Likewise.
6902         * modules/stpncpy: Likewise.
6903         * modules/strcase: Likewise.
6904         * modules/strchrnul: Likewise.
6905         * modules/strdup: Likewise.
6906         * modules/strndup: Likewise.
6907         * modules/strnlen: Likewise.
6908         * modules/strpbrk: Likewise.
6909         * modules/strsep: Likewise.
6910         * modules/strstr: Likewise.
6911         * modules/strtok_r: Likewise.
6912         * tests/test-dirname.c: Don't include "strdup.h", since
6913         <string.h> now suffices.
6914         * tests/test-memmem.c: Don't include "memmem.h", since
6915         <string.h> now suffices.
6916
6917 2007-01-25  Bruno Haible  <bruno@clisp.org>
6918
6919         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
6920         *resultp is 0.
6921
6922         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
6923         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
6924         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
6925         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
6926
6927         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
6928         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
6929         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
6930         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
6931         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
6932         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
6933
6934 2007-01-24  Bruno Haible  <bruno@clisp.org>
6935
6936         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
6937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
6938         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
6939         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
6940         gl_FUNC_FTS_CORE.
6941         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
6942         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
6943         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6944         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
6945         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
6946         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
6947         gl_FUNC_FCHOWNAT.
6948         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
6949         gl_FUNC_STRFTIME.
6950         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
6951         Reported by Ralf Wildenhues.
6952
6953 2007-01-24  Bruno Haible  <bruno@clisp.org>
6954
6955         Drop AC_REQUIRE calls that are redundant with the module dependencies.
6956         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
6957         gl_GETADDRINFO.
6958         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
6959         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
6960         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
6961
6962 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6963
6964         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
6965         Don't use 'exit'; just return from 'main'.
6966         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
6967
6968         * lib/fnmatch_.h: Readjust white space and comments to match
6969         glibc, to avoid spurious diffs.
6970
6971 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6972
6973         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
6974         2004-12-01 change by Jakub Jelinek, since this code won't compile
6975         if !LIBC.  Problem reported by Bob Proulx.
6976
6977 2007-01-23  Bruno Haible  <bruno@clisp.org>
6978
6979         * lib/striconveh.c: Include c-strcaseeq.h.
6980         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
6981         * modules/striconveh (Depends-on): Add c-strcaseeq.
6982
6983 2007-01-23  Bruno Haible  <bruno@clisp.org>
6984
6985         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
6986
6987         * modules/c-strcaseeq: New file.
6988         * lib/c-strcaseeq.h: New file.
6989
6990         * modules/streq: New file.
6991         * lib/streq.h: New file.
6992
6993 2007-01-23  Bruno Haible  <bruno@clisp.org>
6994
6995         * modules/striconveha-tests: New file.
6996         * tests/test-striconveha.c: New file.
6997
6998         * lib/striconveha.h: Include <stdbool.h>.
6999         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
7000         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
7001         (mem_iconveha_notranslit): Renamed from mem_iconveha.
7002         (mem_iconveha): New function.
7003         (str_iconveha_notranslit): Renamed from str_iconveha.
7004         (str_iconveha): New function.
7005         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
7006         c-strcase.
7007
7008 2007-01-23  Bruno Haible  <bruno@clisp.org>
7009
7010         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
7011         encodings without forgiving before trying any encoding with handler.
7012         (str_iconveha): Try all encodings without forgiving before trying any
7013         encoding with handler.
7014
7015 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7016
7017         Import the following changes from libc.
7018
7019         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
7020
7021         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
7022
7023         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
7024
7025         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
7026         normal_bracket label.
7027
7028         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7029
7030         [BZ #361]
7031         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
7032         to normal_bracket after fetching the next character.
7033
7034 2007-01-22  Bruno Haible  <bruno@clisp.org>
7035
7036         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
7037         argument.
7038         * lib/striconveh.c (iconv_carefully_1): New function.
7039         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
7040         argument.
7041         (str_cd_iconveh): Update.
7042         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
7043         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
7044         * tests/test-striconveh.c (MAGIC): New macro.
7045         (new_offsets): New function.
7046         (main): Test call with and without offsets.
7047
7048 2007-01-22  Bruno Haible  <bruno@clisp.org>
7049
7050         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
7051         * modules/sys_select (Makefile.am): Likewise.
7052         * modules/sys_socket (Makefile.am): Likewise.
7053         * modules/sys_time (Makefile.am): Likewise.
7054
7055 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
7056
7057         * modules/gettimeofday (License): Change from GPL to LGPL, since
7058         gettimeofday is a library function.
7059
7060 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7061
7062         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
7063
7064 2007-01-21  Bruno Haible  <bruno@clisp.org>
7065
7066         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
7067
7068 2007-01-21  Bruno Haible  <bruno@clisp.org>
7069
7070         * modules/striconveha: New file.
7071         * lib/striconveha.h: New file.
7072         * lib/striconveha.c: New file.
7073         * MODULES.html.sh (Internationalization functions): Add striconveha.
7074         * lib/striconv.c (str_iconv): Optimize the case of an empty input
7075         string.
7076         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
7077
7078 2007-01-21  Bruno Haible  <bruno@clisp.org>
7079
7080         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
7081         * lib/striconveh.c (str_iconveh): Likewise.
7082
7083 2007-01-21  Bruno Haible  <bruno@clisp.org>
7084
7085         * lib/striconveh.h (mem_iconveh): New declaration.
7086         * lib/striconveh.c (mem_iconveh): New function.
7087         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
7088
7089 2007-01-21  Bruno Haible  <bruno@clisp.org>
7090
7091         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
7092
7093         * lib/striconveh.h (mem_cd_iconveh): Change specification.
7094         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
7095         original result buffer.
7096         (str_cd_iconveh): Update.
7097         * tests/test-striconveh.c (main): Update.
7098
7099         * lib/striconv.h (mem_cd_iconv): Change specification.
7100         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
7101         result buffer.
7102         (str_cd_iconv): Update.
7103         * tests/test-striconv.c (main): Update.
7104
7105 2007-01-21  Bruno Haible  <bruno@clisp.org>
7106
7107         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
7108
7109 2007-01-20  Jim Meyering  <jim@meyering.net>
7110
7111         * lib/userspec.c (parse_with_separator): If a user or group string
7112         starts with "+", skip the corresponding name-to-ID look-up, since
7113         such a look-up must fail: user and group names may not include "+".
7114
7115 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7116
7117         * lib/poll.c: Include sys/time.h and time.h unconditionally,
7118         since we now assume the sys_time module.
7119         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
7120         check for sys/time.h; no longer needed.
7121         * modules/poll (Depends-on): Depend on sys_time.
7122
7123 2007-01-18  Bruno Haible  <bruno@clisp.org>
7124
7125         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
7126         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7127
7128         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
7129         gettimeofday.
7130
7131         * tests/test-gettimeofday.c: Include <time.h>.
7132         (dummy): Remove variable.
7133
7134         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
7135         gl_HEADER_SYS_TIME_H.
7136         (gl_HEADER_SYS_TIME_H): New macro.
7137
7138         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
7139         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7140         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7141         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
7142         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7143         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
7144         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
7145         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7146         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
7147         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
7148         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7149
7150         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
7151         last change; it caused a compilation error when cross-compiling to
7152         Cygwin.
7153
7154 2007-01-18  Jim Meyering  <jim@meyering.net>
7155
7156         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
7157         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
7158         than the race-prone "test -d sys || mkdir sys".
7159         (configure.ac): Use AC_PROG_MKDIR_P.
7160         * modules/sys_select: Likewise.
7161         * modules/sys_socket: Likewise.
7162         * modules/sys_time: Likewise.
7163
7164 2007-01-18  Eric Blake  <ebb9@byu.net>
7165
7166         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
7167         replace gettimeofday.
7168         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
7169         name, to avoid infinite recursion.
7170
7171 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
7172
7173         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
7174         module sys_time.
7175         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
7176         assume timespec.h defines struct timeval.
7177         * lib/settime.c: Likewise.
7178         * lib/utimens.c: Likewise.
7179         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
7180         since we now assume the gettimeofday module.
7181         * lib/tempname.c (__gen_tempname): Likewise.
7182         * lib/gettimeofday.h: Remove.
7183         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
7184         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
7185         Include <time.h>, for 'time()'.
7186         (localtime_buffer_addr): Also use this workaround if
7187         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
7188         to simplify the uses.  All uses changed.
7189         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
7190         that #undef is inside {}, and 'const' follows type name consistently.
7191         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
7192         (gettimeofday): Do not use the maximum possible value for
7193         tv->tv_usec, since that might break usages other than ls.c.
7194         Instead, we'll leave ls.c alone.  This undoes today's patch
7195         by Bruno.  Add a compile-time warning for 1s-clock resolution;
7196         we've never observed the problem but might as well keep the
7197         canary.
7198         * lib/nanosleep.c: Include timespec.h first, for interface check.
7199         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
7200         now assume the sys_time module.
7201         * lib/tempname.c: Likewise.
7202         * lib/timespec.h: Likewise.
7203         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
7204         needed.
7205         * lib/strftime.c: Likewise.
7206         * lib/timespec.h: Likewise.
7207         * lib/posixtm.c: Include posixtm.h first, for interface check.
7208         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
7209         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
7210         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
7211         * lib/sys_time_.h: New file.
7212         * lib/timespec.h (struct timespec): Use long int, not long.
7213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7214         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
7215         Remove obsolescent call to AC_HEADER_TIME.
7216         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7218         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7219         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
7220         Likewise.
7221         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7222         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
7223         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
7224         into the sys_time module.  Check for gettimeofday just once.
7225         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
7226         for gettimeofday signature to just check the signature.  Merely
7227         compile it, since linking doesn't test signature.  Improve test for
7228         whether gettimeofday.o is actually needed.
7229         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
7230         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
7231         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
7232         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7233         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
7234         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
7235         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
7236         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
7237         than worrying about sys/time.h.
7238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7239         Don't bother worrying about TIME_WITH_SYS_TIME.
7240         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7241         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
7242         * m4/sys_time_h.m4: New file.
7243         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
7244         Don't include sys/time.h.  Return from main rather than exiting.
7245         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
7246         all uses changed.
7247         * modules/gethrxtime (Depends-on): Add sys_time.
7248         * modules/gettime (Depends-on): Likewise.
7249         * modules/gettimeofday (Depends-on): Likewise.
7250         * modules/nanosleep (Depends-on): Likewise.
7251         * modules/settime (Depends-on): Likewise.
7252         * modules/tempname (Depends-on): Likewise.
7253         * modules/utimens (Depends-on): Likewise.
7254         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
7255         (Include:) Change back to <sys/time.h>.
7256         (Maintainer:) Add self.
7257         * modules/sys_time: New file.
7258         * modules/tempname (Depends-on): Add gettimeofday.
7259         * tests/test-gettimeofday.c: Include <sys/time.h>
7260         rather than gettimeofday.h.
7261
7262 2007-01-17  Bruno Haible  <bruno@clisp.org>
7263
7264         * gnulib-tool (func_get_license): Revert last patch. Instead, let
7265         the license default to GPL.
7266         (func_create_testdir): Don't complain if a module is LGPL and its
7267         tests module depends on GPLed modules.
7268
7269 2007-01-17  Bruno Haible  <bruno@clisp.org>
7270
7271         * lib/gettimeofday.c (gettimeofday): Add code for the case
7272         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
7273         maximum possible value for tv->tv_usec, rather than the minimum one.
7274
7275 2005-10-08  Martin Lambers  <marlam@marlam.de>
7276 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7277 2007-01-16  Bruno Haible  <bruno@clisp.org>
7278
7279         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
7280         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
7281         gl_FUNC_GETTIMEOFDAY.
7282         (Include): Add gettimeofday.h.
7283         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
7284         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
7285         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
7286         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
7287         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
7288         * lib/gettimeofday.h: New file.
7289         * lib/gettimeofday.c: Include <sys/timeb.h>.
7290         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
7291         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7292         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
7293         fall back on time().
7294
7295         * tests/test-gettimeofday.c: New file.
7296         * modules/gettimeofday-tests: New file.
7297
7298 2007-01-16  Eric Blake  <ebb9@byu.net>
7299
7300         * modules/fnmatch (Depends-on): Depend on wchar.
7301         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
7302         * m4/fnmatch.m4: Likewise.
7303         * modules/mbchar (Makefile.am): Assume <wchar.h>.
7304         * m4/mbchar.m4: Likewise.
7305         * modules/mbswidth (Depends-on): Depend on wchar.
7306         * lib/mbswidth.c: Assume <wchar.h>.
7307         * m4/mbswidth.m4: Likewise.
7308         * modules/quotearg (Depends-on): Depend on wchar.
7309         * lib/quotearg.c: Assume <wchar.h>.
7310         * m4/quotearg.m4: Likewise.
7311         * modules/regex (Depends-on): Depend on wchar.
7312         * lib/regex_internal.h: Assume <wchar.h>.
7313         * m4/regex.m4: Likewise.
7314         * modules/stdint (Depends-on): Depend on wchar.
7315         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
7316         * m4/stdint.m4: Likewise.
7317         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
7318         * modules/strftime (Depends-on): Depend on wchar.
7319         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
7320         * modules/strtol (Depends-on): Depend on wchar.
7321         * lib/strtol.c: Assume <wchar.h>.
7322         * modules/wcwidth (Depends-on): Depend on wchar.
7323         * lib/wcwidth.h: Assume <wchar.h>.
7324         * m4/wcwidth.m4: Likewise.
7325
7326 2007-01-16  Bruno Haible  <bruno@clisp.org>
7327
7328         * modules/csharpexec-script: New, created from...
7329         * modules/csharpexec: ... this.
7330
7331 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
7332
7333         * modules/javaexec-script: New, created from...
7334         * modules/javaexec: ... this.
7335
7336 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7337
7338         * modules/poll (Dependencies): Add sys_select.
7339
7340 2007-01-15  Jim Meyering  <jim@meyering.net>
7341
7342         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
7343         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
7344         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
7345         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
7346
7347 2007-01-15  Bruno Haible  <bruno@clisp.org>
7348
7349         * modules/striconveh: New file.
7350         * lib/striconveh.h: New file.
7351         * lib/striconveh.c: New file.
7352         * MODULES.html.sh (Internationalization functions): Add striconveh.
7353
7354         * modules/striconveh-tests: New file.
7355         * tests/test-striconveh.c: New file.
7356
7357 2007-01-15  Bruno Haible  <bruno@clisp.org>
7358
7359         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
7360         not from GNU libiconv or GNU libc.
7361
7362 2007-01-15  Bruno Haible  <bruno@clisp.org>
7363
7364         * doc/gnulib-intro.texi (Copyright): Explain the different license
7365         terms for module descriptions, autoconf macros, tests, documentation.
7366
7367 2007-01-14  Bruno Haible  <bruno@clisp.org>
7368
7369         * modules/striconv-tests: New file.
7370         * tests/test-striconv.c: New file.
7371
7372 2007-01-14  Bruno Haible  <bruno@clisp.org>
7373
7374         * modules/iconv-tests: New file.
7375         * tests/test-iconv.c: New file.
7376
7377 2007-01-14  Bruno Haible  <bruno@clisp.org>
7378
7379         * gnulib-tool (func_get_license): For test modules, use the license of
7380         the main module.
7381
7382 2007-01-14  Bruno Haible  <bruno@clisp.org>
7383
7384         * modules/iconv (Include): Clarify that <iconv.h> can only be included
7385         if iconv is found to exist.
7386
7387 2007-01-14  Bruno Haible  <bruno@clisp.org>
7388
7389         * modules/c-ctype-tests: New file.
7390         * tests/test-c-ctype.c: New file.
7391
7392 2007-01-14  Bruno Haible  <bruno@clisp.org>
7393
7394         * modules/binary-io-tests: New file.
7395         * tests/test-binary-io.sh: New file.
7396         * tests/test-binary-io.c: New file.
7397
7398 2007-01-14  Bruno Haible  <bruno@clisp.org>
7399
7400         * modules/array-oset-tests: New file.
7401         * tests/test-array_oset.c: New file.
7402
7403 2007-01-14  Bruno Haible  <bruno@clisp.org>
7404
7405         * modules/array-list-tests: New file.
7406         * tests/test-array_list.c: New file.
7407
7408 2007-01-14  Bruno Haible  <bruno@clisp.org>
7409
7410         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
7411         and make.
7412         Reported by Simon Josefsson in
7413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
7414
7415 2007-01-14  Bruno Haible  <bruno@clisp.org>
7416
7417         * modules/allocsa-tests: New file.
7418         * tests/test-allocsa.c: New file.
7419
7420 2007-01-14  Bruno Haible  <bruno@clisp.org>
7421
7422         * modules/fchdir (Depends-on): Add absolute-header.
7423         * modules/unistd (Depends-on): Likewise.
7424
7425 2006-12-30  Bruno Haible  <bruno@clisp.org>
7426
7427         * modules/fchdir: New file.
7428         * modules/unistd (Files): Add lib/unistd_.h.
7429         (Makefile.am): Generate unistd.h from unistd_.h.
7430         * lib/fchdir.c: New file.
7431         * lib/dirent_.h: New file.
7432         * lib/unistd_.h: New file.
7433         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
7434         * m4/fchdir.m4: New file.
7435         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
7436         (gl_HEADER_UNISTD): Invoke it.
7437         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
7438         function.
7439         * lib/backupfile.c (opendir, closedir): Undefine.
7440         * lib/chown.c (open, close): Undefine.
7441         * lib/clean-temp.c (open, close): Undefine.
7442         * lib/copy-file.c (open, close): Undefine.
7443         * lib/execute.c (open, close): Undefine.
7444         * lib/fsusage.c (open, close): Undefine.
7445         * lib/gc-gnulib.c (open, close): Undefine.
7446         * lib/getcwd.c (opendir, closedir): Undefine.
7447         * lib/glob.c (opendir, closedir): Undefine.
7448         * lib/javacomp.c (open, close): Undefine.
7449         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
7450         * lib/openat-proc.c (open, close): Undefine.
7451         * lib/pagealign_alloc.c (open, close): Undefine.
7452         * lib/pipe.c (open, close): Undefine.
7453         * lib/progreloc.c (open, close): Undefine.
7454         * lib/savedir.c (opendir, closedir): Undefine.
7455         * lib/utime.c (open, close): Undefine.
7456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
7457
7458 2007-01-10  Bruno Haible  <bruno@clisp.org>
7459
7460         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
7461
7462 2007-01-12  Eric Blake  <ebb9@byu.net>
7463
7464         Provide a robust <wchar.h>.  Further simplifications are now
7465         possible in other modules, but not included here.
7466         * modules/wchar: New module.
7467         * m4/wchar.m4: New file.
7468         * lib/wchar_.h: Likewise.
7469         * modules/mbchar (Depends-on): Depend on wchar, as the first use
7470         of the new module.
7471         * MODULES.html.sh (Extended multibyte and wide character utilities):
7472         New section.
7473
7474 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
7475
7476         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
7477         to a reasonable default for memory allocation.
7478         (xreadlink): Don't allocate a huge buffer, to work around a buggy
7479         file system that reports garbage st_size values for symlinks.
7480         Problem reported by Liyang Hu.
7481
7482 2007-01-11  Simon Josefsson  <simon@josefsson.org>
7483
7484         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
7485         Emacs .#* auto-save files).
7486
7487 2007-01-11  Bruno Haible  <bruno@clisp.org>
7488
7489         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
7490         directory.
7491
7492 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7493
7494         Use @...@ consistently in lib/wctype_.h.
7495         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
7496         on it being set to 1 or 0.
7497         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
7498         go back to AC_SUBSTing it.
7499         * modules/wctype (Makefile.am): Undo previous change.
7500
7501 2007-01-10  Eric Blake  <ebb9@byu.net>
7502
7503         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
7504         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
7505         * modules/wctype (Makefile.am): Likewise.
7506         Reported by Chris McGuire.
7507
7508 2007-01-10  Jim Meyering  <jim@meyering.net>
7509
7510         fts.c: a small readability/maintainability improvement
7511         * lib/fts.c (fts_read): Make this code slightly more readable and
7512         maintainable by hoisting the "sp->fts_cur = p" assignments to
7513         immediately follow the statements that set P.  Derived from
7514         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
7515
7516 2007-01-10  Eric Blake  <ebb9@byu.net>
7517
7518         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
7519         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
7520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7521         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7522         Reported by Chris McGuire.
7523
7524 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7525
7526         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
7527         in sed script.
7528
7529 2007-01-09  Bruno Haible  <bruno@clisp.org>
7530
7531         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
7532         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
7533         variables.
7534         (func_module): Use them.
7535
7536 2007-01-09  Bruno Haible  <bruno@clisp.org>
7537
7538         * modules/unistr/base: New file.
7539         * lib/unistr.h: New file.
7540
7541         * modules/unistr/u8-to-u16: New file.
7542         * lib/unistr/u8-to-u16.c: New file.
7543
7544         * modules/unistr/u8-to-u32: New file.
7545         * lib/unistr/u8-to-u32.c: New file.
7546
7547         * modules/unistr/u16-to-u8: New file.
7548         * lib/unistr/u16-to-u8.c: New file.
7549
7550         * modules/unistr/u16-to-u32: New file.
7551         * lib/unistr/u16-to-u32.c: New file.
7552
7553         * modules/unistr/u32-to-u8: New file.
7554         * lib/unistr/u32-to-u8.c: New file.
7555
7556         * modules/unistr/u32-to-u16: New file.
7557         * lib/unistr/u32-to-u16.c: New file.
7558
7559         * modules/unistr/u8-check: New file.
7560         * modules/unistr/u16-check: New file.
7561         * modules/unistr/u32-check: New file.
7562         * lib/unistr/u8-check.c: New file.
7563         * lib/unistr/u16-check.c: New file.
7564         * lib/unistr/u32-check.c: New file.
7565
7566         * modules/unistr/u8-chr: New file.
7567         * modules/unistr/u16-chr: New file.
7568         * modules/unistr/u32-chr: New file.
7569         * lib/unistr/u8-chr.c: New file.
7570         * lib/unistr/u16-chr.c: New file.
7571         * lib/unistr/u32-chr.c: New file.
7572
7573         * modules/unistr/u8-cmp: New file.
7574         * modules/unistr/u16-cmp: New file.
7575         * modules/unistr/u32-cmp: New file.
7576         * lib/unistr/u8-cmp.c: New file.
7577         * lib/unistr/u16-cmp.c: New file.
7578         * lib/unistr/u32-cmp.c: New file.
7579
7580         * modules/unistr/u8-cpy: New file.
7581         * modules/unistr/u16-cpy: New file.
7582         * modules/unistr/u32-cpy: New file.
7583         * lib/unistr/u8-cpy.c: New file.
7584         * lib/unistr/u16-cpy.c: New file.
7585         * lib/unistr/u32-cpy.c: New file.
7586         * lib/unistr/u-cpy.h: New file.
7587
7588         * modules/unistr/u8-cpy-alloc: New file.
7589         * modules/unistr/u16-cpy-alloc: New file.
7590         * modules/unistr/u32-cpy-alloc: New file.
7591         * lib/unistr/u8-cpy-alloc.c: New file.
7592         * lib/unistr/u16-cpy-alloc.c: New file.
7593         * lib/unistr/u32-cpy-alloc.c: New file.
7594         * lib/unistr/u-cpy-alloc.h: New file.
7595
7596         * modules/unistr/u8-endswith: New file.
7597         * modules/unistr/u16-endswith: New file.
7598         * modules/unistr/u32-endswith: New file.
7599         * lib/unistr/u8-endswith.c: New file.
7600         * lib/unistr/u16-endswith.c: New file.
7601         * lib/unistr/u32-endswith.c: New file.
7602         * lib/unistr/u-endswith.h: New file.
7603
7604         * modules/unistr/u8-mblen: New file.
7605         * modules/unistr/u16-mblen: New file.
7606         * modules/unistr/u32-mblen: New file.
7607         * lib/unistr/u8-mblen.c: New file.
7608         * lib/unistr/u16-mblen.c: New file.
7609         * lib/unistr/u32-mblen.c: New file.
7610
7611         * modules/unistr/u8-mbtouc: New file.
7612         * modules/unistr/u16-mbtouc: New file.
7613         * modules/unistr/u32-mbtouc: New file.
7614         * lib/unistr/u8-mbtouc.c: New file.
7615         * lib/unistr/u16-mbtouc.c: New file.
7616         * lib/unistr/u32-mbtouc.c: New file.
7617
7618         * modules/unistr/u8-mbtouc-safe: New file.
7619         * modules/unistr/u16-mbtouc-safe: New file.
7620         * modules/unistr/u32-mbtouc-safe: New file.
7621         * lib/unistr/u8-mbtouc-safe.c: New file.
7622         * lib/unistr/u16-mbtouc-safe.c: New file.
7623         * lib/unistr/u32-mbtouc-safe.c: New file.
7624
7625         * modules/unistr/u8-move: New file.
7626         * modules/unistr/u16-move: New file.
7627         * modules/unistr/u32-move: New file.
7628         * lib/unistr/u8-move.c: New file.
7629         * lib/unistr/u16-move.c: New file.
7630         * lib/unistr/u32-move.c: New file.
7631         * lib/unistr/u-move.h: New file.
7632
7633         * modules/unistr/u8-next: New file.
7634         * modules/unistr/u16-next: New file.
7635         * modules/unistr/u32-next: New file.
7636         * lib/unistr/u8-next.c: New file.
7637         * lib/unistr/u16-next.c: New file.
7638         * lib/unistr/u32-next.c: New file.
7639
7640         * modules/unistr/u8-prev: New file.
7641         * modules/unistr/u16-prev: New file.
7642         * modules/unistr/u32-prev: New file.
7643         * lib/unistr/u8-prev.c: New file.
7644         * lib/unistr/u16-prev.c: New file.
7645         * lib/unistr/u32-prev.c: New file.
7646
7647         * modules/unistr/u8-set: New file.
7648         * modules/unistr/u16-set: New file.
7649         * modules/unistr/u32-set: New file.
7650         * lib/unistr/u8-set.c: New file.
7651         * lib/unistr/u16-set.c: New file.
7652         * lib/unistr/u32-set.c: New file.
7653         * lib/unistr/u-set.h: New file.
7654
7655         * modules/unistr/u8-startswith: New file.
7656         * modules/unistr/u16-startswith: New file.
7657         * modules/unistr/u32-startswith: New file.
7658         * lib/unistr/u8-startswith.c: New file.
7659         * lib/unistr/u16-startswith.c: New file.
7660         * lib/unistr/u32-startswith.c: New file.
7661         * lib/unistr/u-startswith.h: New file.
7662
7663         * modules/unistr/u8-stpcpy: New file.
7664         * modules/unistr/u16-stpcpy: New file.
7665         * modules/unistr/u32-stpcpy: New file.
7666         * lib/unistr/u8-stpcpy.c: New file.
7667         * lib/unistr/u16-stpcpy.c: New file.
7668         * lib/unistr/u32-stpcpy.c: New file.
7669         * lib/unistr/u-stpcpy.h: New file.
7670
7671         * modules/unistr/u8-stpncpy: New file.
7672         * modules/unistr/u16-stpncpy: New file.
7673         * modules/unistr/u32-stpncpy: New file.
7674         * lib/unistr/u8-stpncpy.c: New file.
7675         * lib/unistr/u16-stpncpy.c: New file.
7676         * lib/unistr/u32-stpncpy.c: New file.
7677         * lib/unistr/u-stpncpy.h: New file.
7678
7679         * modules/unistr/u8-strcat: New file.
7680         * modules/unistr/u16-strcat: New file.
7681         * modules/unistr/u32-strcat: New file.
7682         * lib/unistr/u8-strcat.c: New file.
7683         * lib/unistr/u16-strcat.c: New file.
7684         * lib/unistr/u32-strcat.c: New file.
7685         * lib/unistr/u-strcat.h: New file.
7686
7687         * modules/unistr/u8-strchr: New file.
7688         * modules/unistr/u16-strchr: New file.
7689         * modules/unistr/u32-strchr: New file.
7690         * lib/unistr/u8-strchr.c: New file.
7691         * lib/unistr/u16-strchr.c: New file.
7692         * lib/unistr/u32-strchr.c: New file.
7693
7694         * modules/unistr/u8-strcmp: New file.
7695         * modules/unistr/u16-strcmp: New file.
7696         * modules/unistr/u32-strcmp: New file.
7697         * lib/unistr/u8-strcmp.c: New file.
7698         * lib/unistr/u16-strcmp.c: New file.
7699         * lib/unistr/u32-strcmp.c: New file.
7700
7701         * modules/unistr/u8-strcpy: New file.
7702         * modules/unistr/u16-strcpy: New file.
7703         * modules/unistr/u32-strcpy: New file.
7704         * lib/unistr/u8-strcpy.c: New file.
7705         * lib/unistr/u16-strcpy.c: New file.
7706         * lib/unistr/u32-strcpy.c: New file.
7707         * lib/unistr/u-strcpy.h: New file.
7708
7709         * modules/unistr/u8-strcspn: New file.
7710         * modules/unistr/u16-strcspn: New file.
7711         * modules/unistr/u32-strcspn: New file.
7712         * lib/unistr/u8-strcspn.c: New file.
7713         * lib/unistr/u16-strcspn.c: New file.
7714         * lib/unistr/u32-strcspn.c: New file.
7715         * lib/unistr/u-strcspn.h: New file.
7716
7717         * modules/unistr/u8-strdup: New file.
7718         * modules/unistr/u16-strdup: New file.
7719         * modules/unistr/u32-strdup: New file.
7720         * lib/unistr/u8-strdup.c: New file.
7721         * lib/unistr/u16-strdup.c: New file.
7722         * lib/unistr/u32-strdup.c: New file.
7723         * lib/unistr/u-strdup.h: New file.
7724
7725         * modules/unistr/u8-strlen: New file.
7726         * modules/unistr/u16-strlen: New file.
7727         * modules/unistr/u32-strlen: New file.
7728         * lib/unistr/u8-strlen.c: New file.
7729         * lib/unistr/u16-strlen.c: New file.
7730         * lib/unistr/u32-strlen.c: New file.
7731         * lib/unistr/u-strlen.h: New file.
7732
7733         * modules/unistr/u8-strmblen: New file.
7734         * modules/unistr/u16-strmblen: New file.
7735         * modules/unistr/u32-strmblen: New file.
7736         * lib/unistr/u8-strmblen.c: New file.
7737         * lib/unistr/u16-strmblen.c: New file.
7738         * lib/unistr/u32-strmblen.c: New file.
7739
7740         * modules/unistr/u8-strmbtouc: New file.
7741         * modules/unistr/u16-strmbtouc: New file.
7742         * modules/unistr/u32-strmbtouc: New file.
7743         * lib/unistr/u8-strmbtouc.c: New file.
7744         * lib/unistr/u16-strmbtouc.c: New file.
7745         * lib/unistr/u32-strmbtouc.c: New file.
7746
7747         * modules/unistr/u8-strncat: New file.
7748         * modules/unistr/u16-strncat: New file.
7749         * modules/unistr/u32-strncat: New file.
7750         * lib/unistr/u8-strncat.c: New file.
7751         * lib/unistr/u16-strncat.c: New file.
7752         * lib/unistr/u32-strncat.c: New file.
7753         * lib/unistr/u-strncat.h: New file.
7754
7755         * modules/unistr/u8-strncmp: New file.
7756         * modules/unistr/u16-strncmp: New file.
7757         * modules/unistr/u32-strncmp: New file.
7758         * lib/unistr/u8-strncmp.c: New file.
7759         * lib/unistr/u16-strncmp.c: New file.
7760         * lib/unistr/u32-strncmp.c: New file.
7761
7762         * modules/unistr/u8-strncpy: New file.
7763         * modules/unistr/u16-strncpy: New file.
7764         * modules/unistr/u32-strncpy: New file.
7765         * lib/unistr/u8-strncpy.c: New file.
7766         * lib/unistr/u16-strncpy.c: New file.
7767         * lib/unistr/u32-strncpy.c: New file.
7768         * lib/unistr/u-strncpy.h: New file.
7769
7770         * modules/unistr/u8-strnlen: New file.
7771         * modules/unistr/u16-strnlen: New file.
7772         * modules/unistr/u32-strnlen: New file.
7773         * lib/unistr/u8-strnlen.c: New file.
7774         * lib/unistr/u16-strnlen.c: New file.
7775         * lib/unistr/u32-strnlen.c: New file.
7776         * lib/unistr/u-strnlen.h: New file.
7777
7778         * modules/unistr/u8-strpbrk: New file.
7779         * modules/unistr/u16-strpbrk: New file.
7780         * modules/unistr/u32-strpbrk: New file.
7781         * lib/unistr/u8-strpbrk.c: New file.
7782         * lib/unistr/u16-strpbrk.c: New file.
7783         * lib/unistr/u32-strpbrk.c: New file.
7784         * lib/unistr/u-strpbrk.h: New file.
7785
7786         * modules/unistr/u8-strrchr: New file.
7787         * modules/unistr/u16-strrchr: New file.
7788         * modules/unistr/u32-strrchr: New file.
7789         * lib/unistr/u8-strrchr.c: New file.
7790         * lib/unistr/u16-strrchr.c: New file.
7791         * lib/unistr/u32-strrchr.c: New file.
7792
7793         * modules/unistr/u8-strspn: New file.
7794         * modules/unistr/u16-strspn: New file.
7795         * modules/unistr/u32-strspn: New file.
7796         * lib/unistr/u8-strspn.c: New file.
7797         * lib/unistr/u16-strspn.c: New file.
7798         * lib/unistr/u32-strspn.c: New file.
7799         * lib/unistr/u-strspn.h: New file.
7800
7801         * modules/unistr/u8-strstr: New file.
7802         * modules/unistr/u16-strstr: New file.
7803         * modules/unistr/u32-strstr: New file.
7804         * lib/unistr/u8-strstr.c: New file.
7805         * lib/unistr/u16-strstr.c: New file.
7806         * lib/unistr/u32-strstr.c: New file.
7807         * lib/unistr/u-strstr.h: New file.
7808
7809         * modules/unistr/u8-strtok: New file.
7810         * modules/unistr/u16-strtok: New file.
7811         * modules/unistr/u32-strtok: New file.
7812         * lib/unistr/u8-strtok.c: New file.
7813         * lib/unistr/u16-strtok.c: New file.
7814         * lib/unistr/u32-strtok.c: New file.
7815         * lib/unistr/u-strtok.h: New file.
7816
7817         * modules/unistr/u8-uctomb: New file.
7818         * modules/unistr/u16-uctomb: New file.
7819         * modules/unistr/u32-uctomb: New file.
7820         * lib/unistr/u8-uctomb.c: New file.
7821         * lib/unistr/u16-uctomb.c: New file.
7822         * lib/unistr/u32-uctomb.c: New file.
7823
7824         * MODULES.html.sh (Unicode string functions): Add the new modules.
7825
7826 2007-01-08  Bruno Haible  <bruno@clisp.org>
7827
7828         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
7829         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
7830         subdirectories.
7831
7832 2007-01-08  Karl Berry  <karl@gnu.org>
7833
7834         * doc/error.texi: mention that main() fns must set program_name
7835         when progname is used.
7836
7837 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
7838
7839         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
7840         WCTYPE_H is empty, for the benefit of builds from non-distclean
7841         directories.  Problem reported by Eric Blake in
7842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
7843
7844 2007-01-08  Bruno Haible  <bruno@clisp.org>
7845
7846         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
7847         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
7848         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
7849         PROVIDE_CANONICALIZE_FILENAME_MODE.
7850         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
7851
7852 2007-01-08  Bruno Haible  <bruno@clisp.org>
7853
7854         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
7855         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
7856         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
7857         * lib/fts.c: Likewise.
7858         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
7859
7860 2006-12-25  Bruno Haible  <bruno@clisp.org>
7861
7862         * modules/utf8-ucs4-safe: New file.
7863         * lib/utf8-ucs4-safe.h: New file.
7864         * lib/unistr/utf8-ucs4-safe.c: New file.
7865
7866         * modules/utf16-ucs4-safe: New file.
7867         * lib/utf16-ucs4-safe.h: New file.
7868         * lib/unistr/utf16-ucs4-safe.c: New file.
7869
7870         * MODULES.html.sh (Unicode string functions): Add the new modules.
7871
7872 2007-01-08  Bruno Haible  <bruno@clisp.org>
7873
7874         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
7875         (Depends-on): Add unitypes.
7876         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7877         (u8_mbtouc_aux): Move out to separate file.
7878         (u8_mbtouc): Use ucs4_t, uint8_t types.
7879         * lib/unistr/utf8-ucs4.c: New file.
7880
7881         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
7882         (Depends-on): Add unitypes.
7883         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7884         (u16_mbtouc_aux): Move out to separate file.
7885         (u16_mbtouc): Use ucs4_t, uint16_t types.
7886         * lib/unistr/utf16-ucs4.c: New file.
7887
7888         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
7889         (Depends-on): Add unitypes.
7890         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
7891         (u8_uctomb_aux): Move out to separate file.
7892         (u8_uctomb): Use ucs4_t, uint8_t types.
7893         * lib/unistr/ucs4-utf8.c: New file.
7894
7895         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
7896         (Depends-on): Add unitypes.
7897         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
7898         (u16_uctomb_aux): Move out to separate file.
7899         (u16_uctomb): Use ucs4_t, uint16_t types.
7900         * lib/unistr/ucs4-utf16.c: New file.
7901
7902 2006-12-25  Bruno Haible  <bruno@clisp.org>
7903
7904         * modules/unitypes: New file.
7905         * lib/unitypes.h: New file.
7906         * MODULES.html.sh (func_all_modules): New section "Unicode string
7907         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
7908         this section. Add unitypes.
7909
7910 2007-01-08  Bruno Haible  <bruno@clisp.org>
7911
7912         Avoid variable names that conflict with those from libtool.
7913         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
7914         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
7915         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
7916         library_names_spec to acl_library_names_spec, hardcode_* to
7917         acl_hardcode_*.
7918         Reported by Ralf Wildenhues.
7919
7920 2007-01-08  Bruno Haible  <bruno@clisp.org>
7921
7922         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
7923         definition.
7924         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
7925         definition.
7926         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
7927         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
7928         definition.
7929         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
7930         definition.
7931         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
7932         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
7933         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
7934         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
7935         definition.
7936         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
7937         definition.
7938         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
7939         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
7940         GC_USE_<algorithm>.
7941         * lib/gc-libgcrypt.c: Likewise.
7942         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
7943         * modules/gc-arctwo (configure.ac): Likewise.
7944         * modules/gc-des (configure.ac): Likewise.
7945         * modules/gc-hmac-md5 (configure.ac): Likewise.
7946         * modules/gc-hmac-sha1 (configure.ac): Likewise.
7947         * modules/gc-md2 (configure.ac): Likewise.
7948         * modules/gc-md4 (configure.ac): Likewise.
7949         * modules/gc-md5 (configure.ac): Likewise.
7950         * modules/gc-random (configure.ac): Likewise.
7951         * modules/gc-rijndael (configure.ac): Likewise.
7952         * modules/gc-sha1 (configure.ac): Likewise.
7953
7954 2007-01-08  Bruno Haible  <bruno@clisp.org>
7955
7956         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
7957         macro definition.
7958         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
7959         definition.
7960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
7961         definition.
7962         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
7963         * modules/fcntl-safer (configure.ac): Likewise.
7964         * modules/fopen-safer (configure.ac): Likewise.
7965         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
7966         GNULIB_FWRITEERROR macro definition.
7967
7968 2007-01-08  Bruno Haible  <bruno@clisp.org>
7969
7970         * m4/gnulib-common.m4: New file.
7971         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
7972         (func_get_filelist): Add m4/gnulib-common.m4.
7973
7974 2007-01-08  Bruno Haible  <bruno@clisp.org>
7975
7976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
7977         command.
7978
7979 2007-01-08  Jim Meyering  <jim@meyering.net>
7980
7981         Use a more robust test for a "can't happen" condition.
7982         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
7983         narrowed the st_size value.  Presuming the "can't happen" condition
7984         is true, that narrowing could conceivably convert an invalid st_size
7985         value into a valid one.  Instead, use a change based on Matthew
7986         Woehlke's original patch.
7987
7988         Slight readability improvement: use an assert-like macro
7989         in place of literal "abort ()" uses.
7990         * lib/fts.c (fts_assert): Define.
7991         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
7992         Use this macro instead of a bare 'abort'.
7993
7994 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7995
7996         Don't worry about using IRIX 5.3's wctype.h broken definitions;
7997         simply work around them.
7998         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
7999         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
8000         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
8001         declaring.
8002         Don't bother to define as macros, since the standard doesn't require it.
8003         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
8004         longer worry about IRIX 5.3.
8005         (HAVE_WCTYPE_CTMP_BUG): Remove.
8006
8007 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8008
8009         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
8010         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
8011         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8012         Problems reported by Georg Schwarz for IRIX 5.3.
8013
8014         * gnulib-tool (autoconf_minversion): Take the maximum version number
8015         found, not the minimum.  Problem reported by James Youngman.
8016
8017 2007-01-03  Karl Berry  <karl@gnu.org>
8018
8019         * doc/error.texi: new file, explaining interaction with progname.
8020         * doc/gnulib.texi: include it.  Update copyright.
8021
8022 2007-01-03  Simon Josefsson  <simon@josefsson.org>
8023
8024         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
8025         AC_CANONICAL_HOST, to improve autobuild outputs.
8026
8027 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
8028             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8029
8030         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
8031         sockets, server sockets, and other file descriptors.  Count errors
8032         to compute the return value.  Reorder the code a bit to be easier
8033         to follow.  Don't set event bits that were not requested (except
8034         POLLERR and POLLHUP).
8035
8036 2007-01-01  Bruno Haible  <bruno@clisp.org>
8037
8038         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
8039
8040 2007-01-03  Jim Meyering  <jim@meyering.net>
8041
8042         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
8043
8044 2007-01-02  Bruno Haible  <bruno@clisp.org>
8045
8046         * modules/settime (Include): Require timespec.h.
8047         * modules/nanosleep (Include): Likewise.
8048
8049 2007-01-01  Bruno Haible  <bruno@clisp.org>
8050
8051         * gnulib-tool (func_emit_copyright_notice): Bump year.
8052         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
8053
8054 2007-01-01  Bruno Haible  <bruno@clisp.org>
8055
8056         Improve support for OpenBSD.
8057         * build-aux/config.rpath (libname_spec): Export.
8058         (library_names_spec): New variable. Export.
8059         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
8060         library_names_spec from the config.rpath output. Locate shared library
8061         through the name pattern in library_names_spec.
8062
8063 2007-01-01  Eric Blake  <ebb9@byu.net>
8064
8065         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
8066
8067 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
8068
8069         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
8070         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
8071         assume the C locale, and avoid an "eval" that could cause trouble.
8072         Problem with SORT reported by Bob Proulx.
8073
8074         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
8075         Define.  Trivial patch from Henning Nielsen Lund, originally
8076         sent to bug-grep@gnu.org today.
8077
8078 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8079
8080         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
8081         struct stat.  Problem reported by Henning Nielsen Lund.
8082         * lib/acl.c: Include acl.h first, to check interface.  Don't
8083         bother to include sys/types.h and sys/stat.h again.
8084
8085 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8086
8087         Import the following change from libc; problem reported by
8088         Sven Verdoolaege.
8089
8090         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
8091
8092         [BZ #1373]
8093         * lib/argp.h: Remove __NTH for __argp_usage inline function.
8094
8095 2006-12-28  Jim Meyering  <jim@meyering.net>
8096
8097         * build-aux/announce-gen: Do not assume that the package
8098         builds any of tar.gz, tar.bz2, and .xdelta files.
8099         Suggestion from Simon Josefsson.
8100
8101 2006-12-28  Simon Josefsson  <simon@josefsson.org>
8102
8103         * modules/announce-gen: New file.
8104
8105 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8106
8107         * lib/mbchar.h: Just include <wctype.h>; the wctype module
8108         handles its gotchas now.
8109         * lib/mbswidth.c: Likewise.
8110         * lib/wcwidth.h: Likewise.
8111         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
8112         and iswcntrl; the wctype module does this stuff now.
8113         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8115         * modules/mbchar (Depends-on): Add wctype.
8116         * modules/mbswidth (Depends-on): Likewise.
8117         * modules/wcwidth (Depends-on): Likewise.
8118
8119 2006-12-27  Eric Blake  <ebb9@byu.net>
8120
8121         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
8122         module uses more than what <wctype.h> is required to provide.
8123
8124 2006-12-26  Eric Blake  <ebb9@byu.net>
8125
8126         * gnulib-tool (sed_extract_prog): Avoid space-tab.
8127
8128 2006-12-26  Eric Blake  <ebb9@byu.net>
8129
8130         * modules/absolute-header: New module.
8131         * modules/fcntl (Depends-on): Depend on it.
8132         * modules/inttypes (Depends-on): Likewise.
8133         * modules/stdint (Depends-on): Likewise.
8134         * modules/sys_stat (Depends-on): Likewise.
8135         * modules/wctype (Depends-on): Likewise.
8136         * MODULES.html.sh (Support for building libraries and
8137         executables): Document it.
8138
8139 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8140
8141         * gnulib-tool (SED): Remove, undoing previous change.
8142         The problem was that it broke coreutils on Solaris, because
8143         "sed --posix" leaked into a makefile.
8144         (sed): New alias, if 'alias' and GNU sed.
8145
8146 2006-12-24  Jim Meyering  <jim@meyering.net>
8147
8148         Work around an fchownat bug in glibc-2.4:
8149         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
8150         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
8151         in spite of the -P option.
8152         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
8153         New macros.
8154         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
8155         * modules/openat (Files): Add lib/fchownat.c.
8156         * lib/openat.c (fchownat): Don't define here.  Move to...
8157         * lib/fchownat.c: ...this new file.
8158
8159 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         Fix bug reported by Bruno Haible in
8162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
8163         where quotearg.c didn't compile on Mac OS X 10.2 because it
8164         lacks <wchar.h> and wint_t.
8165         * lib/wctype_.h (__wctype_wint_t): New type.
8166         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
8167         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
8168         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
8169         Arg is now of type __wctype_wint_t, not wint_t.
8170         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
8171         substitute HAVE_WINT_T.
8172         * modules/wctype (Files): Add m4/wint_t.m4.
8173         (wctype.h): Substitute HAVE_WINT_T.
8174
8175 2006-12-23  Bruno Haible  <bruno@clisp.org>
8176
8177         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
8178
8179 2006-12-23  Bruno Haible  <bruno@clisp.org>
8180
8181         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
8182         S_ISLNK.
8183         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
8184         mingw.
8185
8186 2006-12-22  Bruno Haible  <bruno@clisp.org>
8187
8188         * lib/copy-file.c: Include acl.h.
8189         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
8190         Close the file descriptors only after being done with copy_acl.
8191         * modules/copy-file (Depends-on): Add acl.
8192
8193 2006-12-22  Bruno Haible  <bruno@clisp.org>
8194
8195         * gnulib-tool (SED): New variable.
8196         Use $SED instead of sed everywhere.
8197
8198 2006-12-22  Bruno Haible  <bruno@clisp.org>
8199
8200         * modules/no-c++: New file.
8201         * m4/no-c++.m4: New file.
8202         * MODULES.html.sh (Support for building libraries and executables):
8203         Add no-c++.
8204
8205 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8206
8207         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8208         Include <limits.h>, and use its INT_MAX to rewrite the
8209         j loop so that it does not overflow 'int'.  Problem reported by
8210         Ralf Wildenhues in
8211         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8212         Play it safe by shifting left by 1 rather than multiplying by 2,
8213         as GCC is less likely to optimize this away when the value
8214         is signed (when it assumes overflow leads to undefined behavior).
8215         Also, don't assume time_t uses two's complement.
8216
8217 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8218
8219         * MODULES.html.sh: New module wctype.
8220         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
8221         * lib/fnmatch.c: Don't bother to include <wchar.h> before
8222         <wctype.h>, since the new wctype module should fix this.
8223         * lib/quotearg.c: Include <wctype.h> unconditionally, since
8224         the wctype module should arrange for it.
8225         * lib/regex_internal.h: Likewise.
8226         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
8227         since the wctype module should handle this now.
8228         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
8229         * modules/fnmatch (Depends-on): Add wctype.
8230         * modules/quotearg (Depends-on): Likewise.
8231         * modules/regex (Depends-on): Likewise.
8232
8233 2006-12-19  Bruno Haible  <bruno@clisp.org>
8234
8235         * lib/strdup.h [C++]: Wrap definitions in extern "C".
8236         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
8237
8238 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8239
8240         * modules/savewd (Depends-on): Fix dependency on fcntl.
8241
8242 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8243
8244         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
8245         conforms to C99, rather than relying on the user's environment
8246         setting of STDINT_H.
8247
8248 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8249         and Eric Blake  <ebb9@byu.net>
8250
8251         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
8252         This is more consistent with the other defines here.
8253         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
8254         Port to z/OS.  Problem reported by Paul Gilmartin.
8255         Change local vars to use gl_ prefix rather than ac_.
8256         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
8257         with other defines.
8258         * modules/double-slash-root: New module.
8259         * modules/dirname (Files): Remove m4/double-slash-root.m4.
8260         (Depends-on): Add double-slash-root.
8261         * MODULES.html.sh (File system functions): Mention new module.
8262
8263 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
8264
8265         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
8266         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
8267         This is for the benefit of gzip, which doesn't do i18n.
8268
8269 2006-12-12  Jim Meyering  <jim@meyering.net>
8270
8271         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
8272         Reported by Andreas Schwab <schwab@suse.de>.
8273
8274 2006-12-12  Bruno Haible  <bruno@clisp.org>
8275
8276         Merge these changes.
8277         2006-09-05  Bruno Haible  <bruno@clisp.org>
8278         * lib/iconvme.c (iconv_string): No need to save and restore errno when
8279         iconv_alloc succeeded.
8280         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
8281         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
8282         test for " && dest " at the end - dest is always != NULL there. Call
8283         iconv with 4xNULL arguments initially, to reset the state. Call iconv
8284         with 2xNULL arguments, also to flush the state storage. Handle the
8285         IRIX iconv behaviour. Realloc the final result, to throw away unused
8286         memory.
8287
8288 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
8289
8290         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
8291         and fchmodat unconditionally, since glibc 2.4 has them.
8292         Problem reported by Arkadiusz Miskiewicz.
8293
8294 2006-12-10  Bruno Haible  <bruno@clisp.org>
8295
8296         * gnulib-tool (func_import): Show the include files only for those
8297         modules that are copied and specified.
8298         Reported by Karl Berry.
8299
8300 2006-12-08  Jim Meyering  <jim@meyering.net>
8301
8302         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
8303         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
8304
8305         * build-aux/announce-gen: Add two new options, both optional:
8306         --bootstrap-tools=TOOL_LIST
8307               a comma-separated list of tools, e.g.,
8308               autoconf,automake,bison,gnulib
8309         --gnulib-snapshot-date=DATE
8310               if gnulib is in the bootstrap tool list,
8311               then report this as the snapshot date.
8312               If not specified, use the current date/time.
8313               If you specify a date here, be sure it's UTC.
8314
8315 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8316
8317         * tests/test-argp-2.sh: Fix test to match actual output.
8318         (func_compare): Fix sed script to be portable.
8319
8320 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
8321
8322         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
8323         workaround for this case.  It is not autoconfigured now; offhand
8324         it's hard to see how to autoconfigure it.
8325
8326 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
8327
8328         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
8329         a directory that is about to be chowned.  Such a directory's
8330         initial file permissions should permit the owner only and this
8331         should not be changed until after the chown, since the group and
8332         other bits would be incorrect if they granted permission before
8333         the chown.
8334
8335         Fix porting problem for iswctype reported by Georg Schwarz in:
8336         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
8337         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
8338         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
8339         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
8340         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8341
8342 2006-12-03  Jim Meyering  <jim@meyering.net>
8343
8344         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
8345         p->fts_statp may not yet be defined.
8346         (fts_read): Instead, set it in the caller, once p->fts_statp is
8347         sure to be defined, and corresponds to a top-level directory.
8348         This bug made du -x fail.  Here's the coreutils test case:
8349         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
8350         Reported by Mike Frysinger.
8351
8352 2006-12-01  Jim Meyering  <jim@meyering.net>
8353
8354         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
8355         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
8356         Reported by Simon Josefsson.
8357
8358 2006-11-30  Jim Meyering  <jim@meyering.net>
8359
8360         * m4/warning.m4: Use the all-permissive copyright notice
8361         recommended by RMS (rather than LGPL).
8362         * m4/vararrays.m4: Likewise.
8363         * m4/flexmember.m4: Likewise.
8364
8365 2006-11-29  Bruno Haible  <bruno@clisp.org>
8366
8367         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8368         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
8369         using +=.
8370         Reported by Simon Josefsson <simon@josefsson.org>.
8371
8372 2006-11-28  James Youngman <jay@gnu.org>
8373
8374         * README: Advise users that they might find the bug-gnulib@gnu.org
8375         and autotools-announce@gnu.org mailing lists useful.
8376
8377 2006-11-28  Bruno Haible  <bruno@clisp.org>
8378
8379         * m4/ptrdiff_max.m4: Remove file.
8380
8381 2006-11-21  Bruno Haible  <bruno@clisp.org>
8382
8383         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
8384         _AC_COMPUTE_INT.
8385         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8386         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
8387         _AC_COMPUTE_INT.
8388         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8389         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
8390         _AC_COMPUTE_INT.
8391         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8392
8393 2006-11-28  Jim Meyering  <jim@meyering.net>
8394
8395         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
8396         warning from "gcc -Wshadow" about shadowing the builtin.
8397
8398 2006-11-27  Bruno Haible  <bruno@clisp.org>
8399
8400         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
8401         _AC_COMPUTE_INT.
8402         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8403
8404 2006-11-27  Bruno Haible  <bruno@clisp.org>
8405             Paul Eggert  <eggert@cs.ucla.edu>
8406
8407         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
8408
8409 2006-11-26  Bruno Haible  <bruno@clisp.org>
8410
8411         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8412         noinst_LTLIBRARIES.
8413
8414 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
8415             Bruno Haible  <bruno@clisp.org>
8416
8417         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
8418         if compiling with "gcc -ansi".
8419
8420 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
8421
8422         Fix some incompatibilities with gcc -ansi -pedantic.
8423         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
8424         if compiling pedantically with GCC, unless it's C99 or later.
8425         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
8426         it mishandles gcc -ansi -pedantic as well.
8427         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
8428         if gcc -pedantic.
8429         * lib/regexec.c (check_node_accept_bytes): Don't use auto
8430         initializers for struct if -pedantic, unless it's C99 or later.
8431
8432 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
8433
8434         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
8435         Don't close an fd more than once. Identical atimes indicate
8436         success, not failure.
8437
8438 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
8439
8440         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
8441
8442 2006-11-23  Jim Meyering  <jim@meyering.net>
8443
8444         * build-aux/announce-gen: New file.  From coreutils.
8445
8446 2006-11-22  Jim Meyering  <jim@meyering.net>
8447
8448         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
8449         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
8450         (fts_read): Use a temporary to narrow the overused st_size member
8451         before using it in a switch statement.  Reported by Matthew Woehlke.
8452
8453         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
8454         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8455
8456 2006-11-20  Bruno Haible  <bruno@clisp.org>
8457
8458         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
8459         changequote instead of pairs of brackets.
8460         Reported by Andreas Schwab <schwab@suse.de>.
8461
8462 2006-11-21  Jim Meyering  <jim@meyering.net>
8463
8464         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
8465         so as to remain compatible with older compilers.
8466         Patch from Michael Deutschmann.
8467
8468 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8469
8470         * MODULES.html.sh (File system functions): Add openat.
8471
8472         * lib/openat.h (rpl_fstatat): New macro, if
8473         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
8474         (fstatat): Define to rpl_fstatat under the same conditions,
8475         unless COMPILING_FSTATAT.
8476         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
8477         seems to have the bug.
8478         * lib/fstatat.c: New file.
8479         * modules/openat (Files): Add it.
8480
8481 2006-11-20  Bruno Haible  <bruno@clisp.org>
8482
8483         * Makefile: New file.
8484
8485 2006-11-20  Jim Meyering  <jim@meyering.net>
8486
8487         The beginnings of syntax-related checks for gnulib.
8488         * lib/Makefile: New file.
8489         * lib/t-idcache: New script.  Ensure that the two halves of
8490         idcache.c stay in sync.
8491
8492         * lib/idcache.c: Adjust comments in user- and group- portions to
8493         be more accurate, and to be consistent with one another.
8494
8495 2006-11-20  Jim Meyering  <jim@meyering.net>
8496
8497         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
8498         continue using the flexible array member (thus, this module performs
8499         half as many malloc calls), with the addition that...
8500         (getgroup, getuser): Consistently record a non-match via an empty
8501         "name" string, and map an empty string match to a NULL return value.
8502         * modules/idcache (Depends-on): Re-add flexmember.
8503
8504         * lib/idcache.c (getuser): Remove all uses of the register keyword.
8505         (getuidbyname, getgroup, getgidbyname): Likewise.
8506
8507         Use cleaner syntax: NULL rather than 0.
8508         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
8509
8510 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8511
8512         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
8513         It mishandled the case where the group was missing.
8514         Problem reported by Greg Schafer.
8515         * modules/idcache: Likewise.
8516
8517 2006-11-18  Jim Meyering  <jim@meyering.net>
8518
8519         * check-module (%exempt_header): Add exception for some
8520         conditionally-included headers.
8521
8522         * modules/i-ring (Depends-on): Add verify.
8523         (License): Change to LGPL.
8524
8525 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8526
8527         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
8528         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
8529         and inttostr.h.  Use snprintf rather than uinttostr, so that
8530         LGPLed code doesn't depend on GPLed.
8531
8532 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8533
8534         * modules/inline (License): Change from GPL to LGPL.
8535
8536 2006-11-17  Jim Meyering  <jim@meyering.net>
8537
8538         * modules/d-type (License): Switch to LGPL.
8539
8540 2006-11-15  Bruno Haible  <bruno@clisp.org>
8541
8542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
8543
8544 2006-11-15  Eric Blake  <ebb9@byu.net>
8545
8546         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
8547         the module dependency.
8548
8549 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8550             Bruno Haible  <bruno@clisp.org>
8551
8552         * gnulib-tool (func_create_testdir): Add license consistency check.
8553
8554 2006-11-15  Eric Blake  <ebb9@byu.net>
8555
8556         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
8557         random "(cached)" in configure output.
8558
8559 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8560
8561         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
8562         test for conforming inttypes.h is both announced and cached.
8563
8564         * MODULES.html.sh (seen_modules, seen_files): New variables.
8565         (func_module): Rewrite to use a few less gnulib-tool and sed
8566         invocations.  Avoid a couple of quadratic algorithms for ...
8567         (missed_modules, missed_files): ... these, with ...
8568         (func_append, func_tmpdir): ... these new functions, from
8569         gnulib-tool.  Analogously, install traps for cleanup.
8570
8571         * tests/test-gc.c (main): Remove unused variables.
8572         * tests/test-read-file.c: Include stdlib.h, for 'free'.
8573
8574 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
8575
8576         * modules/inttostr (License): Change to LGPL.
8577
8578 2006-11-14  Eric Blake  <ebb9@byu.net>
8579
8580         * modules/tempname (License): Change to LGPL.
8581
8582 2006-11-14  Eric Blake  <ebb9@byu.net>
8583
8584         * doc/functions.texi (Function Portability): *printf functions on
8585         Cygwin now understand all POSIX size specifiers.
8586
8587 2006-11-14  Bruno Haible  <bruno@clisp.org>
8588
8589         * modules/c-ctype (License): Change to LGPL.
8590
8591 2006-11-12  Bruno Haible  <bruno@clisp.org>
8592
8593         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8594         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
8595         for GNOME libraries, for which the include files are installed in
8596         subdirectories of $prefix/include.
8597
8598 2006-11-12  Bruno Haible  <bruno@clisp.org>
8599
8600         * m4/lib-link.m4: Require at least autoconf-2.54.
8601         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
8602         name to underscores for the --with option.
8603
8604 2006-11-13  Bruno Haible  <bruno@clisp.org>
8605
8606         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
8607         the tests directory.
8608         Reported by Ralf Wildenhues.
8609
8610 2006-11-13  Bruno Haible  <bruno@clisp.org>
8611
8612         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
8613         (func_emit_initmacro_end): Undo the override here.
8614         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
8615         Works around the famous automake error in coreutils.
8616
8617 2006-11-13  Eric Blake  <ebb9@byu.net>
8618
8619         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
8620         element, not its node.
8621
8622 2006-11-12  Bruno Haible  <bruno@clisp.org>
8623
8624         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
8625         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
8626
8627 2006-11-12  Bruno Haible  <bruno@clisp.org>
8628
8629         * gnulib-tool: New option --local-symlink.
8630         (func_usage): Document it.
8631         (lsymbolic): New variable.
8632         (func_import, func_create_testdir): If --symlink was not specified,
8633         test whether --local-symlink was specified and the file comes from
8634         the local_gnulib_dir.
8635
8636 2006-11-12  Bruno Haible  <bruno@clisp.org>
8637
8638         * gnulib-tool (func_ln): New function.
8639         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
8640
8641 2006-11-12  Bruno Haible  <bruno@clisp.org>
8642
8643         Finish support for source files in subdirectories.
8644         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
8645         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
8646         AUTOMAKE_OPTIONS.
8647         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
8648
8649 2006-11-12  Bruno Haible  <bruno@clisp.org>
8650
8651         * gnulib-tool (func_get_automake_snippet): Synthesize also an
8652         EXTRA_lib_SOURCES augmentation.
8653         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
8654
8655 2006-11-12  Jim Meyering  <jim@meyering.net>
8656
8657         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
8658         file descriptors.  This also averts a failure on systems with
8659         native openat support when a traversed directory lacks "x" access.
8660         * lib/fts_.h: Include "i-ring.h"
8661         (struct FTS) [fts_fd_ring]: New member.
8662         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
8663         (FCHDIR): Add parentheses.
8664         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
8665         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
8666         When descending, rather than simply closing the previous
8667         fts_cwd_fd value, push that file descriptor onto the ring.
8668         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
8669         (fts_open): Initialize the new fd_ring member.
8670         (fts_close): Clear the ring.
8671         (fts_safe_changedir): When possible, use our new fd_ring to skip
8672         the diropen and fstat and dev/ino comparison that would normally
8673         accompany a virtual `chdir ("..")'.
8674
8675         * modules/fts (Depends-on): Add i-ring.
8676         * modules/i-ring: New module.
8677         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
8678         * m4/i-ring.m4: New file.
8679
8680 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8681
8682         * gnulib-tool (func_create_testdir): Fix replacement of
8683         `build-aux' in configure.ac.  Run autotools in gltests
8684         subdirectory.
8685         (func_create_testdir, func_create_megatestdir, test): There is
8686         no need for '--force' in most autotool invocations in a new
8687         tree.  Actually fail the whole test if any of the tools, or the
8688         configure or make stages fail.
8689
8690         Sync from Automake.
8691         * build-aux/gnupload: Revert last change.  Add pointer to upload
8692         instructions of the GNU Maintenance Instructions.
8693         Suggestion by Karl Berry.
8694
8695 2006-11-10  Jim Meyering  <jim@meyering.net>
8696
8697         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
8698
8699 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8700
8701         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
8702         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
8703         (bind_textdomain_codeset) [! ENABLE_NLS]:
8704         Evaluate all the arguments.  That way, callers get compatible behavior
8705         if the arguments have side effects.  Also, it avoids some GCC
8706         diagnostics in some cases; Joel E. Denny reported problems when Bison
8707         was configured with --enable-gcc-warnigs.
8708
8709 2006-11-10  Jim Meyering  <jim@meyering.net>
8710
8711         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
8712         relevant options in CFLAGS (like -O, -fno-inline) are taken into
8713         account.
8714
8715 2006-11-10  Jim Meyering  <jim@meyering.net>
8716
8717         * modules/inline: New file/module.
8718         * modules/xalloc (Files): Remove m4/inline.m4.
8719         (Depends-on): Add inline, instead.
8720         * modules/oset: Likewise.
8721         * modules/list: Likewise.
8722
8723 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8724
8725         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
8726         Problem reported by Matthew Woehlke.
8727
8728 2006-11-09  Bruno Haible  <bruno@clisp.org>
8729
8730         * lib/tempname.c (gen_tempname): Remove variant that invokes
8731         __gen_tempname.
8732         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
8733         __gen_tempname.
8734
8735 2006-11-08  Bruno Haible  <bruno@clisp.org>
8736
8737         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
8738         to 'yes' instead of 'cross-compiling'.
8739
8740 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
8741
8742         * lib/quotearg.h (quotearg_free): New decl.
8743         * lib/quotearg.c (quotearg_free): New function.
8744         (slot0, nslots, slotvec0, slotvec):
8745         Now file-scope so that quotearg_free can get at them.
8746
8747 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8748
8749         Sync from Automake.
8750         * build-aux/gnupload: Add missing 'gnu' to example URL.
8751         Report by Karl Berry.
8752
8753 2006-11-08  Bruno Haible  <bruno@clisp.org>
8754
8755         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
8756         Suggested by Paul Eggert.
8757
8758 2006-11-08  Jim Meyering  <jim@meyering.net>
8759
8760         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
8761         It's already included if !_LIBC.
8762         (fts_safe_changedir): Add a comment.
8763
8764 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8765
8766         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
8767         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
8768         Matthew Woehlke.
8769
8770         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
8771         definitions up, to avoid colliding with change below.
8772         (static_inline) [HAVE_INLINE]: New macro.
8773         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
8774         Provide extern decls when !HAVE_INLINE.  Do not define unless
8775         static_inline is defined, either by us or by xmalloc.c.  Use
8776         static_inline rather than static inline.
8777         (XCALLOC): Optimize sizeof(T) = 1 case.
8778         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
8779
8780 2006-11-07  Bruno Haible  <bruno@clisp.org>
8781
8782         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
8783         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
8784         AC_C_INLINE.
8785         * modules/xalloc (Files): Add m4/inline.m4.
8786
8787 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8788
8789         * README: Fix typo.
8790         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
8791         (Miscellanous Notes): ...from this.
8792
8793 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8794
8795         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8796         Mention that offsetof should be used instead of sizeof.
8797         From Bruno Haible.
8798
8799 2006-11-07  Bruno Haible  <bruno@clisp.org>
8800
8801         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
8802
8803 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8804
8805         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8806         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
8807         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8808         (gl_tree_add_before, gl_tree_add_after):
8809         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
8810         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
8811         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
8812         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
8813         (gl_linked_add_after, gl_linked_add_at): Likewise.
8814         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
8815         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8816         (gl_tree_add_before, gl_tree_add_after): Likewise.
8817         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
8818         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
8819         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
8820
8821 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8822
8823         * lib/gl_oset.h: Use C comment style, not C++ comment style.
8824
8825 2006-11-06  Bruno Haible  <bruno@clisp.org>
8826
8827         * m4/inline.m4: New file.
8828         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
8829         * modules/list (Files): Add m4/inline.m4.
8830         * modules/oset (Files): Likewise.
8831
8832 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8833
8834         * lib/idcache.c: Include <stddef.h>, for offsetof.
8835         (struct userid.name): Change from char * to a flexible array member.
8836         All uses changed.
8837         * modules/idcache (Depends-on): Add flexmember.
8838
8839         * MODULES.html.sh (Core language properties): New module flexmember.
8840         * modules/flexmember, m4/flexmember.m4: New files.
8841
8842         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
8843         inline functions that are identical with the old xnmalloc_inline,
8844         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
8845         that we can avoid some unnecessary integer multiplications and
8846         divisions in the common case where the element size is known at
8847         compile time.
8848         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
8849         needed.
8850         (xnboundedmalloc): Remove.
8851         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
8852         arguments, for consistency with rest of this header.
8853         (xcharalloc): Rewrite using XNMALLOC.
8854         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
8855         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
8856         versions have been moved to lib/xalloc.h and renamed to be the
8857         non-*_inline versions.
8858         (xmalloc, xrealloc): Implement without reference to the xnmalloc
8859         and xnrealloc functions, since those functions are now inline and
8860         now call us.
8861         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
8862         renaming described above.
8863         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
8864         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
8865         captures the dependency in AC_C_INLINE.
8866
8867         New module canonicalize-lgpl, proposed by Charles Wilson in
8868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
8869         with a few small changes afterwards.
8870         * MODULES.html.sh (File system functions): New module
8871         canonicalize-lgpl.
8872         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
8873         and canonicalize_file_name.
8874         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
8875         * modules/canonicalize-lgpl: New files.
8876
8877 2006-11-05  Bruno Haible  <bruno@clisp.org>
8878
8879         * gnulib-tool (func_import, func_create_testdir): Create directories
8880         also for files in subdirectories of lib/.
8881
8882 2006-11-05  Bruno Haible  <bruno@clisp.org>
8883
8884         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
8885         ANSI C compliant.
8886
8887 2006-11-03  Bruno Haible  <bruno@clisp.org>
8888
8889         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8890         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
8891         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
8892         (xnboundedmalloc): New inline function.
8893         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
8894         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
8895         xmalloc.
8896         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
8897         xmalloc.
8898         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
8899         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
8900         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
8901         xmalloc.
8902         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8903         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
8904         xmalloc.
8905         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
8906         gl_tree_add_after): Use XMALLOC instead of xmalloc.
8907         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
8908         xmalloc.
8909         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8910         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
8911         gl_tree_add_after): Use XMALLOC instead of xmalloc.
8912         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
8913         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
8914         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
8915         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
8916
8917 2006-11-03  Bruno Haible  <bruno@clisp.org>
8918
8919         * lib/c-ctype.h [C++]: Define functions without name mangling.
8920         * lib/fwriteerror.h [C++]: Likewise.
8921         * lib/gcd.h [C++]: Likewise.
8922         * lib/linebreak.h [C++]: Likewise.
8923
8924 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8925
8926         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
8927         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
8928         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
8929         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
8930         Check for functions and headers just once.
8931         Check for declaration of canonicalize_file_name.
8932         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
8933
8934 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
8935
8936         * gnulib-tool (func_import): Fix typo in actioncmd.
8937
8938 2006-11-02  Bruno Haible  <bruno@clisp.org>
8939
8940         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
8941         newline sequence in the Makefile.am snippet as a space, like "make"
8942         does.
8943         Reported by Roger Persson <perrog@gmail.com>.
8944
8945 2006-11-01  Bruno Haible  <bruno@clisp.org>
8946
8947         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
8948         already declared in <string.h>.
8949         * lib/strcase.h (strncasecmp): Don't declare it if yes.
8950
8951 2006-11-01  Bruno Haible  <bruno@clisp.org>
8952
8953         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
8954         * lib/strcase.h: Include <string.h>.
8955         (strcasecmp): Define to rpl_strcasecmp here.
8956
8957 2006-11-01  Bruno Haible  <bruno@clisp.org>
8958
8959         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
8960
8961 2006-11-01  Eric Blake  <ebb9@byu.net>
8962
8963         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
8964
8965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
8966
8967 2006-10-29  Bruno Haible  <bruno@clisp.org>
8968
8969         Make it compile in C++ mode.
8970         * lib/full-write.c (full_rw): Add a cast.
8971
8972 2006-11-01  Bruno Haible  <bruno@clisp.org>
8973
8974         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
8975         be POSIX compliant.
8976         Reported by Roger Persson <perrog@gmail.com>.
8977
8978 2006-11-01  Eric Blake  <ebb9@byu.net>
8979
8980         * lib/getopt_.h: Fix comments.
8981
8982 2006-10-31  Eric Blake  <ebb9@byu.net>
8983
8984         * modules/tmpdir (Depends-on): Add sys_stat.
8985         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
8986         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
8987         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
8988         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
8989         tempname.
8990
8991 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8992
8993         Avoid some C++ diagnostics reported by Bruno Haible.
8994         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
8995         xmalloc.
8996         (quotearg_alloc): Use xcharalloc rather than xmalloc.
8997         (struct slotvec): Move to top level.
8998         (quotearg_n_options): Rewrite to avoid xmalloc.
8999         * lib/xalloc.h (xcharalloc): New function.
9000         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
9001         [defined __cplusplus]: Add function template that provides result
9002         type propagation.  This part of the change is from Bruno Haible.
9003
9004 2006-10-29  Bruno Haible  <bruno@clisp.org>
9005
9006         Make it compile in C++ mode.
9007         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
9008         * lib/strnlen1.c (strnlen1): Cast memchr result.
9009         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
9010         * lib/clean-temp.c (string_equals, string_hash): Add casts.
9011         (create_temp_dir): Rename local variable 'template'.
9012         (compile_csharp_using_sscli): Add cast.
9013         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
9014         * lib/findprog.c (find_in_path): Likewise.
9015         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
9016         * lib/wait-process.c (register_slave_subprocess): Likewise.
9017
9018 2006-10-22  Bruno Haible  <bruno@clisp.org>
9019
9020         * modules/tsearch: New file.
9021         * lib/tsearch.h: New file.
9022         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
9023         * m4/tsearch.m4: New file.
9024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
9025
9026 2006-10-29  Eric Blake  <ebb9@byu.net>
9027
9028         * lib/arcfour.c: Assume config.h.
9029         * lib/arctwo.c: Likewise.
9030         * lib/base64.c: Likewise.
9031         * lib/check-version.c: Likewise.
9032         * lib/crc.c: Likewise.
9033         * lib/des.c: Likewise.
9034         * lib/gc-gnulib.c: Likewise.
9035         * lib/gc-libgcrypt.c: Likewise.
9036         * lib/gc-pbkdf2-sha1.c: Likewise.
9037         * lib/getaddrinfo.c: Likewise.
9038         * lib/getdelim.c: Likewise.
9039         * lib/getline.c: Likewise.
9040         * lib/hmac-md5.c: Likewise.
9041         * lib/hmac-sha1.c: Likewise.
9042         * lib/iconvme.c: Likewise.
9043         * lib/md2.c: Likewise.
9044         * lib/md4.c: Likewise.
9045         * lib/memxor.c: Likewise.
9046         * lib/read-file.c: Likewise.
9047         * lib/readline.c: Likewise.
9048         * lib/rijndael-alg-fst.c: Likewise.
9049         * lib/rijndael-api-fst.c: Likewise.
9050         * lib/xgetdomainname.c: Likewise.
9051
9052 2006-10-28  Eric Blake  <ebb9@byu.net>
9053
9054         * lib/xstrndup.c: Assume config.h.
9055
9056 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9057
9058         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
9059         stat-macros.h is now for our own macros, whereas stat_h is for
9060         macros in the <sys/stat.h> name space.
9061         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
9062         (STAT_MACROS_H): Remove.
9063         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9064         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
9065         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
9066         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
9067         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
9068         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
9069         Move these macros to ...
9070         * lib/stat_.h: here.  Don't include stat-macros.h.
9071         * lib/canonicalize.c: Don't include stat-macros.h.
9072         * lib/chown.c: Likewise.
9073         * lib/euidaccess.c: Likewise.
9074         * lib/file-type.c: Likewise.
9075         * lib/filemode.c: Likewise.
9076         * lib/glob.c: Likewise.
9077         * lib/isapipe.c: Likewise.
9078         * lib/lchown.c: Likewise.
9079         * lib/lstat.c: Likewise.
9080         * lib/mkdir-p.c: Likewise.
9081         * lib/rmdir.c: Likewise.
9082         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
9083         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
9084         unless mkdir isn't declared, to speed up 'configure'.
9085         Always create sys/stat.h, since it's unlikely any real sys/stat.h
9086         would define all the S_* symbols.
9087         * modules/canonicalize (Depends-on):
9088         Depend on sys_stat, not stat-macros.
9089         * modules/chown: Likewise.
9090         * modules/euidaccess: Likewise.
9091         * modules/filemode: Likewise.
9092         * modules/file-type: Likewise.
9093         * modules/glob: Likewise.
9094         * modules/isapipe: Likewise.
9095         * modules/lchown: Likewise.
9096         * modules/lstat: Likewise.
9097         * modules/mkancesdirs: Likewise.
9098         * modules/rmdir: Likewise.
9099         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
9100         * modules/modechange: Likewise.
9101         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
9102         (configure.ac): Remove gl_STAT_MACROS.
9103         * modules/sys_stat (Depends-on): Remove stat-macros.
9104
9105 2006-10-27  Bruno Haible  <bruno@clisp.org>
9106
9107         * m4/signed.m4: Remove file.
9108         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
9109         invocation.
9110         * modules/vasnprintf (Files): Remove m4/signed.m4.
9111
9112 2006-10-27  Bruno Haible  <bruno@clisp.org>
9113
9114         Update to GNU gettext 0.16.
9115         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
9116         m4/inttypes-h.m4, m4/signed.m4.
9117         * m4/gettext.m4: Update to GNU gettext 0.16.
9118         * m4/intl.m4: New file, from GNU gettext.
9119         * m4/intldir.m4: New file, from GNU gettext.
9120         * config/srclist.txt: Update
9121
9122 2006-10-27  Eric Blake  <ebb9@byu.net>
9123
9124         * MODULES.html.sh: Document tempname.
9125         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
9126         dependencies.
9127         (Files): Move lib/tempname.c...
9128         * modules/tempname: ...to this new module.
9129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
9130         (gl_PREREQ_TEMPNAME): Move...
9131         * m4/tempname.m4: ...to this new file.
9132         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
9133         * modules/sys_stat (Depends-on): Add stat-macros.
9134         * lib/stat_.h (includes): Pick up stat macros.
9135         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
9136         if stat macros are broken.
9137         * lib/tempname.c (includes): No need to include "stat-macros.h".
9138         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
9139         (direxists, __path_search) [!_LIBC]: Don't compile these in
9140         gnulib; the tmpdir module covers that.
9141         * lib/tempname.h: New file.
9142
9143 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9144
9145         * COPYING: Explain how gnulib-tool converts licence headers.
9146         Almost all wording by Eric Blake.
9147
9148 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9149
9150         * lib/mbchar.h (is_basic_table): Make read-only.
9151         * lib/mbchar.c (is_basic_table): Likewise.
9152         Reported by John Darrington.
9153
9154 2006-10-25  Bruno Haible  <bruno@clisp.org>
9155
9156         * lib/progname.h (set_program_name): Undefine before defining.
9157
9158 2006-10-25  Bruno Haible  <bruno@clisp.org>
9159
9160         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
9161         false for non-gcc C++ compilers.
9162         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9163
9164 2006-10-24  Bruno Haible  <bruno@clisp.org>
9165
9166         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
9167         iconv implementations like Irix iconv.
9168
9169 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9170
9171         * modules/vararrays: New file.
9172         * m4/vararrays.m4: New file, taken from diffutils.
9173         * MODULES.html.sh: New module vararrays.
9174
9175 2006-10-24  Karl Berry  <karl@gnu.org>
9176
9177         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
9178         Don't call GNU Unix.
9179
9180 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9181
9182         * users.txt: Add Libtool.
9183
9184         Sync from Libtool:
9185
9186         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9187
9188         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
9189         to gnulib's policy of including config.h unconditionally.
9190
9191 2006-10-24  Bruno Haible  <bruno@clisp.org>
9192
9193         * modules/wcwidth (Files): Add m4/wint_t.m4.
9194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
9195         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
9196
9197 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9198
9199         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
9200         to pacify GCC with some -W flags enabled.  Problem reported by
9201         Bruno Haible.
9202
9203 2006-10-24  Jim Meyering  <jim@meyering.net>
9204
9205         * MODULES.html.sh: Remove uinttostr.  It's not a module.
9206         Reported by Karl Berry.
9207
9208 2006-10-23  Bruno Haible  <bruno@clisp.org>
9209
9210         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
9211
9212 2006-10-24  Bruno Haible  <bruno@clisp.org>
9213
9214         * lib/gl_list.h: Use C comment style, not C++ comment style.
9215
9216 2006-10-23  Eric Blake  <ebb9@byu.net>
9217
9218         * lib/getaddrinfo.c (includes): Add missing include.
9219
9220 2006-10-23  Bruno Haible  <bruno@clisp.org>
9221             Paul Eggert  <eggert@cs.ucla.edu>
9222
9223         Ability to rename obstack_free.
9224         * lib/obstack.h (__obstack_free): New macro. Declare instead of
9225         obstack_free.
9226         (obstack_free): Invoke the __obstack_free macro.
9227         * lib/obstack.c (obstack_free): Use __obstack_free macro.
9228
9229 2006-10-23  Bruno Haible  <bruno@clisp.org>
9230             Paul Eggert  <eggert@cs.ucla.edu>
9231
9232         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
9233         __argc, __argv from the declaration. (They are defined as macros on
9234         mingw.)
9235
9236 2006-10-22  Bruno Haible  <bruno@clisp.org>
9237
9238         * doc/gnulib-intro.texi: New file.
9239         * doc/gnulib.texi: Include it.
9240
9241 2006-10-21  Bruno Haible  <bruno@clisp.org>
9242
9243         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
9244         "Introduction", "Miscellanous Notes", "Particular Modules".
9245
9246 2006-10-21  Bruno Haible  <bruno@clisp.org>
9247
9248         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9249         Change mostlyclean-local rule to avoid sh syntax error from bash
9250         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
9251
9252 2006-10-23  Jim Meyering  <jim@meyering.net>
9253
9254         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
9255         in place of snprintf.
9256
9257         * modules/inttostr (Files): Add lib/uinttostr.c.
9258         * lib/uinttostr.c (inttostr): New file/function.
9259         * lib/inttostr.h (uinttostr): Declare.
9260         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
9261         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9262         Add uinttostr.
9263         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
9264
9265 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
9266
9267         * lib/canonicalize.c (ELOOP): Define if not already defined.
9268         Problem reported by Bruno Haible in
9269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
9270
9271 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
9272
9273         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
9274         Problem reported by Perry Smith and Ville Laurikari.
9275
9276         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
9277         uses.
9278
9279 2006-10-19  Bruno Haible  <bruno@clisp.org>
9280
9281         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
9282         for mingw.
9283
9284 2006-10-19  Bruno Haible  <bruno@clisp.org>
9285
9286         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
9287         Needed for mingw.
9288
9289 2006-10-19  Bruno Haible  <bruno@clisp.org>
9290
9291         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
9292
9293 2006-10-19  Bruno Haible  <bruno@clisp.org>
9294
9295         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
9296         it.
9297
9298 2006-10-19  Bruno Haible  <bruno@clisp.org>
9299
9300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
9301         invocation.
9302
9303 2006-10-19  Bruno Haible  <bruno@clisp.org>
9304
9305         * gnulib-tool (func_create_testdir): Don't include ftruncate and
9306         mountlist by default.
9307
9308 2006-10-16  Bruno Haible  <bruno@clisp.org>
9309
9310         * lib/c-strstr.c: Include c-strstr.h.
9311
9312 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
9313
9314         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
9315         in a slash.
9316
9317 2006-10-18  Bruno Haible  <bruno@clisp.org>
9318
9319         * lib/lock.h [C++]: Wrap definitions in extern "C".
9320
9321 2006-10-18  Bruno Haible  <bruno@clisp.org>
9322
9323         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
9324         gl_LIBOBJS list.
9325
9326 2006-10-18  Bruno Haible  <bruno@clisp.org>
9327
9328         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
9329
9330 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
9331
9332         * lib/xstrtol.h: Include gettext.h.
9333         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
9334         Problem reported by Eric Blake.
9335         * modules/xstrtol (Depends-on): Add gettext-h.
9336
9337 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
9338
9339         * lib/strftime.c (advance): New macro.
9340         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
9341         incomplete type, so you can't add 0 to it.  Problem and patch
9342         reported by Eelco Dolstra for dietlibc.
9343
9344 2006-10-18  Jim Meyering  <jim@meyering.net>
9345
9346         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
9347         type for a local, and rename it: s/up/user_proc/.
9348
9349 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
9350
9351         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
9352         READ_UTMP_USER_PROCESS.
9353         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
9354
9355 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9356
9357         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
9358         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
9359
9360 2006-10-17  Eric Blake  <ebb9@byu.net>
9361
9362         * lib/sigprocmask.c (sigprocmask): Fix typo.
9363
9364         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
9365
9366         * modules/clean-temp (Makefile.am): Don't add to make output...
9367         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
9368         config.h.
9369
9370 2006-10-17  Bruno Haible  <bruno@clisp.org>
9371
9372         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
9373         differently if DEFAULT_TEXT_DOMAIN is set.
9374
9375 2006-10-16  Bruno Haible  <bruno@clisp.org>
9376
9377         * lib/clean-temp.c: Include fwriteerror.h.
9378
9379 2006-10-16  Bruno Haible  <bruno@clisp.org>
9380
9381         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
9382
9383 2006-10-16  Bruno Haible  <bruno@clisp.org>
9384
9385         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
9386         * lib/sigprocmask.h: Include <sys/types.h>.
9387         (sigset_t): Use the system's definition if present.
9388
9389 2006-10-17  Eric Blake  <ebb9@byu.net>
9390
9391         * lib/xvasprintf.c (includes): Assume config.h.
9392         * lib/xasprintf.c (includes): Likewise.
9393
9394 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9395
9396         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
9397         at least as wide as intmax_t.
9398
9399 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
9400
9401         (Imported from Automake.)
9402         * build-aux/gnupload: Update to version 1.1 of directive file.
9403
9404 2006-10-16  Eric Blake  <ebb9@byu.net>
9405
9406         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
9407         match Automake 1.10a.
9408
9409 2006-10-14  Bruno Haible  <bruno@clisp.org>
9410
9411         * modules/sigprocmask: New file.
9412         * lib/sigprocmask.h: New file.
9413         * lib/sigprocmask.c: New file.
9414         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
9415         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
9416         request sigprocmask.o.
9417         (gl_PREREQ_SIGPROCMASK): New macro.
9418         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
9419         (Depends-on): Add sigprocmask.
9420         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
9421         gt_SIGNALBLOCKING. Test for 'raise' only once.
9422         * lib/fatal-signal.c: Include sigprocmask.h.
9423         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
9424         unblock_fatal_signals): Define always.
9425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9426         sigprocmask.
9427
9428 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9429
9430         Sync from Automake.
9431         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9432         which incorrectly sets the mode of an existing destination
9433         directory.  In some cases the unpatched install-sh could do the
9434         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9435         system.  We hope this is rare in practice, but it's clearly worth
9436         fixing.  Problem reported by Alex Unleashed in
9437         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9438         Also, don't bother to check for -m bugs unless we're using -m;
9439         suggested by Stepan Kasal.
9440
9441 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9442
9443         Sync from Automake.
9444         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
9445         `-c' flag, so they appear at the same position as in %FASTDEP%
9446         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
9447         which ignores unknown options only after the first non-option.
9448         Bug report against M4 by Nelson H. F. Beebe.
9449
9450 2006-10-13  Jim Meyering  <jim@meyering.net>
9451
9452         Fix a bug in yesterday's change.
9453         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
9454         p->fts_statp->st_dev would be used uninitialized.
9455         Ensures that we always call fts_stat on the very first entry.
9456         Miklos Szeredi reported that find -xdev stopped working.
9457
9458 2006-10-12  Bruno Haible  <bruno@clisp.org>
9459
9460         * gnulib-tool (func_get_automake_snippet): Append an automatically
9461         computed EXTRA_DIST augmentation.
9462         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
9463         * modules/alloca-opt (Makefile.am): Likewise.
9464         * modules/allocsa (Makefile.am): Likewise.
9465         * modules/arcfour (Makefile.am): Likewise.
9466         * modules/arctwo (Makefile.am): Likewise.
9467         * modules/argmatch (Makefile.am): Likewise.
9468         * modules/argz (Makefile.am): Likewise.
9469         * modules/atexit (Makefile.am): Likewise.
9470         * modules/backupfile (Makefile.am): Likewise.
9471         * modules/byteswap (Makefile.am): Likewise.
9472         * modules/c-strtod (Makefile.am): Likewise.
9473         * modules/c-strtold (Makefile.am): Likewise.
9474         * modules/calloc (Makefile.am): Likewise.
9475         * modules/canon-host (Makefile.am): Likewise.
9476         * modules/canonicalize (Makefile.am): Likewise.
9477         * modules/chdir-long (Makefile.am): Likewise.
9478         * modules/chdir-safer (Makefile.am): Likewise.
9479         * modules/check-version (Makefile.am): Likewise.
9480         * modules/chown (Makefile.am): Likewise.
9481         * modules/cloexec (Makefile.am): Likewise.
9482         * modules/close-stream (Makefile.am): Likewise.
9483         * modules/closeout (Makefile.am): Likewise.
9484         * modules/crc (Makefile.am): Likewise.
9485         * modules/csharpexec (Makefile.am): Likewise.
9486         * modules/cycle-check (Makefile.am): Likewise.
9487         * modules/des (Makefile.am): Likewise.
9488         * modules/dev-ino (Makefile.am): Likewise.
9489         * modules/dirfd (Makefile.am): Likewise.
9490         * modules/dirname (Makefile.am): Likewise.
9491         * modules/dup2 (Makefile.am): Likewise.
9492         * modules/eealloc (Makefile.am): Likewise.
9493         * modules/error (Makefile.am): Likewise.
9494         * modules/euidaccess (Makefile.am): Likewise.
9495         * modules/exclude (Makefile.am): Likewise.
9496         * modules/exitfail (Makefile.am): Likewise.
9497         * modules/fcntl-safer (Makefile.am): Likewise.
9498         * modules/fcntl (Makefile.am): Likewise.
9499         * modules/file-type (Makefile.am): Likewise.
9500         * modules/fileblocks (Makefile.am): Likewise.
9501         * modules/filemode (Makefile.am): Likewise.
9502         * modules/filenamecat (Makefile.am): Likewise.
9503         * modules/fnmatch (Makefile.am): Likewise.
9504         * modules/fopen-safer (Makefile.am): Likewise.
9505         * modules/fpending (Makefile.am): Likewise.
9506         * modules/fprintftime (Makefile.am): Likewise.
9507         * modules/free (Makefile.am): Likewise.
9508         * modules/fsusage (Makefile.am): Likewise.
9509         * modules/ftruncate (Makefile.am): Likewise.
9510         * modules/fts (Makefile.am): Likewise.
9511         * modules/gc-arcfour (Makefile.am): Likewise.
9512         * modules/gc-des (Makefile.am): Likewise.
9513         * modules/gc-hmac-md5 (Makefile.am): Likewise.
9514         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
9515         * modules/gc-md4 (Makefile.am): Likewise.
9516         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9517         * modules/gc-sha1 (Makefile.am): Likewise.
9518         * modules/gc (Makefile.am): Likewise.
9519         * modules/getaddrinfo (Makefile.am): Likewise.
9520         * modules/getcwd (Makefile.am): Likewise.
9521         * modules/getdelim (Makefile.am): Likewise.
9522         * modules/getdomainname (Makefile.am): Likewise.
9523         * modules/getgroups (Makefile.am): Likewise.
9524         * modules/gethostname (Makefile.am): Likewise.
9525         * modules/gethrxtime (Makefile.am): Likewise.
9526         * modules/getline (Makefile.am): Likewise.
9527         * modules/getloadavg (Makefile.am): Likewise.
9528         * modules/getlogin_r (Makefile.am): Likewise.
9529         * modules/getndelim2 (Makefile.am): Likewise.
9530         * modules/getopt (Makefile.am): Likewise.
9531         * modules/getpagesize (Makefile.am): Likewise.
9532         * modules/getpass-gnu (Makefile.am): Likewise.
9533         * modules/getpass (Makefile.am): Likewise.
9534         * modules/getsubopt (Makefile.am): Likewise.
9535         * modules/gettime (Makefile.am): Likewise.
9536         * modules/gettimeofday (Makefile.am): Likewise.
9537         * modules/getugroups (Makefile.am): Likewise.
9538         * modules/getusershell (Makefile.am): Likewise.
9539         * modules/glob (Makefile.am): Likewise.
9540         * modules/group-member (Makefile.am): Likewise.
9541         * modules/hard-locale (Makefile.am): Likewise.
9542         * modules/hash (Makefile.am): Likewise.
9543         * modules/hmac-md5 (Makefile.am): Likewise.
9544         * modules/hmac-sha1 (Makefile.am): Likewise.
9545         * modules/human (Makefile.am): Likewise.
9546         * modules/idcache (Makefile.am): Likewise.
9547         * modules/imaxabs (Makefile.am): Likewise.
9548         * modules/imaxdiv (Makefile.am): Likewise.
9549         * modules/inet_ntop (Makefile.am): Likewise.
9550         * modules/inet_pton (Makefile.am): Likewise.
9551         * modules/intprops (Makefile.am): Likewise.
9552         * modules/inttostr (Makefile.am): Likewise.
9553         * modules/inttypes (Makefile.am): Likewise.
9554         * modules/isapipe (Makefile.am): Likewise.
9555         * modules/javaversion (Makefile.am): Likewise.
9556         * modules/lchmod (Makefile.am): Likewise.
9557         * modules/lchown (Makefile.am): Likewise.
9558         * modules/localcharset (Makefile.am): Likewise.
9559         * modules/long-options (Makefile.am): Likewise.
9560         * modules/lstat (Makefile.am): Likewise.
9561         * modules/malloc (Makefile.am): Likewise.
9562         * modules/mathl (Makefile.am): Likewise.
9563         * modules/mbchar (Makefile.am): Likewise.
9564         * modules/md2 (Makefile.am): Likewise.
9565         * modules/md4 (Makefile.am): Likewise.
9566         * modules/md5 (Makefile.am): Likewise.
9567         * modules/memcasecmp (Makefile.am): Likewise.
9568         * modules/memchr (Makefile.am): Likewise.
9569         * modules/memcmp (Makefile.am): Likewise.
9570         * modules/memcoll (Makefile.am): Likewise.
9571         * modules/memcpy (Makefile.am): Likewise.
9572         * modules/memmem (Makefile.am): Likewise.
9573         * modules/memmove (Makefile.am): Likewise.
9574         * modules/mempcpy (Makefile.am): Likewise.
9575         * modules/memrchr (Makefile.am): Likewise.
9576         * modules/memset (Makefile.am): Likewise.
9577         * modules/memxor (Makefile.am): Likewise.
9578         * modules/mkancesdirs (Makefile.am): Likewise.
9579         * modules/mkdir-p (Makefile.am): Likewise.
9580         * modules/mkdir (Makefile.am): Likewise.
9581         * modules/mkdtemp (Makefile.am): Likewise.
9582         * modules/mkstemp (Makefile.am): Likewise.
9583         * modules/mktime (Makefile.am): Likewise.
9584         * modules/modechange (Makefile.am): Likewise.
9585         * modules/mountlist (Makefile.am): Likewise.
9586         * modules/nanosleep (Makefile.am): Likewise.
9587         * modules/obstack (Makefile.am): Likewise.
9588         * modules/openat (Makefile.am): Likewise.
9589         * modules/pagealign_alloc (Makefile.am): Likewise.
9590         * modules/pathmax (Makefile.am): Likewise.
9591         * modules/physmem (Makefile.am): Likewise.
9592         * modules/poll (Makefile.am): Likewise.
9593         * modules/posixtm (Makefile.am): Likewise.
9594         * modules/posixver (Makefile.am): Likewise.
9595         * modules/putenv (Makefile.am): Likewise.
9596         * modules/quote (Makefile.am): Likewise.
9597         * modules/quotearg (Makefile.am): Likewise.
9598         * modules/raise (Makefile.am): Likewise.
9599         * modules/read-file (Makefile.am): Likewise.
9600         * modules/readline (Makefile.am): Likewise.
9601         * modules/readlink (Makefile.am): Likewise.
9602         * modules/readtokens (Makefile.am): Likewise.
9603         * modules/readutmp (Makefile.am): Likewise.
9604         * modules/realloc (Makefile.am): Likewise.
9605         * modules/regex (Makefile.am): Likewise.
9606         * modules/rename-dest-slash (Makefile.am): Likewise.
9607         * modules/rename (Makefile.am): Likewise.
9608         * modules/rijndael (Makefile.am): Likewise.
9609         * modules/rmdir (Makefile.am): Likewise.
9610         * modules/rpmatch (Makefile.am): Likewise.
9611         * modules/safe-read (Makefile.am): Likewise.
9612         * modules/safe-write (Makefile.am): Likewise.
9613         * modules/same-inode (Makefile.am): Likewise.
9614         * modules/same (Makefile.am): Likewise.
9615         * modules/save-cwd (Makefile.am): Likewise.
9616         * modules/savedir (Makefile.am): Likewise.
9617         * modules/setenv (Makefile.am): Likewise.
9618         * modules/settime (Makefile.am): Likewise.
9619         * modules/sha1 (Makefile.am): Likewise.
9620         * modules/sig2str (Makefile.am): Likewise.
9621         * modules/snprintf (Makefile.am): Likewise.
9622         * modules/stat-macros (Makefile.am): Likewise.
9623         * modules/stat-time (Makefile.am): Likewise.
9624         * modules/stdbool (Makefile.am): Likewise.
9625         * modules/stdint (Makefile.am): Likewise.
9626         * modules/stdlib-safer (Makefile.am): Likewise.
9627         * modules/stpcpy (Makefile.am): Likewise.
9628         * modules/stpncpy (Makefile.am): Likewise.
9629         * modules/strcase (Makefile.am): Likewise.
9630         * modules/strcasestr (Makefile.am): Likewise.
9631         * modules/strchrnul (Makefile.am): Likewise.
9632         * modules/strcspn (Makefile.am): Likewise.
9633         * modules/strdup (Makefile.am): Likewise.
9634         * modules/strerror (Makefile.am): Likewise.
9635         * modules/strftime (Makefile.am): Likewise.
9636         * modules/strndup (Makefile.am): Likewise.
9637         * modules/strnlen (Makefile.am): Likewise.
9638         * modules/strpbrk (Makefile.am): Likewise.
9639         * modules/strsep (Makefile.am): Likewise.
9640         * modules/strstr (Makefile.am): Likewise.
9641         * modules/strtod (Makefile.am): Likewise.
9642         * modules/strtoimax (Makefile.am): Likewise.
9643         * modules/strtok_r (Makefile.am): Likewise.
9644         * modules/strtol (Makefile.am): Likewise.
9645         * modules/strtoll (Makefile.am): Likewise.
9646         * modules/strtoul (Makefile.am): Likewise.
9647         * modules/strtoull (Makefile.am): Likewise.
9648         * modules/strtoumax (Makefile.am): Likewise.
9649         * modules/strverscmp (Makefile.am): Likewise.
9650         * modules/sys_socket (Makefile.am): Likewise.
9651         * modules/sys_stat (Makefile.am): Likewise.
9652         * modules/sysexits (Makefile.am): Likewise.
9653         * modules/time_r (Makefile.am): Likewise.
9654         * modules/timegm (Makefile.am): Likewise.
9655         * modules/timespec (Makefile.am): Likewise.
9656         * modules/tmpfile-safer (Makefile.am): Likewise.
9657         * modules/trim (Makefile.am): Likewise.
9658         * modules/unistd-safer (Makefile.am): Likewise.
9659         * modules/unlinkdir (Makefile.am): Likewise.
9660         * modules/unlocked-io (Makefile.am): Likewise.
9661         * modules/userspec (Makefile.am): Likewise.
9662         * modules/utime (Makefile.am): Likewise.
9663         * modules/utimecmp (Makefile.am): Likewise.
9664         * modules/utimens (Makefile.am): Likewise.
9665         * modules/vasnprintf (Makefile.am): Likewise.
9666         * modules/vasprintf (Makefile.am): Likewise.
9667         * modules/vsnprintf (Makefile.am): Likewise.
9668         * modules/xalloc (Makefile.am): Likewise.
9669         * modules/xgetcwd (Makefile.am): Likewise.
9670         * modules/xnanosleep (Makefile.am): Likewise.
9671         * modules/xreadlink (Makefile.am): Likewise.
9672         * modules/xstrtod (Makefile.am): Likewise.
9673         * modules/xstrtol (Makefile.am): Likewise.
9674         * modules/xstrtold (Makefile.am): Likewise.
9675         * modules/yesno (Makefile.am): Likewise.
9676         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
9677
9678 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9679
9680         * modules/error (Makefile.am): Distribute files through
9681         EXTRA_DIST, not lib_SOURCES.
9682
9683 2006-10-12  Eric Blake  <ebb9@byu.net>
9684
9685         * modules/error (Makefile.am): Distribute files in /lib.
9686         * modules/obstack (Makefile.am): Likewise.
9687
9688 2006-10-12  Bruno Haible  <bruno@clisp.org>
9689
9690         * modules/acl (Makefile.am): Distribute all files in lib/ through
9691         EXTRA_DIST.
9692         * modules/arcfour (Makefile.am): Likewise.
9693         * modules/arctwo (Makefile.am): Likewise.
9694         * modules/argmatch (Makefile.am): Likewise.
9695         * modules/argz (Makefile.am): Likewise.
9696         * modules/atexit (Makefile.am): Likewise.
9697         * modules/backupfile (Makefile.am): Likewise.
9698         * modules/c-strtod (Makefile.am): Likewise.
9699         * modules/c-strtold (Makefile.am): Likewise.
9700         * modules/calloc (Makefile.am): Likewise.
9701         * modules/canon-host (Makefile.am): Likewise.
9702         * modules/canonicalize (Makefile.am): Likewise.
9703         * modules/chdir-long (Makefile.am): Likewise.
9704         * modules/chdir-safer (Makefile.am): Likewise.
9705         * modules/check-version (Makefile.am): Likewise.
9706         * modules/chown (Makefile.am): Likewise.
9707         * modules/cloexec (Makefile.am): Likewise.
9708         * modules/close-stream (Makefile.am): Likewise.
9709         * modules/closeout (Makefile.am): Likewise.
9710         * modules/crc (Makefile.am): Likewise.
9711         * modules/cycle-check (Makefile.am): Likewise.
9712         * modules/des (Makefile.am): Likewise.
9713         * modules/dirfd (Makefile.am): Likewise.
9714         * modules/dirname (Makefile.am): Likewise.
9715         * modules/dup2 (Makefile.am): Likewise.
9716         * modules/euidaccess (Makefile.am): Likewise.
9717         * modules/exclude (Makefile.am): Likewise.
9718         * modules/exitfail (Makefile.am): Likewise.
9719         * modules/fcntl-safer (Makefile.am): Likewise.
9720         * modules/file-type (Makefile.am): Likewise.
9721         * modules/fileblocks (Makefile.am): Likewise.
9722         * modules/filemode (Makefile.am): Likewise.
9723         * modules/filenamecat (Makefile.am): Likewise.
9724         * modules/fnmatch (Makefile.am): Likewise.
9725         * modules/fopen-safer (Makefile.am): Likewise.
9726         * modules/fpending (Makefile.am): Likewise.
9727         * modules/fprintftime (Makefile.am): Likewise.
9728         * modules/free (Makefile.am): Likewise.
9729         * modules/fsusage (Makefile.am): Likewise.
9730         * modules/ftruncate (Makefile.am): Likewise.
9731         * modules/fts (Makefile.am): Likewise.
9732         * modules/gc (Makefile.am): Likewise.
9733         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9734         * modules/getaddrinfo (Makefile.am): Likewise.
9735         * modules/getcwd (Makefile.am): Likewise.
9736         * modules/getdelim (Makefile.am): Likewise.
9737         * modules/getdomainname (Makefile.am): Likewise.
9738         * modules/getgroups (Makefile.am): Likewise.
9739         * modules/gethostname (Makefile.am): Likewise.
9740         * modules/gethrxtime (Makefile.am): Likewise.
9741         * modules/getline (Makefile.am): Likewise.
9742         * modules/getloadavg (Makefile.am): Likewise.
9743         * modules/getlogin_r (Makefile.am): Likewise.
9744         * modules/getopt (Makefile.am): Likewise.
9745         * modules/getpass (Makefile.am): Likewise.
9746         * modules/getpass-gnu (Makefile.am): Likewise.
9747         * modules/getsubopt (Makefile.am): Likewise.
9748         * modules/gettime (Makefile.am): Likewise.
9749         * modules/gettimeofday (Makefile.am): Likewise.
9750         * modules/getugroups (Makefile.am): Likewise.
9751         * modules/getusershell (Makefile.am): Likewise.
9752         * modules/glob (Makefile.am): Likewise.
9753         * modules/group-member (Makefile.am): Likewise.
9754         * modules/hard-locale (Makefile.am): Likewise.
9755         * modules/hash (Makefile.am): Likewise.
9756         * modules/hmac-md5 (Makefile.am): Likewise.
9757         * modules/hmac-sha1 (Makefile.am): Likewise.
9758         * modules/human (Makefile.am): Likewise.
9759         * modules/idcache (Makefile.am): Likewise.
9760         * modules/imaxabs (Makefile.am): Likewise.
9761         * modules/imaxdiv (Makefile.am): Likewise.
9762         * modules/inet_ntop (Makefile.am): Likewise.
9763         * modules/inet_pton (Makefile.am): Likewise.
9764         * modules/inttostr (Makefile.am): Likewise.
9765         * modules/isapipe (Makefile.am): Likewise.
9766         * modules/lchown (Makefile.am): Likewise.
9767         * modules/long-options (Makefile.am): Likewise.
9768         * modules/lstat (Makefile.am): Likewise.
9769         * modules/malloc (Makefile.am): Likewise.
9770         * modules/mathl (Makefile.am): Likewise.
9771         * modules/mbchar (Makefile.am): Likewise.
9772         * modules/md2 (Makefile.am): Likewise.
9773         * modules/md4 (Makefile.am): Likewise.
9774         * modules/md5 (Makefile.am): Likewise.
9775         * modules/memcasecmp (Makefile.am): Likewise.
9776         * modules/memchr (Makefile.am): Likewise.
9777         * modules/memcmp (Makefile.am): Likewise.
9778         * modules/memcoll (Makefile.am): Likewise.
9779         * modules/memcpy (Makefile.am): Likewise.
9780         * modules/memmem (Makefile.am): Likewise.
9781         * modules/memmove (Makefile.am): Likewise.
9782         * modules/mempcpy (Makefile.am): Likewise.
9783         * modules/memrchr (Makefile.am): Likewise.
9784         * modules/memset (Makefile.am): Likewise.
9785         * modules/memxor (Makefile.am): Likewise.
9786         * modules/mkancesdirs (Makefile.am): Likewise.
9787         * modules/mkdir (Makefile.am): Likewise.
9788         * modules/mkdir-p (Makefile.am): Likewise.
9789         * modules/mkdtemp (Makefile.am): Likewise.
9790         * modules/mkstemp (Makefile.am): Likewise.
9791         * modules/mktime (Makefile.am): Likewise.
9792         * modules/modechange (Makefile.am): Likewise.
9793         * modules/mountlist (Makefile.am): Likewise.
9794         * modules/nanosleep (Makefile.am): Likewise.
9795         * modules/openat (Makefile.am): Likewise.
9796         * modules/pagealign_alloc (Makefile.am): Likewise.
9797         * modules/physmem (Makefile.am): Likewise.
9798         * modules/poll (Makefile.am): Likewise.
9799         * modules/posixtm (Makefile.am): Likewise.
9800         * modules/posixver (Makefile.am): Likewise.
9801         * modules/putenv (Makefile.am): Likewise.
9802         * modules/quote (Makefile.am): Likewise.
9803         * modules/quotearg (Makefile.am): Likewise.
9804         * modules/raise (Makefile.am): Likewise.
9805         * modules/read-file (Makefile.am): Likewise.
9806         * modules/readline (Makefile.am): Likewise.
9807         * modules/readlink (Makefile.am): Likewise.
9808         * modules/readtokens (Makefile.am): Likewise.
9809         * modules/readutmp (Makefile.am): Likewise.
9810         * modules/realloc (Makefile.am): Likewise.
9811         * modules/regex (Makefile.am): Likewise.
9812         * modules/rename (Makefile.am): Likewise.
9813         * modules/rename-dest-slash (Makefile.am): Likewise.
9814         * modules/rijndael (Makefile.am): Likewise.
9815         * modules/rmdir (Makefile.am): Likewise.
9816         * modules/rpmatch (Makefile.am): Likewise.
9817         * modules/safe-read (Makefile.am): Likewise.
9818         * modules/safe-write (Makefile.am): Likewise.
9819         * modules/same (Makefile.am): Likewise.
9820         * modules/save-cwd (Makefile.am): Likewise.
9821         * modules/savedir (Makefile.am): Likewise.
9822         * modules/setenv (Makefile.am): Likewise.
9823         * modules/settime (Makefile.am): Likewise.
9824         * modules/sha1 (Makefile.am): Likewise.
9825         * modules/sig2str (Makefile.am): Likewise.
9826         * modules/snprintf (Makefile.am): Likewise.
9827         * modules/stdlib-safer (Makefile.am): Likewise.
9828         * modules/stpcpy (Makefile.am): Likewise.
9829         * modules/stpncpy (Makefile.am): Likewise.
9830         * modules/strcase (Makefile.am): Likewise.
9831         * modules/strcasestr (Makefile.am): Likewise.
9832         * modules/strchrnul (Makefile.am): Likewise.
9833         * modules/strcspn (Makefile.am): Likewise.
9834         * modules/strdup (Makefile.am): Likewise.
9835         * modules/strerror (Makefile.am): Likewise.
9836         * modules/strftime (Makefile.am): Likewise.
9837         * modules/strndup (Makefile.am): Likewise.
9838         * modules/strnlen (Makefile.am): Likewise.
9839         * modules/strpbrk (Makefile.am): Likewise.
9840         * modules/strsep (Makefile.am): Likewise.
9841         * modules/strstr (Makefile.am): Likewise.
9842         * modules/strtod (Makefile.am): Likewise.
9843         * modules/strtoimax (Makefile.am): Likewise.
9844         * modules/strtok_r (Makefile.am): Likewise.
9845         * modules/strtol (Makefile.am): Likewise.
9846         * modules/strtoll (Makefile.am): Likewise.
9847         * modules/strtoul (Makefile.am): Likewise.
9848         * modules/strtoull (Makefile.am): Likewise.
9849         * modules/strtoumax (Makefile.am): Likewise.
9850         * modules/strverscmp (Makefile.am): Likewise.
9851         * modules/time_r (Makefile.am): Likewise.
9852         * modules/timegm (Makefile.am): Likewise.
9853         * modules/tmpfile-safer (Makefile.am): Likewise.
9854         * modules/unistd-safer (Makefile.am): Likewise.
9855         * modules/unlinkdir (Makefile.am): Likewise.
9856         * modules/userspec (Makefile.am): Likewise.
9857         * modules/utime (Makefile.am): Likewise.
9858         * modules/utimecmp (Makefile.am): Likewise.
9859         * modules/utimens (Makefile.am): Likewise.
9860         * modules/vasnprintf (Makefile.am): Likewise.
9861         * modules/vasprintf (Makefile.am): Likewise.
9862         * modules/vsnprintf (Makefile.am): Likewise.
9863         * modules/xalloc (Makefile.am): Likewise.
9864         * modules/xgetcwd (Makefile.am): Likewise.
9865         * modules/xnanosleep (Makefile.am): Likewise.
9866         * modules/xreadlink (Makefile.am): Likewise.
9867         * modules/xstrtod (Makefile.am): Likewise.
9868         * modules/xstrtol (Makefile.am): Likewise.
9869         * modules/xstrtold (Makefile.am): Likewise.
9870         * modules/yesno (Makefile.am): Likewise.
9871
9872 2006-10-12  Jim Meyering  <jim@meyering.net>
9873
9874         * m4/getloadavg.m4: Revert the change below.
9875
9876         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
9877         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
9878         fail with a symlink, which is what coreutils' ./bootstrap now
9879         creates by default.
9880
9881 2006-10-12  Bruno Haible  <bruno@clisp.org>
9882
9883         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
9884         mingw.
9885         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
9886         MSVC and mingw explicitly.
9887
9888 2006-10-11  Simon Josefsson  <jas@extundo.com>
9889             Bruno Haible  <bruno@clisp.org>
9890
9891         Add support for multiple gnulib-tool invocations in the scope of a
9892         single configure.ac file.
9893         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
9894         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
9895         with the same contents as the _LIBADD variable.
9896         (func_emit_initmacro_start, func_emit_initmacro_end,
9897         func_emit_initmacro_done): New functions.
9898         (func_import, func_create_testdir): Invoke them. Allow the identifiers
9899         gl_LIBOBJS and gl_LTLIBOBJS.
9900
9901 2006-10-11  Bruno Haible  <bruno@clisp.org>
9902
9903         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
9904         (func_create_testdir): Don't create po/Makefile.am, don't invoke
9905         autoreconf. Instead, invoke autopoint explicitly but move back the
9906         *.m4 files from gnulib.
9907
9908 2006-10-11  Bruno Haible  <bruno@clisp.org>
9909
9910         * gnulib-tool (func_usage): Make module names after --create-testdir
9911         optional.
9912         (func_create_testdir): If no module was specified, use nearly all
9913         modules.
9914
9915 2006-10-12  Jim Meyering  <jim@meyering.net>
9916
9917         Big performance improvement for fts-based tools that use FTS_NOSTAT.
9918         Avoid spurious inode-mismatch problems on non-POSIX file systems.
9919         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
9920         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
9921         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
9922         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
9923         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
9924         (fts_set_stat_required): New function.
9925         (fts_open): Defer the calls to fts_stat, if possible or requested.
9926         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
9927         into fts_stat itself.
9928         (fts_read): Perform any required (deferred) fts_stat call.
9929         (fts_build): Likewise, for the directory we're about to open and read.
9930         In the readdir loop, carefully decide whether each entry will require
9931         an eventual call to fts_stat, using dirent.d_type info if available.
9932         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
9933         a command line argument into this function.  Update all callers.
9934         Map a return value of FTS_DOT to FTS_D for a command line argument.
9935         * modules/fts (Depends-on): Add d-type.  Alphabetize.
9936         Thanks to Miklos Szeredi for his tenacity and for the initial
9937         bug report about "find" failing on a FUSE-based file system.
9938
9939         * lib/fts.c (fts_open): Use consistent indentation.
9940
9941 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9942
9943         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
9944         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
9945         reported by Jim Meyering.  All uses of cache variables renamed
9946         to match Autoconf's.
9947         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
9948         the other one.
9949
9950         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9951         Fix misspelling in diagnostic.
9952
9953 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9954
9955         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
9956         defined.  Problem reported by Matthew Woehlke.
9957
9958         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
9959         Add support for Tandem NonStop R series.
9960         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
9961         Use new macro.
9962
9963         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
9964         (has_trailing_slash): Omit size arg; all callers changed.
9965         Omit 'inline', since it doesn't help performance and we'd
9966         need to configure it.
9967         Don't count //, ///, etc. as having a trailing slash.
9968         As a side effect, this removes a C99ism reported by Matthew Woehlke.
9969         (rpl_rename_dest_slash): On failure, use rename's errno rather
9970         than (in some cases) an incorrect or junk errno.
9971         Simplify code by removing need to compute length; this does
9972         cause it to make two passes instead of one over the file name,
9973         but it's worth it.
9974
9975         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
9976         change, since Autoconf's version may no longer be appropriate now
9977         that we are using CVS Autoconf's version.  Add support for Tandem.
9978
9979 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9980             Bruno Haible  <bruno@clisp.org>
9981
9982         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
9983         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
9984         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
9985         gl_AC_TYPE_LONG_LONG.
9986
9987         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
9988         instead of HAVE_LONG_LONG.
9989         * lib/printf-args.c (printf_fetchargs): Likewise.
9990         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9991         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9992         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9993         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
9994         gl_AC_TYPE_LONG_LONG.
9995
9996 2006-10-11  Bruno Haible  <bruno@clisp.org>
9997
9998         * m4/longlong.m4: Add comments.
9999         * m4/ulonglong.m4: Likewise.
10000
10001 2006-10-10  Bruno Haible  <bruno@clisp.org>
10002
10003         Make it possible to #define stpcpy, strdup to aliases.
10004         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
10005         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
10006
10007 2006-10-10  Bruno Haible  <bruno@clisp.org>
10008
10009         Make it possible to #define gcd to an alias.
10010         * lib/gcd.c: Include config.h.
10011
10012 2006-10-10  Bruno Haible  <bruno@clisp.org>
10013
10014         Make it possible to #define c_isascii to an alias.
10015         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
10016         defined. Undefine the macros before defining them, to avoid gcc
10017         warnings.
10018         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
10019         define NO_C_CTYPE_MACROS early.
10020
10021 2006-10-10  Bruno Haible  <bruno@clisp.org>
10022
10023         Make it possible to #define set_program_name to an alias.
10024         * lib/progname.c: Don't undefine set_program_name; instead, undefine
10025         ENABLE_RELOCATABLE early.
10026
10027 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10028
10029         Port to Tandem NSK OSS, which has 64-bit signed int but at most
10030         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
10031         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
10032         More generally, don't assume that 64-bit signed int is available
10033         if unsigned int is, and vice versa.
10034         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
10035         unsigned symbols, not on their signed counterparts.
10036         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
10037         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
10038         (UINT64_C, UINTMAX_C):
10039         Likewise.
10040         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
10041         unsigned counterparts.
10042         (Have_long_long, Unsigned): New macros.
10043         (Int): Renamed from INT.
10044         (strtoimax): Use the new macros.
10045         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
10046         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
10047         * modules/inttypes (inttypes.h): Substitute
10048         HAVE_UNSIGNED_LONG_LONG_INT.
10049         * modules/stdint (stdint.h): Likewise.
10050         (Files): Add m4/ulonglong.m4.
10051
10052 2006-10-10  Bruno Haible  <bruno@clisp.org>
10053
10054         Fix a gcc -Wshadow warning.
10055         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
10056         to 'bucket'.
10057         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
10058         gl_linked_indexof_from_to): Likewise.
10059         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10060         Likewise.
10061         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
10062         Likewise.
10063         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
10064         Reported by Eric Blake.
10065
10066 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10067
10068         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
10069         for NetBSD.  Problem reported by Bruno Haible.
10070
10071 2006-10-09  Jim Meyering  <jim@meyering.net>
10072
10073         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
10074         Patch from Bruno Haible.
10075
10076 2006-10-09  Jim Meyering  <jim@meyering.net>
10077
10078         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
10079         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
10080         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
10081
10082 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10083
10084         Don't include <config.h> twice; this doesn't work in some cases,
10085         e.g., when config.h has "#define intmax_t long long int" and
10086         we include <config.h>, <inttypes.h>, <config.h> in that order.
10087         Problem reported by Matthew Woehlke in:
10088         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
10089         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
10090         * lib/fts-cycle.c: Don't include config.h.
10091         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
10092         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
10093         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
10094         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
10095         inttypes.h.
10096         * lib/xstrtoumax.c: Likewise.
10097         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
10098         __strtol and the like, so that this module is more like its siblings.
10099         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
10100         Remove; no longer needed now that we assume gnulib inttypes.h.
10101
10102 2006-10-08  Bruno Haible  <bruno@clisp.org>
10103
10104         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
10105         option.
10106
10107 2006-10-07  Jim Meyering  <jim@meyering.net>
10108
10109         * modules/inttypes (inttypes.h): Revert what seems to have been
10110         an inadvertent part of today's change: use "|", not "/" in the
10111         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
10112
10113 2006-10-07  Bruno Haible  <bruno@clisp.org>
10114
10115         * modules/sublist: New file.
10116
10117 2006-10-07  Bruno Haible  <bruno@clisp.org>
10118
10119         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
10120         * modules/argz (argz.h): Likewise.
10121         * modules/arpa_inet (arpa/inet.h): Likewise.
10122         * modules/byteswap (byteswap.h): Likewise.
10123         * modules/configmake (configmake.h): Likewise.
10124         * modules/fcntl (fcntl.h): Likewise.
10125         * modules/fnmatch (fnmatch.h): Likewise.
10126         * modules/getopt (getopt.h): Likewise.
10127         * modules/glob (glob.h): Likewise.
10128         * modules/inttypes (inttypes.h): Likewise.
10129         * modules/netinet_in (netinet/in.h): Likewise.
10130         * modules/poll (poll.h): Likewise.
10131         * modules/stdbool (stdbool.h): Likewise.
10132         * modules/stdint (stdint.h): Likewise.
10133         * modules/sys_select (sys/select.h): Likewise.
10134         * modules/sys_socket (sys/socket.h): Likewise.
10135         * modules/sys_stat (sys/stat.h): Likewise.
10136         * modules/sysexits (sysexits.h): Likewise.
10137         * modules/unistd (unistd.h): Likewise.
10138         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10139         Add a "DO NOT EDIT" comment to the generated file.
10140         (func_import): Likewise for gnulib-comp.m4.
10141
10142 2006-10-07  Bruno Haible  <bruno@clisp.org>
10143
10144         * lib/gl_sublist.h: New file.
10145         * lib/gl_sublist.c: New file.
10146
10147 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10148
10149         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
10150         name (relative to the original working directory) and the file
10151         name component (relative to the temporary working directory).  All
10152         callers changed.
10153         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
10154         * lib/mkdir-p.c (make_dir_parents): Likewise.
10155         * lib/mkdir-p.h (make_dir_parents): Likewise.
10156
10157 2006-10-06  Eric Blake  <ebb9@byu.net>
10158
10159         Define several macros for use by the clean-temp module.
10160         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
10161         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
10162         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
10163
10164         * lib/clean-temp.h (close_stream_temp): New declaration.
10165         * lib/clean-temp.c (includes): Pull in headers according to what
10166         other modules are in use.
10167         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
10168
10169 2006-10-06  Bruno Haible  <bruno@clisp.org>
10170
10171         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
10172         instead of fopen, fwriteerror.
10173
10174 2006-10-06  Bruno Haible  <bruno@clisp.org>
10175
10176         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
10177         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
10178         int.
10179         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
10180         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
10181         Return an error indicator.
10182         Suggested by Eric Blake.
10183
10184 2006-10-06  Bruno Haible  <bruno@clisp.org>
10185
10186         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
10187         Reported by Eric Blake.
10188
10189 2006-10-06  Bruno Haible  <bruno@clisp.org>
10190
10191         * modules/closeout (Description): Mention stderr too.
10192
10193 2006-10-06  Bruno Haible  <bruno@clisp.org>
10194         and Paul Eggert  <eggert@cs.ucla.edu>
10195
10196         * lib/closeout.c (close_stdout): Also close stderr.
10197         * lib/closeout.h: Update comment.
10198
10199 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10200
10201         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
10202         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
10203         * lib/dirchownmod.c: Include lchown.h.
10204         * lib/lchown.c: Don't include files that lchown.h now includes.
10205         Don't declare chown, since lchown.h now does that.
10206         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
10207         (lchown): Define to rpl_chown if lchown is declared but
10208         does not exist.  Declare using a prototype if lchown is not
10209         declared.  Add a copyright notice.
10210         * lib/mkstemp.h: Include <unistd.h>.
10211         * lib/openat.c: Include lchown.h.
10212
10213         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
10214         we now test for that separately.
10215         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
10216         rather than O_NOFOLLOW, when testing whether it's possible to
10217         avoid a race condition reliably.
10218         * lib/savewd.c (savewd_chdir): Likewise.
10219
10220         Remove macros that are no longer needed now that stdint.h is
10221         reliable.
10222         * lib/fsusage.c (UINTMAX_MAX): Remove.
10223         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
10224         * lib/utimecmp.c (SIZE_MAX): Remove.
10225
10226         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
10227
10228         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
10229         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
10230         O_NOATIME works.
10231
10232 2006-10-05  Bruno Haible  <bruno@clisp.org>
10233
10234         * lib/gl_list.h (gl_sortedlist_search_from_to,
10235         gl_sortedlist_indexof_from_to): New declarations.
10236         (gl_list_implementation): New fields sortedlist_search_from_to,
10237         sortedlist_indexof_from_to.
10238         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
10239         inline functions.
10240         * lib/gl_list.c (gl_sortedlist_search_from_to,
10241         gl_sortedlist_indexof_from_to): New functions.
10242         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
10243         function.
10244         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
10245         (gl_array_sortedlist_search_from_to): New function.
10246         (gl_array_list_implementation): Update.
10247         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
10248         function.
10249         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
10250         (gl_carray_sortedlist_search_from_to): New function.
10251         (gl_carray_list_implementation): Update.
10252         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
10253         gl_linked_sortedlist_indexof_from_to): New functions.
10254         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10255         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10256         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
10257         gl_tree_sortedlist_indexof_from_to): New functions.
10258         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10259         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10260         Update.
10261         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10262         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
10263         Update.
10264
10265 2006-10-05  Bruno Haible  <bruno@clisp.org>
10266
10267         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
10268         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
10269         (struct gl_list_implementation): Add fields search_from_to,
10270         indexof_from_to. Remove fields search, indexof.
10271         (gl_list_search): Use the search_from_to method.
10272         (gl_list_search_from, gl_list_search_from_to): New functions.
10273         (gl_list_indexof): Use the indexof_from_to method.
10274         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10275         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
10276         (gl_list_search_from, gl_list_search_from_to): New functions.
10277         (gl_list_indexof): Use the indexof_from_to method.
10278         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10279         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
10280         gl_array_indexof. Add start_index, end_index arguments.
10281         (gl_array_search_from_to): Renamed from gl_array_search. Add
10282         start_index, end_index arguments.
10283         (gl_array_remove, gl_array_list_implementation): Update.
10284         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
10285         gl_carray_indexof. Add start_index, end_index arguments.
10286         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
10287         start_index, end_index arguments.
10288         (gl_carray_remove, gl_carray_list_implementation): Update.
10289         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
10290         gl_linked_search. Add start_index, end_index arguments.
10291         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
10292         start_index, end_index arguments.
10293         (gl_linked_remove): Update.
10294         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10295         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10296         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
10297         field to 'size_t'.
10298         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
10299         gl_tree_search. Add start_index, end_index arguments.
10300         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10301         start_index, end_index arguments.
10302         (gl_tree_remove): Update.
10303         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10304         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10305         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
10306         function.
10307         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
10308         gl_tree_search. Add start_index, end_index arguments.
10309         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10310         start_index, end_index arguments.
10311         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10312         Update.
10313         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
10314
10315 2006-10-05  Bruno Haible  <bruno@clisp.org>
10316
10317         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
10318
10319         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
10320         fwriteerror_temp): New declarations.
10321         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
10322         (descriptors): New variable.
10323         (cleanup): First, close the descriptors.
10324         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
10325         fclose_temp, fwriteerror_temp): New functions.
10326
10327 2006-10-04  Jim Meyering  <jim@meyering.net>
10328
10329         * lib/fts.c (fts_open): Tiny comment change.
10330
10331 2006-10-04  Bruno Haible  <bruno@clisp.org>
10332
10333         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
10334         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
10335         gl_LOCK_BODY.
10336         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
10337         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
10338         gl_LOCK_EARLY_BODY.
10339         (gl_LOCK): Require gl_LOCK_BODY.
10340
10341 2006-10-04  Bruno Haible  <bruno@clisp.org>
10342
10343         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
10344         (gl_oset_search_atleast): New declaration.
10345         (struct gl_oset_implementation): Add field 'search_atleast'.
10346         (gl_oset_search_atleast): New inline function.
10347         * lib/gl_oset.c (gl_oset_search_atleast): New function.
10348         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
10349         (gl_array_oset_implementation): Update.
10350         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
10351         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
10352         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
10353
10354 2006-10-04  Bruno Haible  <bruno@clisp.org>
10355
10356         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
10357
10358 2006-10-03  Bruno Haible  <bruno@clisp.org>
10359
10360         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
10361         from gl_avltreehash_list_implementation.
10362
10363 2006-10-03  Bruno Haible  <bruno@clisp.org>
10364
10365         * lib/gl_oset.c (gl_oset_add): Fix return type.
10366
10367 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
10368
10369         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
10370
10371 2006-10-02  Eric Blake  <ebb9@byu.net>
10372
10373         * modules/strnlen (Depends-on): Add extensions.
10374
10375 2006-10-02  Eric Blake  <ebb9@byu.net>
10376
10377         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
10378         definition in 2.60+.
10379
10380 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10381
10382         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
10383         checks.
10384
10385 2006-10-02  Bruno Haible  <bruno@clisp.org>
10386
10387         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
10388         to the AUTOMAKE_OPTIONS.
10389         Reported by Jim Meyering.
10390
10391 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10392
10393         Work around bug in Solaris 10 /proc file system:
10394         /proc/self/fd/NNN/.. isn't the parent directory of
10395         the directory whose file descriptor is NNN.  This needs to
10396         be worked around at run time, not compile time, since a
10397         program might be built on Solaris 8, where things work, and
10398         run on Solaris 10.
10399         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
10400         to use the following interface instead:
10401         (OPENAT_BUFFER_SIZE): New macro.
10402         (openat_proc_name): New function.
10403         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
10404         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
10405         Likewise.
10406         * lib/openat-proc.c: New file.
10407         * modules/openat (Files): Add lib/openat-proc.c.
10408         (Depends-on): Add same-inode, stdbool.
10409         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
10410
10411 2006-09-29  Bruno Haible  <bruno@clisp.org>
10412
10413         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
10414         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
10415         argument. Set stdout_closed before testing for ferror, not after.
10416         (fwriteerror, fwriteerror_no_ebadf): New functions.
10417
10418 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10419
10420         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
10421
10422 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
10423
10424         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
10425         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
10426
10427 2006-09-28  Jim Meyering  <jim@meyering.net>
10428
10429         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
10430         Include <unistd.h>.
10431
10432 2006-09-28  Bruno Haible  <bruno@clisp.org>
10433
10434         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
10435         * modules/linkedhash-list (Depends-on): Likewise.
10436         * modules/rbtreehash-list (Depends-on): Likewise.
10437
10438 2006-09-28  Bruno Haible  <bruno@clisp.org>
10439
10440         * lib/strndup.h: Simplify the redefinition of strndup.
10441         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
10442         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
10443
10444 2006-09-28  Bruno Haible  <bruno@clisp.org>
10445
10446         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
10447         * lib/gl_linkedhash_list.c: Likewise.
10448         * lib/gl_rbtreehash_list.c: Likewise.
10449
10450 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10451
10452         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
10453         getaddrinfo.
10454
10455         * lib/__fpending.h: Don't include <stdio_ext.h> unless
10456         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
10457         it causes <stdio_ext.h> to cause a compile-time error.
10458         Problem reported by Nelson H. F. Beebe.
10459         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
10460         of HAVE_DECL___PENDING.
10461
10462         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
10463         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
10464         declaration.
10465
10466 2006-09-27  Jim Meyering  <jim@meyering.net>
10467
10468         This file could end up with a definition for a function
10469         named __strndup, rather than rpl_strndup on a system with
10470         incomplete weak_alias support.
10471         * lib/strndup.c (strndup): Rename from __strndup.
10472         Remove #defines that used to map __strndup to strndup.
10473         Don't use K&R prototypes.
10474         Remove LIBC-related code, since this file is not sync'd with glibc.
10475         * lib/strndup.h: Revamp, accordingly.
10476         * m4/strndup.m4: Modernize.
10477
10478 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10479
10480         * modules/savewd (Depends-on): Add 'raise'.
10481         * lib/savewd.c: Include <signal.h>, for 'raise'.
10482
10483 2006-09-26  Jim Meyering  <jim@meyering.net>
10484
10485         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
10486         when we detect Darwin 8.7.0's acl_get_file bug.
10487         Rearrange to perform the new (below) run-test while $LIBS
10488         contains any acl-related library.  Set USE_ACL at the end.
10489         (gl_ACL_GET_FILE): New function.
10490
10491 2006-09-26  Eric Blake  <ebb9@byu.net>
10492
10493         * lib/verror.c: Include <config.h> unconditionally.
10494
10495 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10496
10497         * modules/clock-time (Maintainer): Add self.
10498         * modules/getlogin_r (Depends-on): Add extensions.
10499
10500 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10501
10502         * modules/clock-time: New module.
10503         * modules/nanosleep (Depends-on): Add clock-time.
10504         * modules/gethrxtime (Depends-on): Likewise.
10505         * modules/gettime (Depends-on): Likewise.
10506         * modules/settime (Depends-on): Likewise.
10507
10508         * modules/fts-lgpl: Depend on openat.
10509         * modules/mkancesdirs: Depend on savewd.
10510         * modules/mkdir-p: Likewise.
10511
10512 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10513
10514         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
10515
10516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
10517         `gl_have_arbitrary_file_name_length_limit' to
10518         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
10519         actually works between configure runs.
10520
10521 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10522             Bruno Haible  <bruno@clisp.org>
10523
10524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
10525
10526 2006-09-25  Jim Meyering  <jim@meyering.net>
10527
10528         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
10529         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
10530
10531 2006-09-25  Eric Blake  <ebb9@byu.net>
10532
10533         * gnulib-tool (func_import, func_create_testdir): Fix typos in
10534         exec's in 2006-09-18 patch when shuffling fds.
10535
10536 2006-09-25  Bruno Haible  <bruno@clisp.org>
10537
10538         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
10539         Reported by Jim Meyering.
10540
10541 2006-09-24  Jim Meyering  <jim@meyering.net>
10542
10543         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
10544         compare a pointer against a literal "0".  That caused failures with
10545         at least HP-UX's hpcc.
10546
10547 2006-09-22  Simon Josefsson  <jas@extundo.com>
10548
10549         * modules/gc-sha1:
10550         * modules/gc-md4:
10551         * modules/gc-hmac-sha1:
10552         * modules/gc-hmac-md5:
10553         * modules/gc-des:
10554         * modules/gc-arcfour: Distribute more files.
10555
10556 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10557
10558         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
10559         (gl_linked_iterator_from_to): Initialize struct completely.
10560         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
10561         (gl_tree_iterator_from_to): Likewise
10562         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
10563         * lib/gl_array_list.c [lint] (gl_array_iterator)
10564         (gl_array_iterator_from_to): Likewise.
10565         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
10566         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
10567         (gl_carray_iterator_from_to): Likewise.
10568
10569         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
10570         * lib/md4.c (md4_process_block): Remove unused variable.
10571         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
10572         parentheses for clarity.
10573
10574 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10575
10576         * modules/bison-i18n (Depends-on): Add gettext.
10577
10578 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10579
10580         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
10581         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10582         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
10583         also add missing comma that caused broken test.
10584         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
10585         stdlib.h, for `abort'.
10586         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
10587         variables.
10588         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
10589         include unistd.h if present, for `rmdir'.
10590         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
10591         variables.
10592         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
10593         in the process include standard headers for prototypes.
10594         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
10595         gets declared on GNU/Linux.
10596         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
10597         unistd.h, for `rmdir'.
10598         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
10599
10600         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
10601         always true.
10602         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
10603
10604         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
10605
10606 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10607
10608         * gnulib-tool (func_version): Create output all at once.  This
10609         may help avoid triggering unnecessary SIGPIPEs, and at any
10610         rate it doesn't hurt.
10611
10612 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10613             Bruno Haible  <bruno@clisp.org>
10614
10615         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
10616         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10617         * m4/signed.m4 (bh_C_SIGNED): Likewise.
10618
10619         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
10620         (gl_FUNC_VASPRINTF): Invoke it.
10621
10622 2006-09-22  Bruno Haible  <bruno@clisp.org>
10623
10624         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
10625         getloadavg.c as first argument.
10626
10627 2006-09-22  Bruno Haible  <bruno@clisp.org>
10628
10629         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
10630         at the beginning of the gl_INIT macro.
10631         * modules/getloadavg (configure.ac): Pass $gl_source_base to
10632         gl_GETLOADAVG.
10633
10634 2006-09-22  Bruno Haible  <bruno@clisp.org>
10635
10636         * gnulib-tool (func_create_megatestdir): Don't include the config-h
10637         module.
10638         Suggested by Ralf Wildenhues.
10639
10640 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         Import this patch from libc:
10643
10644         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10645
10646         * lib/regex_internal.c (re_string_reconstruct): Handle
10647         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10648         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10649         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10650         re_string_context_at.
10651
10652         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
10653         now requires it.
10654         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
10655         gl_REGEX now does it for us.
10656         (gl_REGEX): Add test taken from
10657         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
10658
10659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
10660         Check that large offsets work.  Modernize Autoconf usages.
10661         Prefer "yes" to mean a good thing rather than a bad.
10662         Don't put "#define mkstemp" in config.h, as this might interfere
10663         with standard system headers that "#define mkstemp mkstemp64".
10664
10665         * modules/mkstemp (Depends-on): Add extensions, so that
10666         mkstemp is visible on some platforms.
10667         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
10668         (Include): Change to "mkstemp.h" from <stdlib.h>.
10669         (Files): Add mkstemp.h.
10670
10671         * lib/mkstemp.h: New file, since some standard headers
10672         #define mkstemp.
10673         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
10674         Include "mkstemp.h".
10675         Make the _LIBC code resemble glibc original more,
10676         e.g., use K&R style.
10677         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
10678         (mkstemp): Remove, since mkstemp.h does this for us.
10679         * lib/stdlib--.h: Include mkstemp.h.
10680
10681         Import this patch from libc:
10682
10683         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
10684
10685         * lib/tempname.c (__gen_tempname): Change attempts_min
10686         into a macro.  Use preprocessor to decide how to initialize
10687         attempts [Coverity CID 67].
10688
10689 2006-09-20  Bruno Haible  <bruno@clisp.org>
10690
10691         * lib/mkdtemp.c: Import from libc.
10692         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
10693                 * sysdeps/posix/tempname.c (__gen_tempname): Change
10694                 attempts_min into a macro.  Use preprocessor to decide how to
10695                 initialize attempts [Coverity CID 67].
10696         2001-11-27  Paul Eggert  <eggert@twinsun.com>
10697                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10698                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10699
10700 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10701
10702         * gnulib-tool (func_exit): New function, to allow to pass the
10703         exit status portably through the trap.  Use everywhere.
10704         (--help, --version): Signal a write error.
10705         (trap): catch SIGPIPE, for write errors.
10706         Exit at the end of the trap, with the correct exit status.
10707
10708 2006-09-19  Karl Berry  <karl@gnu.org>
10709
10710         * doc/gnulib.texi: note about the license texinfo files.
10711
10712 2006-09-19  Eric Blake  <ebb9@byu.net>
10713
10714         * gnulib-tool: Avoid space-tab.
10715
10716 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10717
10718         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
10719         that prevented coreutils 6.1 from building.  Problem reported
10720         by Petter Reinholdtsen.
10721
10722 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10723
10724         * gnulib-tool (avoidlist): Fix typo that broke options like
10725         --avoid=lock that are used by coreutils bootstrap.
10726
10727 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
10728
10729         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
10730         more systematically.
10731
10732 2006-09-18  Jim Meyering  <jim@meyering.net>
10733
10734         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
10735
10736 2006-09-18  Bruno Haible  <bruno@clisp.org>
10737
10738         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
10739
10740 2006-09-18  Bruno Haible  <bruno@clisp.org>
10741
10742         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
10743         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
10744         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
10745         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
10746         * m4/gettext.m4: Require autoconf >= 2.52.
10747         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
10748         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
10749         of gl_cv_header_inttypes_h.
10750
10751 2006-09-18  Bruno Haible  <bruno@clisp.org>
10752
10753         * lib/javaversion.c: Include configmake.h.
10754
10755 2006-09-18  Bruno Haible  <bruno@clisp.org>
10756
10757         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
10758         avoid that the while loops be executed in a subshell.
10759
10760 2006-09-18  Bruno Haible  <bruno@clisp.org>
10761
10762         * MODULES.html.sh (func_module): Break long lines.
10763         Suggested by Bruce Korb <bkorb@gnu.org>.
10764
10765 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10766
10767         Speed up by a factor of 1.12.
10768         * gnulib-tool (nl): New variable.
10769         (func_import): Rewrite include directive extraction to only read each
10770         directive once.
10771
10772 2006-09-17  Bruno Haible  <bruno@clisp.org>
10773
10774         * modules/javaversion (Makefile.am): Remove DEFS setting.
10775         (Depends-on): Add configmake, for PKGDATADIR definition.
10776
10777 2006-09-17  Bruno Haible  <bruno@clisp.org>
10778
10779         * gnulib-tool (func_create_testdir): Rewrite all files at once.
10780
10781 2006-09-17  Bruno Haible  <bruno@clisp.org>
10782
10783         * gnulib-tool (func_append): New function, stolen from libtool.m4.
10784         (func_modules_transitive_closure, func_modules_add_dummy,
10785         func_modules_to_filelist, func_import, func_create_testdir,
10786         func_create_megatestdir, ...): Use it wherever possible.
10787         Suggested by Ralf Wildenhues.
10788
10789 2006-09-16  Karl Berry  <karl@gnu.org>
10790
10791         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
10792         to avoid sectioning errors.
10793         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
10794         [ifinfo]: blank line after @center-ed titles.
10795         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
10796         Spell FSF address consistently with others.
10797         (These changes approved by rms.)
10798
10799 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10800
10801         Speed up by a factor of 1.61.
10802         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
10803         already checked module names again.
10804
10805 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10806
10807         Speed up by a factor of 1.13.
10808         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
10809         for new_files, and the input to func_add_or_update.
10810
10811 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10812
10813         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
10814         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
10815
10816 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10817
10818         * modules/mkancesdirs (Depends-on): Add fcntl.
10819         * modules/savewd: New file.
10820         * MODULES.html.sh (File system functions): Add savewd.
10821
10822         * modules/configmake (Makefile.am): Add support for the
10823         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
10824
10825 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10826
10827         * m4/savewd.m4: New file.
10828
10829 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10830
10831         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
10832         (dirchownmod): New arg FD.  All callers changed.
10833         Use FD rather than opening the directory ourself, as opening is
10834         now the caller's responsibility.
10835         * lib/dirchownmod.h: Likewise.
10836         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
10837         hosts that require <sys/types.h> before <sys/stat.h>.  Include
10838         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
10839         (test_dir): Remove.
10840         (mkancesdirs): Return length of prefix of FILE that has already
10841         been made, or -2 if there is a child doing the work.  Redo
10842         algorithm so that it is O(N) rather than O(N**2).  Optimize away
10843         ".", and treat ".." specially since it might stray back into
10844         already-created areas.  Use a subprocess if necessary.  New arg
10845         WD; all users changed.  MAKE_DIR function should now return 1
10846         if it creates a directory that is not readable.  Return -2 if
10847         a child process is spun off.
10848         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
10849         Adjust signature to match code.
10850         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
10851         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
10852         all users changed.
10853         * lib/savewd.c, lib/savewd.h: New files.
10854
10855 2006-09-15  Jim Meyering  <jim@meyering.net>
10856
10857         * modules/rename-dest-slash: New module.
10858         * MODULES.html.sh (posix_compat): Add it here.
10859
10860         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
10861
10862 2006-09-15  Jim Meyering  <jim@meyering.net>
10863
10864         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
10865         file.
10866
10867         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
10868
10869 2006-09-15  Jim Meyering  <jim@meyering.net>
10870
10871         * lib/rename-dest-slash.c (has_trailing_slash): Use
10872         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
10873         (rpl_rename_dest_slash): Perform the cheaper trailing slash
10874         test before testing whether SRC is a directory.
10875         Suggestions from Bruno Haible.
10876
10877         Avoid a warning about an unused variable.
10878         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
10879         into the #ifdef block where it's used.
10880
10881         * lib/rename-dest-slash.c: New file.
10882
10883 2006-09-14  Bruno Haible  <bruno@clisp.org>
10884
10885         * lib/allocsa.c: Include <config.h> unconditionally.
10886         * lib/asnprintf.c: Likewise.
10887         * lib/asprintf.c: Likewise.
10888         * lib/c-strcasecmp.c: Likewise.
10889         * lib/c-strcasestr.c: Likewise.
10890         * lib/c-strncasecmp.c: Likewise.
10891         * lib/c-strstr.c: Likewise.
10892         * lib/classpath.c: Likewise.
10893         * lib/clean-temp.c: Likewise.
10894         * lib/concatpath.c: Likewise.
10895         * lib/copy-file.c: Likewise.
10896         * lib/csharpcomp.c: Likewise.
10897         * lib/csharpexec.c: Likewise.
10898         * lib/execute.c: Likewise.
10899         * lib/fatal-signal.c: Likewise.
10900         * lib/findprog.c: Likewise.
10901         * lib/fwriteerror.c: Likewise.
10902         * lib/gl_array_list.c: Likewise.
10903         * lib/gl_array_oset.c: Likewise.
10904         * lib/gl_avltree_list.c: Likewise.
10905         * lib/gl_avltree_oset.c: Likewise.
10906         * lib/gl_avltreehash_list.c: Likewise.
10907         * lib/gl_carray_list.c: Likewise.
10908         * lib/gl_linked_list.c: Likewise.
10909         * lib/gl_linkedhash_list.c: Likewise.
10910         * lib/gl_list.c: Likewise.
10911         * lib/gl_oset.c: Likewise.
10912         * lib/gl_rbtree_list.c: Likewise.
10913         * lib/gl_rbtree_oset.c: Likewise.
10914         * lib/gl_rbtreehash_list.c: Likewise.
10915         * lib/imaxabs.c: Likewise.
10916         * lib/imaxdiv.c: Likewise.
10917         * lib/javacomp.c: Likewise.
10918         * lib/javaexec.c: Likewise.
10919         * lib/javaversion.c: Likewise.
10920         * lib/linebreak.c: Likewise.
10921         * lib/localcharset.c: Likewise.
10922         * lib/lock.c: Likewise.
10923         * lib/mbchar.c: Likewise.
10924         * lib/mbswidth.c: Likewise.
10925         * lib/mkdtemp.c: Likewise.
10926         * lib/pipe.c: Likewise.
10927         * lib/printf-args.c: Likewise.
10928         * lib/printf-parse.c: Likewise.
10929         * lib/progname.c: Likewise.
10930         * lib/progreloc.c: Likewise.
10931         * lib/readlink.c: Likewise.
10932         * lib/sh-quote.c: Likewise.
10933         * lib/stpcpy.c: Likewise.
10934         * lib/stpncpy.c: Likewise.
10935         * lib/strcasecmp.c: Likewise.
10936         * lib/strcasestr.c: Likewise.
10937         * lib/strcspn.c: Likewise.
10938         * lib/striconv.c: Likewise.
10939         * lib/strncasecmp.c: Likewise.
10940         * lib/strnlen1.c: Likewise.
10941         * lib/strstr.c: Likewise.
10942         * lib/strtok_r.c: Likewise.
10943         * lib/tls.c: Likewise.
10944         * lib/tmpdir.c: Likewise.
10945         * lib/unicodeio.c: Likewise.
10946         * lib/unsetenv.c: Likewise.
10947         * lib/vasnprintf.c: Likewise.
10948         * lib/vasprintf.c: Likewise.
10949         * lib/wait-process.c: Likewise.
10950         * lib/xallocsa.c: Likewise.
10951         * lib/xsetenv.c: Likewise.
10952         * lib/xstriconv.c: Likewise.
10953
10954 2006-09-13  Simon Josefsson  <jas@extundo.com>
10955
10956         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
10957         that internally, suggested by Ralf Wildenhues
10958         <Ralf.Wildenhues@gmx.de>.
10959
10960 2006-09-13  Simon Josefsson  <jas@extundo.com>
10961
10962         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
10963         @LIBOBJS@.
10964         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10965
10966 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10967
10968         * lib/_fpending.c: Include <config.h> unconditionally, since we no
10969         longer worry about uses that don't define HAVE_CONFIG_H.
10970         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
10971         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
10972         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
10973         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
10974         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
10975         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
10976         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
10977         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
10978         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
10979         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
10980         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
10981         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
10982         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
10983         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
10984         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
10985         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
10986         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
10987         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
10988         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
10989         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
10990         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
10991         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
10992         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
10993         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
10994         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
10995         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
10996         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
10997         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
10998         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
10999         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
11000         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
11001         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
11002         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
11003         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
11004         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
11005         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
11006         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
11007         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
11008         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
11009         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
11010         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
11011         Likewise.
11012
11013 2006-09-13  Eric Blake  <ebb9@byu.net>
11014
11015         * lib/getopt.c: Fix typo in last commit.
11016
11017 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11018
11019         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
11020         dgettext.
11021
11022 2006-09-12  Jim Meyering  <jim@meyering.net>
11023
11024         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
11025         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
11026         Reported by Nelson H. F. Beebe.
11027
11028 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11029
11030         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
11031         program_invocation_name and program_invocation_short_name are
11032         initialized.
11033         * lib/argp-namefrob.h: Move declarations of program_invocation_name
11034         and program_invocation_short_name to argp.h, so they are visible
11035         to user programs.
11036         * lib/argp.h: Likewise
11037
11038 2006-09-10  Bruno Haible  <bruno@clisp.org>
11039
11040         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11041         m4/inttypes_h.m4, m4/uintmax_t.m4.
11042
11043 2006-09-10  Bruno Haible  <bruno@clisp.org>
11044
11045         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
11046         gl_AC_TYPE_UINTMAX_T.
11047
11048 2006-09-10  Bruno Haible  <bruno@clisp.org>
11049
11050         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
11051
11052 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11053
11054         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
11055         convention.  Text proposed by Bruno Haible.
11056         (struct argp_option): Document the use of N_() wrappers.
11057
11058         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
11059         '\v', and translate the two parts separately, instead of feeding
11060         the whole string to gettext.  This allows to exclude
11061         '\v' from the strings visible to the translator by writing doc
11062         strings as N_("..") "\v" N_("..").
11063
11064 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
11065
11066         * config/srclist.txt: Undo latest change; the bug was fixed.
11067
11068 2006-09-09  Bruno Haible  <bruno@clisp.org>
11069
11070         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
11071         assignments if building a library without libtool.
11072         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
11073         in func_emit_lib_Makefile_am.
11074         (func_import): When building a static library libfoo.a, arrange to
11075         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
11076         (func_create_testdir): Likewise.
11077         * modules/gc (configure.ac, Makefile.am): If building statically,
11078         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
11079         * modules/iconvme (configure.ac, Makefile.am): Likewise.
11080         * modules/striconv (configure.ac, Makefile.am): Likewise.
11081         Based on a suggestion by Ralf Wildenhues.
11082
11083 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11084
11085         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
11086         Check for unistd.h too, since Autoconf doesn't assume POSIX.
11087         Also:
11088
11089         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11090         Add year_2050_test to catch glibc bug 2821
11091         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11092
11093         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11094         Prefer #ifdef to #if.
11095
11096         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
11097         Return from 'main' instead of calling 'exit'.
11098
11099 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11100
11101         * lib/mktime.c (guess_time_tm): Fix bug where mktime
11102         returned the maximum time_t value rather than (time_t) -1.
11103         Problem originally reported by William Bardwell
11104         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11105
11106         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11107         Moved to here ...
11108         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11109         ... from here.
11110
11111 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11112
11113         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
11114         2821 is fixed.
11115
11116 2006-09-08  Jim Meyering  <jim@meyering.net>
11117
11118         Don't make generated files read-only.  That would bother too many
11119         people.  However, do retain the ability to work when targets are
11120         read-only: remove the destination and temporary files before writing
11121         them (when generated via sed or echo), or by using the -f option for
11122         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
11123         * modules/alloca-opt, modules/argz, modules/arpa_inet:
11124         * modules/byteswap, modules/configmake, modules/fcntl:
11125         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11126         * modules/localcharset, modules/netinet_in, modules/poll:
11127         * modules/stdbool, modules/stdint, modules/sys_select:
11128         * modules/sys_socket, modules/sys_stat, modules/sysexits:
11129
11130 2006-09-08  Jim Meyering  <jim@meyering.net>
11131
11132         Avoid new build failure on FreeBSD 6.0.
11133         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
11134         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
11135         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
11136
11137 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11138
11139         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
11140
11141 2006-09-07  Jim Meyering  <jim@meyering.net>
11142
11143         Fix global typo in last change: use chmod u-w, not chmod u-x.
11144         Spotted by Paul Eggert and Bruce Korb.
11145         * modules/alloca-opt, modules/argz, modules/arpa_inet:
11146         * modules/byteswap, modules/configmake, modules/fcntl:
11147         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11148         * modules/localcharset, modules/netinet_in, modules/poll:
11149         * modules/stdbool, modules/stdint, modules/sys_select:
11150         * modules/sys_socket, modules/sys_stat, modules/sysexits:
11151
11152 2006-09-06  Jim Meyering  <jim@meyering.net>
11153
11154         Make generated files be read-only.
11155         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
11156         Ensure that each generated file is now read-only.
11157         * modules/argz: Likewise.
11158         * modules/arpa_inet: Likewise.
11159         * modules/byteswap: Likewise.
11160         * modules/configmake: Likewise.
11161         * modules/fcntl: Likewise.
11162         * modules/fnmatch: Likewise.
11163         * modules/getopt: Likewise.
11164         * modules/glob: Likewise.
11165         * modules/inttypes: Likewise.
11166         * modules/netinet_in: Likewise.
11167         * modules/poll: Likewise.
11168         * modules/stdbool: Likewise.
11169         * modules/stdint: Likewise.
11170         * modules/sys_select: Likewise.
11171         * modules/sys_socket: Likewise.
11172         * modules/sys_stat: Likewise.
11173         * modules/sysexits: Likewise.
11174         * modules/localcharset: Same as above, but continue using temporary
11175         file named "t-$@" (why different?) rather than the "$@-t" used
11176         everywhere else.
11177
11178         * modules/sysexits (Makefile.am): Replace literal occurrences
11179         of "sysexit.h" more readable, and more consistent, "$@".
11180
11181 2006-09-06  Bruno Haible  <bruno@clisp.org>
11182
11183         * modules/striconv: New file.
11184         * modules/xstriconv: New file.
11185         * MODULES.html.sh (Internationalization functions): Add striconv,
11186         xstriconv.
11187
11188 2006-09-06  Bruno Haible  <bruno@clisp.org>
11189
11190         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
11191         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
11192         not using libtool correctly.
11193
11194 2006-09-06  Bruno Haible  <bruno@clisp.org>
11195
11196         * lib/striconv.h: New file.
11197         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
11198         iconvstring.c.
11199         * lib/xstriconv.h: New file.
11200         * lib/xstriconv.c: New file.
11201
11202 2006-09-06  Bruno Haible  <bruno@clisp.org>
11203
11204         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11205         lib_..._LDFLAGS.
11206
11207 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11208
11209         * lib/argz_.h: Sync from Libtool.
11210
11211         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
11212                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11213
11214         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
11215
11216 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
11217
11218         * modules/trim: New file.
11219
11220 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
11221
11222         * lib/trim.h: New file.
11223         * lib/trim.c: New file.
11224
11225 2006-09-05  Bruno Haible  <bruno@clisp.org>
11226
11227         * MODULES.html.sh (String handling): Add trim.
11228
11229 2006-09-04  Karl Berry  <karl@gnu.org>
11230
11231         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
11232         until next release.
11233
11234 2006-09-03  Bruno Haible  <bruno@clisp.org>
11235
11236         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
11237         correctly.
11238
11239 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11240
11241         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
11242         not gl_GETLOADAVG.  Omit unneeded semicolons.
11243         Problems reported by Ralf Wildenhues in
11244         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11245         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
11246         at the end, which is the usual gnulib style.
11247
11248         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
11249         of doing all the work ourselves.
11250         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
11251         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
11252
11253 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11254
11255         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
11256         Problem reported by Ralf Wildenhues in
11257         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11258
11259         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
11260         HAVE_STRUCT_STATFS_F_FSTYPENAME.
11261
11262 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
11265         yesterday's patch by changing test -n to test -z.
11266
11267 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11268
11269         * modules/getloadavg (Files): Add m4/getloadavg.m4.
11270         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
11271         the former is now obsolescent.
11272
11273         * modules/chdir-long (Depends-on): Add fcntl.
11274
11275 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11276
11277         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
11278         obsolescent, and programs should use gnulib instead.
11279         * m4/getloadavg.m4: New file, with contents taken from Autoconf
11280         but with prefixes changed.
11281
11282 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11283
11284         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
11285         or stdbool.h, because they might not exist while configuring.
11286
11287         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
11288         Don't include unistd.h or limits.h; not needed, since chdir-long.h
11289         does that for us.
11290         (O_DIRECTORY): Remove.
11291
11292 2006-08-31  Eric Blake  <ebb9@byu.net>
11293
11294         * gnulib-tool: Don't let emacs change spaces to TAB.
11295
11296 2006-08-31  Bruno Haible  <bruno@clisp.org>
11297
11298         * gnulib-tool: When calling func_import more than once, do it in a
11299         subshell.
11300         Reported by Eric Blake <ebb9@byu.net>.
11301
11302 2006-08-31  Bruno Haible  <bruno@clisp.org>
11303
11304         * gnulib-tool (nl): Remove variable.
11305         (sed_transform_lib_file): Use more robust test for config-h module.
11306         (func_import): Fix typo in 2006-08-25 patch.
11307
11308 2006-08-31  Bruno Haible  <bruno@clisp.org>
11309
11310         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
11311         specified, augment Makefile.am variables instead of assigning them.
11312
11313 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11314
11315         Work around a bug in both the Linux and SunOS 64-bit kernels:
11316         nanosleep mishandles sleeps for longer than 2**31 seconds.
11317         Problem reported by Frank v Waveren in
11318         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
11320         Check for nanosleep bug.
11321         (LIB_NANOSLEEP): Append clock_gettime library if needed.
11322
11323 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11324
11325         Work around a bug in both the Linux and SunOS 64-bit kernels:
11326         nanosleep mishandles sleeps for longer than 2**31 seconds.
11327         Problem reported by Frank v Waveren in
11328         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11329         * lib/nanosleep.c (BILLION): New constant.
11330         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
11331         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
11332         implementation.
11333
11334 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11335
11336         * modules/nanosleep (Depends-on): Add gettime.
11337
11338 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11339         and Simon Josefsson  <jas@extundo.com>
11340         and Oskar Liljeblad  <oskar@osk.mine.nu>
11341
11342         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
11343         * gnulib-tool (func_import): New license type 'unmodifiable license
11344         text'.
11345         * modules/fdl: Use it.  Longer description.
11346         * module/gpl, module/lgpl: New files.
11347
11348 2006-08-30  Jim Meyering  <jim@meyering.net>
11349
11350         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
11351         shadowing the parameter.
11352
11353 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11354
11355         Sync from Libtool:
11356
11357         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11358
11359         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
11360         sharing with gnulib.  Report by Eric Blake.
11361
11362 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11363
11364         * modules/isapipe: New file.
11365         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
11366
11367 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11368
11369         * modules/configmake (Makefile.am): Add a comment, and omit
11370         the CONFIGMAKE_ prefix from generated macro names.  Suggested
11371         by Bruno Haible.
11372
11373 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11374
11375         * m4/isapipe.m4: New file.
11376
11377 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11378
11379         * lib/isapipe.c, lib/isapipe.h: New files.
11380
11381 2006-08-29  Jim Meyering  <jim@meyering.net>
11382
11383         * modules/configmake (Makefile.am): Make configmake.h depend on
11384         Makefile.  Otherwise, a stale configmake.h could hang around.
11385
11386 2006-08-29  Eric Blake  <ebb9@byu.net>
11387
11388         * lib/error.c (error_at_line, print_errno_message): Match libc, after
11389         resolution of upstream bug 3044.
11390
11391 2006-08-29  Bruno Haible  <bruno@clisp.org>
11392
11393         * modules/localcharset (Depends-on): Add configmake.
11394         (Makefile.am): Remove setting of LIBDIR through DEFS.
11395
11396 2006-08-29  Bruno Haible  <bruno@clisp.org>
11397
11398         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
11399         defined.
11400
11401 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         * modules/fcntl: New file.
11404         * modules/chdir-safer (Depends-on): Add fcntl.
11405         * modules/fts: Likewise.
11406         * modules/mkdir-p: Likewise.
11407
11408         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
11409         This undoes the most recent change, since we're now addressing the
11410         problem in a different way.
11411
11412         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
11413         into output, since the output might be called Makefile.am even
11414         if $makefile_name is something different.
11415         (func_import): Use $makefile_am rather than
11416         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
11417         empty.
11418
11419         * modules/inttypes (Files): Add m4/inttypes-h.m4.
11420
11421 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11422
11423         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
11424         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
11425         recent change to stdint.m4, since we're now addressing the problem in a
11426         different way.
11427
11428 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11429
11430         * m4/fcntl_h.m4: New file.
11431
11432 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         * lib/fcntl_.h: New file.
11435         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
11436         the fcntl module.
11437         * lib/dirchownmod.c: Likewise.
11438         * lib/fts.c: Likewise.
11439
11440         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
11441         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
11442         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
11443         just before including <inttypes.h>, to avoid circular inclusion.
11444
11445 2006-08-28  Jim Meyering  <jim@meyering.net>
11446
11447         * doc/visibility.texi: Actually read and correct the grammar of the
11448         sentence affected by yesterday's change.
11449
11450 2006-08-28  Eric Blake  <ebb9@byu.net>
11451
11452         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
11453         needs wrapper.
11454
11455 2006-08-28  Eric Blake  <ebb9@byu.net>
11456
11457         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
11458
11459 2006-08-28  Eric Blake  <ebb9@byu.net>
11460
11461         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
11462
11463 2006-08-28  Bruno Haible  <bruno@clisp.org>
11464
11465         * modules/c-strstr: New file, from GNU gettext.
11466         * MODULES.html.sh (String handling): Add c-strstr.
11467
11468 2006-08-28  Bruno Haible  <bruno@clisp.org>
11469
11470         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
11471         macros.
11472         Reported by Eric Blake.
11473
11474 2006-08-28  Bruno Haible  <bruno@clisp.org>
11475
11476         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
11477         (VASNPRINTF): Return a string of length > INT_MAX without failing.
11478         * lib/vasprintf.c: Include errno.h, limits.h.
11479         (EOVERFLOW): New fallback definition.
11480         (vasprintf): Test here whether the string length is > INT_MAX.
11481         * lib/vsnprintf.c: Include errno.h, limits.h.
11482         (EOVERFLOW): New fallback definition.
11483         (vsnprintf): Fix bug when generated string was too long for the buffer.
11484         Test here whether the string length is > INT_MAX.
11485
11486 2006-08-28  Bruno Haible  <bruno@clisp.org>
11487
11488         * lib/inttypes_.h (SCNX*): Remove definitions.
11489         Reported by Eric Blake.
11490
11491 2006-08-28  Bruno Haible  <bruno@clisp.org>
11492
11493         * lib/c-strstr.h: New file, from GNU gettext.
11494         * lib/c-strstr.c: New file, from GNU gettext.
11495
11496 2006-08-28  Bruno Haible  <bruno@clisp.org>
11497
11498         * gnulib-tool: Reorder some statements.
11499
11500 2006-08-28  Bruno Haible  <bruno@clisp.org>
11501
11502         * gnulib-tool: New option --makefile-name.
11503         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
11504         $makefile_name.
11505         (func_import): Write $makefile_name to the cache file, and read it from
11506         there unless explicitly specified. Use $makefile_name as file name
11507         instead of Makefile.am. Adjust the recommendations accordingly.
11508
11509 2006-08-28  Bruno Haible  <bruno@clisp.org>
11510
11511         * gnulib-tool (func_verify_module): Check against misapplying patch.
11512
11513 2006-08-28  Bruno Haible  <bruno@clisp.org>
11514
11515         * gnulib-tool (func_relativize, func_relconcat): New functions.
11516         Give an error if --local-dir is given with --update.
11517         Remove trailing slashes from $local_gnulib_dir.
11518         (func_import): Store the relativized $local_gnulib_dir in
11519         gnulib-cache.m4, and read it from there if not specified explicitly.
11520
11521 2006-08-28  Bruno Haible  <bruno@clisp.org>
11522
11523         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
11524         is the current directory. Respect also $local_gnulib_dir.
11525
11526 2006-08-28  Bruno Haible  <bruno@clisp.org>
11527             Simon Josefsson  <jas@extundo.com>
11528
11529         BeOS portability.
11530         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
11531
11532 2006-08-27  Jim Meyering  <jim@meyering.net>
11533
11534         * doc/visibility.texi: Remove duplicate word: "pointer".
11535
11536 2006-08-26  Bruno Haible  <bruno@clisp.org>
11537
11538         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
11539         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
11540         (Makefile.am): Create inttypes.h from inttypes_.h.
11541         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
11542
11543         * modules/imaxabs: New file.
11544
11545         * modules/imaxdiv: New file.
11546
11547 2006-08-26  Bruno Haible  <bruno@clisp.org>
11548
11549         * m4/inttypes.m4: New file.
11550         * m4/_inttypes_h.m4: Remove file.
11551         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
11552         PRI_MACROS_BROKEN.
11553         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
11554
11555         * m4/imaxabs.m4: New file.
11556
11557         * m4/imaxdiv.m4: New file.
11558
11559 2006-08-26  Bruno Haible  <bruno@clisp.org>
11560
11561         * lib/inttypes_.h: New file.
11562         * lib/inttypes.h: Remove file.
11563         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
11564
11565         * lib/imaxabs.c: New file.
11566
11567         * lib/imaxdiv.c: New file.
11568
11569 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11570
11571         New config-h module, so that "make" output needn't be cluttered
11572         by -DHAVE_CONFIG_H.
11573         * MODULES.html.sh (Support for building libraries and executables):
11574         Add config-h.
11575         * modules/config-h: New file.
11576         * gnulib-tool (nl, sed_transform_lib_file): New vars.
11577         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
11578         the config-h module is used.
11579
11580         New configmake module, so that "make" output needn't be cluttered
11581         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
11582         * MODULES.html.sh (Support for building libraries and executables):
11583         Add configmake.
11584         * modules/configmake: New file.
11585
11586 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11587
11588         * m4/config-h.m4: New file.
11589
11590 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11591
11592         * config/srclist.txt: Add elisp-comp.
11593
11594 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11595
11596         * MODULES.html.sh (Support for building libraries and executables):
11597         Add elisp-comp.
11598         * build-aux/elisp-comp: New file.
11599         * modules/elisp-comp: New file.
11600
11601 2006-08-24  Bruno Haible  <bruno@clisp.org>
11602
11603         * gnulib-tool (func_create_testdir): Use non-default values of
11604         sourcebase and m4base.
11605
11606 2006-08-24  Bruno Haible  <bruno@clisp.org>
11607
11608         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
11609         HTML structure.
11610
11611 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11612
11613         * modules/openat (Depends-on): Add lchown.
11614
11615 2006-08-23  Bruno Haible  <bruno@clisp.org>
11616
11617         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
11618         of gl_LOCK_EARLY instead of gl_LOCK.
11619
11620 2006-08-23  Bruno Haible  <bruno@clisp.org>
11621
11622         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
11623         on OSF/1 to no.
11624         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
11625
11626 2006-08-23  Bruno Haible  <bruno@clisp.org>
11627
11628         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
11629         as unusable.
11630
11631         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
11632         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
11633         (gl_LOCK): New macro.
11634
11635 2006-08-22  Simon Josefsson  <jas@extundo.com>
11636
11637         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
11638         to md5 module.
11639
11640 2006-08-22  Simon Josefsson  <jas@extundo.com>
11641
11642         * MODULES.html.sh: Add "Support for maintaining and release
11643         projects".
11644
11645         * build-aux/gnupload: New file, from coreutils.
11646
11647 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11648
11649         Avoid the need for AC_LIBSOURCES in m4 macros.
11650         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
11651         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
11652         * modules/check-version (EXTRA_DIST): Add check-version.h.
11653         * modules/crc (EXTRA_DIST): Add crc.h.
11654         * modules/des (EXTRA_DIST): Add des.h.
11655         * modules/gc (EXTRA_DIST): Add gc.h.
11656         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
11657         * modules/getline (EXTRA_DIST): Add getline.h.
11658         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
11659         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
11660         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
11661         * modules/md2 (EXTRA_DIST): Add md2.h.
11662         * modules/md4 (EXTRA_DIST): Add md4.h.
11663         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
11664         * modules/read-file (EXTRA_DIST): Add read-file.h.
11665         * modules/readline (EXTRA_DIST): Add readline.h.
11666         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
11667         rijndael-api-fst.h.
11668
11669 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11670
11671         * m4/rijndael.m4 (gl_ARCFOUR):
11672         * m4/arctwo.m4 (gl_ARCTWO):
11673         * m4/check-version.m4 (gl_CHECK_VERSION):
11674         * m4/crc.m4 (gl_CRC):
11675         * m4/des.m4 (gl_DES):
11676         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
11677         * m4/gc.m4 (gl_GC):
11678         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
11679         * m4/getline.m4 (gl_FUNC_GETLINE):
11680         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
11681         * m4/hmac-md5.m4 (gl_HMAC_MD5):
11682         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
11683         * m4/md2.m4 (gl_MD2):
11684         * m4/md4.m4 (gl_MD4):
11685         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
11686         * m4/read-file.m4 (gl_FUNC_READ_FILE):
11687         * m4/readline.m4 (gl_FUNC_READLINE):
11688         * m4/rijndael.m4 (gl_RIJNDAEL):
11689         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11690         to get the necessary .h files and whatnot.
11691
11692 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11693
11694         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
11695         gnulib rather than the other way around.
11696         * config/srclistvars.sh (COREUTILS): Remove.
11697
11698 2006-08-22  Jim Meyering  <jim@meyering.net>
11699
11700         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
11701
11702         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
11703
11704 2006-08-22  Eric Blake  <ebb9@byu.net>
11705
11706         * modules/regexprops-generic: New file.
11707         * MODULES.html.sh (Support for building documentation): List it.
11708
11709 2006-08-22  Eric Blake  <ebb9@byu.net>
11710
11711         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
11712         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11713         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
11714         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11715
11716 2006-08-22  Bruno Haible  <bruno@clisp.org>
11717
11718         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
11719         and lib_LTLIBRARIES like the other lib_* variables.
11720
11721 2006-08-22  Bruno Haible  <bruno@clisp.org>
11722
11723         * build-aux/x-to-1.in: New file, from GNU gettext.
11724
11725 2006-08-22  Bruno Haible  <bruno@clisp.org>
11726
11727         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
11728         <utmpx.h> exists.
11729
11730 2006-08-22  Bruno Haible  <bruno@clisp.org>
11731
11732         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
11733         <utmpx.h> exists.
11734
11735 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11736
11737         BeOS portability.
11738         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
11739         exist.
11740         Problem reported by Bruno Haible.
11741
11742 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11743
11744         Avoid the need for AC_LIBSOURCES in m4 macros.
11745         * modules/acl (EXTRA_DIST): Add acl.h.
11746         * modules/argmatch (Files): Add m4/argmatch.m4.
11747         (configure.ac): Add gl_ARGMATCH.
11748         (EXTRA_DIST): Renamed from lib_SOURCES, for
11749         consistency with the other modules.  Remove argmatch.c.
11750         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
11751         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
11752         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
11753         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
11754         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
11755         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
11756         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
11757         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
11758         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
11759         * modules/closeout (EXTRA_DIST): Add closeout.h.
11760         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
11761         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
11762         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
11763         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
11764         dirname.h; remove basename.c and stripslash.c.
11765         * modules/exclude (EXTRA_DIST): Add exclude.h.
11766         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
11767         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
11768         * modules/file-type (EXTRA_DIST): Add file-type.h.
11769         * modules/filemode (EXTRA_DIST): Add filemode.h.
11770         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
11771         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11772         * modules/fpending (EXTRA_DIST): Add __fpending.h.
11773         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
11774         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
11775         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
11776         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
11777         * modules/getdate (EXTRA_DIST): Add getdate.c.
11778         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
11779         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
11780         * modules/getpass (EXTRA_DIST): Add getpass.h.
11781         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
11782         * modules/group-member (EXTRA_DIST): Add group-member.h.
11783         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
11784         * modules/hash (EXTRA_DIST): Add hash.h.
11785         * modules/human (EXTRA_DIST): Add human.h.
11786         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
11787         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
11788         * modules/lchown (EXTRA_DIST): Add lchown.h.
11789         * modules/long-options (EXTRA_DIST): Add long-options.h.
11790         * modules/lstat (EXTRA_DIST): Add lstat.h.
11791         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
11792         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
11793         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
11794         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
11795         * modules/memxor (EXTRA_DIST): Add memxor.h.
11796         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
11797         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
11798         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
11799         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
11800         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
11801         * modules/physmem (EXTRA_DIST): Add physmem.h.
11802         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
11803         * modules/posixver (EXTRA_DIST): Add posixver.h.
11804         * modules/quote (EXTRA_DIST): Add quote.h.
11805         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
11806         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
11807         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
11808         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
11809         regex_internal.h regexec.c.
11810         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
11811         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
11812         * modules/same (EXTRA_DIST): Add same.h.
11813         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
11814         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
11815         * modules/savedir (EXTRA_DIST): Add savedir.h.
11816         * modules/sha1 (EXTRA_DIST): Add sha1.h.
11817         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
11818         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
11819         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
11820         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
11821         * modules/strdup (EXTRA_DIST): Add strdup.h.
11822         * modules/strftime (EXTRA_DIST): Add strftime.h.
11823         * modules/strndup (EXTRA_DIST): Add strndup.h.
11824         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
11825         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
11826         * modules/time_r (EXTRA_DIST): Add time_r.h.
11827         * modules/timespec (EXTRA_DIST): Add timespec.h.
11828         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11829         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
11830         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
11831         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
11832         * modules/userspec (EXTRA_DIST): Add userspec.h.
11833         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
11834         * modules/utimens (EXTRA_DIST): Add utimens.h.
11835         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
11836         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
11837         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
11838         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
11839         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
11840         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
11841         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
11842         * modules/yesno (EXTRA_DIST): Add yesno.h.
11843
11844 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11845
11846         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
11847
11848         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
11849         * m4/dev-ino.m4, same-inode.m4: Remove.
11850
11851         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
11852         * m4/acl.m4 (AC_FUNC_ACL):
11853         * m4/backupfile.m4 (gl_BACKUPFILE):
11854         * m4/c-strtod.m4 (gl_C99_STRTOLD):
11855         * m4/canon-host.m4 (gl_CANON_HOST):
11856         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
11857         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
11858         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
11859         * m4/cloexec.m4 (gl_CLOEXEC):
11860         * m4/close-stream.m4 (gl_CLOSE_STREAM):
11861         * m4/closeout.m4 (gl_CLOSEOUT):
11862         * m4/dirfd.m4 (gl_FUNC_DIRFD):
11863         * m4/dirname.m4 (gl_DIRNAME):
11864         * m4/exclude.m4 (gl_EXCLUDE):
11865         * m4/exitfail.m4 (gl_EXITFAIL):
11866         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
11867         * m4/file-type.m4 (gl_FILE_TYPE):
11868         * m4/filemode.m4 (gl_FILEMODE):
11869         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
11870         * m4/fpending.m4 (gl_FUNC_FPENDING):
11871         * m4/fprintftime.m4 (gl_FPRINTFTIME):
11872         * m4/fts.m4 (gl_FUNC_FTS):
11873         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
11874         * m4/getdate.m4 (gl_GETDATE):
11875         * m4/gethrxtime.m4 (gl_GETHRXTIME):
11876         * m4/getpagesize.m4 (gl_GETPAGESIZE):
11877         * m4/getpass.m4 (gl_FUNC_GETPASS):
11878         * m4/gettime.m4 (gl_GETTIME):
11879         * m4/getugroups.m4 (gl_GETUGROUPS):
11880         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
11881         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
11882         * m4/hard-locale.m4 (gl_HARD_LOCALE):
11883         * m4/hash.m4 (gl_HASH):
11884         * m4/idcache.m4 (gl_IDCACHE):
11885         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
11886         * m4/lchown.m4 (gl_FUNC_LCHOWN):
11887         * m4/long-options.m4 (gl_LONG_OPTIONS):
11888         * m4/lstat.m4 (gl_FUNC_LSTAT):
11889         * m4/md5.m4 (gl_MD5):
11890         * m4/memcasecmp.m4 (gl_MEMCASECMP):
11891         * m4/memcoll.m4 (gl_MEMCOLL):
11892         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
11893         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
11894         * m4/memxor.m4 (gl_MEMXOR):
11895         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
11896         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
11897         * m4/modechange.m4 (gl_MODECHANGE):
11898         * m4/mountlist.m4 (gl_MOUNTLIST):
11899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11900         * m4/openat.m4 (gl_FUNC_OPENAT):
11901         * m4/pathmax.m4 (gl_PATHMAX):
11902         * m4/physmem.m4 (gl_PHYSMEM):
11903         * m4/posixtm.m4 (gl_POSIXTM):
11904         * m4/posixver.m4 (gl_POSIXVER):
11905         * m4/quote.m4 (gl_QUOTE):
11906         * m4/quotearg.m4 (gl_QUOTEARG):
11907         * m4/readtokens.m4 (gl_READTOKENS):
11908         * m4/readutmp.m4 (gl_READUTMP):
11909         * m4/regex.m4 (gl_REGEX):
11910         * m4/safe-read.m4 (gl_SAFE_READ):
11911         * m4/safe-write.m4 (gl_SAFE_WRITE):
11912         * m4/same.m4 (gl_SAME):
11913         * m4/save-cwd.m4 (gl_SAVE_CWD):
11914         * m4/savedir.m4 (gl_SAVEDIR):
11915         * m4/settime.m4 (gl_SETTIME):
11916         * m4/sha1.m4 (gl_SHA1):
11917         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
11918         * m4/stat-macros.m4 (gl_STAT_MACROS):
11919         * m4/stat-time.m4 (gl_STAT_TIME):
11920         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
11921         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
11922         * m4/strdup.m4 (gl_FUNC_STRDUP):
11923         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
11924         * m4/strndup.m4 (gl_FUNC_STRNDUP):
11925         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
11926         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
11927         * m4/time_r.m4 (gl_TIME_R):
11928         * m4/timespec.m4 (gl_TIMESPEC):
11929         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
11930         * m4/unlinkdir.m4 (gl_UNLINKDIR):
11931         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
11932         * m4/userspec.m4 (gl_USERSPEC):
11933         * m4/utimecmp.m4 (gl_UTIMECMP):
11934         * m4/utimens.m4 (gl_UTIMENS):
11935         * m4/xalloc.m4 (gl_XALLOC):
11936         * m4/xgetcwd.m4 (gl_XGETCWD):
11937         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
11938         * m4/xreadlink.m4 (gl_XREADLINK):
11939         * m4/xstrtod.m4 (gl_XSTRTOD):
11940         * m4/yesno.m4 (gl_YESNO):
11941         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11942         to get the necessary .h files and whatnot.
11943
11944 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
11945             Bruno Haible  <bruno@clisp.org>
11946
11947         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
11948         /bin/sh understanding of '!' conditional negation.
11949
11950 2006-08-21  Jim Meyering  <jim@meyering.net>
11951
11952         * modules/openat (Depends-on): Really alphabetize.
11953
11954         * modules/acl (Depends-on): Add error and quote.
11955
11956         * check-module (find_included_lib_files): Add at-func.c to the
11957         ok-to-include-more-than-once white list.
11958
11959         * modules/openat (Depends-on): Add lstat.  Alphabetize.
11960
11961 2006-08-21  Bruno Haible  <bruno@clisp.org>
11962
11963         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11964         Emit a pkgdata_DATA variable only if some snippets add contents to it.
11965         Reported by Martin Lambers <marlam@marlam.de>.
11966
11967 2006-08-21  Bruno Haible  <bruno@clisp.org>
11968
11969         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
11970         specify an installation location, don't emit a noinst_LIBRARIES or
11971         noinst_LTLIBRARIES assignment.
11972
11973 2006-08-21  Bruno Haible  <bruno@clisp.org>
11974
11975         BeOS portability.
11976         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
11977         BeOS has mbrtowc() but no <wctype.h>.
11978
11979 2006-08-21  Bruno Haible  <bruno@clisp.org>
11980
11981         BeOS portability.
11982         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
11983         exist.
11984
11985 2006-08-21  Bruno Haible  <bruno@clisp.org>
11986
11987         BeOS portability.
11988         * lib/mbchar.h: Include <wctype.h> only if it exists.
11989
11990 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11991
11992         Remove files that are no longer needed by their respective modules.
11993         * m4/obstack.m4: Remove.
11994         * m4/strerror_r.m4: Remove.
11995         * m4/uint32_t.m4: Remove.
11996         * m4/uintptr_t.m4: Remove.
11997         * m4/ullong_max.m4: Remove.
11998         * m4/xstrtoimax.m4: Remove.
11999         * m4/xstrtoumax.m4: Remove.
12000
12001         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
12002         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
12003         dependencies now capture this.
12004
12005         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12006         Do not use AC_LIBSOURCES, since gnulib modules now do this.
12007         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
12008         * m4/human.m4 (gl_HUMAN): Likewise.
12009         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
12010         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
12011
12012         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
12013
12014         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
12015         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
12016         stdint.
12017         * m4/human.m4 (gl_HUMAN): Likewise.
12018         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
12019         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
12020         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12021         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12022         * m4/xstrtol (gl_XSTRTOL): Likewise.
12023
12024         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
12025         AC_TYPE_LONG_LONG_INT.
12026         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12027         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
12028         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
12029         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12030
12031         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
12032         on stdbool.
12033
12034         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
12035         (gl_PREREQ_XSTRTOUL): Remove.
12036
12037         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
12038
12039         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
12040         mode.
12041
12042 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12043
12044         Add and change modules to make it easier for coreutils to use
12045         gnulib-tool.
12046         * modules/backupfile (Files): Remove m4/d-ino.m4.
12047         (Depends-on): Add d-ino.
12048         * modules/cycle-check (Depends-on): Add stdint.
12049         (lib_SOURCES): Add cycle-check.h.
12050         * modules/d-ino: New module.
12051         * modules/d-type: New module.
12052         * modules/error (Files): Remove m4/strerror_r.m4.
12053         * modules/filemode (Files): Add m4/st_dm_mode.m4.
12054         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12055         m4/inttypes_h.m4, m4/uintmax_t.m4.
12056         (Depends-on): Add stdint.
12057         (lib_SOURCES): Add fsusage.h.
12058         * modules/getcwd (Files): Remove d-ino.m4.
12059         (Depends-on): Add d-ino.
12060         * modules/getndelim2 (Depends-on): Add stdint.
12061         * modules/glob (Files): Remove m4/d-type.m4.
12062         (Depends-on): Add d-type.
12063         * modules/host-os: New module.
12064         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
12065         m4/inttypes_h.m4, m4/uintmax_t.m4.
12066         * Depends-on: Add stdint.
12067         (lib_SOURCES): Add human.h.
12068         * modules/inttostr (Files): Remove m4/intmax_t.m4,
12069         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
12070         m4/uintmax_t.m4, m4/ulonglong.m4.
12071         (Depends-on): Add stdint.
12072         (EXTRA_DIST): Add inttostr.h.
12073         * modules/lchmod: New module.
12074         * modules/link-follow: New module.
12075         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
12076         (Depends-on): Add lchmod.
12077         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
12078         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
12079         (Depends-on): Add stdint.
12080         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
12081         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
12082         (Depends-on): Add stdint.
12083         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
12084         * modules/perl: New module.
12085         * modules/regex (Depends-on): Add stdint.
12086         * modules/rmdir-errno: New module.
12087         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12088         m4/intmax_t.m4.
12089         (Depends-on): Add stdint.
12090         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12091         m4/uintmax_t.m4.
12092         (Depends-on): Add stdint.
12093         * modules/unlink-busy: New module.
12094         * modules/utimecmp (Depends-on): Add stdint.
12095         * modules/uptime: New module.
12096         * modules/winsz-ioctl: New module.
12097         * modules/winsz-termios: New module.
12098         * modules/xnanosleep (Depends-on): Add nanosleep.
12099         * modules/ullong_max: Remove.
12100         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
12101         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
12102         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
12103         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
12104         (Depends-on): Add inttypes.
12105         (lib_SOURCES): Add xstrtol.h.
12106         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
12107         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
12108         * MODULES.html.sh: Move 'assert' into the assert section.
12109         Move 'dummy' into the linking section.
12110         Remove ullong_max.
12111         Add section for compatibility checks for POSIX:2001 functions,
12112         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
12113         winsz-ioctl, and winsz-termios into it.
12114         Add lchmod.
12115         Add top-level Misc section and put host-os, perl, and uptime
12116         into it.
12117
12118 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12119
12120         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
12121         now assume the stdint module.  Do not include inttypes.h.
12122         * lib/fsusage.h: Likewise.
12123         * lib/getndelim2.c: Likewise.
12124         * lib/human.h: Likewise.
12125         * lib/inttostr.h: Likewise.
12126         * lib/obstack.c: Likewise.
12127         * lib/regex_internal.h: Likewise.
12128         * lib/tempname.c: Likewise.
12129         * lib/utimecmp.c: Likewise.
12130         * lib/xstrtol.h: Likewise.
12131
12132         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
12133
12134         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
12135         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
12136         * lib/xtime.h: Likewise.
12137
12138 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12139
12140         * modules/openat (Files): Add lib/fchmodat.c.
12141         Fixes problem reported by Jay Youngman.
12142
12143 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12144
12145         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
12146         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
12147
12148 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12149             Bruno Haible  <bruno@clisp.org>
12150
12151         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
12152         and is a script that invokes bison. Tighten the code. Add comments.
12153
12154 2006-08-18  Jim Meyering  <jim@meyering.net>
12155
12156         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
12157         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
12158         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
12159         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
12160
12161 2006-08-18  Bruno Haible  <bruno@clisp.org>
12162
12163         * modules/bison-i18n: New file.
12164         * MODULES.html.sh (Internationalization functions): Add it.
12165
12166 2006-08-18  Bruno Haible  <bruno@clisp.org>
12167
12168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
12169         sys/statvfs.h. When getmntinfo was found, check its declaration and
12170         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
12171
12172 2006-08-18  Bruno Haible  <bruno@clisp.org>
12173
12174         * m4/bison-i18n.m4: New file, from bison.
12175
12176 2006-08-18  Bruno Haible  <bruno@clisp.org>
12177
12178         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
12179         (ME_DUMMY): Treat "kernfs" as a dummy.
12180         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
12181
12182 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12183
12184         Update from coreutils.
12185
12186         2006-08-15  Jim Meyering  <jim@meyering.net>
12187
12188         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
12189
12190         2006-01-17  Jim Meyering  <jim@meyering.net>
12191
12192         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
12193
12194         2006-01-11  Jim Meyering  <jim@meyering.net>
12195
12196         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
12197         Check for the lchmod function.
12198
12199 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12200
12201         Update from coreutils.
12202
12203         * lib/__fpending.h: Add copyright notice.
12204         * lib/fprintftime.h: Likewise.
12205         * lib/savedir.c: Use (C) in copyright notice.
12206         * lib/savedir.h: Likewise.
12207
12208         2006-08-15  Jim Meyering  <jim@meyering.net>
12209
12210         * lib/at-func.c: New file, with the logic of all emulated at-functions.
12211         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
12212         in support of the EXPECTED_ERRNO macro.
12213         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
12214         definitions.  Instead, define the appropriate symbols and include
12215         "at-func.c".
12216         * lib/mkdirat.c (mkdirat): Likewise.
12217         * lib/fchmodat.c (fchmodat): Likewise.
12218         (ENOSYS): Remove definition.
12219         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
12220         it.  Don't include "unistd--.h" -- it wasn't ever used.
12221
12222         2006-01-17  Jim Meyering  <jim@meyering.net>
12223
12224         Rewrite fts.c not to change the current working directory,
12225         by using openat, fstatat, fdopendir, etc..
12226
12227         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
12228         (HAVE_OPENAT_SUPPORT): Define.
12229         [_LIBC] (fchdir): Don't undef or define; no longer used.
12230         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
12231         Now, this `function' always succeeds, and consumes its file descriptor
12232         parameter -- so callers must not close such FDs.  Update callers.
12233         (diropen_fd, opendirat, cwd_advance_fd): New functions.
12234         (diropen): Add parameter, SP.  Adjust all callers.
12235         Implement using diropen_fd, rather than open.
12236         (fts_open): Initialize new member, fts_cwd_fd.
12237         Remove fts_rft-setting code.
12238         (fts_close): Close fts_cwd_fd, if necessary.
12239         (__opendir2): Define in terms of opendir or opendirat,
12240         depending on whether the FST_NOCHDIR flag is set.
12241         (fts_build): Since fts_safe_changedir consumes its FD, and since
12242         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
12243         and close the dup'd file descriptor upon failure.
12244         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
12245         (fts_safe_changedir): Tweak semantics to reflect that this function
12246         now calls cwd_advance_fd and hence consumes its FD argument.
12247         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
12248         [struct FTS] (fts_rft): Remove now-unused member.
12249         [struct FTS] (fts_cycle.state): Improve comment.
12250
12251         * lib/openat.c (openat_needs_fchdir): New function.
12252         * lib/openat.h (openat_needs_fchdir): Declare it.
12253
12254 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12255
12256         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
12257         Problem and fix reported by Pádraig Brady in
12258         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
12259
12260 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12261
12262         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
12263
12264 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12265
12266         * lib/memcoll.c (memcoll): Optimize for the common case where the
12267         arguments are bytewise equal.
12268
12269 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12270
12271         * doc/regexprops-generic.texi: Add a copyright notice.
12272
12273 2006-08-15  Bruno Haible  <bruno@clisp.org>
12274
12275         * modules/tmpdir (License): Change to LGPL.
12276
12277 2006-08-15  Bruno Haible  <bruno@clisp.org>
12278
12279         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
12280         module.
12281
12282 2006-08-14  Simon Josefsson  <jas@extundo.com>
12283
12284         * config/srclist.txt: Add gnupload.
12285
12286 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12287
12288         Change copyright notice from LGPL 2 to GPL 2, since that's the
12289         standard form used in the gnulib repository.
12290         * tests/test-lock.c: Likewise.
12291         * tests/test-stdint.c: Likewise.
12292         * tests/test-tls.c: Likewise.
12293
12294         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
12295         prelude-manager.  User shorter URLs for GNU projects, without '?'.
12296         Add copyright notice.
12297
12298         * check-module: Add copyright notice.  Output a copyright
12299         notice if "--version" is specified.
12300         * modules/COPYING: New file.
12301         * tests/test-getaddrinfo.c: Add copyright notice.
12302         * tests/test-verify.c: Likewise.
12303
12304 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12305
12306         Change copyright notice from LGPL 2 to GPL 2, since that's the
12307         standard form used in the gnulib repository.
12308         * lib/lock.c: LGPL -> GPL.
12309         * lib/lock.h: Likewise.
12310         * lib/strnlen1.c: Likewise.
12311         * lib/strnlen1.h: Likewise.
12312         * lib/tls.c: Likewise.
12313         * lib/tls.h: Likewise.
12314         * lib/tmpdir.c: Likewise.
12315
12316         * lib/TODO: Remove; this belongs only in coreutils.
12317
12318 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12319
12320         Add copyright notices to long-enough files that lack them, since
12321         otherwise the files aren't clearly free.  Use the same notice that
12322         getdate.texi already uses.
12323         * doc/alloca-opt.texi: Add copyright notice.
12324         * doc/alloca.texi: Likewise.
12325         * doc/ctime.texi: Likewise.
12326         * doc/functions.texi: Likewise.
12327         * doc/gcd.texi: Likewise.
12328         * doc/gnulib-tool.texi: Likewise.
12329         * doc/inet_ntoa.texi: Likewise.
12330         * doc/visibility.texi: Likewise.
12331
12332         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
12333         * doc/quote.texi: Add copyright notice.
12334
12335         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
12336         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
12337         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
12338         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
12339         is now obsolete, and give a pointer to the Sun list.
12340         Add copyright notice.
12341
12342 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12343
12344         * config/srclistvars.sh: Add copyright notice.
12345
12346 2006-08-14  Eric Blake  <ebb9@byu.net>
12347
12348         Import the following change from libc:
12349
12350         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12351
12352         Upstream bug 2997.
12353         * lib/misc/error.c: Add space between program name and message if file
12354         name is missing.
12355
12356 2006-08-12  Karl Berry  <karl@gnu.org>
12357
12358         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
12359         remove, these originate in gnulib now.
12360
12361 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12362
12363         * doc/Makefile (standards.info standards.html standards.dvi):
12364         Also depend on make-stds.texi.
12365
12366 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12367
12368         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
12369         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
12370
12371         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
12372         in wchar_t.  Problem reported by Eric Blake.
12373
12374         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
12375         LEN is smaller than SIZE.  Suggested by Bruno Haible.
12376         Also, help the compiler to keep LEN in a register.
12377
12378 2006-08-11  Eric Blake  <ebb9@byu.net>
12379
12380         * users.txt: Sort.  Add tar.
12381
12382 2006-08-11  Bruno Haible  <bruno@clisp.org>
12383
12384         * users.txt: New file.
12385
12386 2006-08-11  Bruno Haible  <bruno@clisp.org>
12387
12388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
12389         before <wchar.h>. Needed for OSF/1 and BSD/OS.
12390
12391 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12392
12393         * modules/snprintf (Depends-on): Remove minmax.
12394         (Maintainer): Add self and Bruno.
12395
12396 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12397
12398         * lib/.cppi-disable: Add snprintf.h, socket_.h.
12399         * lib/snprintf.c: Include <errno.h> and <limits.h>.
12400         (EOVERFLOW): Define if the system does not.
12401         Do not include "minmax.h"; it wasn't used.
12402         (snprintf): Don't assume size_t promotes to an unsigned type.
12403         Fix bug when generated string was too long for the buffer: the
12404         buffer's contents are supposed to be the initial prefix of the
12405         output.  Don't assume vasnprintf returns EOVERFLOW if the size
12406         exceeds INT_MAX; do the check ourselves.
12407
12408         Import the following changes from libc:
12409
12410         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12411
12412         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
12413         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
12414         set wc to the byte which couldn't be converted.
12415         (re_string_reconstruct): Don't clear valid_raw_len before calling
12416         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12417         tip_context using re_string_context_at.
12418
12419         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
12420
12421         * lib/posix/regex.h: g++ still cannot handled [restrict].
12422
12423         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
12424
12425         * lib/posix/regex.h: Remove special handling for VMS.
12426
12427 2006-08-10  Jim Meyering  <jim@meyering.net>
12428
12429         * modules/same-inode: New module.
12430         * modules/dev-ino: New module.
12431         * modules/cycle-check: Depend on these modules, rather than simply
12432         including their .h files.
12433         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
12434         required via m4/cycle-check.m4.
12435         * modules/same: Depend on new same-inode module, rather than
12436         including same-inode.h.
12437         * modules/chdir-safer: New file.
12438
12439         * modules/chown (Depends-on): Add stat-macros.
12440
12441 2006-08-10  Jim Meyering  <jim@meyering.net>
12442
12443         * m4/cycle-check.m4: New file.
12444         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
12445         * m4/dev-ino.m4, m4/same-inode.m4: New files.
12446
12447 2006-08-10  Eric Blake  <ebb9@byu.net>
12448
12449         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
12450         in from original proposal.
12451
12452 2006-08-10  Eric Blake  <ebb9@byu.net>
12453         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12454
12455         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
12456         namespace.
12457
12458 2006-08-10  Bruno Haible  <bruno@clisp.org>
12459
12460         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
12461         as well.
12462
12463 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12464
12465         Sync from coreutils.
12466
12467         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
12468
12469         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
12470         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
12471
12472 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12473
12474         * modules/restrict: Remove; no longer needed now that we assume
12475         Autoconf 2.59 or later.
12476         * MODULES.html.sh: Remove 'restrict'.
12477         * modules/argp (Depends-on): Remove 'restrict'.
12478         * modules/base64 (Depends-on): Likewise.
12479         * modules/gc (Depends-on): Likewise.
12480         * modules/getaddrinfo (Depends-on): Likewise.
12481         * modules/glob (Depends-on): Likewise.
12482         * modules/inet_ntop (Depends-on): Likewise.
12483         * modules/inet_pton (Depends-on): Likewise.
12484         * modules/memxor (Depends-on): Likewise.
12485         * modules/regex (Depends-on): Likewise.
12486         * modules/strtok_r (Depends-on): Likewise.
12487         * modules/time_r (Depends-on): Likewise.
12488
12489 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12490
12491         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
12492         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
12493         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12494         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
12495         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12496         * m4/memxor.m4 (gl_MEMXOR): Likewise.
12497         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
12498         gl_C_RESTRICT replaced by AC_C_RESTRICT.
12499
12500         Merge from coreutils.
12501         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
12502         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
12503         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12504         * m4/time_r.m4 (gl_TIME_R): Likewise.
12505
12506 2006-08-09  Karl Berry  <karl@gnu.org>
12507
12508         * config/srclist.txt: no more gettext-tools, per Bruno.
12509
12510 2006-08-08  Eric Blake  <ebb9@byu.net>
12511
12512         * modules/verror: New module.
12513         * MODULES.html.sh: Document it.
12514
12515 2006-08-08  Eric Blake  <ebb9@byu.net>
12516
12517         * lib/verror.h, lib/verror.c: New files.
12518
12519 2006-08-08  Eric Blake  <ebb9@byu.net>
12520
12521         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
12522         verror_at_line output complies with GNU Coding Standards even when
12523         file is NULL.
12524
12525 2006-08-07  Bruno Haible  <bruno@clisp.org>
12526
12527         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
12528         versions of AIX.
12529         Reported by Ralf Wildenhues.
12530
12531 2006-08-07  Bruno Haible  <bruno@clisp.org>
12532
12533         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
12534         in an AC_DEFUN. Needed so that the autoconf snippets can use
12535         AC_REQUIRE.
12536
12537 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12538
12539         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12540         Initialize pkgdata_DATA.
12541         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
12542         overriding it.
12543
12544 2006-08-06  Eric Blake  <ebb9@byu.net>
12545
12546         * lib/error.h: Fold in some upstream changes from glibc.
12547         * lib/error.c: Likewise.
12548
12549 2006-08-04  Bruno Haible  <bruno@clisp.org>
12550
12551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12552         Make the mostlyclean-local rule depend on mostlyclean-generic.
12553         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
12554
12555 2006-07-31  Bruno Haible  <bruno@clisp.org>
12556
12557         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
12558         <stdlib.h>, <string.h>.
12559
12560 2006-07-30  Bruno Haible  <bruno@clisp.org>
12561
12562         * modules/readlink (License): Change to LGPL.
12563
12564 2006-07-30  Bruno Haible  <bruno@clisp.org>
12565
12566         * modules/javaversion (Makefile.am): Distribute javaversion.java and
12567         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
12568         set PKGDATADIR to point to it.
12569
12570 2006-07-30  Bruno Haible  <bruno@clisp.org>
12571
12572         * modules/csharpexec (configure.ac): Comment out macro invocation.
12573         * modules/javaexec (configure.ac): Likewise.
12574         * modules/javacomp-script (configure.ac): Likewise.
12575
12576         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
12577
12578 2006-07-30  Bruno Haible  <bruno@clisp.org>
12579
12580         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
12581         linked-list.
12582
12583 2006-07-30  Bruno Haible  <bruno@clisp.org>
12584
12585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
12586
12587 2006-07-30  Bruno Haible  <bruno@clisp.org>
12588
12589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12590         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
12591         get removed.
12592
12593 2006-07-29  Bruno Haible  <bruno@clisp.org>
12594
12595         Make it possible for gnulib-tool to work with locally modified or
12596         augmented gnulib repositories.
12597         * gnulib-tool (func_usage): Document --local-dir option.
12598         (local_gnulib_dir): New variable.
12599         Handle --local-dir option.
12600         (func_lookup_file): New function.
12601         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
12602         (func_get_description, func_get_filelist, func_get_description,
12603         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
12604         func_get_automake_snippet, func_get_include_directive,
12605         func_get_license, func_get_maintainer): Use func_lookup_file.
12606         (func_import, func_create_testdir): Use func_lookup_file.
12607
12608 2006-07-29  Bruno Haible  <bruno@clisp.org>
12609
12610         * modules/setenv (Depends-on): Add unistd.
12611
12612 2006-07-29  Bruno Haible  <bruno@clisp.org>
12613
12614         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
12615
12616 2006-07-29  Bruno Haible  <bruno@clisp.org>
12617
12618         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
12619
12620 2006-07-29  Bruno Haible  <bruno@clisp.org>
12621
12622         * gnulib-tool (import, update): If there is no Makefile.am, look at
12623         aclocal.m4, instead of bailing out.
12624
12625 2006-07-29  Bruno Haible  <bruno@clisp.org>
12626
12627         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
12628         Categorize the options by when they are useful.
12629
12630 2006-07-29  Bruno Haible  <bruno@clisp.org>
12631
12632         * gnulib-tool (func_usage): Document option --no-libtool.
12633         Handle option --no-libtool.
12634         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
12635         for changed semantics of $libtool variable.
12636         (func_import): Likewise. If libtool is not used, show this through
12637         an option --no-libtool.
12638         (func_create_testdir): Update.
12639
12640 2006-07-29  Bruno Haible  <bruno@clisp.org>
12641
12642         * gnulib-tool (func_import): Extend error message about missing
12643         --doc-base.
12644
12645 2006-07-29  Bruno Haible  <bruno@clisp.org>
12646
12647         * gnulib-tool (func_import): Don't create the $docbase directory if
12648         there is no file to store there.
12649
12650 2006-07-29  Bruno Haible  <bruno@clisp.org>
12651
12652         * gnulib-tool (autoconf_minversion): If a --dir option is given and
12653         relevant, look for configure.ac there, not in the current directory.
12654         Also use a simple search for AC_PREREQ, not "autoconf --trace".
12655
12656 2006-07-29  Bruno Haible  <bruno@clisp.org>
12657
12658         * gnulib-tool (SORT): New variable.
12659         (func_usage): Undocument --assume-autoconf option.
12660         Remove --assume-autoconf option handling.
12661         (autoconf_minversion): Determine from the contents of configure.ac.
12662         (func_import): Remove autoconf_minversion handling.
12663         Suggested by Eric Blake.
12664
12665 2006-07-29  Bruno Haible  <bruno@clisp.org>
12666
12667         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
12668
12669 2006-07-29  Bruno Haible  <bruno@clisp.org>
12670
12671         * config/srclist.txt (*setenv.[ch]): Remove rules.
12672
12673 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12674
12675         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
12676
12677 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12678
12679         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
12680         arpa/inet.h.
12681
12682 2006-07-28  Simon Josefsson  <jas@extundo.com>
12683
12684         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
12685         * modules/inet_pton (Depends-on): Likewise.
12686
12687 2006-07-28  Simon Josefsson  <jas@extundo.com>
12688
12689         * m4/netinet_in_h.m4: New file.
12690
12691 2006-07-28  Simon Josefsson  <jas@extundo.com>
12692
12693         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
12694         #include's.
12695
12696 2006-07-28  Simon Josefsson  <jas@extundo.com>
12697
12698         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
12699         #include's.
12700
12701 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
12702
12703         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
12704         setgid on directories only if they set these bits.
12705         * lib/modechange.h: Remove obsolete comment about masks.
12706
12707 2006-07-28  Eric Blake  <ebb9@byu.net>
12708
12709         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
12710         macro expansion.
12711
12712 2006-07-28  Bruno Haible  <bruno@clisp.org>
12713
12714         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
12715
12716 2006-07-28  Bruno Haible  <bruno@clisp.org>
12717
12718         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
12719
12720 2006-07-28  Bruno Haible  <bruno@clisp.org>
12721
12722         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12723         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
12724         Define fallbacks.
12725         Avoids link error on FreeBSD 4.x.
12726         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12727
12728         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
12729         encoding.
12730         * lib/mbswidth.c (iswcntrl): Likewise.
12731
12732 2006-07-27  Bruno Haible  <bruno@clisp.org>
12733
12734         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
12735         test.
12736
12737 2006-07-27  Bruno Haible  <bruno@clisp.org>
12738
12739         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
12740         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
12741         defined.
12742
12743 2006-07-26  Eric Blake  <ebb9@byu.net>
12744
12745         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
12746
12747 2006-07-26  Eric Blake  <ebb9@byu.net>
12748
12749         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
12750         like mingw that lack mkstemp.
12751         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
12752         avoid compilation warning on mingw.
12753
12754 2006-07-26  Bruno Haible  <bruno@clisp.org>
12755
12756         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
12757         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
12758         INT_FAST*_MIN, INTPTR_MIN.
12759
12760 2006-07-25  Bruno Haible  <bruno@clisp.org>
12761
12762         * modules/version-etc (Depends-on): Add stdarg.
12763
12764 2006-07-25  Bruno Haible  <bruno@clisp.org>
12765
12766         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
12767         complex commands.
12768
12769 2006-07-25  Bruno Haible  <bruno@clisp.org>
12770
12771         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
12772         defined in <stdarg.h> or config.h.
12773
12774 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12775
12776         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
12777         (gl_STDIO_SAFER): Remove.
12778
12779 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12780
12781         * MODULES.html.sh (File stream based Input/Output):
12782         Add fopen-safer, tmpfile-safer; remove stdio-safer.
12783         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
12784         * modules/fopen-safer, modules/tmpfile-safer: New files.
12785         * modules/stdio-safer: Remove.
12786
12787 2006-07-24  Bruno Haible  <bruno@clisp.org>
12788
12789         * modules/tmpdir: New file.
12790         * MODULES.html.sh (File system functions): Add it.
12791
12792 2006-07-24  Bruno Haible  <bruno@clisp.org>
12793
12794         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
12795         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
12796
12797 2006-07-24  Bruno Haible  <bruno@clisp.org>
12798
12799         * modules/clean-temp: New file.
12800
12801 2006-07-24  Bruno Haible  <bruno@clisp.org>
12802
12803         * m4/tmpdir.m4: New file, from GNU gettext.
12804
12805 2006-07-24  Bruno Haible  <bruno@clisp.org>
12806
12807         * lib/tmpdir.h: New file, from GNU gettext.
12808         * lib/tmpdir.c: New file, from GNU gettext.
12809
12810 2006-07-24  Bruno Haible  <bruno@clisp.org>
12811
12812         * lib/clean-temp.h: New file, from GNU gettext.
12813         * lib/clean-temp.c: New file, from GNU gettext.
12814
12815 2006-07-23  Eric Blake  <ebb9@byu.net>
12816
12817         * modules/stdio-safer (Files): Add tmpfile-safer.c.
12818         (Depends-on): Add binary-io.
12819
12820 2006-07-23  Eric Blake  <ebb9@byu.net>
12821
12822         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
12823
12824 2006-07-23  Eric Blake  <ebb9@byu.net>
12825
12826         * lib/tmpfile-safer.c: New file.
12827         * lib/stdio-safer.h (fopen_safer): Add prototype.
12828         * lib/stdio--.h (tmpfile): Make safer.
12829
12830 2006-07-23  Bruno Haible  <bruno@clisp.org>
12831
12832         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
12833         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
12834         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
12835         gl_linked_remove_at): Use it.
12836
12837 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12838         and Simon Josefsson <jas@extundo.com>
12839
12840         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
12841
12842         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
12843
12844 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12845
12846         * modules/close-stream: New file.
12847         * modules/closeout (Description): Make it clear that it exits
12848         with a diagnostic on error.
12849         (Depends-on): Add close-stream.  Remove fpending, stdbool.
12850         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
12851
12852 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12853
12854         * m4/close-stream.m4: New file.
12855
12856 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12857
12858         * lib/close-stream.c, lib/close-stream.h: New files.
12859
12860 2006-07-22  Bruno Haible  <bruno@clisp.org>
12861
12862         Merge from GNU gettext 0.15.
12863
12864         2006-05-01  Bruno Haible  <bruno@clisp.org>
12865
12866                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
12867
12868         2006-07-22  Bruno Haible  <bruno@clisp.org>
12869
12870                 * modules/javaversion: New file.
12871                 * MODULES.html.sh (Java): Add javaversion.
12872
12873         2006-03-12  Bruno Haible  <bruno@clisp.org>
12874
12875                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
12876
12877         2005-12-04  Bruno Haible  <bruno@clisp.org>
12878
12879                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
12880                 (untested).
12881
12882         2006-06-21  Bruno Haible  <bruno@clisp.org>
12883
12884                 Avoid warnings from recent versions of mcs.
12885                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
12886                 -o, -L, -r any more. Use options documented since mcs-1.0
12887                 instead. Similarly for -g.
12888
12889         2005-12-04  Bruno Haible  <bruno@clisp.org>
12890
12891                 * build-aux/csharpcomp.sh.in: Suffix for resources is
12892                 .resources, not .resource.
12893
12894         2005-07-09  Bruno Haible  <bruno@clisp.org>
12895
12896                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
12897                 add a .dll suffix.
12898                 Reported by Mark Junker <mjscod@gmx.de>.
12899
12900         2006-07-22  Bruno Haible  <bruno@clisp.org>
12901
12902                 * modules/gettext: Upgrade to gettext-0.15.
12903                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
12904                 m4/visibility.m4.
12905                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
12906
12907 2006-07-22  Bruno Haible  <bruno@clisp.org>
12908
12909         Merge from GNU gettext 0.15.
12910
12911         2006-03-25  Bruno Haible  <bruno@clisp.org>
12912
12913                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
12914
12915         2006-07-21  Bruno Haible  <bruno@clisp.org>
12916
12917                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
12918                 "1.1".
12919
12920         2006-05-09  Bruno Haible  <bruno@clisp.org>
12921
12922                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
12923                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
12924                 for the conftestver execution.
12925
12926         2006-05-01  Bruno Haible  <bruno@clisp.org>
12927
12928                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
12929                 optional target-version argument. Verify that the compiler
12930                 groks source of the specified source-version, or add -source
12931                 option as necessary. Verify that the compiler produces
12932                 bytecode in the specified target-version, or add -target and
12933                 -source options as necessary. Make the result of the test
12934                 available as variable CONF_JAVAC. Also log error output in
12935                 config.log.
12936
12937         2006-03-11  Bruno Haible  <bruno@clisp.org>
12938
12939                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
12940
12941         2006-05-09  Bruno Haible  <bruno@clisp.org>
12942
12943                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
12944                 CLASSPATH_SEPARATOR to a semicolon.
12945
12946         2006-03-12  Bruno Haible  <bruno@clisp.org>
12947
12948                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
12949                 available as variable CONF_JAVA, for subsequent autoconf
12950                 tests. Also log error output in config.log.
12951
12952         2006-07-19  Bruno Haible  <bruno@clisp.org>
12953
12954                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
12955                 that getline works on glibc2 systems. Needed to avoid trouble
12956                 in relocatable.c.
12957                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
12958
12959         2005-12-04  Bruno Haible  <bruno@clisp.org>
12960
12961                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
12962                 launcher (untested).
12963
12964         2005-12-04  Bruno Haible  <bruno@clisp.org>
12965
12966                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
12967
12968         2006-07-22  Bruno Haible  <bruno@clisp.org>
12969
12970                 * gettext.m4: Update from GNU gettext-0.15.
12971                 * nls.m4: Likewise.
12972                 * po.m4: Likewise.
12973                 * inttypes-pri.m4: Likewise.
12974                 * inttypes-h.m4: Renamed from inttypes.m4.
12975                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
12976
12977 2006-07-22  Bruno Haible  <bruno@clisp.org>
12978
12979         Merge from GNU gettext 0.15.
12980
12981         2005-07-05  Bruno Haible  <bruno@clisp.org>
12982
12983                 * printf-args.c (printf_fetchargs): Work around broken
12984                 definition of wint_t on mingw.
12985
12986         2005-02-12  Bruno Haible  <bruno@clisp.org>
12987
12988                 * xallocsa.h: Add extern "C" for C++.
12989
12990         2006-05-17  Bruno Haible  <bruno@clisp.org>
12991
12992                 Cygwin portability.
12993                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
12994
12995         2006-04-30  Bruno Haible  <bruno@clisp.org>
12996
12997                 * progreloc.c: Include <mach-o/dyld.h> if available.
12998                 (find_executable): Use _NSGetExecutablePath when possible.
12999
13000         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
13001
13002                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
13003                 function.
13004
13005         2005-12-29  Bruno Haible  <bruno@clisp.org>
13006
13007                 * progreloc.c (set_program_name_and_installdir): Fix
13008                 compilation error.
13009
13010         2005-12-04  Bruno Haible  <bruno@clisp.org>
13011
13012                 Cygwin portability.
13013                 * progreloc.c: Include <windows.h> also on Cygwin.
13014                 (find_executable): Add support for Cygwin.
13015                 (set_program_name_and_installdir): Handle also platforms with
13016                 nonempty EXEEXT.
13017
13018         2006-07-11  Bruno Haible  <bruno@clisp.org>
13019
13020                 * javacomp.c: Fix a comment.
13021                 Reported by Jim Meyering.
13022
13023         2006-04-30  Bruno Haible  <bruno@clisp.org>
13024
13025                 * javacomp.h (compile_java_class): Add source_version,
13026                 target_version arguments.
13027                 * javacomp.c: Rewritten to choose only a compiler that
13028                 respects the specified source_version and target_version.
13029
13030         2006-06-27  Bruno Haible  <bruno@clisp.org>
13031
13032                 Assume correct S_ISDIR macro.
13033                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
13034
13035         2006-07-22  Bruno Haible  <bruno@clisp.org>
13036
13037                 * javaversion.h: New file, from GNU gettext.
13038                 * javaversion.c: New file, from GNU gettext.
13039                 * javaversion.java: New file, from GNU gettext.
13040                 * javaversion.class: New file, from GNU gettext.
13041
13042         2006-05-17  Bruno Haible  <bruno@clisp.org>
13043
13044                 Cygwin portability.
13045                 * javaexec.c (execute_java_class): Test for jview program
13046                 also on Cygwin.
13047
13048         2006-04-09  Bruno Haible  <bruno@clisp.org>
13049
13050                 * fatal-signal.c: Don't include string.h.
13051                 (at_fatal_signal): Use a copying loop instead of memcpy.
13052
13053         2005-12-04  Bruno Haible  <bruno@clisp.org>
13054
13055                 * csharpexec.c: Add support for 'clix' launcher (untested).
13056                 (execute_csharp_using_sscli): New function.
13057                 (execute_csharp_program): Call it.
13058
13059         2006-06-21  Bruno Haible  <bruno@clisp.org>
13060
13061                 Avoid warnings from recent versions of mcs.
13062                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
13063                 -o, -L, -r any more. Use options documented since mcs-1.0
13064                 instead. Similarly for -g.
13065
13066         2005-07-09  Bruno Haible  <bruno@clisp.org>
13067
13068                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
13069                 add a .dll suffix.
13070                 Reported by Mark Junker <mjscod@gmx.de>.
13071
13072         2006-06-17  Bruno Haible  <bruno@clisp.org>
13073
13074                 * config.charset: Update for NetBSD 3.0.
13075
13076         2006-05-17  Bruno Haible  <bruno@clisp.org>
13077
13078                 Cygwin portability.
13079                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
13080
13081         2006-05-16  Bruno Haible  <bruno@clisp.org>
13082
13083                 * localcharset.c [CYGWIN]: Include <windows.h>.
13084                 (get_charset_aliases): For Cygwin, return the same CPxxx
13085                 aliases list as under WIN32.
13086                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
13087                 the environment variables. Fall back to GetACP().
13088
13089         2006-04-05  Bruno Haible  <bruno@clisp.org>
13090
13091                 * config.charset: Update Juan Manuel Guerrero's address.
13092
13093         2005-02-12  Bruno Haible  <bruno@clisp.org>
13094
13095                 * allocsa.h: Add extern "C" for C++.
13096
13097         2005-02-10  Bruno Haible  <bruno@clisp.org>
13098
13099                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
13100                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
13101
13102         2006-07-22  Bruno Haible  <bruno@clisp.org>
13103
13104                 * gettext.h: Update to GNU gettext-0.15.
13105
13106 2006-07-22  Bruno Haible  <bruno@clisp.org>
13107
13108         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
13109         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
13110         lib-prefix.m4, longdouble.m4, ssize_t.m4.
13111
13112 2006-07-21  Eric Blake  <ebb9@byu.net>
13113
13114         * modules/stdlib-safer: New file.
13115         * MODULES.html.sh (File stream based Input/Output): Add
13116         stdlib-safer.
13117
13118 2006-07-21  Eric Blake  <ebb9@byu.net>
13119
13120         * lib/stdlib-safer.h: New file from coreutils, required by
13121         stdlib--.h.
13122
13123 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
13124
13125         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
13126
13127 2006-07-20  Bruno Haible  <bruno@clisp.org>
13128
13129         * gnulib-tool: Recognize new option --assume-autoconf.
13130         (autoconf_minversion): New variable.
13131         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
13132
13133 2006-07-20  Bruno Haible  <bruno@clisp.org>
13134
13135         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
13136
13137 2006-07-19  Derek R. Price  <derek@ximbiot.com>
13138
13139         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
13140         Reindent and repaginate.
13141
13142 2006-07-19  Derek Price  <derek@ximbiot.com>
13143
13144         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
13145         Correct grammar.
13146
13147 2006-07-17  Bruno Haible  <bruno@clisp.org>
13148
13149         * modules/list: New file.
13150         * modules/array-list: New file.
13151         * modules/carray-list, modules/carray-list-tests: New files.
13152         * modules/linked-list, modules/linked-list-tests: New files.
13153         * modules/avltree-list, modules/avltree-list-tests: New files.
13154         * modules/rbtree-list, modules/rbtree-list-tests: New files.
13155         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
13156         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
13157         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
13158         * modules/oset: New file.
13159         * modules/array-oset: New file.
13160         * modules/avltree-oset, modules/avltree-oset-tests: New files.
13161         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
13162         * tests/test-carray_list.c: New file.
13163         * tests/test-linked_list.c: New file.
13164         * tests/test-avltree_list.c: New file.
13165         * tests/test-rbtree_list.c: New file.
13166         * tests/test-linkedhash_list.c: New file.
13167         * tests/test-avltreehash_list.c: New file.
13168         * tests/test-rbtreehash_list.c: New file.
13169         * tests/test-avltree_oset.c: New file.
13170         * tests/test-rbtree_oset.c: New file.
13171         * MODULES.html.sh (Container data structures): New section.
13172
13173 2006-07-17  Bruno Haible  <bruno@clisp.org>
13174
13175         * m4/gl_list.m4: New file.
13176
13177 2006-07-17  Bruno Haible  <bruno@clisp.org>
13178
13179         * lib/gl_list.h: New file.
13180         * lib/gl_list.c: New file.
13181         * lib/gl_array_list.h: New file.
13182         * lib/gl_array_list.c: New file.
13183         * lib/gl_carray_list.h: New file.
13184         * lib/gl_carray_list.c: New file.
13185         * lib/gl_linked_list.h: New file.
13186         * lib/gl_linked_list.c: New file.
13187         * lib/gl_anylinked_list1.h: New file.
13188         * lib/gl_anylinked_list2.h: New file.
13189         * lib/gl_avltree_list.h: New file.
13190         * lib/gl_avltree_list.c: New file.
13191         * lib/gl_anyavltree_list1.h: New file.
13192         * lib/gl_anyavltree_list2.h: New file.
13193         * lib/gl_rbtree_list.h: New file.
13194         * lib/gl_rbtree_list.c: New file.
13195         * lib/gl_anyrbtree_list1.h: New file.
13196         * lib/gl_anyrbtree_list2.h: New file.
13197         * lib/gl_anytree_list1.h: New file.
13198         * lib/gl_anytree_list2.h: New file.
13199         * lib/gl_linkedhash_list.h: New file.
13200         * lib/gl_linkedhash_list.c: New file.
13201         * lib/gl_anyhash_list1.h: New file.
13202         * lib/gl_anyhash_list2.h: New file.
13203         * lib/gl_avltreehash_list.h: New file.
13204         * lib/gl_avltreehash_list.c: New file.
13205         * lib/gl_rbtreehash_list.h: New file.
13206         * lib/gl_rbtreehash_list.c: New file.
13207         * lib/gl_anytreehash_list1.h: New file.
13208         * lib/gl_anytreehash_list2.h: New file.
13209
13210         * lib/gl_oset.h: New file.
13211         * lib/gl_oset.c: New file.
13212         * lib/gl_array_oset.h: New file.
13213         * lib/gl_array_oset.c: New file.
13214         * lib/gl_avltree_oset.h: New file.
13215         * lib/gl_avltree_oset.c: New file.
13216         * lib/gl_rbtree_oset.h: New file.
13217         * lib/gl_rbtree_oset.c: New file.
13218         * lib/gl_anytree_oset.h: New file.
13219
13220 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         * m4/mkancesdirs.m4: New file.
13223         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
13224         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
13225         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
13226         it.
13227
13228 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13229
13230         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
13231         * lib/mkancesdirs.h: New files.
13232         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
13233         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
13234         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
13235         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
13236         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
13237         callers changed.  Revamp internals significantly, by not
13238         attempting to create directories that are temporarily more
13239         permissive than the final results.  Do not attempt to use
13240         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
13241         This removes some race conditions, fixes some bugs, and simplifies
13242         things.  Use new dirchownmod function to do owner and mode changes.
13243         * lib/mkdir-p.h: Likewise.
13244         * lib/modechange.c (octal_to_mode): New function.
13245         (struct mode_change): New member mentioned.
13246         (make_node_op_equals): New arg mentioned.  All callers changed.
13247         (mode_compile): Keep track of which mode bits the user has explicitly
13248         mentioned.
13249         (mode_adjust): New arg DIR, so that we implement the X op correctly.
13250         New arg PMODE_BITS, to keep track of which mode bits the user
13251         mentioned; it treats S_ISUID and S_ISGID speciall.
13252         All callers changed.
13253         * lib/modechange.h: Likewise.
13254
13255 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13256
13257         * MODULES.html.sh: Add mkancestors.
13258         * modules/mkancesdirs: New module.
13259         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
13260         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
13261         The chdir-safer and afs files are now orphans; I'll remove them
13262         unless someone speaks up.
13263         Add lib/dirchownmod.c, lib/dirchownmod.h.
13264         (Depends-on): Remove alloca, chown, save-cwd, dirname.
13265         Add lchown, mkancesdirs.
13266         (Maintainer): Add self.
13267
13268 2006-07-15  Karl Berry  <karl@gnu.org>
13269
13270         * gnulib-tool: help message wording/arrangement.
13271
13272 2006-07-14  Simon Josefsson  <jas@extundo.com>
13273
13274         * doc/gnulib.texi (Libtool and Windows): New section.
13275
13276 2006-07-12  Simon Josefsson  <jas@extundo.com>
13277
13278         * modules/gendocs (License): Fix license, approved by Karl.
13279
13280 2006-07-12  Eric Blake  <ebb9@byu.net>
13281
13282         * MODULES.html.sh: Add gendocs.
13283
13284 2006-07-11  Eric Blake  <ebb9@byu.net>
13285
13286         * modules/fdl: New module, to install doc/fdl.texi.
13287         * MODULES.html.sh: Add new section for documentation modules.
13288         * gnulib-tool: Avoid space-tab.
13289         (--doc-base): New option, to manage files from doc.
13290
13291 2006-07-11  Eric Blake  <ebb9@byu.net>
13292
13293         * m4/absolute-header.m4: Fix comments to match recent change.
13294
13295 2006-07-11  Eric Blake  <ebb9@byu.net>
13296
13297         * gnulib-tool: List --doc-base before --tests-base.
13298
13299 2006-07-11  Derek R. Price  <derek@ximbiot.com>
13300
13301         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
13302
13303 2006-07-11  Bruno Haible  <bruno@clisp.org>
13304
13305         * README: Mention where to put documentation.
13306
13307 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13308
13309         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
13310
13311 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
13312
13313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
13314         to stdint.m4.
13315
13316 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
13317
13318         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
13319         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
13320         "no/such/file/stdint.h" when there is no such file, so that
13321         the resulting C code can be parsed by dodgy compilers.
13322         Problems reported by Bob Proulx.
13323
13324 2006-07-10  Derek R. Price  <derek@ximbiot.com>
13325
13326         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
13327         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
13328         macros into the GNU _D_EXACT_NAMLEN.
13329         * lib/savedir.c:  Likewise.
13330         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
13331
13332 2006-07-10  Derek R. Price  <derek@ximbiot.com>
13333         and Paul Eggert  <eggert@cs.ucla.edu>
13334
13335         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
13336         * m4/savedir.m4:
13337         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
13338         macros into the GNU _D_EXACT_NAMLEN.
13339
13340 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13341
13342         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
13343         around the absolute name, to work around a problem with the HP-UX
13344         11.23 native C compiler, reported by Bob Proulx.
13345
13346 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13347
13348         * doc/maintain.texi, make-stds.texi: Sync from
13349         <http://savannah.gnu.org/projects/gnustandards>.
13350
13351 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13352
13353         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
13354
13355 2006-07-09  Jim Meyering  <jim@meyering.net>
13356
13357         * m4/glob.m4: Remove a doubled word in a comment.
13358
13359 2006-07-09  Jim Meyering  <jim@meyering.net>
13360
13361         * lib/argp-pv.c: Remove a doubled word in a comment.
13362         * lib/check-version.c (check_version): Likewise.
13363         * lib/javacomp.c (compile_java_class): Likewise.
13364
13365 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13366
13367         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
13368         for the benefit of people using Autoconf 2.60.  If you want to
13369         support older Autoconf versions you can copy m4/onceonly_2_57.m4
13370         (or m4/onceonly.m4, if pre-2.57) manually.
13371
13372 2006-07-08  Jim Meyering  <jim@meyering.net>
13373
13374         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
13375         comment.
13376         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
13377         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
13378         comment.
13379
13380 2006-07-08  Jim Meyering  <jim@meyering.net>
13381
13382         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
13383
13384 2006-07-07  Simon Josefsson  <jas@extundo.com>
13385
13386         * tests/test-crc.c: Change expected crc value, the test vector
13387         were probably computed using the old broken crc.c?
13388
13389 2006-07-06  Simon Josefsson  <jas@extundo.com>
13390
13391         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
13392         now the canonical place for the M4 file).
13393
13394         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
13395         from the sys_socket dependency now.
13396
13397         * modules/inet_pton (Files): Ditto.
13398
13399         * modules/inet_ntop (Files): Ditto.
13400
13401 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
13402
13403         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
13404         not gl_PREREQ_GETUSERSHELL.
13405
13406 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13407
13408         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
13409         with only one argument, for Autoconf 2.60.
13410         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
13411         expand to nothing, so add a shell command to avoid syntax error.
13412         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13413
13414 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13415
13416         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
13417
13418 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13419
13420         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
13421         no longer needed.  Check for isblank decl.
13422         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
13423         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
13424         of existence.
13425
13426 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13427
13428         * lib/getloadavg.c: Use __VMS, not VMS.
13429         * lib/getopt.c: Likewise.
13430         * lib/getpagesize.h: Likewise.
13431         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
13432         and probably does not work.
13433
13434 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13435
13436         * lib/.cppi-disable: Add wcwidth.
13437         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
13438         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
13439         (ISGRAPH): Remove.  All uses changed to isgraph.
13440         (FOLD) [!defined _LIBC]: Remove special case.
13441         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
13442         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
13443         HAVE_ISBLANK.
13444         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
13445         case.
13446
13447 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
13448
13449         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
13450         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
13451         brackets.  Other minor changes to suppress some compiler
13452         warnings.
13453
13454 2006-07-06  Derek R. Price  <derek@ximbiot.com>
13455         and Paul Eggert  <eggert@cs.ucla.edu>
13456
13457         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
13458         of invoking obsolescent AC_HEADER_DIRENT macro.
13459         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13460         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
13461         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13463         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
13464         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13465         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
13466         * m4/readdir.m4: Remove; no longer needed.
13467
13468 2006-07-06  Derek R. Price  <derek@ximbiot.com>
13469         and Paul Eggert  <eggert@cs.ucla.edu>
13470
13471         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
13472         Don't worry about this obsolete case any more.
13473         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
13474         directories.
13475         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
13476         worry about this obsolete case any more.
13477         * lib/fts.c: Likewise.
13478         * lib/getcwd.c: Likewise.
13479         * lib/glob.h: Likewise.
13480         * lib/savedir.c: Likewise.
13481
13482 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13483
13484         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
13485         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
13486         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
13487         needed.
13488         All uses removed.
13489         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13490         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
13491         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
13492         needed.
13493         * m4/getdate.m4 (gl_GETDATE): Likewise.
13494         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
13495         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
13496         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13497         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13498         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
13499         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
13500         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
13501         needed.
13502
13503 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13504
13505         * lib/memcasecmp.c: Include <limits.h>.
13506         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
13507         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
13508         Don't assume isdigit succeeds only on '0' through '9'.
13509
13510 2006-07-05  Eric Blake  <ebb9@byu.net>
13511
13512         * modules/getaddrinfo (Depends-on): Add snprintf.
13513
13514 2006-07-05  Eric Blake  <ebb9@byu.net>
13515
13516         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
13517         to avoid 'header present but could not be compiled' on cygwin.
13518
13519 2006-07-05  Eric Blake  <ebb9@byu.net>
13520
13521         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
13522         missing from netdb.h.
13523         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
13524
13525 2006-07-05  Derek R. Price  <derek@ximbiot.com>
13526
13527         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
13528         no longer needed.
13529         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
13530         * m4/getdate.m4 (gl_GETDATE): Likewise.
13531         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
13532         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
13533         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13534         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13535         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
13536
13537 2006-07-05  Derek R. Price  <derek@ximbiot.com>
13538
13539         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
13540         All uses of is_space replaced by isspace.
13541         * lib/exit.h: Don't talk about STDC_HEADERS.
13542         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
13543         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
13544         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
13545         replaced by isprint etc.
13546         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
13547         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
13548         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
13549         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
13550         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
13551         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
13552
13553 2006-07-05  Bruno Haible  <bruno@clisp.org>
13554
13555         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
13556         the function exists, before testing against AIX.
13557         Reported by Martin Lambers <marlam@marlam.de>.
13558
13559 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13560
13561         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
13562         From Mark D. Baushke.
13563
13564 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13565
13566         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
13567         to the absolute name, not just one, to bypass Sun C 5.8's
13568         "warning: #include of /usr/include/... may be non-portable".
13569
13570 2006-07-04  Eric Blake  <ebb9@byu.net>
13571
13572         * modules/dirname-tests: New test module.
13573         * tests/test-dirname.c: New file, replacing dirname.c
13574         TEST_DIRNAME section that was recently deleted.
13575
13576 2006-07-04  Bruno Haible  <bruno@clisp.org>
13577
13578         Assume ANSI C header files and <ctype.h> functions.
13579         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
13580         (mbsnwidth): Use isprint, iscntrl instead.
13581
13582 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13583
13584         Merge from coreutils.
13585         * MODULES.html.sh: Add xstrtold.
13586         * modules/xstrtold: New file.
13587         * modules/cycle-check (Files): Add lib/same-inode.h.
13588         * modules/dirname (Files): Add m4/double-slash-root.m4.
13589         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
13590         * modules/mkdir-p (Files): Add lib/same-inode.h.
13591         * modules/same (Files): Add lib/same-inode.h.
13592
13593 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         * m4/absolute-header.m4: Renamed from full-header-path.m4.
13596         This is to keep the terminology clean; POSIX talks about
13597         "absolute pathnames", not "full pathnames", but the GNU
13598         Coding Standards say to use "path" for something else;
13599         so use "absolute" to keep both sides happy.
13600         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
13601         Set gl_absolute_header, not gl_full_header_path.
13602         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
13603         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
13604         All uses changed.
13605
13606         Merge from coreutils.
13607
13608         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13609
13610         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
13611         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
13612         want to require the building of c-strtod.o.
13613         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
13614         needs -lm directly.
13615         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
13616
13617         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
13618
13619         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
13620         --as-needed option if available.  Problem reported by Albert Chin in
13621         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
13622         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
13623         cc merely issues a bunch of annoying warnings for --as-needed
13624         (this problem was reported by Bob Proulx).  Also, try linking with
13625         -lm to detect a bug in binutils 2.16 (this problem was reported
13626         by Ralf Wildenhues).
13627
13628         2006-06-18  Jim Meyering  <jim@meyering.net>
13629
13630         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
13631         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
13632         macro.
13633         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
13634         also check for glibc-2.4's abort-inducing bug.
13635
13636         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
13637         Low-probability clean-up should be to use rmdir to get rid of
13638         the just-created directory, not unlink.
13639
13640         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
13641         configure fail, and request a bug report to inform us about it.
13642         Add a comment that, barring reports to the contrary, in 2007 we'll
13643         assume ftruncate is universally available.
13644
13645         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
13646
13647         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
13648
13649         2006-03-12  Jim Meyering  <jim@meyering.net>
13650
13651         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
13652         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
13653         * m4/same.m4 (gl_SAME): Likewise.
13654         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
13655
13656         2006-03-11  Eric Blake  <ebb9@byu.net>
13657
13658         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
13659         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
13660         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
13661         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
13662
13663 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13664
13665         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
13666         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
13667         reported by Mark D. Baushke, one in
13668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
13669
13670         Merge from coreutils.
13671
13672         * lib/.cppi-disable: Add stdint_.h.
13673         * lib/.cvsignore: Add stdint.h.
13674
13675         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13676
13677         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
13678         both double and long double versions.
13679         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
13680         * lib/xstrtold.c: New file.
13681         * lib/xstrtod.h (xstrtold): New decl.
13682
13683         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13684
13685         * lib/filemode.c (setst): Remove.
13686         (strmode): Rewrite to avoid setst.  This makes the code shorter,
13687         (arguably) clearer, and the generated code is a bit smaller on my
13688         Debian GNU/Linux stable x86 host.
13689
13690         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
13691
13692         * lib/filemode.c: Include "filemode.h" first, to test the interface.
13693         Assume that filemode.h includes sys/types.h and sys/stat.h.
13694         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
13695         (ftypelet): Reorder to put common cases first, for efficiency.
13696         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
13697         to do 'M'.
13698         (strmode): Renamed from mode_string, and now stores 12 bytes instead
13699         of 10, for compatibility with FreeBSD.  All callers changed.
13700         (filemodestring): Now stores 12 bytes instead of 10, and sets file
13701         types that can't be deduced solely from st_mode.  First arg is now a
13702         const pointer.
13703         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
13704         (strmode): Renamed from mode_string.
13705         (filemodestring): New decl.
13706         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
13707         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
13708         needed.
13709         (S_ISPORT, S_ISWHT): New macros, if not already defined.
13710
13711         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13712
13713         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
13714         fsusage.h now does that.  Include fsusage.h first, to test interface.
13715         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
13716         at most one method (the old code could have generated decls that
13717         didn't conform to C89, not that this was ever exercised).
13718         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
13719
13720         2006-03-19  Jim Meyering  <jim@meyering.net>
13721
13722         Work even in a chroot where d_ino values for entries in "/"
13723         don't match the stat.st_ino values for the same names.
13724         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
13725         number, iterate through all entries again, using lstat instead.
13726         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
13727         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
13728
13729         * lib/getcwd.c (__getcwd): Clarify a comment.
13730         Use memcpy in place of a call to strcpy.
13731
13732         2006-03-12  Jim Meyering  <jim@meyering.net>
13733
13734         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
13735         matches that of the current directory (which we're about to chdir ".."
13736         out of), then save the dev-ino of the parent, instead.
13737
13738         * lib/same-inode.h (SAME_INODE): New file/macro.
13739         * lib/chdir-safer.c (SAME_INODE): Remove definition.
13740         Include "same-inode.h", instead.
13741         * lib/same.c: Likewise.
13742         * lib/cycle-check.h: Include "same-inode.h".
13743         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
13744         * lib/cycle-check.c (SAME_INODE): Remove definition.
13745         * lib/root-dev-ino.h: Include "same-inode.h".
13746
13747         2006-03-11  Eric Blake  <ebb9@byu.net>
13748
13749         * lib/same.c (same_name): s/base_name/last_component/
13750         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
13751         * lib/filenamecat.c (file_name_concat): Likewise.
13752
13753         2006-03-11  Eric Blake  <ebb9@byu.net>,
13754                     Paul Eggert  <eggert@cs.ucla.edu>
13755
13756         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
13757         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
13758         drive prefix.
13759         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
13760         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
13761         (last_component): New method.
13762         * lib/dirname.c (dir_len): Determine when drive letters need a
13763         subsequent slash.  Preserve // when it is special.
13764         (dir_name): Don't append dot when drive letter is absolute.
13765         [TEST_DIRNAME]: Move into a full-blown gnulib test.
13766         * lib/basename.c (base_name): New semantics - malloc the result.
13767         Preserve // when it is special.  Preserve relative files that look
13768         like drive letters.
13769         (base_len): Preserve // when it is special.
13770         (last_component): New method, similar to old base_name semantics.
13771         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
13772         base_name.  Strip redundant slashes from ///.
13773
13774 2006-07-03  Jim Meyering  <jim@meyering.net>
13775
13776         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
13777         macro is used before the first cycle_check call.
13778
13779 2006-07-03  Eric Blake  <ebb9@byu.net>
13780
13781         * modules/dirname (Depends-on): Add xstrndup.
13782
13783 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13784
13785         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
13786         test cases, so that config.log is a bit easier to follow.
13787
13788 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13789
13790         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
13791         both are 64 bits, since this seems to be the tradition, and this
13792         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
13793         we ever run into a host that prefers long long to long in this
13794         case, we'll need another configure-time test.  Problem reported by
13795         Jim Meyering.
13796
13797 2006-07-02  Eric Blake  <ebb9@byu.net>
13798
13799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
13800
13801 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13802
13803         * modules/inttypes (Depends-on): No longer depends on stdint.
13804         * modules/stdint (Description): Say more about assumptions.
13805         Say that the fast types might differ.  Say macros are used.
13806         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
13807         (Makefile.am): Revise list of substituted symbols to match
13808         new stdint.m4.
13809         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
13810         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
13811         * tests/test-stdint.c (verify_same_types)
13812         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
13813         the code conforms to C99/C89.
13814         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
13815         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
13816
13817 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13818
13819         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
13820         but fix a bug, by requiring at least 64 bits.
13821         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
13822         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
13823         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
13824         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
13825
13826         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
13827         changes.  Make 2.59 a prerequisite.  Check and substitute for
13828         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
13829         inttypes.h.  Do not use special include files; just use the
13830         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
13831         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
13832         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
13833         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
13834         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
13835         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
13836         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
13837         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
13838         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
13839         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
13840         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
13841         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
13842         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
13843         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
13844         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
13845         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
13846         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
13847         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
13848         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
13849         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
13850         WINT_MAX.  Check for C99 conformance more strictly, by detecting
13851         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
13852         not check for things that C99 does not require, e.g., int8_t.  If
13853         a test isn't needed unless <stdint.h> isn't working, and is
13854         unlikely to be needed for any other reason, then don't do it
13855         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
13856         size_t, since we assume C89 freestanding at least.  Do not check
13857         for sig_atomic_t, wchar_t, or wint_t, since the code now does
13858         the right thing even if the types are not defined.  Instead use:
13859         (gl_STDINT_TYPE_PROPERTIES): New macro.
13860         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
13861         testing whether <sys/types.h> clashes, as Autoconf does this for
13862         us now.  All uses removed.
13863         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
13864         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
13865         (gl_CHECK_TYPE_SAME):
13866         Remove; no longer needed.
13867         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
13868         exists, since we'll return 0 anyway in that case.
13869         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
13870
13871 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13872
13873         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
13874         possible collision with system files.
13875         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
13876         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
13877         WCHAR_MIN and WCHAR_MAX in this case.
13878         (<stddef.h>): Do not include; no longer needed.
13879         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
13880         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
13881         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
13882         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
13883         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
13884         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
13885         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
13886         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
13887         !defined(__c99))]: Include in this case too, since it's harmless
13888         now.
13889         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
13890         dangerous to do so.
13891         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
13892         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
13893         (_STDINT_MIN, _STDINT_MAX): New macros.
13894         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
13895         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
13896         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
13897         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
13898         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
13899         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
13900         macros, not typedefs; this simplifies things quite a bit.
13901         Use long int for all types narrower than int64_t.
13902         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
13903         Define in terms of long long int or int64_t or long int,
13904         not int64_t or int32_t.  This saves some compile-time testing.
13905         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
13906         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
13907         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
13908         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
13909         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
13910         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
13911         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
13912         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
13913         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
13914         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
13915         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13916         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13917         undef any previous version and define our own version, for
13918         simplicity and consistency with the new macros for types.
13919         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13920         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13921         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
13922         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
13923         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
13924         @WINT_T_SUFFIX@ to keep things simple here.
13925         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
13926         Simplify by assuming typical 8/16/32/64 host, since we're
13927         already doing that elsewhere anyway.
13928         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
13929         and assume long long int is 64 bits if available.  This
13930         speeds up 'configure'.
13931
13932 2006-07-01  Eric Blake  <ebb9@byu.net>
13933
13934         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
13935         Reported by Andreas Buening.
13936
13937 2006-07-01  Eric Blake  <ebb9@byu.net>
13938
13939         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
13940
13941 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
13942
13943         * lib/getaddrinfo.c: fixed typo
13944
13945 2006-06-29  Jim Meyering  <jim@meyering.net>
13946
13947         * modules/strftime (Maintainer): Add my name, since with the
13948         FPRINTFTIME changes strftime.c has forked from glibc.
13949
13950 2006-06-29  Eric Blake  <ebb9@byu.net>
13951
13952         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
13953
13954 2006-06-29  Eric Blake  <ebb9@byu.net>
13955
13956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
13957
13958 2006-06-29  Eric Blake  <ebb9@byu.net>
13959
13960         * lib/stat_.h: New file.
13961
13962 2006-06-29  Eric Blake  <ebb9@byu.net>
13963
13964         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
13965         unused static function.
13966
13967 2006-06-29  Eric Blake  <ebb9@byu.net>
13968
13969         * doc/functions.texi (Function Portability): Document missing lstat
13970         on mingw.
13971
13972 2006-06-29  Eric Blake  <ebb9@byu.net>
13973
13974         * MODULES.html.sh: Add sys_stat.
13975         * modules/sys_stat: New module.
13976         * modules/mkstemp (Depends-on): Add sys_stat.
13977
13978 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13979
13980         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
13981
13982 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13983
13984         * m4/c-bs-a.m4: Removed.
13985
13986 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13987
13988         * lib/strftime.c: Assume strftime() exists.
13989
13990 2006-06-29  Derek Price  <derek@ximbiot.com>
13991
13992         * modules/c-bs-a: Removed - \a is C89.
13993         * MODULES.html.sh: Remove c-bs-a.
13994
13995 2006-06-29  Bruno Haible  <bruno@clisp.org>
13996
13997         * modules/wcwidth (License): Change to LGPL.
13998
13999 2006-06-28  Simon Josefsson  <jas@extundo.com>
14000
14001         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
14002         on _WIN32.
14003
14004         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
14005         getnameinfo.
14006
14007 2006-06-28  Simon Josefsson  <jas@extundo.com>
14008
14009         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
14010
14011 2006-06-28  Simon Josefsson  <jas@extundo.com>
14012
14013         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
14014         functions there.  It will succeed on Windows XP, but on Windows
14015         2000 and (presumably) earlier, it will fail, and use the internal
14016         re-implementation.
14017         (use_win32_p): New function.
14018         (getaddrinfo): Use strtoul on servname, to support numeric ports.
14019         Support AI_NUMERICSERV to disable getservbyname.
14020         (getnameinfo): New function, only supports
14021         NI_NUMERICHOST|NI_NUMERICSERV for now.
14022
14023         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
14024         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
14025         getnameinfo.
14026
14027 2006-06-28  Eric Blake  <ebb9@byu.net>
14028
14029         * modules/wcwidth: New file.
14030         * modules/mbchar (Depends-on): Add wcwidth.
14031         * modules/mbswidth (Depends-on): Add wcwidth.
14032         * MODULES.html.sh: Add wcwidth.
14033
14034 2006-06-28  Eric Blake  <ebb9@byu.net>
14035
14036         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
14037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
14038
14039 2006-06-28  Eric Blake  <ebb9@byu.net>
14040
14041         * lib/xvasprintf.h: Fix comments.
14042
14043 2006-06-28  Eric Blake  <ebb9@byu.net>
14044
14045         * lib/mbchar.h (wcwidth): Include wcwidth.h.
14046         * lib/mbswidth.c (wcwidth): Move from here...
14047         * lib/wcwidth.h: ...to this new file.
14048
14049 2006-06-28  Derek R. Price  <derek@ximbiot.com>
14050
14051         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
14052
14053         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
14054         it's obsolete.
14055         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
14056
14057 2006-06-28  Derek R. Price  <derek@ximbiot.com>
14058
14059         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
14060         Autoconf 2.60 says this stuff was obsolete.
14061
14062 2006-06-28  Bruno Haible  <bruno@clisp.org>
14063
14064         * modules/wcwidth (Files): Add m4/wchar_t.m4.
14065
14066 2006-06-28  Bruno Haible  <bruno@clisp.org>
14067
14068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
14069         gt_TYPE_WCHAR_T.
14070
14071 2006-06-28  Bruno Haible  <bruno@clisp.org>
14072
14073         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
14074         declaration for wcwidth.
14075         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
14076
14077 2006-06-28  Bruno Haible  <bruno@clisp.org>
14078
14079         * lib/mkdtemp.c [MINGW]: Include <io.h>.
14080         (mkdir): Define using _mkdir.
14081
14082 2006-06-28  Bruno Haible  <bruno@clisp.org>
14083
14084         * lib/getaddrinfo.h: Fix POSIX URL.
14085         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
14086         _WIN32.
14087         (use_win32_p): Make static.
14088         (getaddrinfo): Reject service name if it is empty or does not consist
14089         solely of decimal digits, or if its value is > 65535.
14090         (getnameinfo): Remove useless casts.
14091
14092 2006-06-27  Simon Josefsson  <jas@extundo.com>
14093
14094         * modules/sys_select: New file, suggested by Bruno Haible, Paul
14095         Eggert and Martin Lambers.
14096
14097 2006-06-27  Simon Josefsson  <jas@extundo.com>
14098
14099         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
14100         Eggert and Martin Lambers.
14101
14102 2006-06-27  Bruno Haible  <bruno@clisp.org>
14103
14104         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
14105         result to 0, not to empty.
14106         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
14107
14108 2006-06-27  Bruno Haible  <bruno@clisp.org>
14109
14110         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
14111
14112 2006-06-26  Simon Josefsson  <jas@extundo.com>
14113
14114         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
14115         present.
14116
14117 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14118
14119         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
14120         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
14121         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
14122
14123 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
14124
14125         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
14126
14127 2006-06-26  Bruno Haible  <bruno@clisp.org>
14128
14129         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
14130
14131 2006-06-26  Bruno Haible  <bruno@clisp.org>
14132
14133         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
14134
14135 2006-06-26  Bruno Haible  <bruno@clisp.org>
14136
14137         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
14138         SGI C compiler in pre-C99 mode.
14139         Suggested by Mark D. Baushke and Larry Jones.
14140
14141 2006-06-26  Bruno Haible  <bruno@clisp.org>
14142
14143         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
14144         WCHAR_MAX.
14145         Reported by Mark D. Baushke and Larry Jones.
14146
14147 2006-06-26  Bruno Haible  <bruno@clisp.org>
14148
14149         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
14150         in pre-C99 mode.
14151         Suggested by Mark D. Baushke and Larry Jones.
14152
14153 2006-06-23  Simon Josefsson  <jas@extundo.com>
14154             Bruno Haible  <bruno@clisp.org>
14155
14156         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
14157         Emit mostlyclean-local rule.
14158         (func_emit_tests_Makefile_am): Likewise.
14159         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
14160
14161 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
14162
14163         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
14164
14165 2006-06-23  Bruno Haible  <bruno@clisp.org>
14166
14167         * tests/test-stdint.c: Update to match ISO C 99 Technical
14168         Corrigendum 1.
14169
14170 2006-06-23  Bruno Haible  <bruno@clisp.org>
14171
14172         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
14173
14174 2006-06-23  Bruno Haible  <bruno@clisp.org>
14175
14176         * lib/stdint_.h: Treat IRIX like OpenBSD.
14177
14178 2006-06-23  Bruno Haible  <bruno@clisp.org>
14179
14180         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
14181         ISO C 99 Technical Corrigendum 1.
14182
14183 2006-06-22  Simon Josefsson  <jas@extundo.com>
14184
14185         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
14186         MinGW.
14187
14188 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14189
14190         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
14191         needed.  Some compiler complained about some of them.  Problem reported
14192         by Larry Jones in
14193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
14194
14195 2006-06-21  Simon Josefsson  <jas@extundo.com>
14196
14197         * tests/test-getaddrinfo.c: New file.
14198
14199         * modules/getaddrinfo-tests: New file.
14200
14201         * MODULES.html.sh: Add inet_pton.
14202
14203         * modules/inet_pton: New file.
14204
14205 2006-06-21  Simon Josefsson  <jas@extundo.com>
14206
14207         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
14208         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
14209         of using the (limited) gnulib implementation on Windows XP.
14210
14211         * m4/inet_pton.m4: New file.
14212
14213 2006-06-21  Simon Josefsson  <jas@extundo.com>
14214
14215         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
14216         variable.
14217
14218         * lib/socket_.h: Don't define WINVER.
14219
14220         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
14221         slightly modified to work in gnulib.
14222
14223 2006-06-21  Simon Josefsson  <jas@extundo.com>
14224
14225         * doc/gnulib.texi (Windows sockets): Add.
14226
14227 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14228
14229         * lib/read-file.c (fread_file): Start with buffer allocation of
14230         0 bytes rather than 1 byte; this simplifies the code.
14231         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
14232         code to free buffer and save/restore errno.
14233         (internal_read_file): Remove unused local.
14234
14235 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14236
14237         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
14238         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
14239         Problem reported by Denis Excoffier in
14240         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
14241
14242 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14243
14244         * modules/sys_socket, modules/socklen: Include sys/types since
14245         FreeBSD 4.x's sys/socket.h needs it.
14246
14247 2006-06-19  Simon Josefsson  <jas@extundo.com>
14248
14249         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
14250
14251 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
14252
14253         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
14254
14255 2006-06-19  Bruno Haible  <bruno@clisp.org>
14256
14257         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
14258         and FULL_PATH_INTTYPES_H in angle brackets.
14259         Reported by Mark D. Baushke <mdb@gnu.org>.
14260
14261 2006-06-17  Eric Blake  <ebb9@byu.net>
14262
14263         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
14264         errno.
14265
14266 2006-06-17  Bruno Haible  <bruno@clisp.org>
14267
14268         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
14269         <sys/inttypes.h>.
14270
14271 2006-06-17  Bruno Haible  <bruno@clisp.org>
14272
14273         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
14274         whether errno is declared. Assume <errno.h> declares errno.
14275
14276 2006-06-17  Bruno Haible  <bruno@clisp.org>
14277
14278         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
14279
14280 2006-06-17  Bruno Haible  <bruno@clisp.org>
14281
14282         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
14283         problem on Solaris 2.5.1.
14284
14285 2006-06-16  Eric Blake  <ebb9@byu.net>
14286
14287         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
14288         * lib/unicodeio.c [!defined errno]: Likewise.
14289         * lib/strtol.c [!defined errno]: Likewise.
14290         * lib/strtod.c [!defined errno]: Likewise.
14291
14292 2006-06-15  Eric Blake  <ebb9@byu.net>
14293
14294         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
14295
14296 2006-06-15  Eric Blake  <ebb9@byu.net>
14297
14298         * config/srclist.txt (ssize_t.m4): Lose sync.
14299
14300 2006-06-15  Bruno Haible  <bruno@clisp.org>
14301
14302         * modules/stdint (Files): Include m4/full-header-path.m4,
14303         m4/size_max.m4, m4/wchar_t.m4.
14304         (Makefile.am): Many more substitutions.
14305         * modules/stdint-tests: New file.
14306         * tests/test-stdint.c: New file.
14307
14308 2006-06-15  Bruno Haible  <bruno@clisp.org>
14309
14310         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
14311         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
14312         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
14313         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
14314         gl_CHECK_TYPE_SAME): New macros.
14315
14316 2006-06-15  Bruno Haible  <bruno@clisp.org>
14317
14318         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
14319
14320 2006-06-15  Bruno Haible  <bruno@clisp.org>
14321
14322         * lib/stdint_.h: Rewritten to be fully auto-configured.
14323         Fixes bug on HP-UX/IA64.
14324
14325 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14326
14327         * lib/getdate.y (__attribute__): Don't define if already defined.
14328         Problem reported by Larry Jones.
14329         * lib/utimens.c (__attribute__): Likewise.
14330
14331 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14332
14333         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
14334         reported by Andreas Schwab.
14335
14336 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14337             Bruno Haible  <bruno@clisp.org>
14338
14339         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
14340         check for the declaration of strnlen and a run test that exposes the
14341         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
14342         rpl_strndup.
14343
14344 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14345             Bruno Haible  <bruno@clisp.org>
14346
14347         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
14348
14349 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14350
14351         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
14352         compile test, for Tru64 4.0D.
14353
14354 2006-05-28  Karl Berry  <karl@gnu.org>
14355
14356         * config/srclist.txt (printf-args.c): lose sync.
14357
14358 2006-05-26  Martin Lambers  <marlam@marlam.de>
14359
14360         * lib/getpass.c: Updates the test for the native W32 API, and adds
14361         missing includes, thus fixing compilation warnings.
14362
14363 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14364
14365         * lib/exclude.c (exclude_fnmatch): New function.
14366         (excluded_file_name): Call exclude_fnmatch.
14367         * lib/exclude.h (excluded_file_name): New prototype
14368
14369 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14370
14371         * lib/tempname.c (small_open, large_open): New macros.
14372         (__open, __open64) [!_LIBC]: Remove.
14373         (__gen_tempname): Use small_open and large_open instead of __open
14374         and __open64.  This fixes a portability bug on HP-UX 11.11i
14375         reported by Simon Wing-Tang in
14376         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
14377
14378 2006-05-24  Bruno Haible  <bruno@clisp.org>
14379
14380         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
14381         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
14382         Reported by Thorsten Maerz <torte@netztorte.de> via
14383         Aaron Stone <aaron@serendipity.cx>.
14384
14385 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14386
14387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
14388         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
14389         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
14390         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
14391         not really conditional on the cache.
14392         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
14393
14394 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14395
14396         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
14397         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
14398         (my_usleep): Don't mishandle maximum value.
14399
14400 2006-05-19  Jim Meyering  <jim@meyering.net>
14401
14402         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
14403
14404 2006-05-17  Bruno Haible  <bruno@clisp.org>
14405
14406         Cygwin portability.
14407         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
14408
14409 2006-05-17  Bruno Haible  <bruno@clisp.org>
14410
14411         * lib/stdint_.h: Fix recognition of Cygwin.
14412
14413 2006-05-15  Bruno Haible  <bruno@clisp.org>
14414
14415         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
14416         on libtool patch by Ralf Wildenhues.
14417
14418 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14419
14420         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
14421         test for C99 conformance; (bool) 0.5 is an integer constant
14422         expression, but (bool) -0.5 is not.  Problem reported by Fedor
14423         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
14424
14425 2006-05-11  Simon Josefsson  <jas@extundo.com>
14426
14427         * m4/xvasprintf.m4: Fix obvious typo.
14428
14429 2006-05-11  Jim Meyering  <jim@meyering.net>
14430
14431         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
14432         James Lemley.
14433
14434 2006-05-10  Simon Josefsson  <jas@extundo.com>
14435
14436         * lib/md4.c: Typo fix, update copyright years.
14437         (K1, K2): Don't use L because it turn computations into 64-bit on
14438         64-bit platforms.
14439
14440 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14441
14442         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
14443         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
14444         unwanted sign propagation, e.g., on hosts with 64-bit int.
14445         There still are some problems with reeelly weird theoretical hosts
14446         (e.g., 33-bit int) but it's not worth worrying about now.
14447         * lib/sha1.c (rol): Likewise.
14448         (K1, K2, K3, K4): Remove unnecessary L suffix.
14449
14450 2006-05-10  Bruno Haible  <bruno@clisp.org>
14451
14452         * lib/des.c: Cast to avoid warnings.
14453
14454 2006-05-09  Bruno Haible  <bruno@clisp.org>
14455
14456         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
14457         (Depends-on): Depend also on xsize, stdarg.
14458         (configure.ac): Add gl_XVASPRINTF.
14459
14460 2006-05-09  Bruno Haible  <bruno@clisp.org>
14461
14462         * m4/xvasprintf.m4: New file.
14463
14464 2006-05-09  Bruno Haible  <bruno@clisp.org>
14465
14466         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
14467         (EOVERFLOW): Define fallback value.
14468         (xstrcat): New function.
14469         (xvasprintf): Recognize the special case of a string concatenation.
14470
14471 2006-05-08  Eric Blake  <ebb9@byu.net>
14472
14473         * gnulib-tool (func_version): Base copyright year on CVS date.
14474         (func_emit_copyright_notice): New function.
14475         (func_emit_lib_Makefile_am): Use it.
14476         (func_emit_tests_Makefile_am): Likewise.
14477         (func_import): Likewise.
14478
14479 2006-05-08  Bruno Haible  <bruno@clisp.org>
14480
14481         * modules/stdarg: New file.
14482         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
14483
14484 2006-05-08  Bruno Haible  <bruno@clisp.org>
14485
14486         * m4/stdarg.m4: New file, from GNU gettext.
14487
14488 2006-05-08  Bruno Haible  <bruno@clisp.org>
14489
14490         * config/srclist.txt (build-aux/config.rpath): different from latest
14491         release.
14492
14493 2006-05-08  Bruno Haible  <bruno@clisp.org>
14494
14495         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
14496
14497 2006-05-05  Jim Meyering  <jim@meyering.net>
14498
14499         * m4/warning.m4: New file, derived from bison's file by the same name.
14500
14501 2006-05-03  Bruno Haible  <bruno@clisp.org>
14502
14503         * lib/stdint_.h: Shorter URL.
14504         * lib/inttypes.h: Likewise.
14505
14506 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14507
14508         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
14509
14510 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14511
14512         * lib/verify.h: Document the internals better.  Most of this change
14513         was written by Bruno Haible.
14514
14515 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14516
14517         * doc/verify.texi: New file, partly based on a proposal by
14518         Bruno Haible.
14519
14520 2006-05-02  Bruno Haible  <bruno@clisp.org>
14521
14522         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
14523         test from here...
14524         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
14525
14526 2006-04-29  Bruno Haible  <bruno@clisp.org>
14527
14528         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
14529         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
14530
14531 2006-04-29  Bruno Haible  <bruno@clisp.org>
14532
14533         * gnulib-tool: Make --update option actually work.
14534
14535 2006-04-29  Bruno Haible  <bruno@clisp.org>
14536
14537         * doc/gcd.texi: New file.
14538         * doc/gnulib.texi: Include it.
14539
14540 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14541
14542         * lib/getdate.y (get_date): When adding relative date, start with the
14543         initial time, not with the result of the first mktime call.
14544
14545 2006-04-25  Bruno Haible  <bruno@clisp.org>
14546
14547         * gnulib-tool (func_import): Output the include directives in three
14548         blocks, sorted separately.
14549         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14550
14551 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14552
14553         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
14554         to define main with arguments, for C++.  Reported by Eric Blake.
14555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14556         Prefer 'int main ()' to 'int main (void)', for C++.
14557         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14558         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
14559         for 'main', for C99 and C++.
14560
14561 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14562
14563         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
14564         Don't assume that exit status -1 is valid.
14565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14566         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14567         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14568         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
14569         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
14570         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
14571         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
14572         functions can be used without declaring them, or that you can
14573         exit with status -1.
14574         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14575
14576 2006-04-24  Karl Berry  <karl@gnu.org>
14577
14578         * config/srclist.txt (longdouble.m4): sync lost.
14579
14580 2006-04-24  Eric Blake  <ebb9@byu.net>
14581
14582         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
14583
14584 2006-04-24  Bruno Haible  <bruno@clisp.org>
14585
14586         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
14587         poll() implementation in AIX.
14588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14589
14590 2006-04-24  Bruno Haible  <bruno@clisp.org>
14591
14592         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
14593         assigned exactly once.
14594
14595 2006-04-23  Claudio Fontana  <claudio@gnu.org>
14596             Bruno Haible  <bruno@clisp.org>
14597
14598         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
14599         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
14600         for AM_CPPFLAGS.
14601
14602 2006-04-23  Bruno Haible  <bruno@clisp.org>
14603
14604         * modules/copy-file: Depend on unistd.
14605         * modules/execute: Likewise.
14606         * modules/fatal-signal: Likewise.
14607         * modules/findprog: Likewise.
14608         * modules/mkdtemp : Likewise.
14609         * modules/pipe: Likewise.
14610         * modules/wait-process: Likewise.
14611
14612 2006-04-23  Bruno Haible  <bruno@clisp.org>
14613
14614         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
14615         condition was already detected.
14616         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14617
14618 2006-04-23  Bruno Haible  <bruno@clisp.org>
14619
14620         * lib/copy-file.c: Include <unistd.h> unconditionally.
14621         * lib/execute.c: Likewise.
14622         * lib/fatal-signal.c: Likewise.
14623         * lib/findprog.c: Likewise.
14624         * lib/mkdtemp.c: Likewise.
14625         * lib/pipe.h: Likewise.
14626         * lib/pipe.c: Likewise.
14627         * lib/wait-process.h: Likewise.
14628
14629 2006-04-23  Bruno Haible  <bruno@clisp.org>
14630
14631         * gnulib-tool (func_usage): Fix --import description. Document
14632         --update.
14633         (func_import): Create temporary file in a temporary directory, if
14634         --dry-run is specified. Silence errors from 'grep' when there are no
14635         m4 files in $m4dir.
14636         (func_create_testdir): Silence errors from 'grep' when there are no
14637         m4 files in $m4dir.
14638         Reported by Karl Berry <karl@freefriends.org>.
14639
14640 2006-04-20  Bruno Haible  <bruno@clisp.org>
14641
14642         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
14643         one argument, so that the code will be portable to Autoconf 2.60.
14644         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
14645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14646         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
14647
14648 2006-04-19  Derek Price  <derek@ximbiot.com>
14649             Eric Blake  <ebb9@byu.net>
14650
14651         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
14652         rather than "/full/path.h".  Update comment to match.  Shorten &
14653         generalize m4_translit call via AS_TR_CPP.
14654
14655 2006-04-19  Derek Price  <derek@ximbiot.com>
14656             Eric Blake  <ebb9@byu.net>
14657
14658         * lib/inttypes.h: Correct grammar in comment.
14659
14660 2006-04-18  Derek Price  <derek@ximbiot.com>
14661             Paul Eggert  <eggert@cs.ucla.edu>
14662
14663         * modules/inttypes: New file.
14664         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
14665
14666 2006-04-18  Derek Price  <derek@ximbiot.com>
14667             Paul Eggert  <eggert@cs.ucla.edu>
14668
14669         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
14670         New files.
14671
14672 2006-04-18  Derek Price  <derek@ximbiot.com>
14673             Paul Eggert  <eggert@cs.ucla.edu>
14674
14675         * lib/inttypes.h: New file.
14676         * lib/strtoimax.c: Assume <inttypes.h>.
14677
14678 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
14679
14680         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
14681         isn't mounted.  Problem reported by Kir Kolyshkin.
14682
14683 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14684
14685         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
14686         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
14687         Derek R. Price.
14688         * lib/regex.h (RE_DUP_MAX): Update comment to match current
14689         implementation.
14690
14691 2006-04-12  Eric Blake  <ebb9@byu.net>
14692
14693         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
14694         is now done automatically by the corresponding Autoconf macro.
14695
14696 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
14697
14698         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
14699         time_r.h.
14700
14701 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14702
14703         Merge regex changes from libc, removing some of our
14704         POSIX-conformance changes that were rejected and redoing them in a
14705         less-intrusive way.
14706
14707         * lib/regcomp.c (re_compile_internal, init_dfa):
14708         Length arg is now size_t, not Idx.  All uses changed.
14709         (peek_token): Forward decl now says internal_function.
14710         (__re_error_msgid, __re_error_msgid_idx):
14711         Now static rather than extern with attribute_hidden.
14712         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
14713         For some reason libc prefers K&R style defns for external functions.
14714         (regerror) [!defined _LIBC]: Likewise.
14715         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
14716         (seek_collating_symbol_entry, lookup_collation_sequence_value):
14717         (build_range_exp, build_collating_symbol):
14718         Use K&R-style defn.
14719         (re_compile_fastmap): Use '\0' to memset, not 0.
14720         (utf8_sb_map): Make the calculations more obvious.
14721         (init_dfa, parse_bracket_exp, build_charclass_op):
14722         Call calloc and cast result, as glibc does.
14723         (init_word_char, fetch_token, peek_token, peek_token_bracket):
14724         (build_range_exp, build_collating_symbol):
14725         Now internal functions.
14726
14727         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
14728
14729         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
14730         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
14731         Don't depend on VMS; depend on __VMS instead, for POSIX
14732         namespace cleanness.
14733         (regoff_t): Define to ssize_t, not long int.
14734
14735         Remove the REG_ macros named below.  Instead, make the old names
14736         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
14737         __USE_GNU_REGEX.
14738         (REG_BACKSLASH_ESCAPE_IN_LISTS):
14739         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
14740         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
14741         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
14742         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
14743         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
14744         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
14745         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
14746         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
14747         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
14748         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
14749         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
14750         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
14751         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
14752         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
14753         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
14754         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
14755         (REG_NREGS):
14756         Remove.  All uses replaced by the old RE_* names.
14757         (RE_BACKSLASH_ESCAPE_IN_LISTS):
14758         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
14759         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
14760         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
14761         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
14762         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
14763         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
14764         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
14765         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
14766         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
14767         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
14768         Don't bother having these macros be independent of each others'
14769         values, since they no longer exist in the POSIX name space.
14770
14771         Rename the following member names back to their old names,
14772         unless !__USE_GNU_REGEX.  All uses changed back.
14773         (buffer): Renamed from re_buffer.
14774         (allocated): Renamed from re_allocated.
14775         (used): Renamed from re_used.
14776         (syntax): Renamed from re_syntax.
14777         (fastmap): Renamed from re_fastmap.
14778         (translate): Renamed from re_translate.
14779         (can_be_null): Renamed from re_can_be_null.
14780         (regs_allocated): Renamed from re_regs_allocated.
14781         (fastmap_accurate): Renamed from re_fastmap_accurate.
14782         (no_sub): Renamed from re_no_sub.
14783         (not_bol): Renamed from re_not_bol.
14784         (not_eol): Renamed from re_not_eol.
14785         (newline_anchor): Renamed from re_newline_anchor.
14786         (num_regs): Renamed from rm_num_regs.
14787         (start): Renamed from rm_start.
14788         (end): Renamed from rm_end.
14789
14790         (free_state): Move up a bit.
14791
14792         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
14793         #define to be empty.
14794         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
14795         when that is what is intended.
14796         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
14797         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
14798         (MAX): New macro.
14799         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
14800         All uses changed back to re_malloc, etc.  It's now the caller's
14801         responsibility to check for overflow; all callers changed.
14802         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
14803         (re_x2nrealloc): Remove.
14804         (free_state): Remove decl.
14805
14806         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
14807         (re_set_registers, re_exec):
14808         Use K&R-style defn.
14809
14810         2006-01-31  Roland McGrath  <roland@redhat.com>
14811
14812         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
14813         Reported by Mike Frysinger <vapier@gentoo.org>.
14814
14815         2006-01-15  Andreas Jaeger  <aj@suse.de>
14816
14817         [BZ #1950]
14818         * lib/regex_internal.c (re_string_reconstruct): Adjust for
14819         build_wcs_upper_buffer change.
14820         (build_wcs_upper_buffer): Change return type.
14821
14822         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
14823
14824         * lib/regex_internal.h: Include <stdint.h> if available.
14825
14826         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
14827
14828         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
14829
14830         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
14831
14832         * lib/regcomp.c: Adjust for changed secondary hash function.
14833
14834         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
14835
14836         * lib/regex.h: Pretty printing.
14837         Clean up namespace a bit.
14838
14839         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
14840
14841         * lib/regexec.c (update_cur_sifted_state, check_arrival,
14842         check_arrival_add_next_nodes): Avoid using uninitialized variable.
14843
14844         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
14845                     Ulrich Drepper  <drepper@redhat.com>
14846
14847         [BZ #1302]
14848         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
14849         changed.
14850         (bitset_word_t): Renamed from bitset_word.  All uses changed.
14851
14852         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
14853
14854         [BZ #281]
14855         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
14856         * lib/regcomp.c: Remove unnecessary uses of
14857         unsigned RE_TRANSLATE_TYPE.
14858         * lib/regex_internal.h: Likewise.
14859         * lib/regex_internal.c: Likewise.
14860         * lib/regexec.c: Likewise.
14861         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
14862
14863         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
14864
14865         * lib/regexec.c (find_recover_state): Remove unnecessary
14866         initialization.
14867         (transit_state_bkref): Make DFA a const pointer.
14868         (get_subexp): Likewise.
14869         (check_arrival): Likewise.
14870         (update_cur_sifted_state): Likewise.
14871         (re_search_internal): Likewise.
14872         (prune_impossible_nodes): Likewise.
14873         (acquire_init_state_context): Likewise.
14874         (proceed_next_node): Likewise.
14875         (set_regs): Likewise.
14876         (free_fail_stack_return): Likewise.
14877         (check_arrival_expand_ecl): Mark DFA parameter as const.
14878         (check_arrival_expand_ecl_sub): Likewise.
14879         (check_subexp_limits): Likewise.
14880         (sub_epsilon_src_nodes):  Likewise.
14881         (add_epsilon_src_nodes):  Likewise.
14882         (merge_state_array): Likewise.
14883         (update_regs): Likewise.
14884         (build_trtable): Likewise.
14885         (sift_states_backward): Mark MCTX parameter as const.
14886         (build_sifted_states): Likewise.
14887         (update_cur_sifted_state): Likewise.
14888         (sift_states_mkref): Likewise.
14889         (check_arrival_expand_ecl): Mark eclosure as const.
14890         (check_dst_limits_calc_pos_1): Likewise.
14891         * lib/regex_internal.h (re_match_context_t): Make dfa a const
14892         pointer.
14893
14894         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
14895
14896         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
14897         (transit_state_sb): Likewise.
14898         (transit_state_mb): Likewise.
14899         (sift_states_iter_mb): Likewise.
14900         (check_arrival_add_next_nodes): Likewise.
14901         (check_node_accept_bytes): Change first parameter to pointer-to-const.
14902         [_LIBC] (re_search_2_stub): Use mempcpy.
14903
14904         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
14905         mbrtowc for very simple UTF-8 case.
14906
14907         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
14908         a pointer-to-const.
14909         (re_acquire_state_context): Likewise.
14910         * lib/regex_internal.h: Adjust prototypes.
14911
14912         * lib/regex.c: Prevent using C++ compilers.
14913
14914         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
14915         (re_acquire_state_context): Likewise.
14916
14917 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14918
14919         * modules/regex (Depends-on): Add ssize_t.
14920
14921 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14922
14923         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
14924         translation table.
14925
14926 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14927
14928         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
14929
14930 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
14931             Bruno Haible  <bruno@clisp.org>
14932
14933         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
14934         <sys/types.h> and <inttypes.h>.
14935
14936 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14937
14938         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
14939         `__error_t_defined', so argp.h will not typedef the former.
14940
14941 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14942
14943         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
14944         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
14945         glibc names.  Even if glibc is changed to conform to POSIX, the
14946         traditional names will be available anyway, since regex depends on
14947         the extensions module.  Also, fix a longstanding typo in the
14948         implementation of Spencer ERE test #75 from grep 2.3.  Problems
14949         reported by Emanuele Giaquinta.  Also, change sense of cached
14950         variable, so that the message makes sense.
14951
14952 2006-03-24  Simon Josefsson  <jas@extundo.com>
14953
14954         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
14955         including some doc fixes.
14956         (base64_encode_alloc): Fix +1 bug on allocation failures.
14957
14958 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14959
14960         * lib/base64.c (base64_encode): Do not read past end of array with
14961         unsanitized input on systems with CHAR_BIT > 8.
14962
14963 2006-03-24  Eric Blake  <ebb9@byu.net>
14964
14965         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
14966
14967 2006-03-22  Karl Berry  <karl@gnu.org>
14968
14969         * config/srclist.txt (*setenv.[ch]): get from coreutils.
14970         * config/srclistvars.sh (COREUTILS): new var.
14971
14972 2006-03-17  Jim Meyering  <jim@meyering.net>
14973
14974         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
14975         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
14976
14977 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
14978
14979         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
14980         no longer needs it.  Instead, check that regoff_t is as least
14981         as wide as ptrdiff_t.
14982
14983         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
14984         so that our regex.h stays compatible with the installed regex.
14985         This is helpful for installers who configure --without-included-regex.
14986         Problem reported by Emanuele Giaquinta.
14987
14988 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
14989
14990         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
14991         Typedef to long int, not to off_, as POSIX will likely change
14992         in that direction.
14993
14994 2006-03-15  Eric Blake  <ebb9@byu.net>
14995
14996         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
14997
14998 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
14999
15000         * lib/argp-help.c (validate_uparams): Fix typo
15001         * lib/argp-parse.c (argp_default_options): Consistently begin help
15002         messages with a lowercase letter.
15003
15004 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15005
15006         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
15007         overrun buffers and shouldn't be used (much as gets shouldn't be
15008         used).
15009         * lib/time_r.c (asctime_r, ctime_r): Likewise.
15010
15011 2006-03-08  Simon Josefsson  <jas@extundo.com>
15012
15013         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
15014         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15015
15016 2006-03-08  Simon Josefsson  <jas@extundo.com>
15017
15018         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
15019         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15020
15021 2006-03-08  Simon Josefsson  <jas@extundo.com>
15022
15023         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
15024         signal that configure disabled the device.
15025
15026 2006-03-08  Simon Josefsson  <jas@extundo.com>
15027
15028         * build-aux/maint.mk: Fix refresh-po, to handle no translated
15029         languages.
15030
15031 2006-03-07  Simon Josefsson  <jas@extundo.com>
15032
15033         * modules/getopt (Depends-on): Add unistd.
15034
15035         * modules/unistd: New file.
15036
15037 2006-03-07  Simon Josefsson  <jas@extundo.com>
15038
15039         * modules/gc-random: New file.
15040
15041 2006-03-07  Simon Josefsson  <jas@extundo.com>
15042
15043         * m4/unistd_h.m4: New file.
15044
15045 2006-03-07  Simon Josefsson  <jas@extundo.com>
15046
15047         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
15048         test to be side-effect free by storing the result in the cache
15049         variable gl_cv_lib_readline, and moving the assignment of
15050         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
15051         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15052
15053 2006-03-07  Simon Josefsson  <jas@extundo.com>
15054
15055         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
15056         error on missing devices (the functions will return an error).
15057
15058         * m4/gc.m4: Move random stuff to gc-random.m4
15059
15060 2006-03-07  Simon Josefsson  <jas@extundo.com>
15061
15062         * lib/unistd_.h: New file.
15063
15064 2006-03-07  Simon Josefsson  <jas@extundo.com>
15065
15066         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
15067
15068 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15069
15070         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
15071         Problem reported by Juan Manuel Guerrero.
15072
15073 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15074
15075         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
15076         the unistd module.
15077         * lib/getlogin_r.c: Likewise.
15078         * lib/getlogin_r.h: Likewise.
15079         * lib/glob.c: Likewise.
15080         * lib/pagealign_alloc.c: Likewise.
15081         * lib/unistd_.h: Remove; no longer needed.
15082
15083 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15084
15085         * MODULES.html.sh (Support for systems lacking POSIX:2001):
15086         Add unistd.
15087         * modules/c-stack (Depends-on): Add unistd.
15088         * modules/getlogin_r: Likewise.
15089         * modules/glob: Likewise.
15090         * modules/pagealign_alloc: Likewise.
15091         * modules/unistd (Files): Remove lib/unistd_.h.
15092         (EXTRA_DIST): Remove.
15093         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
15094         need unistd_.h.
15095         (MOSTLYCLEANFILES): Remove unistd.h-t.
15096
15097 2006-03-03  Simon Josefsson  <jas@extundo.com>
15098
15099         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
15100
15101 2006-03-03  Simon Josefsson  <jas@extundo.com>
15102
15103         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
15104         libidn and bison.
15105
15106 2006-03-03  Simon Josefsson  <jas@extundo.com>
15107
15108         * build-aux/maint.mk: Add indent target.
15109
15110 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
15111
15112         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
15113         our replacement poll.h in any case, to avoid a differing
15114         declaration from a system header.  Seen on AIX.
15115
15116 2006-03-01  Simon Josefsson  <jas@extundo.com>
15117
15118         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
15119         <kasal@ucw.cz>.
15120
15121 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15122
15123         * modules/gettime (Depends-on): Add extensions module.
15124         * modules/nanosleep (Depends-on): Likewise.
15125         * modules/settime (Depends-on): Likewise.
15126
15127 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15128
15129         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
15130         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
15131         pedantically.
15132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15133         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
15134
15135         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
15136         not "==".  Reported by Ralf Wildenhues.
15137
15138 2006-03-01  Karl Berry  <karl@gnu.org>
15139
15140         * doc/Copyright/request-*: new files, synced from gnuorg.
15141
15142 2006-03-01  Karl Berry  <karl@gnu.org>
15143
15144         * config/srclist.txt (Copyright/*): new entries.
15145
15146 2006-02-28  Simon Josefsson  <jas@extundo.com>
15147
15148         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
15149
15150 2006-02-27  Simon Josefsson  <jas@extundo.com>
15151
15152         * lib/base64.h: Indent #define's.  From Jim Meyering
15153         <jim@meyering.net>.
15154
15155 2006-02-27  Jim Meyering  <jim@meyering.net>
15156
15157         Revert the change of 2006-02-24, so these files can continue
15158         to be sync'd from gettext.
15159         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
15160         of `config.h'.
15161
15162 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
15163
15164         * modules/intprops: New file.
15165         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15166         Add intprops.
15167         * modules/getloadavg (Files): Remove lib/intprops.h.
15168         (Depends-on): Add intprops.
15169         * modules/human: Likewise.
15170         * modules/inttostr: Likewise.
15171         * modules/openat: Likewise.
15172         * modules/sig2str: Likewise.
15173         * modules/userspec: Likewise.
15174         * modules/utimecmp: Likewise.
15175         * modules/xnanosleep: Likewise.
15176         * modules/xstrtol: Likewise.
15177
15178 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
15179
15180         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
15181         * modules/lock-tests (TESTS): Use $(EXEEXT).
15182         * modules/tls-tests: Likewise.
15183         * modules/argp-tests: Likewise.
15184         (check_PROGRAMS): New var, replacing...
15185         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
15186
15187 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15188
15189         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
15190         `config.h'.
15191
15192 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15193
15194         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
15195
15196 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15197
15198         Sync from coreutils.
15199         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
15200         gl_CHDIR_SAFER.
15201
15202 2006-02-22  Jim Meyering  <jim@meyering.net>
15203
15204         Sync from coreutils.
15205         * m4/chdir-safer.m4: New file.
15206
15207 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15208
15209         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
15210         AT_FDCWD exceeds INT_MAX.
15211         * lib/openat.h (AT_FDCWD): Likewise.
15212
15213 2006-02-17  Eric Blake  <address@hidden>
15214
15215         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
15216
15217 2006-02-16  Simon Josefsson  <jas@extundo.com>
15218
15219         * modules/getaddrinfo (Depends-on): Add sys_socket.
15220
15221 2006-02-15  Simon Josefsson  <jas@extundo.com>
15222
15223         * build-aux/maint.mk: Add dsyntax-check rule.
15224
15225 2006-02-15  Eric Blake  <ebb9@byu.net>
15226
15227         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
15228         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
15229         'present but cannot compile' warnings on cygwin.
15230         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
15231         use ws2tcpip.h if sys/socket.h works.
15232         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
15233         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
15234
15235 2006-02-14  Simon Josefsson  <jas@extundo.com>
15236
15237         * modules/maintainer-makefile (Files): Rename.
15238
15239         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
15240         and (the local) Makefile.cfg to maint-cfg.mk.
15241
15242         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
15243         to the latter.
15244
15245         * modules/maintainer-makefile: New module.
15246
15247         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
15248         severaly stripped to make it possible to build it up from scratch
15249         with reliable tests.
15250
15251         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
15252         fixes to permit overriding the default actions when configure and
15253         makefile are not available.
15254
15255 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15256
15257         Sync from coreutils.
15258         * modules/lstat (Depends-on): Don't depend on xalloc.
15259         (License): Change from GPL to LGPL, since this is now simply a
15260         replacement for a libc function.
15261
15262 2006-02-14  Jim Meyering  <jim@meyering.net>
15263
15264         Sync from coreutils.
15265
15266         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
15267         failure on deficient systems, and simplify gnulib lgpl dependencies.
15268         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
15269         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
15270
15271         * lib/xalloc-die.c: Remove unused definition of N_.
15272
15273 2006-02-14  Jim Meyering  <jim@meyering.net>
15274
15275         Sync from coreutils.
15276         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
15277         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
15278         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
15279         double-quote uses of that variable, to accommodate the rare case in
15280         which getmntent is available in none of the libraries checked.  This
15281         happens at least on FreeBSD 5.0.
15282
15283 2006-02-13  Simon Josefsson  <jas@extundo.com>
15284
15285         * gnulib-tool (Usage): Fix --import, from
15286         karl@freefriends.org (Karl Berry).
15287
15288 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
15289
15290         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
15291
15292 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
15293
15294         * lib/argp-namefrob.h: Restore changes accidentally lost during the
15295         "autoupdate" on 2005-12-12.
15296
15297 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15298
15299         * modules/closeout (Depends-on): Remove atexit.
15300
15301 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15302
15303         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
15304         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
15305
15306 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15307
15308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
15309         __EXTENSIONS__ if this causes compilation to fail.  Problem
15310         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
15311         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
15312
15313 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
15314
15315         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
15316         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
15317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
15318         All uses changed.
15319
15320 2006-01-26  Simon Josefsson  <jas@extundo.com>
15321
15322         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
15323         prototype is visible on mingw32.
15324
15325         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
15326         for mingw32.
15327
15328         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
15329         mingw32).
15330
15331 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15332
15333         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
15334         attempt to open for write; this always fails, at least on POSIX
15335         hosts.  This reinstates the 2006-01-09 change, which was
15336         inadvertently removed.
15337
15338 2006-01-26  Bruno Haible  <bruno@clisp.org>
15339
15340         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
15341         Reported by Paul Eggert.
15342
15343 2006-01-26  Bruno Haible  <bruno@clisp.org>
15344             Paul Eggert  <eggert@cs.ucla.edu>
15345
15346         * lib/stdbool_.h (_Bool)
15347         [(! (defined __cplusplus || defined __BEOS__)
15348           && !defined __GNUC__
15349           && !(defined __HP_cc || defined __xlc__
15350                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
15351                || defined __sgi))]:
15352         #define to signed char in these cases too; this simplifies
15353         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
15354         etc., separately) and makes it more conservative.
15355
15356 2006-01-25  Simon Josefsson  <jas@extundo.com>
15357
15358         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
15359         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
15360         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
15361
15362 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
15363
15364         * lib/argp-namefrob.h: Bugfix. Remove stray #
15365
15366 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
15367
15368         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
15369         so that we test the test.
15370         Check for yet another HP-UX cc bug involving *bool |= bool.
15371
15372 2006-01-25  Karl Berry  <karl@gnu.org>
15373
15374         * config/srclist.txt (vasnprintf.c): sync lost.
15375
15376 2006-01-25  Jim Meyering  <jim@meyering.net>
15377
15378         Sync from the stable (b5) branch of coreutils:
15379
15380         * lib/fts.c (fts_children): Don't let close() clobber errno from
15381         failed fchdir().
15382
15383         * lib/fts.c (fts_stat): When following a symlink-to-directory,
15384         don't necessarily interpret stat-fails+lstat-succeeds as indicating
15385         a dangling symlink.  That can also happen at least for ELOOP.
15386         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
15387         FYI, this bug predates the inclusion of fts.c in coreutils.
15388
15389         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
15390         in their own block, so pre-c99 compilers don't object.
15391
15392         Avoid the double-free (first in fts_read, second in fts_close) that
15393         would occur when an `active' directory is made inaccessible (e.g.,
15394         via chmod a-x) during a traversal.
15395         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15396         before returning.  Reproduce this failure by
15397         mkdir -p a/b; cd a; chmod a-x . b
15398         Reported by Stavros Passas.
15399
15400 2006-01-25  Jim Meyering  <jim@meyering.net>
15401
15402         * lib/fileblocks.c: Remove more useless parentheses.
15403         * lib/readutmp.h: Likewise.
15404
15405 2006-01-25  Bruno Haible  <bruno@clisp.org>
15406
15407         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
15408         warnings.
15409         Reported by Paul Eggert.
15410
15411 2006-01-25  Bruno Haible  <bruno@clisp.org>
15412
15413         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
15414         rid of a trap command. For Solaris sh.
15415         Reported by Mark D. Baushke <mdb@gnu.org>.
15416
15417 2006-01-24  Simon Josefsson  <jas@extundo.com>
15418
15419         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
15420         Bruno.
15421
15422 2006-01-24  Karl Berry  <karl@gnu.org>
15423
15424         * config/srclist.txt (argp-namefrob.h): sync lost.
15425
15426 2006-01-24  Jim Meyering  <jim@meyering.net>
15427
15428         * modules/openat (Files): Add lib/intprops.h.
15429         From Mark D. Baushke.
15430
15431 2006-01-24  Jim Meyering  <jim@meyering.net>
15432
15433         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
15434         Reported by Mark D. Baushke.
15435
15436 2006-01-24  Jim Meyering  <jim@meyering.net>
15437
15438         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
15439
15440 2006-01-24  Bruno Haible  <bruno@clisp.org>
15441
15442         * modules/strnlen (Maintainer): Change from glibc to all.
15443
15444 2006-01-24  Bruno Haible  <bruno@clisp.org>
15445
15446         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
15447         Patch by Paul Eggert.
15448
15449 2006-01-24  Bruno Haible  <bruno@clisp.org>
15450
15451         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
15452         already has it.
15453         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
15454         2005-11-26.
15455
15456         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
15457         'signed char' to avoid problems with the built-in _Bool type.
15458         Reported by Paul Eggert on 2005-11-26.
15459
15460 2006-01-24  Bruno Haible  <bruno@clisp.org>
15461
15462         * gnulib-tool (func_import): Avoid constructing complicated sed
15463         expressions inside backquote.
15464         Report and solution by Mark D. Baushke <mdb@gnu.org>.
15465
15466 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
15467
15468         These changes imported from libc.
15469         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
15470         test and two separate function calls.
15471         * lib/strndup.c (__strndup): Add libc_hidden_def.
15472
15473 2006-01-23  Simon Josefsson  <jas@extundo.com>
15474
15475         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
15476         Remove the test_*_SOURCES variable: automake infers it by default.
15477         * modules/tls-tests: Likewise.
15478
15479 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15480
15481         Work around porting bugs reported by Dieter in
15482         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
15483         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
15484         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
15485         Include "getopt.h" first, to check interface.
15486         (getenv): Declare only if defined HAVE_DECL_GETENV &&
15487         !HAVE_DECL_GETENV.
15488         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
15489         (__strndup): Revert to K&R-style function dfns, the glibc style.
15490         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
15491         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
15492         Include strnlen.h first, to get prototype properly.
15493         (strnlen): Renamed from __strnlen.
15494         Remove weak alias.
15495
15496 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15497
15498         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
15499
15500 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15501
15502         * config/srclist.txt: Adjust to reflect glibc reorganization.
15503         This affects only comments.
15504
15505 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
15506
15507          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
15508          Reported by Bruce Korb <bkorb@gnu.org>.
15509
15510 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15511
15512         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
15513         to pacify gcc -Wswitch-default.
15514
15515 2006-01-22  Bruno Haible  <bruno@clisp.org>
15516
15517         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
15518         temporary buffer for sprintf, take into account the precision also
15519         for 'd', 'i', 'u', 'o', 'x', 'X'.
15520
15521 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
15522
15523         * modules/argp-tests: New module
15524         * tests/test-argp.c: New file
15525         * tests/test-argp-2.sh: New file
15526
15527 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
15528
15529         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
15530         (__argp_base_name): Removed
15531         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
15532         typo.
15533         (__argp_base_name): Provide macro definition or extern declaration
15534         depending on the configuration
15535
15536 2006-01-20  Simon Josefsson  <jas@extundo.com>
15537
15538         * modules/inet_ntop (Depends-on): Depend on sys_socket.
15539
15540 2006-01-20  Simon Josefsson  <jas@extundo.com>
15541
15542         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
15543
15544 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
15545
15546         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
15547         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
15548         Suggested by Bruno Haible.
15549
15550 2006-01-20  Karl Berry  <karl@gnu.org>
15551
15552         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
15553         until changes propagate, I guess.
15554
15555 2006-01-19  Simon Josefsson  <jas@extundo.com>
15556
15557         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
15558
15559 2006-01-19  Simon Josefsson  <jas@extundo.com>
15560
15561         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
15562
15563 2006-01-19  Simon Josefsson  <jas@extundo.com>
15564
15565         * gnulib-tool: Set check_PROGRAMS.
15566
15567         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
15568         modules/des-tests, modules/gc-arcfour-tests,
15569         modules/gc-arctwo-tests, modules/gc-des-tests,
15570         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
15571         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
15572         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
15573         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
15574         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
15575         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
15576         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
15577         test_*_SOURCES.
15578
15579 2006-01-18  Simon Josefsson  <jas@extundo.com>
15580
15581         * modules/socklen (Depends-on): Depend on sys_socket.
15582
15583 2006-01-18  Simon Josefsson  <jas@extundo.com>
15584
15585         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
15586         modules/des-tests, modules/gc-arcfour-tests,
15587         modules/gc-arctwo-tests, modules/gc-des-tests,
15588         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
15589         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
15590         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
15591         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
15592         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
15593         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
15594         $(EXEEXT) to automake TESTS variable, for mingw32.
15595
15596 2006-01-17  Simon Josefsson  <jas@extundo.com>
15597
15598         * modules/socklen (Include): Need sys/socket.h.
15599
15600 2006-01-17  Bruno Haible  <bruno@clisp.org>
15601
15602         * modules/ssize_t (Include): Add <sys/types.h>.
15603
15604 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15605
15606         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
15607         it's not portable and it doesn't work with cross-compiles.
15608         Problem reported by Bruno Haible.  Fix missing-$ typo in
15609         'test "gl_cv_ignore_unused_libraries" ...' that prevented
15610         -zignore from being used with Sun's C compiler.
15611
15612 2006-01-12  Simon Josefsson  <jas@extundo.com>
15613
15614         * lib/base64.c: Fix warning, reported by Bruno Haible
15615         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
15616
15617 2006-01-12  Bruno Haible  <bruno@clisp.org>
15618
15619         * modules/ldd: New file.
15620         * build-aux/ldd.sh.in: New file.
15621         * MODULES.html.sh (Support for building libraries and executables): Add
15622         ldd.
15623
15624 2006-01-12  Bruno Haible  <bruno@clisp.org>
15625
15626         * m4/ldd.m4: New file.
15627
15628 2006-01-12  Bruno Haible  <bruno@clisp.org>
15629
15630         * gnulib-tool (func_import, func_create_testdir): Don't go into an
15631         endless loop while replacing $auxdir with build-aux.
15632
15633 2006-01-11  Simon Josefsson  <jas@extundo.com>
15634
15635         * lib/stdint_.h (SIZE_MAX): Add missing (.
15636
15637 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15638
15639         Sync from coreutils.
15640         * lib/md5.c: Fix commentary typos.
15641         (alignof, UNALIGNED_P): No need for a GCC-specific version.
15642         * lib/md5.h (__attribute__): Remove; unused.
15643         * lib/sha1.c: Fix commentary to match md5 better.
15644         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
15645         so that we don't need to worry about alignment.  All uses changed.
15646         This merges the 2005-10-28 md5 change into sha1.
15647
15648 2006-01-11  Jim Meyering  <jim@meyering.net>
15649
15650         Sync from coreutils.
15651         * lib/md5.c (OP): Fix spacing.
15652
15653 2006-01-11  Bruno Haible  <bruno@clisp.org>
15654
15655         Ensure automatic ordering between gl_LOCK and gl_ARGP.
15656         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
15657         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
15658
15659 2006-01-11  Bruno Haible  <bruno@clisp.org>
15660
15661         Ensure automatic ordering between gl_LOCK and gl_ARGP.
15662         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
15663         the "early" section as well.
15664
15665 2006-01-11  Bruno Haible  <bruno@clisp.org>
15666
15667         Avoid "ar: no archive members specified" error on MacOS X.
15668         * gnulib-tool (func_modules_add_dummy): New function.
15669         (func_import, func_create_testdir): Invoke it.
15670
15671 2006-01-11  Bruno Haible  <bruno@clisp.org>
15672
15673         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
15674         with $auxdir in AC_CONFIG_FILES statements.
15675
15676 2006-01-11  Bruno Haible  <bruno@clisp.org>
15677
15678         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15679         Initialize also noinst_HEADERS to empty.
15680
15681 2006-01-11  Bruno Haible  <bruno@clisp.org>
15682
15683         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
15684         variables.
15685         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
15686         autoreconf.
15687
15688 2006-01-11  Bruno Haible  <bruno@clisp.org>
15689
15690         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
15691         overridable by the user.
15692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15693
15694 2006-01-10  Simon Josefsson  <jas@extundo.com>
15695
15696         * modules/sys_socket: New file.
15697
15698 2006-01-10  Simon Josefsson  <jas@extundo.com>
15699
15700         * m4/sys_socket_h.m4: New file.
15701
15702 2006-01-10  Simon Josefsson  <jas@extundo.com>
15703
15704         * lib/socket_.h: New file.
15705
15706 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         * modules/readutmp (Maintainer): Add myself.
15709
15710 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15711
15712         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
15713         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
15714         People who are still concerned with buggy memcmp implementations
15715         can invoke gl_FUNC_MEMCMP themselves.
15716
15717 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15718
15719         * lib/regex_internal.h (BITSET_WORD_BITS):
15720         Work around a bug in 64-bit PGC (before version 6.1-2), where the
15721         preprocessor mishandles large unsigned values as if they were signed.
15722         Problem reported by Claudio Fontana in
15723         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
15724
15725 2006-01-10  Jim Meyering  <jim@meyering.net>
15726
15727         Avoid the double-free (first in fts_read, second in fts_close) that
15728         would occur when an `active' directory is made inaccessible (e.g.,
15729         via chmod a-x) during a traversal.
15730         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15731         before returning.  Reproduce this failure by
15732         mkdir -p a/b; cd a; chmod a-x . b
15733         Reported by Stavros Passas.
15734
15735         Sync from coreutils.
15736         * lib/sha1.c: Tweak grammar in a comment.
15737
15738 2006-01-10  Jim Meyering  <jim@meyering.net>
15739
15740         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
15741         Patch by Joerg Sonnenberger.
15742
15743 2006-01-10  Bruno Haible  <bruno@clisp.org>
15744
15745         * modules/readutmp: Depend on module free.
15746         * modules/strtok_r: Depend on module restrict.
15747
15748 2006-01-10  Bruno Haible  <bruno@clisp.org>
15749
15750         * modules/gettext (configure.ac): Add an invocation of
15751         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
15752
15753 2006-01-10  Bruno Haible  <bruno@clisp.org>
15754
15755         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
15756         Reported by Werner Lemberg <wl@gnu.org>.
15757
15758 2006-01-10  Bruno Haible  <bruno@clisp.org>
15759
15760         * lib/localcharset.c: Update from GNU gettext.
15761
15762 2006-01-10  Bruno Haible  <bruno@clisp.org>
15763
15764         * lib/argp.h (__const): Remove macro. Use const instead.
15765         * lib/argp-fmtstream.h (__const): Likewise.
15766         * lib/glob_.h (__const): Remove macro.
15767         * lib/glob-libc.h: Use const instead of __const.
15768
15769 2006-01-10  Bruno Haible  <bruno@clisp.org>
15770
15771         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
15772         variable.
15773         Needed to avoid an automake error regarding the 'gettext' module.
15774
15775 2006-01-09  Simon Josefsson  <jas@extundo.com>
15776
15777         * modules/inet_ntop (Depends-on): Add restrict.
15778
15779 2006-01-09  Simon Josefsson  <jas@extundo.com>
15780
15781         * modules/gc-rijndael-tests (License): Put under LGPL.
15782
15783         * modules/gc-des-tests (License): Likewise.
15784
15785         * modules/gc-arcfour-tests (License): Likewise.
15786
15787         * modules/gc-arctwo-tests (License): Likewise.
15788
15789         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
15790
15791         * modules/gc-hmac-sha1-tests (Files): Likewise.
15792
15793         * modules/gc-hmac-md5-tests (License): Likewise.
15794
15795         * modules/gc-sha1-tests (License): Likewise.
15796
15797         * modules/gc-md5-tests (License): Likewise.
15798
15799         * modules/gc-md4-tests (License): Likewise.
15800
15801         * modules/gc-md2-tests (License): Likewise.
15802
15803         * modules/gc-tests (License): Likewise.
15804
15805         * modules/des-tests (License): Likewise.
15806
15807         * modules/md4-tests (License): Likewise.
15808
15809         * modules/md2-tests (License): Likewise.
15810
15811 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15812
15813         Sync from coreutils:
15814
15815         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
15816         * modules/lib-ignore: New file.
15817         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
15818         chdir-safer.m4, lchmod.m4.
15819         * modules/openat: Add mkdirat.c, openat-priv.h.
15820
15821 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15822
15823         Sync from coreutils.
15824         * m4/lib-ignore.m4: New file.
15825         * m4/lchmod.m4: New file.
15826
15827 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15828
15829         Sync from coreutils.
15830         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
15831         for write access: POSIX says that must fail.
15832         * lib/fts.c (diropen): Likewise.
15833         * lib/save-cwd.c (save_cwd): Likewise.
15834         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
15835         well, for minor improvements on hosts that lack O_DIRECTORY.
15836         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
15837         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
15838         Fall back on chown if open failed with EACCES.
15839
15840         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
15841         Report an error at compile-time if only a 1-second nominal clock
15842         resolution is found.
15843
15844         * lib/lchmod.h: New file.
15845         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
15846         (make_dir_parents): Use lchown rather than chown, and
15847         lchmod rather than chmod.
15848
15849         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
15850         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
15851         "proc" reported by n0dalus.
15852
15853         * lib/mountlist.c: Include <limits.h>.
15854         (dev_from_mount_options)
15855         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
15856         New function.  It no longer assumes "dev=" has the System V meaning
15857         on Linux (since it doesn't).  It also parses "dev=" more carefully.
15858         (read_file_system_list)
15859         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
15860         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
15861         dev= in that case.
15862
15863         * lib/posixtm.h (PDS_PRE_2000): New macro.
15864         * lib/posixtm.c (year): Arg is now syntax_bits rather than
15865         allow_century.  All usages changed.  Reject dates outside the range
15866         1969-1999 if PDS_PRE_2000 is used.
15867
15868 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15869
15870         Sync from coreutils.
15871         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
15872         (Time of day items): Mention the possibility of leap seconds.
15873         Problem reported by Dr. David Alan Gilbert.
15874
15875 2006-01-09  Jim Meyering  <jim@meyering.net>
15876
15877         Sync from coreutils.
15878
15879         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
15880
15881         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
15882
15883         * lib/modechange.c (mode_compile): Reject an invalid mode string
15884         that starts with an octal digit.  From Andreas Gruenbacher.
15885
15886         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
15887         and dup to open_safer and dup_safer, respectively.
15888         (openat_permissive): Fix typo in comment.
15889
15890         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
15891         "gettext.h"; either no longer needed or are guaranteed by openat.h.
15892         (_): Remove; no longer needed.
15893         (openat): Renamed from rpl_openat; no need for rpl_openat
15894         since openat.h renames openat for us.
15895         Replace most of the body with a call to openat_permissive,
15896         to avoid duplicate code.
15897         Port to (probably hypothetical) environments were mode_t is
15898         wider than int.
15899         (openat_permissive): Require mode arg, so that we can check
15900         types better.  Put it just after flags.  Change cwd failure
15901         indicator from pointer-to-bool to pointer-to-errno-value.
15902         All callers changed.
15903         Invoke openat_save_fail and/or openat_restore_fail if
15904         cwd_errno is null, so that openat can call us.
15905         (openat_permissive, fdopendir, fstatat, unlinkat):
15906         Simplify errno handling to avoid some duplicate code,
15907         as it's OK to set errno on success.
15908         * lib/openat.h: Revamp code so that function macros depend on
15909         __OPENAT_PREFIX only, not also on AT_FDCWD.
15910         (openat_ro): Remove.  Caller changed to use openat_permissive.
15911         (openat_permissive): Now a macro, if not a function.
15912         (openat_restore_fail, openat_save_fail): Now always functions,
15913         since mkdirat needs them even if __OPENAT_PREFIX is defined.
15914
15915         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
15916         and openat.c.
15917         * lib/mkdirat.c: Include openat-priv.h.
15918         Remove definitions of macros defined therein.
15919         * lib/openat.c: Likewise.
15920
15921         * lib/mkdirat.c (mkdirat): New file and function.
15922         * lib/openat.h (mkdirat): Declare.
15923
15924         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
15925
15926         * lib/openat.h (openat_permissive): Declare.
15927         (openat_ro): Define.
15928
15929         * lib/openat.c (EXPECTED_ERRNO): New macro.
15930         (openat_permissive): New function -- used in remove.c rewrite.
15931         (all functions): Set errno just before returning, only if there
15932         was an actual failure.
15933         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
15934
15935         Emulate openat-family functions using Linux's procfs, if possible.
15936         Idea and some code based on Ulrich Drepper's glibc changes.
15937
15938         * lib/openat.c: (BUILD_PROC_NAME): New macro.
15939         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
15940         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
15941         before falling back on save_cwd and restore_cwd.
15942         (fdopendir, fstatat, unlinkat): Likewise.
15943
15944         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
15945         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
15946
15947         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
15948         as second argument to va_arg.  Otherwise, some versions of gcc
15949         warn that `if this code is reached, the program will abort'.
15950
15951 2006-01-09  Jim Meyering  <jim@meyering.net>
15952
15953         Sync from coreutils.
15954         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
15955         Require openat-priv.h.
15956
15957 2006-01-09  Bruno Haible  <bruno@clisp.org>
15958
15959         * modules/strnlen (Include): Use strnlen.h.
15960
15961 2006-01-09  Bruno Haible  <bruno@clisp.org>
15962
15963         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
15964
15965 2006-01-09  Bruno Haible  <bruno@clisp.org>
15966
15967         * lib/sysexit_.h (EX_OK): New macro.
15968         Suggested by Martin Lambers <marlam@marlam.de>.
15969
15970 2006-01-09  Bruno Haible  <bruno@clisp.org>
15971
15972         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
15973         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
15974
15975 2006-01-09  Bruno Haible  <bruno@clisp.org>
15976
15977         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
15978         numbers.
15979
15980 2006-01-09  Bruno Haible  <bruno@clisp.org>
15981
15982         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
15983         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
15984         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
15985         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
15986
15987 2006-01-09  Bruno Haible  <bruno@clisp.org>
15988
15989         * build-aux/javacomp.sh.in: New file, moved from lib/.
15990         * modules/javacomp-script (Files): Update.
15991         (configure.ac): Add AC_CONFIG_FILES invocation.
15992         (EXTRA_DIST): Remove variable.
15993
15994         * build-aux/javaexec.sh.in: New file, moved from lib/.
15995         * modules/javaexec (Files): Update.
15996         (configure.ac): Add AC_CONFIG_FILES invocation.
15997         (EXTRA_DIST): Remove javaexec.sh.in.
15998
15999         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
16000         * modules/csharpcomp-script (Files): Update.
16001         (configure.ac): Add AC_CONFIG_FILES invocation.
16002         (EXTRA_DIST): Remove variable.
16003
16004         * build-aux/csharpexec.sh.in: New file, moved from lib/.
16005         * modules/csharpexec (Files): Update.
16006         (configure.ac): Add AC_CONFIG_FILES invocation.
16007         (EXTRA_DIST): Remove csharpexec.sh.in.
16008
16009 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
16010
16011         Sync from coreutils.
16012
16013         Add POSIX ACL support
16014         * lib/acl.h (copy_acl, set_acl): Add declarations.
16015         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
16016         systems other than Linux.
16017         (chmod_or_fchmod): New function: use fchmod when possible,
16018         and chmod otherwise.
16019         (file_has_acl): Add a POSIX ACL implementation, with a
16020         Linux-specific subcase.
16021         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
16022         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
16023         acls are unsupported.
16024         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
16025         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
16026         are unsupported.
16027
16028 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
16029
16030         Sync from coreutils.
16031         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
16032
16033 2006-01-07  Bruno Haible  <bruno@clisp.org>
16034
16035         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
16036         gl_EARLY.
16037
16038 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16039
16040         * lib/strftime.c (tzname): Don't declare if it is already #defined.
16041         Problem reported for Mingw by Mark Junker.
16042
16043 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16044
16045         * README: Gnulib normally doesn't generate a tarball.
16046
16047 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16048
16049         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
16050         long int, not int, for nanosecond counts, so that people who are
16051         used to POSIX struct timespec won't be surprised.  Reported by Jim
16052         Meyering.
16053
16054 2005-12-28  Bruno Haible  <bruno@clisp.org>
16055
16056         * build-aux/config.rpath: Update from GNU gettext.
16057
16058 2005-12-16  Jim Meyering  <jim@meyering.net>
16059
16060         * modules/fprintftime: New module.
16061         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
16062
16063 2005-12-16  Jim Meyering  <jim@meyering.net>
16064
16065         * m4/fprintftime.m4: New file.
16066
16067 2005-12-16  Jim Meyering  <jim@meyering.net>
16068
16069         * lib/fprintftime.c, lib/fprintftime.h: New files.
16070
16071 2005-12-15  Simon Josefsson  <jas@extundo.com>
16072
16073         * modules/socklen (configure.ac): Fix M4 macro name, to align with
16074         new m4/socklen.m4.
16075
16076 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
16077
16078         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
16079         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
16080
16081 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
16082
16083         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
16084         * lib/argp-help.c (fill_in_uparams): Check if the constructed
16085         struct uparams is valid. Fall back to the default values if it is
16086         not.
16087
16088 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16089
16090         * modules/argp (Files): Add argp-pin.c
16091         (Depends-on): dirname
16092         (lib_SOURCES): Add argp-pin.c
16093
16094 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16095
16096         * m4/argp.m4:  Check if program_invocation_name and
16097         program_invocation_short_name are declared and define appropriate
16098         macros if they are not.
16099
16100 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16101
16102         * lib/argp-help.c (__argp_base_name): New function
16103         (__argp_short_program_name): Rewrite using __argp_base_name
16104         * lib/argp-namefrob.h: Define program_invocation_name and
16105         program_invocation_short_name if requested
16106         (__argp_base_name): Add prototype
16107         * lib/argp-parse.c (argp_def): Use gettext wrappers
16108         (argp_default_parser): Use __argp_base_name
16109         * lib/argp-pin.c: New file. Defines program_invocation_name and
16110         program_invocation_short_name on systems that lack them.
16111
16112 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16113
16114         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
16115         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16116         porting problem reported by Georg Schwarz in
16117         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16118
16119 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16120
16121         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
16122         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16123         porting problem reported by Georg Schwarz in
16124         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16125
16126 2005-12-05  Bruno Haible  <bruno@clisp.org>
16127
16128         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
16129         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
16130         Reported by Mark Junker <mjscod@gmx.de>.
16131
16132 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
16133
16134         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
16135         Use implementation from Albert Chin, with some
16136         comments/corrections by Stepan Kasal and myself.
16137
16138 2005-12-02  Bruno Haible  <bruno@clisp.org>
16139
16140         * gnulib-tool (func_import): Accept GPLed build tool modules when
16141         --lgpl is given.
16142         * modules/csharpcomp-script: New file.
16143         * modules/csharpcomp: Depend on it.
16144         * modules/javacomp-script: New file.
16145         * modules/javacomp: Depend on it.
16146         Suggested by Simon Josefsson.
16147
16148 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16149
16150         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
16151         statement, to work around an HP-UX 10.20 compiler bug reported by
16152         Peter O'Gorman.
16153
16154 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
16155
16156         * modules/savedir (Depends-on): Add openat.
16157
16158 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
16159
16160         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
16161         (uintmax_t) [defined uintmax_t]: Do not declare.
16162         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
16163         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
16164         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
16165         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
16166         sake of portability to weird hosts that C allows (though we don't
16167         know of any practical examples).
16168
16169         * lib/savedir.h (fdsavedir): New decl.
16170         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
16171         contains most of the former guts of savedir.
16172         (savedir): Use savedirstream.
16173         Include "openat.h".
16174
16175 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         * modules/obstack (Files): Add m4/ulonglong.m4.
16178         Problem reported by Davide Angelocola.
16179
16180 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16181
16182         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
16183         coreutils no longer futzes with rounding modes.
16184
16185 2005-11-14  Jim Meyering  <jim@meyering.net>
16186
16187         * lib/mkstemp-safer.c: Include <config.h>, required for possible
16188         replacement of mkstemp.
16189
16190 2005-11-10  Simon Josefsson  <jas@extundo.com>
16191
16192         * lib/readline.c: Remove EOL.
16193
16194 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
16195
16196         * modules/gethrxtime (Depends-on): Add gettime.
16197
16198 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
16199
16200         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
16201         or gettimeofday; no longer needed.
16202
16203 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
16204
16205         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
16206         time business.
16207         (gethrxtime) [! (HAVE_NANOUPTIME
16208         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
16209         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
16210         our own approximation.
16211
16212 2005-11-08  Eric Blake  <ebb9@byu.net>
16213
16214         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16215
16216 2005-11-08  Eric Blake  <ebb9@byu.net>
16217
16218         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16219
16220 2005-11-04  Bruno Haible  <bruno@clisp.org>
16221
16222         * gnulib-tool: Implement --update mode.
16223
16224 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16225
16226         Fix porting problem reported by Theodoros V. Kalamatianos.
16227         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
16228         Don't assume that futimes failing means we must fail.
16229
16230 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16231
16232         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
16233         variables to suggest the intended function of the PATH_MAX check.
16234
16235 2005-10-30  Kean Johnston  <jkj@sco.com>
16236
16237         Trivial changes to support SCO systems.
16238         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
16239         as PATH_MAX.
16240         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
16241         where __ptr is null when no I/O is pending.
16242
16243 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16244
16245         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
16246         leave errno alone.  Problem reported by Dmitry V. Levin.
16247
16248 2005-10-28  Simon Josefsson  <jas@extundo.com>
16249
16250         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
16251         Test more.
16252
16253         * tests/test-gc-md2.c, tests/test-md2.c: New files.
16254
16255         * modules/md2, modules/md2-tests: New files.
16256
16257 2005-10-28  Simon Josefsson  <jas@extundo.com>
16258
16259         * m4/inet_ntop.m4: More tests.
16260
16261         * m4/gc-md2.m4, md2.m4: New file.
16262
16263 2005-10-28  Simon Josefsson  <jas@extundo.com>
16264
16265         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
16266         "restrict" keywords, as per POSIX.  Protect the function
16267         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
16268         Don't use K&R prototypes.  Check the sprintf return values.
16269         Re-define EAFNOSUPPORT if not present.  Indent.
16270
16271         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
16272         suggested by Bruno Haible <bruno@clisp.org>.
16273
16274         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
16275
16276         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
16277
16278         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
16279         libgcrypt).
16280
16281         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
16282
16283         * lib/md2.h, lib/md2.c: New files.
16284
16285 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
16286
16287         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
16288         errno alone.  Problem reported by Frederic Jolliton.
16289
16290 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
16291
16292         * modules/verify (License): Change from GPL to LGPL.  This is a
16293         tiny module and there are apparently near-equivalents that are
16294         under the BSD license.
16295
16296 2005-10-24  Simon Josefsson  <jas@extundo.com>
16297
16298         * modules/sha1: Relicense to LGPL.
16299
16300 2005-10-24  Simon Josefsson  <jas@extundo.com>
16301
16302         * lib/md4.h: Shrink buffer size, now that we changed the type.
16303
16304 2005-10-23  Simon Josefsson  <jas@extundo.com>
16305
16306         * gnulib-tool (func_import): Fix --tests-base.
16307
16308 2005-10-22  Simon Josefsson  <jas@extundo.com>
16309
16310         * modules/arcfour (Depends-on): Need stdint.
16311
16312 2005-10-22  Simon Josefsson  <jas@extundo.com>
16313
16314         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
16315         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
16316
16317 2005-10-22  Simon Josefsson  <jas@extundo.com>
16318
16319         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
16320         suggested by Bruno Haible <bruno@clisp.org>.
16321
16322 2005-10-22  Simon Josefsson  <jas@extundo.com>
16323
16324         * lib/crc.h: Include stddef.h, for size_t.
16325
16326 2005-10-22  Simon Josefsson  <jas@extundo.com>
16327
16328         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
16329         arcfour_context struct (simplify test vector testing in GNU
16330         Shishi).
16331
16332 2005-10-21  Simon Josefsson  <jas@extundo.com>
16333
16334         * modules/des, modules/des-tests: New files.
16335
16336         * modules/gc-des, modules/gc-des-tests: New files.
16337
16338         * tests/test-des.c, tests/test-gc-des.c: New file.
16339
16340 2005-10-21  Simon Josefsson  <jas@extundo.com>
16341
16342         * modules/arctwo, modules/arctwo-tests: New files.
16343
16344         * tests/test-arctwo.c: New file.
16345
16346         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
16347
16348         * tests/test-gc-arctwo.c: New file.
16349
16350 2005-10-21  Simon Josefsson  <jas@extundo.com>
16351
16352         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
16353         Bruno Haible <bruno@clisp.org>.
16354
16355         * m4/gc-des.m4: New file.
16356
16357 2005-10-21  Simon Josefsson  <jas@extundo.com>
16358
16359         * m4/arctwo.m4: New file.
16360
16361         * m4/gc-arctwo.m4: New file.
16362
16363 2005-10-21  Simon Josefsson  <jas@extundo.com>
16364
16365         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
16366         block.
16367
16368 2005-10-21  Simon Josefsson  <jas@extundo.com>
16369
16370         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
16371         <bruno@clisp.org>.
16372
16373         * lib/hmac-sha1.c (hmac_sha1): Likewise.
16374
16375         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
16376         Bruno Haible <bruno@clisp.org>.
16377
16378         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
16379         <bruno@clisp.org>.
16380
16381 2005-10-21  Simon Josefsson  <jas@extundo.com>
16382
16383         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
16384
16385 2005-10-21  Simon Josefsson  <jas@extundo.com>
16386
16387         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
16388
16389 2005-10-21  Simon Josefsson  <jas@extundo.com>
16390
16391         * lib/des.h, lib/des.c: New files.
16392
16393         * lib/gc-gnulib.c: Support DES.c
16394
16395 2005-10-21  Simon Josefsson  <jas@extundo.com>
16396
16397         * lib/arctwo.h, lib/arctwo.c: New files.
16398
16399         * lib/gc-gnulib.c: Support ARCTWO.
16400
16401 2005-10-21  Simon Josefsson  <jas@extundo.com>
16402
16403         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
16404         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16405
16406 2005-10-21  Simon Josefsson  <jas@extundo.com>
16407
16408         * gnulib-tool (func_import, func_create_testdir): Define automake
16409         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
16410         Makefile.am snippet),
16411         suggested by Bruno Haible <bruno@clisp.org>.
16412
16413         * modules/gc (Makefile.am): Use it.
16414
16415 2005-10-21  Bruno Haible  <bruno@clisp.org>
16416
16417         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
16418         patch.
16419
16420 2005-10-19  Simon Josefsson  <jas@extundo.com>
16421
16422         * tests/test-gc-rijndael.c: New file.
16423
16424         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
16425
16426 2005-10-19  Simon Josefsson  <jas@extundo.com>
16427
16428         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
16429         interface too.
16430
16431 2005-10-19  Simon Josefsson  <jas@extundo.com>
16432
16433         * tests/test-gc-arcfour.c: New file.
16434
16435         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
16436
16437 2005-10-19  Simon Josefsson  <jas@extundo.com>
16438
16439         * modules/gc-md4, modules/gc-md4-tests: New file.
16440
16441         * tests/test-gc-md4.c: New file.
16442
16443 2005-10-19  Simon Josefsson  <jas@extundo.com>
16444
16445         * m4/gc-md4.m4: New file.
16446
16447 2005-10-19  Simon Josefsson  <jas@extundo.com>
16448
16449         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
16450         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
16451         <kasal@ucw.cz>.
16452
16453 2005-10-19  Simon Josefsson  <jas@extundo.com>
16454
16455         * m4/gc-arcfour.m4: New file.
16456
16457         * m4/gc-rijndael.m4: New file.
16458
16459 2005-10-19  Simon Josefsson  <jas@extundo.com>
16460
16461         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
16462
16463 2005-10-19  Simon Josefsson  <jas@extundo.com>
16464
16465         * lib/gc-gnulib.c: Support ARCFOUR.
16466
16467 2005-10-19  Simon Josefsson  <jas@extundo.com>
16468
16469         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
16470         support.
16471
16472         * lib/gc.h: Add ECB enum type.
16473
16474         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
16475
16476 2005-10-18  Simon Josefsson  <jas@extundo.com>
16477
16478         * tests/test-md5.c: New file.
16479
16480         * modules/md5-tests: New file.
16481
16482 2005-10-18  Simon Josefsson  <jas@extundo.com>
16483
16484         * tests/test-md4.c: New file.
16485
16486         * modules/md4, modules/md4-tests: New files.
16487
16488 2005-10-18  Simon Josefsson  <jas@extundo.com>
16489
16490         * m4/md4.m4: New file.
16491
16492 2005-10-18  Simon Josefsson  <jas@extundo.com>
16493
16494         * lib/md4.h, lib/md4.c: New files, based on md5.?.
16495
16496 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
16497
16498         * gnulib-tool (func_create_testdir): Omit the second check whether
16499         BUILT_SOURCES in nonempty.
16500
16501 2005-10-17  Simon Josefsson  <jas@extundo.com>
16502
16503         * tests/test-rijndael.c: New file.
16504
16505 2005-10-17  Simon Josefsson  <jas@extundo.com>
16506
16507         * modules/sha1: Depend on stdint instead of md5.
16508
16509         * modules/md5: Depend on stdint, remove uint32_t.
16510
16511 2005-10-17  Simon Josefsson  <jas@extundo.com>
16512
16513         * modules/gc-sha1-tests: New file.
16514
16515         * tests/test-gc-sha1.c: New file.
16516
16517 2005-10-17  Simon Josefsson  <jas@extundo.com>
16518
16519         * m4/md5.m4: Remove call to uint32_t.m4.
16520
16521 2005-10-17  Simon Josefsson  <jas@extundo.com>
16522
16523         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
16524
16525         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
16526         md5.h.
16527
16528         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
16529
16530         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
16531
16532 2005-10-17  Simon Josefsson  <jas@extundo.com>
16533
16534         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
16535
16536 2005-10-17  Simon Josefsson  <jas@extundo.com>
16537
16538         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
16539
16540 2005-10-17  Simon Josefsson  <jas@extundo.com>
16541
16542         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
16543
16544         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
16545
16546 2005-10-17  Bruno Haible  <bruno@clisp.org>
16547
16548         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
16549         that it can also be used in a test.
16550
16551 2005-10-16  Bruno Haible  <bruno@clisp.org>
16552
16553         * gnulib-tool (func_emit_tests_Makefile_am): Also define
16554         TESTS_ENVIRONMENT, so that individual tests can augment it.
16555
16556         * gnulib-tool (func_create_testdir): Use an intermediate target for
16557         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
16558         macros, like $(ALLOCA_H), which cannot be passed through the command
16559         line.
16560
16561 2005-10-15  Simon Josefsson  <jas@extundo.com>
16562
16563         * modules/rijndael-tests: New file.
16564
16565         * modules/rijndael: New file.
16566
16567 2005-10-15  Simon Josefsson  <jas@extundo.com>
16568
16569         * m4/rijndael.m4: New file.
16570
16571 2005-10-15  Simon Josefsson  <jas@extundo.com>
16572
16573         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
16574
16575         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
16576
16577 2005-10-14  Simon Josefsson  <jas@extundo.com>
16578
16579         * tests/test-arcfour.c: New file.
16580
16581         * modules/arcfour, modules/arcfour-tests: New files.
16582
16583 2005-10-14  Simon Josefsson  <jas@extundo.com>
16584
16585         * m4/arcfour.m4: New file.
16586
16587 2005-10-14  Simon Josefsson  <jas@extundo.com>
16588
16589         * lib/arcfour.h, lib/arcfour.c: New files.
16590
16591 2005-10-14  Roland McGrath  <roland@redhat.com>
16592
16593         Import from libc.  [BZ #1331]
16594         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
16595         macro argument.
16596         Reported by Matej Vela <vela@debian.org>.
16597
16598 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16599
16600         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
16601         include <wchar.h>; no longer needed.
16602
16603 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16604
16605         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
16606
16607 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
16608         and  Ulrich Drepper  <drepper@redhat.com>
16609
16610         Import from libc.
16611         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
16612         instead of inline stream orientation test and two separate
16613         function calls.  Pay no attention to USE_IN_LIBIO.
16614
16615 2005-10-13  Simon Josefsson  <jas@extundo.com>
16616
16617         * modules/gc-hmac-md5-tests: New file.
16618
16619         * tests/test-gc-hmac-sha1.c: New file.
16620
16621         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
16622
16623         * modules/gc-hmac-md5-tests: New file.
16624
16625         * tests/test-gc-md5.c: New file.
16626
16627         * modules/gc-md5-tests: New file.
16628
16629 2005-10-13  Simon Josefsson  <jas@extundo.com>
16630
16631         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
16632         Move memory allocation outside of loop.
16633
16634 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16635
16636         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
16637         intermediate directory is in a read-only file system.  Problem
16638         reported by Eric Blake.
16639
16640 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
16641
16642         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
16643
16644 2005-10-12  Simon Josefsson  <jas@extundo.com>
16645
16646         * tests/test-hmac-sha1.c: New file.
16647
16648         * modules/hmac-sha1-tests: New file.
16649
16650         * modules/hmac-sha1: New file.
16651
16652 2005-10-12  Simon Josefsson  <jas@extundo.com>
16653
16654         * modules/gc-sha1: New file.
16655
16656 2005-10-12  Simon Josefsson  <jas@extundo.com>
16657
16658         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
16659
16660         * tests/test-gc-pbkdf2-sha1.c: New file.
16661
16662 2005-10-12  Simon Josefsson  <jas@extundo.com>
16663
16664         * modules/gc-md5, modules/gc-hmac-md5: New files.
16665
16666         * modules/gc (Files): Remove md5, memxor and hmac files.
16667
16668 2005-10-12  Simon Josefsson  <jas@extundo.com>
16669
16670         * m4/gc-pbkdf2-sha1.m4: New file.
16671
16672         * m4/gc-hmac-sha1.m4: New file.
16673
16674         * m4/gc-sha1: New file.
16675
16676         * m4/hmac-sha1.m4: New file.
16677
16678 2005-10-12  Simon Josefsson  <jas@extundo.com>
16679
16680         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
16681
16682         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
16683
16684 2005-10-12  Simon Josefsson  <jas@extundo.com>
16685
16686         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
16687         suggested by Bruno Haible <bruno@clisp.org>.
16688
16689 2005-10-12  Simon Josefsson  <jas@extundo.com>
16690
16691         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
16692
16693 2005-10-12  Simon Josefsson  <jas@extundo.com>
16694
16695         * lib/gc-pbkdf2-sha1.c: New file.
16696
16697         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
16698
16699 2005-10-12  Simon Josefsson  <jas@extundo.com>
16700
16701         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
16702
16703         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
16704
16705 2005-10-12  Simon Josefsson  <jas@extundo.com>
16706
16707         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
16708         GC_USE_HMAC_MD5, respectively.
16709
16710         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
16711         (gc_md5): Fix typo.
16712
16713         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
16714
16715         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
16716
16717         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
16718
16719 2005-10-12  Bruno Haible  <bruno@clisp.org>
16720
16721         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
16722         Reported by Stepan Kasal <kasal@ucw.cz>.
16723
16724 2005-10-11  Simon Josefsson  <jas@extundo.com>
16725
16726         * tests/test-crc.c: New file.
16727
16728         * modules/crc, modules/crc-tests: New files.
16729
16730 2005-10-11  Simon Josefsson  <jas@extundo.com>
16731
16732         * m4/crc.m4: New file.
16733
16734 2005-10-11  Simon Josefsson  <jas@extundo.com>
16735
16736         * lib/gc.h: Add gc_hash and gc_hash_buffer.
16737
16738         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
16739
16740         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
16741
16742 2005-10-11  Simon Josefsson  <jas@extundo.com>
16743
16744         * lib/crc.h, lib/crc.c: New files.
16745
16746         * lib/gc.h (gc_hash_buffer): Add doc.
16747
16748 2005-10-11  Bruno Haible  <bruno@clisp.org>
16749
16750         * modules/c-strcasestr: New file.
16751         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
16752
16753 2005-10-11  Bruno Haible  <bruno@clisp.org>
16754
16755         * modules/c-strcase: New file.
16756         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
16757
16758 2005-10-11  Bruno Haible  <bruno@clisp.org>
16759
16760         * lib/strcasecmp.c: Include limits.h.
16761         (strcasecmp): Avoid integer overflow on exotic platforms.
16762         * lib/strncasecmp.c: Include limits.h.
16763         (strncasecmp): Avoid integer overflow on exotic platforms.
16764         Reported by Paul Eggert.
16765
16766 2005-10-11  Bruno Haible  <bruno@clisp.org>
16767
16768         * lib/c-strcasestr.h: New file, from GNU gettext.
16769         * lib/c-strcasestr.c: New file, from GNU gettext.
16770
16771 2005-10-11  Bruno Haible  <bruno@clisp.org>
16772
16773         * lib/c-strcase.h: New file, from GNU gettext.
16774         * lib/c-strcasecmp.c: New file, from GNU gettext.
16775         * lib/c-strncasecmp.c: New file, from GNU gettext.
16776
16777 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16778
16779         * modules/mempcpy (License): GPL -> LGPL.
16780         * modules/strchrnul (License): Likewise.
16781         * modules/sysexits (License): Likewise.
16782
16783 2005-10-08  Simon Josefsson  <jas@extundo.com>
16784
16785         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
16786
16787 2005-10-07  Simon Josefsson  <jas@extundo.com>
16788
16789         * m4/memxor.m4: Remove gl_C_RESTRICT call.
16790
16791 2005-10-06  Simon Josefsson  <jas@extundo.com>
16792
16793         * tests/test-hmac-md5.c: New file.
16794
16795         * modules/hmac-md5-tests: New file.
16796
16797         * modules/hmac-md5: New file.
16798
16799 2005-10-06  Simon Josefsson  <jas@extundo.com>
16800
16801         * m4/hmac-md5.m4: New file.
16802
16803         * m4/memxor.m4: Require gl_C_RESTRICT.
16804
16805 2005-10-06  Simon Josefsson  <jas@extundo.com>
16806
16807         * lib/memxor.c (memxor): Avoid casts and warnings.
16808
16809 2005-10-06  Simon Josefsson  <jas@extundo.com>
16810
16811         * lib/hmac-md5.c: New file.
16812
16813         * lib/hmac.h: New file.
16814
16815 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16816
16817         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
16818         promotes to int, not unsigned int, to catch the AIX 5.3
16819         compiler bug.
16820
16821 2005-10-05  Simon Josefsson  <jas@extundo.com>
16822
16823         * modules/memxor: New file.
16824
16825         * modules/iconv (Files): Move config.rpath to havelib, it is used
16826         there.
16827
16828         * modules/havelib (Files): Add config.rpath.
16829
16830 2005-10-05  Simon Josefsson  <jas@extundo.com>
16831
16832         * m4/memxor.m4: New file.
16833
16834 2005-10-05  Simon Josefsson  <jas@extundo.com>
16835
16836         * lib/memxor.c (memxor): Fix compiler error.
16837
16838         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
16839         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
16840
16841         * lib/memxor.h, lib/memxor.c: New files.
16842
16843         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
16844         we assume all systems have it, suggested by Jim Meyering
16845         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
16846         any systems lack sys/socket.h; mingw32 is known to lack it, but we
16847         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
16848         same reasons.
16849
16850 2005-10-05  Simon Josefsson  <jas@extundo.com>
16851
16852         * config/srclist.txt: Add glibc bug 1423 for md5.h.
16853
16854 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16855
16856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
16857         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
16858         needed, since the source code now assumes these .h files.
16859
16860 2005-10-05  Derek Price  <derek@ximbiot.com>
16861
16862         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
16863
16864 2005-10-05  Bruno Haible  <bruno@clisp.org>
16865
16866         * modules/stdint (License): Change to LGPL.
16867
16868 2005-10-04  Simon Josefsson  <jas@extundo.com>
16869
16870         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
16871         D. Baushke" <mdb@gnu.org>.
16872
16873 2005-10-04  Bruno Haible  <bruno@clisp.org>
16874
16875         * lib/verify.h (verify_true): Provide alternative definition for C++.
16876
16877 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16878
16879         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
16880         (SSIZE_MAX): New macro, if not already defined.
16881         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
16882         than 2 GiB.
16883
16884 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16885
16886         Sync from coreutils.
16887         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
16888         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
16889         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
16890         ULLONG_MAX doesn't work with 2.7.2.1.
16891
16892 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16893
16894         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
16895         From Ben Pfaff.
16896
16897         * modules/exclude (Depends-on): Depend on verify.
16898         * modules/strtoimax (Depends-on): Likewise.
16899         * modules/utimecmp (Depends-on): Likewise.
16900
16901 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16902
16903         * lib/exclude.c: Include verify.h.
16904         (verify): Remove.  All callers changed to use verify.h's version.
16905         * lib/strtoimax.c: Likewise.
16906         * lib/utimecmp.c: Likewis.e
16907
16908         Sync from coreutils.
16909         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
16910         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
16911         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
16912         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
16913         bother returning ENOSYS if settimeofday or stime fails; just let
16914         them return whatever errno they want to return.
16915         * lib/utimens.c: Include unistd.h, for dup2.
16916         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
16917         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
16918
16919 2005-10-02  Jim Meyering  <jim@meyering.net>
16920
16921         Sync from coreutils.
16922         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
16923         from glibc-2.2.5 that fails for read-only files.
16924
16925 2005-10-02  Jim Meyering  <jim@meyering.net>
16926
16927         Sync from coreutils.
16928         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
16929         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
16930         `#if HAVE_CONFIG_H'.
16931         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
16932         Remove AT_FDCWD test.
16933         Do not consume the fd unless successful.
16934         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
16935         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
16936         block, so that we don't even try to compile it if settimeofday is
16937         available.  This works around a compilation failure on OSF1 V5.1,
16938         due to stime requiring a `long int*' while tv_sec is `int'.
16939
16940 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
16941
16942         Sync from coreutils.
16943         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
16944         against `yes', rather than just testing for nonempty.
16945
16946 2005-10-01  Simon Josefsson  <jas@extundo.com>
16947
16948         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
16949         and Darwin.
16950
16951         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
16952         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
16953         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
16954         freeaddrinfo and gai_strerror are declared by the POSIX headers.
16955         Check if struct addrinfo is declared.
16956
16957 2005-10-01  Simon Josefsson  <jas@extundo.com>
16958
16959         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
16960         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
16961         AI_* and EAI_* definitions.  Protect function declarations.
16962
16963 2005-10-01  Jim Meyering  <jim@meyering.net>
16964
16965         Sync from coreutils.
16966
16967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
16968         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
16969         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
16970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
16971         in the inet and nsl libraries.  Required on Solaris 5.7.
16972
16973 2005-10-01  Jim Meyering  <jim@meyering.net>
16974
16975         Sync from coreutils.
16976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
16977         in the inet and nsl libraries.  Required on Solaris 5.7.
16978
16979 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
16980
16981         * lib/getdelim.c (getdelim): Remove unused variables.
16982
16983 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
16984
16985         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
16986         so that the code works even with ancient cpp.  Portability problem
16987         with GCC 2.7.2.1 reported by Thomas M.Ott.
16988
16989 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
16990
16991         * modules/regex (Depends-on): Add strcase.
16992
16993         * modules/gethostname (Licence): Change from GPL to LGPL, since
16994         gethostname.c is a trivial implementation of a standard library
16995         function.
16996         * modules/poll (License): Change from GPL to LGPL, since it's
16997         derived from LGPL code.
16998
16999 2005-09-27  Jim Meyering  <jim@meyering.net>
17000
17001         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
17002         HAVE_CONFIG_H.
17003
17004         * lib/intprops.h (signed_type_or_expr__): Define.
17005         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
17006         for unsigned types.
17007
17008 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17009
17010         * lib/verify.h (verify_expr): Remove, replacing with:
17011         (verify_true): New macro that returns true instead of void.
17012         (verify_type__): Remove.
17013         (verify): Use verify_true rather than verify_type__.
17014
17015 2005-09-26  Bruno Haible  <bruno@clisp.org>
17016
17017         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
17018         is necessary.
17019         (lib_SOURCES): Remove mbchar.c.
17020         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
17021         (Files): Add m4/mbrtowc.m4.
17022         * modules/mbiter: Likewise.
17023         * modules/mbuiter: Likewise.
17024
17025 2005-09-26  Bruno Haible  <bruno@clisp.org>
17026
17027         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
17028         compile mbchar.c if they are not both present.
17029         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
17030         * m4/mbiter.m4 (gl_MBITER): Likewise.
17031         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
17032         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
17033         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
17034
17035 2005-09-25  Jim Meyering  <jim@meyering.net>
17036
17037         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
17038         also uses socklen_t.
17039
17040 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17041
17042         * lib/utimens.c (ENOSYS): Define if not already defined.
17043         (futimens): Support having a null PATH if the file descriptor
17044         is nonnegative.
17045
17046         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
17047         Remove.
17048         (__attribute): Define to empty unless GCC 3.1 or later.
17049         This works around a core dump on OpenBSD 3.4, which has GCC
17050         2.95.3, which dumps core when given __attribute__(()).  It also
17051         simplifies other tests, since we really don't want to bother with
17052         worrying about which ancient version of GCC supported what.
17053         Original problem reported by Yoann Vandoorselaere, with part of
17054         the fix suggested by Derek Price.
17055
17056 2005-09-24  Jim Meyering  <jim@meyering.net>
17057
17058         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
17059         so we can once again use a positive bitfield width of 1 -- now we
17060         don't have to explain why we were using a bitfield width of 2.
17061
17062 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
17063
17064         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
17065         and similarly for the other external symbols.  Problem reported
17066         by James Gallager.
17067
17068         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
17069         bug reported by Jim Meyering.
17070
17071         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
17072         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
17073         not needed, since socklen is a prerequisite module.
17074
17075 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
17076
17077         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
17078         Problem reported by Eric Blake.
17079         (getaddrinfo): Initialize se so that it's not garbage.
17080         Redo internal storage allocation so that it doesn't make unportable
17081         assumptions about alignment.
17082         Fix a memory leak.
17083
17084         * lib/utimens.c (futimens): Use futimesat if available.
17085         Prefer it to futimes since it doesn't have the futimes bug.
17086
17087         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
17088         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
17089         Instead, declare a function that returns a pointer to an array,
17090         and use verify_type__ to declare the size of the array.
17091         Problem and germ of a solution reported by Bruno Haible.
17092         (verify_type__): Use 2, not 1, for bitfield size, to avoid
17093         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
17094
17095 2005-09-23  Jim Meyering  <jim@meyering.net>
17096
17097         Sync from coreutils.
17098         Correct build failure (socklen_t not defined) on at least
17099         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
17100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
17101
17102 2005-09-23  Jim Meyering  <jim@meyering.net>
17103
17104         * modules/getaddrinfo (Depends-on): Add socklen.
17105
17106 2005-09-23  Bruno Haible  <bruno@clisp.org>
17107
17108         * tests/test-verify.c: New file.
17109
17110 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17111
17112         Sync from coreutils.
17113
17114         * modules/argmatch (Depends-on): Add verify.
17115         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
17116         unistd-safer.
17117         * modules/save-cwd (Depends-on): Likewise.
17118
17119         * modules/openat (Files): Add lib/openat-die.c.
17120         (Depends-on): Remove error, exitfail.
17121         Add dirname.
17122
17123         * modules/verify: New file.
17124         * MODULES.html.sh (Diagnostics <assert.h>): New section,
17125         with "verify" module.
17126
17127 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17128
17129         Sync from coreutils.
17130
17131         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
17132         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
17133         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
17134         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
17135         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
17136         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
17137         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
17138         Don't bother checking for string.h, stdlib.h, unistd.h.
17139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
17140         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
17141         module's job.
17142         * m4/jm-macros.m4 (gl_MACROS): Likewise.
17143         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
17144
17145         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
17146         (gl_GETDATE): Use it.
17147
17148         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
17149
17150 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17151
17152         Sync from coreutils.
17153
17154         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
17155         stat-time.h.
17156         * lib/argmatch.h: Include verify.h
17157         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
17158         (ARGMATCH_ASSERT): Remove; unused.
17159         * lib/canonicalize.c: Assume STDC_HEADERS.
17160         * lib/exclude.c: Include "strcase.h".
17161         * lib/regex_internal.h [!defined _LIBC]: Likewise.
17162         * lib/getusershell.c: Include stdio--.h rather than stdio.h
17163         and stdio-safer.h.
17164         (getusershell): Call fopen, not fopen_safer.
17165         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
17166         Do not include unistd-safer.h.
17167         (save_cwd): Don't call fd_safer; no longer needed
17168         now that we include fcntl--.h.
17169
17170         * lib/getdate.y (relative_time): New type.
17171         (RELATIVE_TIME_0): New constant.
17172         (parser_control): Use relative_time instead of doing it ourselves.
17173         (%union): Add new relative_time rel member.
17174         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
17175         Now typeless.
17176         (relunit, relunit_snumber): Now of type rel.
17177         (zone, rel, relunit, get_date): Adjust to above changes.
17178
17179         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
17180         Do not include unistd-safer.h.
17181         (getloadavg): Don't call fd_safer; no longer needed
17182         now that we include fcntl--.h.
17183
17184         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
17185         (make_dir_parents): Treat ENOSYS like EEXIST.
17186
17187         Improve quality of diagnostics on restore_cwd failure.
17188         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
17189         (make_dir_parents): Last arg is now int * (for errno), not bool *.
17190         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
17191         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
17192         each time through the loop.  Do not diagnose restore_cwd failure;
17193         that is the caller's job (and perhaps the caller does not care).
17194
17195         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
17196         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
17197         If the file already exists but is not a directory, don't bother
17198         to try to make its parents.
17199         Close potential file descriptor leak if we can't chdir("/") (!).
17200         Don't always return true if chdir($PWD) fails; return true only
17201         if the requested action was done successfully (except for the
17202         chdir($PWD)).
17203         Don't log final directory unless we actually made it.
17204         Refactor to avoid duplicate code to fix up permissions.
17205         Don't attempt to fix up parent permissions if chdir($PWD) fails.
17206
17207         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
17208         to make it a bit faster and (I hope) clearer.
17209         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
17210         Fix bug in formats like %2N.
17211
17212         * lib/verify.h: New file.
17213
17214 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17215
17216         Sync from coreutils.
17217         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
17218
17219 2005-09-22  Jim Meyering  <jim@meyering.net>
17220
17221         Sync from coreutils.
17222
17223         * m4/lstat.m4 (gl_FUNC_LSTAT):
17224         Use AC_LIBSOURCES to require lstat.c and lstat.h.
17225         Remove obsolete comment.
17226         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
17227         * m4/xstrtod.m4: Likewise.
17228
17229         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
17230
17231 2005-09-22  Jim Meyering  <jim@meyering.net>
17232
17233         Sync from coreutils.
17234
17235         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
17236
17237         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
17238         the .tm_year member, since otherwise gcc-4.0 would now warn about
17239         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
17240
17241         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
17242         order to avoid an unsuppressible warning from gcc on 64-bit systems.
17243
17244         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
17245         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
17246         when run in a time zone for which daylight savings time is in effect
17247         for the starting date.
17248
17249         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
17250         stop us from restricting permissions of just-created absolute-named
17251         directories.
17252         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
17253         to restore initial working directory.
17254         * lib/mkdir-p.c (make_dir_parents): New parameter:
17255         different_working_dir, to tell caller if/when we change the working
17256         directory and are unable to return to the initial one.
17257         * lib/mkdir-p.h (make_dir_parents): Update prototype.
17258         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
17259         `return false'.  This fixes a bug introduced on 2004-07-30.
17260
17261         * lib/openat.c (fdopendir): Be sure to close the supplied
17262         file descriptor before returning.  This makes our replacement
17263         implementation a little closer to Solaris's, where fdopendir
17264         ties the file descriptor to the returned DIR* pointer.
17265         * lib/openat.c (unlinkat): New function.
17266         * lib/openat.h (unlinkat): Add prototype.
17267         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
17268         (openat_restore_fail): Rename from openat_restore_die.
17269         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
17270
17271         Provide an alternative to exiting immediately upon save_cwd or
17272         restore_cwd failure.  Now, an application can arrange e.g.,
17273         to perform a longjump in that case.
17274         * lib/openat.c: Include dirname.h.
17275         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
17276         (rpl_openat, fdopendir, fstatat): Call openat_save_die
17277         and openat_restore_die rather than calling error directly.
17278         Don't include "error.h" or "exitfail.h"; they're no longer needed.
17279
17280         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
17281         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
17282         define.
17283
17284         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
17285         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
17286                             int utc, int nanoseconds);
17287         Background:
17288         date should not have to allocate a megabyte of virtual memory to
17289         handle a format argument like +%1048575T.  When implemented with
17290         strftime, it must allocate such a buffer, use strftime to fill it
17291         in, print it, then free it.
17292         With fprintftime, it simply prints everything and exits.
17293         With no need for memory allocation, that's one fewer way to fail.
17294         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
17295         optional field width, not before, so we accept %9:z, not %:9z.
17296         (my_strftime): Be sure to use L_('x') for literals.
17297
17298         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
17299         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
17300         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
17301         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
17302         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
17303         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
17304         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
17305         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
17306         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
17307         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
17308         * lib/xgethostname.c, lib/xreadlink.c:
17309         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
17310
17311         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
17312         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
17313         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
17314         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
17315         and don't include <sys/file.h>).
17316
17317 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
17318
17319         Sync from coreutils.
17320
17321         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
17322         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
17323         [!LDAV_DONE]: Avoid unused variable warning.
17324
17325 2005-09-21  Bruno Haible  <bruno@clisp.org>
17326
17327         * lib/unicodeio.h (unicode_to_mb): New declaration.
17328
17329 2005-09-20  Derek Price  <derek@ximbiot.com>
17330
17331         * lib/getaddrinfo.c: Don't include <netdb.h> included from
17332         getaddrinfo.h.
17333
17334 2005-09-20  Bruno Haible  <bruno@clisp.org>
17335
17336         * gnulib-tool: Remove trailing slashes from the values specified for
17337         --source-base, --m4-base, --tests-base, --aux-dir.
17338         Suggested by Simon Josefsson <jas@extundo.com>.
17339
17340 2005-09-20  Bruno Haible  <bruno@clisp.org>
17341
17342         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
17343         func_modules_to_filelist, func_import, func_create_testdir): Make all
17344         sorting results locale-independent, so that gnulib-cache.m4 doesn't
17345         change when gnulib-tool is invoked in a different locale.
17346
17347 2005-09-19  Simon Josefsson  <jas@extundo.com>
17348
17349         * m4/socklen.m4: Fix typo.
17350
17351 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17352
17353         Use a consistent style for including <config.h>.
17354         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
17355         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
17356         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
17357         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
17358         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
17359         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
17360         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
17361         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
17362         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
17363         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
17364         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
17365         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
17366         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
17367         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
17368         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
17369         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
17370         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
17371         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
17372         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
17373         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
17374         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
17375         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
17376         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
17377         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
17378         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
17379         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
17380         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
17381         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
17382         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
17383         lib/xstrtoumax.c, lib/yesno.c:
17384         Standardize inclusion of config.h.
17385         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
17386         lib/inttostr.h:  Removed inclusion of config.h from header files.
17387         * lib/inttostr.c:  Adjusted in-tree users.
17388         * lib/timespec.h: Remove superfluous warning to include config.h.
17389         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
17390         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
17391         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
17392         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
17393         config.h with HAVE_CONFIG_H.
17394
17395 2005-09-19  Jim Meyering  <jim@meyering.net>
17396
17397         * modules/pathmax (License): Change to LGPL.
17398
17399 2005-09-19  Derek Price  <derek@ximbiot.com>
17400
17401         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
17402
17403 2005-09-19  Bruno Haible  <bruno@clisp.org>
17404
17405         * gnulib-tool (import): Provide default for --tests-base.
17406
17407 2005-09-19  Bruno Haible  <bruno@clisp.org>
17408
17409         * doc/quote.texi: New file, extracted from gnulib.texi.
17410         * doc/ctime.texi: New file, extracted from gnulib.texi.
17411         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
17412         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
17413         * doc/gnulib.texi: Include them.
17414
17415 2005-09-18  Bruno Haible  <bruno@clisp.org>
17416
17417         Portability fix.
17418         * gnulib-tool (func_readlink): New function.
17419         (func_ln_if_changed): Use it.
17420
17421 2005-09-18  Bruno Haible  <bruno@clisp.org>
17422
17423         * gnulib-tool: Support --with-tests also with --import.
17424         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
17425         (func_import): Use variables $testsbase and $inctests. Emit a
17426         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
17427         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
17428         SUBDIRS += $testsdir.
17429         (func_create_testdir): Update.
17430
17431 2005-09-18  Bruno Haible  <bruno@clisp.org>
17432
17433         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
17434         instead of $dry_run.
17435         (func_cp_if_changed, func_mv_if_changed): Remove functions.
17436         (func_ln_if_changed): Don't handle dry-run here.
17437         (func_import): In dry-run mode, detect more precisely which actions
17438         would be performed, and don't use "...ing" verbs.
17439
17440 2005-09-18  Bruno Haible  <bruno@clisp.org>
17441
17442         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
17443         (func_import): Use join on two temporary files instead of three nested
17444         loops, in order to determine which files are new or old.
17445
17446 2005-09-18  Bruno Haible  <bruno@clisp.org>
17447
17448         * gnulib-tool (func_import): Comment out code that spits out the
17449         new files with --dry-run.
17450
17451 2005-09-18  Bruno Haible  <bruno@clisp.org>
17452
17453         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
17454
17455 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17456
17457         * lib/stat-time.h: New file.
17458         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
17459         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
17460         in a different way.
17461         (timespec_cmp): New function.
17462         * lib/utimecmp.c: Include stat-time.h.
17463         (SYSCALL_RESOLUTION): Depend on whether various struct stat
17464         members exist, not on the obsolescent ST_MTIM_NSEC.
17465         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
17466
17467 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17468
17469         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
17470
17471 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17472
17473         * MODULES.html.sh (File system functions): Add stat-time.
17474         * modules/stat-time: New file.
17475         * modules/timespec (Files): Remove m4/st_mtim.m4; this
17476         is now done in a different way, by the stat-time module.
17477         * modules/utimecmp (Depends-on): Add stat-time.
17478
17479 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17480
17481         * m4/st_mtim.m4: Remove.  Superseded by...
17482         * m4/stat-time.m4: New file.
17483         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
17484         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
17485
17486 2005-09-15  Derek Price  <derek@ximbiot.com>
17487
17488         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
17489
17490 2005-09-15  Derek Price  <derek@ximbiot.com>
17491
17492         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
17493         * lib/regex_internal.c: Ditto, using this...
17494         (__GNUC_PREREQ): ...new macro.
17495         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
17496         using...
17497         (__GNUC_PREREQ): ...this new macro.
17498
17499         * lib/strstr.h: Include string.h. Define strstr as a macro here.
17500
17501 2005-09-15  Derek Price  <derek@ximbiot.com>
17502             Paul Eggert  <eggert@cs.ucla.edu>
17503
17504         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
17505         changes, consolidating in...
17506         * lib/regex_internal.h: ...this file.
17507
17508 2005-09-13  Jim Meyering  <jim@meyering.net>
17509
17510         * lib/canon-host.c: Filter through gnu indent and reword comments
17511         slightly.
17512         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
17513
17514 2005-09-13  Derek Price  <derek@ximbiot.com>
17515
17516         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
17517         failure.
17518         Reported by Jim Meyering  <jim@meyering.net>.
17519
17520 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
17521
17522         * lib/base64.c: Typo.
17523         (base64_encode): Put b64str in initialized data section.
17524
17525 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17526
17527         Merge glibc and coreutils changes into gnulib, plus a few
17528         extra fixes.
17529         * lib/md5.c: Use #error rather than a string.
17530         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
17531         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
17532         (__attribute__): Define to empty for non recent-GCC.
17533         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
17534         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
17535         Renamed from their non-__ counterparts, with new macros replacing
17536         them if not _LIBC.  Add __THROW attribute.
17537         (rol): Remove.
17538         (struct md5_ctx): Align buffer if using GCC.
17539         * lib/sha1.h (struct sha1_ctx): Likewise.
17540         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
17541         The old name was backwards.
17542         (NOTSWAP): Remove; not used.
17543         (rol): New macro, moved here from md5.h.
17544         (sha1_process_block): Remove a FIXME that doesn't make sense.
17545
17546 2005-09-12  Derek Price  <derek@ximbiot.com>
17547
17548         Return usable errors from canon-host.
17549         * lib/canon-host.h: New file.
17550         * lib/canon-host.c (canon_host): Wrap...
17551         (canon_host_r): ...this new function, which now relies exclusively on
17552         getaddrinfo.
17553         (ch_strerror): New function.
17554         (last_cherror): New global.
17555         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
17556         interface.
17557         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
17558         void *.
17559         (freeaddrinfo): Free ai->ai_canonname when set.
17560
17561 2005-09-12  Derek Price  <derek@ximbiot.com>
17562
17563         Make canon-host require getaddrinfo.
17564         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
17565         AC_LIBSOURCE canon-host.h.  Call...
17566         (gl_PREREQ_CANON_HOST): ...this new function, which requires
17567         gl_GETADDRINFO.
17568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
17569
17570 2005-09-12  Derek Price  <derek@ximbiot.com>
17571
17572         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
17573         LGPL.
17574         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
17575
17576 2005-09-12  Derek Price  <derek@ximbiot.com>
17577
17578         * lib/gai_strerror.c: Include config.h when available.  Include
17579         getaddrinfo.h before other headers to test interface.
17580         Reported by Larry Jones <lawrence.jones@ugs.com>.
17581
17582 2005-09-12  Derek Price  <derek@ximbiot.com>
17583             Paul Eggert  <eggert@cs.ucla.edu>
17584
17585         * modules/glob (Files): Add glob-libc.h.
17586
17587 2005-09-12  Derek Price  <derek@ximbiot.com>
17588             Paul Eggert  <eggert@cs.ucla.edu>
17589
17590         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
17591         glob_.h, glob-libc.h.
17592         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
17593
17594 2005-09-12  Derek Price  <derek@ximbiot.com>
17595             Paul Eggert  <eggert@cs.ucla.edu>
17596
17597         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
17598         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
17599         protecting things that should be done only in gnulib contexts.
17600         * lib/glob_.h: New file, containing only the glob things needed for
17601         gnulib.
17602         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
17603         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
17604         (glob, globfree, glob_pattern_p): Now defined simply in terms of
17605         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
17606         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
17607         and to respect the namespace rules better.
17608
17609 2005-09-08  Simon Josefsson  <jas@extundo.com>
17610
17611         * modules/socklen: New file.
17612
17613 2005-09-08  Simon Josefsson  <jas@extundo.com>
17614
17615         * m4/socklen.m4: New file.
17616
17617 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17618
17619         * modules/utimens (Files): Add m4/utimbuf.m4, since
17620         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
17621         Reported by Sergey Poznyakoff.
17622
17623 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17624
17625         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
17626         definitions, since that's the preferred style in glibc.
17627         Fix a minor spacing issue, and update copyright notice to match
17628         glibc's.
17629
17630 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17631
17632         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
17633
17634 2005-09-06  Simon Josefsson  <jas@extundo.com>
17635
17636         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
17637         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
17638
17639 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17640
17641         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
17642         warning.
17643
17644 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17645
17646         * config/srclist.txt: Add glibc bug 1302.
17647
17648 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17649
17650         Change bitset word type from unsigned int to unsigned long int,
17651         as this has better performance on typical 64-bit hosts.
17652         Port bitset code to hosts with unusual word sizes.
17653         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
17654         (build_collating_symbol):
17655         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
17656         argument is a bitset.  This is merely a style issue, but it makes
17657         it clearer that an entire array is expected.
17658         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
17659         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
17660         Port to the case where bitset_word is not the same as unsigned int.
17661         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17662         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
17663         Likewise.
17664         * lib/regexec.c (check_dst_limits_calc_pos_1,
17665         check_subexp_matching_top):
17666         (build_trtable, group_nodes_into_DFAstates):
17667         Likewise.
17668         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
17669         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
17670         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
17671         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
17672         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
17673         * lib/regcomp.c (optimize_subexps, lower_subexp):
17674         Work even if bitset_word has holes in its bitwise representation.
17675         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
17676         * lib/regexec.c (check_dst_limits_calc_pos_1,
17677         check_subexp_matching_top):
17678         Likewise.
17679         * lib/regex_internal.c (re_string_reconstruct):
17680         Don't assume UCHAR_MAX == 255.
17681         * lib/regex_internal.h (bitset_set_all): Likewise.
17682         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
17683         All uses changed.
17684         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
17685         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
17686         All uses changed.
17687         (BITSET_WORD_MAX): New macro.
17688         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
17689         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
17690         (bitset_empty, bitset_copy):
17691         Prefer sizeof (bitset) to multiplying it out ourselves.
17692         (bitset_not_merge): Remove; unused.
17693         (bitset_contain): Return bool, not unsigned int with one bit on.
17694         All callers changed.
17695         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
17696         alignment than re_node_set; do this by defining a new internal
17697         type struct dests_alloc and using it to allocate memory.
17698
17699 2005-09-05  Bruno Haible  <bruno@clisp.org>
17700
17701         * gnulib-tool (func_import): Fix comparison in handling of symbolic
17702         links.
17703
17704 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
17705
17706         * modules/size_max (Makefile.am): Add size_max.h
17707
17708 2005-09-04  Derek Price  <derek@ximbiot.com>
17709
17710         * gnulib-tool (func_import): Fix reversed $symbolic logic.
17711
17712 2005-09-03  Simon Josefsson  <jas@extundo.com>
17713
17714         * gnulib-tool: Fix typo.
17715
17716 2005-09-03  Simon Josefsson  <jas@extundo.com>
17717
17718         * config/srclist.txt: Add glibc bug 1293.
17719
17720 2005-09-03  Derek Price  <derek@ximbiot.com>
17721
17722         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
17723         From Larry Jones <lawrence.jones@ugs.com>.
17724
17725 2005-09-02  Simon Josefsson  <jas@extundo.com>
17726
17727         * modules/socklen: New file.
17728
17729 2005-09-02  Simon Josefsson  <jas@extundo.com>
17730
17731         * modules/havelib: New module.
17732
17733         * modules/gettext, modules/iconv, modules/lock, modules/readline:
17734         Use havelib.
17735
17736 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17737
17738         Check for arithmetic overflow when calculating sizes, to prevent
17739         some buffer-overflow issues.  These patches are conservative, in the
17740         sense that when I couldn't determine whether an overflow was possible,
17741         I inserted a run-time check.
17742         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
17743         macros.
17744         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
17745         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
17746         (re_xnrealloc, re_x2nrealloc): New inline functions.
17747         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
17748         parse_bracket_exp):
17749         (build_equiv_class, build_charclass): Check for arithmetic overflow
17750         in size expression calculations.
17751         * lib/regex_internal.c (re_string_realloc_buffers):
17752         (build_wcs_upper_buffer, re_node_set_add_intersect):
17753         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
17754         (re_dfa_add_node, register_state): Likewise.
17755         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
17756         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
17757         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
17758         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
17759
17760 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17761
17762         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17763         m4/ulonglong.m4.  Problem reported by Martin Lambers.
17764
17765 2005-09-02  Bruno Haible  <bruno@clisp.org>
17766
17767         Support for lib vs. lib64 distinction on biarch platforms.
17768         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
17769         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
17770         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
17771
17772 2005-09-02  Bruno Haible  <bruno@clisp.org>
17773
17774         * gnulib-tool (import): In the other first-use case, provide defaults
17775         as well.
17776
17777 2005-09-02  Bruno Haible  <bruno@clisp.org>
17778
17779         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
17780         patches not yet found in the latest gettext release.
17781
17782 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17783
17784         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
17785         to avoid a collision with bits/local_lim.h in glibc.
17786         All uses changed.  Problem reported by Dmitry V. Levin in
17787         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
17788
17789         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
17790         bugs in int versus size_t comparisons.
17791         (re_string_context_at): Fix bug where the code assumed that
17792         Idx is signed.
17793
17794         Use bool where appropriate.
17795         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
17796         All callers changed.
17797         (calc_eclosure_iter): Likewise, for ROOT arg.
17798         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
17799         (build_charclass_op): Likewise, for NON_MATCH arg.
17800         * lib/regex_internal.c (re_string_allocate, re_string_construct):
17801         (re_string_construct_common): Likewise, for ICASE arg.
17802         * lib/regexec.c (re_search_2_stub, re_search_stub):
17803         Likewise, for RET_LEN arg.
17804         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
17805         (set_regs): Likewise, for FL_BACKTRACK arg.
17806         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
17807         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
17808         (calc_eclosure_iter, parse_bracket_exp):
17809         Use bool for internal variables that are booleans.
17810         * lib/regexec.c (re_search_internal, check_matching,
17811         proceed_next_node):
17812         (set_regs, build_sifted_states, sift_states_bkref):
17813         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
17814         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17815         (find_collation_sequence_value):
17816         Likewise.
17817         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
17818         (re_node_set_compare):
17819         Return bool, not int. All callers changed.
17820         * lib/regexec.c (check_halt_node_context, check_dst_limits):
17821         (build_trtable, check_node_accept): Likewise.
17822         * lib/regex_internal.h: Include stdbool.h.
17823
17824         Fix bugs uncovered when converting to bool.
17825         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
17826         failure instead of charging ahead blindly.
17827         * lib/regex_internal.c (register_state): Likewise.
17828         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
17829         for freeing internal storage.
17830         (group_nodes_into_DFA_states): Use unsigned int, not int, for
17831         bitset pieces used as boolean, to avoid undefined behavior
17832         on hosts that do int overflow checking.
17833
17834 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17835
17836         * config/srclist.txt: Add glibc bugs 1285-1287.
17837
17838 2005-09-01  Jim Meyering  <jim@meyering.net>
17839
17840         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
17841         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
17842         Require gl_STAT_MACROS, too.
17843
17844 2005-09-01  Bruno Haible  <bruno@clisp.org>
17845
17846         * gnulib-tool (import): In the first-use case, provide defaults.
17847
17848 2005-09-01  Bruno Haible  <bruno@clisp.org>
17849
17850         * gnulib-tool (func_import): Remove the .tmp files.
17851
17852 2005-09-01  Bruno Haible  <bruno@clisp.org>
17853
17854         * gnulib-tool (func_import): Fix handling of symbolic links.
17855
17856 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17857
17858         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
17859         old glibc regex code mishandles strings longer than 2**31 bytes.
17860         This patch fixes this when the regex code is used in gnulib
17861         (i.e., outside glibc).
17862
17863         This patch should not affect the use of the regex code inside
17864         glibc.  No doubt this problem also needs to be handled for glibc
17865         as well, but the result will be an incompatible change to the
17866         glibc ABI, and the old ABI will have to be supported too.  That
17867         can be the the subject for another patch.
17868
17869         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
17870         governing whether the rest of this patch is active.  By default,
17871         the macro is disabled and the patch has no effect.
17872         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
17873         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
17874         (struct re_pattern_buffer, re_search, re_search_2, re_match):
17875         (re_match_2, re_set_registers): Use the new types.
17876         * lib/regex_internal.h (Idx, re_hashval_t): New types.
17877         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
17878         New macros.
17879         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
17880         (re_string_context_at, bin_tree_t, re_dfastate_t):
17881         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
17882         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
17883         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
17884         (re_string_char_size_at, re_string_wchar_at):
17885         (re_string_elem_size_at):
17886         Use the new types and macros to port to 64-bit hosts.
17887         Use unsigned types for internal values, so that the code
17888         mostly works even for arrays larger than SSIZE_MAX.
17889         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
17890         (search_duplicated_node, calc_eclosure_iter, fetch_number):
17891         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
17892         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
17893         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
17894         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
17895         (calc_inveclosure, parse_dup_op, build_range_exp):
17896         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
17897         (fetch_number, create_token_tree, mark_opt_subexp):
17898         Likewise.
17899         * lib/regex_internal.c (re_string_construct_common,
17900         create_ci_newstate):
17901         (create_cd_newstate, re_string_allocate, re_string_construct):
17902         (re_string_realloc_buffers, build_wcs_upper_buffer):
17903         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17904         (re_string_reconstruct, re_string_peek_byte_case):
17905         (re_string_fetch_byte_case, re_string_context_at):
17906         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17907         (re_node_set_init_copy, re_node_set_add_intersect):
17908         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17909         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17910         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17911         (re_acquire_state, re_acquire_state_context, register_state):
17912         Likewise.
17913         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
17914         search_cur_bkref_entry):
17915         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
17916         (re_search_internal, re_search_2_stub, re_search_stub)
17917         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
17918         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
17919         (update_cur_sifted_state, check_dst_limits):
17920         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
17921         (check_subexp_limits, sift_states_bkref, merge_state_array):
17922         (check_subexp_matching_top, get_subexp, get_subexp_sub):
17923         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
17924         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17925         (expand_bkref_cache, check_node_accept_bytes):
17926         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
17927         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
17928         (acquire_init_state_context, check_halt_node_context):
17929         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
17930         (sift_states_backward, clean_state_log_if_needed):
17931         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
17932         (find_recover_state, transit_state_sb, transit_state_mb):
17933         (transit_state_bkref, build_trtable, match_ctx_clean):
17934         Likewise.
17935         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
17936         to work around an assumption that REG_MISSING is negative.
17937
17938         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
17939         (seek_collating_symbol_entry) [defined _LIBC]:
17940         (lookup_collation_sequence_value) [defined _LIBC]:
17941         (build_range_exp, build_collating_symbol) [defined _LIBC]:
17942         Use prototypes rather than old-style function definitions.
17943         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
17944         (transit_state_sb) [0]:
17945         (find_collation_sequence_value) [defined _LIBC]: Likewise.
17946
17947         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
17948         rm_eo.
17949
17950         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
17951         (optimize_subexps, lower_subexp):
17952         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
17953         since the signed shift might overflow.  Use 1u<<31 instead.
17954         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17955         Likewise.
17956         * lib/regexec.c (check_dst_limits_calc_pos_1,
17957         check_subexp_matching_top): Likewise.
17958
17959         * lib/regcomp.c (optimize_subexps, lower_subexp):
17960         Use CHAR_BIT rather than 8, for clarity.
17961         * lib/regexec.c (check_dst_limits_calc_pos_1):
17962         (check_subexp_matching_top): Likewise.
17963         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
17964         have to worry about portability issues when shifting it left.
17965         Remove no-longer-needed test for table_size > 0.
17966         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
17967         in a word, as the resulting behavior is undefined.
17968         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
17969         in one case, a <= should have been an <, and in another case the
17970         whole test was missing.
17971         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
17972         the standard name CHAR_BIT.
17973         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
17974         this is not true on one's complement and signed-magnitude hosts.
17975
17976         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
17977         next_last_offset.
17978         (struct re_dfa_t): Remove unused member states_alloc.
17979         * lib/regcomp.c (init_dfa): Don't initialize unused members.
17980
17981 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17982
17983         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
17984         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
17985         and large-file glibc and in 32-bit large-file Solaris.
17986
17987 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17988
17989         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
17990         lengths fit in regoff_t; this isn't true if regoff_t is the same
17991         width as size_t.
17992         * lib/regex.c (re_search_internal): 5th arg is LAST_START
17993         (= START + RANGE) instead of RANGE.  This avoids overflow
17994         problems when regoff_t is the same width as size_t.
17995         All callers changed.
17996         (re_search_2_stub): Check for overflow when adding the
17997         sizes of the two strings.
17998         (re_search_stub): Check for overflow when adding START
17999         to RANGE; if it occurs, substitute the extreme value.
18000
18001 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18002
18003         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
18004
18005 2005-08-31  Jim Meyering  <jim@meyering.net>
18006
18007         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
18008         a pointer-to-const.
18009         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
18010         (register_state): Likewise.
18011         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
18012         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18013         (group_nodes_into_DFAstates): Likewise.
18014
18015 2005-08-31  Jim Meyering  <jim@meyering.net>
18016
18017         * check-module: Add a FIXME comment.
18018
18019 2005-08-31  Eric Blake  <ebb9@byu.net>
18020
18021         * modules/unistd-safer (Files): Add unistd--.h.
18022         * modules/stdio-safer (Files): Add stdio--.h.
18023
18024 2005-08-31  Derek Price  <derek@ximbiot.com>
18025
18026         * lib/getdelim.c (getdelim): Return EOF on EOF.
18027         Reported by Larry Jones <lawrence.jones@ugs.com>.
18028
18029 2005-08-31  Bruno Haible  <bruno@clisp.org>
18030
18031         Avoid unnecessary diffs in the generated lib/Makefile.am.
18032         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
18033         the generated files.
18034         (func_import): Don't set cmd.
18035
18036 2005-08-31  Bruno Haible  <bruno@clisp.org>
18037
18038         * lib/strstr.c: Include <stddef.h>, for NULL.
18039         * lib/strcasestr.c: Likewise.
18040         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18041
18042 2005-08-31  Bruno Haible  <bruno@clisp.org>
18043
18044         * gnulib-tool: New option --macro-prefix.
18045         (func_import): Use macro_prefix.
18046         (import): Handle option --macro-prefix.
18047
18048 2005-08-31  Bruno Haible  <bruno@clisp.org>
18049
18050         * gnulib-tool (import): Rename most ac_* variables to cached_*.
18051         Also use new variables cached_lgpl, cached_libtool.
18052
18053 2005-08-31  Bruno Haible  <bruno@clisp.org>
18054
18055         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
18056         always instantiating them.
18057
18058 2005-08-31  Bruno Haible  <bruno@clisp.org>
18059
18060         * gnulib-tool (func_import): Read the previous cached settings
18061         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
18062         earlier added by gnulib but are now dropped. Warn when a gnulib file
18063         overwrites a non-gnulib file.
18064
18065 2005-08-31  Bruno Haible  <bruno@clisp.org>
18066
18067         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
18068         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
18069         projects that don't keep autogenerated files in CVS. Put into
18070         actioncmd only the specified modules, not the transitive closure.
18071
18072 2005-08-31  Bruno Haible  <bruno@clisp.org>
18073
18074         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
18075         Create directories that shall be filled.
18076         (import): Don't look for gl_* macros in configure.ac. Recurse across
18077         all directories containing a gnulib-cache.m4 files, if meaningful.
18078
18079 2005-08-31  Bruno Haible  <bruno@clisp.org>
18080
18081         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
18082         (import): Set seen_libtool when we see gl_LIBTOOL.
18083
18084 2005-08-31  Bruno Haible  <bruno@clisp.org>
18085
18086         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
18087         declaration macro definitions from generated gnulib.m4.
18088
18089 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
18090
18091         * lib/iconvme.h: Add prototype for iconv_alloc.
18092
18093 2005-08-29  Simon Josefsson  <jas@extundo.com>
18094
18095         * lib/iconvme.c: Fix errno.
18096
18097 2005-08-29  Bruno Haible  <bruno@clisp.org>
18098
18099         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
18100         that it works when the directory contains spaces.
18101
18102 2005-08-29  Bruno Haible  <bruno@clisp.org>
18103
18104         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
18105
18106 2005-08-29  Bruno Haible  <bruno@clisp.org>
18107
18108         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
18109         Emit more advice.
18110
18111 2005-08-29  Bruno Haible  <bruno@clisp.org>
18112         and Stepan Kasal  <kasal@ucw.cz>
18113
18114         * check-module: If more parameters are given, check each of them
18115         separately; add more exceptions, as noted by Jim Meyering.
18116         (check_module): New procedure.
18117         (%exempt_header): Now contains all exceptions.
18118
18119 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
18120
18121         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
18122
18123 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
18124
18125         * lib/iconvme.c: Split iconv_string into iconv_alloc.
18126
18127 2005-08-28  Bruno Haible  <bruno@clisp.org>
18128
18129         * m4/gnulib-tool.m4: New file.
18130
18131 2005-08-27  Jim Meyering  <jim@meyering.net>
18132
18133         * modules/unistd-safer (Files): Add pipe-safer.c.
18134         * modules/fcntl-safer (Files): Add creat-safer.c.
18135
18136 2005-08-27  Jim Meyering  <jim@meyering.net>
18137
18138         * m4/stdlib-safer.m4: New file.  From coreutils.
18139         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
18140         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
18141         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
18142         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
18143         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
18144
18145 2005-08-27  Jim Meyering  <jim@meyering.net>
18146
18147         * lib/fopen-safer.c: Merge minor changes from coreutils.
18148         * lib/dup-safer.c: Likewise.
18149         * lib/fd-safer.c: Likewise.
18150
18151         Merge from coreutils.
18152         * lib/stdio--.h: New file.
18153         * lib/stdlib--.h: New file.
18154         * lib/mkstemp-safer.c: New file.
18155
18156         GNU tar needs these.
18157         * lib/pipe-safer.c: New file.
18158         * lib/creat-safer.c: New file.
18159         * lib/fcntl--.h (creat): Define to creat_safer.
18160         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
18161         * lib/unistd--.h (pipe): Define to pipe_safer.
18162         * lib/unistd-safer.h: Declare pipe_safer.
18163
18164 2005-08-26  Simon Josefsson  <jas@extundo.com>
18165
18166         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
18167         Haible <bruno@clisp.org>.
18168
18169 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
18170
18171         * lib/regex_internal.h: Remove all references to
18172         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
18173         or better.
18174         (bitset_not, bitset_merge, bitset_not_merge):
18175         (bitset_mask, re_string_allocate, re_string_construct):
18176         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
18177         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
18178         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
18179         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
18180         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18181         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18182         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
18183         (re_acquire_state_context):
18184         Remove unnecessary forward decls.
18185         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
18186         Put __attribute at function definition,
18187         now that the function decl has been removed.
18188         * lib/regex_internal.c (re_string_peek_byte_case):
18189         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
18190         Likewise.
18191
18192 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
18193
18194         * m4/regex.m4: Add AC_PREREQ(2.50).
18195         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
18196
18197 2005-08-25  Simon Josefsson  <jas@extundo.com>
18198
18199         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
18200         __fsetlocking.
18201
18202 2005-08-25  Simon Josefsson  <jas@extundo.com>
18203
18204         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
18205         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
18206         GLIBC specific code.
18207
18208 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18209
18210         Make regex safe for g++.  This fixes one real bug (an "err"
18211         that should have been "*err").  g++ problem reported by
18212         Sam Steingold.
18213         * lib/regex_internal.h (re_calloc): New macro, consistent with
18214         re_malloc etc.  All callers of calloc changed to use re_calloc.
18215         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
18216         not int.  All callers changed.
18217         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
18218         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
18219         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
18220         (find_recover_state): Change "err" to "*err"; this fixes what
18221         appears to be a real bug.
18222         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
18223         versus int.
18224
18225 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18226
18227         * modules/regex (Depends-on): Add malloc, since the code
18228         assumes that !malloc(0) means failure.
18229
18230 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18231
18232         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
18233
18234         alloca modernization/simplification for regex.
18235         * lib/regex.c: Remove portability cruft for alloca.  This no longer
18236         needs to be at the start of the file, and can be moved into
18237         regex_internal.h and simplified.
18238         * lib/regex_internal.h: Include <alloca.h>.
18239         (__libc_use_alloca) [!defined _LIBC]: New macro.
18240         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
18241         now works outside glibc.
18242
18243 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18244
18245         * config/srclist.txt: Add glibc bugs 1241, 1245.
18246
18247 2005-08-25  Jim Meyering  <jim@meyering.net>
18248
18249         * lib/open-safer.c: Include <config.h>.
18250         Otherwise, we'd lose LARGEFILE support in any file using
18251         e.g. "fcntl--.h"
18252
18253 2005-08-25  Bruno Haible  <bruno@clisp.org>
18254
18255         * m4/minmax.m4: Require autoconf 2.52.
18256         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
18257         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
18258         alternatives of translit over the alphabet.
18259         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
18260
18261 2005-08-24  Simon Josefsson  <jas@extundo.com>
18262
18263         * tests/test-getpass.c: New file.
18264
18265 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18266
18267         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
18268         for GNU regex features.
18269
18270 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18271
18272         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
18273         * lib/regex.h (regerror): Likewise.
18274
18275         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
18276         requires this.  (The code never needed it.)
18277
18278         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
18279         All uses of recently-renamed identifiers changed to use the new,
18280         POSIX-compliant names.  The code will build and run just fine
18281         without these changes, but it's better to eat our own dog food
18282         and use the standard-conforming names.
18283
18284         * lib/regex.h: Fix a multitude of POSIX name space violations.
18285         These changes have an effect only for programs that define
18286         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
18287         do not change anything for programs compiled in the normal way.
18288         Also, there is no effect on the ABI.
18289
18290         (_REGEX_SOURCE): New macro.
18291         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
18292         defined and _GNU_SOURCE is not; this fixes a name space violation.
18293
18294         Rename the following macros to obey POSIX requirements.
18295         The old names are still visible as macros if _REGEX_SOURCE is defined.
18296         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
18297         RE_BACKSLASH_ESCAPE_IN_LISTS.
18298         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
18299         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
18300         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
18301         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
18302         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
18303         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
18304         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
18305         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
18306         (REG_INTERVALS): renamed from RE_INTERVALS.
18307         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
18308         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
18309         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
18310         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
18311         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
18312         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
18313         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
18314         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
18315         RE_UNMATCHED_RIGHT_PAREN_ORD.
18316         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
18317         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
18318         (REG_DEBUG): renamed from RE_DEBUG.
18319         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
18320         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
18321         unusual, since we can't clash with the POSIX REG_ICASE.
18322         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
18323         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
18324         (REG_NO_SUB): renamed from RE_NO_SUB.
18325         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
18326         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
18327         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
18328         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
18329         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
18330         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
18331         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
18332         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
18333         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
18334         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
18335         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
18336         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
18337         RE_SYNTAX_POSIX_MINIMAL_BASIC.
18338         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
18339         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
18340         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
18341         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
18342         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
18343         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
18344         (REG_FIXED): Renamed from REGS_FIXED.
18345         (REG_NREGS): Renamed from RE_NREGS.
18346
18347         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
18348         of other REG_* macros, since POSIX says the user is allowed to
18349         #undef these macros selectively.
18350
18351         (reg_errcode_t): Update comment stating what other tables need
18352         to be consistent.
18353
18354         Rename the following enum values to obey POSIX requirements.
18355         The old names are still visible as macros.
18356         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
18357         is not defined, since GNU is supposed to be a superset of POSIX as
18358         much as possible, and since we want reg_errcode_t to be a signed
18359         type for implementation consistency.
18360         (_REG_NOERROR): Renamed from REG_NOERROR.
18361         (_REG_NOMATCH): Renamed from REG_NOMATCH.
18362         (_REG_BADPAT): Renamed from REG_BADPAT.
18363         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
18364         (_REG_ECTYPE): Renamed from REG_ECTYPE.
18365         (_REG_EESCAPE): Renamed from REG_EESCAPE.
18366         (_REG_ESUBREG): Renamed from REG_ESUBREG.
18367         (_REG_EBRACK): Renamed from REG_EBRACK.
18368         (_REG_EPAREN): Renamed from REG_EPAREN.
18369         (_REG_EBRACE): Renamed from REG_EBRACE.
18370         (_REG_BADBR): Renamed from REG_BADBR.
18371         (_REG_ERANGE): Renamed from REG_ERANGE.
18372         (_REG_ESPACE): Renamed from REG_ESPACE.
18373         (_REG_BADRPT): Renamed from REG_BADRPT.
18374         (_REG_EEND): Renamed from REG_EEND.
18375         (_REG_ESIZE): Renamed from REG_ESIZE.
18376         (_REG_ERPAREN): Renamed from REG_ERPAREN.
18377         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
18378         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
18379         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
18380         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
18381
18382         (_REG_RE_NAME, _REG_RM_NAME): New macros.
18383         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
18384         changed.  But support the old name if the new one is not defined
18385         and if _REGEX_SOURCE.
18386
18387         Change the following member names in struct re_pattern_buffer.
18388         The old names are still supported if !_REGEX_SOURCE.
18389         The new names are always supported, regardless of _REGEX_SOURCE.
18390         (re_buffer): Renamed from buffer.
18391         (re_allocated): Renamed from allocated.
18392         (re_used): Renamed from used.
18393         (re_syntax): Renamed from syntax.
18394         (re_fastmap): Renamed from fastmap.
18395         (re_translate): Renamed from translate.
18396         (re_can_be_null): Renamed from can_be_null.
18397         (re_regs_allocated): Renamed from regs_allocated.
18398         (re_fastmap_accurate): Renamed from fastmap_accurate.
18399         (re_no_sub): Renamed from no_sub.
18400         (re_not_bol): Renamed from not_bol.
18401         (re_not_eol): Renamed from not_eol.
18402         (re_newline_anchor): Renamed from newline_anchor.
18403
18404         Change the following member names in struct re_registers.
18405         The old names are still supported if !_REGEX_SOURCE.
18406         The new names are always supported, regardless of _REGEX_SOURCE.
18407         (rm_num_regs): Renamed from num_regs.
18408         (rm_start): Renamed from start.
18409         (rm_end): Renamed from end.
18410
18411         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
18412         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
18413         Prepend __ to parameter names.
18414
18415         Undo yesterday's changes.
18416
18417 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18418
18419         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
18420         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
18421         lib/regex.c.
18422
18423 2005-08-24  Jim Meyering  <jim@meyering.net>
18424
18425         Sync from coreutils.
18426         * m4/fcntl-safer.m4: New file.
18427
18428         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
18429         and object files for this module.
18430
18431 2005-08-24  Jim Meyering  <jim@meyering.net>
18432
18433         Sync from coreutils.
18434         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
18435
18436 2005-08-24  Jim Meyering  <jim@meyering.net>
18437
18438         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
18439         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
18440
18441 2005-08-24  Jim Meyering  <jim@meyering.net>
18442
18443         * modules/fcntl-safer: New module.
18444         * modules/fts (Depends-on): Add fcntl-safer.
18445         * MODULES.html.sh (File descriptor based Input/Output):
18446         Add fcntl-safer.
18447
18448 2005-08-24  Bruno Haible  <bruno@clisp.org>
18449
18450         Support for unit test modules.
18451         * modules/README: Mention tests modules.
18452         * modules/TEMPLATE-TESTS: New file.
18453         * gnulib-tool: New options --extract-tests-module, --with-tests and
18454         --tests-base (unused for the moment).
18455         (testsbase, inctests): New variables.
18456         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
18457         (func_verify_module): Exclude TEMPLATE-TESTS.
18458         (func_verify_nontests_module, func_verify_tests_module): New functions.
18459         (func_get_dependencies): Add implicit dependency for tests modules.
18460         (func_get_tests_module): New function.
18461         (func_modules_transitive_closure): When --with-tests was specified,
18462         include the unit tests as well, unless explicitly avoided.
18463         (func_emit_lib_Makefile_am): Ignore the tests modules here.
18464         (func_emit_tests_Makefile_am): New function.
18465         (func_create_testdir): When --with-tests was specified, emit a
18466         tests/ directory.
18467         * MODULES.html.sh (Future developments): Update.
18468
18469 2005-08-24  Bruno Haible  <bruno@clisp.org>
18470
18471         * modules/tls-tests: New file.
18472         * tests/test-tls.c: New file, from GNU gettext.
18473
18474 2005-08-24  Bruno Haible  <bruno@clisp.org>
18475
18476         * modules/lock-tests: New file.
18477         * tests/test-lock.c: New file, from GNU gettext.
18478
18479 2005-08-24  Bruno Haible  <bruno@clisp.org>
18480
18481         * lib/lock.h: Add multiple inclusion guard.
18482         * lib/tls.h: Add multiple inclusion guard.
18483
18484 2005-08-24  Bruno Haible  <bruno@clisp.org>
18485
18486         * gnulib-tool: Add support for the --aux-dir option to
18487         --create-testdir, --create-megatestdir, --test, --megatest.
18488         (func_create_testdir, func_create_megatestdir): Optionally emit a
18489         AC_CONFIG_AUX_DIR directive.
18490         (create-testdir, create-megatestdir, test, megatest): Provide a
18491         default value for $auxdir.
18492
18493 2005-08-24  Bruno Haible  <bruno@clisp.org>
18494
18495         * gnulib-tool (import): Use compound statement instead of subshell
18496         where possible.
18497
18498 2005-08-24  Bruno Haible  <bruno@clisp.org>
18499
18500         * gnulib-tool (import): Change --aux-dir default to "build-aux".
18501
18502 2005-08-24  Bruno Haible  <bruno@clisp.org>
18503
18504         * gnulib-tool (func_version): Update.
18505
18506 2005-08-24  Bruno Haible  <bruno@clisp.org>
18507
18508         * gnulib-tool (func_import, func_create_testdir,
18509         func_create_megatestdir): Quote all autoconf macro arguments.
18510
18511 2005-08-24  Bruno Haible  <bruno@clisp.org>
18512
18513         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
18514         option --force, because --force causes the aclocal.m4 of each
18515         subdirectory to be newer than the corresponding config.h.in.
18516
18517 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18518
18519         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
18520         All contents moved to gl_REGEX.
18521         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
18522         assume that it does.
18523
18524 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18525
18526         * lib/regex.h (REG_NOSYS)
18527         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
18528         Define, since POSIX requires it as of 2001.
18529         (_REG_ENOSYS)
18530         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
18531         New private symbol, used to keep the enum signed in all cases.
18532         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
18533         Youngman in
18534         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
18535
18536         * lib/regex_internal.c (re_string_skip_chars, register_state):
18537         (calc_state_hash):
18538         Remove forward decls; no longer needed now that we use prototypes.
18539         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
18540         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
18541         (clean_state_log_if_needed): Likewise.
18542
18543 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18544
18545         * config/srclist.txt: Add glibc bugs 1231-1233.
18546
18547 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18548
18549         Fix problems reported by Sam Steingold in
18550         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
18551         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
18552         assumed that reg_errcode_t is a signed type, which is not
18553         necessarily true if _XOPEN_SOURCE is not defined.
18554         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
18555         since some compilers warn about it otherwise.
18556
18557 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18558
18559         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
18560         (init_word_char, create_initial_state, duplicate_node_closure):
18561         (fetch_token, peek_token_bracket, build_range_exp):
18562         (build_collating_symbol): Remove forward decls; no longer needed
18563         now that we use prototypes.
18564
18565         * lib/regcomp.c:
18566         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
18567         (re_compile_fastmap_iter, regcomp, regerror, regfree):
18568         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
18569         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
18570         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
18571         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
18572         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
18573         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
18574         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
18575         (build_range_exp, build_collating_symbol, parse_bracket_exp):
18576         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
18577         (build_charclass, build_charclass_op, fetch_number, create_tree):
18578         (create_token_tree, mark_opt_subexp, duplicate_tree):
18579         Use prototypes rather than old-style definitions.
18580
18581         * lib/regex_internal.c:
18582         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
18583         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
18584         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18585         (re_string_reconstruct, re_string_peek_byte_case):
18586         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
18587         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18588         (re_node_set_init_copy, re_node_set_add_intersect):
18589         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18590         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18591         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18592         (re_acquire_state, re_acquire_state_context, register_state):
18593         (create_ci_newstate, create_cd_newstate, free_state):
18594         Likewise.
18595         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
18596         re_search_2):
18597         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
18598         (re_search_internal, prune_impossible_nodes):
18599         (acquire_init_state_context, check_matching, static):
18600         (check_halt_node_context, check_halt_state_context, proceed_next_node):
18601         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
18602         (update_regs, sift_states_backward, build_sifted_states):
18603         (clean_state_log_if_needed, merge_state_array):
18604         (update_cur_sifted_state, add_epsilon_src_nodes):
18605         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
18606         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
18607         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
18608         (find_recover_state, check_subexp_matching_top, transit_state_mb):
18609         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
18610         (check_arrival, check_arrival_add_next_nodes):
18611         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18612         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18613         (check_node_accept_bytes, check_node_accept, extend_buffers):
18614         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
18615         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
18616         (sift_ctx_init):
18617         Likewise.
18618
18619         * lib/regex_internal.h:
18620         (re_string_allocate, re_string_construct, re_string_reconstruct):
18621         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
18622         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
18623         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
18624         (re_string_context_at, re_string_peek_byte_case):
18625         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
18626         is defined, since we now use prototypes always.
18627
18628         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
18629         C89 or better.  All uses removed.
18630
18631 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18632
18633         * config/srclist.txt: Add glibc bugs 1220-1227.
18634
18635 2005-08-20  Jim Meyering  <jim@meyering.net>
18636
18637         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
18638         of unused local, dfa.
18639
18640 2005-08-20  Bruno Haible  <bruno@clisp.org>
18641
18642         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
18643
18644 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18645
18646         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
18647         (re_node_set_insert_last, re_dfa_add_node):
18648         Rename local variables to avoid GCC shadowing warnings.
18649
18650 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18651
18652         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
18653         [defined lint]: Suppress bogus uninitialized-variable warnings.
18654
18655         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
18656         and let the caller return REG_ESPACE if out of space.  This
18657         removes an uninitialied-variable warning with GCC 4.0.1, and also
18658         avoids taking the address of a local variable.  All callers
18659         changed.
18660
18661 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18662
18663         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
18664         $LIBCSRC/posix/regexec.c.
18665         Add glibc bug 1217 for regcomp.c.
18666
18667 2005-08-19  Jim Meyering  <jim@meyering.net>
18668
18669         * lib/regexec.c (proceed_next_node): Redo local variables to
18670         avoid GCC shadowing warnings.
18671
18672 2005-08-18  Bruno Haible  <bruno@clisp.org>
18673
18674         * lib/strstr.c (strstr): Fix return value in multibyte case.
18675         * lib/strcasestr.c (strcasestr): Likewise.
18676
18677 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18678
18679         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
18680
18681 2005-08-17  Jim Meyering  <jim@meyering.net>
18682
18683         Make the %s format (seconds since the epoch) work for a negative
18684         number and when used with a zero-padded field width, e.g. %015s.
18685
18686         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
18687         label so that it precedes the code to set `digits'.  Otherwise,
18688         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
18689         print `00-22'.  Now, it prints `-0022', as it should.
18690
18691 2005-08-17  Bruno Haible  <bruno@clisp.org>
18692
18693         * modules/strstr (Files): Add m4/mbrtowc.m4.
18694         (Depends-on): Add mbuiter.
18695
18696 2005-08-17  Bruno Haible  <bruno@clisp.org>
18697
18698         * modules/strcasestr: New file.
18699         * MODULES.html.sh (String handling, based on ANSI C 89): Add
18700         strcasestr.
18701
18702 2005-08-17  Bruno Haible  <bruno@clisp.org>
18703
18704         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
18705
18706 2005-08-17  Bruno Haible  <bruno@clisp.org>
18707
18708         * modules/mbuiter: New file.
18709         * MODULES.html.sh (Extended multibyte and wide character utilities):
18710         Add mbuiter.
18711
18712 2005-08-17  Bruno Haible  <bruno@clisp.org>
18713
18714         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
18715         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
18716
18717 2005-08-17  Bruno Haible  <bruno@clisp.org>
18718
18719         * m4/strcasestr.m4: New file.
18720
18721 2005-08-17  Bruno Haible  <bruno@clisp.org>
18722
18723         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
18724         * lib/strstr.c: Completely rewritten, with multibyte locale support.
18725
18726 2005-08-17  Bruno Haible  <bruno@clisp.org>
18727
18728         * lib/strcasestr.h: New file.
18729         * lib/strcasestr.c: New file.
18730
18731 2005-08-17  Bruno Haible  <bruno@clisp.org>
18732
18733         * lib/strcasecmp.c: Use mbuiter.h.
18734
18735 2005-08-17  Bruno Haible  <bruno@clisp.org>
18736
18737         * lib/mbuiter.h: New file.
18738
18739 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18740
18741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
18742         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
18743         and gl_GETOPT are both invoked via different paths (as happens
18744         with GNU tar CVS because it uses both argp and getopt), the former
18745         wins.
18746
18747 2005-08-16  Bruno Haible  <bruno@clisp.org>
18748
18749         * modules/tls: New file.
18750         * MODULES.html.sh (Multithreading): Add tls.
18751
18752 2005-08-16  Bruno Haible  <bruno@clisp.org>
18753
18754         * modules/strnlen1: New file.
18755         * MODULES.html.sh (String handling): Add strnlen1.
18756
18757 2005-08-16  Bruno Haible  <bruno@clisp.org>
18758
18759         * modules/strcase (Files): Add m4/mbrtowc.m4.
18760         (Depends-on): Add strnlen1, mbchar.
18761
18762 2005-08-16  Bruno Haible  <bruno@clisp.org>
18763
18764         * modules/mbiter: New file.
18765         * MODULES.html.sh (Extended multibyte and wide character utilities):
18766         Add mbiter.
18767
18768 2005-08-16  Bruno Haible  <bruno@clisp.org>
18769
18770         * modules/mbfile: New file.
18771         * MODULES.html.sh (Extended multibyte and wide character utilities):
18772         Add mbfile.
18773
18774 2005-08-16  Bruno Haible  <bruno@clisp.org>
18775
18776         * modules/mbchar: New file.
18777         * MODULES.html.sh (Extended multibyte and wide character utilities):
18778         New section.
18779
18780 2005-08-16  Bruno Haible  <bruno@clisp.org>
18781
18782         * m4/tls.m4: New file, from GNU gettext.
18783
18784 2005-08-16  Bruno Haible  <bruno@clisp.org>
18785
18786         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
18787         always.
18788         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
18789
18790 2005-08-16  Bruno Haible  <bruno@clisp.org>
18791
18792         * m4/mbiter.m4: New file.
18793
18794 2005-08-16  Bruno Haible  <bruno@clisp.org>
18795
18796         * m4/mbfile.m4: New file.
18797
18798 2005-08-16  Bruno Haible  <bruno@clisp.org>
18799
18800         * m4/mbchar.m4: New file.
18801
18802 2005-08-16  Bruno Haible  <bruno@clisp.org>
18803
18804         * lib/tls.h: New file, from GNU gettext.
18805         * lib/tls.c: New file, from GNU gettext.
18806
18807 2005-08-16  Bruno Haible  <bruno@clisp.org>
18808
18809         * lib/strnlen1.h: New file.
18810         * lib/strnlen1.c: New file.
18811
18812 2005-08-16  Bruno Haible  <bruno@clisp.org>
18813
18814         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
18815         (mbi_init): Update.
18816         (mbi_avail, mbi_advance): Let the iteration end before the terminating
18817         NUL byte, not after it.
18818
18819 2005-08-16  Bruno Haible  <bruno@clisp.org>
18820
18821         * lib/strcase.h (strcasecmp): Add note in comments.
18822         * lib/strncasecmp.c: Use code from strcasecmp.c.
18823         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
18824         (strcasecmp): Work correctly in multibyte locales.
18825
18826 2005-08-16  Bruno Haible  <bruno@clisp.org>
18827
18828         * lib/mbiter.h: New file.
18829
18830 2005-08-16  Bruno Haible  <bruno@clisp.org>
18831
18832         * lib/mbfile.h: New file.
18833
18834 2005-08-16  Bruno Haible  <bruno@clisp.org>
18835
18836         * lib/mbchar.h: New file.
18837         * lib/mbchar.c: New file.
18838
18839 2005-08-16  Bruno Haible  <bruno@clisp.org>
18840
18841         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
18842         the valid ones. Makes the comparison operations transitive:
18843         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
18844         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
18845
18846 2005-08-15  Simon Josefsson  <jas@extundo.com>
18847
18848         * modules/ssize_t (License): Change to 'unlimited'.
18849
18850         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
18851
18852 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18853
18854         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
18855         Add comments for each pending glibc patch.
18856
18857 2005-08-15  Bruno Haible  <bruno@clisp.org>
18858
18859         * lib/regex.h (__restrict_arr): Don't define to __restrict if
18860         __cplusplus is defined.
18861
18862 2005-08-14  Jim Meyering  <jim@meyering.net>
18863
18864         Sync from coreutils.
18865
18866         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
18867         Use the hash-table-based cycle-detection code not just when
18868         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
18869         Reported by James Youngman in
18870         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
18871         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
18872         FTS_TIGHT_CYCLE_CHECK.
18873         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
18874         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
18875         once again.
18876         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
18877         * lib/fts.c (fd_safer): Remove decl.
18878         Include fcntl--.h rather than unistd-safer.h
18879         (fts_safe_changedir): Don't call fd_safer; no longer needed
18880         now that we include fcntl--.h.
18881
18882 2005-08-12  Simon Josefsson  <jas@extundo.com>
18883
18884         * modules/getndelim2: Use ssize_t module.
18885         * modules/getnline: Likewise.
18886         * modules/safe-read: Likewise.
18887         * modules/xreadlink: Likewise.
18888
18889         * modules/ssize_t: New file.
18890
18891 2005-08-12  Simon Josefsson  <jas@extundo.com>
18892
18893         * m4/readline.m4: Look for termcap, curses or ncurses if required.
18894
18895 2005-08-12  Simon Josefsson  <jas@extundo.com>
18896
18897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18898         ssize_t.
18899
18900 2005-08-12  Simon Josefsson  <jas@extundo.com>
18901
18902         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
18903         readline, getdelim and check_version.
18904         (Support for systems lacking ISO C 99: Sizes of integer types):
18905         Add size_max.
18906
18907 2005-08-12  Bruno Haible  <bruno@clisp.org>
18908
18909         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
18910
18911 2005-08-11  Simon Josefsson  <jas@extundo.com>
18912
18913         * modules/readline: New file.
18914
18915         * modules/strnlen (Files): Add strnlen.h.
18916
18917 2005-08-11  Simon Josefsson  <jas@extundo.com>
18918
18919         * m4/readline.m4: New file.
18920
18921 2005-08-11  Simon Josefsson  <jas@extundo.com>
18922
18923         * lib/readline.h, readline.c: New file.
18924
18925 2005-08-11  Simon Josefsson  <jas@extundo.com>
18926
18927         * doc/gnulib.texi (Initial import, Finishing touches): Mention
18928         gl_AVOID.
18929
18930 2005-08-11  Bruno Haible  <bruno@clisp.org>
18931
18932         * lib/strnlen.h (strnlen): Change parameter name to match comment.
18933
18934 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
18935
18936         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
18937
18938 2005-08-10  Simon Josefsson  <jas@extundo.com>
18939
18940         * tests/test-iconvme.c: New file.
18941
18942 2005-08-10  Simon Josefsson  <jas@extundo.com>
18943
18944         * m4/strnlen.m4: New file.
18945
18946         * m4/strndup.m4: Don't check for strnlen declaration, done in
18947         strnlen.m4.
18948
18949 2005-08-10  Simon Josefsson  <jas@extundo.com>
18950
18951         * lib/strndup.c: Use strnlen.h.
18952
18953         * lib/strnlen.h: New file.
18954
18955 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18956
18957         * README: Typos.
18958
18959 2005-08-02  Simon Josefsson  <jas@extundo.com>
18960
18961         * modules/readline: New file.
18962
18963 2005-08-02  Simon Josefsson  <jas@extundo.com>
18964
18965         * modules/getdelim: New file.
18966
18967         * modules/getline: Rewrite, don't use getndelim2.
18968
18969 2005-08-02  Simon Josefsson  <jas@extundo.com>
18970
18971         * m4/getline.m4: Separate out getdelim stuff into separate module.
18972
18973         * m4/getdelim.m4: New file.
18974
18975 2005-08-02  Simon Josefsson  <jas@extundo.com>
18976
18977         * lib/getline.h, getline.c: Rewrite.
18978
18979         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
18980
18981 2005-07-31  Bruno Haible  <bruno@clisp.org>
18982
18983         * lib/lock.h (gl_lock_initializer): New macro.
18984         (gl_lock_define_initialized): Use it.
18985         (gl_rwlock_initializer): New macro.
18986         (gl_rwlock_define_initialized): Use it.
18987         (gl_recursive_lock_initializer): New macro.
18988         (gl_recursive_lock_define_initialized): Use it.
18989
18990 2005-07-30  Karl Berry  <karl@gnu.org>
18991
18992         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
18993         Report from Ben Pfaff, regarding getopt.
18994
18995 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18996
18997         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
18998         normal way.
18999         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
19000         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
19001         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
19002         (gl_GETOPT): Use the new macros.  Most of the implementation
19003         is moved to the new macros.  This is for programs like Emacs
19004         that don't want all the functionality of gl_GETOPT.
19005
19006 2005-07-26  Bruno Haible  <bruno@clisp.org>
19007
19008         * m4/lock.m4: Update from GNU gettext.
19009
19010 2005-07-26  Bruno Haible  <bruno@clisp.org>
19011
19012         * lib/lock.h: Update from GNU gettext.
19013         * lib/lock.c: Update from GNU gettext.
19014
19015 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
19016
19017         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
19018         obsolescent AC_TRY_RUN.  Include the default includes files, for
19019         'exit'.
19020
19021 2005-07-24  Bruno Haible  <bruno@clisp.org>
19022
19023         * modules/visibility: New file.
19024         * MODULES.html.sh (Misc): Add visibility.
19025
19026 2005-07-24  Bruno Haible  <bruno@clisp.org>
19027
19028         * m4/visibility.m4: New file.
19029
19030 2005-07-24  Bruno Haible  <bruno@clisp.org>
19031
19032         * doc/visibility.texi: New file.
19033
19034 2005-07-22  Bruno Haible  <bruno@clisp.org>
19035
19036         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
19037         $(ALLOCA_H), redundant through BUILT_SOURCES.
19038         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
19039         redundant through BUILT_SOURCES.
19040         * modules/byteswap (Makefile.am): Remove explicit dependency on
19041         $(BYTESWAP_H), redundant through BUILT_SOURCES.
19042         * modules/fnmatch (Makefile.am): Remove explicit dependency on
19043         $(FNMATCH_H), redundant through BUILT_SOURCES.
19044         * modules/getopt (Makefile.am): Remove explicit dependency on
19045         $(GETOPT_H), redundant through BUILT_SOURCES.
19046         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
19047         redundant through BUILT_SOURCES.
19048         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
19049         redundant through BUILT_SOURCES.
19050         * modules/stdbool (Makefile.am): Remove explicit dependency on
19051         $(STDBOOL_H), redundant through BUILT_SOURCES.
19052         * modules/stdint (Makefile.am): Remove explicit dependency on
19053         $(STDINT_H), redundant through BUILT_SOURCES.
19054         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
19055         Remove explicit dependency on $(SYSEXITS_H).
19056         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
19057
19058 2005-07-18  Simon Josefsson  <jas@extundo.com>
19059
19060         * lib/check-version.c (check_version): Accept identical versions too.
19061
19062 2005-07-18  Bruno Haible  <bruno@clisp.org>
19063
19064         * modules/lock: New file.
19065         * MODULES.html.sh (Multithreading): New section.
19066
19067 2005-07-18  Bruno Haible  <bruno@clisp.org>
19068
19069         * m4/lock.m4: New file, from GNU gettext.
19070
19071 2005-07-18  Bruno Haible  <bruno@clisp.org>
19072
19073         * lib/lock.h: New file, from GNU gettext.
19074         * lib/lock.c: New file, from GNU gettext.
19075
19076 2005-07-18  Bruno Haible  <bruno@clisp.org>
19077
19078         * lib/lock.h (gl_once_t): New type.
19079         (gl_once_define, gl_once): New macros.
19080         * lib/lock.c (fresh_once): New variable.
19081         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
19082         functions.
19083
19084 2005-07-16  Simon Josefsson  <jas@extundo.com>
19085
19086         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
19087         workaround, suggested by Bruno.
19088
19089 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19090
19091         * modules/xalloc (Depends-on): Add xalloc-die.
19092         * modules/xvasprintf (Depends-on): Add xalloc-die.
19093
19094 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19095
19096         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
19097         with a minor change.
19098
19099 2005-07-15  Bruno Haible  <bruno@clisp.org>
19100
19101         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
19102         When using lib/poll.c, define poll as rpl_poll.
19103
19104 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
19105
19106         * modules/argp (Depends-on): Remove unlocked-io.
19107
19108 2005-07-14  Derek Price  <derek@ximbiot.com>
19109
19110         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
19111         for glob symlink bug.
19112
19113 2005-07-14  Bruno Haible  <bruno@clisp.org>
19114
19115         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
19116         Instead, test for *_unlocked function declarations directly.
19117
19118 2005-07-11  Simon Josefsson  <jas@extundo.com>
19119
19120         * modules/size_max: New file.
19121
19122         * modules/xsize: Depend on size_max module for size_max.m4.
19123
19124 2005-07-11  Simon Josefsson  <jas@extundo.com>
19125
19126         * lib/size_max.h: New file.
19127
19128 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
19129
19130         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
19131         copyright symbol and the year.
19132         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
19133         (version_etc_va): Use parameterized copyright notice.
19134         Reword to conform to the current GNU coding standards.
19135
19136 2005-07-11  Karl Berry  <karl@gnu.org>
19137
19138         * doc/gnulib.texi (Quoting): new node.
19139         (Initial import): more info, from Patrice.
19140
19141 2005-07-11  Bruno Haible  <bruno@clisp.org>
19142
19143         * gnulib-tool (func_usage): Document option --avoid.
19144         (Command line options): Handle --avoid.
19145         (func_acceptable): New function.
19146         (func_modules_transitive_closure): Use it.
19147
19148 2005-07-11  Bruno Haible  <bruno@clisp.org>
19149
19150         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
19151         Reported by Jim Meyering.
19152
19153 2005-07-10  Bruno Haible  <bruno@clisp.org>
19154
19155         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
19156         Needed when size_t is smaller than 'unsigned int'.
19157         Reported by Paul Eggert.
19158
19159 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19160
19161         * modules/argp (Depends-on): Add unlocked-io
19162
19163 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19164
19165         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
19166         block of defines.
19167
19168 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19169
19170         * config/srclist.txt: Comment out regcomp.c, since we have a porting
19171         fix now.
19172
19173 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
19174         and Paul Eggert  <eggert@cs.ucla.edu>
19175
19176         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
19177         in wint_t, not wchar_t.  Remove now-unnecessary cast.
19178
19179 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19180
19181         * modules/regex (Files): Add lib/regex_internal.c,
19182         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
19183         (Depends-on): Add extensions.
19184         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
19185
19186 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19187
19188         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
19189         pathconf.
19190         * m4/same.m4 (gl_SAME): Likewise.
19191         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
19192
19193         * m4/regex.m4: Adjust to new libc regex implementation.
19194         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
19195         all the .c and .h parts of (the new) regex.
19196         Quote the m4 stuff better.
19197         Check for RE_ICASE bug of old gnulib.
19198         Check for REG_STARTEND of recent libc.
19199         Rename local variables from jm_* to gl_*.
19200         Quote operand of "test -f".
19201         Say "recent enough" version of libc, not "version 2".
19202         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
19203         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
19204         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
19205         Remove check for btowc, isascii.
19206         Require AM_LANGINFO_CODESET.
19207
19208 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19209
19210         * lib/regex.c, regex.h: Sync from libc.
19211         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
19212         * lib/regexec.c:
19213         New files, synced from libc, except that regex_internal.h
19214         currently has a small porting fix.
19215
19216 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19217
19218         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
19219         regex_internal.c, regexec.c.
19220         Add regex_internal.h too, but as a comment, since the libc version
19221         is currently broken in gnulib mode.
19222
19223 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19224
19225         Support programs like Emacs that use gnulib but not gettext.
19226         * MODULES.html.sh (Internationalization functions): Add gettext-h.
19227         * modules/gettext-h: New file.
19228         * modules/gettext (Files): Remove lib/gettext.h.
19229         (Depends-on): Add gettext-h.
19230         (Makefile.am): Remove lib_SOURCES.
19231         * modules/argmatch, modules/c-stack, modules/closeout:
19232         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
19233         * modules/execute, modules/file-type, modules/getaddrinfo:
19234         * modules/getopt, modules/human, modules/javacomp:
19235         * modules/javaexec, modules/mkdir-p, modules/obstack:
19236         * modules/openat, modules/pagealign_alloc, modules/pipe:
19237         * modules/quotearg, modules/regex, modules/rpmatch:
19238         * modules/unicodeio, modules/userspec, modules/version-etc:
19239         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
19240         * modules/xsetenv:
19241         Depend on gettext-h, not gettext.
19242
19243 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19244
19245         * gnulib-tool (func_import): Add support for 'public domain' license.
19246         * modules/alloca, modules/atexit, modules/memmove:
19247         Now public domain, not GPL.
19248         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
19249         * modules/realloc, modules/strerror, modules/strtod:
19250         Now LGPL, not GPL.
19251
19252 2005-07-05  Bruno Haible  <bruno@clisp.org>
19253
19254         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
19255         autoconf CVS. Needed for mingw.
19256
19257 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19258
19259         Remove the dependency of the strftime module on the tzset module.
19260         * modules/strftime (Depends-on): Remove dependency on tzset.
19261
19262 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19263
19264         Remove the dependency of the strftime module on the tzset module.
19265         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
19266         gl_FUNC_TZSET_CLOBBER.
19267
19268 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19269
19270         Remove the dependency of the strftime module on the tzset module.
19271         * lib/strftime.c (my_strftime)
19272         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
19273         Copy the input structure, to work around some of the bug with
19274         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
19275         Solaris releases, you should also use the tzset module, but we won't
19276         require it as a dependency any more since we don't want LGPLed code
19277         to depend on GPLed code.
19278
19279 2005-07-02  Jim Meyering  <jim@meyering.net>
19280
19281         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
19282         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
19283         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
19284         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
19285
19286 2005-07-02  Jim Meyering  <jim@meyering.net>
19287
19288         * lib/backupfile.c (backup_args): Change a `0' to NULL.
19289
19290 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19291
19292         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
19293         declares only 'struct timespec;' (!).
19294
19295 2005-07-01  Jim Meyering  <jim@meyering.net>
19296
19297         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
19298         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
19299         * lib/save-cwd.c, tempname.c:
19300         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
19301         and don't include <sys/file.h>).
19302
19303 2005-06-29  Jim Meyering  <jim@meyering.net>
19304
19305         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
19306         type name.  Use the variable name instead.
19307         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
19308         Likewise.
19309
19310 2005-06-28  Simon Josefsson  <jas@extundo.com>
19311
19312         * modules/check-version (Files): Add check-version.m4.
19313
19314 2005-06-28  Simon Josefsson  <jas@extundo.com>
19315
19316         * m4/check-version.m4: New file, suggested by Jim Meyering
19317         <jim@meyering.net>.
19318
19319 2005-06-28  Simon Josefsson  <jas@extundo.com>
19320
19321         * lib/check-version.h, lib/check-version.c: New files.
19322
19323 2005-06-28  Simon Josefsson  <jas@extundo.com>
19324
19325         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
19326         collision with global variable.  Better indentation.  Don't
19327         increment buffer pointer beyond buffer end.  Based on comments
19328         from Paul Eggert <eggert@cs.ucla.edu>.
19329
19330         * lib/base64.h: Indent.
19331
19332 2005-06-28  Simon Josefsson  <jas@extundo.com>
19333
19334         * doc/gnulib.texi (Library version handling): New section.
19335
19336 2005-06-28  Jim Meyering  <jim@meyering.net>
19337
19338         * check-module (find_included_lib_files): Hard-code another
19339         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
19340         but modules/fts-lgpl (correctly) does not list those files.
19341
19342         * modules/canonicalize (Files): Add lib/pathmax.h.
19343
19344 2005-06-25  Simon Josefsson  <jas@extundo.com>
19345
19346         * modules/check-version: New file.
19347
19348 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19349
19350         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
19351         initializer of struct addrinfo, as an indication that we don't
19352         care how many members the structure has.
19353
19354 2005-06-24  Derek Price  <derek@ximbiot.com>
19355         and Bruno Haible  <bruno@clisp.org>
19356
19357         Remove stat module & update lstat.
19358         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
19359         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19360         * m4/stat.m4: Remove this file.
19361
19362 2005-06-24  Derek Price  <derek@ximbiot.com>
19363         and Bruno Haible  <bruno@clisp.org>
19364
19365         Remove stat module & update lstat.
19366         * lib/stat.c: Remove this file...
19367         (slash_aware_lstat): ...moving this content and its support...
19368         * lib/lstat.c (rpl_lstat): ...into here.
19369         * lib/lstat.h: New file.
19370
19371 2005-06-24  Derek Price  <derek@ximbiot.com>
19372         and Bruno Haible  <bruno@clisp.org>
19373
19374         Remove stat module & update lstat.
19375         * config/srclist.txt (libc sources): Remove stat.
19376
19377 2005-06-24  Derek Price  <derek@ximbiot.com>
19378         and Bruno Haible  <bruno@clisp.org>
19379
19380         Remove stat module & update lstat.
19381         * MODULES.html.sh (stat): Remove.
19382         * MODULES.html: Regenerated.
19383         * modules/lstat (Description): Correct function name.
19384         (Files): Add "lstat.h".
19385         (Depends-on): Remove stat, add xalloc, stat-macros.
19386         * modules/stat: Remove this file.
19387         (Include): Add "lstat.h", remove <sys/stat.h>.
19388
19389 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19390
19391         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
19392         (ranged_convert): Don't save conversion in a temporary struct.
19393         This causes a warning with GCC 4.0.0, and anyway in the typical
19394         case it's not worth the extra 100 bytes or so of code.
19395         (ranged_convert, __mktime_internal): When calling a function via a
19396         pointer P, use P () rather than (*P) (), as we now assume C89 or
19397         better.
19398
19399 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19400
19401         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
19402         "who -r" failed to give output.  Problem reported by Tim Waugh.
19403
19404         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
19405         (xcalloc): Use it to avoid needless tests.
19406         Problem reported by Jim Meyering.
19407
19408 2005-06-20  Derek Price  <derek@ximbiot.com>
19409
19410         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
19411         unnecessary for Autoconfs > 2.59c.
19412
19413 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19414
19415         * lib/argp.h (__option_is_short): Check upper limit of
19416         __key. Isprint() requires its argument to have the value
19417         of an unsigned char or EOF.
19418
19419 2005-06-16  Jim Meyering  <jim@meyering.net>
19420
19421         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
19422         when either N or S is zero.
19423
19424 2005-06-16  Derek Price  <derek@ximbiot.com>
19425
19426         * m4/bison.m4: Declare YACC & YFLAGS precious.
19427
19428 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
19429
19430         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
19431         multibyte string or pattern, fall back on unibyte matching.
19432         Problem reported by James Youngman.
19433
19434 2005-06-08  Bruno Haible  <bruno@clisp.org>
19435
19436         * modules/csharpcomp: New file.
19437         * MODULES.html.sh (C#): Add csharpcomp.
19438
19439 2005-06-08  Bruno Haible  <bruno@clisp.org>
19440
19441         * m4/csharpcomp.m4: New file, from GNU gettext.
19442
19443 2005-06-08  Bruno Haible  <bruno@clisp.org>
19444
19445         * lib/csharpcomp.h: New file, from GNU gettext.
19446         * lib/csharpcomp.c: New file, from GNU gettext.
19447         * lib/csharpcomp.sh.in: New file, from GNU gettext.
19448
19449 2005-06-08  Bruno Haible  <bruno@clisp.org>
19450
19451         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
19452         warning on mingw.
19453
19454 2005-06-07  Derek Price  <derek@ximbiot.com>
19455
19456         Sync from CVS.
19457         * lib/glob_.h: Indent nested #ifdef.
19458
19459 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19460
19461         Sync from coreutils.
19462         Use "file name" when talking about file names, instead of "filename"
19463         or "path", as per the GNU coding standards.
19464         * lib/mkdir-p.c: Renamed from makepath.c.
19465         (make_dir_parents): Renamed from make_path.  All callers changed.
19466         * lib/mkdir-p.h: Likewise.  All includers changed.
19467         * lib/filenamecat.c: Renamed from path-concat.c.
19468         (file_name_concat): Renamed from path_concat.  All callers changed.
19469         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
19470         * lib/filenamecat.h: Likewise.  All includers changed.
19471         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
19472         in comments or local variable names.
19473         * lib/basename.c: Likewise.
19474         * lib/canonicalize.c, canonicalize.h: Likewise.
19475         * lib/dirname.c, dirname.h: Likewise.
19476         * lib/euidaccess.c: Likewise.
19477         * lib/exclude.c: Likewise
19478         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
19479         * lib/fsusage.c, fsuage.h: Likewise.
19480         * lib/fts.c, fts_.h: Likewise.
19481         * lib/getcwd.c: Likewise.
19482         * lib/getloadavg.c: Likewise.
19483         * lib/mkstemp.c: Likewise.
19484         * lib/mountlist.c, mountlist.h: Likewise.
19485         * lib/openat.c, openat.h: Likewise.
19486         * lib/readlink-stub.c: Likewise.
19487         * lib/readutmp.c, readutmp.h: Likewise.
19488         * lib/rename.c: Likewise.
19489         * lib/rmdir.c: Likewise.
19490         * lib/same.c: Likewise.
19491         * lib/savedir.c: Likewise.
19492         * lib/stripslash.c: Likewise.
19493         * lib/tempname.c: Likewise.
19494         * lib/xreadlink.c: Likewise.
19495         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
19496         All uses changed.
19497         * lib/exclude.h: Likewise.
19498
19499         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
19500         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19501         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
19502         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19503         * lib/pathmax.h: Include <limits.h> unconditionally, since other
19504         files have been getting away with it for years (MORE/BSD 4.3
19505         is extinct now).
19506         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
19507         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19508
19509         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
19510         Define to 256, not 255, as per modern POSIX.
19511
19512 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19513
19514         Sync from coreutils.
19515         Use "file name" when talking about file names, instead of "filename"
19516         or "path", as per the GNU coding standards.
19517         * MODULES.html.sh: mkdir-p renamed from makepath.
19518         filenamecat renamed from path-concat.
19519         * modules/filenamecat: Renamed from modules/path-concat.
19520         (Files): filenamecat.h and filenamecat.c renamed from
19521         path-concat.h and path-concat.c.
19522         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
19523         (Include): filenamecat.h, not path-concat.h.
19524         * modules/mkdir-p: Renamed from modules/makepath.
19525         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
19526         makepath.c.
19527         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
19528         (Include): mkdir-p.h, not makepath.h.
19529
19530 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19531
19532         Sync from coreutils.
19533         * m4/mkdir-p.m4: Renamed from makepath.m4.
19534         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
19535         Rename files from makepath.c to mkdir-p.c, and from
19536         makepath.h to mkdir-p.h.
19537         * m4/filenamecat.m4: Renamed from path-concat.m4.
19538         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
19539         Rename files from path-concat.c to filenamecat.c,
19540         and from path-concat.h to filenamecat.h.
19541         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
19542         "file name" in local variables or comments.
19543         * m4/rename.m4: Likewise.
19544
19545 2005-06-01  Bruno Haible  <bruno@clisp.org>
19546
19547         * modules/csharpexec: New file.
19548         * MODULES.html.sh (C#): New section.
19549
19550 2005-06-01  Bruno Haible  <bruno@clisp.org>
19551
19552         * m4/csharp.m4: New file, from GNU gettext.
19553         * m4/csharpexec.m4: New file, from GNU gettext.
19554
19555 2005-06-01  Bruno Haible  <bruno@clisp.org>
19556
19557         * lib/csharpexec.h: New file, from GNU gettext.
19558         * lib/csharpexec.c: New file, from GNU gettext.
19559         * lib/csharpexec.sh.in: New file, from GNU gettext.
19560
19561 2005-05-31  Derek Price  <derek@ximbiot.com>
19562             Paul Eggert  <eggert@cs.ucla.edu>
19563
19564         Sync from cvs.
19565         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
19566
19567 2005-05-31  Derek Price  <derek@ximbiot.com>
19568             Paul Eggert  <eggert@cs.ucla.edu>
19569
19570         Sync from cvs.
19571         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
19572
19573 2005-05-29  Derek Price  <derek@ximbiot.com>
19574
19575         * config/srclist.txt (glob_.h, glob.c): Add these files.
19576
19577 2005-05-29  Derek Price  <derek@ximbiot.com>
19578
19579         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
19580         * modules/glob: New file.
19581         * modules/getlogin_r: Add link to POSIX spec in description.
19582
19583 2005-05-29  Derek Price  <derek@ximbiot.com>
19584             Paul Eggert  <eggert@cs.ucla.edu>
19585
19586         * m4/glob.m4: New file.
19587
19588 2005-05-29  Derek Price  <derek@ximbiot.com>
19589             Paul Eggert  <eggert@cs.ucla.edu>
19590
19591         * lib/glob_.h, lib/glob.c: New files.
19592
19593 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
19594
19595         * modules/fts (Files): Remove m4/inttypes-pri.m4.
19596         * modules/fts-lgpl (Depends-on): Remove gettext.
19597
19598 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
19599
19600         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
19601         and don't require gt_INTTYPES_PRI.
19602
19603 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
19604
19605         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
19606
19607         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
19608         the configuration hassle isn't worth it.
19609         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
19610         (LONGEST_MODIFIER, PRIuMAX): Remove.
19611
19612 2005-05-27  Bruno Haible  <bruno@clisp.org>
19613
19614         * lib/getlogin_r.h: Remove second include of <stddef.h>.
19615
19616 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
19617
19618         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
19619         _POSIX_PTHREAD_SEMANTICS for Solaris.
19620
19621 2005-05-25  Derek Price  <derek@ximbiot.com>
19622
19623         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
19624
19625 2005-05-25  Derek Price  <derek@ximbiot.com>
19626             Paul Eggert  <eggert@cs.ucla.edu>
19627
19628         * modules/getlogin_r, m4/getlogin_r.m4: New files.
19629         * lib/getlogin_r.c, getlogin_r.h: New files.
19630
19631 2005-05-25  Bruno Haible  <bruno@clisp.org>
19632             Derek Price  <derek@ximbiot.com>
19633
19634         * lib/getlogin_r.h: Simplify API documentation.
19635
19636 2005-05-23  Derek Price  <derek@ximbiot.com>
19637
19638         * modules/minmax (Files): Add m4/minmax.m4.
19639         (configure.ac): Add gl_MINMAX.
19640
19641 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19642
19643         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
19644         so that unistd-safer.h (GPL'ed code) need not be included.
19645
19646 2005-05-22  Bruno Haible  <bruno@clisp.org>
19647
19648         * m4/minmax.m4: New file.
19649         Based on a patch by Derek Price <derek@ximbiot.com>.
19650
19651 2005-05-22  Bruno Haible  <bruno@clisp.org>
19652
19653         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
19654         (INT64_MIN): Fix definition.
19655         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
19656
19657         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
19658         NEED_SIGNED_INT_TYPES.
19659
19660         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
19661         HAVE_SYSTEM_INTTYPES.
19662
19663 2005-05-22  Bruno Haible  <bruno@clisp.org>
19664
19665         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
19666         Also include <sys/param.h> if it defines MIN, MAX.
19667         Based on a patch by Derek Price <derek@ximbiot.com>.
19668
19669 2005-05-21  Jim Meyering  <jim@meyering.net>
19670
19671         * modules/fts (Files): Add m4/inttypes-pri.m4.
19672         (Depends-on): Add lstat and remove gettext.  Alphabetize.
19673
19674 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19675
19676         New fts module.
19677         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
19678         (setup_dir, free_dir): New functions.
19679         (enter_dir, leave_dir): Define trivial
19680         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
19681         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
19682         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
19683         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
19684         Move to fts-cycle.c.
19685         (fts_open): Use setup_dir.
19686         (fts_close): Use free_dir.
19687         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
19688         This adds a label and some gotos, but the alternatives were messier.
19689         Check for memory allocation failure when entering a dir.
19690         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
19691         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
19692         (FTS): New member fts_cycle, that is a union that contains the
19693         old active_dir_ht and cycle_state.  All uses changed to mention
19694         fts_cycle.ht and fts_cycle.state.
19695         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
19696         fts.c, with the following changes:
19697         (setup_dir, free_dir): New functions.
19698         (enter_dir): Now returns bool.  Return true if successful, false
19699         if memory exhausted.  All callers changed.
19700         Do not bother partly cleaning up on
19701         memory allocation failure; that is free_dir's job.
19702         However, free ad if hash_insert fails, to avoid memory leak.
19703         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
19704         fts->fts_options to see which union member to use.
19705
19706 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19707
19708         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
19709         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
19710
19711 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19712
19713         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
19714
19715 2005-05-20  Jim Meyering  <jim@meyering.net>
19716
19717         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
19718         Now a macro, to pacify GCC.
19719
19720 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
19721
19722         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
19723         of -1.
19724
19725 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
19726
19727         * lib/chown.c (rpl_chown): Return -1 on failure.
19728
19729 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19730
19731         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
19732         Don't check for stddef.h.
19733         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
19734         don't use its results.
19735         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
19736         since we include them unconditionally.  Don't require
19737         AM_STDBOOL_H, since stdbool is a prerequisite.
19738         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
19739         since we assume C89 or better.
19740         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
19741         as we don't use their results.
19742         Don't check for fchdir, memmove, memset, strrchr, as we use
19743         them unconditionally.
19744         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
19745         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
19746
19747 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19748
19749         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
19750         Include <stddef.h> unconditionally, since we assume C89 now.
19751         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
19752         * lib/fts.c: Include fts_.h first, to check interface.
19753         Do not include intprops.h; no longer needed.
19754         Include cycle-check.h and hash.h, since fts_.h no longer does.
19755         Remove unnecessary casts of closedir to void.
19756         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
19757         decide whether to decrement nlinks.
19758         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
19759         (FTS): Use struct hash_table * instead of Hash_table, so that
19760         we no longer need to include hash.h here.
19761
19762 2005-05-18  Jim Meyering  <jim@meyering.net>
19763
19764         * modules/dirfd (License): Change to LGPL.  Most of the code
19765         is already in the public domain.
19766
19767 2005-05-18  Jim Meyering  <jim@meyering.net>
19768
19769         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
19770         Reported by Yoann Vandoorselaere.
19771
19772 2005-05-17  Jim Meyering  <jim@meyering.net>
19773
19774         * m4/fts.m4: New file, from coreutils.
19775
19776 2005-05-17  Jim Meyering  <jim@meyering.net>
19777
19778         * lib/fts.c, lib/fts_.h: New files, from coreutils.
19779
19780 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19781
19782         Sync from coreutils.
19783         * m4/unlinkdir.m4: New file.
19784
19785 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         Sync from coreutils.
19788         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
19789         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
19790         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
19791         White space changes only.
19792         * lib/makepath.c (make_path): Port to hosts where leading "//" is
19793         special.
19794         * lib/yesno.c: Include getline.h, not ctype.h.
19795         (yesno): Don't remove leading white space; POSIX doesn't allow it.
19796         Use getline to remove arbitrary restriction on response length.
19797
19798 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19799
19800         * config/srclist-update: Spell out "Street" in FSF postal
19801         mail address; this is the style the FSF seems to prefer.
19802
19803         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
19804         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
19805         this updates FSF postal mail address.
19806
19807         Sync from coreutils.
19808         * modules/unlinkdir: New file.
19809         * modules/yesno (Depends-on): Add getline.
19810         * MODULES.html.sh (File system functions): Add unlinkdir.
19811
19812 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19813
19814         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
19815         lib/strsep.h:
19816         Change the initial comment to refer to GPL, not LGPL.
19817         gnulib-tool will change it to LGPL as needed.
19818
19819         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
19820         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
19821         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
19822         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
19823         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
19824         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
19825         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
19826         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
19827         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
19828         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
19829         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
19830         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
19831         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
19832         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
19833         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
19834         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
19835         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
19836         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
19837         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
19838         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
19839         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
19840         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
19841         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
19842         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
19843         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
19844         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
19845         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
19846         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
19847         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
19848         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
19849         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
19850         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
19851         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
19852         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
19853         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
19854         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
19855         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
19856         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
19857         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
19858         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
19859         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
19860         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
19861         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
19862         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
19863         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
19864         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
19865         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
19866         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
19867         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
19868         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
19869         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
19870         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
19871         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
19872         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
19873         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
19874         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
19875         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
19876         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
19877         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
19878         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
19879         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
19880         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
19881         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
19882         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
19883         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
19884         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
19885         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
19886         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
19887         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
19888         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
19889         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
19890         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
19891         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
19892         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
19893         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
19894         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
19895         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
19896         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
19897         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
19898         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
19899         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
19900         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
19901         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
19902         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
19903         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
19904         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
19905         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
19906         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
19907         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
19908         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
19909         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
19910         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
19911         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
19912         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
19913         lib/yesno.c, lib/yesno.h:
19914         Update FSF postal mail address.
19915
19916 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19917
19918         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
19919         tests/test-memmem.c, tests/test-stpncpy.c:
19920         Update FSF postal mail address.
19921
19922 2005-05-13  Bruno Haible  <bruno@clisp.org>
19923
19924         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
19925         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
19926         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
19927         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
19928         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
19929         Add support for 64-bit integers in the MSVC compiler.
19930
19931 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19932
19933         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
19934
19935 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
19936
19937         * gnulib-tool (func_import): Sort and uniquify recommended includes.
19938
19939 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19940
19941         * doc/getdate.texi (General date syntax): Don't say that date
19942         date --iso-8601=ns generates acceptable dates; it doesn't yet.
19943         Problem reported by Nic Ferrier.
19944
19945 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19946
19947         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
19948         specified in ai_socktype. Fix invalid ai_protocol
19949         check. ai_protocol is usually set to 0 or depending on
19950         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
19951         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
19952         ai_socktype / ai_protocol in the returned addrinfo structure.
19953
19954 2005-05-10  Simon Josefsson  <jas@extundo.com>
19955
19956         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
19957         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19958
19959 2005-05-10  Karl Berry  <karl@gnu.org>
19960
19961         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
19962         (from http://www.gnu.org/licenses).
19963         * doc/COPYING.LIB: also rename to COPYING.LESSER.
19964         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
19965         fdl.texi suffices.
19966
19967 2005-05-10  Karl Berry  <karl@gnu.org>
19968
19969         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
19970         (COPYING.DOC): remove.
19971
19972         * config/srclist-update: new FSF address.
19973
19974 2005-05-10  Derek Price  <derek@ximbiot.com>
19975
19976         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
19977         possible.
19978
19979 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19980             Bruno Haible  <bruno@clisp.org>
19981
19982         * modules/inet_ntop: New file.
19983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19984         inet_ntop.
19985
19986 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19987             Bruno Haible  <bruno@clisp.org>
19988
19989         * m4/inet_ntop.m4: New file.
19990
19991 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19992             Bruno Haible  <bruno@clisp.org>
19993
19994         * lib/inet_ntop.h: New file.
19995         * lib/inet_ntop.c: New file, from glibc with modifications.
19996
19997 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19998
19999         * modules/time_r (License): Change to LGPL.
20000         * modules/extensions (License): Change to LGPL.  Actually,
20001         the license is more permissive than that, but currently gnulib-tool
20002         doesn't know how to handle more-permissive licenses.
20003
20004         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
20005         Problem reported by Dave Love.
20006
20007 2005-05-08  Jim Meyering  <jim@meyering.net>
20008
20009         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
20010         blank.
20011
20012 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20013
20014         * modules/argmatch (Depends-on): Add stdbool.
20015         * modules/backupfile (Depends-on): Likewise.
20016         * modules/chdir-long (Depends-on): Likewise.
20017         * modules/closeout (Depends-on): Likewise.
20018         * modules/cycle-check (Depends-on): Likewise.
20019         * modules/dirname (Depends-on): Likewise.
20020         * modules/fnmatch (Depends-on): Likewise.
20021         * modules/fsusage (Depends-on): Likewise.
20022         * modules/fwriteerror (Depends-on): Likewise.
20023         * modules/getcwd (Depends-on): Likewise.
20024         * modules/getloadavg (Depends-on): Likewise.
20025         * modules/hard-locale (Depends-on): Likewise.
20026         * modules/makepath (Depends-on): Likewise.
20027         * modules/mountlist (Depends-on): Likewise.
20028         * modules/nanosleep (Depends-on): Likewise.
20029         * modules/posixtm (Depends-on): Likewise.
20030         * modules/quotearg (Depends-on): Likewise.
20031         * modules/readtokens (Depends-on): Likewise.
20032         * modules/readtokens0 (Depends-on): Likewise.
20033         * modules/readutmp (Depends-on): Likewise.
20034         * modules/save-cwd (Depends-on): Likewise.
20035         * modules/strftime (Depends-on): Likewise.
20036         * modules/userspec (Depends-on): Likewise.
20037         * modules/utimecmp (Depends-on): Likewise.
20038         * modules/xgetcwd (Depends-on): Likewise.
20039         * modules/xnanosleep (Depends-on): Likewise.
20040         * modules/xstrtod (Depends-on): Likewise.
20041         * modules/yesno (Depends-on): Likewise.
20042
20043 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20044
20045         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
20046         needless checks.
20047
20048 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20049
20050         Merge from coreutils.  Among other things,
20051         add bulletproofing for cases where stdin, stdout, or stderr are closed.
20052         * lib/fd-safer.c: New file.
20053         * lib/fcntl-safer.h, open-safer.c: Remove.
20054         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
20055         * lib/dup-safer.c: Include unistd-safer.h first.
20056         Don't include errno.h.
20057         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
20058         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
20059         * lib/file-type.c: Rely on file-type.h change.
20060         * lib/getloadavg.c: Include unistd-safer.h.
20061         (getloadavg): Use safer open.
20062         * lib/getusershell.c: Include "stdio-safer.h".
20063         (getusershell): Use safer fopen.
20064         * lib/long-options.c (long_options): Use NULL rather than 0.
20065         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
20066         'free'.
20067         * lib/modechange.c: Likewise.
20068         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
20069         (MODE_DONE): New constant.
20070         (struct mode_change): Remove 'next' member.
20071         (make_node_op_equals): New function; like the old one of the
20072         same name, except it allocates an array.
20073         (mode_compile, mode_create_from_ref): Use it.
20074         (mode_compile): Allocate result as an array, not a linked list.
20075         Parse octal string ourself, so that we catch mistakes like "+0".
20076         (mode_adjust): Arg is an array, not a linked list.
20077         * lib/modechange.c: Include stat-macros.h, xalloc.h.
20078         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
20079         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
20080         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
20081         Remove.  This is now stat-macros.h's job.
20082         (talloc): Remove.  All callers replaced by xalloc, so that
20083         our invokers don't have to worry about reporting memory failures.
20084         (make_node_op_equals): Remove.
20085         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20086         New constants.
20087         (struct mode_change): Moved here from modechange.h.
20088         (mode_append_entry): Remove.
20089         (mode_compile): Remove MASKED_OPS arg, since it encouraged
20090         apps to have incorrect behavior.  Use simpler algorithm for head
20091         and tail.  Don't futz with umask; that's now the job of mode_adjust.
20092         Detect more invalid usages rather than having somewhat-random behavior.
20093         Don't insert an "a=" action, as that leads to incorrect behavior.
20094         (mode_compile, mode_create_from_ref): Return NULL on error instead
20095         of an enum, since now there's only one way to have an error.  All
20096         callers changed.
20097         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
20098         at the correct time.  Simplify calculation of "+u" and its ilk.
20099         Don't mishandle "+X".
20100         (mode_free): Remove "register" and localize decls.
20101         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20102         (struct mode_change): Move to modechange.c; callers don't
20103         need to see this stuff.
20104         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
20105         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
20106         (mode_change, mode_adjust): Reflect the new signatures noted above.
20107         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
20108         that might redefine system include files.
20109         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
20110         (my_usleep): Use NULL rather than (void *) 0.
20111         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
20112         Use siginterrupt to specify that system calls should be interrupted.
20113         (rpl_nanosleep): Move initialization of suspended closer to call of
20114         my_usleep.
20115         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
20116         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
20117         (desirable_utmp_entry): New function.
20118         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
20119         using x2nrealloc, to simplify logic.
20120         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
20121         size calculation.  Do not assume utmp file is a regular file.
20122         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
20123         (READ_UTMP_CHECK_PIDS): New constant.
20124         * lib/save-cwd.c: Include unistd-safer.h.
20125         (save_cwd): Use fd_safer.
20126         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
20127         [!_LIBC] Include "stat-macros.h" instead.
20128         * lib/unistd-safer.h (fd_safer): New decl.
20129
20130 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20131
20132         * modules/getloadavg (Depends-on): Add unistd-safer.
20133         * modules/getusershell (Depends-on): Add stdio-safer.
20134         * modules/lstat (Depends-on): Remove xalloc.
20135         * modules/mkstemp (Depends-on): Add stat-macros.
20136         * modules/modechange (Depends-on): Remove xstrtol.
20137         Add stat-macros, xalloc.
20138         * modules/save-cwd (Depends-on): Add unistd-safer.
20139         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
20140         * modules/unistd-safer (Files): Add lib/fd-safer.c
20141         (Makefile.am): Remove lib_SOURCES.
20142
20143         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
20144         Remove fcntl-safer; unistd-safer supersedes it.
20145
20146 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20147
20148         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
20149         AC_HEADER_STAT.
20150         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
20151         (gl_PREREQ_CHOWN): Remove.
20152         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
20153         it.  Don't require AC_HEADER_STAT.
20154         (gl_PREREQ_LSTAT): Remove.
20155         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
20156         Don't require AC_HEADER_STAT.
20157         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
20158         (gl_PREREQ_RMDIR): Remove.
20159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
20160         mention stat-macros.h or AC_HEADER_STAT, since we'll make
20161         the stat-macros module a prerequisite.
20162         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
20163         * m4/filemode.m4 (gl_FILEMODE): Likewise.
20164         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
20165         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
20166         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
20167         variable names.
20168         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
20169         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
20170         variable prefixes.
20171         * m4/fcntl-safer.m4: Remove.
20172         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
20173         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
20174         Invoke gl_PREREQ_FD_SAFER.
20175         (gl_PREREQ_FD_SAFER): New macro.
20176         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
20177         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
20178         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
20179         Remove duplicate call to AC_LIBOBJ(readutmp).
20180         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
20181
20182         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
20183         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
20184
20185 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20186
20187         * MODULES.html.sh (Misc): Add byteswap.
20188
20189 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
20190
20191         * modules/getcwd (Depends-on): Add extensions.
20192         * modules/openat (Depends-on): Likewise.
20193
20194 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
20195
20196         * modules/byteswap: New file.
20197
20198 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
20199
20200         * m4/byteswap.m4: New file.
20201
20202 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
20203
20204         * lib/byteswap_.h: New file.
20205
20206 2005-04-25  Karl Berry  <karl@gnu.org>
20207
20208         * m4/gettext.m4: Update from GNU gettext 0.14.4.
20209
20210 2005-04-25  Albert Chin  <china@thewrittenword.com>
20211
20212         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
20213         Toolkit C bug.
20214
20215 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
20216
20217         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
20218         (func_ln_if_changed) Remove forcibly for no error message
20219         in case file does not exist.
20220
20221 2005-04-19  Simon Josefsson  <jas@extundo.com>
20222
20223         * gnulib-tool (Options): Make --symlink mean --symbolic.
20224
20225 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
20226
20227         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
20228
20229 2005-04-16  Simon Josefsson  <jas@extundo.com>
20230
20231         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
20232
20233 2005-04-15  Simon Josefsson  <jas@extundo.com>
20234
20235         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
20236
20237 2005-04-15  Simon Josefsson  <jas@extundo.com>
20238
20239         * gnulib-tool: Rename --symlink to --symbolic.
20240
20241 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
20242
20243         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
20244         symbolic links to files instead of copying/moving.  Add --aux-dir,
20245         specifying directory relative --dir where auxiliary build tools
20246         are placed.
20247
20248 2005-04-14  Bruno Haible  <bruno@clisp.org>
20249
20250         * modules/allocsa (License): Change to LGPL.
20251         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20252
20253 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20254
20255         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
20256         that "UTC +1 second" continues to work.  Problem reported
20257         by Dmitry V. Levin.
20258         (relunit_snumber): New rule.
20259         (relunit): Use it.
20260
20261 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20262
20263         * lib/getdate.y (universal_time_zone_table): New constant.
20264         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
20265         universal_time_zone_table.
20266         (lookup_zone): Prefer universal_time_zone_table to
20267         local_time_zone_table, so that "GMT" time stamps are allowed in
20268         London during the summer.  Problem reported by Ian Abbott.
20269
20270 2005-04-12  Jim Meyering  <jim@meyering.net>
20271
20272         * lib/human.c (humblock): Set *options even when returning due to
20273         xstrtoumax conversion failure.  Thanks to a used-uninitialized
20274         warning from gcc-4.
20275
20276 2005-04-09  Jim Meyering  <jim@meyering.net>
20277
20278         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
20279         -Wuninitialized: initialize tm0.tm_year.
20280
20281 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
20282
20283         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
20284         count, since there's no maximum.  All uses changed.
20285         Add member dsts_seen.
20286         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
20287         not being INT_MAX.
20288         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
20289         Use pc_rels_seen to decide whther a date is absolute.
20290
20291         * lib/getdate.y (number): Don't overwrite year.
20292         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
20293         check.
20294
20295 2005-04-02  Simon Josefsson  <jas@extundo.com>
20296
20297         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
20298         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
20299
20300 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
20301
20302         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
20303         where no absolute path name can be longer than PATH_MAX.
20304
20305 2005-03-27  Jim Meyering  <jim@meyering.net>
20306
20307         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
20308
20309 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20310
20311         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
20312         "one's complement" -> "ones' complement" in comment, as per Knuth.
20313         "value of type" -> "type or expression" in comment.
20314         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
20315
20316 2005-03-26  Jim Meyering  <jim@meyering.net>
20317
20318         Comment nits.
20319         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
20320         Correct typos: s/or/of/.
20321
20322 2005-03-26  Jim Meyering  <jim@meyering.net>
20323
20324         * modules/check-include-files: Move to ../ and rename to...
20325         * check-module: ...this.
20326
20327 2005-03-25  Jim Meyering  <jim@meyering.net>
20328
20329         * modules/xvasprintf (Files): Add xalloc.h.
20330
20331 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20332
20333         * modules/gettext (Files): config/config.rpath ->
20334         build-aux/config.rpath
20335         * modules/iconv (Files): Likewise.
20336         Problem reported by Oskar Liljeblad.
20337
20338 2005-03-23  Jim Meyering  <jim@meyering.net>
20339
20340         * modules/check-include-files: New script to check for
20341         missing dependencies, multiple includes, etc.
20342
20343         * modules/c-strtold (Depends-on): Add xalloc.
20344         * modules/c-strtod (Depends-on): Add xalloc.
20345         * modules/hash (Depends-on): Add xalloc.
20346         (Files): Remove lib/xalloc.h.
20347
20348         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
20349         * modules/userspec (Files): Add lib/inttostr.h.
20350
20351 2005-03-23  Jim Meyering  <jim@meyering.net>
20352
20353         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
20354
20355 2005-03-22  Jim Meyering  <jim@meyering.net>
20356
20357         * modules/stat-macros: New module.
20358         * modules/canonicalize, modules/euidaccess, modules/file-type,
20359         * modules/filemode, modules/lchown, modules/makepath,
20360         * modules/rmdir, modules/stat: Depend on new stat-macros module
20361         rather than listing lib/stat-macros.h manually.
20362         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
20363
20364 2005-03-22  Jim Meyering  <jim@meyering.net>
20365
20366         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
20367
20368 2005-03-22  Bruno Haible  <bruno@clisp.org>
20369
20370         * config/srclist.txt: Replace target directory 'config' with
20371         'build-aux'.
20372         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
20373         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
20374         ../build-aux/.
20375
20376 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20377
20378         * modules/chdir-long (Depends-on): Add mempcpy.
20379
20380         * modules/acl, modules/backupfile, modules/c-strtod,
20381         modules/c-strtold, modules/canon-host, modules/canonicalize,
20382         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
20383         modules/exclude, modules/exitfail, modules/file-type,
20384         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
20385         modules/getdate, modules/getline, modules/getpagesize,
20386         modules/getpass, modules/getugroups, modules/group-member,
20387         modules/hard-locale, modules/hash, modules/human, modules/idcache,
20388         modules/inttostr, modules/long-options, modules/makepath,
20389         modules/md5, modules/memcasecmp, modules/memcoll,
20390         modules/modechange, modules/mountlist, modules/path-concat,
20391         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
20392         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
20393         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
20394         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
20395         modules/strftime, modules/strndup, modules/strverscmp,
20396         modules/timespec, modules/unlocked-io, modules/userspec,
20397         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
20398         modules/yesno:
20399         Remove lib_SOURCES line from Makefile.am section, as this is now
20400         done automatically by the corresponding Autoconf macro.
20401
20402 2005-03-21  Jim Meyering  <jim@meyering.net>
20403
20404         Changes imported from coreutils.
20405
20406         * lib/cycle-check.c: Don't include xalloc.h.
20407
20408         * lib/path-concat.c: Don't include assert.h.
20409         (path_concat): Remove assertion that would have triggered
20410         for ABASE starting with more than one slash.
20411         Reported by Andreas Schwab.
20412
20413         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
20414         properly when ABASE is an absolute file name.
20415         Correct the description of this function.
20416         Include <assert.h>.
20417         Add an assertion and a test driver.
20418         This fixes a bug introduced on 2004-07-02.
20419         Andreas Schwab reported the resulting failure of cp --parents:
20420         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
20421
20422 2005-03-21  Jim Meyering  <jim@meyering.net>
20423
20424         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
20425         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
20426
20427 2005-03-21  Jim Meyering  <jim@meyering.net>
20428         and  Paul Eggert  <eggert@cs.ucla.edu>
20429
20430         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
20431         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
20432         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
20433         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
20434         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
20435         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
20436         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
20437         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
20438         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
20439         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
20440         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
20441         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
20442         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
20443         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
20444         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
20445         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
20446         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
20447         for these modules.
20448
20449 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20450
20451         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
20452         (which shouldn't happen), generate nothing instead of returning 0
20453         immediately, so that nstrftime (NULL, ...) doesn't return 0.
20454
20455 2005-03-16  Bruno Haible  <bruno@clisp.org>
20456
20457         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
20458         HAVE_LONGLONG_64BIT.
20459
20460 2005-03-16  Bruno Haible  <bruno@clisp.org>
20461
20462         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
20463         HAVE_LONGLONG_64BIT.
20464
20465 2005-03-16  Bruno Haible  <bruno@clisp.org>
20466
20467         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
20468         HAVE_LONGLONG_64BIT.
20469
20470 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
20471
20472         * lib/strftime.c (my_strftime): Prepend space to format so that we can
20473         reliably distinguish strftime failure from empty output on POSIX
20474         hosts.
20475
20476 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
20477
20478         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
20479         (iconv_string): Don't guess a size-zero buffer, as that might cause
20480         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
20481         result would be 'too large', where 'too large' is (heuristically)
20482         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
20483         overflow concerns.  This will prevent some unwanted malloc failures
20484         when the inputs are very large.
20485
20486 2005-03-15  Karl Berry  <karl@gnu.org>
20487
20488         * config/srclist.txt (config.rpath): from gettext.
20489         * config/config.rpath: update.
20490
20491 2005-03-15  Bruno Haible  <bruno@clisp.org>
20492
20493         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
20494         to 'negate'.
20495
20496         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
20497         variable.
20498
20499         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
20500         results.
20501
20502 2005-03-14  Simon Josefsson  <jas@extundo.com>
20503
20504         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
20505         <fx@gnu.org>.
20506
20507 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20508
20509         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
20510         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
20511         intprops.h.
20512         * lib/strtol.c: Likewise.
20513
20514 2005-03-14  Jim Meyering  <jim@meyering.net>
20515
20516         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
20517         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
20518         to be nonzero so that we (and caller) can detect the difference
20519         between a valid zero-length expansion and an error return, even
20520         when the underlying strftime fails before writing anything into
20521         that location.
20522
20523 2005-03-14  Bruno Haible  <bruno@clisp.org>
20524
20525         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
20526         Update from GNU gettext 0.14.3.
20527
20528 2005-03-10  Jim Meyering  <jim@meyering.net>
20529
20530         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
20531
20532 2005-03-10  Jim Meyering  <jim@meyering.net>
20533
20534         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
20535         so that this module works on systems without fchdir.
20536
20537 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
20538
20539         Factor int-properties macros into a single file, except for
20540         glibc-related files.
20541         * lib/intprops.h: New file.
20542         * lib/getloadavg.c: Include it instead of limits.h.
20543         (INT_STRLEN_BOUND): Remove.
20544         * lib/human.c: Include intprops.h.
20545         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
20546         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
20547         302/1000.
20548         * lib/inttostr.h: Include intprops.h instead of limits.h.
20549         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
20550         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
20551         for consistency with intprops.h.
20552         (time_t_is_integer, twos_complement_arithmetic): Use them.
20553         * lib/sig2str.h: Include <signal.h>, intprops.h.
20554         (INT_STRLEN_BOUND): Remove.
20555         * lib/strftime.c (TYPE_SIGNED): Remove.
20556         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
20557         * lib/strtol.c: Adjust comments to match intprops.h.
20558         * lib/userspec.c: Include intprops.h.
20559         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
20560         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
20561         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
20562         instead of rolling our own expressions.
20563         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
20564
20565         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
20566         instead of int.
20567         (my_strftime): Do not mishandle years close to INT_MAX, by doing
20568         the right thing even if adding 1900 would overflow.  Similarly
20569         for tm_mon + 1 and tm_yday + 1.
20570         Make %Y always equivalent to %C%y, and similarly for %G and %g.
20571         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
20572         (DO_SIGNED_NUMBER): New macro.
20573         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
20574
20575 2005-03-07  Bruno Haible  <bruno@clisp.org>
20576
20577         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
20578
20579 2005-03-07  Bruno Haible  <bruno@clisp.org>
20580
20581         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
20582
20583 2005-03-04  Derek R. Price  <derek@ximbiot.com>
20584
20585         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
20586         (func_import): Only replace files via --import when they have actually
20587         changed.
20588
20589 2005-03-03  Derek R. Price  <derek@ximbiot.com>
20590
20591         * m4/mmap-anon.m4: New file.
20592         * m4/pagealign_alloc.m4: New file.
20593
20594 2005-03-03  Derek R. Price  <derek@ximbiot.com>
20595             Bruno Haible  <bruno@clisp.org>
20596
20597         * modules/pagealign_alloc: New file.
20598         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
20599
20600 2005-03-03  Derek R. Price  <derek@ximbiot.com>
20601             Bruno Haible  <bruno@clisp.org>
20602
20603         * lib/pagealign_alloc.h: New file.
20604         * lib/pagealign_alloc.c: New file.
20605
20606 2005-03-03  Bruno Haible  <bruno@clisp.org>
20607
20608         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
20609         Use an all-permissive copyright notice, recommended by RMS.
20610
20611 2005-03-02  Bruno Haible  <bruno@clisp.org>
20612
20613         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
20614         of AIX, the replacement has to be done only after <string.h> is
20615         included, therefore not in config.h. stpncpy.h does the replacement,
20616         and stpncpy.c uses it.
20617
20618 2005-03-02  Bruno Haible  <bruno@clisp.org>
20619
20620         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
20621         stpncpy.c uses it.
20622
20623 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20624
20625         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
20626         The workaround isn't strictly needed for POSIX conformance, and
20627         it's too much of a pain to configure and maintain.  We'll ask
20628         people to fix their kernels instead.
20629         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
20630         (NANOSLEEP_BUG_WORKAROUND): Remove.
20631         (xnanosleep): Remove the workaround.
20632
20633 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20634
20635         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
20636         Reported by Derek Price.
20637         (Include): Add "timespec.h".
20638
20639         * modules/xnanosleep (Depends-on): Remove gethrxtime.
20640
20641 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20642
20643         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
20644         to detect nanosleep bug.
20645
20646 2005-03-01  Bruno Haible  <bruno@clisp.org>
20647
20648         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
20649
20650 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         * modules/gethrxtime: New file.
20653         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
20654         (Depends-on): Add gethrxtime.
20655         (configure.ac): Add gl_XNANOSLEEP.
20656         (Makefile.am): Remove lib_SOURCES line.
20657
20658 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20659
20660         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
20661         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
20662
20663 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20664
20665         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
20666         * lib/timespec.h (gettime): Return void, since it always
20667         succeeds now.  All uses changed.
20668         * lib/gettime.c (gettime) Likewise.
20669         [HAVE_NANOTIME]: Prefer nanotime.
20670         Assume gettimeofday succeeds, as POSIX requires.
20671         Assime time () succeeds, since other code already does.
20672         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
20673         (timespec_subtract): Remove.
20674         (NANOSLEEP_BUG_WORKAROUND): New constant.
20675         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
20676         things considerably.  Use it only on GNU/Linux hosts, since the
20677         workaround shouldn't be needed elsewhere.
20678
20679 2005-02-24  Bruno Haible  <bruno@clisp.org>
20680
20681         * modules/gettext (Files): Add m4/glibc2.m4.
20682
20683 2005-02-24  Bruno Haible  <bruno@clisp.org>
20684
20685         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
20686         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
20687         * m4/progtest.m4:
20688         Update from GNU gettext 0.14.2.
20689         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
20690
20691 2005-02-24  Bruno Haible  <bruno@clisp.org>
20692
20693         * lib/localcharset.c: Update from GNU gettext 0.14.2.
20694         * lib/config.charset: Update from GNU gettext 0.14.2.
20695
20696 2005-02-24  Bruno Haible  <bruno@clisp.org>
20697
20698         * lib/gettext.h: Update from GNU gettext 0.14.2.
20699
20700 2005-02-23  Simon Josefsson  <jas@extundo.com>
20701
20702         * m4/iconvme.m4: New file.
20703
20704 2005-02-23  Jim Meyering  <jim@meyering.net>
20705
20706         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
20707         change.
20708         Thanks to Bruno Haible for catching it.
20709
20710 2005-02-22  Simon Josefsson  <jas@extundo.com>
20711
20712         * modules/iconvme: New file.
20713
20714         * MODULES.html.sh: Add iconvme.
20715
20716 2005-02-22  Simon Josefsson  <jas@extundo.com>
20717
20718         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
20719
20720 2005-02-22  Simon Josefsson  <jas@extundo.com>
20721
20722         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
20723
20724 2005-02-22  Jim Meyering  <jim@meyering.net>
20725
20726         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
20727         s/ifndef/ifdef/.
20728
20729 2005-02-20  Neil Conway  <neilc@samurai.com>
20730
20731         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
20732         returned by OSX/Darwin if the specified buffer is not large
20733         enough for the hostname.
20734
20735 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20736
20737         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
20738         pass it to _help, otherwise the latter coredumps trying to
20739         dereference state.root_argp.
20740
20741 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20742
20743         * modules/chdir-long (Depends-on): Add memrchr.
20744         * modules/memrchr (Files): Add lib/memrchr.h.
20745         (Include): "memrchr.h".
20746
20747 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20748
20749         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
20750
20751 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20752
20753         * lib/memrchr.h: New file.
20754         * lib/chdir-long.c: Include it.
20755         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
20756         Don't bother including stddef.h.
20757
20758 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
20759
20760         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
20761         inclusion.
20762         Include <sys/types.h>, for dev_t.
20763         (ME_DUMMY, ME_REMOTE): Move from here....
20764         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
20765         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
20766         Dmitry V. Levin.
20767         Include mountlist.h first, to test the interface.
20768
20769 2005-01-29  Bruno Haible  <bruno@clisp.org>
20770
20771         * lib/progname.c (program_name): Initialize.
20772         Needed when linking statically on MacOS X.
20773
20774 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20775
20776         Sync from coreutils.
20777         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
20778         (Depends-on): Add c-strtod.
20779         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
20780
20781 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20782
20783         Sync from coreutils.
20784         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
20785
20786         Remove files that are specific to coreutils.
20787         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
20788
20789 2005-01-28  Bruno Haible  <bruno@clisp.org>
20790
20791         * modules/javacomp: New file.
20792         * MODULES.html.sh (Java): Add javacomp.
20793
20794 2005-01-28  Bruno Haible  <bruno@clisp.org>
20795
20796         * m4/javacomp.m4: New file, from GNU gettext.
20797
20798 2005-01-28  Bruno Haible  <bruno@clisp.org>
20799
20800         * lib/javacomp.sh.in: New file, from GNU gettext.
20801         * lib/javacomp.h: New file, from GNU gettext.
20802         * lib/javacomp.c: New file, from GNU gettext.
20803
20804 2005-01-26  Simon Josefsson  <jas@extundo.com>
20805
20806         * lib/gai_strerror.c: Use GPL in header.
20807
20808 2005-01-26  Bruno Haible  <bruno@clisp.org>
20809
20810         * modules/javaexec: New file.
20811         * MODULES.html.sh (Java): Add javaexec.
20812
20813 2005-01-26  Bruno Haible  <bruno@clisp.org>
20814
20815         * m4/javaexec.m4: New file, from GNU gettext.
20816
20817 2005-01-26  Bruno Haible  <bruno@clisp.org>
20818
20819         * lib/javaexec.sh.in: New file, from GNU gettext.
20820         * lib/javaexec.h: New file, from GNU gettext.
20821         * lib/javaexec.c: New file, from GNU gettext.
20822
20823 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20824
20825         * modules/lchown (Depends-on): Remove lchown.h
20826
20827 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20828
20829         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
20830         must be defined if the header file was not found, in order
20831         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
20832
20833 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20834
20835         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
20836         initializers for struct pentry_state.
20837         (__argp_error): Check return value of __asprintf
20838         (__argp_failure): Translate error message
20839
20840         * lib/argp-parse.c: Removed braces around the expansion of N_()
20841
20842 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20843
20844         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
20845         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
20846         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
20847         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
20848         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
20849         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
20850         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
20851         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
20852         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
20853         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
20854         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
20855         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
20856         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
20857         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
20858         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
20859         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
20860         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
20861         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
20862         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
20863         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
20864         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
20865         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
20866         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
20867         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
20868         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
20869         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
20870         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
20871         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
20872         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
20873         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
20874         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
20875         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
20876         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
20877         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
20878         xstrtol.m4, xstrtoumax.m4, yesno.m4:
20879         Use an all-permissive copyright notice, recommended by RMS.
20880
20881 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20882
20883         * modules/chdir-long (Depends-on): Remove mempcpy.
20884
20885 2005-01-21  Jim Meyering  <jim@meyering.net>
20886
20887         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
20888         same value as for Solaris 9.
20889
20890         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
20891         component length.  This included changing the parameter to be
20892         of type `char *' rather than `char const *'.
20893         * lib/chdir-long.h (chdir_long): Update prototype.
20894
20895         * lib/openat.c (fdopendir, fstatat): New functions.
20896         * lib/openat.h: Include headers required for use of DIR and struct
20897         stat.
20898         [AT_SYMLINK_NOFOLLOW]: Define.
20899         (fdopendir, fstatat): Add prototypes.
20900
20901 2005-01-21  Bruno Haible  <bruno@clisp.org>
20902
20903         * modules/classpath: New file.
20904         * MODULES.html.sh (Java): Add classpath.
20905
20906 2005-01-21  Bruno Haible  <bruno@clisp.org>
20907
20908         * lib/classpath.h: New file, from GNU gettext.
20909         * lib/classpath.c: New file, from GNU gettext.
20910
20911 2005-01-20  Simon Josefsson  <jas@extundo.com>
20912
20913         * modules/version-etc-fsf: New file.
20914
20915 2005-01-20  Simon Josefsson  <jas@extundo.com>
20916
20917         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
20918         * lib/version-etc.c: Remove version_etc_copyright.
20919         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
20920         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
20921
20922 2005-01-20  Simon Josefsson  <jas@extundo.com>
20923
20924         * lib/base64.h (isbase64): Add.
20925
20926         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
20927         using a unsigned prototype, don't inline.
20928         (base64_decode): Use it.
20929
20930 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20931
20932         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
20933         it.
20934
20935 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20936
20937         * lib/save-cwd.c (save_cwd): Remove code to support the case
20938         where fchdir is missing or flaky.
20939
20940 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20941
20942         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
20943
20944 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20945
20946         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
20947         AC_LIBSOURCES now does this.
20948         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
20949         with new ullong_max module.
20950
20951 2005-01-19  Bruno Haible  <bruno@clisp.org>
20952
20953         * modules/sh-quote: New file.
20954         * MODULES.html.sh (Executing programs): Add sh-quote.
20955
20956 2005-01-19  Bruno Haible  <bruno@clisp.org>
20957
20958         * lib/sh-quote.h: New file, from GNU gettext.
20959         * lib/sh-quote.c: New file, from GNU gettext.
20960
20961 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20962
20963         Merge from coreutils.
20964         * m4/ullong_max.m4: New file.
20965         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
20966         (gl_MACROS): Assume localeconv exists.
20967
20968 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20969
20970         Merge changes from coreutils, as described below in several
20971         changelogs dated today.
20972
20973         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
20974         (O_DIRECTORY): Remove; not needed here, since "." must be
20975         a directory.  All uses removed.
20976         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
20977         universal on Suns, and we also need to test for IRIX.
20978         Revamp code to use 'if' rather than '#if'.
20979         Avoid unnecessary comparison of cwd->desc to 0.
20980
20981         * lib/utimens.c (futimens): Robustify the previous patch, by checking
20982         for known valid error numbers rather than observed invalid ones.
20983
20984 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20985
20986         * modules/ullong_max: New file.
20987
20988         * modules/chdir-long, modules/openat: New files.
20989         * modules/save-cwd (Depends-on): Depend on chdir-long.
20990         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
20991
20992 2005-01-18  Jim Meyering  <jim@meyering.net>
20993
20994         Merge from coreutils.
20995         * m4/chdir-long.m4, m4/openat.m4: New files.
20996         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
20997         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
20998         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
20999         is sane and DOES follow symlinks.  Besides, testing 20 different
21000         systems found no broken chown implementations.
21001         Prompted by a change in rsync's copy of this macro.
21002         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
21003
21004         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
21005
21006         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
21007         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
21008         NULL-means-set-to-current-time semantics.
21009         Remove temporary file immediately, rather than waiting
21010         for configure's at-exit trap code to do it.
21011
21012 2005-01-18  Jim Meyering  <jim@meyering.net>
21013
21014         * lib/version-etc.c (version_etc_copyright): Update copyright date.
21015
21016         * lib/utimens.c (futimens): Account for the fact that futimes
21017         can also fail with errno == ENOSYS or errno == ENOENT.
21018         Patch from Dmitry V. Levin.
21019
21020         Change the name of the robust chdir function from chdir to chdir_long.
21021         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
21022         (restore_cwd): Use chdir_long, not chdir.
21023         * lib/chdir-long.c: Renamed from chdir.c.
21024         * lib/chdir-long.h: Renamed from chdir.h.
21025         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
21026         Hurd.
21027
21028 2005-01-18  Bruno Haible  <bruno@clisp.org>
21029
21030         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
21031         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
21032         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
21033         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
21034         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
21035         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
21036         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
21037         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
21038         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
21039         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
21040         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
21041         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
21042         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
21043         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
21044         Use an all-permissive copyright notice, recommended by RMS.
21045
21046 2005-01-18  Bob Proulx  <bob@proulx.com>
21047
21048         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
21049         simplify offsetof() macro construct to avoid compile failure with
21050         native HP-UX 11.0 ANSI C compiler.
21051
21052 2005-01-17  Bruno Haible  <bruno@clisp.org>
21053
21054         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
21055         redundant because stpncpy.m4 takes care of it.
21056
21057 2005-01-17  Bruno Haible  <bruno@clisp.org>
21058
21059         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
21060
21061 2005-01-17  Bruno Haible  <bruno@clisp.org>
21062
21063         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
21064         used.
21065
21066 2005-01-17  Bruno Haible  <bruno@clisp.org>
21067
21068         * lib/fwriteerror.h (fwriteerror): Change specification to include
21069         fclose.
21070         * lib/fwriteerror.c: Include <stdbool.h>.
21071         (fwriteerror): At the end, close the file stream. Record whether
21072         stdout was already closed.
21073
21074 2005-01-17  Bruno Haible  <bruno@clisp.org>
21075
21076         * lib/execute.c (environ): Declare if needed.
21077         * lib/pipe.c (environ): Likewise.
21078         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
21079
21080 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21081
21082         * modules/argp: Depend on vsnprintf
21083
21084 2005-01-10  Jim Meyering  <jim@meyering.net>
21085
21086         * modules/closeout (Depends-on): Add atexit.
21087
21088 2005-01-06  Bruno Haible  <bruno@clisp.org>
21089
21090         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
21091
21092 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21093
21094         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
21095         definitions to be after all include files, to avoid collisions.
21096         Problem reported by Bob Proulx.
21097
21098 2005-01-04  Jim Meyering  <jim@meyering.net>
21099
21100         Changes imported from coreutils.
21101         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
21102         as the mkstemp template, use a temporary directory and an
21103         8.3-friendly template to avoid trouble on systems like DJGPP.
21104         Reported by Juan M. Guerrero via Stepan Kasal.
21105         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
21106         close. Remove the temporary directory right away, rather than waiting
21107         for configure's at-exit trap code to do it.
21108         Suggestion from Stepan Kasal.
21109
21110 2005-01-01  Simon Josefsson  <jas@extundo.com>
21111
21112         * gnulib-tool: Print #include directives when --import'ing.
21113
21114 2004-12-28  Simon Josefsson  <jas@extundo.com>
21115
21116         * tests/test-base64.c: Include required header files.  Remove
21117         unused variables.
21118
21119 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21120
21121         * modules/error (Depends-on): Remove gettext.
21122
21123 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21124
21125         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
21126         not needed.  This removes a dependency on the gettext module.
21127         [defined _LIBC]: Do not include <libintl.h>; not needed.
21128
21129 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
21130
21131         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
21132         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
21133
21134 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
21135
21136         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
21137         HAVE_DECL_STRTOLD.
21138
21139 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21140
21141         * modules/getdate (Depends-on): Remove alloca-opt.
21142
21143 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21144
21145         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
21146
21147 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21148
21149         * lib/argp-parse.c: Include <stddef.h>.
21150         (alignof, alignto): New macros.
21151         (parser_init): Don't assume that void * is aligned sufficiently
21152         for struct option.
21153
21154         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
21155         need to extend the stack.
21156         (YYINITDEPTH): New macro, so that the initial stack isn't overly
21157         large.
21158
21159 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21160
21161         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
21162
21163 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21164
21165         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
21166         (2004-10-24) change.  Apparently this was a false alarm.
21167
21168         * modules/getdate: Depend on alloca-opt, not alloca.
21169
21170 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21171
21172         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
21173         Remove now-obsolete comment about AIX.
21174         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
21175         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
21176         (YYMAXDEPTH): New macro.
21177
21178 2004-12-18  Simon Josefsson  <jas@extundo.com>
21179
21180         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
21181
21182 2004-12-18  Bruno Haible  <bruno@clisp.org>
21183
21184         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
21185
21186 2004-12-18  Bruno Haible  <bruno@clisp.org>
21187
21188         * lib/fatal-signal.c (fatal_signals): Make non-const.
21189         (init_fatal_signals): New function.
21190         (uninstall_handlers, install_handlers): Ignore signals that were set to
21191         SIG_IGN.
21192         (at_fatal_signal): Call init_fatal_signals.
21193         (init_fatal_signal_set): Likewise. Ignore signals that were set to
21194         SIG_IGN.
21195         Reported by Paul Eggert.
21196
21197 2004-12-18  Bruno Haible  <bruno@clisp.org>
21198
21199         * doc/alloca.texi: New file.
21200         * doc/alloca-opt.texi: New file.
21201
21202 2004-12-17  Jim Meyering  <jim@meyering.net>
21203
21204         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
21205         Otherwise, install-sh could exit with improper exit status when
21206         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
21207
21208 2004-12-16  Simon Josefsson  <jas@extundo.com>
21209
21210         * tests/test-base64.c: Add license.
21211
21212 2004-12-15  Stepan Kasal  <address@hidden>
21213
21214         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
21215
21216 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21217
21218         * modules/getcwd (Files): Add m4/d-ino.m4.
21219         Suggested by Mark D. Baushke.
21220
21221 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
21222
21223         * lib/getdate.y (textint): New member "negative".
21224         (time_zone_hhmm): New function.
21225         Expect 14 shift-reduce conflicts, not 13.
21226         (o_colon_minutes): New rule.
21227         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
21228         (yylex): Set the "negative" member of signed numbers.
21229
21230 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
21231
21232         * doc/getdate.texi (Time of day items, Time zone items):
21233         Describe new formats +00:00, UTC+00:00.
21234
21235 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
21236
21237         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
21238         spurious "-l"s.  Problem reported by Stepan Kasal.
21239
21240 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
21241
21242         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
21243         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
21244
21245 2004-12-04  Simon Josefsson  <jas@extundo.com>
21246
21247         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
21248         Vandoorselaere <yoann@prelude-ids.org>.
21249
21250 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
21251
21252         Changes imported from coreutils.
21253         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
21254         exist.
21255         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
21256
21257 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
21258
21259         Changes imported from coreutils.
21260         * lib/hard-locale.c: Assume <locale.h> exists.
21261         Include "strdup.h".
21262         (GLIBC_VERSION): New macro.
21263         (hard_locale): Assume setlocale exists.
21264         Rewrite to avoid #ifdef.
21265         Use strdup rather than malloc + strcpy.
21266         * lib/human.c: Assume <locale.h> exists.
21267         (human_readable): Assume localeconv exists.
21268
21269 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
21270
21271         * modules/hard-locale (Depends-on): Add strdup.
21272
21273 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
21274
21275         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
21276         convert T2, not T.  (Imported from libc.)
21277
21278 2004-11-30  Simon Josefsson  <jas@extundo.com>
21279
21280         * modules/restrict (License): Change to LGPL.
21281
21282 2004-11-30  Simon Josefsson  <jas@extundo.com>
21283
21284         * m4/restrict.m4: Add copyright and copying conditions.
21285
21286 2004-11-30  Simon Josefsson  <jas@extundo.com>
21287
21288         * m4/base64.m4: New file.
21289
21290 2004-11-30  Simon Josefsson  <jas@extundo.com>
21291
21292         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
21293         base64.
21294
21295         * tests/test-base64.c: New file.
21296
21297         * modules/base64: New file.
21298
21299 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
21300
21301         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
21302         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
21303
21304         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
21305
21306 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
21307
21308         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
21309         (__getcwd.c): Don't restore errno; glibc doesn't.
21310         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
21311         first, falling back to our code only if its results look suspicious.
21312         Ensure that the resulting buffer is only as large as necessary.
21313
21314         * lib/readutmp.c: Include readutmp.h first.
21315         Include <errno.h>, since readutmp.h no longer does that.
21316         * lib/readutmp.h: Don't include <errno.h>,
21317         <sys/param.h>, <time.h>; not needed to establish interface.
21318         (errno): Remove decl.
21319         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
21320         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
21321         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
21322
21323 2004-11-28  Simon Josefsson  <jas@extundo.com>
21324
21325         * lib/base64.h, base64.c: New file.
21326
21327 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
21328
21329         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
21330
21331 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
21332
21333         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
21334         (Depends-on): Remove pathmax, same.  Add mempcpy.
21335         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
21336         (Makefile.am): Append getcwd.h to lib_SOURCES.
21337         (Include): Add getcwd.h.
21338         (Maintainer): Change from Jim Meyering to "all, glibc",
21339         since getdate now uses intended-for-glibc code.
21340         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
21341         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
21342
21343 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21344
21345         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
21346         HP's ANSI C compiler.
21347         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
21348         Declaring int functions causes warnings on some modern systems and
21349         shouldn't be needed to compile on ancient ones.
21350         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
21351         defined.
21352
21353         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
21354         with the following changes.
21355         (__set_errno): Parenthesize properly.
21356         Include <stdbool.h>.
21357         (MIN, MAX, MATCHING_INO): New macros.
21358         (__getcwd): Define with prototype, not K&R form.
21359         Use heuristics to allocate default buffer on stack if possible.
21360         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
21361         behavior, and to avoid the PATH_MAX limit when computing
21362         ../../../../...
21363         Use MATCHING_INO to compare inode number to file.
21364         Check for arithmetic overflow in size calculations.
21365         Fix bug in reallocation of dot array that caused getcwd to fail
21366         on directories nested deeper than 75.
21367         Be more careful about saving errno on error.
21368         Do not use realloc; use only free+malloc, as this is a bit
21369         more flexible and avoids a needless copy operation.
21370         Do not inspect st_dev and st_ino for symbolic links; POSIX
21371         doesn't specify the latter.
21372         Check for closedir errors.
21373         Avoid needless casts.
21374         Use "#ifdef weak_alias" around weak_alias, to be like other
21375         glibc code.
21376         The following changes to getcwd.c have effect only when used in
21377         gnulib; they have no effect inside glibc proper.
21378         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
21379         as alloca isn't used.
21380         (alloca, __alloca): Likewise.
21381         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
21382         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
21383         unconditionally, as gnulib assumes C89 or better.
21384         Do not include <sys/param.h>.
21385         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
21386         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
21387         better.
21388         (NULL) [!defined NULL]: Remove; we assume C89 or better.
21389         Include <dirent.h> in a way that is compatible with modern Autoconf.
21390         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
21391         New macros, if not already defined.
21392         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
21393         Use "_LIBC", not "defined _LIBC", for consistency.
21394         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
21395         a mempcpy module.
21396         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
21397         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
21398         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
21399         credit only to Jim Meyering and adjust the copyright dates.
21400         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
21401         <stdlib.h>, <unistd.h>, "pathmax.h".
21402         Instead, include "xgetcwd.h" (first) and "getcwd.h".
21403         (INITIAL_BUFFER_SIZE): Remove.
21404         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
21405
21406 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21407
21408         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
21409         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
21410         Use the _ONCE methods, for efficiency.
21411         Check for fcntl.h.  In test program, include <errno.h>
21412         and <fcntl.h> if available.  Remove old K&R cruft from
21413         test program.  Check for common errors in GNU/Linux,
21414         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
21415         don't do AC_LIBOBJ, as that's getcwd.m4's job.
21416         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
21417         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
21418         name accordingly.
21419         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
21420         accommodate new getcwd.c.
21421         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
21422         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
21423         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
21424         that's all we need now.
21425
21426 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21427
21428         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
21429         argp-parse.c depends on getopt internals, that means we should
21430         always use our getopt, to be on the safe side.
21431         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
21432         order not to spoil the result of an eventual previous invocation
21433         of gl_GETOPT_SUBSTITUTE.
21434
21435 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21436
21437         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
21438         redefinition warnings. To avoid them, include the defines
21439         in `#if !defined __need_getopt ... #endif'. The only place
21440         where __getopt_argv_const is used is in definitions
21441         of getopt_long and getopt_long_only below, which are as well
21442         protected by `#ifndef __need_getopt'.
21443         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
21444         __need_getopt after including <stdio.h> and <unistd.h> These
21445         headers might have defined it.
21446
21447 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21448
21449         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
21450
21451 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21452
21453         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
21454         (futimens): New function, which uses futimes if available.
21455         (futimens, utimens): Support timespec==NULL, with same semantics
21456         as utime and utimens.
21457         * lib/utimens.h (futimens): New decl.
21458
21459 2004-11-23  Jim Meyering  <jim@meyering.net>
21460
21461         * lib/getopt_.h: Remove trailing blanks.
21462
21463 2004-11-23  Jim Meyering  <jim@meyering.net>
21464
21465         * lib/__fpending.c: Add comment.
21466
21467 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21468
21469         * modules/canonicalize (Depends-on): Add xreadlink.
21470         Problem reported by James Youngman.
21471
21472 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21473
21474         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
21475         New macros.
21476         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
21477         optopt): Use them instead of invoking ## directly; otherwise, the
21478         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
21479
21480 2004-11-19  Bruno Haible  <bruno@clisp.org>
21481
21482         * lib/strtok_r.c: Move comments from here...
21483         * lib/strtok_r.h: ... to here.
21484
21485 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21486
21487         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
21488         implementations that mishandle size_t overflow.
21489
21490 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21491
21492         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
21493         might fail.  Problem reported by Yoann Vandoorselaere.
21494         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
21495         implementations that mishandle size_t overflow.
21496
21497 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21498
21499         * modules/canon-host (Depends-on): Add strdup.
21500
21501 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21502
21503         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
21504
21505 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21506
21507         * lib/canon-host.c: Include "strdup.h".
21508         (canon_host): Use getaddrinfo if available, so that IPv6 works.
21509         Use strdup instead of malloc/strcpy to duplicate strings.
21510
21511         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
21512         (human_space_before_unit): New constant.
21513         * lib/human.c (human_readable): Support it.
21514
21515         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
21516         (xgetcwd): Set errno correctly when failing.
21517         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
21518         the failure is actually due to a PATH_MAX problem.
21519
21520         Further getopt changes to make it more likely that glibc will
21521         buy the changes back.
21522         * lib/getopt.c (POSIXLY_CORRECT): New constant.
21523         (getopt): Use it, so to preserve glibc semantic
21524         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
21525         when compiling for libc.
21526         * lib/getopt_.h (__getopt_argv_const): Bring it back.
21527         (getopt_long, getopt_long_only): Use it.
21528
21529         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
21530         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
21531         (getopt): Argv is now char * const *, as per standard.
21532         (_getopt_internal_r, _getopt_internal): Argv is now char **,
21533         not char *__getopt_argv_const *.
21534         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
21535         _getopt_long_only_r): Likewise.
21536         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
21537         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
21538         _getopt_long_r, _getopt_long_only_r): Likewise.
21539         * lib/getopt_.h (__getopt_argv_const): Remove.
21540         (getopt): Argv is now char * const *, as per standard.
21541
21542         * lib/getdate.y (tORDINAL): New token.
21543         (day, relunit): Allow it for relative times.
21544         (relative_time_table): Use tORDINAL for ordinals.
21545
21546 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21547
21548         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
21549         Document that "second" isn't allowed as an ordinal number.
21550
21551 2004-11-16  Jim Meyering  <jim@meyering.net>
21552
21553         * modules/closeout (Depends-on): Add fpending.
21554
21555 2004-11-15  Jim Meyering  <jim@meyering.net>
21556
21557         * lib/closeout.c: Include "__fpending.h" once again.
21558         Include <stdbool.h>.
21559         (close_stdout): Don't fail just because stdout was closed initially,
21560         since some programs don't write to stdout in the normal course of
21561         operation (other than --version and --help), and we don't want this
21562         function to make e.g. `touch file >&-' fail.
21563         But do fail if it was closed and someone has tried to write to it.
21564         E.g., `printf foo >&-' must fail.
21565
21566 2004-11-13  Jim Meyering  <jim@meyering.net>
21567
21568         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
21569
21570 2004-11-12  Simon Josefsson  <jas@extundo.com>
21571
21572         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
21573         small doc fix is still pending.
21574
21575 2004-11-11  Simon Josefsson  <jas@extundo.com>
21576
21577         * modules/strtok_r: New file.
21578
21579         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21580         strtok_r.
21581
21582 2004-11-11  Simon Josefsson  <jas@extundo.com>
21583
21584         * m4/strtok_r.m4: New file.
21585
21586         * m4/getopt.m4: Replace opterr.
21587
21588 2004-11-11  Simon Josefsson  <jas@extundo.com>
21589
21590         * lib/strtok_r.h, strtok_r.c: New file.
21591
21592 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21593
21594         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
21595         of replacing opterr, getopt, etc.  This should handle the
21596         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
21597
21598 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21599
21600         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
21601         we can stop lying to compilers about the constness of argv when we
21602         are compiled outside glibc.
21603         (getopt, getopt_long, getopt_long_only): Use it.
21604         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
21605         _getopt_internal, getopt): Likewise.
21606         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
21607         _getopt_long_only_r): Likewise.
21608         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
21609         _getopt_long_r, _getopt_long_only_r): Likewise.
21610
21611         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
21612         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
21613         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
21614         the other external symbols.
21615         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
21616         declaration, since the above renaming now works around collisions.
21617
21618 2004-11-11  Jim Meyering  <jim@meyering.net>
21619
21620         * lib/linebreak.c: Remove trailing blanks.
21621         * lib/alloca_.h: Likewise.
21622         * lib/acosl.c: Likewise.
21623         * lib/euidaccess.c: Likewise.
21624         * lib/allocsa.h: Likewise.
21625
21626 2004-11-10  Simon Josefsson  <jas@extundo.com>
21627
21628         * m4/getaddrinfo.m4: New file.
21629
21630 2004-11-10  Simon Josefsson  <jas@extundo.com>
21631
21632         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
21633
21634 2004-11-10  Simon Josefsson  <jas@extundo.com>
21635
21636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21637         getaddrinfo.
21638
21639         * modules/getaddrinfo: New file.
21640
21641 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21642
21643         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
21644
21645 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21646
21647         * lib/mktime.c (SHR): New macro, which is a portable
21648         substitute for >> that should work even on Crays.
21649         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
21650         Problem reported by Mark D. Baushke in
21651         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
21652         * lib/getdate.y (SHR): Likewise.
21653         (tm_diff): Use it.
21654         * lib/strftime.c (SHR): Likewise.
21655         (tm_diff): Use it.
21656         * lib/quotearg.c (struct quoting_options): Use unsigned int for
21657         quote_these_too, so that right shifts are well defined.  All uses
21658         changed.
21659
21660 2004-11-10  Jim Meyering  <jim@meyering.net>
21661
21662         Ensure that no close failure goes unreported.
21663         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
21664         return early when it seems there's nothing to flush.
21665         Don't include __fpending.h.
21666
21667 2004-11-10  Jim Meyering  <jim@meyering.net>
21668
21669         * modules/closeout (Depends-on): Remove fpending.
21670
21671 2004-11-10  Jim Meyering  <jim@meyering.net>
21672
21673         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
21674
21675 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21676
21677         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
21678         gl_FUNC_STRFTIME.
21679         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
21680         and AC_REQUIRE when possible, to avoid duplicate checks.
21681         Check for <wchar.h>.
21682
21683 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21684
21685         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
21686
21687 2004-11-09  Bruno Haible  <bruno@clisp.org>
21688
21689         * m4/sockpfaf.m4: New file.
21690
21691 2004-11-05  Bruno Haible  <bruno@clisp.org>
21692
21693         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
21694         Reported by Mark D. Baushke <mdb@cvshome.org>.
21695
21696 2004-11-04  Bruno Haible  <bruno@clisp.org>
21697
21698         2004-09-11  Bruno Haible  <bruno@clisp.org>
21699                 * allocsa.valgrind: New file.
21700         2004-02-06  Bruno Haible  <bruno@clisp.org>
21701                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
21702                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
21703                 Reported by Christopher Seip <chris.seip@hp.com>.
21704
21705 2004-11-04  Bruno Haible  <bruno@clisp.org>
21706
21707         * modules/allocsa (Files): Add lib/allocsa.valgrind.
21708         (Makefile.am): Distribute it.
21709
21710 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21711
21712         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
21713         with errno == ERANGE if the buffer is too small.
21714         Problem reported by Mark D. Baushke.
21715
21716 2004-11-03  Albert Chin  <china@thewrittenword.com>
21717             Paul Eggert  <eggert@cs.ucla.edu>
21718
21719         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
21720         equivalent, substitute $ac_type for equivalent type rather than
21721         blindly using uint32_t *always* which won't work if uint32_t is not
21722         available.  Define _UINT32_T to work around typedef of uint32_t if
21723         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
21724         2.5.1.
21725
21726 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21727
21728         * m4/jm-macros.m4: Sync from coreutils.
21729         (gl_MACROS): Check for mbrlen, for pathchk.
21730         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
21731
21732 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21733
21734         * lib/xreadlink.c (MAXSIZE): New macro.
21735         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
21736         size does not exceed MAXSIZE.  Avoid cast.
21737         As suggested by Mark D. Baushke in
21738         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
21739         if readlink fails with buffer size just under MAXSIZE, try again
21740         with MAXSIZE.
21741
21742 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21743
21744         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
21745
21746 2004-11-02  Derek R. Price  <derek@ximbiot.com>
21747         and  Paul Eggert  <eggert@cs.ucla.edu>
21748
21749         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
21750         (get_date): Overparenthesize to avoid GCC warning.
21751
21752 2004-11-02  Bruno Haible  <bruno@clisp.org>
21753
21754         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
21755         returns void.
21756
21757 2004-11-02  Bruno Haible  <bruno@clisp.org>
21758
21759         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
21760         function returns void.
21761
21762 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21763
21764         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
21765         fflush_unlocked, flockfile, funlockfile, funlockfile,
21766         fputs_unlocked, putc_unlocked.
21767
21768 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21769
21770         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21771         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
21772         already declared.
21773
21774 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21775
21776         * modules/getdate (Files): Add doc/getdate.texi.
21777         (Depends-on): Add setenv, xalloc.
21778
21779 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21780
21781         * lib/getdate.y: Add support for TZ="foo" within a date string.
21782         Fix some bugs near time_t boundaries.  Reject dates with
21783         out-of-range components, e.g., "Sept 31".
21784         Include <stdlib.h>, "setenv.h", "xalloc.h".
21785         (ISDIGIT_LOCALE): Remove; unused.
21786         Note that the TZ and time functions used here are not reentrant.
21787         (mktime_ok, get_tz): New functions.
21788         (TZBUFSIZE): New constant.
21789         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
21790         This requires that we sometimes generate our own TZ="XXX..." setting.
21791
21792 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21793
21794         * doc/getdate.texi: New file, from coreutils with modifications for
21795         the new TZ parsing.
21796
21797 2004-10-27  Derek R. Price  <derek@ximbiot.com>
21798
21799         * lib/mktime.c (not_equal_tm): Remove redundant check.
21800
21801 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21802
21803         * modules/regex (lib_SOURCES): Add regex.c.
21804         Reported by James Youngman in
21805         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
21806
21807 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         * lib/getdate.y: Use Bison 1.875 features, and some minor
21810         code cleanups.  This change does not affect semantics.
21811         Don't include <stdlib.h>; no longer needed.
21812         Don't include unlocked-io.h; only the "#if TEST" code uses
21813         stdio, and performance isn't crucial there.
21814         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
21815         Bison 1.875 features as described below.
21816         All uses of "PC." replaced by "pc->".
21817         (YYSTYPE): Add a forward declaration.
21818         (yylex, yyerror): Use full prototypes in forward decls.
21819         Use "%pure-parser" rather than obsolescent "%pure_parser".
21820         Use %parse-param and %lex-param instead of obsolescent
21821         YYPARSE_PARAM and YYLEX_PARAM.
21822         (meridian_table, month_and_day_table, time_units_table,
21823         relative_time_table, time_zone_table, military_table,
21824         lookup_zone, lookup_word, get_date):
21825         Use NULL instead of 0 where appropriate.
21826         (to_hour): Avoid abort (), to avoid a dependency on
21827         stdlib.h.
21828         (yyerror, yylex): Now accepts parser_control * arg.
21829         (main) [TEST]: Use '\0' rather than 0 for char.
21830
21831 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21832
21833         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
21834
21835 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21836
21837         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
21838         It's now the caller's responsibility to handle the case where
21839         !HAVE_GETPAGESIZE && !defined getpagesize.
21840
21841         * lib/mktime.c (leapyear): Arg is long int, not int.
21842
21843 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21844
21845         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
21846
21847 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21848
21849         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
21850         missing.  Problem reported by James Youngman.
21851
21852 2004-10-16  Simon Josefsson  <jas@extundo.com>
21853
21854         * gnulib-tool: Fix comments.  Fix parse problem.
21855         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
21856
21857 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21858
21859         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
21860         implementation of getopt_long.  Problem reported by Alexander Taler in:
21861         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
21862
21863 2004-10-15  Bruno Haible  <bruno@clisp.org>
21864
21865         * gnulib-tool: Untabify. Initialize supplied_libname.
21866         (func_usage): More homogenous output.
21867         (func_modules_transitive_closure, func_modules_to_filelist,
21868         func_emit_lib_Makefile_am): New functions.
21869         (func_import): New function, extracted from big case statement. Use
21870         func_get_license, func_modules_transitive_closure,
21871         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
21872         opt_lgpl. Don't use test -a, as it's not portable.
21873         (func_create_testdir): Use func_modules_transitive_closure,
21874         func_modules_to_filelist, func_emit_lib_Makefile_am.
21875
21876 2004-10-15  Bruno Haible  <bruno@clisp.org>
21877
21878         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
21879
21880 2004-10-15  Bruno Haible  <bruno@clisp.org>
21881
21882         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
21883         the portions belonging to each module.
21884         Suggested by Derek Robert Price <derek@ximbiot.com>.
21885
21886 2004-10-12  Simon Josefsson  <jas@extundo.com>
21887
21888         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21889         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
21890         to real functions.
21891
21892 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21893
21894         * modules/vsnprintf: New file.
21895
21896 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21897
21898         * m4/vsnprintf.m4: New file.
21899
21900 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21901
21902         * lib/vsnprintf.h: New file.
21903         * lib/vsnprintf.c: New file.
21904
21905 2004-10-11  Bruno Haible  <bruno@clisp.org>
21906
21907         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
21908         vsnprintf.
21909
21910 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21911
21912         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
21913
21914 2004-10-07  Bruno Haible  <bruno@clisp.org>
21915
21916         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
21917         fits into the provided buffer.
21918
21919 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21920
21921         * lib/diacrit.c, diacrit.h: Add GPL notice.
21922
21923         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
21924         notice.
21925         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
21926         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
21927         This avoids a potential constant-folding bug.
21928
21929 2004-10-05  Bruno Haible  <bruno@clisp.org>
21930
21931         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
21932         for the declaration of strsep.
21933
21934 2004-10-05  Bruno Haible  <bruno@clisp.org>
21935
21936         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
21937
21938 2004-10-04  Simon Josefsson  <jas@extundo.com>
21939
21940         * modules/memmem: New file.
21941         * tests/test-memmem.c: New file.
21942         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
21943
21944 2004-10-04  Simon Josefsson  <jas@extundo.com>
21945
21946         * m4/memmem.m4: New file.
21947
21948 2004-10-04  Simon Josefsson  <jas@extundo.com>
21949
21950         * lib/memmem.h: New file.
21951         * lib/memmem.c: New file, taken from glibc.
21952
21953 2004-10-04  Simon Josefsson  <jas@extundo.com>
21954
21955         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
21956         '#ifdef USE_UNLOCKED_IO'.
21957
21958 2004-10-04  Simon Josefsson  <jas@extundo.com>
21959
21960         * config/srclist.txt: Add memmem from glibc.
21961
21962 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21963
21964         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
21965
21966         * modules/argmatch, modules/argp, modules/closeout, modules/error,
21967         modules/exclude, modules/getdate, modules/getline,
21968         modules/getndelim2, modules/getpass, modules/getpass-gnu,
21969         modules/getusershell, modules/linebuffer, modules/md5,
21970         modules/mountlist, modules/posixtm, modules/readtokens,
21971         modules/readutmp, modules/regex, modules/sha1,
21972         modules/version-etc, modules/yesno:
21973         Remove dependency on unlocked-io.
21974
21975 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21976
21977         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
21978
21979         * m4/unlocked-io.m4: Add copyright notice.
21980         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
21981
21982 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21983
21984         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
21985         * lib/xmalloc.c (xmemdup): Likewise.
21986         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
21987         XFREE): Remove these long-obsolescent macros.
21988         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
21989         * lib/xstrdup.c: Remove.
21990
21991         * lib/regex.c (re_comp): Cast gettext return value to char *,
21992         Problem reported by Martin Neitzel via Mark D. Baushke.
21993
21994 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21995
21996         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
21997         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
21998         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
21999         regex.c, sha1.c, version-etc.c, yesno.c:
22000         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
22001         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
22002         the includer's responsibility.
22003
22004         Sync from coreutils.
22005
22006         * lib/modechange.c (mode_compile): Don't decrement a pointer that
22007         points to the start of a string, as the C Standard says the
22008         resulting behavior is undefined.
22009
22010         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
22011         simple -> simple_backups, numbered_existing ->
22012         numbered_existing_backups, numbered -> numbered_backups
22013         to avoid shadowing problems.  All uses changed.
22014         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
22015         * lib/backupfile.c (check_extension, numbered_backup):
22016         Rename locals to avoid shadowing 'basename'.
22017         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
22018         once.
22019
22020         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
22021         * lib/.cvsignore: Add getopt.h.
22022
22023 2004-10-04  Bruno Haible  <bruno@clisp.org>
22024
22025         * modules/README: New file.
22026         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
22027         not a module.
22028
22029 2004-10-02  Jim Meyering  <jim@meyering.net>
22030
22031         * lib/dirfd.h, getpagesize.h: Add copyright notice.
22032
22033 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22034
22035         * modules/strsep: New file.
22036
22037 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22038
22039         * m4/strsep.m4: New file.
22040
22041 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
22042
22043         * lib/strsep.h: New file.
22044         * lib/strsep.c: New file.
22045
22046 2004-10-01  Simon Josefsson  <jas@extundo.com>
22047
22048         * lib/snprintf.c (snprintf): Handle size==0.
22049
22050 2004-10-01  Simon Josefsson  <jas@extundo.com>
22051             Bruno Haible  <bruno@clisp.org>
22052
22053         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
22054         (snprintf): Declare 'args'.
22055
22056 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
22057
22058         * lib/snprintf.c: Remove comments as to why each header is needed.
22059
22060 2004-10-01  Bruno Haible  <bruno@clisp.org>
22061
22062         * MODULES.html.sh: Add strsep.
22063
22064 2004-09-30  Simon Josefsson  <jas@extundo.com>
22065
22066         * modules/snprintf: New file.
22067
22068 2004-09-30  Simon Josefsson  <jas@extundo.com>
22069
22070         * m4/snprintf.m4: New file.
22071
22072 2004-09-30  Simon Josefsson  <jas@extundo.com>
22073
22074         * lib/snprintf.h, lib/snprintf.c: New files.
22075
22076 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22077
22078         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
22079         (hol_entry_help): Never translate an empty string.
22080         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
22081         * lib/argp.h (OPTION_NO_TRANS): New option.
22082
22083 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
22084
22085         * modules/argp (Maintainer): Replace Simon Josefsson
22086         by Sergey Poznyakoff.
22087
22088 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
22089
22090         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
22091         changes merged back into glibc.
22092
22093 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
22094
22095         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
22096
22097 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
22098
22099         * lib/xvasprintf.c: Include xalloc.h.
22100         (xvasprintf): Use xalloc_die, not xmalloc_die.
22101
22102 2004-09-29  Bruno Haible  <bruno@clisp.org>
22103
22104         * modules/alloca-opt: New file, derived from modules/alloca.
22105         * modules/allocsa: Depend on alloca-opt instead of alloca.
22106         * modules/setenv: Likewise.
22107         * modules/vasnprintf: Likewise.
22108         * MODULES.html.sh: Add alloca-opt.
22109
22110 2004-09-28  Simon Josefsson  <jas@extundo.com>
22111
22112         * gnulib-tool: New parameter --lgpl, to asseert that modules are
22113         LGPL, and to replace license template from GPL to LGPL.
22114
22115 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
22116
22117         * modules/dummy: Change license to LGPL.
22118
22119 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
22120
22121         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
22122
22123 2004-09-24  Simon Josefsson  <jas@extundo.com>
22124
22125         * modules/minmax (License): Change from GPL to LGPL.
22126
22127 2004-09-23  Simon Josefsson  <jas@extundo.com>
22128
22129         * gnulib-tool (--import): Typo.
22130
22131 2004-09-23  Simon Josefsson  <jas@extundo.com>
22132
22133         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
22134
22135 2004-09-22  Bruno Haible  <bruno@clisp.org>
22136
22137         * modules/*: Add 'License' field.
22138         * gnulib-tool: Accept --extract-license option.
22139         (func_get_license): New function.
22140
22141 2004-09-21  Bruno Haible  <bruno@clisp.org>
22142
22143         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22144         Reported by Simon Josefsson.
22145
22146 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22147
22148         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
22149         gl_AC_TYPE_LONG_LONG.
22150
22151 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22152
22153         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
22154
22155 2004-09-18  Simon Josefsson  <jas@extundo.com>
22156         and  Paul Eggert  <eggert@cs.ucla.edu>
22157
22158         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
22159         calls with autoreconf.  Define GL_LIB.
22160
22161 2004-09-14  Karl Berry  <karl@gnu.org>
22162
22163         * config/srclist.txt: unsync setenv.c, sigh.
22164
22165 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22166
22167         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
22168         Problem reported by Bruno Haible in:
22169         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
22170
22171 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22172
22173         * config/srclist.txt: Comment out argp-pvh.c.
22174
22175 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
22176
22177         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
22178         in case some system header has #define'd it.  Problem reported by
22179         Soeren D. Schulze in
22180         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
22181
22182 2004-09-09  Karl Berry  <karl@gnu.org>
22183
22184         * regex.[ch]: delete from the root.  These were supposed to be
22185                 synced with emacs cvs, but this has not happened for about
22186                 a year, and anyway nothing else uses emacs regex.[ch].
22187                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
22188                 lib/regex[.ch] is untouched.
22189
22190 2004-09-09  Bruno Haible  <bruno@clisp.org>
22191
22192         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
22193
22194 2004-09-09  Bruno Haible  <bruno@clisp.org>
22195
22196         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
22197         modifications.
22198         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
22199
22200 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
22201
22202         * modules/xvasprintf: New file.
22203         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
22204
22205 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
22206
22207         * lib/xvasprintf.h: New file.
22208         * lib/xvasprintf.c: New file.
22209         * lib/xasprintf.c: New file.
22210
22211 2004-09-08  Bruno Haible  <bruno@clisp.org>
22212
22213         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
22214
22215 2004-09-08  Bruno Haible  <bruno@clisp.org>
22216
22217         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
22218         length is > INT_MAX.
22219         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
22220         more.
22221
22222 2004-09-08  Bruno Haible  <bruno@clisp.org>
22223
22224         * lib/stdint_.h: New file, taken from GNU clisp.
22225
22226 2004-09-08  Bruno Haible  <bruno@clisp.org>
22227             Oskar Liljeblad  <oskar@osk.mine.nu>
22228
22229         * modules/stdint: New file.
22230         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
22231
22232 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22233
22234         Import from coreutils.
22235         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
22236         strings on unbounded length.  alloca's performance benefits aren't
22237         that important here.
22238         (V_STRDUP): Remove.
22239         (parse_with_separator): New function, with most of the internals
22240         of the old parse_user_spec.  Allow user to omit both user and group,
22241         for compatibility with FreeBSD.
22242         Clone only the user name, not the entire spec.
22243         Do not set *uid, *gid unless entirely successful.
22244         Avoid memory leak in some failing cases.
22245         Fix regression for USER.GROUP reported by Dmitry V. Levin in
22246         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
22247         (parse_user_spec): Rewrite to use parse_with_separator.
22248
22249 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22250
22251         * modules/userspec: Don't depend on alloca.
22252
22253 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22254
22255         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
22256
22257 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22258
22259         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
22260         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
22261         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
22262
22263 2004-08-16  Simon Josefsson  <jas@extundo.com>
22264
22265         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
22266         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
22267         Add --dry-run for --import.
22268         Let user provided command line parameters override configure.ac
22269         settings.
22270
22271 2004-08-12  Simon Josefsson  <jas@extundo.com>
22272
22273         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
22274         as discussed with Paul Eggert in threads rooted at
22275         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
22276         and
22277         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
22278         Before, the test was empty, and relied on ELIDE_CODE in source
22279         code.)
22280         (gl_PREREQ_GETOPT): New macro.
22281         (gl_GETOPT): Use them.
22282
22283 2004-08-12  Simon Josefsson  <jas@extundo.com>
22284
22285         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
22286         * lib/getopt_.h: Renamed from getopt.h.
22287
22288 2004-08-12  Simon Josefsson  <jas@extundo.com>
22289
22290         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
22291         Change default library name from libfoo to libgnu.
22292         Now, if you have a configure.ac that says:
22293                 gl_SOURCE_BASE(gl)
22294                 gl_M4_BASE(gl/m4)
22295                 gl_MODULES(error getopt etcetera)
22296                 gl_INIT
22297         you can import all you need by running:
22298                 ../gnulib/gnulib-tool --import
22299
22300         * modules/getopt (Files): Rename getopt.h to getopt_.h.
22301         (Makefile.am): Rewrite, use logic from argz.
22302         (Include): Use <getopt.h> instead of "getopt.h".
22303
22304 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22305
22306         * modules/argp (Files): Add m4/unlocked-io.m4.
22307         (Depends-on): Add extensions.
22308
22309 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22310
22311         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
22312         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
22313         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
22314         Check for program_invocation_name, program_invocation_short_name,
22315         flockfile, funlockfile, features.h, _getopt_long_only_r.
22316
22317 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22318
22319         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
22320         its complicated substitute.
22321         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
22322         and program_invocation_name.
22323         (__argp_basename) [!_LIBC]: Remove; the only use was
22324         replaced by its body.
22325         (__argp_short_program_name): Change condition from
22326         !defined __argp_short_program_name to
22327         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
22328         to match argp-namefrob.h.
22329         (__argp_failure): Don't assume strerror_r returns char *.
22330         * lib/argp-parse.c (N_): Define unconditionally.
22331         (argp_default_options): Fill out initializers with 0 to avoid
22332         gcc warnings.
22333
22334 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22335
22336         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
22337         getopt1.c.
22338
22339 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22340
22341         Merge from coreutils.
22342
22343         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
22344
22345         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
22346         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
22347
22348 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22349
22350         Merge from coreutils.
22351
22352         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
22353         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
22354         for Reliant Unix 5.43.
22355
22356         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
22357         (union fooround): Use uintmax_t, not long int.
22358         The rest is a merge from libc:
22359         [defined _LIBC]: Include <shlib-compat.h>.
22360         (_obstack) [defined _LIBC]: Remove after 2.3.4.
22361
22362         * lib/settime.c (settime): Recode to avoid warning with
22363         Sun Forte C 6U2.
22364
22365         * lib/strverscmp.c: Convert to UTF-8.
22366
22367 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22368
22369         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
22370         m4/uintmax_t.m4.
22371
22372 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22373
22374         * modules/xalloc-die: New file.
22375         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
22376
22377         * modules/md5 (Files): Add m4/uint32_t.m4.
22378         * modules/sha1: Renamed from modules/sha.
22379         (Files):
22380         Rename lib/sha.h to lib/sha1.h.
22381         Rename lib/sha.c to lib/sha1.c.
22382         Rename m4/sha.m4 to m4/sha1.m4.
22383         (lib_SOURCES): Likewise.
22384         (configure.ac): Rename gl_SHA to gl_SHA1.
22385         (Include): sha.h -> sha1.h.
22386
22387 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22388
22389         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
22390         * m4/sha1.m4: Renamed from sha.m4.
22391         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
22392
22393 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22394
22395         * lib/obstack.h (obstack_empty_p):
22396         Don't assume that chunk->contents is suitably aligned.
22397         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
22398         Likewise. Problem reported by Benno in
22399         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
22400
22401         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
22402         readable.  This could be improved further but it'd take some work.
22403
22404 2004-08-08  Simon Josefsson  <jas@extundo.com>
22405
22406         * modules/xgethostname (Depends-on): Remove exit and error (not
22407         used).
22408
22409         * modules/getpass-gnu: Add getpass.h.
22410         (Depends-on): Add stdbool.
22411         * modules/getpass: Add getpass.h.
22412
22413 2004-08-08  Simon Josefsson  <jas@extundo.com>
22414
22415         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
22416         Check getpass declaration.
22417
22418 2004-08-08  Simon Josefsson  <jas@extundo.com>
22419
22420         * lib/xgethostname.c: Don't include error.h (not used).
22421
22422         * lib/getpass.h: Add.
22423         * lib/getpass.c: Include getpass.h first.
22424
22425 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22426
22427         * lib/xalloc-die.c: New file.
22428         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
22429         All uses removed.
22430         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
22431         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
22432         xalloc-die.c.
22433         (_, N_, xalloc_die): Move to xalloc-die.c.
22434         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
22435         so that we needn't mess with xalloc_msg_memory_exhausted.
22436
22437         * lib/sha1.h: Renamed from sha.h.
22438         (SHA1_H): Renamed from _SHA_H.
22439         (sha1_ctx): Renamed from sha_ctx.
22440         (sha1_init_ctx): Renamed from sha_init_ctx.
22441         (sha1_process_block): Renamed from sha_process_block.
22442         (sha1_process_bytes): Renamed from sha_process_bytes.
22443         (sha1_finish_ctx): Renamed from sha_finish_ctx.
22444         (sha1_read_ctx): Renamed from sha_read_ctx.
22445         (sha1_stream): Renamed from sha_stream.
22446         (sha1_buffer): Renamed from sha_buffer.
22447         * lib/sha1.c: Likewise; renamed from sha.c.
22448         Do not include <sys/types.h>.
22449         Include <stddef.h> rather than <stdlib.h>.
22450
22451 2004-08-08  Bruno Haible  <bruno@clisp.org>
22452
22453         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
22454         FILESYSTEM_PREFIX_LEN.
22455         * lib/progreloc.c: Likewise.
22456         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
22457
22458 2004-08-06  Simon Josefsson  <jas@extundo.com>
22459
22460         * modules/progname (Depends-on): Don't depend on stdbool.
22461
22462 2004-08-06  Simon Josefsson  <jas@extundo.com>
22463
22464         * modules/getsubopt: New file.
22465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22466         getsubopt.
22467
22468 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22469
22470         More merge from coreutils.
22471
22472         * m4/utimens.m4, m4/utimecmp.m4: New files.
22473         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
22474         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
22475         prereq.m4, sha.m4: Import changes from coreutils.
22476
22477 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22478
22479         More merge from coreutils.
22480         * modules/raise, modules/readtokens0, modules/utimens:
22481         * modules/utimecmp, module/xnanosleep: New files.
22482         * modules/strftime: Add lib/strftime.h.
22483         Change include from <time.h> to "strftime.h".
22484         * modules/yesno: Add lib/yesno.h.
22485         * modules/backupfile: Remove lib/addext.c.
22486         * modules/euidaccess: Add stat-macros.h.
22487         * modules/canonicalize, modules/euidaccess,
22488         modules/filemode, modules/lchown, modules/makepath,
22489         modules/rmdir, modules/stat: Likewise.
22490
22491 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22492
22493         Merge from tar.
22494         * lib/argp-help.c (make_hol, hol_append): Don't assume that
22495         SIZE_MAX is a valid preprocessor constant.
22496         (__argp_basename): Change from "#ifndef _LIBC"
22497         to "#ifndef __argp_short_program_name", so that
22498         we don't compile these functions for tar.
22499
22500         More merges from coreutils.
22501         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
22502         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
22503         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
22504         * lib/addext.c: Remove; no longer needed.
22505         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
22506         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
22507         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
22508         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
22509         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
22510         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
22511         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
22512         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
22513         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
22514         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
22515         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
22516         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
22517         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
22518         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
22519         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
22520         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
22521         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
22522         Import changes from coreutils.
22523
22524 2004-08-05  Simon Josefsson  <jas@extundo.com>
22525
22526         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
22527
22528 2004-08-05  Simon Josefsson  <jas@extundo.com>
22529
22530         * m4/getsubopt.m4: New file.
22531
22532 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22533
22534         Merge from coreutils.
22535
22536         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
22537         * m4/getcwd-path-max.m4: New files.
22538
22539         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
22540         FILESYSTEM_PREFIX_LEN ->
22541         FILE_SYSTEM_PREFIX_LEN.
22542         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
22543         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
22544         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
22545         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
22546
22547         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
22548         prerequisite modules now handle the DOS stuff.
22549         Don't check for unistd.h.
22550
22551 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22552
22553         Merge from coreutils.
22554
22555         * lib/.gdb-history: Remove; this doesn't belong here.
22556
22557         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
22558         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
22559         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
22560         * lib/getcwd.c: New files.
22561
22562         * lib/dirname.h: Include <stdbool.h>.
22563         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
22564         for consistency with POSIX terminology.  All uses changed.
22565         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
22566         (strip_trailing_slashes): Use bool for booleans.
22567         * lib/stripslash.c (strip_trailing_slashes): Likewise.
22568
22569         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
22570         sometimes returns a positive errno value even when it succeeds.
22571         (print_errno_message) [!LIBC]: Fall back on strerror if
22572         __strerror_r fails.
22573
22574         * lib/path-concat.c (mempcpy): Don't define if a system header defines
22575         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
22576         (longest_relative_suffix): New function.
22577         (path_concat): Use it.  Assume first argument is not NULL.
22578         Port to DOS.  Omit redundant separators.
22579         Report an error instead of returning NULL.
22580         Use mempcpy instead of memcpy.
22581         (xpath_concat): Remove: not declared or used.
22582
22583         * lib/same.h: Include <stdbool.h>
22584         (same_name): Return bool, not int.
22585         * lib/same.c (same_name): Likewise.
22586         (errno): Don't declare; we assume C89 or better now.
22587
22588         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
22589         if not already defined.
22590
22591         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
22592         * lib/dup-safer.c (errno): Likewise.
22593
22594 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22595
22596         Merge from coreutils.
22597         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
22598         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
22599         * modules/path-concat: Don't depend on strdup.
22600
22601 2004-08-03  Simon Josefsson  <jas@extundo.com>
22602
22603         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
22604         * lib/progname.h: Don't include stdbool.h.
22605
22606 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22607
22608         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
22609         * MODULES.html.sh (func_all_modules): Remove fatal.
22610
22611 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22612
22613         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
22614
22615 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22616
22617         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
22618         working.
22619
22620 2004-08-02  Simon Josefsson  <jas@extundo.com>
22621
22622         * lib/getsubopt.h: New file, with comments from Bruno Haible.
22623         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
22624         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
22625
22626 2004-08-01  Simon Josefsson  <jas@extundo.com>
22627
22628         * lib/xgetdomainname.c: Include stdlib.h, for free().
22629
22630 2004-07-19  Bruno Haible  <bruno@clisp.org>
22631
22632         * MODULES.html.sh (func_all_modules): Add dummy.
22633
22634 2004-07-16  Simon Josefsson  <jas@extundo.com>
22635
22636         * modules/dummy: New file.
22637
22638 2004-07-16  Simon Josefsson  <jas@extundo.com>
22639
22640         * lib/dummy.c: New file.
22641
22642 2004-07-16  Bruno Haible  <bruno@clisp.org>
22643
22644         * lib/backupfile.h: Add extern "C" for C++.
22645         * lib/closeout.h: Likewise.
22646         * lib/copy-file.h: Likewise.
22647         * lib/findprog.h: Likewise.
22648         * lib/full-write.h: Likewise.
22649         * lib/pathname.h: Likewise.
22650         * lib/progname.h: Likewise.
22651         * lib/stpcpy.h: Likewise.
22652         * lib/stpncpy.h: Likewise.
22653         * lib/strcase.h: Likewise.
22654         * lib/strstr.h: Likewise.
22655         * lib/xalloc.h: Likewise.
22656
22657         * lib/mbswidth.h: Add extern "C" for C++.
22658         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
22659
22660 2004-07-13  Robert Millan  <robertmh@gnu.org>
22661
22662         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
22663
22664 2004-07-09  Simon Josefsson  <jas@extundo.com>
22665
22666         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
22667         failed without this.)
22668
22669 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22670
22671         * modules/chown (Files): Add lib/fchown-stub.c, since
22672         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
22673
22674 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22675
22676         * lib/fchown-stub.c: New file.
22677
22678 2004-06-24  Jim Meyering  <jim@meyering.net>
22679
22680         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
22681
22682 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22683
22684         * modules/argz: Omit "#include".
22685
22686         * MODULES.html.sh (func_all_modules): Add calloc, to match
22687         2004-06-01 addition of calloc module.
22688
22689 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22690
22691         * m4/argz.m4: New file, which is autoupdated from libtool.
22692
22693 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22694
22695         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
22696         libtool.
22697
22698 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22699
22700         * config/srclist-update: Don't insist on "USA." before the
22701         close-comment, as libtool omits the period and puts the */ on a
22702         separate line.
22703         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
22704         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
22705
22706 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
22707
22708         * modules/argz: New file.
22709         * MODULES.html.sh (func_all_modules): Add argz.
22710
22711 2004-06-12  Jim Meyering  <jim@meyering.net>
22712         and  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         * modules/hash (Files): Add lib/xalloc.h.
22715         * modules/pipe (Depends-on): Add wait-process.
22716         * modules/stat (Depends-on): Add xalloc.
22717         * modules/userspec (Files): Add lib/userspec.h.
22718         * modules/xstrto
22719
22720         Upgrade from gettext-0.13.
22721         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
22722         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
22723         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
22724
22725 2004-06-10  Jim Meyering  <jim@meyering.net>
22726
22727         * lib/calloc.c: New file.
22728
22729 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22730
22731         * lib/getdate.y (yylex): Allow space between sign and number.
22732         Problem reported by Dan Jacobson.
22733
22734 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22735
22736         Merge from coreutils CVS.
22737
22738         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
22739         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
22740         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
22741         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
22742         xstrtol.m4: Fix copyright date and/or serial number.
22743
22744         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
22745         See if we need an fchown replacement.
22746         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
22747         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
22748         and use the replacement function if we detect either defect.
22749
22750         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
22751         gl_UTIMECMP.
22752
22753 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22754         and  Jim Meyering  <jim@meyering.net>
22755
22756         Merge from coreutils CVS.
22757
22758         * lib/stat-macros.h: New file, with contents from file-type.h
22759         and coreutils' system.h.
22760         * lib/file-type.c: Include "stat-macros.h".
22761         * lib/file-type.h (file_type): Move all macro definitions to new file,
22762         stat-macros.h.
22763
22764         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
22765         Wrap old code with this conditional.
22766         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
22767         function that does not dereference symlinks.
22768         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
22769
22770         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
22771         dependency problems.
22772         (xreadlink): Accept new arg SIZE, for efficiency.
22773         All decls and uses changed.
22774         * lib/xreadlink.h: Include <stddef.h>, for size_t.
22775
22776         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
22777         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
22778
22779         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
22780         sysexits.h.
22781
22782 2004-06-01  Jim Meyering  <jim@meyering.net>
22783
22784         * m4/calloc.m4: New file.
22785
22786 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
22787
22788         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
22789         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
22790         Also, fix a typo in a diagnostic.
22791
22792 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22793
22794         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
22795         or AC_FUNC_REALLOC.
22796
22797 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22798
22799         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
22800         macros to be defined.
22801         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
22802         the allocator returns NULL because the requested size is zero.
22803
22804 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
22805
22806         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
22807         var.  Add comment explaining why libc still defines it.  This
22808         merges the following patch from glibc:
22809         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
22810
22811 2004-05-20  Andreas Schwab  <schwab@suse.de>
22812
22813         * m4/free.m4: Replace free if it not known to work, not the other
22814         way round.
22815
22816 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22817
22818         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
22819         present in glibc since revision 1.1 of this file.
22820         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
22821         obstack_alignment_mask, obstack_alloc, obstack_base,
22822         obstack_blank, obstack_blank_fast, obstack_chunk_size,
22823         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
22824         obstack_grow0, obstack_init, obstack_int_grow,
22825         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
22826         obstack_next_free, obstack_object_size, obstack_ptr_grow,
22827         obstack_ptr_grow_fast, obstack_room): Remove declarations of
22828         nonexistent functions.
22829
22830 2004-05-18  Karl Berry  <karl@gnu.org>
22831
22832         * config/srclist.txt: break link for vasnprintf.c.
22833
22834 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22835
22836         Port obstack to the AS/400, where pointers are 16 bytes wide and
22837         you cannot cast an integer to a valid pointer.  This patch is
22838         currently waiting to be integrated into glibc; see
22839         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
22840
22841         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
22842         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
22843         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
22844         (struct obstack): temp member is now a union of a pointer and
22845         an integer, instead of an integer.  All integer uses changed.
22846         This does not affect the physical layout of struct obstack,
22847         except on hosts (like the AS/400) where the size or alignment of
22848         void * is greater than that of ptrdiff_t.
22849         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
22850         __STDC__)]: Store temporary in pointer member of union, not
22851         integer member.
22852         * lib/obstack.c: Include <stddef.h>, for offsetof.
22853         (struct fooalign): Remove; it doesn't need a name.
22854         (union fooround): Change double to long double, and add void *.
22855         (DEFAULT_ALIGNMENT): Use offsetof to compute.
22856         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
22857         not a macro.  Hence the values are always int; so remove all
22858         casts-to-int in uses.
22859
22860 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22861
22862         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
22863         we can get this patch merged into glibc.
22864
22865 2004-05-17  Derek R. Price  <derek@ximbiot.com>
22866             Paul Eggert  <eggert@cs.ucla.edu>
22867
22868         * m4/argp: Depend on alloca.
22869
22870 2004-05-17  Derek R. Price  <derek@ximbiot.com>
22871             Paul Eggert  <eggert@cs.ucla.edu>
22872
22873         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
22874         freecoding.
22875
22876 2004-05-17  Bruno Haible  <bruno@clisp.org>
22877
22878         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
22879         precision that consists of a '.' followed by an empty digit string.
22880         Patch by Tor Lillqvist <tml@iki.fi>.
22881
22882 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22883
22884         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
22885         for backward compatibility with older code.  We need our own
22886         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
22887         it under some other name, and our alloca.h will define it.
22888
22889 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22890             Derek Price  <derek@ximbiot.com>
22891
22892         * lib/alloca.c: Include <alloca.h>, to get our interface.
22893         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
22894         include <alloca.h> first.  Use C89 prototype for alloca; this
22895         requires including <stddef.h> for size_t.  Use extern "C" if C++.
22896         Use #elif for simplicity, since we can assume C89 now.
22897         Don't try to source the system alloca.h since it will not be found
22898         and to prevent recursively including its replacement.
22899         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
22900         * lib/regex.c: Likewise.
22901
22902 2004-05-16  Derek Price  <derek@ximbiot.com>
22903             Paul Eggert  <eggert@cs.ucla.edu>
22904
22905         getline cleanup.  This changes the getndelim2 API: both order of
22906         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
22907         no delimiter).
22908
22909         * lib/getline.c: Don't include stddef.h or stdio.h, since our
22910         interface does that.
22911         (getline): Always use getdelim, so that we don't have two
22912         copies of this code.
22913         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
22914         if available.
22915         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
22916         (GETNDELIM2_MAXIMUM): New macro.
22917         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
22918         instead of the old practice of delim2==0.  All callers changed.
22919         Return -1 on overflow, instead of returning junk.
22920         Do not set *linesize unless allocation succeeds.
22921         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
22922         that we include sys/types.h.
22923         * lib/getnline.h: Likewise.
22924         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
22925         (getndelim2): Reorder arguments.
22926         * lib/getnline.c (getnline, getndelim):
22927         Don't discard the NMAX argument.
22928         (getnline): Invoke getndelim, to avoid code duplication.
22929         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
22930         of (size_t) -1 by callers of the getnline family.
22931
22932 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
22933
22934         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
22935         Check for gettimeofday.
22936         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
22937         Check for settimeofday, stime.
22938
22939 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
22940
22941         * lib/nanosleep.c (suspended): Change its type from int to
22942         sig_atomic_t volatile.
22943         (first_call): Make it private to rpl_nanosleep, and have it
22944         be zero initially as that's a bit faster.
22945         (my_usleep): Round up fractional times instead of truncating them,
22946         as this is the usual meaning for 'sleep'.
22947
22948         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
22949         doesn't work.
22950         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
22951         (ENOSYS): Define if not defined.
22952         (settime): Fall back on stime if it exists and settimeofday fails.
22953         But don't bother with fallbacks if a method fails with errno == EPERM.
22954
22955 2004-05-11  Jim Meyering  <jim@meyering.net>
22956
22957         Prior to this change, the save_cwd caller required read access to the
22958         current directory on most systems (ones with the fchdir function).
22959
22960         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
22961         fails, try write-only, and finally, resort to using xgetcwd.
22962
22963 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22964
22965         * lib/obstack.c, obstack.h: Import changes from libc.
22966
22967 2004-04-28  Bruno Haible  <bruno@clisp.org>
22968
22969         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
22970         also implicitly appends .exe to executables.
22971         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
22972         accepts Windows pathnames.
22973         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
22974         Treat Cygwin like Windows, since it now accepts Windows pathnames.
22975         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
22976         Treat Cygwin like Windows, since it now accepts Windows pathnames.
22977         Reported by Derek Robert Price <derek@ximbiot.com>.
22978
22979 2004-04-21  Karl Berry  <karl@gnu.org>
22980
22981         * config/srclist.txt (localcharset.c): break sync.
22982
22983 2004-04-20  Paul Eggert  <eggert@twinsun.com>
22984
22985         * m4/host-os.m4: Add a copyright notice.
22986
22987 2004-04-20  Jim Meyering  <jim@meyering.net>
22988
22989         Change UTILS_ to gl_ in AC_DEFINE'd names.
22990         Change utils_- and jm_-prefixed variables, too.
22991         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
22992         UTILS_FUNC_MKDIR_TRAILING_SLASH.
22993         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
22994
22995         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
22996         Don't emit trailing blanks.
22997         Also rename jm_-prefixed variables to have gl_ prefix.
22998
22999         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
23000         Also rename jm_-prefixed variables to have gl_ prefix.
23001
23002         * m4/jm-macros.m4: Reflect the renamings.
23003         * m4/prereq.m4: Likewise.
23004
23005 2004-04-20  Jim Meyering  <jim@meyering.net>
23006
23007         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
23008         memory.
23009
23010 2004-04-20  Jim Meyering  <jim@meyering.net>
23011             Bruno Haible  <bruno@clisp.org>
23012
23013         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
23014         memory when realloc fails.
23015
23016 2004-04-19  Jim Meyering  <jim@meyering.net>
23017
23018         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
23019         now that readutmp.c may call `free (0)'.
23020
23021 2004-04-19  Bruno Haible  <bruno@clisp.org>
23022
23023         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
23024         * m4/inttypes_h.m4: Likewise.
23025         * m4/stdint_h.m4: Likewise.
23026         * m4/intmax_t.m4: Likewise.
23027         * m4/uintmax_t.m4: Likewise.
23028
23029 2004-04-18  Jim Meyering  <jim@meyering.net>
23030
23031         * m4/prereq.m4: Don't forbid jm_ prefix.
23032
23033         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
23034         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
23035         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
23036         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
23037         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
23038         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
23039         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
23040         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
23041         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
23042         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
23043         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
23044         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
23045         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
23046         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
23047         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
23048         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
23049         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
23050         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
23051         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
23052
23053 2004-04-18  Jim Meyering  <jim@meyering.net>
23054
23055         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
23056         failure, don't leak memory and do call END_UTMP_ENT.
23057
23058 2004-04-16  Jim Meyering  <jim@meyering.net>
23059
23060         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
23061         coreutils' stat program.
23062         (gl_PREREQ): Don't require jm_PREREQ_STAT.
23063
23064 2004-04-11  Paul Eggert  <eggert@twinsun.com>
23065
23066         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
23067         C89.
23068         (CHAR_BIT): Remove, since we assume C89.
23069         Include <stdint.h> if available, as per current Autoconf CVS advice.
23070
23071 2004-03-31  Jim Meyering  <jim@meyering.net>
23072
23073         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
23074         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
23075         * m4/xalloc.m4: Likewise.
23076
23077 2004-03-30  Paul Eggert  <eggert@twinsun.com>
23078
23079         Merge from coreutils.
23080
23081         * m4/inttostr.m4: New file.
23082         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
23083         Require AM_STDBOOL_H and gl_TIMESPEC instead.
23084         Require gl_CLOCK_TIME.
23085         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
23086
23087 2004-03-30  Paul Eggert  <eggert@twinsun.com>
23088
23089         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
23090         not bool, to be more consistent with Unix conventions.
23091         Suggested by Bruno Haible.
23092
23093         Merge from coreutils.
23094
23095         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
23096         * lib/umaxtostr.c: New files.
23097
23098         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
23099         the usual <time.h> dance.
23100         (get_date): Change signature to support fractional time stamps.
23101         All callers changed.
23102         * lib/getdate.y: Include "getdate.h" first, as we can now
23103         assume C89 and don't need to worry about 'const'.
23104         Similarly, include "unlocked-io.h" near start, not in middle.
23105         Include <limits.h>.
23106         (textint.value): Use long int rather than int.
23107         (textint.digits): Use size_t rather than int.
23108         (BILLION, LOG10_BILLION): New constants.
23109         (parser_control): New member rel_ns.  Members day_ordinal,
23110         time_zone, month, day, hour, minutes, rel_year, rel_month,
23111         rel_day, rel_hour, rel_minutes, rel_seconds
23112         are now long int, not int.  Member seconds is now struct timespec,
23113         not int.  New member timespec_seen.  Members dates_seen, days_seen,
23114         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
23115         not int.
23116         (%union.intval): Now long int, not int.
23117         New member timespec.
23118         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
23119         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
23120         (spec): Now is a timespec or an item list.
23121         (timespec, items): New nonterminals.
23122         (time, rel, relunit, number, get_date):
23123         Add support for fractional seconds.
23124         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
23125         (gmtime, localtime, mktime): Remove decls; not needed with C89.
23126         (to_hour): First arg is now long int, not int.
23127         (to_year): Returns long int, not int.
23128         Don't treat year -70 like 70.
23129         (tm_diff): Returns long int, not int.
23130         (lookup_word): Use bool instead of int when appropriate.
23131         (yylex): Use size_t for count, not int.
23132         Detect overflow when parsing large integer constants.
23133         Add support for fractions.
23134         (get_date): Make pointers 'const' if possible.
23135         Use more-portable code to detect integer overflow.
23136         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
23137         Don't use ctime; it's not reliable if the year has >4 digits.
23138
23139         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
23140         This is for compatibility with BSD.
23141
23142         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
23143         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
23144         From coreutils' system.h.
23145
23146         * lib/userspec.c: Don't include "posixver.h".
23147         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
23148         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
23149         compatible extension.  Simplify code by removing a boolean int
23150         that was always nonzero if a string was nonnull.
23151
23152 2004-03-30  Jim Meyering  <jim@meyering.net>
23153
23154         Merge from coreutils.
23155
23156         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
23157         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
23158         on some systems one must include <grp.h> before it.
23159         Reported by Christian Krackowizer.
23160
23161 2004-03-30  Jim Meyering  <jim@meyering.net>
23162
23163         Merge from coreutils.
23164
23165         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
23166
23167         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
23168         an empty input stream.
23169
23170         * lib/readtokens.c: Include <stdbool.h>.
23171         (readtoken): Use `size_t' rather than int/long.
23172         All callers adjusted.
23173         Use `bool' rather than `int' where appropriate.
23174         Use memset rather than an explicit loop.
23175         Use x2nrealloc rather than xrealloc.
23176         Allow the use of `\0' as a delimiter.
23177         (readtokens): Likewise.
23178         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
23179
23180 2004-03-30  Jim Meyering  <jim@meyering.net>
23181
23182         * m4/realloc.m4: Remove file, since now it does no more than
23183         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
23184         the `configure.ac' section of module/realloc.
23185         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
23186
23187 2004-03-30  Bruno Haible  <bruno@clisp.org>
23188
23189         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
23190         nonnull.
23191
23192 2004-03-29  Paul Eggert  <eggert@twinsun.com>
23193
23194         Merge changes to getloadavg.c from coreutils and Emacs.
23195
23196         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
23197         Define to an expression, not to the empty string.
23198         Include cloexec.h and xalloc.h.
23199         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
23200         Use set_cloexec_flag rather than rolling our own.
23201         * lib/cloexec.c, lib/cloexec.h: New files.
23202
23203 2004-03-29  Paul Eggert  <eggert@twinsun.com>
23204
23205         * m4/cloexec.m4: New file.
23206
23207 2004-03-18  Paul Eggert  <eggert@twinsun.com>
23208
23209         * lib/getopt.h: Sync with libc CVS.
23210
23211 2004-03-18  Paul Eggert  <eggert@twinsun.com>
23212             Bruno Haible  <bruno@clisp.org>
23213
23214         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
23215         mbswidth.
23216
23217 2004-03-18  Paul Eggert  <eggert@twinsun.com>
23218             Bruno Haible  <bruno@clisp.org>
23219
23220         * lib/mbswidth.h: Include <wchar.h> only if
23221         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
23222         <wchar.h>.
23223         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
23224
23225 2004-03-09  Paul Eggert  <eggert@twinsun.com>
23226
23227         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
23228         Sync with libc CVS.
23229         * lib/getopt_int.h: New file, also synced from libc.
23230
23231 2004-03-09  Paul Eggert  <eggert@twinsun.com>
23232
23233         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
23234         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
23235         Bring back getopt.c, getopt.h, getopt1.c.
23236
23237 2004-03-07  Paul Eggert  <eggert@twinsun.com>
23238
23239         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
23240         All uses changed.  Check for sa_sigaction member; this fixes
23241         a bug first reported by Jason Andrade in
23242         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23243
23244 2004-03-07  Paul Eggert  <eggert@twinsun.com>
23245
23246         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
23247         '#if' expressions.  Unlike the code it replaces, it does not
23248         depend on (defined _SC_PAGESIZE).  However, it does depend on
23249         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
23250         first reported by Jason Andrade in
23251         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23252
23253 2004-02-25  Simon Josefsson  <jas@extundo.com>
23254
23255         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
23256
23257 2004-02-25  Simon Josefsson  <jas@extundo.com>
23258
23259         * lib/strdup.h: New file.
23260         * lib/strdup.c: Include it.
23261         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
23262         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
23263
23264 2004-02-23  Karl Berry  <karl@gnu.org>
23265
23266         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
23267         (from fencepost.gnu.org:/gd/gnuorg).
23268
23269 2004-02-23  Karl Berry  <karl@gnu.org>
23270
23271         * config/srclistvars.sh (GNUORG) [karl]: redefine.
23272         * config/srclist.txt: add maintain/standards documents.
23273
23274 2004-02-18  Bruno Haible  <bruno@clisp.org>
23275
23276         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
23277         Reported by Derek Robert Price <derek@ximbiot.com>.
23278
23279 2004-02-16  Karl Berry  <karl@gnu.org>
23280
23281         * config/mkinstalldirs, install-sh: update from automake.
23282
23283 2004-02-06  Karl Berry  <karl@gnu.org>
23284
23285         * m4/po.m4: update from gettext 0.14.1.
23286
23287 2004-02-06  Karl Berry  <karl@gnu.org>
23288
23289         * lib/config.charset: update from gettext 0.14.1.
23290
23291 2004-02-05  Paul Eggert  <eggert@twinsun.com>
23292
23293         Add comments and code, prompted by suggestions from Bruno Haible
23294         for sh-quote.
23295         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
23296         describing the enum quoting_style values.
23297         * lib/quotearg.c (quotearg_alloc): New function.
23298         (quotearg_buffer_restyled): Treat lone { and } as special.
23299         Treat = as special.  Work around bug with older shells
23300         that "see" a '\' that is really the 2nd byte of a multibyte char.
23301         Quote empty string with shell_quoting_style.
23302
23303 2004-02-03  Bruno Haible  <bruno@clisp.org>
23304
23305         * m4/pipe.m4: New file, from GNU gettext.
23306
23307 2004-02-03  Bruno Haible  <bruno@clisp.org>
23308
23309         * lib/pipe.h: New file, from GNU gettext.
23310         * lib/pipe.c: New file, from GNU gettext.
23311
23312 2004-01-27  Bruno Haible  <bruno@clisp.org>
23313
23314         * m4/execute.m4: New file, from GNU gettext.
23315
23316 2004-01-27  Bruno Haible  <bruno@clisp.org>
23317
23318         * lib/execute.h: New file, from GNU gettext.
23319         * lib/execute.c: New file, from GNU gettext.
23320         * lib/w32spawn.h: New file, from GNU gettext.
23321
23322 2004-01-24  Paul Eggert  <eggert@twinsun.com>
23323
23324         Merge from diffutils.
23325
23326         * lib/file-type.c (file_type): Add typed memory objects.
23327         * lib/file-type.h (S_TYPEISTMO): New macro.
23328
23329         * lib/c-stack.h (c_stack_action): Remove argv argument.
23330         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
23331         (die): Don't calculate message unless segv_action returns.
23332         (get_stack_location, min_address_from_argv, max_address_from_argv,
23333         volatile stack_base, volatile_stack_size): Remove.
23334         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
23335         that every segmentation violation is a stack overflow.  (Ouch!)
23336         See Debian bug 136249 (still outstanding) for more info about why
23337         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
23338
23339 2004-01-24  Paul Eggert  <eggert@twinsun.com>
23340
23341         Exit-status fix from coreutils.
23342
23343         Use exit_failure consistently in place of EXIT_FAILURE,
23344         so that program exit statuses are consistent on failure.
23345
23346         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
23347         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
23348         * lib/argmatch.h: Comment fix to match the above.
23349         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
23350         Now a macro referring to exit_failure, instead of a separate
23351         variable.  Include "exitfail.h" to get it.
23352         * lib/xstrtol.h: Include "exitfail.h".
23353         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
23354
23355         * lib/long-options.c (parse_long_options): Use prototype
23356         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
23357         for clarity.
23358
23359 2004-01-21  Jim Meyering  <jim@meyering.net>
23360
23361         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
23362         so as not to conflict with a different-sized __mktime_internal
23363         function in GNU libc.
23364         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
23365         Problem building statically-linked `ls' reported by Michael Brunnbauer.
23366
23367 2004-01-20  Karl Berry  <karl@gnu.org>
23368
23369         * config/config.guess: update from config.
23370
23371         * config/srclistvars.sh: GNUWWWLICENSES for karl.
23372
23373 2004-01-20  Bruno Haible  <bruno@clisp.org>
23374
23375         Safer stack allocation.
23376         * lib/setenv.c: Include allocsa.h.
23377         (alloca): Remove fallback definition.
23378         (freea): Remove macro.
23379         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
23380         instead of freea.
23381
23382 2004-01-20  Bruno Haible  <bruno@clisp.org>
23383
23384         * m4/eealloc.m4: New file, from GNU gettext.
23385
23386 2004-01-20  Bruno Haible  <bruno@clisp.org>
23387
23388         * m4/allocsa.m4: New file, from GNU gettext.
23389
23390 2004-01-20  Bruno Haible  <bruno@clisp.org>
23391
23392         * lib/xallocsa.h: New file, from GNU gettext.
23393         * lib/xallocsa.c: New file, from GNU gettext.
23394
23395 2004-01-20  Bruno Haible  <bruno@clisp.org>
23396
23397         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
23398
23399 2004-01-20  Bruno Haible  <bruno@clisp.org>
23400
23401         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
23402         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
23403         specially.
23404
23405 2004-01-20  Bruno Haible  <bruno@clisp.org>
23406
23407         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
23408         patch.
23409
23410 2004-01-20  Bruno Haible  <bruno@clisp.org>
23411
23412         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
23413
23414 2004-01-20  Bruno Haible  <bruno@clisp.org>
23415
23416         * lib/eealloc.h: New file.
23417
23418 2004-01-20  Bruno Haible  <bruno@clisp.org>
23419
23420         * lib/binary-io.h: Avoid warnings on Cygwin.
23421
23422 2004-01-20  Bruno Haible  <bruno@clisp.org>
23423
23424         * lib/allocsa.h: New file, from GNU gettext.
23425         * lib/allocsa.c: New file, from GNU gettext.
23426
23427 2004-01-18  Karl Berry  <karl@gnu.org>
23428
23429         * doc/gpl.texi, doc/lgpl.texi: new files.
23430
23431 2004-01-18  Karl Berry  <karl@gnu.org>
23432
23433         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
23434         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
23435
23436 2004-01-15  Paul Eggert  <eggert@twinsun.com>
23437
23438         Merge from coreutils.
23439
23440         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
23441         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
23442         (gl_DEFAULT_POSIX2_VERSION): Move
23443         the documentation from 'configure' into 'config.hin',
23444         so that 'configure --help' isn't burdened by it and
23445         we don't have to worry about its formatting there.
23446         Reword the documentation so that it's more succinct
23447         and can be run together into a single paragraph.
23448         * m4/same.m4 (gl_SAME): Check for pathconf.
23449
23450 2004-01-15  Paul Eggert  <eggert@twinsun.com>
23451
23452         Merge from coreutils.
23453
23454         * lib/posixver.c: Include posixver.h.
23455
23456         * lib/same.c: Include <stdbool.h>, <limits.h>.
23457         (_POSIX_NAME_MAX): Define if not defined.
23458         (MIN): New macro.
23459         (same_name): If file names are silently truncated, report
23460         that the file names are the same if they are the same after
23461         the silent truncation.
23462
23463         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
23464         conversion function.
23465         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
23466         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
23467         longer needed.
23468
23469 2004-01-15  Jim Meyering  <jim@meyering.net>
23470
23471         Merge from coreutils.
23472
23473         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
23474         if no library is required.
23475         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
23476         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
23477         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
23478         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
23479         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
23480         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
23481         value, $ac_cv_search_crypt, if it's "none required".
23482         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
23483         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
23484         not gl_FUNC_GETLOADAVG.
23485         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
23486         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
23487
23488 2004-01-15  Jim Meyering  <jim@meyering.net>
23489
23490         Merge from coreutils.
23491
23492         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
23493         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
23494         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
23495
23496         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
23497         optional configure-time default.
23498
23499         * lib/version-etc.c (version_etc_copyright): Update copyright date.
23500
23501         * lib/xreadlink.c (xreadlink): Correct outdated comment.
23502
23503 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
23504
23505         Merge from coreutils.
23506
23507         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
23508         value, $ac_cv_search_nanosleep, if it's "none required".
23509
23510 2004-01-14  Paul Eggert  <eggert@twinsun.com>
23511
23512         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
23513         with like-named macro in fnmatch.c.
23514         (EXT): Use an internal constant instead.
23515
23516         Merge fnmatch patches from glibc.
23517         * lib/fnmatch.c (mbsinit): Remove define.
23518         Add libc_hidden_ver (__fnmatch, fnmatch).
23519         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
23520         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
23521
23522 2004-01-14  Karl Berry  <karl@gnu.org>
23523
23524         * config/install-sh: update from automake.
23525
23526 2004-01-13  Karl Berry  <karl@gnu.org>
23527
23528         * config/install-sh: update from automake.
23529
23530 2004-01-09  Karl Berry  <karl@gnu.org>
23531
23532         * config/install-sh: update from automake.
23533
23534 2004-01-05  Karl Berry  <karl@gnu.org>
23535
23536         * config/config.{sub,guess}: update from config.
23537
23538 2003-12-31  Karl Berry  <karl@gnu.org>
23539
23540         * config/depcomp: update from automake.
23541
23542 2003-12-14  Karl Berry  <karl@gnu.org>
23543
23544         * lib/config.charset: update from gettext-runtime.
23545
23546 2003-12-03  Paul Eggert  <eggert@twinsun.com>
23547
23548         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
23549         Bug reported by Alfred M. Szmidt.
23550
23551 2003-12-03  Bruno Haible  <bruno@clisp.org>
23552
23553         * m4/gettext.m4: Upgrade from gettext-0.13.
23554         * m4/po.m4: Upgrade from gettext-0.13.
23555         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
23556         * m4/intmax.m4: New file, from gettext-0.13.
23557         * m4/printf-posix.m4: New file, from gettext-0.13.
23558
23559 2003-11-29  Karl Berry  <karl@gnu.org>
23560
23561         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
23562
23563 2003-11-25  Paul Eggert  <eggert@twinsun.com>
23564             Bruno Haible  <bruno@clisp.org>
23565
23566         * lib/printf-parse.h: Don't include sys/types.h.
23567         (ARG_NONE): New macro.
23568         (char_directive): Change type of *arg_index fields to size_t.
23569         * lib/printf-parse.c: Don't include sys/types.h.
23570         (SSIZE_MAX): Remove macro.
23571         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
23572         Remove unnecessary overflow check.
23573         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
23574         fields.
23575
23576 2003-11-25  Bruno Haible  <bruno@clisp.org>
23577
23578         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
23579
23580 2003-11-25  Bruno Haible  <bruno@clisp.org>
23581
23582         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
23583         gt_TYPE_SSIZE_T.
23584
23585 2003-11-24  Paul Eggert  <eggert@twinsun.com>
23586
23587         * modules/alloca: Remove dependency on xalloc.
23588
23589 2003-11-24  Paul Eggert  <eggert@twinsun.com>
23590
23591         * lib/alloca.c: Remove dependency on xalloc module.
23592         (xalloc_die): Remove.
23593         (memory_full) [!defined emacs]: New macro.
23594         [!defined emacs]: Don't include xalloc.h.
23595         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
23596         address arithmetic overflows.  Change datatypes a bit to avoid
23597         unnecessary casts.
23598
23599 2003-11-22  Jim Meyering  <jim@meyering.net>
23600
23601         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
23602         s/size/size_t/.
23603
23604 2003-11-21  Karl Berry  <karl@gnu.org>
23605
23606         * config/config.{sub,guess}: update from config.
23607
23608 2003-11-18  Karl Berry  <karl@gnu.org>
23609
23610         * config/config.{sub,guess}: update from config.
23611
23612         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
23613
23614 2003-11-17  Paul Eggert  <eggert@twinsun.com>
23615
23616         * README: Mention that S+T cannot overflow if S is the size of
23617         an existing object and T is sufficiently small.
23618
23619 2003-11-17  Jim Meyering  <jim@meyering.net>
23620
23621         On systems without utime and without a utimes function capable of
23622         dealing with a NULL struct utimbuf* argument, this utime replacement
23623         could -- in unusual circumstances -- leak a file descriptor.
23624         * lib/utime.c: Include <unistd.h> and <errno.h>.
23625         (utime_null): Be sure to close `fd' and to preserve errno.
23626         Reported by Geoff Collyer via Arnold Robbins.
23627
23628 2003-11-17  Bruno Haible  <bruno@clisp.org>
23629
23630         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
23631         (Depends-on): Add xsize.
23632
23633 2003-11-17  Bruno Haible  <bruno@clisp.org>
23634
23635         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
23636
23637 2003-11-17  Bruno Haible  <bruno@clisp.org>
23638
23639         * lib/vasnprintf.c (alloca): Remove fallback definition.
23640         (freea): Remove definition.
23641         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
23642         Reported by Paul Eggert.
23643
23644 2003-11-16  Paul Eggert  <eggert@twinsun.com>
23645             Bruno Haible  <bruno@clisp.org>
23646
23647         Protect against address arithmetic overflow.
23648         * lib/printf-args.h: Include stddef.h.
23649         (arguments): Change type of field 'count' to size_t.
23650         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
23651         'unsigned int' where appropriate.
23652         * lib/printf-parse.h: Include sys/types.h.
23653         (char_directive): Change type of *arg_index fields to ssize_t.
23654         (char_directives): Change type of fields 'count', max_*_length to
23655         size_t.
23656         * lib/printf-parse.c: Include sys/types.h and xsize.h.
23657         (SSIZE_MAX): Define fallback value.
23658         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
23659         instead of 'int' where appropriate. Check a_allocated, d_allocated
23660         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
23661         * lib/vasnprintf.c: Include xsize.h.
23662         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
23663         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
23664         overflow. Avoid wraparound when converting a width or precision from
23665         decimal to binary.
23666
23667 2003-11-16  Bruno Haible  <bruno@clisp.org>
23668
23669         Update from GNU gettext.
23670         * lib/printf-parse.c: Generalize to it can be compiled for wide
23671         strings.
23672         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
23673         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
23674         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
23675         SNPRINTF): New macros.
23676         Don't include <alloca.h> if the file is used inside libintl.
23677         (local_wcslen): New function, for Solaris 2.5.1.
23678         (VASNPRINTF): Use it instead of wcslen.
23679
23680 2003-11-16  Bruno Haible  <bruno@clisp.org>
23681
23682         * lib/xsize.h (xmax): New function.
23683         (xsum, xsum3, xsum4): Declare as "pure" functions.
23684
23685 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23686
23687         * modules/xalloc (Files): Undo latest change, since xalloc.h
23688         no longer needs SIZE_MAX or PTRDIFF_MAX.
23689
23690 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23691
23692         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
23693         gl_PTRDIFF_MAX.
23694
23695 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23696
23697         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
23698         "return", to pacify some unknown compiler.  Problem reported
23699         by Joerg Schilling.
23700
23701 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23702
23703         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
23704         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
23705         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
23706         heuristic is just as accurate as far as we know, and it removes a
23707         dependency on size_max.m4 and ptrdiff_max.m4.
23708
23709 2003-11-11  Bruno Haible  <bruno@clisp.org>
23710
23711         * modules/xsize (Files): Add m4/size_max.m4.
23712         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
23713
23714 2003-11-11  Bruno Haible  <bruno@clisp.org>
23715
23716         * m4/size_max.m4: New file.
23717         * m4/ptrdiff_max.m4: New file.
23718         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
23719         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
23720         (gl_XALLOC): Invoke it.
23721
23722 2003-11-11  Bruno Haible  <bruno@clisp.org>
23723
23724         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
23725         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
23726         defined.
23727
23728 2003-11-10  Paul Eggert  <eggert@twinsun.com>
23729
23730         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
23731         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
23732         rejected some allocations of exactly SIZE_MAX - 2 bytes.
23733         From Bruno Haible.
23734         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
23735         not (size_t) -1, since it's defined here.
23736
23737 2003-11-09  Karl Berry  <karl@gnu.org>
23738
23739         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
23740
23741 2003-11-06  Paul Eggert  <eggert@twinsun.com>
23742
23743         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
23744         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
23745         Reject sizes of exactly SIZE_MAX bytes.
23746         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
23747         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
23748
23749 2003-11-05  Bruno Haible  <bruno@clisp.org>
23750
23751         * lib/xsize.h: Include limits.h, to avoid a possible collision with
23752         SIZE_MAX defined in <limits.h> on Solaris.
23753
23754 2003-11-04  Jim Meyering  <jim@meyering.net>
23755
23756         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
23757         variable names, rather than @VAR@.
23758         * modules/poll: Likewise.
23759
23760 2003-11-04  Bruno Haible  <bruno@clisp.org>
23761
23762         * modules/xsize: New file.
23763         * modules/linebreak: Depend on xsize.
23764         * MODULES.html.sh (func_all_modules): Add xsize.
23765
23766 2003-11-04  Bruno Haible  <bruno@clisp.org>
23767
23768         * m4/xsize.m4: New file.
23769
23770 2003-11-04  Bruno Haible  <bruno@clisp.org>
23771
23772         * lib/xsize.h: New file.
23773         * lib/linebreak.c: Include xsize.h.
23774         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
23775         argument for overflow.
23776         Suggested by Paul Eggert.
23777
23778 2003-11-03  Karl Berry  <karl@gnu.org>
23779
23780         * config/config.{guess,sub}: update from config.
23781
23782 2003-11-03  Jim Meyering  <jim@meyering.net>
23783
23784         * modules/userspec (lib_SOURCES): Add userspec.h.
23785         (Include): Add "userspec.h".
23786         Improve description.
23787
23788 2003-11-03  Jim Meyering  <jim@meyering.net>
23789
23790         * lib/userspec.c: Include "userspec.h".
23791         * lib/userspec.h: New file.
23792
23793 2003-11-03  Bruno Haible  <bruno@clisp.org>
23794
23795         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
23796
23797 2003-11-03  Bruno Haible  <bruno@clisp.org>
23798
23799         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
23800         available, to avoid (extremely rare) race condition.
23801         Suggested by Paul Eggert.
23802
23803 2003-11-02  Karl Berry  <karl@gnu.org>
23804
23805         * config/srclist.txt (vasprintf.c): sync broken, sigh.
23806
23807 2003-10-31  Paul Eggert  <eggert@twinsun.com>
23808
23809         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
23810         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
23811         (read_filesystem_list): Set and use me_type_malloced.
23812         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
23813         whatever the type happens to be), for brevity and consistency.
23814         Check for size calculation overflow on Alphas running OSF/1.
23815
23816 2003-10-31  Jim Meyering  <jim@meyering.net>
23817
23818         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
23819
23820         * lib/linebuffer.c: Include <string.h> for declaration of memset.
23821
23822 2003-10-30  Paul Eggert  <eggert@twinsun.com>
23823             Bruno Haible  <bruno@clisp.org>
23824
23825         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
23826         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
23827
23828 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23829
23830         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
23831         netbsd*-gnu*.  Suggested by Robert Millan.
23832
23833 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23834
23835         * modules/group-member: Depend on stdbool.
23836
23837 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23838
23839         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
23840
23841 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23842
23843         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
23844         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
23845         after the 'gnu' in these cases.  This fixes some bugs in the
23846         previous change, and is based on suggestions by Robert Millan.
23847
23848 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23849
23850         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
23851         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
23852         no longer needed.
23853         * lib/quotearg.c (quotearg_n_options): Use it.
23854         * lib/group-member.c: Include <stdbool.h>.
23855         (free_group_info): Arg is now const *; don't free arg.
23856         (get_group_info): Now returns bool and accepts struct group_info *,
23857         rather than returning a malloc'ed struct group_info *.
23858         All uses changed.  Check for overflow in internal size calculation.
23859
23860         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
23861         rather than xmalloc/xrealloc.
23862         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
23863         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
23864         conformance bug: the old code used a pointer after freeing the
23865         storage that it addressed.
23866         * lib/hash.c (hash_initialize): Simplify the code by using
23867         xalloc_oversized rather than doing it by hand.
23868         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
23869         the buffer preserved.  Use free and xmalloc instead.
23870         * lib/quotearg.c (quotearg_n_options): Likewise.
23871         Use a simpler test for size overflow.  Don't use xalloc_oversized
23872         because unsigned int might be wider than size_t (!); this suggests
23873         that we should switch from unsigned int to size_t for slot numbers.
23874
23875 2003-10-28  Paul Eggert  <eggert@twinsun.com>
23876
23877         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
23878         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
23879         NetBSD kernels.  Requested by Richard Stallman.
23880
23881 2003-10-27  Paul Eggert  <eggert@twinsun.com>
23882
23883         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
23884         to allocate the returned structure.  Do not allocate a subarray,
23885         as x2nrealloc will do that.
23886         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
23887         instead of xnrealloc.
23888         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
23889
23890 2003-10-27  Bruno Haible  <bruno@clisp.org>
23891
23892         * lib/stdbool_.h: Better support for BeOS.
23893
23894 2003-10-26  Paul Eggert  <eggert@twinsun.com>
23895
23896         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
23897         now uses inline.
23898
23899 2003-10-26  Paul Eggert  <eggert@twinsun.com>
23900
23901         * lib/xalloc.h (xalloc_oversized): New static inline function, for
23902         callers that want to do their own size-overflow checking.  Include
23903         <stdbool.h>, since xalloc_oversized returns bool.
23904         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
23905         to use xalloc_oversized.
23906
23907         Add two functions x2realloc, x2nrealloc, for programs that grow
23908         arrays dynamically by doubling their sizes.
23909         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
23910         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
23911         New functions.
23912
23913         Port to C99 semantics for 'inline' of external functions.
23914         Bug reported by Bruno Haible.
23915         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
23916         with the old contents of xnmalloc.
23917         (xnmalloc, xmalloc): Use it.
23918         (xnrealloc_inline): New static inline function,
23919         with the old contents of xnrealloc.
23920         (xnrealloc, xrealloc): Use it.
23921
23922         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
23923         that.
23924
23925 2003-10-26  Karl Berry  <karl@gnu.org>
23926
23927         * config/srclist.txt (COPYING.DOC): no longer available from
23928         /gd/gnuorg; don't know where the ultimate source is.
23929
23930 2003-10-25  Paul Eggert  <eggert@twinsun.com>
23931
23932         Fix several address-calculation bugs in the hash modules,
23933         plus some minor code cleanup.
23934
23935         * lib/hash.h: Include <stdbool.h>, for bool.
23936         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
23937         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
23938         hash_get_n_entries, hash_get_max_bucket_length,
23939         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
23940         hash_rehash): Use size_t rather than unsigned.
23941         * lib/hash.c (struct hash_table, hash_get_n_buckets,
23942         hash_get_n_buckets_used, hash_get_n_entries,
23943         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
23944         hash_get_entries, hash_do_for_each, hash_string, is_prime,
23945         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
23946         Likewise.
23947         (SIZE_MAX): Define if not defined.
23948         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
23949         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
23950         hash_print):
23951         Use const * when possible.
23952         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
23953         (check_tuning): Fix bug: if tuning parameters were very close to
23954         0 or 1, rounding errors could have caused subscript violations.
23955         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
23956         (hash_initialize): Add 'fail:' label
23957         to free table and return NULL, and use it to simplify code.
23958         Use calloc rather than clearing the storage ourself.
23959         (hash_initialize, hash_rehash): Check for arithmetic overflow in
23960         buffer size calculations.
23961         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
23962         Include <stddef.h>, for size_t.
23963         * lib/hash-pjw.c (hash_pjw): Likewise.
23964         Switch to method described by Bruno Haible.
23965         Include <limits.h>, for CHAR_BIT.
23966         (SIZE_BITS): New macro.
23967
23968 2003-10-23  Paul Eggert  <eggert@twinsun.com>
23969
23970         * m4/getline.m4 (AM_FUNC_GETLINE):
23971         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
23972         hosts.  Problem reported by Derek Robert Price in
23973         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
23974         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
23975         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
23976
23977 2003-10-21  Paul Eggert  <eggert@twinsun.com>
23978
23979         * lib/getndelim2.c (getndelim2): When size calculation overflows,
23980         ceiling the allocation at NMAX bytes rather than silently
23981         discarding input bytes before NMAX is reached.  This makes
23982         a difference only if NMAX exceeds SIZE_MAX / 2.
23983
23984         * lib/obstack.c: Merge from glibc.
23985         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
23986         Add libc_hidden_def (_obstack_newchunk).
23987         (_obstack_free) [! defined _LIBC]: Remove.
23988         [defined _LIBC]: Make a strong alias from obstack_free, rather than
23989         a clone of the function body.
23990         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
23991         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
23992
23993         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
23994         glibc.
23995         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
23996         arg to memcpy.
23997
23998         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
23999         (obstack_ptr_grow_fast, obstack_int_grow_fast):
24000         Don't use lvalue casts, as GCC plans to remove support for them
24001         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
24002         was also present in the non-GCC version, indicating that this
24003         code had always been buggy and had never been widely used.
24004         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
24005         Use the fast variant of each macro, rather than copying the
24006         definiens of the fast variant; that way, we'll be more likely to
24007         catch future bugs in the fast variants.
24008
24009 2003-10-20  Bruno Haible  <bruno@clisp.org>
24010
24011         * modules/wait-process: New file.
24012         * MODULES.html.sh (func_all_modules): Add wait-process.
24013
24014 2003-10-20  Bruno Haible  <bruno@clisp.org>
24015
24016         * m4/wait-process.m4: New file.
24017
24018 2003-10-20  Bruno Haible  <bruno@clisp.org>
24019
24020         * lib/wait-process.h: New file, from GNU gettext.
24021         * lib/wait-process.c: New file, from GNU gettext.
24022
24023 2003-10-19  Jim Meyering  <jim@meyering.net>
24024
24025         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
24026         HPUX 10.20.
24027
24028 2003-10-18  Karl Berry  <karl@gnu.org>
24029
24030         * config/config.guess: update from config.
24031
24032 2003-10-16  Paul Eggert  <eggert@twinsun.com>
24033
24034         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
24035         (getgroups): First arg is int, not size_t.
24036         Don't let 'free' mangle errno.
24037
24038 2003-10-16  Paul Eggert  <eggert@twinsun.com>
24039
24040         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
24041
24042 2003-10-16  Karl Berry  <karl@gnu.org>
24043
24044         * config/config.{guess,sub}: update from config.
24045
24046 2003-10-16  Jim Meyering  <jim@meyering.net>
24047
24048         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
24049         memcpy.
24050
24051 2003-10-15  Paul Eggert  <eggert@twinsun.com>
24052
24053         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
24054         (SIZE_MAX): Remove.
24055         (new_exclude, add_exclude_file): Initial size no longer needs to
24056         be a power of 2.
24057         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
24058         our own address arithmetic overflow checking.
24059
24060         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
24061         (fnmatch): Do not alloca more than 2000 wide characters;
24062         instead, use malloc for large buffers.
24063         Check for address arithmetic overflow, and return -1
24064         with errno set to ENOMEM in that case.
24065         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
24066         (NEW_PATTERN): Do not alloca more than 8000 bytes;
24067         instead, return -1.  Check for address arithmetic overflow.
24068
24069 2003-10-14  Paul Eggert  <eggert@twinsun.com>
24070
24071         Handle invalid suffixes and overflow independently, so that
24072         callers can treat them independently as needed.  Fix some bugs in
24073         suffix handling, e.g., "100k@" was not diagnosed as an invalid
24074         suffix for a human-readable blocksize.  The major caller-visible
24075         change is the addition of a new
24076         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
24077         that both overflow and suffix chars were found.
24078
24079         * lib/human.c (humblock): Don't check separately for invalid suffix
24080         char; that is xstrtoumax's job (now that its bug is fixed).
24081         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
24082         INTMAX_MAX]: New macros.
24083         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
24084         TYPE_MAXIMUM): New macros.
24085         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
24086         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
24087         if overflow occurs, as it's what __strtol does and it's more useful
24088         in practice.
24089         (__xstrtol): If __strtol reports some error other than ERANGE,
24090         reflect it to the caller as LONGINT_INVALID.  If it reports
24091         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
24092         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
24093         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
24094         value.
24095         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
24096         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
24097         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
24098         [defined UINTMAX_MAX]: New macros.
24099
24100 2003-10-14  Bruno Haible  <bruno@clisp.org>
24101
24102         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
24103
24104 2003-10-14  Bruno Haible  <bruno@clisp.org>
24105
24106         * m4/sig_atomic_t: New file, from GNU gettext.
24107         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
24108
24109 2003-10-14  Bruno Haible  <bruno@clisp.org>
24110
24111         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
24112         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
24113         Also use volatile where needed.
24114
24115 2003-10-12  Paul Eggert  <eggert@twinsun.com>
24116
24117         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
24118         Change maintainer from Bruno Haible to 'all'.
24119
24120 2003-10-12  Paul Eggert  <eggert@twinsun.com>
24121
24122         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
24123
24124 2003-10-12  Paul Eggert  <eggert@twinsun.com>
24125
24126         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
24127         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
24128         and define in terms of the other primitives.
24129         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
24130         (SIZE_MAX): Define if not already defined.
24131         (array_size_overflow): New function.
24132         (xalloc_die): Abort instead of exiting if 'error' returns.
24133         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
24134         (xmalloc, xrealloc): Use them.
24135         (xcalloc): Check for address arithmetic overflow.
24136         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
24137         a bit faster than strcpy.
24138
24139 2003-10-10  Simon Josefsson  <jas@extundo.com>
24140
24141         * modules/argp (Depends-on): Add restrict and strcase.
24142
24143 2003-10-10  Simon Josefsson  <jas@extundo.com>
24144
24145         * m4/argp.m4: Add AC_C_INLINE.
24146
24147 2003-10-08  Paul Eggert  <eggert@twinsun.com>
24148
24149         Merge getpass from libc, plus a few fixes.
24150
24151         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
24152         Include <stdbool.h>.
24153         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
24154         __fsetlocking to empty.
24155         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
24156         do include <bits/libc-lock.h>.
24157         Do not include <fcntl.h>; not needed.
24158         [_LIBC]: Include <wchar.h>.
24159         (NOTCANCEL_MODE): New macro.
24160         (flockfile, funlockfile) [_LIBC]: New macros.
24161         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
24162         [!_LIBC]: New macros.
24163         (call_fclose): New function.
24164         (getpass): Use it.  Save tty stream separately; this simplifies the
24165         code and makes it more reliable if stdin happens to equal stdout.
24166         Invoke __fsetlocking on tty.
24167         Handle thread cancellation if needed.
24168         Namespace cleanup (use __tcgetattr, __getline).
24169         Use bool for Booleans.
24170         [USE_IN_LIBIO]: Handle wide streams.
24171         [!_LIBC]: Unconditionally do the fseek, since we don't know what
24172         stream might go where.
24173
24174         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
24175         doesn't have to include <stdio.h> before us.
24176         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
24177         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
24178         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
24179         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
24180         if not declared, so that we can use getpass.c code from libc without
24181         rewriting it.
24182         (flockfile, ftrylockfile, funlockfile): New macros.
24183
24184 2003-10-08  Paul Eggert  <eggert@twinsun.com>
24185
24186         * modules/getpass: Depend on stdbool.
24187
24188 2003-10-08  Paul Eggert  <eggert@twinsun.com>
24189
24190         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
24191
24192 2003-10-07  Karl Berry  <karl@gnu.org>
24193
24194         * config/config.{guess,sub}: update from config.
24195
24196 2003-10-06  Jim Meyering  <jim@meyering.net>
24197             Bruno Haible  <bruno@clisp.org>
24198
24199         This lets translators provide better translations for the
24200         "Written by ..." part of --version output.
24201         * lib/version-etc.h: Include stdarg.h.
24202         (version_etc_copyright): Declare as readonly.
24203         (version_etc): Make this function variadic with a NULL-terminated list
24204         of author name strings.
24205         (version_etc_va): New declaration.
24206         * lib/version-etc.c: Include stdarg.h, stdlib.h.
24207         (version_etc_copyright): Declare as readonly.
24208         (version_etc_va): New function. Provide a different translatable string
24209         for each possible number of authors < 10. Abbreviate when there are 10
24210         authors or more.
24211         (version_etc): Make this function variadic. Call version_etc_va.
24212         Suggestion from Gary V. Vaughan.
24213
24214         * lib/long-options.h (parse_long_options): Change prototype: the
24215         authors string is moved to the end and becomes variadic.
24216         * lib/long-options.c: Include stdarg.h.
24217         (parse_long_options): Make this function variadic, too.
24218         Call version_etc_va, not version_etc.
24219
24220 2003-10-06  Bruno Haible  <bruno@clisp.org>
24221
24222         * modules/version-etc-2: Remove file.
24223         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
24224
24225 2003-10-06  Bruno Haible  <bruno@clisp.org>
24226
24227         * modules/fatal-signal: New file.
24228         * MODULES.html.sh (func_all_modules): Add fatal-signal.
24229
24230 2003-10-06  Bruno Haible  <bruno@clisp.org>
24231
24232         * m4/fatal-signal.m4: New file.
24233         * m4/signalblocking.m4: New file, from GNU gettext.
24234
24235 2003-10-06  Bruno Haible  <bruno@clisp.org>
24236
24237         * lib/version-etc-2.h: Remove file.
24238         * lib/version-etc-2.c: Remove file.
24239
24240 2003-10-06  Bruno Haible  <bruno@clisp.org>
24241
24242         * lib/fatal-signal.h: New file, from GNU gettext.
24243         * lib/fatal-signal.c: New file, from GNU gettext.
24244
24245 2003-10-05  Paul Eggert  <eggert@twinsun.com>
24246
24247         * README: Rework advice for preventing empty .o files.
24248         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
24249         not <sys/types.h>.
24250
24251 2003-10-04  Karl Berry  <karl@gnu.org>
24252
24253         * lib/argp*: update from libc.
24254
24255 2003-10-04  Karl Berry  <karl@gnu.org>
24256
24257         * config/config.{guess,sub}: update from config.
24258
24259 2003-10-02  Bruno Haible  <bruno@clisp.org>
24260
24261         * modules/lchown (Include): Add lchown.h.
24262         * modules/time_r (Include): Use "..." syntax.
24263         * modules/xgetdomainname (Include): Add xgetdomainname.h.
24264
24265 2003-10-01  Simon Josefsson  <jas@extundo.com>
24266
24267         * MODULES.html.sh (func_all_modules): Move gethostname from section
24268         'based on' to section 'lacking' POSIX:2001.
24269
24270 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
24271
24272         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
24273         to output mode on the same stream.
24274
24275 2003-09-29  Paul Eggert  <eggert@twinsun.com>
24276
24277         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
24278         Fix arg typo in previous patch.
24279
24280 2003-09-28  Jim Meyering  <jim@meyering.net>
24281
24282         * lib/error.c: Correct cpp indentation.
24283
24284 2003-09-27  Paul Eggert  <eggert@twinsun.com>
24285
24286         * modules/free: New file.
24287
24288 2003-09-27  Paul Eggert  <eggert@twinsun.com>
24289
24290         * m4/free.m4: New file.
24291
24292 2003-09-27  Paul Eggert  <eggert@twinsun.com>
24293
24294         * lib/minmax.h (MIN, MAX)
24295         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
24296         Omit the special code that used __typeof__, since we worry that
24297         it could be more trouble than it's worth.  See:
24298         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
24299         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
24300
24301         * lib/free.c: New file.
24302
24303 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
24304
24305         Trivial fixes to Makefile.am parts of module listings.
24306         * modules/strstr: Append strstr.h to lib_SOURCES.
24307         * modules/strcase: Likewise, for strcase.h.
24308
24309 2003-09-27  Karl Berry  <karl@gnu.org>
24310
24311         * config/mkinstalldirs: update from automake.
24312
24313 2003-09-26  Paul Eggert  <eggert@twinsun.com>
24314
24315         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
24316         (error_tail): Do not loop, reallocating temporary buffer, since
24317         the output cannot contain more wide characters than the input
24318         contains bytes, the size must be big enough already.  This avoids
24319         one potential size overflow calculation.  Check for size overflow
24320         when calculating temporary buffer size.  Free temporary buffer
24321         when done, if it was allocated with malloc; this plugs a memory
24322         leak.  Remove casts from void * to pointers, that are no longer
24323         needed now that we're assuming C89 or better.
24324
24325         Merge error changes from glibc.
24326
24327         * lib/error.c, error.h: Update copyright notice header to match glibc.
24328         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
24329         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
24330         Disable cancellation while printing error.
24331         * lib/error.h: Prepend __ to parameter names.
24332
24333 2003-09-26  Jim Meyering  <jim@meyering.net>
24334
24335         * lib/error.c (error_tail): Move some declarations
24336         into inner scope where the local variables are used.
24337
24338 2003-09-26  Bruno Haible  <bruno@clisp.org>
24339
24340         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
24341         stpncpy().
24342         Don't define stpncpy through config.h; it's now done through stpncpy.h.
24343
24344 2003-09-26  Bruno Haible  <bruno@clisp.org>
24345
24346         * lib/stpncpy.h (gnu_stpncpy): New declaration.
24347         (stpncpy): Define as alias for gnu_stpncpy.
24348         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
24349
24350 2003-09-25  Simon Josefsson  <jas@extundo.com>
24351
24352         * lib/xgetdomainname.h: New file.
24353         * lib/xgetdomainname.c: New file.
24354
24355 2003-09-25  Simon Josefsson  <jas@extundo.com>
24356             Bruno Haible  <bruno@clisp.org>
24357
24358         * modules/getdomainname: New file.
24359         * modules/xgetdomainname: New file.
24360         * MODULES.html.sh (func_all_modules): Add getdomainname,
24361         xgetdomainname.
24362
24363 2003-09-25  Simon Josefsson  <jas@extundo.com>
24364             Bruno Haible  <bruno@clisp.org>
24365
24366         * m4/getdomainname.m4: New file.
24367
24368 2003-09-25  Simon Josefsson  <jas@extundo.com>
24369             Bruno Haible  <bruno@clisp.org>
24370
24371         * lib/getdomainname.h: New file.
24372         * lib/getdomainname.c: New file.
24373
24374 2003-09-25  Karl Berry  <karl@gnu.org>
24375
24376         * lib/argp-fmtstream.c, argp-help.c: update from libc.
24377
24378 2003-09-25  Karl Berry  <karl@gnu.org>
24379
24380         * config/install-sh: update from automake.
24381
24382 2003-09-25  Bruno Haible  <bruno@clisp.org>
24383
24384         * modules/version-etc-2: New file, from modules/version-etc with
24385         modifications.
24386         * MODULES.html.sh (func_all_modules): Add version-etc-2.
24387
24388 2003-09-25  Bruno Haible  <bruno@clisp.org>
24389
24390         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
24391         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
24392
24393 2003-09-24  Simon Josefsson  <jas@extundo.com>
24394
24395         * modules/xgethostname: Add xgethostname.h.
24396
24397 2003-09-24  Paul Eggert  <eggert@twinsun.com>
24398
24399         * lib/linebuffer.c (freebuffer): Don't free the argument, just
24400         the buffer associated with the argument.  Bug reported by
24401         Simon Josefsson.
24402
24403 2003-09-24  Paul Eggert  <eggert@twinsun.com>
24404
24405         * README: Document assumptions that 'int' is at least 32 bits
24406         wide, that integer arithmetic is 2's complement without overflow,
24407         that there are no holes in integer values, that adding sizes of
24408         two nonoverlapping objects can't overflow, and that all-bits-zero
24409         yields scalar zero.  Fix spelling and capitalization typos.
24410
24411 2003-09-19  Karl Berry  <karl@gnu.org>
24412
24413         * lib/argp.h: update from libc.
24414
24415 2003-09-17  Paul Eggert  <eggert@twinsun.com>
24416
24417         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
24418         to avoid spurious warnings like "AC_RUN_IFELSE was called before
24419         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
24420
24421 2003-09-17  Paul Eggert  <eggert@twinsun.com>
24422
24423         * gnulib-tool: Use "test -h", not "test -L", for portability
24424         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
24425         (tags_regexp): Remove, since \| doesn't conform to POSIX.
24426         (sed_extract_prog): Issue s commands one-by-one, rather than
24427         using \| in one s command.
24428
24429 2003-09-16  Paul Eggert  <eggert@twinsun.com>
24430
24431         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
24432         input error, instead of returning NULL the next time we are called
24433         (and therefore losing track of errno).
24434
24435 2003-09-16  Bruno Haible  <bruno@clisp.org>
24436
24437         * gnulib-tool (func_create_testdir): Warn about duplicated
24438         dependencies.
24439
24440 2003-09-15  Paul Eggert  <eggert@twinsun.com>
24441
24442         * modules/argmatch, modules/fatal, modules/obstack,
24443         modules/xalloc, modules/xgethostname: Sort dependencies by
24444         importance, not alphabetically.
24445
24446 2003-09-15  Paul Eggert  <eggert@twinsun.com>
24447
24448         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
24449         fails, so that the caller gets the proper errno.
24450
24451         * lib/readutmp.c (read_utmp): Likewise.
24452         Check for fstat error.  Close stream and free storage
24453         when failing.
24454
24455 2003-09-14  Karl Berry  <karl@gnu.org>
24456
24457         * config/srclist.txt (strdup.c): disable for c89 changes.
24458
24459 2003-09-14  Jim Meyering  <jim@meyering.net>
24460
24461         * lib/getloadavg.c: Correct cpp indentation.
24462         * lib/strdup.c: Likewise.
24463         * lib/vasnprintf.c: Likewise.
24464
24465 2003-09-14  Bruno Haible  <bruno@clisp.org>
24466
24467         * modules/fwriteerror: New file.
24468         * MODULES.html.sh (func_all_modules): Add fwriteerror.
24469
24470 2003-09-14  Bruno Haible  <bruno@clisp.org>
24471
24472         * lib/fwriteerror.h: New file.
24473         * lib/fwriteerror.c: New file.
24474
24475 2003-09-12  Paul Eggert  <eggert@twinsun.com>
24476
24477         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
24478         modules/xgethostname, modules/xalloc: Depend on exit.
24479
24480 2003-09-12  Paul Eggert  <eggert@twinsun.com>
24481
24482         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
24483
24484         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
24485         and AC_MINIX, too, so that their extensions are available.
24486
24487         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
24488         This macro has been superseded by gl_BACKUPFILE.
24489
24490         More patches to assume C89 or better.
24491
24492         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
24493
24494         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
24495         unconditionally.
24496         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
24497         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
24498         Include <string.h>, <stdlib.h> unconditionally.
24499         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
24500         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
24501         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
24502         headers or for string.h.
24503         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
24504         or strtoul.
24505
24506         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
24507         headers.
24508         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
24509         * m4/userspec.m4 (gl_USERSPEC): Likewise.
24510         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
24511         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
24512         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24513         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
24514         memcpy, memset.
24515         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
24516         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
24517         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
24518         strtol.
24519         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
24520         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
24521         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
24522         strtoul.
24523
24524 2003-09-12  Paul Eggert  <eggert@twinsun.com>
24525
24526         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
24527         * lib/obstack.c [!defined _LIBC]: Likewise.
24528         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
24529         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
24530         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
24531
24532         More changes to assume C89 or better.
24533
24534         * lib/error.c (error_tail): Assume vprintf.
24535
24536         * lib/argmatch.c (getenv): Remove decl.
24537         * lib/progreloc.c (get_full_program_name): Define via prototype.
24538         * lib/setenv.c (clearenv): Likewise.
24539         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
24540         needed.
24541         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
24542         (malloc, memcpy): Remove decls.
24543         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
24544         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
24545         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
24546         (memcpy): Remove macro.
24547         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
24548         (__P): Remove.  All uses removed.
24549         (PTR): Remove.  All uses changed to void *.
24550         (CHAR_BIT, NULL): Remove.
24551         (spaces, zeros, memset_space, memset_zero)
24552         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
24553         Remove.
24554         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
24555         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
24556         Define with prototype.
24557         Remove now-unnecessary prototype decl.
24558         (extra_args_spec): Assume ANSI C.  All uses changed.
24559         (extra_args_spec_iso): Remove.
24560         (my_strftime, emacs_strftimeu): Define via prototype.
24561         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
24562         unconditionally.
24563         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
24564         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
24565         (strtoul, strtol): Remove decls.
24566         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
24567         LONG_MAX): Remove.
24568         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
24569         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
24570         (LOCALE_PARAM_PROTO): New macro.
24571         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
24572         (INTERNAL (strtol), strtol): Define with a prototype.
24573         (PARAMS): Remove.  All uses removed.
24574         * lib/tempname.c: Include <string.h> unconditionally.
24575         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
24576         * lib/xgethostname.c (main): Define with a prototype.
24577         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
24578         Include <stdlib.h> unconditionally.
24579         (calloc, malloc, realloc, free): Remove decls.
24580         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
24581         Include <stdlib.h> unconditionally.  Sort include file names.
24582         (strtod): Remove.
24583         (xstrtod): Define with a prototype.
24584         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
24585         (strtol, strtoul): Remove decls.
24586
24587 2003-09-11  Paul Eggert  <eggert@twinsun.com>
24588
24589         More patches to assume C89 or better.
24590         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
24591         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
24592         string.h, memchr, STDC_HEADERS.
24593
24594 2003-09-11  Paul Eggert  <eggert@twinsun.com>
24595
24596         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
24597         Include <stdlib.h>, <string.h> unconditionally.
24598         Remove now-unnecessary cast to char *.
24599         * lib/strnlen.c: Include <string.h> unconditionally.
24600         * lib/yesno.c (yesno): Define with a prototype.
24601
24602 2003-09-11  Bruno Haible  <bruno@clisp.org>
24603
24604         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
24605
24606 2003-09-10  Jim Meyering  <jim@meyering.net>
24607
24608         * lib/error.c: Correct indentation of cpp directives.
24609
24610 2003-09-10  Bruno Haible  <bruno@clisp.org>
24611
24612         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
24613         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
24614         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
24615         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
24616         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
24617         <stdlib.h> and <string.h> checks.
24618         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
24619         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
24620
24621 2003-09-10  Bruno Haible  <bruno@clisp.org>
24622
24623         * lib/strcspn.c: Include <string.h> unconditionally.
24624         * lib/strpbrk.c: Include <string.h> unconditionally.
24625         * lib/strstr.c: Include <string.h> unconditionally.
24626         * lib/unicodeio.c: Include <string.h> unconditionally.
24627         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
24628         * lib/unsetenv.c: Likewise.
24629         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
24630         * lib/yesno.c: Include <stdlib.h> unconditionally.
24631         (rpmatch): Add prototype.
24632
24633 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24634
24635         More patches to assume C89 or better.
24636         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
24637         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
24638         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
24639         or for string.h.
24640         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
24641         stdlib.h.
24642         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
24643         C headers.
24644         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
24645         string.h.
24646         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
24647         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
24648         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
24649         or for string.h.
24650         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
24651         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
24652         C headers.
24653         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
24654         memcpy.
24655         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
24656         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
24657         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
24658         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
24659         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
24660         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
24661         string.h, free.
24662         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
24663         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
24664         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
24665         C headers, or for string.h.
24666         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
24667         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
24668         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
24669         headers, memory.h, stdlib.h, string.h, strings.h.
24670         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
24671         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
24672         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
24673         strchr.
24674         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
24675         headers, memory.h, string.h.
24676         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
24677         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
24678         free.
24679         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
24680         headers.
24681         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
24682         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
24683         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
24684         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
24685         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
24686
24687 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24688
24689         More K&R removal.
24690
24691         * lib/acosl.c (main): Use a prototype.
24692         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
24693         tanl.c: Likewise.
24694
24695         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
24696
24697         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
24698         (getopt, etopt_long, getopt_long_only, _getopt_internal)
24699         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
24700         with a prototype.
24701         * lib/getopt.c (const): Remove macro.
24702         Include <string.h> unconditionally.
24703         (my_index): Remove; all uses changed to strchr.
24704         (strlen): Remove decl.
24705         (exchange): Remove forward decl; no longer needed.
24706         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
24707         Define with prototype.
24708         * lib/getopt1.c (const): Remove macro.
24709         (getopt_long, getopt_long_only, main): Define with prototype.
24710
24711         * lib/getugroups.c: Include <string.h> unconditionally.
24712
24713         * lib/getusershell.c: Include <stdlib.h> unconditionally.
24714         (getusershell, setusershell, endusershell, readname, main):
24715         Define with prototypes.
24716
24717         * lib/group-member.c: Include group-member.h first.
24718         Include <stdlib.h> unconditionally.
24719
24720         * lib/hard-locale.c: Include hard-locale.h first.
24721         Include <stdlib.h>, <string.h> unconditionally.
24722
24723         * lib/hash.c (free, malloc): Remove decls.
24724         Include <stdlib.h> unconditionally.
24725
24726         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
24727         (getenv): Do not declare.
24728
24729         * lib/idcache.c: Include <string.h> unconditionally.
24730
24731         * lib/long-options.c: Include long-options.h first, to test interface.
24732         Include <stdlib.h> unconditionally.
24733
24734         * lib/makepath.c: Include makepath.h first, to test interface.
24735         Include <stdlib.h> and <string.h> unconditionally.
24736
24737         * lib/linebuffer.c: Include <stdlib.h>.
24738         (free): Remove decl.
24739
24740         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
24741         stddef.h. rpl_malloc returns void *, not char *.
24742         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
24743         prototype.
24744
24745         * lib/md5.h: Include <limits.h> unconditionally.
24746         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
24747         (__P): Remove; all uses removed.
24748         * lib/md5.c: Include "md5.h" first.
24749         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
24750         md5_buffer, md5_process_bytes, md5_process_block):
24751         Define with prototypes.
24752         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
24753         * lib/sha.c: Include "sha.h" first.
24754         Include <stdlib.h>, <string.h> unconditionally.
24755
24756         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
24757         * lib/memcmp.c (__ptr_t): Likewise.
24758         * lib/memrchr.c (__ptr_t): Likewise.
24759         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
24760         Include <string.h> unconditionally.
24761         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
24762         * lib/memchr.c: Include <stdlib.h> unconditionally.
24763         * lib/memchr.c (LONG_MAX): Remove.
24764         * lib/memrchr.c (LONG_MAX): Likewise.
24765         * lib/memchr.c (__memchr): Define via a prototype.
24766         * lib/memrchr.c (__memrchr): Likewise.
24767         * lib/memcmp.c (__P): Remove, and remove all uses.
24768         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
24769         Remove forward decls; no longer needed.
24770         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
24771         Use types required by C89 in prototype.
24772
24773         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
24774         * lib/savedir.c: Likewise.
24775         * lib/mkdir.c (free): Remove decl.
24776         * lib/rmdir.c (rmdir): Define with a prototype.
24777         * lib/savedir.c: Include savedir.h first, to test interface.
24778
24779         * lib/mktime.c (STDC_HEADERS): Remove.
24780         Include <stdlib.h>, <string.h> unconditionally.
24781
24782         * lib/modechange.c: Include <stdlib.h> unconditionally.
24783         (malloc): Remove decl.
24784
24785         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
24786         (free): Remove decl.
24787
24788         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
24789         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
24790         (This type really should be intptr_t, but that's a C99ism.)
24791         (_obstack_memcpy): Remove: all uses changed to memcpy.
24792         Include <string.h> unconditionally.
24793         (struct obstack): Assume __STDC__ for types of members
24794         chunkfun, freefun, extra_arg.
24795         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
24796         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
24797         obstack_begin, obstack_specify_allocation,
24798         obstack_specify_allocation_with_arg, obstack_chunkfun,
24799         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
24800         Remove unprototyped decls and the macros that use them.
24801         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
24802         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
24803         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
24804         (defined __STDC__ && __STDC__)]:
24805         Remove nonprototyped code.
24806         Include <stdlib.h> unconditionally.
24807         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
24808         _obstack_allocated_p, _obstack_free, obstack_free,
24809         _obstack_memory_used, print_and_abort):
24810         Define using prototypes.
24811         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
24812         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
24813         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
24814         obstack_next_free, obstack_object_size, obstack_room) [0]:
24815         Remove unused, unprototyped code.
24816
24817         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
24818
24819         * lib/physmem.c (physmem_total, physmem_available, main): Define
24820         with prototypes.
24821
24822         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
24823         (main): Define with a prototype.
24824
24825         * lib/posixver.c (getenv): Remove decl.
24826
24827         * lib/putenv.c (malloc): Returns void *, not char *.
24828         Include <string.h> unconditionally.
24829         (strchr, memcpy, NULL): Do not define.
24830
24831         * lib/readtokens.c: Include readtokens.h first, to test interface.
24832         Include <stdlib.h>, <string.h> unconditionally.
24833         (init_tokenbuffer): Define with a prototype.
24834
24835         * lib/regex.c (PARAMS): Remove.  All uses removed.
24836         All uses of _RE_ARGS removed, too.
24837         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
24838         unconditionally.
24839         (bzero): Assume memset exists.
24840         (memcmp, memcpy, NULL): Remove.
24841         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
24842         char, or assignments to local vars of type signed char.
24843         (init_syntax_once, PREFIX(extract_number_and_incr),
24844         PREFIX(print_partial_compiled_pattern),
24845         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
24846         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
24847         PREFIX(regex_grow_registers), PREFIX(regex_compile),
24848         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
24849         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
24850         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
24851         wcs_compile_range, byte_compile_range, truncate_wchar,
24852         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
24853         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
24854         count_mbs_length, wcs_re_match_2_internal,
24855         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
24856         PREFIX(alt_match_null_string_p),
24857         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
24858         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
24859         regfree, PREFIX(extract_number)): Define with prototype.  Remove
24860         now-unnecessary declaration, if any.
24861         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
24862         regcomp, regexec):
24863         Remove now-unnecessary casts among pointer types.
24864         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
24865
24866         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
24867         (free): Remove decl.
24868
24869         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
24870
24871         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
24872         (free): Remove decl.
24873
24874         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
24875         * lib/xgetcwd.c: Likewise.
24876
24877         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
24878         (free): Remove decl.
24879
24880         * lib/strchrnul.c (strchrnul): Define with a prototype.
24881         Fix bug: c_in was not converted to char before searching.
24882
24883         The following changes are not K&R related:
24884
24885         * lib/group-member.h: Include <sys/types.h>, so that this file is
24886         self-contained.
24887         * lib/makepath.h: Likewise.
24888
24889         * lib/getusershell.c (readname, default_index, line_size, readname):
24890         Use size_t, not int, for sizes.
24891         (readname): If the size overflows, report an error instead of
24892         looping forever.
24893
24894 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24895
24896         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
24897         libc.
24898
24899 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24900
24901         * README: New section: portability guidelines.
24902
24903 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
24904
24905         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
24906         C89 spec.
24907
24908 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
24909
24910         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
24911
24912 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24913
24914         Assume C89 or better; remove K&R cruft.
24915         A few of these changes were first proposed by Derek Robert Price
24916         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
24917
24918         * lib/addext.c: Include <string.h> unconditionally.
24919         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
24920         Don't declare getenv or malloc.
24921
24922         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
24923         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
24924         (NULL): Remove.
24925         (find_stack_direction, alloca): Use prototypes.
24926
24927         * lib/atexit.c (atexit): Define using a prototype.
24928
24929         * lib/basename.c, dirname.c, stripslash.c:
24930         Include <string.h> unconditionally.
24931
24932         * lib/bcopy.c: Include <stddef.h>.
24933         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
24934
24935         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
24936
24937         * lib/error.h (error, error_at_line, error_print_progname)
24938         [! (defined (__STDC__) && __STDC__)]: Remove decls.
24939         * lib/error.c: Include error.h first, to check interface.
24940         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24941         (VA_START): Remove; all uses changeed to va_start.
24942         (exit, strerror): Remove decls.
24943         (error_print_progname): Prototype uncondionally.
24944         Don't include <errno.h>; no longer needed.
24945         (private_strerror): Remove.
24946         (error_tail): Always define.
24947         (error, error_at_line): Assume C89 or better; always use prototypes.
24948         * lib/fatal.c: Include "fatal.h" first, to test interface.
24949         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24950         (VA_START): Remove; all uses changed to va_start.
24951         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
24952         this case.
24953         (exit): Remove decl.
24954         (fatal): Prototype unconditionally.  Assume va_start works.
24955         Abort at end, to pacify gcc.
24956
24957         * lib/euidaccess.c (main): Define with a prototype.
24958
24959         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
24960
24961         * lib/exitfail.c: Include <stdlib.h> unconditionally.
24962
24963         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
24964         prototypes.
24965         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
24966         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
24967         (getenv): Remove decl.
24968         (fnmatch): Define using a prototype.
24969         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
24970         (FCT): Define using a prototype.
24971
24972         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
24973
24974         * lib/gethostname.c: Include <stddef.h>.
24975         (gethostname): Define with prototype.  Length is size_t, not int.
24976
24977 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24978
24979         Assume C89 or better; remove K&R cruft.
24980         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
24981         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
24982         string.h, getenv, malloc.
24983         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
24984         headers.
24985         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
24986         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
24987         do not check for strerror.
24988         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
24989         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
24990         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
24991         do not check for doprnt or vprintf.
24992         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
24993         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
24994
24995 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24996
24997         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
24998         getversion.c should have been removed then, but was accidentally
24999         preserved.
25000
25001         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
25002         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
25003
25004 2003-09-08  Karl Berry  <karl@gnu.org>
25005
25006         * config/config.sub, config.guess, srclistvars.sh: update from savannah
25007                 config, forget about prep.
25008
25009         * config/depcomp, missing: update from automake.
25010
25011 2003-09-07  Paul Eggert  <eggert@twinsun.com>
25012
25013         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
25014         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25015
25016 2003-09-07  Paul Eggert  <eggert@twinsun.com>
25017
25018         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
25019         copy_tm_result.  Bug reported by Simon Josefsson in
25020         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25021
25022 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25023
25024         * m4/time_r.m4: New file.
25025         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
25026         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
25027         is. Check for timegm declaration.
25028         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
25029         Do not check for gmtime_r.
25030         Replace mktime if __mktime_internal does not exist and if mktime
25031         hasn't been replaced already.
25032
25033 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25034
25035         * lib/time_r.c, lib/time_r.h: New files.
25036
25037         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
25038         __localtime_r.
25039         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
25040         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
25041
25042         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
25043         __gmtime_r.
25044         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
25045         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
25046         Include <time_r.h>.
25047
25048         * lib/timegm.c: Switch to glibc implementation, with the following
25049         changes:
25050         [defined HAVE_CONFIG_H]: Include <config.h>.
25051         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
25052         (__mktime_internal) [!defined _LIBC]: New decl.
25053         (__gmtime_r) [!defined _LIBC]: New macro and function.
25054         (timegm): Use a prototype, since gnulib assumes C89.
25055         Do not bother declaring tmp to be const, as it's not really usefu.
25056         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
25057         (timegm): Declare only if HAVE_DECL_TIMEGM.
25058
25059 2003-09-06  Paul Eggert  <eggert@twinsun.com>
25060
25061         * MODULES.html.sh (func_all_modules): Add time_r.
25062         * modules/time_r: New file.
25063         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
25064         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
25065
25066 2003-09-03  Paul Eggert  <eggert@twinsun.com>
25067
25068         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
25069         Bug reported by Lute Kamstra in
25070         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
25071
25072         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
25073         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
25074         course with correspondingly smaller numbers for tomorrow and
25075         yesterday.  From Tadayoshi Funaba.  Originally installed into
25076         sh-utils on 1999-08-07, but the patch got lost (I guess during the
25077         coreutils merge?).
25078
25079 2003-08-31  Simon Josefsson  <jas@extundo.com>
25080
25081         * modules/timegm: New file.
25082         * MODULES.html.sh (func_all_modules): Add timegm.
25083
25084 2003-08-31  Simon Josefsson  <jas@extundo.com>
25085
25086         * m4/timegm.m4: New file.
25087
25088 2003-08-31  Simon Josefsson  <jas@extundo.com>
25089
25090         * lib/timegm.h: New file.
25091         * lib/timegm.c: New file.  Based on
25092         wget-1.8.2/src/http.c:mktime_from_utc.
25093
25094 2003-08-31  Karl Berry  <karl@gnu.org>
25095
25096         * lib/argp.h: update from libc.
25097
25098 2003-08-28  Bruno Haible  <bruno@clisp.org>
25099
25100         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
25101         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
25102         followed by '#define fnmatch fnmatch_posix' gives an error.
25103
25104 2003-08-28  Bruno Haible  <bruno@clisp.org>
25105
25106         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
25107         warning on QNX, which defines O_BINARY to 000000.
25108
25109 2003-08-27  Jim Meyering  <jim@meyering.net>
25110
25111         * m4/mkstemp.m4: Require that the system mkstemp be able to create
25112         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
25113         would fail after 32.  Reported by Danny Levinson.  Details here:
25114         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
25115
25116 2003-08-24  Bruno Haible  <bruno@clisp.org>
25117
25118         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
25119         MSVC7 <stdio.h> is included later.
25120
25121 2003-08-22  Simon Josefsson  <jas@extundo.com>
25122
25123         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
25124
25125 2003-08-20  Karl Berry  <karl@gnu.org>
25126
25127         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
25128
25129 2003-08-20  Bruno Haible  <bruno@clisp.org>
25130
25131         * modules/progname: New file.
25132         * MODULES.html.sh (func_all_modules): Add progname.
25133
25134 2003-08-20  Bruno Haible  <bruno@clisp.org>
25135
25136         * lib/progname.h: New file, from GNU gettext.
25137         * lib/progname.c: New file, from GNU gettext.
25138         * lib/progreloc.c: New file, from GNU gettext.
25139
25140 2003-08-19  Jim Meyering  <jim@meyering.net>
25141
25142         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
25143         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
25144
25145 2003-08-19  Bruno Haible  <bruno@clisp.org>
25146
25147         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
25148         more.
25149
25150 2003-08-19  Bruno Haible  <bruno@clisp.org>
25151
25152         * lib/xstrdup.c: Assume <string.h> exists.
25153
25154 2003-08-18  Paul Eggert  <eggert@twinsun.com>
25155
25156         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
25157         in makefile rules.
25158
25159 2003-08-18  Jim Meyering  <jim@meyering.net>
25160
25161         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
25162         * m4/lib-ld.m4: Likewise.
25163
25164 2003-08-18  Jim Meyering  <jim@meyering.net>
25165
25166         * lib/setenv.h: Indent nested cpp directive.
25167         * lib/vasnprintf.c: Remove trailing blanks.
25168
25169 2003-08-17  Simon Josefsson  <jas@extundo.com>
25170
25171         * modules/xstrndup: New file.
25172         * MODULES.html.sh (func_all_modules): Add xstrndup.
25173
25174 2003-08-17  Simon Josefsson  <jas@extundo.com>
25175
25176         * modules/argp: Fix autoconf macro name. Add more dependencies.
25177
25178 2003-08-17  Simon Josefsson  <jas@extundo.com>
25179
25180         * m4/xstrndup.m4: New file.
25181
25182 2003-08-17  Simon Josefsson  <jas@extundo.com>
25183
25184         * m4/argp.m4: New file.
25185
25186 2003-08-17  Simon Josefsson  <jas@extundo.com>
25187             Bruno Haible  <bruno@clisp.org>
25188
25189         * lib/xstrndup.h: New file.
25190         * lib/xstrndup.c: New file.
25191
25192 2003-08-17  Bruno Haible  <bruno@clisp.org>
25193
25194         * modules/strndup (Files, Include): Add lib/strndup.h.
25195
25196 2003-08-17  Bruno Haible  <bruno@clisp.org>
25197
25198         * modules/euidaccess (Files): Add lib/euidaccess.h.
25199
25200 2003-08-17  Bruno Haible  <bruno@clisp.org>
25201
25202         * lib/strndup.h: New file.
25203
25204 2003-08-17  Bruno Haible  <bruno@clisp.org>
25205
25206         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
25207         like AC_GNU_SOURCE.
25208         * modules/extensions (configure.ac): Comment out the invocation of
25209         gl_USE_SYSTEM_EXTENSIONS.
25210
25211 2003-08-16  Paul Eggert  <eggert@twinsun.com>
25212
25213         Merges from coreutils, etc.
25214         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
25215         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
25216         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
25217         fixing a typo.
25218         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
25219         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
25220
25221 2003-08-16  Paul Eggert  <eggert@twinsun.com>
25222
25223         Document merge from coreutils.
25224         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
25225         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
25226         * modules/utime: Add m4/utimes-null.m4.
25227
25228 2003-08-16  Paul Eggert  <eggert@twinsun.com>
25229
25230         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
25231         space, undoing this 2003-08-12 change:
25232         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25233
25234 2003-08-16  Paul Eggert  <eggert@twinsun.com>
25235
25236         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
25237         strtoul.c from libc, undoing this 2003-08-12 change:
25238         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25239
25240 2003-08-16  Jim Meyering  <jim@meyering.net>
25241
25242         Merges from coreutils.
25243         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
25244         prefix.  Adjust cache variables similarly.  Create 500 rather than
25245         just 300 files, to exercise bug on Darwin6.5, too.
25246         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
25247         $missing_dir.
25248         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
25249         AM_SYS_POSIX_TERMIOS.
25250         Reported by mkc@mathdogs.com.
25251         Also change use of $am_cv_sys_posix_termios
25252         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
25253         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
25254         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
25255         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
25256         in /proc/mounts until it finds one with matching device number.  This
25257         is unnecessary when the FILE argument *is* a mount point.  No stat call
25258         is necessary in that case.  So, disable the statvfs-testing code on
25259         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
25260         as RedHat bug# 84846.
25261         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25262         to 1MB, so as not to render systems with no stack size limit (e.g.,
25263         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
25264         Include <unistd.h>.  On some systems,
25265         it is required for the definition of _SC_PAGESIZE.
25266
25267 2003-08-16  Jim Meyering  <jim@meyering.net>
25268
25269         Merge from coreutils.
25270         * lib/xstrtoimax.c: #else #if -> #elif.
25271         * lib/xstrtoumax.c: Likewise.
25272
25273 2003-08-16  Jim Meyering  <jim@meyering.net>
25274
25275         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
25276         * m4/utimes.m4: Removed.
25277         * m4/utimes-null.m4: Renamed from utimes.m4.
25278
25279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25280         to 1MB, so as not to render systems with no stack size limit (e.g.,
25281         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
25282         Include <unistd.h>.  On some systems,
25283         it is required for the definition of _SC_PAGESIZE.
25284
25285 2003-08-16  Jim Meyering  <jim@meyering.net>
25286         and Paul Eggert  <eggert@cs.ucla.edu>
25287
25288         Merges from coreutils, etc.
25289
25290         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
25291         using the latest version from cvs.  This avoids problems with #line
25292         directives using a vendor (Sun) compiler.
25293         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
25294         Don't set GETGROUPS_LIB here; now it's
25295         done via getgroups.m4's wrapper function.
25296         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
25297         rather than just in sh-util/configure.in, so that the
25298         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
25299         same.
25300         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
25301         AC_FUNC_GETLOADAVG where to find getloadavg.c.
25302         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
25303         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
25304         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
25305         Remove code that is now done by the newly-required macros.
25306         Append $(EXEEXT) to DF_PROG.
25307         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
25308         Do not invoke or require the following here,
25309         since prereq.m4 or some gnulib .m4 now does this for us:
25310         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
25311         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
25312         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
25313         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
25314         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
25315         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
25316         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
25317         AC_FUNC_OBSTACK.
25318         Do not replace the following functions, as this is now the job
25319         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
25320         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
25321         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
25322         atexit getpass, strdup, getpagesize.
25323         Replace 'raise'.
25324         Do not check for the following functions, as this is now the job
25325         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
25326         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
25327         setregid.
25328         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
25329         Check for sys/sysctl.h.
25330         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
25331         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
25332         of checking for ssize_t ourselves.
25333
25334         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
25335         Require every macro that gnulib/modules/* suggests for us.
25336         (jm_PREREQ_ADDEXT): New macro.
25337         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
25338         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
25339
25340         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
25341         (gl_PHYSMEM): Use it.
25342         Also check for `table' function.
25343         Check for new headers and functions.
25344         Add check for sys/sysmp.h.
25345         With suggestions from Kaveh Ghazi.
25346         Ignore headers that are present but cannot be compiled.  This
25347         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
25348         C 5.4.
25349
25350 2003-08-15  Paul Eggert  <eggert@twinsun.com>
25351
25352         Document merge from coreutils.
25353         * modules/userspec: Depend on posixver.
25354         * modules/strftime: Depend on tzset.
25355
25356 2003-08-15  Paul Eggert  <eggert@twinsun.com>
25357
25358         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
25359         rather than tab, after '#' in shell-script copyright notices.
25360         Suggested by Bruno Haible.
25361
25362 2003-08-15  Paul Eggert  <eggert@twinsun.com>
25363
25364         * config/srclist-update: Use three spaces, rather than tab, after '#'
25365         in shell-script copyright notices.  Suggested by Bruno Haible.
25366         Remove unnecessary parenthesization in regular expression.
25367
25368 2003-08-15  Jim Meyering  <jim@meyering.net>
25369
25370         Merge from coreutils.
25371         * lib/xgethostname.c: Include <stdlib.h>.
25372         (xghostname): Don't exit for anything other than memory-related
25373         failure; just return NULL.
25374         * lib/userspec.c: Include "posixver.h".
25375         (parse_user_spec): Accept `.' as a separator only
25376         in pre-POSIX-200112 mode.
25377         * lib/strtoimax.c: Use #elif rather than #else #if.
25378         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
25379         Remove function, now that we can rely on a working tzset function.
25380         [!_LIBC]: Ensure that the required autoconf test has been run.
25381         [!defined _NL_CURRENT && HAVE_STRFTIME]:
25382         Use underlying_strftime for %r.
25383         * lib/sha.c: Merge in some clean-up and optimization changes from
25384         glibc.
25385         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
25386         Ensure that it is a multiple of 64.
25387         Rearrange loop exit tests so as to avoid performing an
25388         additional fread after encountering an error or EOF.
25389         * lib/realloc.c: Update copyright date.
25390
25391 2003-08-15  Jim Meyering  <jim@meyering.net>
25392         and Paul Eggert  <eggert@twinsun.com>
25393
25394         Merge from coreutils.
25395         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
25396         member but strut utmpx does not.  Needed for AIX 4.3.3.
25397         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
25398
25399 2003-08-15  Jim Meyering  <jim@meyering.net>
25400         and Paul Eggert  <eggert@cs.ucla.edu>
25401
25402         Merges from coreutils, etc.
25403         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
25404         Require gl_FUNC_TZSET_CLOBBER.
25405         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
25406         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
25407         members.
25408
25409 2003-08-14  Paul Eggert  <eggert@twinsun.com>
25410
25411         Help the merge from coreutils.
25412         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
25413         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
25414         * m4/tzset.m4: Use it too.
25415
25416 2003-08-14  Paul Eggert  <eggert@twinsun.com>
25417
25418         * modules/tzset: New file.
25419
25420 2003-08-14  Jim Meyering  <jim@meyering.net>
25421
25422         Merges from coreutils.
25423         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
25424         variable names, rather than @FNMATCH_H@.
25425         * modules/alloca: Likewise for $(ALLOCA_H).
25426
25427         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
25428         the three copies of the literal target, `fnmatch.h'.
25429         * modules/alloca (alloca.h): Likewise.
25430
25431 2003-08-14  Jim Meyering  <jim@meyering.net>
25432
25433         Merge from coreutils.
25434         * m4/tzset.m4: New file.
25435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
25436         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
25437         otherwise, AIX 5.1 systems would end up using the latter.
25438         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
25439         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
25440         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
25441         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
25442
25443 2003-08-14  Jim Meyering  <jim@meyering.net>
25444
25445         Merge from coreutils.
25446         * lib/obstack.h: Whitespace changes.
25447         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
25448         and xcalloc return values.
25449         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
25450         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
25451         hang on OSF/1 5.1 for DIR on both local and remote file systems.
25452         Reported by (and fix confirmed by) Nelson H. F. Beebe.
25453         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25454         error from mntctl.
25455         Use mntctl's return value to drive the entry-processing loop, since
25456         we can't rely on the value of the vmt_length member in the last
25457         entry.  On some systems doing so could result in exhausting
25458         virtual memory.  Based in part on a patch from Mike Jetzer.
25459
25460 2003-08-14  Jim Meyering  <jim@meyering.net>
25461         and Paul Eggert  <eggert@twinsun.com>
25462
25463         Merges from coreutils, plus other fixes.
25464         * lib/physmem.c: Merge in portability changes from gcc/libiberty
25465         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
25466         for credits and details.  Thanks to Kaveh Ghazi for helping
25467         to keep these files in sync.
25468         (ARRAY_SIZE): Define it.
25469         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
25470         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
25471         (memcasecmp): Don't assume size_t fits in unsigned int.
25472         Remove casts and duplicate code.
25473         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
25474         (memcpy): Remove definition.
25475         Merge in some clean-up and optimization changes from glibc.
25476         [BLOCKSIZE]: Move definition to top of file.
25477         Ensure that it is a multiple of 64.
25478         Rearrange loop exit tests so as to avoid performing an
25479         additional fread after encountering an error or EOF.
25480         * lib/md5.h (md5_uintptr): Define.
25481         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
25482         return to the initial working directory.  Preserve errno
25483         for caller.
25484         * lib/idcache.c: Include "xalloc.h".
25485         (xmalloc, xrealloc): Remove decls.
25486         (getuser): Remove casts no longer required in C89.
25487         * lib/human.c: Include stdio.h, for sprintf.
25488         * lib/group-member.c: Include "xalloc.h".
25489         (xmalloc, xrealloc): Remove decls.
25490         (get_group_info): Remove casts no longer required in C89.
25491         * lib/getusershell.c (readname): Remove casts no longer required in
25492         C89.
25493         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
25494         * lib/getline.c: Whitespace fix, from coreutils.
25495
25496 2003-08-13  Paul Eggert  <eggert@twinsun.com>
25497
25498         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
25499         Check for isascii.
25500
25501         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
25502         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
25503         Undo previous (whitespace-only) change.
25504
25505 2003-08-13  Paul Eggert  <eggert@twinsun.com>
25506
25507         * lib/exclude.c: Include <ctype.h>
25508         (IN_CTYPE_DOMAIN): New macro.
25509         (is_space): New fn.
25510         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
25511         and empty lines.
25512
25513         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
25514         Undo previous (whitespace-only) change.
25515
25516 2003-08-13  Paul Eggert  <eggert@twinsun.com>
25517
25518         * config/srclist-update: Change update back to the old behavior,
25519         leaving whitespace alone.  Use one 'sed' command rather than a
25520         pipeline.
25521         (fixlicense): Now a variable, not a function.
25522         (remove_trailing_blanks): Remove.
25523         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
25524         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
25525         Undo previous (whitespace-only) change.
25526
25527 2003-08-12  Paul Eggert  <eggert@twinsun.com>
25528
25529         Merge from coreutils.
25530         * modules/euidaccess: Add lib_SOURCES, include for new
25531         file euidaccess.h
25532
25533 2003-08-12  Paul Eggert  <eggert@twinsun.com>
25534
25535         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
25536         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
25537         Normalize leading white space and remove trailing white space.
25538
25539         Merge from coreutils
25540         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
25541
25542         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
25543         0.12.1.  These files are now being upgraded automatically by
25544         ../config/srclist-update.
25545
25546 2003-08-12  Paul Eggert  <eggert@twinsun.com>
25547
25548         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
25549         Normalize leading white space and remove trailing white space.
25550         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
25551         notice, as per ../config/srclist-update.
25552
25553         Merge from coreutils.
25554         * lib/euidaccess.h: New file.
25555         * lib/euidaccess.c: Include it.
25556         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
25557         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
25558         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
25559
25560 2003-08-12  Paul Eggert  <eggert@twinsun.com>
25561
25562         * config/srclist-update: Add copyright notice.
25563         (remove_id_lines, remove_trailing_blanks): New constants.
25564         (fixfile): Use them to normalize spacing a bit in copied files.
25565         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
25566         Normalize leading white space and remove trailing white space.
25567
25568         * config/texinfo.tex: Sync with texinfo.
25569
25570         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
25571         strtoul.c from libc, to merge coreutils whitespace changes.
25572
25573         * config/srclist.txt: Get the following m4 files from gettext:
25574         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
25575         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
25576         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
25577         wint_t.m4.
25578
25579 2003-08-12  Karl Berry  <karl@gnu.org>
25580
25581         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
25582         been made.
25583
25584 2003-08-11  Paul Eggert  <eggert@twinsun.com>
25585
25586         * modules/gnu-source, m4/gnu-source.m4:
25587         Remove; we're assuming Autoconf 2.54 or later now.
25588         Suggested by Bruno Haible.
25589         * MODULES.html.sh (func_all_modules): Remove gnu-source.
25590
25591 2003-08-11  Bruno Haible  <bruno@clisp.org>
25592
25593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
25594
25595 2003-08-11  Bruno Haible  <bruno@clisp.org>
25596
25597         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
25598         (vasnprintf): Use it instead of wcslen.
25599
25600 2003-08-11  Bruno Haible  <bruno@clisp.org>
25601
25602         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
25603         value to ensure that _Bool promotes to int. Use #define for _Bool when
25604         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
25605
25606 2003-08-10  Karl Berry  <karl@gnu.org>
25607
25608         * lib/regex.h: update from libc (whitespace fix).
25609
25610 2003-08-09  Paul Eggert  <eggert@twinsun.com>
25611
25612         Merge some files from coreutils.  These changes were
25613         originally made by Jim Meyering.
25614         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
25615         many older Unixes require this.
25616         * lib/alloca.c (alloca): Remove cast to argument of free;
25617         no longer needed in C89.
25618         * lib/alloca_.h, regex.h: Fix white space to match
25619         what GNU indent does.
25620
25621 2003-08-09  Paul Eggert  <eggert@twinsun.com>
25622
25623         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
25624         apparently Emacs's Unicode mode got confused before my 2003-08-05
25625         checkin.
25626
25627 2003-08-08  Paul Eggert  <eggert@twinsun.com>
25628
25629         * m4/extensions.m4: New file.
25630         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
25631         Require gl_USE_SYSTEM_EXTENSIONS.
25632         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
25633         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
25634
25635 2003-08-08  Paul Eggert  <eggert@twinsun.com>
25636
25637         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
25638         * modules/extensions, modules/gnu-source: New files.
25639         * modules/timespec, modules/unlocked-io: Depend on extensions.
25640
25641 2003-08-07  Paul Eggert  <eggert@twinsun.com>
25642
25643         * modules/restrict: New file.
25644         * MODULES.html.sh (func_all_modules): Add restrict.
25645         * modules/regex: Depend on restrict.
25646
25647 2003-08-07  Paul Eggert  <eggert@twinsun.com>
25648
25649         * m4/restrict.m4: New file.
25650         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
25651
25652 2003-08-07  Bruno Haible  <bruno@clisp.org>
25653
25654         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
25655         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
25656
25657 2003-08-07  Bruno Haible  <bruno@clisp.org>
25658
25659         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
25660         makes the module 'getndelim2' compatible with the module 'getline'.
25661
25662 2003-08-05  Paul Eggert  <eggert@twinsun.com>
25663
25664         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
25665         byte with "\201" to avoid glitches when editing that source file
25666         with multi-gnome-terminal.
25667
25668 2003-08-05  Paul Eggert  <eggert@twinsun.com>
25669
25670         * lib/bumpalloc.h: Remove.
25671
25672 2003-08-05  Paul Eggert  <eggert@twinsun.com>
25673
25674         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
25675         * modules/bumpalloc: Remove.
25676
25677 2003-08-04  Paul Eggert  <eggert@twinsun.com>
25678
25679         * lib/getloadavg.c: Change copyright notice and spacing to conform to
25680         GNU coding style.
25681
25682         Merge from coreutils.
25683         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
25684         1. From glibc.
25685         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
25686         from Karl Berry, implemented by Jim Meyering.
25687         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
25688         from Dmitry V. Levin.
25689         Remove anachronistic cast of xrealloc.
25690         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
25691         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
25692         type. Otherwise, it wouldn't compile with at least /bin/cc on
25693         ymp-cray-unicos9.0.2.X.
25694         Combine two mostly-identical uses of alloca into one.
25695         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
25696
25697 2003-08-04  Dave Love  <d.love@dl.ac.uk>
25698
25699         [From Emacs.]
25700
25701         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
25702         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
25703         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
25704         obsolete NLIST_NAME_UNION.
25705         [__GNU__]: Undef BSD and FSCALE.
25706         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
25707
25708 2003-08-03  Paul Eggert  <eggert@twinsun.com>
25709
25710         * lib/stdbool_.h (_Bool): Make it signed char, instead of
25711         an enum type, so that it's guaranteed to promote to int.  See:
25712         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
25713
25714 2003-08-03  Karl Berry  <karl@gnu.org>
25715
25716         * config/depcomp: update from automake.
25717
25718 2003-07-31  Paul Eggert  <eggert@twinsun.com>
25719
25720         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
25721         (strerror): Don't assume that a printable int fits in 14 bytes.
25722
25723 2003-07-31  Bruno Haible  <bruno@clisp.org>
25724
25725         * modules/getpass-gnu: New file.
25726         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
25727
25728 2003-07-31  Bruno Haible  <bruno@clisp.org>
25729
25730         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
25731
25732 2003-07-24  Karl Berry  <karl@gnu.org>
25733
25734         * config/missing: update from automake.
25735
25736 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
25737             Bruno Haible  <bruno@clisp.org>
25738
25739         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
25740         * lib/getline.c (getline, getdelim): Likewise.
25741         Remove _GNU_SOURCE define; now it's defined in config.h through
25742         m4/getline.m4.
25743
25744 2003-07-23  Karl Berry  <karl@gnu.org>
25745
25746         * config/config.sub: update from prep.
25747
25748 2003-07-22  Paul Eggert  <eggert@twinsun.com>
25749
25750         * modules/xalloc (Depends-on): Add exitfail.
25751         * modules/xmemcoll: Likewise.
25752
25753 2003-07-22  Paul Eggert  <eggert@twinsun.com>
25754
25755         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
25756         over-parenthesization in macros.
25757
25758         Sync with coreutils.
25759
25760         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
25761         required by C99.
25762
25763         Use `exit_failure' for xalloc and xmemcoll instead of their own
25764         private exit-failure variables.
25765         * lib/xalloc.h (xalloc_exit_failure): Remove.
25766         * lib/xmalloc.c: Likewise.  Include exitfail.h.
25767         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
25768         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
25769         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
25770         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
25771
25772 2003-07-20  Jim Meyering  <jim@meyering.net>
25773
25774         * modules/closeout (Depends-on): Add exitfail.
25775         Suggestion from Bruno Haible.
25776
25777 2003-07-19  Karl Berry  <karl@gnu.org>
25778
25779         * config/config.sub: update from prep.
25780
25781 2003-07-18  Paul Eggert  <eggert@twinsun.com>
25782
25783         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
25784         Remove.
25785         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
25786         to test that it can stand by itself.  Include "exitfail.h".
25787         Clients should set exit_failure instead.
25788         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
25789
25790 2003-07-18  Bruno Haible  <bruno@clisp.org>
25791
25792         * modules/getndelim2: New file.
25793         * modules/getline: Share files with module getndelim2.
25794         * modules/getnline: Depend on getndelim2 instead of sharing files with
25795         it. Add getnline.c to lib_SOURCES.
25796         * MODULES.html.sh (func_all_modules): Add getndelim2.
25797
25798 2003-07-18  Bruno Haible  <bruno@clisp.org>
25799
25800         * m4/getndelim2.m4: New file.
25801         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
25802         invoke gl_PREREQ_GETNDELIM2.
25803         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
25804         gl_PREREQ_GETNDELIM2.
25805         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
25806         gl_GETNDELIM2.
25807
25808 2003-07-18  Bruno Haible  <bruno@clisp.org>
25809
25810         * lib/getndelim2.h: New file.
25811         * lib/getndelim2.c: Make into a module of its own. Include config.h,
25812         getndelim2.h.
25813         (getndelim2): Make non-static. Change return type to ssize_t.
25814         * lib/getline.h: Change argument names.
25815         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
25816         * lib/getnline.c: Include getndelim2.h.
25817
25818 2003-07-18  Andreas Schwab  <schwab@suse.de>
25819
25820         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
25821
25822 2003-07-17  Karl Berry  <karl@gnu.org>
25823
25824         * config/config.sub: update from prep.
25825
25826 2003-07-17  Bruno Haible  <bruno@clisp.org>
25827
25828         * modules/getnline: New file.
25829         * modules/getline: Add lib/getndelim2.c to source file list.
25830         * MODULES.html.sh (func_all_modules): Add getnline.
25831
25832 2003-07-17  Bruno Haible  <bruno@clisp.org>
25833
25834         * m4/getnline.m4: New file.
25835
25836 2003-07-17  Bruno Haible  <bruno@clisp.org>
25837
25838         * m4/Makefile.am.in: Remove file.
25839         * m4/Makefile.am: Remove file.
25840         * m4/Makefile.in: Remove file.
25841
25842 2003-07-17  Bruno Haible  <bruno@clisp.org>
25843
25844         * lib/getnline.h: New file.
25845         * lib/getnline.c: New file.
25846         * lib/getndelim2.c: New file, extracted from getline.c.
25847         (getndelim2): Renamed from getdelim2, with added nmax argument.
25848         * lib/getline.c: Include getndelim2.c.
25849         (getdelim2): Moved out to getndelim2.c.
25850         (getline, getdelim): Update.
25851
25852 2003-07-17  Bruno Haible  <bruno@clisp.org>
25853
25854         * lib/Makefile.am: Remove file.
25855         * lib/Makefile.in: Remove file.
25856
25857 2003-07-17  Bruno Haible  <bruno@clisp.org>
25858
25859         * configure.in: Remove file.
25860         * Makefile.in: Remove file.
25861
25862 2003-07-17  Bruno Haible  <bruno@clisp.org>
25863
25864         * MODULES.html.sh: Put the </BODY> right before </HTML>.
25865
25866 2003-07-16  Karl Berry  <karl@gnu.org>
25867
25868         * config/srclist-update: was running fixlicense twice, which caused
25869                 texinfo.tex to be nullified for some reason.  Simplify,
25870                 $gplsrc is no longer needed as far as I can see?
25871
25872 2003-07-16  Jim Meyering  <jim@meyering.net>
25873
25874         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
25875
25876 2003-07-15  Paul Eggert  <eggert@twinsun.com>
25877
25878         * config/srclist.txt: Get the following files from gettext-runtime/intl
25879         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
25880         ref-del.sin.  From Bruno Haible.
25881         * config/srclist-update (fixfile): Change grep pattern again, since the
25882         previous fix didn't work (there was another trailing $).  Use
25883         '[$]' to escape the $s.
25884
25885 2003-07-15  Karl Berry  <karl@gnu.org>
25886
25887         * lib/vasnprintf.c: update from gettext.
25888
25889 2003-07-15  Karl Berry  <karl@gnu.org>
25890
25891         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
25892         gets expanded when surrounded by '$'.
25893
25894 2003-07-15  Jim Meyering  <jim@meyering.net>
25895
25896         * modules/save-cwd: Don't depend on error.  From Derek Price.
25897
25898 2003-07-15  Jim Meyering  <jim@meyering.net>
25899
25900         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
25901
25902 2003-07-14  Simon Josefsson  <jas@extundo.com>
25903
25904         * modules/mempcpy: New file.
25905         * MODULES.html.sh (func_all_modules): Add mempcpy.
25906
25907 2003-07-14  Simon Josefsson  <jas@extundo.com>
25908
25909         * m4/mempcpy.m4: New file.
25910
25911 2003-07-14  Simon Josefsson  <jas@extundo.com>
25912
25913         * lib/mempcpy.h: New file.
25914         * lib/mempcpy.c: New file.
25915
25916 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25917
25918         * modules/getdate, modules/posixtm: Depend on mktime.
25919
25920 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25921
25922         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
25923         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
25924         unicodeio.c, unicodeio.h, unlocked-io.h:
25925         Switch from LGPL to GPL.
25926
25927 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25928
25929         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
25930         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
25931         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
25932         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
25933         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
25934         updated automatically by ../config/srclist-update.  This changes
25935         their license from LPGL to GPL.
25936
25937 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25938
25939         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
25940         assumed to refer to the root of the most recent stable gettext version.
25941         * config/srclistvars.sh: Add defaults for eggert.
25942         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
25943         Match "This program" as well as "The program".  This is needed
25944         for gettext.
25945
25946 2003-07-14  Jim Meyering  <jim@meyering.net>
25947
25948         Don't emit diagnostics.  Let callers do that.
25949         * lib/save-cwd.c: Don't include "error.h".
25950         (save_cwd): Don't call error.  Ensure that errno is valid
25951         when returning nonzero.
25952
25953         * lib/save-cwd.h (restore_cwd): Update prototype.
25954         * lib/save-cwd.c (restore_cwd): Remove two parameters.
25955         Simplify.  Don't call error upon failure.  Let callers do that.
25956         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
25957         when auditing is enabled.  But don't bother updating the #if.
25958
25959 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
25960
25961         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
25962         it breaks C++ compilation.
25963         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
25964
25965 2003-07-10  Simon Josefsson  <jas@extundo.com>
25966
25967         * modules/strchrnul (Makefile.am): Add strchrnul.h.
25968
25969 2003-07-10  Jim Meyering  <jim@meyering.net>
25970
25971         * m4/clock_time.m4: Remove trailing blank.
25972         * m4/intmax_t.m4: Likewise.
25973
25974 2003-07-10  Jim Meyering  <jim@meyering.net>
25975
25976         * lib/vasnprintf.c: Remove trailing blanks.
25977         Make cpp indentation consistent.
25978
25979 2003-07-09  Paul Eggert  <eggert@twinsun.com>
25980
25981         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
25982         posixver.c, strftime.c, strnlen.c, strverscmp.c:
25983         Switch from LGPL to GPL.
25984
25985 2003-07-09  Paul Eggert  <eggert@twinsun.com>
25986
25987         * config/srclist.txt: Sort sublists.  Add
25988         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
25989         that differ from gnulib for one reason or another; we'd like this list
25990         to be smaller but for now let's document what we have.
25991
25992 2003-07-08  Paul Eggert  <eggert@twinsun.com>
25993
25994         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
25995         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
25996         and sweeter "eval x=$x".
25997         * config/srclist.txt: Get lib/argp* from glibc.
25998
25999 2003-07-07  Paul Eggert  <eggert@twinsun.com>
26000
26001         * lib/mktime.c: Fix some boundary cases and remove need for floating
26002         point.
26003
26004         Issue a compile-time diagnostic if time_t is floating point, or if
26005         two's complement arithmetic is not in effect, or if arithmetic
26006         right shift does not propagate the sign.  These assumptions were
26007         all in the original code but they weren't checked.
26008
26009         (TIME_T_MIDPOINT, verify): New macros.
26010         (__isleap): Remove; it has integer overflow problems.
26011         (leapyear): New function, without those problems.
26012         (ydhms_tm_diff): Remove; splitting into two parts.
26013         (ydhms_diff): New function, containing the arithmetic part of
26014         the old ydhms_tm_diff function.  Issue a compile-time
26015         diagnostic if we are not using C99 integer division.
26016         Avoid casts when possible.
26017         (guess_time_tm): New function, containing the checking part of
26018         the old ydhms_tm_diff function.  Return the new value, rather than
26019         the difference between it and the old.  Accept a new argument T
26020         so that *T specifies the old value.  Check for overflow in the result.
26021
26022         (__mktime_internal): Use a time_t offset, not a long int offset.
26023         This undoes the 2003-06-04 change, which is no longer needed now
26024         that we have better overflow checking.
26025         (localtime_offset): Likewise.
26026
26027         (__mktime_internal): Avoid harmful overflow on hosts where time_t
26028         and long are 64-bit but int is only 32-bit.
26029         (ydhms_diff): Use long int to store year1 and yday1.
26030         Issue a compile-time diagnostic if long int is not wide enough.
26031
26032         (__mktime_internal): Use long int to store adjusted year and yday.
26033         Use plain C rather than preprocessor commands, if that doesn't
26034         affect efficiency.
26035         Check for overflow (and try to repair) after each probe
26036         rather than checking only at the very end.  This avoids some bugs
26037         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
26038         does not equal GMT offset at maximum time).
26039         Use integer to check for overflow rather than floating point; this
26040         is more portable to non-IEEE hosts, and is a tad faster.
26041         When we detect that we are oscillating between two values,
26042         don't check whether tm_isdst has the requested value, since
26043         we already know the answer.  When tm_isdst has the wrong value,
26044         use a different heuristic to find the right one, based on the
26045         extreme values actually observed in practice in tz2003a,
26046         rather than the (overly optimistic) "previous 3 calendar quarters".
26047
26048         (not_equal_tm, print_tm, check_result): Use "const T" rather than
26049         "T const" to accommodate glibc style.
26050         (check_result): Use less-confusing report format.  "long" -> "long int.
26051         (main): Likewise.
26052         Don't loop if the iteration overflows time_t.
26053         Allow a negative step in the iteration.
26054
26055 2003-07-06  Karl Berry  <karl@gnu.org>
26056
26057         * config/depcomp: update from automake.
26058         * config/config.sub: update from prep.
26059
26060 2003-07-03  Karl Berry  <karl@gnu.org>
26061
26062         * config/config.guess: update from prep.
26063
26064 2003-07-01  Paul Eggert  <eggert@twinsun.com>
26065
26066         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
26067         xreadlink.c now includes it unconditionally.
26068
26069 2003-07-01  Paul Eggert  <eggert@twinsun.com>
26070
26071         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
26072         having it depend on HAVE_SYS_TYPES_H.
26073
26074 2003-07-01  Bruno Haible  <bruno@clisp.org>
26075
26076         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
26077         <sys/types.h> should be sufficient.
26078         Reported by Paul Eggert.
26079
26080 2003-06-26  Karl Berry  <karl@gnu.org>
26081
26082         * config/depcomp: update from automake.
26083
26084 2003-06-26  Bruno Haible  <bruno@clisp.org>
26085
26086         * modules/human: Depend on module stdbool.
26087
26088 2003-06-25  Bruno Haible  <bruno@clisp.org>
26089
26090         * modules/readlink: New file.
26091         * modules/xreadlink: Depend on it.
26092         * MODULES.html.sh (func_all_modules): Add readlink.
26093
26094 2003-06-25  Bruno Haible  <bruno@clisp.org>
26095
26096         * m4/readlink.m4: New file.
26097
26098 2003-06-25  Bruno Haible  <bruno@clisp.org>
26099
26100         * lib/readlink.c: New file.
26101
26102 2003-06-22  Karl Berry  <karl@gnu.org>
26103
26104         * config/srclist.txt: update mkinstalldirs from automake.
26105         * config/mkinstalldirs: update.
26106
26107 2003-06-22  Bruno Haible  <bruno@clisp.org>
26108
26109         Portability to mingw32.
26110         * m4/ssize_t.m4: New file, from GNU gettext.
26111         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
26112         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
26113
26114 2003-06-22  Bruno Haible  <bruno@clisp.org>
26115
26116         * modules/safe-read: Add m4/ssize_t.m4.
26117         * modules/xreadlink: Add m4/ssize_t.m4.
26118
26119 2003-06-20  Bruno Haible  <bruno@clisp.org>
26120
26121         Assume C89, so PARAMS isn't needed.
26122         * lib/unicodeio.h (PARAMS): Remove.
26123         * lib/unicodeio.c: Don't use PARAMS.
26124
26125 2003-06-18  Karl Berry  <karl@gnu.org>
26126
26127         * config/config.{guess,sub}: update from prep.
26128
26129 2003-06-18  Jim Meyering  <jim@meyering.net>
26130
26131         Merge changes from coreutils.
26132         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
26133         Remove explicit declarations of xmalloc and realloc.
26134         Include xalloc.h.
26135         (read_utmp): Remove anachronistic cast of xmalloc.
26136
26137 2003-06-17  Paul Eggert  <eggert@twinsun.com>
26138
26139         Assume C89, so PARAMS isn't needed.
26140         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
26141         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
26142         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
26143         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
26144         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
26145         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
26146         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
26147         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
26148         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
26149         lib/xstrtod.h, lib/xstrtol.h: Likewise.
26150         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
26151         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
26152         no longer needed. Anyway, config.h should always be included before any
26153         other file.
26154
26155 2003-06-11  Simon Josefsson  <jas@extundo.com>
26156
26157         * modules/sysexits: New file.
26158         * MODULES.html.sh (func_all_modules): Add sysexits.
26159
26160 2003-06-11  Simon Josefsson  <jas@extundo.com>
26161
26162         * lib/sysexit_.h: New file.
26163
26164 2003-06-11  Derek Price  <derek@ximbiot.com>
26165
26166         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
26167         necessary.
26168
26169 2003-06-11  Bruno Haible  <bruno@clisp.org>
26170
26171         * m4/sysexits.m4: New file.
26172
26173 2003-06-10  Simon Josefsson  <jas@extundo.com>
26174
26175         * lib/argp.h: New file, from glibc.
26176         * lib/argp-ba.c: New file, from glibc.
26177         * lib/argp-eexst.c: New file, from glibc.
26178         * lib/argp-fmtstream.c: New file, from glibc.
26179         * lib/argp-fmtstream.h: New file, from glibc.
26180         * lib/argp-fs-xinl.c: New file, from glibc.
26181         * lib/argp-help.c: New file, from glibc.
26182         * lib/argp-namefrob.h: New file, from glibc.
26183         * lib/argp-parse.c: New file, from glibc.
26184         * lib/argp-pv.c: New file, from glibc.
26185         * lib/argp-pvh.c: New file, from glibc.
26186         * lib/argp-xinl.c: New file, from glibc.
26187
26188 2003-06-10  Simon Josefsson  <jas@extundo.com>
26189
26190         * modules/strchrnul: New file.
26191
26192 2003-06-10  Simon Josefsson  <jas@extundo.com>
26193
26194         * modules/argp: New file.
26195
26196 2003-06-10  Simon Josefsson  <jas@extundo.com>
26197
26198         * m4/strchrnul.m4: New file.
26199
26200 2003-06-10  Simon Josefsson  <jas@extundo.com>
26201
26202         * lib/strchrnul.h: New file.
26203         * lib/strchrnul.c: New file.
26204
26205 2003-06-10  Bruno Haible  <bruno@clisp.org>
26206
26207         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
26208
26209 2003-06-07  Karl Berry  <karl@gnu.org>
26210
26211         * config/config.{guess,sub}: update from prep.
26212
26213 2003-06-07  Jim Meyering  <jim@meyering.net>
26214
26215         * modules/strtod: Use $(...) notation, not @...@ for
26216         AC_REPLACE'd variables.
26217         * modules/localcharset: Likewise.
26218
26219 2003-06-07  Jim Meyering  <jim@meyering.net>
26220
26221         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
26222         in place of my name in the copyright comment.
26223         Remove definition and uses of __P.
26224
26225         From coreutils.
26226         * lib/stat.c: Don't declare xmalloc explicitly.
26227         Instead, include "xalloc.h".
26228         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
26229         xrealloc, and xcalloc return values.
26230         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
26231         Improve comment.
26232         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
26233
26234 2003-06-07  Bruno Haible  <bruno@clisp.org>
26235
26236         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
26237         avoid AC_CONFIG_LINKS.
26238         * modules/fnmatch (Makefile.am): Use explicit creation rule for
26239         fnmatch.h, to avoid AC_CONFIG_LINKS.
26240         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
26241
26242 2003-06-07  Bruno Haible  <bruno@clisp.org>
26243
26244         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
26245         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
26246         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26247         directory.
26248         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
26249         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26250         directory.
26251
26252 2003-06-06  Jim Meyering  <jim@meyering.net>
26253
26254         Merge from coreutils.
26255         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
26256         Consolidate declarations and initializations of *_base* locals.
26257
26258         Merge from coreutils.
26259         This avoids a core dump on systems without GNU putenv,
26260         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
26261         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
26262         (unsetenv): New static function, from GNU libc.
26263         (rpl_putenv): Use it.
26264
26265         * lib/modechange.c: Remove trailing blanks.
26266
26267         Merge from coreutils.
26268         * lib/fsusage.c: Remove declaration of statfs.
26269         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
26270
26271         * lib/posixtm.c: Include <stdbool.h> unconditionally.
26272
26273 2003-06-06  Jim Meyering  <jim@meyering.net>
26274
26275         * lib/stdbool_.h: Renamed from stdbool.h.in.
26276
26277 2003-06-06  Jim Meyering  <jim@meyering.net>
26278             Bruno Haible  <bruno@clisp.org>
26279
26280         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
26281         Adjust Makefile.am snippet not to redirect directly to target.
26282         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
26283
26284 2003-06-05  Paul Eggert  <eggert@twinsun.com>
26285
26286         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
26287         mismatch, look in future quarters as well as past.  This fixes a
26288         bug when processing fall-backwards gaps immediately after a long
26289         period of daylight-saving time.
26290
26291         * lib/mktime.c: Assume freestanding C89 or better.
26292         (HAVE_LIMITS_H): Remove.  Assume it's 1.
26293         (__P): Remove; not used.
26294         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
26295         (mktime, not_equal_tm, print_tm, check_result,
26296         main): Use prototypes.  Use const * where appropriate.
26297         (main): Fix typo in testing code that uncovered by above changes.
26298         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
26299
26300 2003-06-04  Paul Eggert  <eggert@twinsun.com>
26301
26302         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
26303         locale.h, localeconv.  This merges changes from coreutils.
26304
26305         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
26306         It can be removed after the next Autoconf is released.
26307         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
26308         needed.
26309
26310 2003-06-04  Paul Eggert  <eggert@twinsun.com>
26311
26312         * lib/mktime.c: Fix Debian bug 177940
26313         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
26314         (localtime_offset): Now long int, not time_t, because we want it
26315         to be guaranteed to be signed.  All uses changed.
26316         (__mktime_internal): If overflow would occur when adding offset,
26317         don't add it.
26318
26319         Merge 'human' changes from coreutils.  Rewrite to support
26320         locale-specific notations like thousands separators.
26321         * lib/human.c: Simplify authorship notice.
26322         Include human.h immediately after config.h.
26323         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
26324         <limits.h>: Do not include, since human.h does.
26325         (SIZE_MAX, UINTMAX_MAX): New macros.
26326         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
26327         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
26328         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
26329         (power_letter): Renamed from suffixes.
26330         (generate_suffix_backwards): Remove.
26331         (adjust_value): Now takes int style (because of human.h changes)
26332         and long double value (for greater precision on some platforms).
26333         (group_number): New function.
26334         (human_readable): Use it.  Use integer options, not enum.
26335         Put the options before the sizes in the arg list.
26336         Support all the new options.
26337         The old human_readable function has been removed;
26338         use inttostr.h instead.
26339         (human_readable, default_block_size, humblock):
26340         Use uintmax_t, not int, for block sizes.
26341         (human_readable_inexact, block_size_types): Remove.
26342         (block_size_opts): New constant.
26343         (human_options): Renamed from human_block_size, with new signature
26344         that allows block sizes up to UINTMAX_MAX.  All callers changed.
26345         * lib/human.h: Add copyright and authorship notice.
26346         Include <limits.h> and <stdbool.h> unconditionally.
26347         (PARAMS): Remove.  All uses removed.
26348         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
26349         (enum human_inexact_style): Remove tag; now a nameless enum.
26350         (human_floor, human_ceiling, human_round_to_even): Now have
26351         values 2, 0, 1 rather than -1, 1, 0.
26352         (human_group_digits, human_suppress_point_zero, human_autoscale,
26353         human_base_1024, human_SI, human_B): New constants.
26354         (human_readable_inexact, human_block_size): Remove.
26355         (human_readable): Size args are now uintmax_t, not int.
26356         (human_options): New decl.
26357
26358         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
26359         unnecessary now that we assume C89 or better.  This change
26360         imported from coreutils.
26361
26362         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26363         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
26364         in the 2003-05-30 sync from glibc.
26365
26366         .h files should stand alone, but we shouldn't include <sys/types.h>
26367         if we can get away with just <stddef.h>.
26368
26369         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
26370         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
26371         rather than <sys/types.h>, as we merely need size_t.
26372         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
26373         to get size_t.
26374         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
26375         Include <stdio.h>, to get FILE.
26376         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
26377         memcasecmp.h has included <stddef.h> and all we need is size_t.
26378         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
26379         our interface, instead of including <sys/types.h>
26380
26381 2003-06-04  Paul Eggert  <eggert@twinsun.com>
26382
26383         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
26384         now, as glibc mktime is buggy on non-glibc systems.
26385
26386 2003-06-03  Karl Berry  <karl@gnu.org>
26387
26388         * config/config.sub: update from prep.
26389
26390 2003-06-02  Paul Eggert  <eggert@twinsun.com>
26391
26392         [from coreutils]
26393         Fix some minor time-related bugs with POSIX time arguments.
26394         Some valid time stamps were being rejected (notably -1, and
26395         time stamps before 1900 on 64-bit hosts).  And some invalid
26396         time stamps were being accepted, e.g. September 31.
26397
26398         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
26399         that we can return (time_t) -1 successfully.
26400         * lib/posixtm.c: Likewise.
26401         [HAVE_STDBOOL_H]: Include <stdbool.h>.
26402         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
26403         (t): Remove static var.
26404         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
26405         of static var.  All uses changed.
26406         (year): Do not reject years before 1900; they can occur with
26407         64-bit time_t.
26408         (posix_time_parse): Do not check for out-of-range components;
26409         that is now the caller's responsibility, since our checks were
26410         only approximations.
26411         (posixtime): Use mktime to check for out-of-range components,
26412         since it knows them exactly.
26413         If mktime returns (time_t) -1, check whether an error actually occurred
26414         by invoking localtime on -1.
26415         (main) [TEST_POSIXTIME]: Check for input data errors, and report
26416         posixtime failures better.
26417         Improve the test data (in comments only).
26418
26419 2003-06-02  Karl Berry  <karl@gnu.org>
26420
26421         * config/mkinstalldirs (version): new variable.
26422         (--version): new option.
26423         (usage): improve message.
26424
26425 2003-05-30  Karl Berry  <karl@gnu.org>
26426
26427         * lib/mktime.c: update from libc.
26428
26429 2003-05-30  Bruno Haible  <bruno@clisp.org>
26430
26431         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
26432         * config/config.rpath: Upgrade to gettext-0.12.1.
26433
26434 2003-05-30  Bruno Haible  <bruno@clisp.org>
26435
26436         * m4/gettext.m4: Upgrade to gettext-0.12.1.
26437         * m4/nls.m4: New file, from gettext-0.12.1.
26438         * m4/po.m4: New file, from gettext-0.12.1.
26439         * m4/progtest.m4: Upgrade to gettext-0.12.1.
26440
26441 2003-05-30  Bruno Haible  <bruno@clisp.org>
26442
26443         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
26444         * lib/localcharset.h: Likewise.
26445         * lib/localcharset.c: Likewise.
26446
26447 2003-05-29  Karl Berry  <karl@gnu.org>
26448
26449         * config/config.rpath: update from gettext.
26450
26451 2003-05-28  Paul Eggert  <eggert@twinsun.com>
26452
26453         Assume the headers required for C89 freestanding compilers.
26454         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
26455         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
26456         * m4/human.m4 (gl_HUMAN): Likewise.
26457         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
26458         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
26459         * m4/userspec.m4 (gl_USERSPEC): Likewise.
26460         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
26461         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26462         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
26463
26464 2003-05-28  Paul Eggert  <eggert@twinsun.com>
26465
26466         Assume the headers required for C89 freestanding compilers.
26467         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
26468         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
26469         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
26470         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
26471         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
26472         define, since <limits.h> is guaranteed to do that.
26473         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
26474         * lib/exclude.c: Include <stdbool.h> unconditionally.
26475         * lib/tempname.c: Include <stddef.h> unconditionally.
26476         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
26477         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
26478         <stddef.h> does that.
26479         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
26480         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
26481         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
26482         needed.
26483         * lib/xstrtol.c: Likewise.
26484         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
26485         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
26486
26487         * lib/addext.c (addext): Use assignment rather than cast, to avoid
26488         warnings on some platforms.
26489
26490         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26491         arbitrarily.
26492
26493 2003-05-26  Jim Meyering  <jim@meyering.net>
26494
26495         Merge in a change from coreutils:
26496         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
26497         that is guaranteed to be `no'.  Use `no_such_member' to indicate
26498         that condition, rather than `-1' which is slightly misleading.
26499         Change the name of the cache variable to have the gl_ prefix.
26500         Prompted by a patch from Richard Dawe for DJGPP.
26501
26502 2003-05-24  Karl Berry  <karl@gnu.org>
26503
26504         * config/config.guess: update from prep.
26505
26506 2003-05-22  Karl Berry  <karl@gnu.org>
26507
26508         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
26509
26510 2003-05-20  Karl Berry  <karl@gnu.org>
26511
26512         * config/config.guess: update from prep.
26513
26514 2003-05-18  Karl Berry  <karl@gnu.org>
26515
26516         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
26517         might actually be set by the user.
26518
26519         * config/depcomp, install-sh, mdate-sh: update from automake.
26520
26521 2003-05-17  Bruno Haible  <bruno@clisp.org>
26522
26523         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
26524         invalid expansion for AC_EGREP_CPP.
26525         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26526         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26527         Suggested by Akim Demaille <akim@epita.fr> in
26528         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
26529
26530 2003-05-12  Jim Meyering  <jim@meyering.net>
26531
26532         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
26533         the space-padded-by-default conversion specifiers, %e, %k, %l.
26534
26535 2003-05-12  Bruno Haible  <bruno@clisp.org>
26536
26537         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
26538         the string is longer than 4 KB.
26539
26540 2003-05-11  Karl Berry  <karl@gnu.org>
26541
26542         * config/config.{guess,sub}: update from prep.
26543
26544 2003-05-09  Bruno Haible  <bruno@clisp.org>
26545
26546         * modules/error: Add m4/strerror_r.m4 to file list.
26547
26548 2003-05-03  Bruno Haible  <bruno@clisp.org>
26549
26550         Upgrade to Unicode-4.0.
26551         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
26552         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
26553         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
26554         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
26555         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
26556         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
26557         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
26558         Change width of U+E0100..U+E01EF from 1 to 0.
26559
26560 2003-04-25  Jim Meyering  <jim@meyering.net>
26561
26562         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
26563         of type size_t, not int.
26564
26565 2003-04-25  Bruno Haible  <bruno@clisp.org>
26566
26567         * lib/copy-file.c: Include <stddef.h>, for size_t.
26568
26569 2003-04-21  Paul Eggert  <eggert@twinsun.com>
26570
26571         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
26572         code which expansion is under static control.  Patch imported from
26573         Akim Demaille's patch to Bison; see
26574         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
26575
26576 2003-04-14  Bruno Haible  <bruno@clisp.org>
26577
26578         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
26579
26580 2003-04-11  Jim Meyering  <jim@meyering.net>
26581
26582         Merge changes from Coreutils.
26583
26584         2003-03-22  Jim Meyering  <jim@meyering.net>
26585
26586         * lib/strftime.c (widen): Cast alloca return value to proper type.
26587
26588         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
26589
26590         From GNU libc.
26591         * lib/strftime.c (my_strftime): Handle very large width
26592         specifications for numeric values correctly.  Improve checks for
26593         overflow.
26594
26595         2003-01-19  Jim Meyering  <jim@meyering.net>
26596
26597         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
26598         definitions.
26599         (nl_get_alt_digit) [! defined my_strftime]: Define.
26600         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
26601         _nl_get_alt_digit and _nl_get_walt_digit.
26602
26603         * lib/strftime.c (my_strftime): Merge in locale-related changes from
26604         libc. These changes have no effect outside of _LIBC.
26605
26606 2003-04-10  Bruno Haible  <bruno@clisp.org>
26607
26608         * modules/findprog: New file.
26609         * MODULES.html.sh (func_all_modules): Add it.
26610
26611 2003-04-10  Bruno Haible  <bruno@clisp.org>
26612
26613         * m4/findprog.m4: New file.
26614         * m4/eaccess.m4: New file.
26615
26616 2003-04-10  Bruno Haible  <bruno@clisp.org>
26617
26618         * lib/findprog.h: New file, from GNU gettext.
26619         * lib/findprog.c: New file, from GNU gettext.
26620
26621 2003-04-05  Jim Meyering  <jim@meyering.net>
26622
26623         Merge changes from Coreutils.
26624
26625         * lib/exclude.h (PARAMS): Remove definition and uses.
26626         * lib/exclude.c: Remove uses of `PARAMS'.
26627
26628         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
26629         Add test-cases for DOS filenames. Declare program_name.
26630         (main): Set up program_name.  Patch by Rich Dawe.
26631
26632         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26633         error from mntctl.
26634         Use mntctl's return value to drive the entry-processing loop, since
26635         we can't rely on the value of the vmt_length member in the last
26636         entry.  On some systems doing so could result in exhausting
26637         virtual memory.  Based in part on a patch from Mike Jetzer.
26638
26639 2003-04-04  Bruno Haible  <bruno@clisp.org>
26640
26641         * modules/linebreak: New file.
26642         * MODULES.html.sh (func_all_modules): Add it.
26643
26644 2003-04-04  Bruno Haible  <bruno@clisp.org>
26645
26646         * m4/linebreak.m4: New file.
26647
26648 2003-04-04  Bruno Haible  <bruno@clisp.org>
26649
26650         * lib/linebreak.h: New file, from GNU gettext.
26651         * lib/linebreak.c: New file, from GNU gettext with slight
26652         modifications.
26653         * lib/lbrkprop.h: New file, from GNU gettext.
26654
26655 2003-04-03  Bruno Haible  <bruno@clisp.org>
26656
26657         * modules/utf8-ucs4: New file.
26658         * modules/utf16-ucs4: New file.
26659         * modules/ucs4-utf8: New file.
26660         * modules/ucs4-utf16: New file.
26661         * MODULES.html.sh (func_all_modules): Add them.
26662
26663 2003-04-03  Bruno Haible  <bruno@clisp.org>
26664
26665         * m4/utf-ucs4.m4: New file.
26666         * m4/ucs4-utf.m4: New file.
26667
26668 2003-04-03  Bruno Haible  <bruno@clisp.org>
26669
26670         * lib/utf8-ucs4.h: New file, from GNU gettext.
26671         * lib/utf16-ucs4.h: New file, from GNU gettext.
26672         * lib/ucs4-utf8.h: New file, from GNU gettext.
26673         * lib/ucs4-utf16.h: New file, from GNU gettext.
26674
26675 2003-04-02  Bruno Haible  <bruno@clisp.org>
26676
26677         * modules/binary-io: New file.
26678         * MODULES.html.sh (func_all_modules): Add it.
26679
26680 2003-04-02  Bruno Haible  <bruno@clisp.org>
26681
26682         * lib/binary-io.h: New file, from GNU gettext.
26683
26684 2003-04-01  Bruno Haible  <bruno@clisp.org>
26685
26686         * modules/pathname: New file.
26687         * MODULES.html.sh (func_all_modules): Add it.
26688
26689 2003-04-01  Bruno Haible  <bruno@clisp.org>
26690
26691         * lib/pathname.h: New file, from GNU gettext.
26692         * lib/concatpath.c: New file, from GNU gettext.
26693
26694 2003-03-30  Bruno Haible  <bruno@clisp.org>
26695
26696         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
26697
26698 2003-03-30  Bruno Haible  <bruno@clisp.org>
26699
26700         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
26701         function chown() doesn't exist.
26702
26703 2003-03-28  Bruno Haible  <bruno@clisp.org>
26704
26705         * modules/copy-file: New file.
26706         * MODULES.html.sh (func_all_modules): Add it.
26707
26708 2003-03-28  Bruno Haible  <bruno@clisp.org>
26709
26710         * m4/copy-file.m4: New file.
26711
26712 2003-03-28  Bruno Haible  <bruno@clisp.org>
26713
26714         * lib/copy-file.h: New file, from GNU gettext.
26715         * lib/copy-file.c: New file, from GNU gettext.
26716
26717 2003-03-18  Jim Meyering  <jim@meyering.net>
26718
26719         * lib/quote.c (quote_n): Fix typo in comment.
26720
26721 2003-03-18  Bruno Haible  <bruno@clisp.org>
26722
26723         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
26724         checking.
26725         * m4/onceonly_2_57.m4: Likewise.
26726
26727 2003-03-17  Bruno Haible  <bruno@clisp.org>
26728
26729         * m4/onceonly.m4: Require autoconf 2.54 or newer.
26730         (m4_quote): Remove macro.
26731         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
26732
26733 2003-03-14  Jim Meyering  <jim@meyering.net>
26734
26735         Merge changes from Coreutils.
26736         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
26737         to be const, in order to avoid warnings.
26738         (obstack_room): Likewise.
26739         (obstack_empty_p): Likewise.
26740
26741 2003-03-14  Bruno Haible  <bruno@clisp.org>
26742
26743         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
26744         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
26745
26746 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26747
26748         Merge changes from Bison.
26749         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
26750         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
26751         when compiling Bison 1.875's `bitset bset = obstack_alloc
26752         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
26753         * lib/hash.c: Include <stdbool.h> unconditionally.
26754
26755 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26756
26757         * m4/onceonly.m4 (m4_quote): New macro.
26758         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
26759         Quote AC_FOREACH variable-expansions properly.
26760
26761 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26762
26763         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
26764
26765 2003-03-09  Paul Eggert  <eggert@twinsun.com>
26766
26767         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
26768         Reported by Bruce Becker; see:
26769         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
26770
26771 2003-03-03  Paul Eggert  <eggert@twinsun.com>
26772             Bruno Haible  <bruno@clisp.org>
26773
26774         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
26775         Reported by John Hughes, see
26776         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
26777
26778 2003-02-20  Bruno Haible  <bruno@clisp.org>
26779
26780         * MODULES.html.sh (func_all_modules): Add poll.
26781
26782 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26783
26784         * modules/poll: New file.
26785
26786 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26787
26788         * lib/poll_.h: New file.
26789         * lib/poll.c: New file.
26790
26791 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26792
26793         * m4/poll.m4: New file.
26794
26795 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26796
26797         * modules/mathl: New file.
26798
26799 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26800
26801         * lib/mathl.h: New file.
26802         * lib/acosl.c: New file.
26803         * lib/asinl.c: New file.
26804         * lib/atanl.c: New file.
26805         * lib/ceill.c: New file.
26806         * lib/cosl.c: New file.
26807         * lib/expl.c: New file.
26808         * lib/floorl.c: New file.
26809         * lib/frexpl.c: New file.
26810         * lib/ldexpl.c: New file.
26811         * lib/logl.c: New file.
26812         * lib/sincosl.c: New file.
26813         * lib/sinl.c: New file.
26814         * lib/sqrtl.c: New file.
26815         * lib/tanl.c: New file.
26816         * lib/trigl.c: New file.
26817         * lib/trigl.h: New file.
26818
26819 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26820
26821         * m4/mathl.m4: New file.
26822
26823 2003-02-18  Bruno Haible  <bruno@clisp.org>
26824
26825         * MODULES.html.sh (func_all_modules): Add mathl.
26826
26827 2003-02-17  Bruno Haible  <bruno@clisp.org>
26828
26829         * modules/mkdtemp: New module.
26830         * MODULES.html.sh (func_all_modules): Add it.
26831
26832 2003-02-17  Bruno Haible  <bruno@clisp.org>
26833
26834         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
26835
26836 2003-02-17  Bruno Haible  <bruno@clisp.org>
26837
26838         * lib/mkdtemp.h: New file, from GNU gettext.
26839         * lib/mkdtemp.c: New file, from GNU gettext.
26840
26841 2003-02-02  Jim Meyering  <jim@meyering.net>
26842
26843         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
26844         e.g. glibc-2.2.93.
26845
26846 2003-01-31  Bruno Haible  <bruno@clisp.org>
26847
26848         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
26849         'rpl_rename'.
26850         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
26851         'rpl_strnlen'.
26852         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
26853         'rpl_strtod'.
26854         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
26855         'rpl_utime'.
26856
26857 2003-01-31  Bruno Haible  <bruno@clisp.org>
26858
26859         * lib/rename.c: #undef rename before defining rpl_rename.
26860         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
26861
26862 2003-01-30  Bruno Haible  <bruno@clisp.org>
26863
26864         * modules/vasnprintf, modules/vasprintf: New modules.
26865         * MODULES.html.sh (func_all_modules): Add them.
26866
26867 2003-01-30  Bruno Haible  <bruno@clisp.org>
26868
26869         * m4/signed.m4: New file, from GNU gettext.
26870         * m4/longdouble.m4: New file, from GNU gettext.
26871         * m4/wchar_t.m4: New file, from GNU gettext.
26872         * m4/wint_t.m4: New file, from GNU gettext.
26873         * m4/vasnprintf.m4: New file.
26874         * m4/vasprintf.m4: New file.
26875
26876 2003-01-30  Bruno Haible  <bruno@clisp.org>
26877
26878         * lib/printf-args.h: New file, from GNU gettext.
26879         * lib/printf-args.c: New file, from GNU gettext.
26880         * lib/printf-parse.h: New file, from GNU gettext.
26881         * lib/printf-parse.c: New file, from GNU gettext.
26882         * lib/vasnprintf.h: New file, from GNU gettext.
26883         * lib/vasnprintf.c: New file, from GNU gettext.
26884         * lib/asnprintf.c: New file, from GNU gettext.
26885         * lib/vasprintf.h: New file, from GNU gettext with modifications.
26886         * lib/vasprintf.c: New file, from GNU gettext.
26887         * lib/asprintf.c: New file, from GNU gettext.
26888
26889 2003-01-29  Bruno Haible  <bruno@clisp.org>
26890
26891         * modules/stpncpy: New module.
26892         * MODULES.html.sh (func_all_modules): Add it.
26893
26894 2003-01-29  Bruno Haible  <bruno@clisp.org>
26895
26896         * m4/stpncpy.m4: New file.
26897
26898 2003-01-29  Bruno Haible  <bruno@clisp.org>
26899
26900         * lib/stpncpy.h: New file, from GNU gettext with modifications.
26901         * lib/stpncpy.c: New file, from GNU gettext with modifications.
26902
26903 2003-01-28  Bruno Haible  <bruno@clisp.org>
26904
26905         * modules/c-ctype: New module.
26906         * MODULES.html.sh (func_all_modules): Add it.
26907
26908 2003-01-28  Bruno Haible  <bruno@clisp.org>
26909
26910         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
26911         Paul Eggert.
26912         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
26913         Paul Eggert.
26914
26915 2003-01-27  Bruno Haible  <bruno@clisp.org>
26916
26917         * modules/xsetenv: New module.
26918         * MODULES.html.sh (func_all_modules): Add it.
26919
26920 2003-01-27  Bruno Haible  <bruno@clisp.org>
26921
26922         * lib/xsetenv.h: New file, from GNU gettext.
26923         * lib/xsetenv.c: New file, from GNU gettext.
26924
26925 2003-01-23  Jim Meyering  <jim@meyering.net>
26926
26927         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
26928         from working on systems without dirfd (at least Irix and OSF1/Tru64).
26929
26930 2003-01-23  Bruno Haible  <bruno@clisp.org>
26931
26932         * modules/minmax: New module.
26933         * MODULES.html.sh (func_all_modules): Add it.
26934
26935 2003-01-23  Bruno Haible  <bruno@clisp.org>
26936
26937         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
26938         Eggert.
26939
26940 2003-01-22  Bruno Haible  <bruno@clisp.org>
26941
26942         * modules/exit: New module.
26943         * MODULES.html.sh (func_all_modules): Add it.
26944
26945 2003-01-22  Bruno Haible  <bruno@clisp.org>
26946
26947         * lib/exit.h: New file, from GNU gettext.
26948
26949 2003-01-19  Bruno Haible  <bruno@clisp.org>
26950
26951         * gnulib-tool: Recognize option --extract-maintainer.
26952         (func_get_maintainer): New function.
26953         * modules/*: Add Maintainer entry.
26954
26955 2003-01-16  Jim Meyering  <jim@meyering.net>
26956
26957         * m4/regex.m4: The `regex' struct is both input and output.
26958         Initialize it before each use.  Patch by Tim Waugh.
26959
26960 2003-01-16  Bruno Haible  <bruno@clisp.org>
26961
26962         * MODULES.html.sh: Add a table of contents. Add the module name as
26963         leftmost column. Add hyperlinks.
26964
26965 2003-01-15  Bruno Haible  <bruno@clisp.org>
26966
26967         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
26968
26969 2003-01-15  Bruno Haible  <bruno@clisp.org>
26970
26971         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
26972         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
26973         suffix.
26974
26975 2003-01-15  Bruno Haible  <bruno@clisp.org>
26976
26977         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
26978
26979 2003-01-15  Bruno Haible  <bruno@clisp.org>
26980
26981         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
26982         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
26983
26984 2003-01-14  Jim Meyering  <jim@meyering.net>
26985
26986         * lib/same.c (same_name): Tweak a comment.
26987
26988 2003-01-14  Bruno Haible  <bruno@clisp.org>
26989
26990         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
26991         when a string comparison is sufficient.
26992
26993 2003-01-14  Bruno Haible  <bruno@clisp.org>
26994
26995         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
26996         'unsigned int'.
26997
26998 2003-01-14  Bruno Haible  <bruno@clisp.org>
26999
27000         * lib/hash-pjw.c: Add comment about low quality of this function.
27001
27002 2003-01-13  Bruno Haible  <bruno@clisp.org>
27003
27004         * modules/stpcpy: Distribute lib/stpcpy.h.
27005         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
27006
27007 2003-01-13  Bruno Haible  <bruno@clisp.org>
27008
27009         * modules/*: Add a description.
27010         * modules/strpbrk: Fix Makefile.am snippet.
27011         * modules/strtoimax: Fix dependencies.
27012         * modules/strtoumax: Likewise.
27013
27014 2003-01-13  Bruno Haible  <bruno@clisp.org>
27015
27016         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
27017         * modules/alloca (Makefile.am): All object files depend on alloca.h.
27018         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
27019
27020 2003-01-13  Bruno Haible  <bruno@clisp.org>
27021
27022         * gnulib-tool (func_create_testdir): Store config/* files in the main
27023         directory.
27024         * config.rpath: Move to ...
27025         * config/config.rpath: ... here.
27026         * modules/gettext: Contains config/config.rpath, not config.rpath.
27027         * modules/iconv: Likewise.
27028
27029 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27030
27031         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27032         to avoid collisions with libcurses and libreadline.
27033
27034         * m4/getstr.m4: Remove.
27035         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
27036
27037 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27038
27039         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27040         to avoid collisions with libcurses and libreadline.
27041
27042         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
27043         * lib/getstr.h, getstr.c: Remove.
27044         * lib/getline.c: Include "getline.h", to check interface.
27045         Move body of old getstr.c here: this defines MIN_CHUNK and
27046         declares getdelim2, which is renamed from getstr.
27047         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
27048
27049         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
27050         All uses changed.
27051         * lib/linebuffer.h: Likewise.
27052         (readline): Remove backward-compatibility macro.
27053
27054 2003-01-12  Paul Eggert  <eggert@twinsun.com>
27055
27056         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27057         to avoid collisions with libcurses and libreadline.
27058         * getstr: Remove.
27059         * MODULES.html.sh: Remove getstr.
27060         * modules/getline: Depend on unlocked-io, not getstr.
27061
27062 2003-01-12  Jim Meyering  <jim@meyering.net>
27063
27064         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
27065
27066 2003-01-10  Bruno Haible  <bruno@clisp.org>
27067
27068         * modules/alloca: Change Makefile.am requirements. Simplify Include
27069         requirements. Add lib/alloca_.h to file list.
27070
27071 2003-01-10  Bruno Haible  <bruno@clisp.org>
27072
27073         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
27074
27075 2003-01-10  Bruno Haible  <bruno@clisp.org>
27076
27077         * lib/alloca_.h: New file.
27078         * lib/getdate.y: Unconditionally include alloca.h.
27079         * lib/makepath.c: Likewise.
27080         * lib/setenv.c: Likewise.
27081         * lib/userspec.c: Likewise.
27082
27083 2003-01-09  Karl Berry  <karl@gnu.org>
27084
27085         * MODULES.html.sh: include `dirname $0` in PATH, to find
27086         gnulib-tool.
27087
27088 2003-01-09  Bruno Haible  <bruno@clisp.org>
27089
27090         * modules/stdbool: Change configure.ac, Makefile.am requirements.
27091         Simplify Include requirements. Add lib/stdbool.h.in to file list.
27092
27093 2003-01-09  Bruno Haible  <bruno@clisp.org>
27094
27095         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
27096
27097 2003-01-09  Bruno Haible  <bruno@clisp.org>
27098
27099         * lib/stdbool.h.in: New file.
27100
27101 2003-01-09  Bruno Haible  <bruno@clisp.org>
27102
27103         * gnulib-tool (func_all_modules): Ignore files ending in ~.
27104         * MODULES.html.sh: Likewise.
27105
27106 2003-01-08  Jim Meyering  <jim@meyering.net>
27107
27108         * lib/full-write.c: Undefine and define-away `const' after inclusion
27109         of errno.h, not before.  Suggestion from Bruno Haible.
27110
27111 2003-01-08  Bruno Haible  <bruno@clisp.org>
27112
27113         * modules/full-read: Depend on full-write.
27114
27115 2003-01-08  Bruno Haible  <bruno@clisp.org>
27116
27117         * lib/safe-read.c: Include specification header first, to ensure its
27118         selfcontainedness.
27119         * lib/full-write.c: Likewise.
27120
27121 2003-01-07  Jim Meyering  <jim@meyering.net>
27122
27123         * lib/full-write.c: Rework so that it may serve to define full_read,
27124         too.
27125         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
27126
27127 2003-01-07  Bruno Haible  <bruno@clisp.org>
27128
27129         * lib/strtoimax.c: Include <stdint.h> as an alternative to
27130         <inttypes.h>.
27131         * lib/xstrtol.h: Likewise.
27132         * lib/xstrtoimax.c: Likewise.
27133         * lib/xstrtoumax.c: Likewise.
27134         * lib/human.h: Likewise.
27135
27136         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
27137         on systems that have <inttypes.h> but not <stdint.h>.
27138
27139 2003-01-07  Bruno Haible  <bruno@clisp.org>
27140
27141         * MODULES.html.sh: Add copyright notice.
27142         (missed_files): Omit CVS directory entries.
27143         (func_module): Make it work with sed-3.02.
27144         * MODULES.txt: Remove file.
27145
27146 2003-01-06  Jim Meyering  <jim@meyering.net>
27147
27148         * lib/version-etc.c: Update year in translatable copyright string.
27149
27150 2003-01-03  Karl Berry  <karl@gnu.org>
27151
27152         * config/config.{guess,sub}: update from prep.
27153
27154 2003-01-02  Karl Berry  <karl@gnu.org>
27155
27156         * doc/COPYING.DOC: belatedly updated to 1.2.
27157
27158 2003-01-01  Karl Berry  <karl@gnu.org>
27159
27160         * gnulib-tool (func_verify_module): report module name $module in
27161         error message, not $1.
27162         * gnulib-tool (create-testdir): don't complain if destdir couldn't
27163         be created, only if it doesn't exist.
27164         * gnulib-tool (last_checkin_date): don't expand the $Date here.
27165
27166 2002-12-31  Paul Eggert  <eggert@twinsun.com>
27167
27168         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
27169
27170 2002-12-31  Paul Eggert  <eggert@twinsun.com>
27171
27172         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
27173         memcmp if strcoll doesn't work.
27174
27175 2002-12-31  Bruno Haible  <bruno@clisp.org>
27176
27177         * lib/utime.c (utime_null): No need to call ftruncate if the file was
27178         nonempty.
27179
27180 2002-12-31  Bruno Haible  <bruno@clisp.org>
27181
27182         * lib/memcoll.c (STRCOLL): New macro.
27183         (memcoll): Use it.
27184
27185 2002-12-31  Bruno Haible  <bruno@clisp.org>
27186
27187         * lib/localcharset.h: New file.
27188         * lib/localcharset.c: Include it.
27189         * lib/unicodeio.c: Likewise.
27190
27191 2002-12-31  Bruno Haible  <bruno@clisp.org>
27192
27193         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
27194         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
27195
27196 2002-12-31  Bruno Haible  <bruno@clisp.org>
27197
27198         * lib/getline.h: Include <stddef.h>, for size_t.
27199
27200         * lib/unicodeio.h: Include <stddef.h>, for size_t.
27201         * lib/unicodeio.c: Don't include <stddef.h>.
27202
27203 2002-12-31  Bruno Haible  <bruno@clisp.org>
27204
27205         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
27206         HAVE_TM_ZONE.
27207
27208 2002-12-24  Karl Berry  <karl@gnu.org>
27209
27210         * config/config.guess: update from prep.
27211
27212 2002-12-24  Bruno Haible  <bruno@clisp.org>
27213
27214         General infrasructure.
27215         * m4/README: Rewritten.
27216         * m4/onceonly.m4: New file.
27217         * m4/onceonly_2_57.m4: New file.
27218
27219         Module atexit.
27220         * m4/atexit.m4: New file.
27221
27222         Module strtod.
27223         * m4/strtod.m4: New file.
27224
27225         Module strtol.
27226         * m4/strtol.m4: New file.
27227
27228         Module strtoul.
27229         * m4/strtoul.m4: New file.
27230
27231         Module memchr.
27232         * m4/memchr.m4: New file.
27233
27234         Module memcmp.
27235         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
27236         (jm_FUNC_MEMCMP): Invoke it.
27237
27238         Module memcpy.
27239         * m4/memcpy.m4: New file.
27240
27241         Module memmove.
27242         * m4/memmove.m4: New file.
27243
27244         Module memset.
27245         * m4/memset.m4: New file.
27246
27247         Module strcspn.
27248         * m4/strcspn.m4: New file.
27249
27250         Module strpbrk.
27251         * m4/strpbrk.m4: New file.
27252
27253         Module strstr.
27254         * m4/strstr.m4: New file.
27255
27256         Module strerror.
27257         * m4/strerror.m4: New file.
27258
27259         Module mktime.
27260         * m4/mktime.m4: Renamed from jm-mktime.m4.
27261         (gl_PREREQ_MKTIME): New macro.
27262         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
27263
27264         Module malloc.
27265         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
27266         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
27267         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
27268
27269         Module realloc.
27270         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
27271         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
27272         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
27273
27274         Module strftime.
27275         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
27276         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
27277         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
27278         gl_TM_GMTOFF.
27279         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
27280
27281         Module xalloc.
27282         * m4/xalloc.m4: New file.
27283
27284         Module alloca.
27285         * m4/alloca.m4: New file.
27286
27287         Module putenv.
27288         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27289         (jm_FUNC_PUTENV): Invoke it.
27290
27291         Module setenv.
27292         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
27293         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
27294         when invoked twice.
27295         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
27296         gt_FUNC_SETENV.
27297
27298         Module memrchr.
27299         * m4/memrchr.m4: New file.
27300
27301         Module stpcpy.
27302         * m4/stpcpy.m4: New file.
27303
27304         Module strcase.
27305         * m4/strcase.m4: New file.
27306
27307         Module strdup.
27308         * m4/strdup.m4: New file.
27309
27310         Module strnlen.
27311         * m4/strnlen.m4: New file.
27312
27313         Module strndup.
27314         * m4/strndup.m4: New file.
27315
27316         Module xstrtod.
27317         * m4/xstrtod.m4: New file.
27318
27319         Module xstrtol.
27320         * m4/xstrtol.m4: New file.
27321
27322         Module getdate.
27323         * m4/getdate.m4: New file.
27324
27325         Module unlocked-io.
27326         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
27327         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
27328         * m4/jm-glibc-io.m4n: Remove file.
27329
27330         Module long-options.
27331         * m4/long-options.m4: New file.
27332
27333         Module md5.
27334         * m4/md5.m4: New file.
27335
27336         Module sha.
27337         * m4/sha.m4: New file.
27338
27339         Module getstr.
27340         * m4/getstr.m4: New file.
27341
27342         Module getline.
27343         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
27344         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
27345         <sys/types.h>, for size_t. Use the function name gnu_getline, not
27346         simply getline. Infoke gl_PREREQ_GETLINE.
27347
27348         Module obstack.
27349         * m4/obstack.m4: New file.
27350
27351         Module hash.
27352         * m4/hash.m4: New file.
27353
27354         Module readtokens.
27355         * m4/readtokens.m4: New file.
27356
27357         Module strverscmp.
27358         * m4/strverscmp.m4: New file.
27359
27360         Module stdbool.
27361         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
27362         OSF/1.
27363
27364         Module strtoll.
27365         * m4/strtoll.m4: New file.
27366
27367         Module strtoull.
27368         * m4/strtoull.m4: New file.
27369
27370         Module strtoimax.
27371         * m4/strtoimax.m4: New file.
27372
27373         Module strtoumax.
27374         * m4/strtoumax.m4: New file.
27375
27376         Module xstrtoimax.
27377         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
27378         jm_AC_PREREQ_XSTRTOIMAX.
27379         Moved the strtol prerequisites to strtol.m4.
27380         Moved the strtoll prerequisites to strtoll.m4.
27381         Moved the strtoimax prerequisites to strtoimax.m4.
27382
27383         Module xstrtoumax.
27384         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
27385         jm_AC_PREREQ_XSTRTOUMAX.
27386         Moved the strtoul prerequisites to strtoul.m4.
27387         Moved the strtoull prerequisites to strtoull.m4.
27388         Moved the strtoumax prerequisites to strtoumax.m4.
27389
27390         Module chown.
27391         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
27392         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
27393
27394         Module dup2.
27395         * m4/dup2.m4: New file.
27396
27397         Module ftruncate.
27398         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
27399         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
27400
27401         Module getgroups.
27402         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
27403         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
27404
27405         Module gettimeofday.
27406         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
27407         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
27408         gl_PREREQ_GETTIMEOFDAY.
27409
27410         Module mkdir.
27411         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
27412         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
27413
27414         Module mkstemp.
27415         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
27416         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
27417         jm_AC_TYPE_UINTMAX_T.
27418         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
27419
27420         Module stat.
27421         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
27422         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
27423
27424         Module lstat.
27425         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
27426         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
27427
27428         Module timespec.
27429         * m4/timespec.m4 (gl_TIMESPEC): New macro.
27430         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
27431         * m4/st_mtim.m4: Indentation.
27432
27433         Module nanosleep.
27434         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
27435         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
27436         gl_PREREQ_NANOSLEEP.
27437
27438         Module regex.
27439         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
27440         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
27441         (gl_REGEX): New macro.
27442
27443         Module rename.
27444         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
27445         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
27446
27447         Module rmdir.
27448         * m4/rmdir.m4: New file.
27449
27450         Module utime.
27451         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
27452         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
27453         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
27454
27455         Module dirname.
27456         * m4/dirname.m4: New file.
27457
27458         Module getopt.
27459         * m4/getopt.m4: New file.
27460
27461         Module unistd-safer.
27462         * m4/unistd-safer.m4: New file.
27463
27464         Module fnmatch.
27465         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
27466         declaration.
27467         (gl_PREREQ_FNMATCH_EXTRA): New macro.
27468         (gl_FUNC_FNMATCH_POSIX): New macro.
27469         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
27470         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
27471         simply fnmatch.
27472
27473         Module exclude.
27474         * m4/exclude.m4: New file.
27475
27476         Module human.
27477         * m4/human.m4: New file.
27478
27479         Module acl.
27480         * m4/acl.m4: Nop.
27481
27482         Module backupfile.
27483         * m4/backupfile.m4: New file.
27484         * m4/d-ino.m4: Indentation.
27485
27486         Module fsusage.
27487         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
27488         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
27489         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
27490
27491         Module dirfd.
27492         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
27493         requirements.
27494
27495         Module euidaccess.
27496         * m4/euidaccess.m4: New file.
27497
27498         Module file-type.
27499         * m4/file-type.m4: New file.
27500
27501         Module fileblocks.
27502         * m4/fileblocks.m4: New file.
27503
27504         Module filemode.
27505         * m4/filemode.m4: New file.
27506
27507         Module isdir.
27508         * m4/isdir.m4: New file.
27509
27510         Module lchown.
27511         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
27512         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
27513
27514         Module makepath.
27515         * m4/makepath.m4: New file.
27516
27517         Module modechange.
27518         * m4/modechange.m4: New file.
27519
27520         Module mountlist.
27521         * m4/mountlist.m4: New file.
27522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
27523         Indentation.
27524
27525         Module path-concat.
27526         * m4/path-concat.m4: New file.
27527
27528         Module pathmax.
27529         * m4/pathmax.m4: New file.
27530
27531         Module same.
27532         * m4/same.m4: New file.
27533
27534         Module save-cwd.
27535         * m4/save-cwd.m4: New file.
27536
27537         Module savedir.
27538         * m4/savedir.m4: New file.
27539
27540         Module xgetcwd.
27541         * m4/xgetcwd.m4: New file.
27542         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
27543
27544         Module xreadlink.
27545         * m4/xreadlink.m4: New file.
27546
27547         Module safe-read.
27548         * m4/safe-read.m4: New file.
27549
27550         Module safe-write.
27551         * m4/safe-write.m4: New file.
27552
27553         Module closeout.
27554         * m4/closeout.m4: New file.
27555
27556         Module stdio-safer.
27557         * m4/stdio-safer.m4: New file.
27558
27559         Module getpass.
27560         * m4/getpass.m4: New file.
27561
27562         Module getugroups.
27563         * m4/getugroups.m4: New file.
27564
27565         Module group-member.
27566         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
27567         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
27568
27569         Module idcache.
27570         * m4/idcache.m4: New file.
27571
27572         Module userspec.
27573         * m4/userspec.m4: New file.
27574
27575         Module gettime.
27576         * m4/clock_time.m4: New file.
27577         * m4/gettime.m4: New file.
27578
27579         Module settime.
27580         * m4/settime.m4: New file.
27581
27582         Module posixtm.
27583         * m4/posixtm.m4: New file.
27584
27585         Module gethostname.
27586         * m4/gethostname.m4: New file.
27587
27588         Module canon-host.
27589         * m4/canon-host.m4: New file.
27590
27591         Module gettext.
27592         * m4/codeset.m4: New file, from gettext-0.11.5.
27593         * m4/gettext.m4: New file, from gettext-0.11.5.
27594         * m4/glibc21.m4: New file, from gettext-0.11.5.
27595         * m4/iconv.m4: New file, from gettext-0.11.5.
27596         * m4/intdiv0.m4: New file, from gettext-0.11.5.
27597         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
27598         * m4/inttypes.m4: New file, from gettext-0.11.5.
27599         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
27600         * m4/isc-posix.m4: New file, from gettext-0.11.5.
27601         * m4/lcmessage.m4: New file, from gettext-0.11.5.
27602         * m4/lib-ld.m4: New file, from gettext-0.11.5.
27603         * m4/lib-link.m4: New file, from gettext-0.11.5.
27604         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
27605         * m4/progtest.m4: New file, from gettext-0.11.5.
27606         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
27607         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
27608         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
27609
27610         Module localcharset.
27611         * m4/localcharset.m4: New file.
27612
27613         Module hard-locale.
27614         * m4/hard-locale.m4: New file.
27615
27616         Module mbswidth.
27617         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
27618         onceonly macros.
27619         * m4/mbrtowc.m4: Add comment.
27620
27621         Module memcasecmp.
27622         * m4/memcasecmp.m4: New file.
27623
27624         Module memcoll.
27625         * m4/memcoll.m4: New file.
27626
27627         Module unicodeio.
27628         * m4/unicodeio.m4: New file.
27629
27630         Module rpmatch.
27631         * m4/rpmatch.m4: New file.
27632
27633         Module yesno.
27634         * m4/yesno.m4: New file.
27635
27636         Module exitfail.
27637         * m4/exitfail.m4: New file.
27638
27639         Module c-stack.
27640         * m4/c-stack.m4 (gl_C_STACK): New macro.
27641         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
27642
27643         Module error.
27644         * m4/error.m4 (gl_ERROR): New macro.
27645         (jm_PREREQ_ERROR): Use onceonly macros.
27646
27647         Module fatal.
27648         * m4/fatal.m4: New file.
27649
27650         Module getloadavg.
27651         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
27652         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
27653
27654         Module getpagesize.
27655         * m4/getpagesize.m4: New file.
27656
27657         Module getusershell.
27658         * m4/getusershell.m4: New file.
27659
27660         Module physmem.
27661         * m4/physmem.m4: New file.
27662
27663         Module posixver.
27664         * m4/posixver.m4: New file.
27665
27666         Module quotearg.
27667         * m4/quotearg.m4: New file.
27668
27669         Module quote.
27670         * m4/quote.m4: New file.
27671
27672         Module readutmp.
27673         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
27674
27675         Module sig2str.
27676         * m4/sig2str.m4: New file.
27677
27678         Other.
27679         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
27680         ulonglong.m4.
27681         * m4/intmax_t.m4: New file.
27682         * m4/d-type.m4: Indentation.
27683         * m4/jm-macros.m4: Update.
27684         * m4/prereq.m4 (jm_PREREQ): Update.
27685         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
27686         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
27687         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
27688         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
27689         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
27690         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
27691         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
27692         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
27693         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
27694         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
27695         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
27696         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
27697         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
27698         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
27699         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
27700         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
27701         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
27702         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
27703         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
27704
27705 2002-12-24  Bruno Haible  <bruno@clisp.org>
27706
27707         * MODULES.txt: Update according to m4/ changes.
27708
27709         Module gettext.
27710         * config.rpath: New file, from gettext-0.11.5.
27711
27712         * modules/*: New module descriptions.
27713         * gnulib-tool: New file.
27714         * MODULES.html.sh: New file.
27715
27716 2002-12-21  Karl Berry  <karl@gnu.org>
27717
27718         * doc/fdl.texi: update to version 1.2.
27719
27720 2002-12-19  Karl Berry  <karl@gnu.org>
27721
27722         * config/config.guess: update from prep.
27723
27724 2002-12-18  Bruno Haible  <bruno@clisp.org>
27725
27726         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
27727         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
27728
27729 2002-12-17  Bruno Haible  <bruno@clisp.org>
27730
27731         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
27732         stdlib.h, string.h.
27733
27734 2002-12-17  Bruno Haible  <bruno@clisp.org>
27735
27736         * lib/canon-host.c (strdup): Remove unused declaration.
27737
27738         * lib/fsusage.c: Include full_read.h.
27739         (get_fs_usage): Use full_read instead of safe_read.
27740
27741         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
27742
27743 2002-12-12  Karl Berry  <karl@gnu.org>
27744
27745         * config/config.guess: update from prep.
27746
27747 2002-12-11  Bruno Haible  <bruno@clisp.org>
27748
27749         * m4/setenv.m4: New file, from gettext-0.11.5.
27750
27751 2002-12-11  Bruno Haible  <bruno@clisp.org>
27752
27753         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
27754         not unsetenv().
27755         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
27756         modifications:
27757
27758         2002-12-11  Bruno Haible  <bruno@clisp.org>
27759
27760                 * setenv.c (alloca): Fall back to malloc.
27761                 (freea): New macro.
27762                 (setenv): Use freea() to free memory allocated with alloca().
27763
27764         2002-11-13  Bruno Haible  <bruno@clisp.org>
27765
27766                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
27767                 function declarations.
27768                 * unsetenv.c (unsetenv): Likewise.
27769
27770         2002-03-04  Bruno Haible  <bruno@clisp.org>
27771
27772                 Portability to AIX 4.3.3.
27773                 * unsetenv.c: New file, extracted from setenv.c.
27774                 * setenv.c: Move the unsetenv() function to unsetenv.c.
27775
27776         2001-12-20  Bruno Haible  <bruno@clisp.org>
27777
27778                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
27779                 use malloc instead. For SunOS 4.
27780
27781         2001-12-11  Bruno Haible  <bruno@clisp.org>
27782
27783                 * setenv.c: Declare alloca.
27784                 (compar_fn_t): New typedef.
27785                 (KNOWN_VALUE, STORE_VALUE): Use it.
27786
27787         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
27788         setenv.h.
27789
27790 2002-12-10  Paul Eggert  <eggert@twinsun.com>
27791
27792         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
27793         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
27794         Choose values that are less likely to collide with system fnmatch
27795         options.
27796         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
27797         defined (e.g., a pure POSIX system).
27798         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
27799         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
27800
27801 2002-12-06  Paul Eggert  <eggert@twinsun.com>
27802
27803         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
27804         a pain in practice to deal with generated m4 files.  This change
27805         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
27806
27807         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
27808         and jm-glibc-io.m4, as they are no longer a special case.
27809         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
27810         kludge and the auto-generation stuff.  Check only whether the
27811         functions are declared, not whether they exist, since older hosts
27812         that don't declare the functions can't use the optimization anyway.
27813
27814 2002-12-06  Jim Meyering  <jim@meyering.net>
27815
27816         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
27817
27818         Merge in changes from libc's misc/error.c, in preparation
27819         for the merge of gnulib's changes back into libc.
27820
27821         * lib/error.c (_): Define only if not already defined.
27822         Move definition to follow all #include directives.
27823         Include unlocked-io.h only if !_LIBC.
27824         [_LIBC]: Include <libio/libioP.h>.
27825         [USE_IN_LIBIO]: Include <libio/iolibio.h>
27826         (fflush): Tweak definition to use INTUSE.
27827         (putc): Define.
27828
27829 2002-12-05  Paul Eggert  <eggert@twinsun.com>
27830
27831         * lib/alloca.c [defined emacs]: Include "lisp.h".
27832         (xalloc_die) [defined emacs]: New macro.
27833         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
27834         [! defined emacs]: Include <xalloc.h>.
27835         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
27836         (pointer): Typedef to POINTER_TYPE *.
27837         (malloc): Remove decl; we now always use xmalloc.
27838         (alloca): Use old-style definition, since Emacs needs this.
27839         Check for arithmetic overflow when computing combined size.
27840
27841 2002-12-04  Paul Eggert  <eggert@twinsun.com>
27842
27843         Do not generate unlocked-io.h automatically, since it's easier to
27844         maintain it by hand.
27845
27846         * lib/unlocked-io.h: New file, from GNU diffutils,
27847         but with proper copyright notice and attribution.
27848         * lib/gen-uio: Remove.
27849         * lib/Makefile.am: Add copyright notice.
27850         (libfetish_a_SOURCES): Add unlocked-io.h.
27851         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
27852         (DISTCLEANFILES, io_functions): Remove macros.
27853         (EXTRA_DIST): Remove gen_uio.
27854         (unlocked-io.h): Remove rule.
27855
27856 2002-12-04  Jim Meyering  <jim@meyering.net>
27857
27858         Reflect the fact that stat.c and lstat.c are no longer generated.
27859         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
27860         (DISTCLEANFILES): Likewise.
27861         (EXTRA_DIST): Likewise.
27862         (all_local): Don't depend on stat.c or lstat.c.
27863         (stat.c, lstat.c): Remove rules.
27864         (EXTRA_DIST): Remove xstat.in.
27865
27866         * lib/xstat.in: Remove file.  Contents moved into stat.c.
27867         * lib/stat.c: New file.  Contents mostly from xstat.in.
27868         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
27869         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
27870
27871         * lib/safe-read.c: Rework so that it may serve to define safe_write,
27872         too.
27873         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
27874
27875 2002-12-03  Jim Meyering  <jim@meyering.net>
27876
27877         * lib/safe-read.c, safe-write.c: Change variable names and comments,
27878         but not semantics, to minimize the differences between these two files.
27879         (safe_read): Change comment to mention SAFE_READ_ERROR.
27880
27881         * lib/safe-read.c (IS_EINTR): Define.
27882         (safe_read): Use IS_EINTR in place of in-function cpp directives.
27883
27884 2002-12-02  Jim Meyering  <jim@meyering.net>
27885
27886         * lib/safe-read.c (EINTR): Define.
27887         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
27888         (INT_MAX): Provide fallback.
27889         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
27890
27891         * lib/safe-read.h (SAFE_READ_ERROR): Define.
27892
27893 2002-12-02  Bruno Haible  <bruno@clisp.org>
27894
27895         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27896         Define, taken from safe-read.c.
27897         (INT_MAX): Provide fallback.
27898         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
27899         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
27900
27901         * lib/safe-read.c (EINTR): Remove definition.
27902         (safe_read): Don't use EINTR if it is absent.
27903
27904 2002-12-01  Jim Meyering  <jim@meyering.net>
27905
27906         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
27907         zero.
27908         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
27909
27910 2002-11-27  Paul Eggert  <eggert@twinsun.com>
27911
27912         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
27913         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
27914         with `if (! (value < limit)) abort ();', for readability.
27915
27916 2002-11-26  Karl Berry  <karl@gnu.org>
27917
27918         * lib/strdup.c: copy from libc again, with jim's ok.
27919         * lib/.cppi-disable: re-add strdup.c
27920
27921 2002-11-25  Karl Berry  <karl@gnu.org>
27922
27923         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
27924         instead of "strtol.c".
27925
27926 2002-11-25  Karl Berry  <karl@gnu.org>
27927
27928         * config/install-sh: update from automake for variable quoting, $0 in
27929         error msgs, etc.
27930
27931         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
27932         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
27933         entry.
27934
27935 2002-11-25  Jim Meyering  <jim@meyering.net>
27936
27937         * lib/mktime.c: Sync from libc, now that it has the latest fix.
27938
27939 2002-11-24  Karl Berry  <karl@gnu.org>
27940
27941         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
27942         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
27943
27944 2002-11-24  Jim Meyering  <jim@meyering.net>
27945
27946         Update from coreutils:
27947
27948         * lib/mktime.c: Merge in changes from libc.
27949
27950         Avoid a link-time failure on some Linux systems.
27951         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
27952         (otherwise).
27953         (__mon_yday): Declare with the STATIC attribute.
27954         (__mktime_internal): Likewise.
27955         Based on a report from Greg Schafer.
27956
27957 2002-11-23  Jim Meyering  <jim@meyering.net>
27958
27959         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
27960         Use `unsigned', not `int', as type of index.
27961
27962         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
27963
27964         * lib/fsusage.c: Remove unneeded parentheses around operands of
27965         `defined'.
27966
27967 2002-11-22  Paul Eggert  <eggert@twinsun.com>
27968
27969         * lib/quotearg.h: Allow multiple inclusion by surrounding with
27970         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
27971         so that we can be included first.
27972         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
27973         * lib/quotearg.c: Include quotearg.h immediately after config.h.
27974         No need to include stddef.h or sys/types.h any more.
27975         Surround local include files with "", not "<>".
27976         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
27977         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
27978         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
27979         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
27980         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
27981         (ISPRINT): Remove; no longer needed now that we assume C89.
27982
27983         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
27984         Preserve errno.
27985
27986         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
27987         quotearg_char): Use SIZE_MAX rather than
27988         (size_t) -1 when we are talking about "infinity".
27989
27990         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
27991
27992 2002-11-22  Paul Eggert  <eggert@twinsun.com>
27993
27994         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
27995         hint that one should use `if (! x) abort ();' rather than `assert
27996         (x);', and anyway it's one less thing to worry about configuring.
27997         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
27998         hash_rehash, hash_insert): Use abort rather than assert.
27999
28000 2002-11-22  Bruno Haible  <bruno@clisp.org>
28001
28002         * lib/safe-read.h: Assume C89. Add comments.
28003         (safe_read): Change return type to size_t.
28004         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
28005         byte counts > SSIZE_MAX correctly.
28006         * lib/safe-write.h: New file.
28007         * lib/safe-write.c: New file.
28008         * lib/full-read.h: New file.
28009         * lib/full-read.c: New file.
28010         * lib/full-write.h: Assume C89. Add comments.
28011         * lib/full-write.c: Include safe-write.h.
28012         (full_write): Rewritten to use safe_write.
28013         Suggested by Jim Meyering and Paul Eggert.
28014
28015 2002-11-21  Jim Meyering  <jim@meyering.net>
28016
28017         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
28018
28019         Merge in changes from the coreutils.
28020
28021         2002-09-25  Paul Eggert  <eggert@twinsun.com>
28022         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
28023         <stdint.h>.
28024         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
28025         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
28026         int.  Work more efficiently if X is the same width as uintmax_t.
28027         Do not compare X to -1, to avoid bogus compiler warning.
28028         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
28029         Don't assume that f_frsize and f_bsize are the same type.
28030
28031         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
28032         warning on FreeBSD.
28033
28034         * lib/makepath.c (make_path): Restore umask *before* creating the final
28035         component.
28036         (make_path): Minor reformatting.
28037
28038         * lib/xmalloc.c: Adjust to work with new autoconf macros,
28039         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
28040         HAVE_MALLOC/HAVE_REALLOC.
28041
28042         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
28043         dummy ones.  At least on GNU/Linux systems, `auto' means something
28044         else.
28045         From Michael Stone.
28046
28047 2002-11-21  Bruno Haible  <bruno@clisp.org>
28048
28049         Remove case insensitive option matching.
28050         * lib/argmatch.h (argcasematch): Remove declaration.
28051         (ARGCASEMATCH): Remove macro.
28052         (__xargmatch_internal): Remove case_sensitive argument.
28053         (XARGMATCH): Update.
28054         (XARGCASEMATCH): Remove macro.
28055         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
28056         case_sensitive argument.
28057         (argcasematch): Remove function.
28058         (__xargmatch_internal): Remove case_sensitive argument.
28059         (main): Use XARGMATCH instead of XARGCASEMATCH.
28060
28061         * lib/xmalloc.c: Change compile-time error message. Add comment about
28062         required autoconf version.
28063
28064 2002-11-20  Paul Eggert  <eggert@twinsun.com>
28065
28066         Merge argmatch cleanups from Bison.  Assume C89.
28067
28068         * lib/argmatch.c: Include config.h here, not in argmatch.h.
28069         Include stdlib.h, for EXIT_FAILURE.
28070         Always include <string.h>, since we assume C89.
28071         (EXIT_FAILURE): Remove pre-C89 bug workaround.
28072         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
28073         Include <stddef.h> instead, since it's all we need for size_t.
28074         (PARAMS): Remove.  All uses removed.
28075         (ARRAY_CARDINALITY): Do not bother to #undef.
28076         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
28077         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28078         Remove unnecessary parentheses.
28079         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28080         Insert necessary parentheses.
28081         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
28082         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
28083
28084 2002-11-19  Bruno Haible  <bruno@clisp.org>
28085
28086         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
28087         * lib/mbswidth.h: Include <stddef.h>, for size_t.
28088
28089         * lib/mbswidth.h (PARAMS): Remove macro.
28090         (mbswidth, mbsnwidth): Use ANSI C function declarations.
28091         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
28092
28093         * lib/gcd.h (PARAMS): Remove macro.
28094         (gcd): Use ANSI C function declarations.
28095         * lib/gcd.c (gcd): Likewise.
28096
28097 2002-11-15  Bruno Haible  <bruno@clisp.org>
28098
28099         * lib/strcspn.c: Include <stddef.h>.
28100         (strcspn): Use ANSI C function declaration. Change return type to
28101         size_t. Use NULL.
28102         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
28103         (strpbrk): Use NULL.
28104         * lib/strpbrk.h (PARAMS): Remove macro.
28105         (strpbrk): Use ANSI C function declaration.
28106         * lib/strstr.c: Don't include <sys/types.h>.
28107         * lib/strstr.h (PARAMS): Remove macro.
28108         (strstr): Use ANSI C function declarations.
28109
28110 2002-11-14  Karl Berry  <karl@gnu.org>
28111
28112         * config/mkinstalldirs: `do' on separate line, instead of
28113         `for var; do'.
28114
28115 2002-11-06  Bruno Haible  <bruno@clisp.org>
28116
28117         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
28118         * lib/gcd.c (gcd): Likewise.
28119
28120 2002-11-05  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/gcd.h: New file, from gettext-0.11.5.
28123         * lib/gcd.c: New file, from gettext-0.11.5.
28124
28125 2002-11-05  Bruno Haible  <bruno@clisp.org>
28126
28127         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28128         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28129         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28130         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28131
28132         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
28133         <libintl.h>.
28134         * lib/makepath.c: Include gettext.h instead of <locale.h> and
28135         <libintl.h>.
28136
28137         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
28138         * lib/human.c: Include gettext.h instead of <libintl.h>.
28139         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
28140         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
28141         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
28142         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
28143         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
28144         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
28145         (textdomain): Remove definition.
28146         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
28147
28148         * lib/long-options.c: Remove include of <libintl.h> and definition of
28149         _.
28150         * lib/same.c: Remove include of <libintl.h> and definition of _.
28151
28152 2002-11-04  Owen Taylor  <otaylor@redhat.com>
28153
28154         * lib/config.charset: A few additions for Solaris.
28155
28156 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
28157
28158         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
28159         * lib/localcharset.c (locale_charset): Declare as extern "C".
28160
28161 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
28162
28163         * lib/config.charset: msdos in uk_UA uses CP1125.
28164
28165 2002-11-04  Bruno Haible  <bruno@clisp.org>
28166
28167         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
28168         * lib/strcase.h: New file, from GNU gettext-0.11.5.
28169         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
28170         * lib/strstr.h: New file, from GNU gettext-0.11.5.
28171         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
28172
28173 2002-11-04  Bruno Haible  <bruno@clisp.org>
28174
28175         * lib/localcharset.c (locale_charset): Don't return an empty string.
28176
28177 2002-11-04  Bruno Haible  <bruno@clisp.org>
28178
28179         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
28180         aliases.
28181
28182 2002-11-04  Bruno Haible  <bruno@clisp.org>
28183
28184         * lib/config.charset: Update for newest glibc. Add canonical names
28185         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
28186
28187 2002-11-04  Bruno Haible  <bruno@clisp.org>
28188
28189         * lib/config.charset: Add support for NetBSD.
28190
28191 2002-11-04  Bruno Haible  <bruno@clisp.org>
28192
28193         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
28194
28195 2002-11-01  Bruno Haible  <bruno@clisp.org>
28196
28197         * configure.in: Add AC_CONFIG_AUX_DIR call.
28198         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
28199         test/Makefile.
28200         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
28201
28202 2002-09-28  Karl Berry  <karl@gnu.org>
28203
28204         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
28205         installed automake until the next release, since changes have been
28206         made.
28207
28208 2002-09-25  Karl Berry  <karl@gnu.org>
28209
28210         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
28211         * lib/getopt*: copy from libc/posix.
28212         * lib/gettext.h: copy from gettext.
28213         * lib/.cppi-disable: add strdup.c, gettext.h.
28214
28215 2002-09-25  Karl Berry  <karl@gnu.org>
28216
28217         * config/srclist.txt: enable gettext.h check.
28218         * config/config.{guess,sub}: update from prep.
28219         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
28220                 from automake 1.6.3.
28221         See srclist*.
28222
28223 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
28224
28225         * regex.c (PATFETCH): Remove the translating fetch.
28226         (PATFETCH_RAW): Rename to PATFETCH.
28227         (set_image_of_range): New fun.
28228         (SET_RANGE_TABLE_WORK_AREA): Use it.
28229         (regex_compile): Don't translate the pattern chars so eagerly.
28230         Only do it when inserting an `exactn' bytecode or when handling
28231         a char-range.
28232         (mutually_exclusive_p): Avoid empty statement.
28233
28234 2002-07-06  Jim Meyering  <meyering@lucent.com>
28235
28236         * m4/README: Don't mention Makefile.am.in.
28237         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
28238
28239 2002-07-01  Jim Meyering  <meyering@lucent.com>
28240
28241         * lib/c-stack.c: Include sys/time.h.
28242         From Volker Borchert.
28243
28244 2002-06-26  Paul Eggert  <eggert@twinsun.com>
28245
28246         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
28247
28248 2002-06-26  Paul Eggert  <eggert@twinsun.com>
28249
28250         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
28251         New macro.  Use it uniformly instead of
28252         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
28253         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
28254         reported by Vin Shelton.
28255
28256 2002-06-22  Paul Eggert  <eggert@twinsun.com>
28257
28258         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
28259         Do not assume SA_SIGINFO behavior.
28260         Bug reported by Jim Meyering on NetBSD 1.5.2.
28261
28262 2002-06-22  Jim Meyering  <meyering@lucent.com>
28263
28264         * m4/c-stack.m4: New file, from diffutils-2.8.2.
28265         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
28266
28267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
28268         now that configure.ac uses AC_GNU_SOURCE.
28269         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
28270         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
28271
28272         Update to latest tools.  Suggestions from Paul Eggert.
28273         * m4/stdbool.m4: New file, from diffutils-2.8.2.
28274         * m4/gnu-source.m4: Update from diffutils-2.8.2.
28275         * m4/fnmatch.m4: Likewise.
28276         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
28277         to AC_HEADER_STDBOOL
28278
28279 2002-06-22  Jim Meyering  <meyering@lucent.com>
28280
28281         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
28282         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
28283
28284 2002-06-22  Jim Meyering  <meyering@lucent.com>
28285
28286         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
28287
28288         * lib/exitfail.c, exitfail.h: Likewise.
28289         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
28290
28291         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
28292         of fnmatch.h.
28293         (EXTRA_DIST): Add fnmatch_loop.c.
28294         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
28295
28296         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
28297         * lib/fnmatch.c: Update from diffutils-2.8.2.
28298         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
28299         * lib/fnmatch.h: Remove file.
28300
28301 2002-06-21  Jim Meyering  <meyering@lucent.com>
28302
28303         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
28304         * m4/mbrtowc.m4: Likewise.
28305
28306         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
28307         * m4/mbswidth.m4: Reflect name change:
28308         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
28309         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28310
28311         * m4/lib-link.m4: Update from gettext-0.11.2.
28312         * m4/gettext.m4: Likewise.
28313
28314         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
28315         From Alfred M. Szmidt.
28316
28317 2002-06-18  Paul Eggert  <eggert@twinsun.com>
28318
28319         * lib/file-type.h: Report an error if neither S_ISREG nor
28320         S_IFREG is defined, instead of using a test specific to glibc
28321         2.2.  This should be safe, since POSIX requires S_ISREG and
28322         Unix Version 7 had S_IFREG.  We don't need to check for
28323         <sys/types.h> since we don't use any symbols that it defines.
28324
28325 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
28326
28327         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
28328         $@-t, so that each temporary file name is unique and valid in the first
28329         8 characters, for operation under DOS.
28330
28331 2002-06-15  Paul Eggert  <eggert@twinsun.com>
28332
28333         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
28334
28335 2002-06-15  Jim Meyering  <meyering@lucent.com>
28336
28337         Work even with DJGPP 2.03, which lacks support for symlinks.
28338         From Richard Dawe.
28339         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
28340         is defined.
28341         * lib/lchown.c (S_ISLNK): Likewise.
28342
28343 2002-06-15  Jim Meyering  <meyering@lucent.com>
28344
28345         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
28346         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
28347         have been included before this file.
28348
28349 2002-06-14  Jim Meyering  <meyering@lucent.com>
28350
28351         * lib/file-type.h: Use the version from diffutils-2.8.2.
28352         * lib/file-type.c: Likewise.
28353
28354 2002-06-07  Jim Meyering  <meyering@lucent.com>
28355
28356         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
28357         They're needed at least for NetBSD 1.5.2.
28358         ($statxfs_includes): Include those same headers.
28359         ($statxfs_includes): Include sys/vfs.h if available.
28360         ($statxfs_includes): Likewise for sys/statvfs.h.
28361         Check for the following members in both structs statfs and statvfs:
28362         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
28363
28364 2002-06-01  Jim Meyering  <meyering@lucent.com>
28365
28366         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
28367         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
28368
28369 2002-05-28  Jim Meyering  <meyering@lucent.com>
28370
28371         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
28372         Reported by Volker Borchert.
28373
28374 2002-05-27  Jim Meyering  <meyering@lucent.com>
28375
28376         Fix a problem seen only on nonconforming systems whereby ls.c's
28377         use of localtime, and then of gettimeofday would cause trouble:
28378         the localtime call used to initialize rpl_gettimeofday's save
28379         mechanism would clobber ls's current local time information so
28380         that in any long listing the first file would always be listed
28381         with date 1970-01-01.  Analysis by Volker Borchert.
28382
28383         * lib/gettimeofday.c (localtime): Undefine.
28384         (rpl_localtime): New function.
28385
28386 2002-05-27  Jim Meyering  <meyering@lucent.com>
28387
28388         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
28389         localtime.
28390
28391         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
28392         use the replacement function; it wouldn't resolve at link time.
28393         Reported by Volker Borchert.
28394
28395 2002-05-22  Jim Meyering  <meyering@lucent.com>
28396
28397         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
28398         file-type.h.
28399         * lib/file-type.h: New file.
28400         * lib/file-type.c (file_type): New file/function.  Extracted from
28401         diffutils.
28402
28403 2002-04-30  Jim Meyering  <meyering@lucent.com>
28404
28405         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
28406
28407 2002-04-29  Paul Eggert  <eggert@twinsun.com>
28408
28409         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
28410
28411 2002-04-29  Paul Eggert  <eggert@twinsun.com>
28412
28413         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
28414         Do not check for alloca.h (no longer used) or stdbool.h (was never
28415         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
28416
28417 2002-04-29  Paul Eggert  <eggert@twinsun.com>
28418
28419         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
28420
28421 2002-04-29  Jim Meyering  <meyering@lucent.com>
28422
28423         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
28424         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
28425         Use AC_FUNC_STRNLEN here instead.
28426
28427         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
28428         With autoconf-2.53a, it's part of AC_PROG_CC.
28429
28430 2002-04-28  Paul Eggert  <eggert@twinsun.com>
28431
28432         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
28433         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
28434
28435 2002-04-28  Paul Eggert  <eggert@twinsun.com>
28436
28437         * lib/sig2str.h, lib/sig2str.c: New files.
28438         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
28439
28440 2002-04-28  Paul Eggert  <eggert@twinsun.com>
28441
28442         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
28443         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
28444         of 127, since 64 is the largest conceivable number for ancient
28445         nonstandard hosts.
28446         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
28447
28448 2002-04-28  Jim Meyering  <meyering@lucent.com>
28449
28450         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
28451
28452 2002-04-24  Jim Meyering  <meyering@lucent.com>
28453
28454         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
28455         (jm_PREREQ): Use it.
28456
28457         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
28458         mach/mach.h fcntl.h.
28459         Check for this function: setlocale.
28460
28461 2002-04-24  Jim Meyering  <meyering@lucent.com>
28462
28463         * lib/gettext.h: New file, from Gettext.
28464         * lib/Makefile.am (INCLUDES): Remove -I../intl.
28465         (libfetish_a_SOURCES): Add gettext.h.
28466
28467 2002-04-16  Jim Meyering  <meyering@lucent.com>
28468
28469         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
28470         ut_pid, ut_id, ut_exit.
28471
28472 2002-04-16  Jim Meyering  <meyering@lucent.com>
28473
28474         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
28475         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
28476         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
28477
28478 2002-04-12  Jim Meyering  <meyering@lucent.com>
28479
28480         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
28481         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
28482         existence of the getmntinfo function.  Needed for Darwin 5.3.
28483
28484         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
28485         This is necessary at least on Darwin 5.3.
28486
28487         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
28488         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
28489         strnlen.o in the library, and that makes some versions of ranlib
28490         object.
28491
28492 2002-04-12  Jim Meyering  <meyering@lucent.com>
28493
28494         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
28495
28496 2002-04-09  Jim Meyering  <meyering@lucent.com>
28497
28498         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
28499         to be more precise.  Rather than saying we're checking whether the
28500         function `works', say what we're testing.
28501         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
28502         Reported by Bruno Haible.
28503
28504 2002-03-10  Jim Meyering  <meyering@lucent.com>
28505
28506         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
28507         Suggestion from Santiago Vila.
28508
28509 2002-03-08  Jim Meyering  <meyering@lucent.com>
28510
28511         * lib/rename.c: Mention that this wrapper is needed also on
28512         mips-dec-ultrix4.4 systems.
28513
28514 2002-03-02  Jim Meyering  <meyering@lucent.com>
28515
28516         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
28517         not HAVE_CLOCK_SETTIME.
28518
28519 2002-02-27  Paul Eggert  <eggert@twinsun.com>
28520
28521         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
28522         Check for clock_settime.
28523
28524 2002-02-27  Paul Eggert  <eggert@twinsun.com>
28525
28526         * lib/nanosleep.h: Rename to....
28527         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
28528
28529         * lib/gettime.c: New file.
28530         * lib/settime.c: New file.
28531         * lib/stime.c: Remove.
28532
28533         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
28534         timespec.h.  Remove nanosleep.h.
28535
28536 2002-02-25  Paul Eggert  <eggert@twinsun.com>
28537
28538         * m4/acl.m4: New file.
28539         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
28540         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
28541
28542 2002-02-25  Paul Eggert  <eggert@twinsun.com>
28543
28544         * lib/acl.c, lib/acl.h: New files.
28545         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
28546
28547 2002-02-24  Jim Meyering  <meyering@lucent.com>
28548
28549         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
28550         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
28551         cause trouble.  Reported by Nelson Beebe.
28552
28553 2002-02-23  Paul Eggert  <eggert@twinsun.com>
28554
28555         * lib/path-concat.c (xpath_concat): Reorder code to pacify
28556         compilers that don't know that xalloc_die never returns.
28557
28558 2002-02-20  Jim Meyering  <meyering@lucent.com>
28559
28560         * lib/getdate.c: Regenerate using bison-1.33.
28561
28562 2002-02-17  Jim Meyering  <meyering@lucent.com>
28563
28564         * config/config.guess (main): Don't use `head -1'; it's no longer
28565         portable. Use `sed 1q' instead.
28566
28567 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
28568
28569         * m4/codeset.m4: Upgrade to gettext-0.11.
28570         * m4/gettext.m4: Upgrade to gettext-0.11.
28571         * m4/glibc21.m4: Upgrade to gettext-0.11.
28572         * m4/iconv.m4: Upgrade to gettext-0.11.
28573         * m4/isc-posix.m4: Upgrade to gettext-0.11.
28574         * m4/lcmessage.m4: Upgrade to gettext-0.11.
28575         * m4/lib-ld.m4: New file, from gettext-0.11.
28576         * m4/lib-link.m4: New file, from gettext-0.11.
28577         * m4/lib-prefix.m4: New file, from gettext-0.11.
28578         * m4/progtest.m4: Upgrade to gettext-0.11.
28579
28580 2002-02-15  Paul Eggert  <eggert@twinsun.com>
28581
28582         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
28583         (jm_PREREQ): Use it.
28584
28585 2002-02-15  Paul Eggert  <eggert@twinsun.com>
28586
28587         * lib/posixver.c, lib/posixver.h: New files.
28588         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
28589
28590 2002-02-02  Paul Eggert  <eggert@twinsun.com>
28591             Bruno Haible  <bruno@clisp.org>
28592
28593         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
28594         (fwrite_success_callback): New declaration.
28595         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
28596         print_unicode_char. Call failure callback instead of error.
28597         (fwrite_success_callback): New function.
28598         (exit_failure_callback): New function.
28599         (fallback_failure_callback): New function.
28600         (print_unicode_char): Call unicode_to_mb.
28601
28602 2002-01-26  Jim Meyering  <meyering@lucent.com>
28603
28604         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
28605         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
28606
28607 2002-01-26  Jim Meyering  <meyering@lucent.com>
28608
28609         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
28610
28611 2002-01-22  Paul Eggert  <eggert@twinsun.com>
28612
28613         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
28614
28615 2002-01-22  Jim Meyering  <meyering@lucent.com>
28616
28617         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
28618         Otherwise, some versions of automake would omit the rule that makes
28619         Makefile from Makefile.in.
28620
28621 2002-01-21  Paul Eggert  <eggert@twinsun.com>
28622
28623         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
28624         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
28625         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
28626         (memcoll): Set errno to zero if there is no error.
28627
28628         * lib/quotearg.c (quotearg_buffer_restyled):
28629         Fix bug with quoting buffers containing NUL when backslashing escapes.
28630         This bug was exposed by the other changes in this patch.
28631         (quotearg_n_options): New arg ARGSIZE.
28632         All callers changed.
28633         (quoting_options_from_style): New function.
28634         (quotearg_n_style): Use it.
28635         (quotearg_n_style_mem): New function.
28636
28637         * lib/quotearg.h (quotearg_n_style_mem): New function.
28638
28639 2002-01-19  Jim Meyering  <meyering@lucent.com>
28640
28641         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
28642         Remove useless quotes: DF_PROG="df".
28643         * m4/strnlen.m4: New file.
28644
28645 2002-01-16  Paul Eggert  <eggert@twinsun.com>
28646
28647         * lib/backupfile.c (ISDIGIT): Comment fix.
28648         * lib/getdate.y (ISDIGIT): Likewise.
28649         * lib/posixtm.c (ISDIGIT, year): Likewise.
28650         * lib/strverscmp.c (ISDIGIT): Likewise.
28651         * lib/userspec.c (ISDIGIT): Likewise.
28652
28653 2002-01-16  Jim Meyering  <meyering@lucent.com>
28654
28655         * lib/getdate.y: Add three semicolons, each just before a closing
28656         brace. Bison (as of version 1.31) no longer papers over that mistake.
28657
28658 2002-01-05  Jim Meyering  <meyering@lucent.com>
28659
28660         * lib/version-etc.c (version_etc_copyright): Update copyright year.
28661
28662 2001-12-19  Paul Eggert  <eggert@twinsun.com>
28663
28664         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
28665         not silently exit merely because the output buffer happens to
28666         have nothing pending.
28667
28668 2001-12-18  Paul Eggert  <eggert@twinsun.com>
28669
28670         See the big note in ../ChangeLog.
28671         * lib/human.c (suffixes): Prefer K to k for 1024.
28672         (generate_suffix_backwards): New function.
28673         (human_readable_inexact): Use it.
28674         * lib/xstrtol.c (__xstrtol): If there is no number but there
28675         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
28676         Accept 'K' as well as 'k'.
28677
28678 2001-12-15  Jim Meyering  <meyering@lucent.com>
28679
28680         * lib/regex.h (__restrict_arr): Update from libc.
28681
28682         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
28683         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
28684         (STREQ): Define.
28685
28686 2001-12-14  Jim Meyering  <meyering@lucent.com>
28687
28688         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
28689         Suggestion from Bruno Haible.
28690
28691 2001-12-10  Jim Meyering  <meyering@lucent.com>
28692
28693         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
28694         xrealloc, Instead, include "xalloc.h".
28695         (initbuffer): Don't cast xmalloc return value to char*.
28696         (readline): Reword comment.
28697         Don't cast xrealloc return value to char*
28698         Return NULL, not 0.
28699
28700 2001-12-09  Jim Meyering  <meyering@lucent.com>
28701
28702         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
28703         about `signed and unsigned type in conditional expression'.
28704         * lib/posixtm.c (posix_time_parse): Likewise.
28705
28706         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
28707
28708         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
28709         to avoid a pedantic warning.
28710
28711         * lib/getstr.c: Don't include assert.h.
28712         (getstr): Remove warning-evoking assertions.
28713         Return -1 if offset parameter is out of bounds.
28714         Change the type of a local from int to size_t.
28715
28716         * lib/strftime.c (my_strftime_localtime_r): Include this function
28717         definition in the `#if ! HAVE_TM_GMTOFF' block.
28718
28719         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
28720         Include xalloc.h instead.
28721
28722 2001-12-02  Jim Meyering  <meyering@lucent.com>
28723
28724         * lib/tempname.c: Don't declare getenv, thus reverting the change of
28725         2001-11-18.  It's no longer necessary, now that stdlib.h is always
28726         included.
28727
28728         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
28729         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
28730
28731 2001-11-30  Akim Demaille  <akim@epita.fr>
28732
28733         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
28734         before being defined.
28735
28736 2001-11-27  Paul Eggert  <eggert@twinsun.com>
28737
28738         * lib/quotearg.h (quotearg_n, quotearg_n_style):
28739         First arg is int, not unsigned.
28740         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
28741         (SIZE_MAX, UINT_MAX): New macros.
28742         (quotearg_n_options): Abort if N is negative.
28743         Avoid overflow check on hosts where size_t is 64 bits and int
28744         is 32 bits, as overflow is impossible there.
28745         Fix off-by-one typo that caused unnecessary reallocation.
28746
28747 2001-11-27  Jim Meyering  <meyering@lucent.com>
28748
28749         * lib/tempname.c: Merge with version from libc.
28750         * lib/regex.c: Likewise.
28751
28752         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
28753         systems for which STDC_HEADERS is 0, it was not included, resulting in
28754         a warning about an integer-to-pointer conversion problem with getenv.
28755         Reported by Volker Borchert.
28756
28757 2001-11-26  Jim Meyering  <meyering@lucent.com>
28758
28759         * lib/gtod.h: Remove file.
28760         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
28761         * lib/gettimeofday.c: Don't include gtod.h.
28762         (GTOD_init): Remove function.
28763         (rpl_gettimeofday): Do its job here instead, rather than aborting.
28764         Suggestion from Volker Borchert.
28765
28766 2001-11-23  Jim Meyering  <meyering@lucent.com>
28767
28768         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
28769         it.
28770         * lib/hash.c (struct hash_table): Define it here instead.
28771
28772 2001-11-22  Jim Meyering  <meyering@lucent.com>
28773
28774         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
28775
28776 2001-11-20  Jim Meyering  <meyering@lucent.com>
28777
28778         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
28779         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
28780
28781 2001-11-19  Jim Meyering  <meyering@lucent.com>
28782
28783         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
28784         directory.  Use "conftestXXXXXX" as the template.
28785         Suggestion from Paul Eggert.
28786
28787         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
28788         immediately, so the test doesn't mistakenly hit the max-open-files
28789         limit.
28790
28791 2001-11-18  Paul Eggert  <eggert@twinsun.com>
28792
28793         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
28794         (TEMPORARIES): New macro.
28795         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
28796         removes an artificial limitation (e.g. HP-UX 10.20, where
28797         TMP_MAX is 17576).
28798
28799 2001-11-18  Jim Meyering  <meyering@lucent.com>
28800
28801         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
28802
28803 2001-11-18  Jim Meyering  <meyering@lucent.com>
28804
28805         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
28806         on SunOS 4.
28807
28808         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
28809         files will be created before anything else.
28810
28811 2001-11-17  Paul Eggert  <eggert@twinsun.com>
28812
28813         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
28814         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
28815
28816 2001-11-17  Jim Meyering  <meyering@lucent.com>
28817
28818         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
28819         Prompted by a report from Bob Proulx.
28820
28821         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
28822         Instead, require UTILS_FUNC_MKSTEMP.
28823
28824 2001-11-17  Jim Meyering  <meyering@lucent.com>
28825
28826         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
28827         Now, that's done as part of AC_FUNC_STRTOD.
28828
28829 2001-11-17  Jim Meyering  <meyering@lucent.com>
28830
28831         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
28832         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
28833         rather than group writable.  Patch by Juan F. Codagnone.
28834
28835         * lib/readtokens.c: Remove explicit declarations of xmalloc and
28836         xrealloc, Instead, include "xalloc.h".
28837
28838         * lib/mountlist.c: Include unlocked-io.h after all system headers.
28839         Remove explicit declarations of xmalloc, xrealloc,
28840         and xstrdup.  Instead, include "xalloc.h".
28841
28842         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
28843         unlocked-io.h.
28844         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
28845         Likewise.
28846         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
28847
28848         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
28849         Reported by Padraig Brady.
28850
28851         * lib/mkstemp.c: #undef mkstemp.
28852         Include config.h.
28853         (rpl_mkstemp): Rename from mkstemp.
28854         Protoize.
28855
28856 2001-11-16  Jim Meyering  <meyering@lucent.com>
28857
28858         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
28859         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
28860         determine the amount of total physical memory, use pstat_getstatic.
28861         HPUX-11 doesn't define _SC_PHYS_PAGES.
28862         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
28863         If sysconf couldn't be used to determine the amount of available
28864         physical memory, use both pstat_getstatic and pstat_getdynamic.
28865         Based on a patch from Bob Proulx.
28866
28867 2001-11-10  Jim Meyering  <meyering@lucent.com>
28868
28869         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
28870         (jm_PREREQ): Use it.
28871
28872 2001-11-09  Jim Meyering  <meyering@lucent.com>
28873
28874         * m4/jm-macros.m4: Require autoconf-2.52f.
28875         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
28876         Use these AC_-prefixed names, not the AM_-prefixed ones.
28877
28878         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
28879
28880 2001-11-05  Jim Meyering  <meyering@lucent.com>
28881
28882         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
28883
28884 2001-11-04  Jim Meyering  <meyering@lucent.com>
28885
28886         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
28887         $DEFS.
28888
28889 2001-11-03  Jim Meyering  <meyering@lucent.com>
28890
28891         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
28892         of AC_DEFUN.
28893
28894         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
28895         know the name of the variable in the macro definition.
28896
28897 2001-11-03  Jim Meyering  <meyering@lucent.com>
28898
28899         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
28900         in argmatch_to_argument call.
28901
28902         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
28903         argument.
28904
28905         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
28906         e.g., a fault due to an attempt to free a NULL pointer.
28907
28908 2001-11-01  Jim Meyering  <meyering@lucent.com>
28909
28910         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
28911         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
28912
28913 2001-11-01  Jim Meyering  <meyering@lucent.com>
28914
28915         * lib/dirfd.c, lib/dirfd.h: New files.
28916         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
28917
28918         * lib/hash.c (hash_print) [TESTING]: Clean up.
28919
28920 2001-10-22  Paul Eggert  <eggert@twinsun.com>
28921
28922         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
28923         to avoid a warning if -Wall.
28924
28925 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
28926
28927         * README: New file
28928         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
28929         (per RMS's instructions, this is now the canonical source)
28930         * lgpl/, gpl/: New directories.
28931
28932 2001-10-21  Paul Eggert  <eggert@twinsun.com>
28933
28934         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
28935
28936 2001-10-21  Jim Meyering  <meyering@lucent.com>
28937
28938         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
28939         this code would end up calling gettext even in packages built
28940         with --disable-nls.
28941         * lib/getopt.c (_): Likewise.
28942         * lib/regex.c (_): Likewise.
28943
28944 2001-10-20  Paul Eggert  <eggert@twinsun.com>
28945
28946         * m4/error.m4 (jm_PREREQ_ERROR):
28947         Do not invoke AC_CHECK_FUNCS with strerror_r, as
28948         AC_FUNC_STRERROR_R does that.
28949         Check for strerror declaration.
28950
28951         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
28952         are supposed to have them these days.
28953         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
28954         Merge changes from latest Autoconf CVS.
28955         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
28956         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
28957         POSIX decided to standardize on the int flavor of strerror_r.
28958
28959 2001-10-20  Paul Eggert  <eggert@twinsun.com>
28960
28961         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
28962         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
28963         Use strerror_r that is only a macro, even if it is not a function.
28964         (strerror): Check for HAVE_DECL_STRERROR before declaring.
28965         (private_strerror): Use prototypes, not old-style function definition.
28966         (print_errno_message): New function.
28967         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
28968         char*-flavored one.
28969         (error_tail, error, error_at_line): Use it.
28970
28971 2001-10-11  Jim Meyering  <meyering@lucent.com>
28972
28973         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
28974         and quote_n (1, ... to avoid clobbering a buffer.
28975
28976 2001-10-05  Jim Meyering  <meyering@lucent.com>
28977
28978         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
28979         hash-pjw.h.
28980         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
28981         * lib/hash-pjw.h: New file.
28982
28983 2001-09-30  Jim Meyering  <meyering@lucent.com>
28984
28985         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
28986         `struct fsstat' has the `f_fstypename' member.
28987         Use that to define FS_TYPE, which is now used to make
28988         the getfsstat link test tighter.
28989
28990 2001-09-30  Jim Meyering  <meyering@lucent.com>
28991
28992         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
28993         Include <sys/ucred.h>, for Apple Darwin.
28994         Include sys/mount.h and sys/fs_types.h only if available.
28995         (FS_TYPE): Define.
28996         (read_filesystem_list): Use FS_TYPE.
28997
28998 2001-09-29  Paul Eggert  <eggert@twinsun.com>
28999
29000         * lib/exclude.c (excluded_filename): 0 -> false, since it's
29001         a boolean context.
29002
29003 2001-09-29  Jim Meyering  <meyering@lucent.com>
29004
29005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29006         [one-argument getmntent function]): Include stdio.h before mntent.h.
29007         SunOS 4.1.x needs it for the declaration of `FILE'.
29008         Patch by Volker Borchert.
29009
29010         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29011         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
29012         sys/fs_types.h, and make the link-test for getfsstat guard #include
29013         directives with appropriate #if HAVE_*_H tests so that we can
29014         detect getfsstat on Apple Darwin1.3.7 systems.
29015         Reported by Nelson Beebe.
29016         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
29017
29018 2001-09-28  Paul Eggert  <eggert@twinsun.com>
29019
29020         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29021         #defines strtoimax.  Also treat the other strto* functions
29022         like strtoimax.
29023
29024         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29025         Check for strtoul and strtoumax,
29026         as those declarations are made even in the signed case.
29027         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
29028         Likewise, for strtol and strtoimax.
29029
29030 2001-09-28  Paul Eggert  <eggert@twinsun.com>
29031
29032         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29033         #defines strtoimax.  Also treat the other strto* functions
29034         like strtoimax.
29035
29036         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
29037         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
29038         (strtoimax, strtoumax): Do not declare if already defined as a macro.
29039
29040 2001-09-26  Jim Meyering  <meyering@lucent.com>
29041
29042         Most macros in unlocked-io.h had the wrong number of arguments.
29043         * lib/gen-uio: New script.
29044         (USE_UNLOCKED_IO): Define to 1 if not already defined.
29045         * lib/unlocked-io.hin: Remove file.
29046         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
29047         rather than trying to embed it here.
29048         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
29049         Reported by Padraig Brady.
29050
29051 2001-09-25  Volker Borchert  <bt@teknon.de>
29052
29053         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
29054         `result'.
29055
29056 2001-09-24  Jim Meyering  <meyering@lucent.com>
29057
29058         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
29059
29060 2001-09-23  Jim Meyering  <meyering@lucent.com>
29061
29062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
29063         instead of the mere test for existence of mntent.h.  The latter
29064         would get a false-positive on AIX 3.4 systems.
29065         In the outer getmntent if-block, don't die if neither of the getmntent
29066         tests succeeds.  Instead, just fall through and continue with the
29067         remaining tests.
29068
29069 2001-09-23  Jim Meyering  <meyering@lucent.com>
29070
29071         * lib/mountlist.c: Remove useless parentheses in #if directives.
29072         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
29073         the deprecated MOUNTED symbol is no longer defined in mntent.h.
29074
29075 2001-09-22  Jim Meyering  <meyering@lucent.com>
29076
29077         * m4/gettext.m4: New file.  From gettext.
29078         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
29079         * m4/progtest.m4: Likewise
29080         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
29081         * m4/glibc21.m4: Likewise.
29082
29083         * m4/libintl.m4: Remove.  No longer used.
29084
29085 2001-09-22  Jim Meyering  <meyering@lucent.com>
29086
29087         * lib/localcharset.c: Update from latest gettext.
29088         * lib/config.charset: Likewise.
29089
29090 2001-09-20  Jim Meyering  <meyering@lucent.com>
29091
29092         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
29093         strtoimax.
29094         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
29095         strtoumax.
29096
29097 2001-09-20  Jim Meyering  <meyering@lucent.com>
29098
29099         * lib/xstrtol.c (strtoimax): Guard declaration with
29100         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
29101         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
29102         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
29103         (strtoumax): Likewise, for completeness (it wasn't necessary).
29104
29105 2001-09-17  Paul Eggert  <eggert@twinsun.com>
29106
29107         * lib/strtoimax.c (HAVE_LONG_LONG):
29108         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
29109         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
29110         to work around bug in IBM C compiler.
29111
29112 2001-09-17  Jim Meyering  <meyering@lucent.com>
29113
29114         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
29115         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
29116         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
29117         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
29118         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
29119         whenever the right hand side need not be expanded by the shell.
29120
29121 2001-09-16  Paul Eggert  <eggert@twinsun.com>
29122
29123         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
29124         library.  It's not correct, as some older glibcs are buggy.
29125         fnmatch wasn't fixed until glibc 2.2.
29126
29127         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
29128         special shell magic here.
29129
29130 2001-09-16  Jim Meyering  <meyering@lucent.com>
29131
29132         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
29133         * m4/jm-macros.m4: Require it.
29134
29135 2001-09-16  Jim Meyering  <meyering@lucent.com>
29136
29137         * lib/mkdir.c: New file.
29138
29139 2001-09-15  Jim Meyering  <meyering@lucent.com>
29140
29141         * m4/jm-macros.m4: Check for help2man.
29142
29143 2001-09-11  Jim Meyering  <meyering@lucent.com>
29144
29145         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
29146         The body, by Paul Eggert, was moved here from configure.in.
29147         * m4/jm-macros.m4: Require UTILS_HOST_OS.
29148
29149 2001-09-04  Paul Eggert  <eggert@twinsun.com>
29150
29151         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
29152         (jm_PREREQ): Use it.
29153
29154 2001-09-04  Paul Eggert  <eggert@twinsun.com>
29155
29156         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
29157         Use ssize_t, not int, to store result of readlink.
29158         Check for ssize_t overflow as well as size_t overflow,
29159         as POSIX says the result of readlink is implementation-defined
29160         when ssize_t overflows.
29161         Remove unnecessary cast to char*.
29162         Use free+malloc instead of realloc, as the storage doesn't need
29163         to be preserved and it's clearer and can be more efficient that way.
29164         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
29165         * lib/xreadlink.h (xreadlink): Update prototype.
29166
29167 2001-09-04  Paul Eggert  <eggert@twinsun.com>
29168
29169         * lib/xgetcwd.c: Revert some of the previous change; intead,
29170         fix the HAVE_GETCWD_NULL code to behave more like the
29171         !HAVE_GETCWD_NULL code used to.
29172
29173         Include "xalloc.h".
29174         (xgetcwd): Do not return NULL when memory is exhausted; instead,
29175         invoke xalloc_die.
29176
29177 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29178
29179         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
29180         sys/param.h, as pathmax.h includes them.
29181
29182 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29183
29184         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
29185         (jm_PREREQ_XGETCWD): New macro.
29186
29187         * m4/getcwd.m4: New file.
29188
29189 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29190
29191         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
29192         like the HAVE_GETCWD_NULL code.
29193         Include pathmax.h if not HAVE_GETCWD.
29194         Do not include xalloc.h.
29195         (INITIAL_BUFFER_SIZE): New symbol.
29196         Do not use xmalloc / xrealloc, since the caller is responsible for
29197         handling errors.  Preserve errno around `free' during failure.
29198         Do not overrun buffer when using getwd.
29199
29200 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29201
29202         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
29203         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
29204         getcwd (NULL, 0).
29205
29206 2001-09-03  Paul Eggert  <eggert@twinsun.com>
29207
29208         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
29209         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
29210         spotted by Jim Meyering.
29211
29212 2001-09-03  Jim Meyering  <meyering@lucent.com>
29213
29214         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
29215         failure.
29216
29217 2001-09-02  Jim Meyering  <meyering@lucent.com>
29218
29219         * lib/error.c: Update from GNU libc.
29220
29221 2001-09-01  Jim Meyering  <meyering@lucent.com>
29222
29223         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
29224         Used by df.
29225
29226 2001-09-01  Jim Meyering  <meyering@lucent.com>
29227
29228         * lib/xreadlink.c: New file.
29229         * lib/xreadlink.h: New file.
29230         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
29231         xreadlink.h.
29232
29233         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
29234         doesn't conflict with sparc Solaris 7's definition in
29235         /usr/include/sys/int_types.h.
29236
29237         * lib/exclude.c: Use `""', not `<>' to #include non-system header
29238         files.
29239         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
29240         and strncasecmp as r-values.  Unixware didn't have declarations.
29241
29242 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29243
29244         * lib/xstrtol.h: Add copyright notice.
29245         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
29246         LONGINT_INVALID_SUFFIX_CHAR.
29247
29248 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29249
29250         * lib/xstrtol.c (strtoimax): New decl.
29251
29252 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29253
29254         * lib/xgetcwd.c: Don't include pathmax.h.
29255         Include stdlib.h and unistd.h if available.
29256         Include xalloc.h.
29257         (xmalloc, xstrdup, free): Remove decls.
29258         (xgetcwd): Don't assume sizes fit in unsigned.
29259         Check for overflow when computing sizes.
29260         Simplify reallocation code.
29261
29262 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29263
29264         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
29265         a directory's st_size can have an arbitrary value, so the old
29266         usage could waste an arbitrary amount of memory.  All uses
29267         changed.
29268         * lib/savedir.h: Update prototype.
29269
29270 2001-08-31  Paul Eggert  <eggert@twinsun.com>
29271
29272         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
29273
29274         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
29275         old strtoimax.c.
29276
29277         Also, make the following further changes to make this file's
29278         configuration more similar to that of strtol.c:
29279         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
29280         (strtoumax, uintmax_t, strtoull, strtol): Remove.
29281         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
29282         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
29283         changed to signed values.
29284
29285         And make the following changes as well:
29286         Fix copyright notice, as 1999 was missing.
29287         (verify): New macro.
29288         (strtoimax): Check sizes at compile-time, not run-time.
29289         Prefer strtol to strtoll if both work.
29290         (main): Remove; it was not that useful and was a pain to maintain.
29291
29292         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
29293
29294 2001-08-31  Jim Meyering  <meyering@lucent.com>
29295
29296         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
29297         Use an initial, malloc'd, buffer of length 128 rather than
29298         a statically allocated one of length 1024.
29299
29300 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29301
29302         Simplify code, partly by assuming autoconf 2.52 semantics.
29303
29304         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
29305
29306         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
29307         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
29308         All uses removed.
29309         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
29310         Move AC_REQUIRE to next-to-top level, to avoid confusion.
29311         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
29312         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
29313         jm_AC_HEADER_INTTYPES_H.
29314         * m4/jm-macros.m4 (jm_MACROS): Likewise.
29315
29316         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
29317
29318         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29319         Quote first arg of AC_DEFUN.
29320         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
29321         since they are needed to parse the include file even if we need
29322         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
29323         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
29324         but with opposite signedness.
29325
29326 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29327
29328         Merge 'exclude' changes from tar 1.13.22.
29329         This fixes one or two unlikely storage allocation overflow bugs,
29330         but doesn't change user-visible behavior otherwise.
29331
29332 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29333
29334         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
29335         (jm_PREREQ_EXCLUDE): New macro.
29336
29337 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29338
29339         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
29340         tm to be declared.
29341
29342 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29343
29344         * lib/hash.c: Remove '2001' from copyright notice.
29345
29346 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29347
29348         * lib/full-write.h: New file.
29349         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
29350         * lib/full-write.c: Correct credits, as cccp.c no longer
29351         exists and anyway it was so heavily changed from the old cccp
29352         code as to be unrecognizable.  Include full-write.h.
29353         (full_write) Return size_t, with short writes meaning failure.
29354         All callers changed.  This fixes a bug with large buffers
29355         on 64-bit hosts.
29356         * lib/utime.c: Include full-write.h.
29357
29358 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29359
29360         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
29361         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
29362         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
29363         Include if available.
29364         (<xalloc.h>): Include
29365         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
29366         (verify): New macro.  Use it to verify that EXCLUDE macros do not
29367         collide with FNM macros.
29368         (struct patopts): New struct.
29369         (struct exclude): Use it, as exclude patterns now come with options.
29370         (new_exclude): Support above changes.
29371         (new_exclude, add_exclude_file):
29372         Initial size must now be a power of two to simplify overflow checking.
29373         (free_exclude, fnmatch_no_wildcards): New function.
29374         (excluded_filename): No longer requires options arg, as the options
29375         are determined by add_exclude.  Now returns bool, not int.
29376         (excluded_filename, add_exclude):
29377         Add support for the fancy new exclusion options.
29378         (add_exclude, add_exclude_file): Now takes int options arg.
29379         Check for arithmetic overflow when computing sizes.
29380         (add_exclude_file): xrealloc might modify errno, so don't
29381         realloc until after errno might be used.
29382
29383         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
29384         New macros.
29385         (free_exclude): New decl.
29386         (add_exclude, add_exclude_file): Now takes int options arg.
29387         (excluded_filename): No longer requires options arg, as the options
29388         are determined by add_exclude.  Now returns bool, not int.
29389
29390 2001-08-30  Paul Eggert  <eggert@twinsun.com>
29391
29392         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
29393
29394 2001-08-27  Jim Meyering  <meyering@lucent.com>
29395
29396         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
29397
29398         * lib/version-etc.c (N_): Remove definition.
29399         Revert most of last change.
29400         Instead, simply don't mark the `Copyright...' string for translation.
29401         Based on advice from Paul Eggert.
29402
29403         * lib/strtoxmax.c: Tweak comment.
29404
29405 2001-08-26  Jim Meyering  <meyering@lucent.com>
29406
29407         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
29408
29409         * m4/xstrtoimax.m4: New file.
29410         * m4/xstrtoumax.m4: Add comments explaining why we
29411         AC_REPLACE_FUNCS(strtol).
29412
29413 2001-08-26  Jim Meyering  <meyering@lucent.com>
29414
29415         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
29416         of copyright with `%s' so translators don't get an untranslated
29417         message in 2002.
29418         (COPYRIGHT_YEAR): Define.
29419         (version_etc): Use fprintf rather than fputs.
29420         Suggestion from Ulrich Drepper.
29421
29422         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
29423
29424         * lib/strtoll.c: New file, from GNU libc.
29425         * lib/xstrtoimax.c: New file.
29426
29427         * lib/xstrtol.h: Add xstrtoimax.
29428         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
29429         * lib/strtoimax.c: New file.  Likewise, but first define
29430         STRTOUXMAX_SIGNED.
29431
29432         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
29433         ...
29434         * lib/strtoxmax.c: ... then renamed to this.
29435
29436 2001-08-18  Paul Eggert  <eggert@twinsun.com>
29437
29438         * m4/inttypes.m4: Add AC_PREREQ(2.13).
29439         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
29440         (jm_AC_TYPE_INTMAX_T): New macro.
29441         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
29442
29443         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
29444
29445         * m4/longlong.m4: Renamed from ulonglong.m4.
29446         * m4/inttypes.m4: Renamed from inttypes_h.m4.
29447         * m4/uintmax_t.m4: Removed.
29448
29449 2001-08-13  Paul Eggert  <eggert@twinsun.com>
29450
29451         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
29452         Port to Solaris 8, where 'sed' requires a space after the 'r'
29453         command, and where sh dislikes "$/".  Clean up the spacing a bit.
29454         Redirect output to $tmp just once.
29455
29456 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
29457
29458         * lib/addext.c (<errno.h>): Include.
29459         (errno): Declare if not defined.
29460         (addext): Work correctly when pathconf returns -1 and leaves
29461         errno alone because there is no limit.  Also, work even if
29462         pathconf returns a value greater than SIZE_MAX.
29463
29464 2001-08-12  Jim Meyering  <meyering@lucent.com>
29465
29466         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
29467         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
29468         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
29469         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
29470         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
29471         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
29472         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
29473         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
29474         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
29475         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
29476         utime.m4, utimes.m4, xstrtoumax.m4:
29477         Quote the first argument in each use of AC_DEFUN.
29478
29479 2001-08-12  Jim Meyering  <meyering@lucent.com>
29480
29481         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
29482         Simply `return getcwd (NULL, 0);'.
29483         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
29484         Use 1300 as initial value for length, not PATH_MAX.
29485
29486         * lib/pathmax.h: Clean up cpp syntax.
29487
29488 2001-08-12  Jim Meyering  <meyering@lucent.com>
29489
29490         * lib/gettimeofday.c: New file.
29491         * lib/gtod.h: New file.
29492         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
29493
29494 2001-08-05  Jim Meyering  <meyering@lucent.com>
29495
29496         * m4/jm-macros.m4: Require autoconf-2.52.
29497
29498 2001-08-04  Jim Meyering  <meyering@lucent.com>
29499
29500         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
29501         stmt, to get in sync with glibc.
29502
29503 2001-08-03  Paul Eggert  <eggert@twinsun.com>
29504
29505         The following changes are from gettext 0.10.39 as maintained by
29506         Bruno Haible.
29507
29508         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
29509         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
29510         with inverted sense.  All uses changed.
29511
29512         * lib/mbswidth.c: Don't include <limits.h>.
29513         Include <stdlib.h> and <string.h> unconditionally.
29514         (iswcntrl, mbsinit, ISCNTRL): New macros.
29515         (mbsnwidth): Use K&R style function declarations.
29516         Don't bother checking for MB_LEN_MAX == 1, since the compiler
29517         can optimize it when MB_CUR_MAX == 1.
29518         The width of control characters is zero, not 1.
29519
29520 2001-08-03  Paul Eggert  <eggert@twinsun.com>
29521
29522         The following changes are from gettext 0.10.39 as maintained by
29523         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
29524
29525         * m4/codeset.m4: Upgrade to serial AM1.
29526         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
29527         all uses changed.  Quote first arg of AC_DEFUN.
29528         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
29529
29530         * m4/iconv.m4: Upgrade to serial AM2.
29531         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
29532         Add --with-libconv-prefix.
29533         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
29534         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
29535         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
29536         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
29537         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
29538
29539         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
29540         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
29541         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
29542         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
29543         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
29544         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
29545         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29546         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
29547         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
29548
29549         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
29550         string.h any more.
29551
29552         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
29553         not the default value.
29554
29555         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
29556         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
29557         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
29558         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
29559         Also check for iswcntrl, used for wcwidth fallback.
29560         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
29561         to Autoconf 2.13.
29562
29563 2001-08-03  Jim Meyering  <meyering@lucent.com>
29564
29565         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
29566         as it was in the original.  Reported by Paul Eggert.
29567
29568 2001-07-16  Jim Meyering  <meyering@lucent.com>
29569
29570         * m4/gettimeofday.m4: New file.
29571         Prompted by a report from Bernhard Baehr.
29572
29573 2001-07-15  Jim Meyering  <meyering@lucent.com>
29574
29575         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
29576         stuff. Now it's in ../Makefile.cfg.
29577
29578 2001-07-15  Jim Meyering  <meyering@lucent.com>
29579
29580         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
29581         (BUILT_SOURCES): Add unlocked-io.h.
29582         (io_functions): Define.
29583         (unlocked-io.h): New rule.
29584         (DISTCLEANFILES): Add unlocked-io.h.
29585         (all-local): Depend on unlocked-io.h, to ensure it is created.
29586
29587         * lib/unlocked-io.hin: New file
29588
29589         * lib/regex.c: Update from glibc.
29590
29591 2001-07-05  Jim Meyering  <meyering@lucent.com>
29592
29593         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
29594         recommendation.
29595         (libfetish_a_SOURCES): Put all .h files here instead.
29596         Remove a thus-exposed (better checks in automake) duplicate and
29597         two unnecessary .h files.
29598
29599 2001-07-04  Jim Meyering  <meyering@lucent.com>
29600
29601         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
29602         that generates jm-glibc-io.m4 so that it doesn't trigger any make
29603         distcheck failure.
29604
29605 2001-07-02  Jim Meyering  <meyering@lucent.com>
29606
29607         The following changes were prompted by suggestions from Bruno Haible.
29608
29609         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
29610         is now generated.
29611         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
29612         definition of EXTRA_DIST.
29613         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
29614         ensure that the generated file is created/updated whenever the list
29615         of $(unlocked_functions) is changed.
29616         (jm-glibc-io.m4): New rule.
29617         (unlocked-io.h): New rule -- currently unused.
29618
29619 2001-06-24  Jim Meyering  <meyering@lucent.com>
29620
29621         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
29622         unmatched right bracket, rather than kludging it with an extra,
29623         falsely-matching quote in a comment.  Patch by Akim Demaille.
29624
29625 2001-06-11  Jim Meyering  <meyering@lucent.com>
29626
29627         * lib/regex.c: Update from GNU libc.
29628
29629 2001-05-27  Jim Meyering  <meyering@lucent.com>
29630
29631         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
29632         Check for ut_type in struct utmp.
29633
29634 2001-05-27  Jim Meyering  <meyering@lucent.com>
29635
29636         * lib/readutmp.h (UT_TYPE): Define.
29637
29638 2001-05-24  Jim Meyering  <meyering@lucent.com>
29639
29640         * lib/argmatch.c: Include "quote.h".
29641         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
29642         quote function.  Reported by Göran Uddeborg.
29643
29644 2001-05-22  Jim Meyering  <meyering@lucent.com>
29645
29646         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
29647         now that we use the package-supplied version unconditionally.
29648         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
29649
29650 2001-05-21  Jim Meyering  <meyering@lucent.com>
29651
29652         * m4/regex.m4: Change a couple backticks to single quotes to avoid
29653         shell syntax errors.
29654
29655 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
29656
29657         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
29658
29659 2001-05-20  Paul Eggert  <eggert@twinsun.com>
29660
29661         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
29662         Don't bother to check library strftime, since
29663         we'll be using our own my_strftime function anyway.
29664         Define my_strftime instead of strftime.
29665
29666 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
29667
29668         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
29669         which is not yet declared.
29670
29671 2001-05-15  Jim Meyering  <meyering@lucent.com>
29672
29673         * m4/regex.m4: Use proper quoting so brackets appear in the test
29674         program.
29675         Reported by, and with help from, Bruno Haible.
29676
29677 2001-05-13  Jim Meyering  <meyering@lucent.com>
29678
29679         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
29680         undefined.
29681
29682 2001-05-11  Paul Eggert  <eggert@twinsun.com>
29683
29684         dirname code cleanup.  base_name now behaves more compatibly
29685         with POSIX basename when given file names that have trailing
29686         slashes, and similarly for dir_name.  Add new primitives
29687         base_len and dir_len.  Put the directory-name-related decls
29688         into dirname.h.
29689
29690         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
29691         * lib/backupfile.c (base_name): Likewise.
29692         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
29693         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
29694         * lib/makepath.c (strip_trailing_slashes): Likewise.
29695         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
29696         ISSLASH): Likewise.
29697         * lib/rename.c (strip_trailing_slashes): Likewise.
29698         * lib/same.c (base_name): Likewise.
29699         * lib/stripslash.c (ISSLASH): Likewise.
29700
29701         * lib/addext.c: Include <dirname.h> after size_t is defined.
29702         * lib/backupfile.c: Likewise.
29703
29704         * lib/addext.c (addext): Use base_len to trim redundant
29705         trailing slashes instead of doing it ourselves.
29706         But do not trim the last slash if it is not redundant.
29707
29708         * lib/backupfile.c (find_backup_file_name,
29709         max_backup_version): Use base_len instead of rolling it ourselves.
29710         Handle the case of "" and (on DOS) "C:" correctly.
29711
29712         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
29713         needed. Include <string.h>, <dirname.h>.
29714         (base_name): Allow file names ending in slashes, other than names
29715         that are all slashes.  In this case, return the basename followed
29716         by the slashes.  This is more general, and can be used in places
29717         where the original base_name purposely had an assertion failure.
29718         (base_len): New function.
29719
29720         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
29721         Do not include <assert.h>; no longer needed.
29722         Include xalloc.h.
29723         (memrchr): Remove decl.
29724         (dir_name_r): Remove.
29725         (dir_len): Renamed from dirlen.  All callers changed.
29726         Rewrite in terms of base_name, for simplicity and consistency.
29727         (dir_name): Never return NULL.  All callers changed.
29728         Do not include <stdlib.h> in test program; no longer needed.
29729         return 0; is fine for test program.
29730
29731         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
29732         New macros.
29733         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
29734
29735         * lib/path-concat.c (path_concat): Use base_len to compute
29736         base length, not strlen; this means we cannot rely on memcpy
29737         to null-terminate.
29738
29739         * lib/same.c (STREQ): Remove.
29740         (same_name): Handle the case where the basename ends in trailing '/'.
29741
29742         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
29743         a slash was stripped.  Do not strip the last slash after a
29744         file system prefix.
29745
29746 2001-05-11  Paul Eggert  <eggert@twinsun.com>
29747
29748         * lib/Makefile.am (libfetish_a_SOURCES):
29749         Add strftime.c, since we now compile it on all hosts.
29750
29751         * lib/strftime.c (my_strftime):
29752         Define to nstrftime if emacs, but only if my_strftime is not defined.
29753         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
29754         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
29755         Add one more extra argument: a nanoseconds value.
29756         All uses changed.
29757         (ns): New macro.
29758         (my_strftime function): Add %N format.
29759         (emacs_strftimeu): Renamed from emacs_strftime,
29760         with extra ut argument.
29761
29762 2001-05-09  Paul Eggert  <eggert@twinsun.com>
29763
29764         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
29765
29766 2001-04-21  Jim Meyering  <meyering@lucent.com>
29767
29768         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
29769         doesn't interfere.
29770
29771 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
29772
29773         * m4/ftruncate.m4: Check for chsize.
29774         Link with ftruncate.o unconditionally if ftruncate is missing.
29775         This was required when cross-compiling to i586-mingw32msvc.
29776
29777 2001-04-08  Jim Meyering  <meyering@lucent.com>
29778
29779         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
29780         recomputed; that's necessary when the offset spans a DST transition.
29781         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
29782
29783 2001-04-02  Jim Meyering  <meyering@lucent.com>
29784
29785         * lib/regex.h, regex.c: Update from GNU libc.
29786
29787 2001-03-24  Jim Meyering  <meyering@lucent.com>
29788
29789         * m4/jm-macros.m4: Require autoconf-2.49d.
29790
29791 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
29792
29793         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
29794
29795 2001-03-19  Paul Eggert  <eggert@twinsun.com>
29796
29797         * lib/version-etc.c (version_etc_copyright): Update to 2001.
29798
29799 2001-03-17  Jim Meyering  <meyering@lucent.com>
29800
29801         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
29802         now that the version in autoconf is equivalent.
29803         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
29804
29805         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
29806         Suggestion from Akim Demaille.
29807
29808         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
29809         (jm_PREREQ_TEMPNAME): New function.
29810
29811 2001-03-16  Paul Eggert  <eggert@twinsun.com>
29812
29813         * lib/tempname.c (uint64_t): Define to uintmax_t if
29814         not defined, and if UINT64_MAX is not defined.
29815         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
29816         Reported by John David Anglin.
29817
29818 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
29819
29820         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
29821         resolve alias if codeset is empty.
29822         * lib/config.charset (BeOS): Use wildcard syntax.
29823
29824 2001-03-13  Jim Meyering  <meyering@lucent.com>
29825
29826         * lib/path-concat.c (path_concat)
29827         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
29828         concatenating e.g., `C:' and `foo'.
29829         From Bruno Haible.
29830
29831 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
29832
29833         * lib/localcharset.c (locale_charset): Don't use
29834         setlocale(LC_CTYPE,NULL). Don't return NULL.
29835         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
29836
29837 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
29838
29839         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
29840         support for DOS/DJGPP.
29841
29842 2001-03-01  Paul Eggert  <eggert@twinsun.com>
29843
29844         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
29845         lacks mkstemp.  Compile our own tempname.c if we compile our own
29846         mkstemp.c, as mkstemp relies on tempname.
29847
29848 2001-03-01  Jim Meyering  <meyering@lucent.com>
29849
29850         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
29851         AH_VERBATIM really does output its argument verbatim.
29852
29853 2001-02-28  Paul Eggert  <eggert@twinsun.com>
29854
29855         * lib/Makefile.am (libfetish_a_SOURCES):
29856         Add dup-safer.c, fopen-safer.c.
29857         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
29858
29859         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
29860         * lib/unistd-safer.h: New files.
29861
29862 2001-02-25  Paul Eggert  <eggert@twinsun.com>
29863
29864         The mkstemp replacement is taken from glibc 2.2.2, with some
29865         portability fixes for use outside glibc, as follows:
29866
29867         * lib/tempname.c (struct_stat64): New macro.
29868         (direxists, __gen_tempname): Use it.
29869         This avoids a portability problem with Solaris 8.
29870
29871         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
29872         (<stddef.h>, <stdint.h>, <string.h>):
29873         Include only if STDC_HEADERS || _LIBC.
29874         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
29875         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
29876         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
29877         (__set_errno): Define this macro if <errno.h> doesn't.
29878         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
29879         Define these macros if <stdio.h> doesn't.
29880         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
29881         Define these macros if <sys/stat.h>
29882         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
29883         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
29884         __xstat64): Define if not _LIBC.
29885         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
29886         (__gen_tempname): Invoke gettimeofday only if
29887         HAVE_GETTIMEOFDAY || _LIBC;
29888         otherwise, fall back on plain "time".
29889         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
29890
29891         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
29892
29893         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
29894
29895 2001-02-18  Paul Eggert  <eggert@twinsun.com>
29896
29897         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
29898
29899 2001-02-17  Paul Eggert  <eggert@twinsun.com>
29900
29901         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
29902         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
29903         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
29904         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
29905
29906 2001-02-17  Paul Eggert  <eggert@twinsun.com>
29907
29908         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
29909         Remove workaround macros for hosts that have mbrtowc but not
29910         mbstate_t, as we now insist on proper declarations for both
29911         before using mbrtowc.
29912
29913 2001-02-17  Jim Meyering  <meyering@lucent.com>
29914
29915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
29916         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
29917         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
29918         UnixWare 7.1.1.
29919
29920         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
29921         rather than AC_CACHE_VAL.
29922
29923 2001-02-17  Jim Meyering  <meyering@lucent.com>
29924
29925         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
29926         around included file name.
29927
29928         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
29929
29930         * lib/strftime.c: Update from GNU libc (the only changes were to
29931         comments).
29932
29933 2001-02-17  Jim Meyering  <meyering@lucent.com>
29934
29935         * lib/regex.c: Update from libc.
29936
29937 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
29938
29939         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
29940         clash.
29941
29942 2001-02-16  Paul Eggert  <eggert@twinsun.com>
29943
29944         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
29945         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
29946         Reported by Mark Hounschell via Paul Eggert.
29947
29948 2001-02-07  Jim Meyering  <meyering@lucent.com>
29949
29950         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
29951
29952 2001-02-05  Jim Meyering  <meyering@lucent.com>
29953
29954         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
29955         it includes the patch required for `large file' support with at least
29956         HP-UX's 10.20 /bin/cc.
29957
29958 2001-02-03  Jim Meyering  <meyering@lucent.com>
29959
29960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
29961         AS_IF, now that it works once again (mysteriously).
29962         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
29963
29964 2001-01-30  Jim Meyering  <meyering@lucent.com>
29965
29966         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
29967         * m4/chown.m4: Rename conftestchown to conftest.chown.
29968         * m4/rename.m4: s/conftestdir/conftest.d1/ and
29969         s/conftestdir2/conftest.d2/.
29970         * m4/utimes.m4: s/conftestdata/conftest.data/
29971         Inspired by Pavel Roskin's change in autoconf.
29972
29973 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
29974
29975         * lib/config.charset: Update for FreeBSD 4.2.
29976
29977 2001-01-27  Jim Meyering  <meyering@lucent.com>
29978
29979         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
29980         a use of AS_IF.
29981         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
29982
29983 2001-01-26  Jim Meyering  <meyering@lucent.com>
29984
29985         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
29986         quotearg.c includes it.
29987
29988 2001-01-26  Jim Meyering  <meyering@lucent.com>
29989
29990         * lib/quotearg.c: Include stddef.h.
29991         * lib/quote.c: Include stddef.h.
29992         Reported by Axel Kittenberger.
29993
29994         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
29995         line in double quotes so that it evokes a better diagnostic.
29996         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
29997         Reported by Axel Kittenberger.
29998
29999 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
30000
30001         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
30002         as if it was a `charset'.
30003
30004 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
30005
30006         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
30007         has const.
30008
30009 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
30010
30011         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
30012         to avoid a warning.  Add back 'const' to inptr.
30013
30014 2001-01-20  Jim Meyering  <meyering@lucent.com>
30015
30016         Be sure that headers are checked before used in code compiled
30017         for the type checks.
30018         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
30019         In place of that, invoke jm_CHECK_ALL_TYPES.
30020         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
30021         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
30022         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
30023         The check for ssize_t was mistakenly run before the test for unistd.h.
30024
30025         The configure-time check for stdbool.h was missing.
30026         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
30027         (jm_PREREQ_HASH): New function.
30028
30029 2001-01-17  Jim Meyering  <meyering@lucent.com>
30030
30031         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
30032         for autoconf-2.49c.
30033         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
30034
30035 2001-01-16  Jim Meyering  <meyering@lucent.com>
30036
30037         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
30038         From Bruno Haible.
30039
30040 2001-01-14  Jim Meyering  <meyering@lucent.com>
30041
30042         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
30043         foo and bar.  Create conftestdir/ in the script, not in the C code.
30044         Remove directories in the script, not in the C code.
30045         Remove conftestdir{,2} before trying to create the directory.
30046         Make the entire configure script fail if the mkdir fails.
30047
30048 2001-01-14  Jim Meyering  <meyering@lucent.com>
30049
30050         * lib/rename.c: New file.  From Volker Borchert.
30051         Include stdlib.h, string.h or strings.h, and xalloc.h.
30052         Use strip_trailing_slashes rather than open-coding it.
30053
30054 2001-01-03  Paul Eggert  <eggert@twinsun.com>
30055
30056         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
30057
30058 2001-01-03  Jim Meyering  <meyering@lucent.com>
30059
30060         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
30061         of local `inptr' to avoid warning with some system declarations of
30062         iconv.
30063
30064 2001-01-02  Volker Borchert  <bt@teknon.de>
30065
30066         * m4/rename.m4: New file.
30067         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
30068
30069 2001-01-01  Jim Meyering  <meyering@lucent.com>
30070
30071         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
30072         even on systems with utmpx.h.  It's necessary for the declaration of
30073         utmp's ut_user member.  Reported by Andreas Jaeger.
30074
30075         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
30076         available. They are required for the declarations of getgrgid and
30077         getpwuid resp.
30078         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
30079         Reported by Andreas Jaeger.
30080
30081 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
30082
30083         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
30084         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
30085         so `make install' also works in VPATH builds.
30086
30087 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
30088
30089         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
30090         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
30091         can be used in subdirectories.
30092
30093 2000-12-29  Paul Eggert  <eggert@twinsun.com>
30094
30095         * lib/modechange.c: Do not assume that mode_t uses the
30096         traditional octal encoding.  E.g. "chmod 1 FOO" should set
30097         the other-execute bit of FOO even if S_IXOTH != 1.
30098
30099         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
30100         WOTH, XOTH, ALLM): New macros.
30101         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
30102          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
30103         Use them.
30104         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
30105         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
30106         (mode_compile):
30107         No need to use uintmax_t; unsigned long is long enough.
30108         Don't bother to get suffix since we don't use it.
30109
30110 2000-12-26  Jim Meyering  <meyering@lucent.com>
30111
30112         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
30113         better with autoheader.
30114
30115 2000-12-24  Jim Meyering  <meyering@lucent.com>
30116
30117         * lib/hash.c (is_prime): Return explicit boolean values.
30118         (hash_get_first): Return NULL to appease Irix5.6's 89.
30119         Reported by Nelson Beebe.
30120
30121 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
30122
30123         * lib/localcharset.c (locale_charset): Add support for Win32.
30124
30125 2000-12-18  Paul Eggert  <eggert@twinsun.com>
30126
30127         * lib/physmem.h, lib/physmem.c: New files.
30128
30129         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
30130         (noinst_HEADERS): Add physmem.h.
30131
30132         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
30133         't' for compatibility with Solaris 8 sort.
30134
30135 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
30136
30137         * lib/config.charset: Add support for BeOS.
30138
30139 2000-12-17  Jim Meyering  <meyering@lucent.com>
30140
30141         * m4/dos.m4 (jm_AC_DOS): New file and macro.
30142         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
30143
30144 2000-12-16  Jim Meyering  <meyering@lucent.com>
30145
30146         This bug had a serious impact on chown: `chown N:M FILE' (for integer
30147         N and M) would have treated it like `chown N:N FILE'.
30148
30149         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
30150
30151 2000-12-16  Jim Meyering  <meyering@lucent.com>
30152
30153         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
30154         SHELLS_FILE to a file name that's useful on djgpp systems.
30155         Include stdlib.h.
30156         (ADDITIONAL_DEFAULT_SHELLS): Define.
30157         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
30158         Based mostly on a patch from Prashant TR.
30159
30160 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
30161
30162         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
30163         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
30164         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
30165
30166 2000-12-08  Andreas Schwab  <schwab@suse.de>
30167
30168         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
30169         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
30170
30171 2000-12-07  Jim Meyering  <meyering@lucent.com>
30172
30173         * lib/stripslash.c (ISSLASH): Define.
30174         (strip_trailing_slashes): Use ISSLASH rather than comparing against
30175         `/'.
30176         From Prashant TR.
30177
30178         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
30179         (dir_name_r): Declare this function as static.
30180         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
30181         manifest itself on a name containing a mix of slashes and
30182         backslashes.
30183         Make this function work with names starting with a DOS-style
30184         drive letter and colon prefix.
30185         (dir_name): Append `.' if necessary.
30186         Based mostly on patches from Prashant TR and Eli Zaretskii.
30187
30188         * lib/dirname.h (dir_name_r): Remove prototype.
30189
30190 2000-12-06  Paul Eggert  <eggert@twinsun.com>
30191
30192         * m4/off_t-format.m4: Remove this file.
30193         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
30194
30195 2000-12-06  Jim Meyering  <meyering@lucent.com>
30196
30197         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
30198         replacement strtoull, we may well need the replacement strtoul, too.
30199         Check for declarations of strtoul and strtoull.
30200         Check for strtol.  Mainly as a cue to cause automake to include
30201         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
30202         Check for limits.h -- strtol.c needs it.
30203
30204 2000-12-05  Jim Meyering  <meyering@lucent.com>
30205
30206         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
30207
30208 2000-12-04  Jim Meyering  <meyering@lucent.com>
30209
30210         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
30211         Also include memory.h, stdlib.h, unistd.h if appropriate.
30212         Reported by Andreas Jaeger (conflicting declaration of malloc).
30213
30214 2000-12-02  Jim Meyering  <meyering@lucent.com>
30215
30216         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
30217         * m4/jm-macros.m4 (jm_MACROS): require it.
30218
30219 2000-12-02  Jim Meyering  <meyering@lucent.com>
30220
30221         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
30222
30223 2000-12-01  Paul Eggert  <eggert@twinsun.com>
30224
30225         * lib/memrchr.c: Include <config.h> before any system include file.
30226
30227 2000-11-30  Jim Meyering  <meyering@lucent.com>
30228
30229         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
30230
30231 2000-11-30  Jim Meyering  <meyering@lucent.com>
30232
30233         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
30234
30235 2000-11-29  Paul Eggert  <eggert@twinsun.com>
30236
30237         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
30238
30239 2000-11-26  Jim Meyering  <meyering@lucent.com>
30240
30241         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
30242
30243 2000-11-22  Paul Eggert  <eggert@twinsun.com>
30244
30245         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
30246         size of (size_t) -1; it's not portable.
30247
30248 2000-11-17  Jim Meyering  <meyering@lucent.com>
30249
30250         * lib/strstr.c: Update from GNU libc.
30251
30252 2000-11-17  Akim Demaille  <akim@epita.fr>
30253
30254         * lib/obstack.h: Formatting changes.
30255         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
30256         prevent type checking.
30257         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
30258         cast the value to (void *): assigning a `foo *' to a `void *'
30259         variable is valid.
30260         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
30261
30262 2000-11-16  Jim Meyering  <meyering@lucent.com>
30263
30264         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
30265
30266 2000-11-11  Jim Meyering  <meyering@lucent.com>
30267
30268         * lib/error.c: Add a couple #includes, merging from GNU libc version.
30269
30270 2000-11-10  Jim Meyering  <meyering@lucent.com>
30271
30272         * lib/obstack.h: Update from GNU libc.
30273         * lib/obstack.c: Likewise.
30274
30275 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
30276
30277         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
30278
30279 2000-11-06  Paul Eggert  <eggert@twinsun.com>
30280
30281         * lib/getusershell.c (setusershell): Use rewind rather than
30282         fseek/fseeko, to avoid configuration hassles with fseeko.
30283         Don't bother opening SHELLS_FILE if shellstream is NULL;
30284         it's not necessary.
30285
30286 2000-11-05  Jim Meyering  <meyering@lucent.com>
30287
30288         * lib/makepath.h (make_dir): Declare.
30289         * lib/makepath.c (make_dir): Remove `static' attribute.
30290         Tweak a comment.
30291
30292 2000-11-04  Jim Meyering  <meyering@lucent.com>
30293
30294         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
30295
30296 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
30297
30298         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
30299         last one in a bucket, advance to the next bucket.
30300
30301 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
30302
30303         * lib/fnmatch.c: Do not comment out all the code if we are using
30304         the GNU C library, because in some cases we are replacing buggy
30305         code in the GNU C library itself.
30306
30307 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
30308
30309         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
30310         (regex_compile): Catch bogus \(\1\).
30311
30312 2000-10-30  Paul Eggert  <eggert@twinsun.com>
30313
30314         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
30315         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
30316         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
30317
30318 2000-10-30  Paul Eggert  <eggert@twinsun.com>
30319
30320         * lib/error.h, getline.h, modechange.h:
30321         Remove "2000" from Copyright line, as the file hasn't been
30322         changed this year other than in the copyright notice.
30323
30324         * lib/xalloc.h: Add "2000" to Copyright line, as this file
30325         was changed this year.
30326
30327 2000-10-29  Jim Meyering  <meyering@lucent.com>
30328
30329         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
30330         renaming.
30331         * m4/ls-mntd-fs.m4: Likewise
30332
30333 2000-10-29  Jim Meyering  <meyering@lucent.com>
30334
30335         * lib/xstat.in: Fix grammar in comment.
30336
30337 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
30338
30339         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
30340         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
30341         doesn't define __restrict_arr.
30342
30343 2000-10-28  Jim Meyering  <meyering@lucent.com>
30344
30345         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
30346         (jm_PREREQ_MEMCHR): New function.
30347
30348 2000-10-28  Jim Meyering  <meyering@lucent.com>
30349
30350         * lib/memchr.c: Update from libc.
30351         Adjust for portability:
30352         [HAVE_STDLIB_H]: Include stdlib.h.
30353         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
30354         Undef __memchr, too.
30355         [!weak_alias]: Define __memchr to memchr.
30356
30357         * lib/regex.c: Update from libc.
30358         * lib/regex.h: Likewise.
30359         * lib/getopt1.c: Likewise.
30360         * lib/memcmp.c: Likewise.
30361
30362         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
30363         Avoid using fseek, when possible -- it's broken by design.
30364         Patch by Ulrich Drepper.
30365
30366 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
30367
30368         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
30369         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
30370         Giving in to popular pressure to shut up the compiler with casts.
30371
30372 2000-10-26  Jim Meyering  <meyering@lucent.com>
30373
30374         * lib/strftime.c: Update from libc.
30375
30376 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
30377
30378         * regex.c: More `unsigned char' -> `re_char' changes.
30379         Also change several `int' into `re_wchar_t'.
30380         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
30381         (PUSH_FAILURE_POINTER): Don't cast any more.
30382         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
30383         We want GCC to complain, since this piece of code makes
30384         re_match non-reentrant, which *should* be fixed.
30385         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
30386         (EXTEND_BUFFER): Use RETALLOC.
30387         (SET_LIST_BIT): Don't cast.
30388         (re_wchar_t): New type.
30389         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
30390         that those two functions will always properly return.
30391         (IMMEDIATE_QUIT_CHECK): Cast to void.
30392         (analyse_first): Use recursion rather than an explicit stack.
30393         (re_compile_fastmap): Can't fail anymore.
30394         (re_search_2): Don't check re_compile_fastmap for failure.
30395         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
30396         Now also sets the new value (passed in a new argument).
30397         (re_match_2_internal): Use it.
30398         Also, use a new var `reg' of type size_t when looping through regs
30399         rather than reuse the inappropriate `mcnt'.
30400
30401 2000-10-25  Jim Meyering  <meyering@lucent.com>
30402
30403         * lib/obstack.c: Update from libc.
30404
30405 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
30406
30407         * regex.c (regex_compile): Change the way of handling a range from
30408         a char less than 256 to a char not less than 256.
30409
30410 2000-10-24  Andrew Innes  <andrewi@gnu.org>
30411
30412         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
30413         NT-Emacs only.
30414         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
30415         so that re_search functions only quit when callers expect them to.
30416
30417 2000-10-23  Jim Meyering  <meyering@lucent.com>
30418
30419         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
30420         wrong.  That set_locale call must not have any side effects.
30421         From Paul Eggert.
30422
30423 2000-10-22  Jim Meyering  <meyering@lucent.com>
30424
30425         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
30426         [CYCLIC]: Remove now-unused definition.
30427
30428         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
30429         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
30430         Suggestion from Ulrich Drepper.
30431
30432 2000-10-21  Jim Meyering  <meyering@lucent.com>
30433
30434         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
30435         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
30436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
30437
30438 2000-10-21  Jim Meyering  <meyering@lucent.com>
30439
30440         * lib/dirname.c (memrchr): Declare if necessary.
30441         (dir_name): Remove the restriction that there be no
30442         trailing slashes.  Now, this code skips past them, effectively
30443         ignoring them.
30444         [TEST_DIRNAME] (main): New unit tests.
30445
30446         * lib/memrchr.c: New file from GNU libc.
30447         Undef __memrchr, too.
30448         [!weak_alias]: Define __memrchr to memrchr.
30449         Guard weak_alias use with `#ifdef weak_alias'.
30450
30451 2000-10-21  Jim Meyering  <meyering@lucent.com>
30452
30453         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
30454         (dir_name): Use dir_name_r.
30455         * lib/dirname.h (dir_name_r): Declare it.
30456
30457 2000-10-17  Jim Meyering  <meyering@lucent.com>
30458
30459         * lib/quote.h (PARAMS): Define and use.
30460         Reported by Akim Demaille.
30461
30462         * lib/getopt.c: Update from libc.
30463
30464 2000-10-16  Jim Meyering  <meyering@lucent.com>
30465
30466         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
30467         setlocale.
30468         From Jan Fedak.
30469
30470 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
30471
30472         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
30473
30474 2000-09-25  Jim Meyering  <meyering@lucent.com>
30475
30476         * lib/md5.h (rol): Define (from GnuPG).
30477
30478         * lib/sha.c: Give credit (GnuPG) where due.
30479         (M): Use rol rather than open-coding it.
30480         Add a FIXME comment.
30481
30482 2000-09-21  Jim Meyering  <meyering@lucent.com>
30483
30484         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
30485         Reported by Michael Stone.
30486
30487 2000-09-20  Jim Meyering  <meyering@lucent.com>
30488
30489         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
30490         (noinst_HEADERS): Add sha.h.
30491         Based on code from Scott G. Miller and from GnuPG.
30492
30493 2000-09-18  Jim Meyering  <meyering@lucent.com>
30494
30495         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
30496         LIBS. Otherwise, everyone ends up linking with -lelf for some
30497         configurations.
30498         Reported by Mike Stone.
30499
30500 2000-09-15  Jim Meyering  <meyering@lucent.com>
30501
30502         * lib/regex.c: Update from libc.
30503
30504 2000-09-10  Jim Meyering  <meyering@lucent.com>
30505
30506         * lib/getopt.c (_getopt_internal): Update from glibc.
30507
30508 2000-09-09  Jim Meyering  <meyering@lucent.com>
30509
30510         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
30511         think it should be used as a general replacement for isascii.
30512         * lib/fnmatch.c: Likewise.
30513         * lib/mbswidth.c: Likewise
30514         * lib/regex.c: Likewise.
30515
30516         Don't use atoi.
30517         * lib/userspec.c: Include sys/param.h and limits.h.
30518         Include xstrtol.h.
30519         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
30520         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
30521         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
30522         UID, GID.  Check range.
30523
30524 2000-09-06  Jim Meyering  <meyering@lucent.com>
30525
30526         * lib/getopt.c (_getopt_internal): Update from glibc.
30527
30528 2000-08-30  Jim Meyering  <meyering@lucent.com>
30529
30530         * lib/strftime.c: Merge in changes from GNU libc.
30531
30532 2000-08-26  Jim Meyering  <meyering@lucent.com>
30533
30534         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
30535         * m4/fpending.m4: New file.
30536
30537 2000-08-26  Jim Meyering  <meyering@lucent.com>
30538
30539         * lib/closeout.c: Include "__fpending.h".
30540         (close_stdout_status): Return right away if there's nothing to flush.
30541
30542         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
30543         * lib/__fpending.c: New file.
30544         * lib/__fpending.h: New file.
30545
30546 2000-08-20  Jim Meyering  <meyering@lucent.com>
30547
30548         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
30549         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
30550         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
30551
30552 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
30553
30554         Improve fileutils installation on systems where running
30555         programs (like install) can't be unlinked.
30556         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
30557         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
30558
30559 2000-08-07  Paul Eggert  <eggert@twinsun.com>
30560
30561         Standardize on "memory exhausted" instead of "Memory exhausted"
30562         or "virtual memory exhausted".
30563         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
30564         "virtual memory exhausted".
30565         * lib/same.c (same_name): Invoke xalloc_die instead of printing
30566         our own message.
30567         * lib/userspec.c (parse_user_spec): Likewise.
30568         * lib/bumpalloc.h: comment fix
30569         * lib/same.c, userspec.c: Include xalloc.h.
30570
30571         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
30572         not char *const and pointing to a constant array.
30573         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
30574         (xrealloc): Comment fix.
30575
30576         * lib/userspec.c (parse_user_spec):
30577         Don't translate a message until just before returning,
30578         to avoid unnecessary translation.
30579
30580 2000-08-07  Jim Meyering  <meyering@lucent.com>
30581
30582         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
30583         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
30584         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
30585         getgroups.c, gethostname.c, getopt.h, group-member.c,
30586         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
30587         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
30588         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
30589         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
30590         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
30591         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
30592         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
30593         yesno.c: Back out Copyright date changes for each file with no change
30594         this year.  This eases coordination with other programs using the same
30595         source code modules.  From Paul Eggert.
30596
30597 2000-08-06  Paul Eggert  <eggert@twinsun.com>
30598
30599         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
30600         not char, for compatibility with glibc 2.1.3 strftime.c.
30601
30602 2000-08-03  Greg McGary  <greg@mcgary.org>
30603
30604         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
30605         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
30606         (EXTEND_BUFFER): Use them.
30607
30608 2000-08-01  Jim Meyering  <meyering@lucent.com>
30609
30610         * lib/dirname.c (ISSLASH): Define.
30611         (BACKSLASH_IS_PATH_SEPARATOR): Define.
30612         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
30613         both `\' and `/' may be use as path separators.
30614         Based on a patch from Prashant TR.
30615
30616 2000-07-31  Paul Eggert  <eggert@twinsun.com>
30617
30618         * lib/quotearg.c (quotearg_n_options): Don't make the initial
30619         slot vector a constant, since it might get modified.
30620
30621 2000-07-31  Jim Meyering  <meyering@lucent.com>
30622
30623         * lib/xmalloc.c: Use `virtual memory exhausted', not
30624         `Memory exhausted'.
30625         * lib/obstack.c (print_and_abort): Likewise.
30626
30627 2000-07-30  Paul Eggert  <eggert@twinsun.com>
30628
30629         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
30630         buffer, so that the caller can always quote one small
30631         component of a "memory exhausted" message in slot 0.
30632         From a suggestion by Jim Meyering.
30633
30634 2000-07-30  Jim Meyering  <meyering@lucent.com>
30635
30636         * lib/makepath.c (make_path): Quote the other instance, too.
30637
30638         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
30639         (STATIC_BUF_SIZE): Define.
30640         (quotearg_n_options): Use only statically allocated storage when
30641         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
30642         than STATIC_BUF_SIZE.
30643
30644 2000-07-29  Jim Meyering  <meyering@lucent.com>
30645
30646         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
30647         * lib/dirname.c (dir_name): Likewise.
30648
30649         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
30650         `/'.
30651
30652         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
30653         (dir_name): Assert that there are no trailing slashes.
30654
30655 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
30656
30657         * lib/mbswidth.h (mbswidth): Add a flags argument.
30658         (mbswidth): New declaration.
30659         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
30660         * lib/mbswidth.c (mbswidth): Add a flags argument.
30661         (mbsnwidth): New function.
30662
30663 2000-07-24  Jim Meyering  <meyering@lucent.com>
30664
30665         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
30666
30667 2000-07-23  Paul Eggert  <eggert@twinsun.com>
30668
30669         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
30670
30671 2000-07-23  Paul Eggert  <eggert@twinsun.com>
30672
30673         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
30674         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
30675         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
30676         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
30677         invoke multibyte primitives.
30678
30679 2000-07-23  Paul Eggert  <eggert@twinsun.com>
30680
30681         * lib/quotearg.c:
30682         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
30683         so that mbstate_t is always defined.
30684
30685         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
30686         be 1 in at least one GCC installation, and this configuration
30687         error is likely to be common.  Ignoring MB_LEN_MAX hurts
30688         performance on hosts that have mbrtowc but have only unibyte
30689         locales, but I assume these hosts are rare.
30690
30691 2000-07-23  Paul Eggert  <eggert@twinsun.com>
30692
30693         * lib/mbswidth.c (_XOPEN_SOURCE):
30694         Don't define; this causes problems on Solaris 7.
30695         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
30696
30697 2000-07-23  Jim Meyering  <meyering@lucent.com>
30698
30699         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
30700         too: getgrgid, getpwuid, getuid.
30701
30702 2000-07-23  Jim Meyering  <meyering@lucent.com>
30703
30704         * lib/basename.c (base_name): Add an assertion.
30705
30706 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
30707
30708         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
30709         shadow its mbsinit function.
30710
30711 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
30712
30713         * lib/mbswidth.h: New file.
30714         * lib/mbswidth.c: New file.
30715         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
30716         (noinst_HEADERS): Add mbswidth.h.
30717
30718 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
30719
30720         * lib/config.charset: Add support for FreeBSD. Improve support for
30721         HP-UX and IRIX 6.
30722
30723 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
30724
30725         * m4/mbswidth.m4: New file.
30726         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
30727
30728 2000-07-15  Jim Meyering  <meyering@lucent.com>
30729
30730         * lib/makepath.c: Include quote.h.
30731         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
30732         corresponding argument in a `quote (...)' call.
30733         Give better diagnostics.
30734
30735         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
30736         (noinst_HEADERS): Add quote.h.
30737
30738         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
30739         from tar's src/misc.c.
30740         * lib/quote.h: New file.  Prototypes for same.
30741
30742 2000-07-14  Paul Eggert  <eggert@twinsun.com>
30743
30744         From a suggestion by Bruno Haible.
30745         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
30746         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
30747         to decide whether to define the BeOS workaround macro;
30748         this adjusts to the change to AC_MBSTATE_T.
30749
30750 2000-07-14  Jim Meyering  <meyering@lucent.com>
30751
30752         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
30753         jm_AC_TYPE_UINTMAX_T.
30754
30755 2000-07-13  Paul Eggert  <eggert@twinsun.com>
30756
30757         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
30758
30759         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
30760         quotearg_buffer_restyled): Add support for
30761         clocale_quoting_style.  Undo previous change to
30762         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
30763         and "{RIGHT QUOTATION MARK}" msgids.
30764
30765 2000-07-10  Paul Eggert  <eggert@twinsun.com>
30766
30767         From a suggestion by Bruno Haible.
30768         * m4/mbstate_t.m4 (AC_MBSTATE_T):
30769         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
30770         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
30771         and mbstate_t, to a single-part test that simply defines mbstate_t.
30772         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
30773         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
30774
30775 2000-07-10  Jim Meyering  <meyering@lucent.com>
30776
30777         * m4/strerror_r.m4: Mirror the correction made in autoconf.
30778
30779         * m4/gnu-source.m4: Output to confdefs.h directly.
30780         Suggestion from Akim Demaille.
30781
30782 2000-07-09  Paul Eggert  <eggert@twinsun.com>
30783
30784         The old behavior of quoting `like this' doesn't look good with
30785         newer, ISO-style fonts.  See:
30786         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
30787
30788         Instead, quote "like this" by default.  Let the translator
30789         tailor the locale-specific quoting behavior by providing
30790         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
30791
30792         * lib/quotearg.c (N_): New macro.
30793         (gettext_default): New function.
30794         (quotearg_buffer_restyled): Use
30795         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
30796         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
30797
30798 2000-07-09  Jim Meyering  <meyering@lucent.com>
30799
30800         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
30801         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
30802
30803         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
30804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
30805
30806 2000-07-09  Jim Meyering  <meyering@lucent.com>
30807
30808         * lib/Most files: Update copyright dates to include 2000.
30809
30810 2000-07-08  Jim Meyering  <meyering@lucent.com>
30811
30812         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
30813         if not defined.
30814         (xgethostname): Remove now-unnecessary #ifdef.
30815         Move declaration of `err' into loop where it's used.
30816
30817 2000-07-05  Paul Eggert  <eggert@twinsun.com>
30818         and Bruno Haible  <haible@clisp.cons.org>
30819
30820         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
30821         only if the test for an object-type mbstate_t fails.  This
30822         prevents us from mistakenly reporting that mbstate_t is a
30823         system object type after we "#define mbstate_t int" to work
30824         around its lack.
30825
30826 2000-07-05  Paul Eggert  <eggert@twinsun.com>
30827         and Bruno Haible  <haible@clisp.cons.org>
30828
30829         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
30830
30831 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30832
30833         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
30834         to strerror_r.
30835         Include <ctype.h> for use of isalpha.
30836
30837 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30838
30839         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
30840         by allocating a larger buffer. Test the gethostname return value for
30841         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
30842         returns an error and ENAMETOOLONG isn't defined.
30843
30844 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30845
30846         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
30847         dimension.
30848
30849 2000-07-04  Jim Meyering  <meyering@lucent.com>
30850
30851         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
30852         of the deprecated AC_CHECKING.
30853
30854 2000-07-04  Jim Meyering  <meyering@lucent.com>
30855
30856         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
30857         Reported by Bruno Haible.
30858
30859 2000-07-04  Jim Meyering  <meyering@lucent.com>
30860
30861         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
30862         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
30863         lacks mbrtowc.
30864
30865 2000-07-03  Paul Eggert  <eggert@twinsun.com>
30866
30867         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
30868         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
30869
30870 2000-07-03  Paul Eggert  <eggert@twinsun.com>
30871         and Bruno Haible  <haible@clisp.cons.org>
30872
30873         * lib/quotearg.c (mbrtowc):
30874         Assign to *pwc, and return 1 only if result is nonzero.
30875         (iswprint): Use ISPRINT when substituting our own mbrtowc.
30876
30877 2000-07-03  Jim Meyering  <meyering@lucent.com>
30878
30879         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
30880
30881 2000-07-03  Jim Meyering  <meyering@lucent.com>
30882
30883         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
30884         This is necessary to get a definition of e.g., UTMP_FILE on
30885         HP-UX 10.20.
30886         From Bob Proulx.
30887
30888 2000-07-02  Jim Meyering  <meyering@lucent.com>
30889
30890         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
30891
30892         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
30893         AC_LIBOBJ(function_name).
30894         * m4/chown.m4: Likewise.
30895         * m4/fnmatch.m4: Likewise.
30896         * m4/ftruncate.m4: Likewise.
30897         * m4/getgroups.m4: Likewise.
30898         * m4/getline.m4: Likewise.
30899         * m4/group-member.m4: Likewise.
30900         * m4/jm-macros.m4: Likewise.
30901         * m4/lstat.m4: Likewise.
30902         * m4/malloc.m4: Likewise.
30903         * m4/memcmp.m4: Likewise.
30904         * m4/nanosleep.m4: Likewise.
30905         * m4/putenv.m4: Likewise.
30906         * m4/realloc.m4: Likewise.
30907         * m4/regex.m4: Likewise.
30908         * m4/stat.m4: Likewise.
30909         * m4/strftime.m4: Likewise.
30910
30911 2000-07-02  Jim Meyering  <meyering@lucent.com>
30912
30913         * lib/quotearg.c (mbstate_t): Don't define here.
30914
30915 2000-07-02  Jim Meyering  <meyering@lucent.com>
30916
30917         * lib/nanosleep.c (SIGCONT): Define if not already defined.
30918
30919 2000-07-01  Jim Meyering  <meyering@lucent.com>
30920
30921         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
30922
30923 2000-07-01  Jim Meyering  <meyering@lucent.com>
30924
30925         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
30926         problem.
30927
30928 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
30929
30930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
30931         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
30932
30933 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
30934
30935         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
30936         per change in ../m4/ls-mntd-fs.m4.
30937         (read_filesystem_list): Ignore symbolic links.
30938
30939 2000-06-29  Jim Meyering  <meyering@lucent.com>
30940
30941         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
30942         for declaration of strcmp.
30943
30944         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
30945
30946         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
30947         Avoid warning by casting result to `char *' to remove `const'.
30948
30949 2000-06-28  Jim Meyering  <meyering@lucent.com>
30950
30951         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
30952         included by quotearg.c, for which we perform this test.  From
30953         Bruno Haible.
30954
30955 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
30956
30957         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
30958         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
30959         <utmpx.h> exists, put readutmp.o into LIBOBJS.
30960
30961 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
30962
30963         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
30964
30965 2000-06-26  Paul Eggert  <eggert@twinsun.com>
30966
30967         savedir now sets errno on failure and invokes xmalloc to get memory.
30968         Fix a couple of other minor bugs while we're at it.
30969
30970         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
30971         (NAMLEN): Remove macro.
30972         (malloc, realloc): Remove decls.
30973         (stpcpy): Likewise.
30974         ("xalloc.h"): Include.
30975         (NAME_SIZE_DEFAULT): New macro.
30976         (savedir): Use xmalloc / xrealloc to allocate memory.
30977         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
30978         Skip "" directory entries.
30979         Use strlen to calculate directory entry length, since the old method
30980         is rarely used these days and isn't worth supporting.
30981         Don't use a pointer after freeing it.
30982         Check for integer overflow when calculating allocation size.
30983         Use memcpy to copy entries, instead of stpcpy.
30984         Set errno properly when returning NULL.
30985         Check for readdir error.
30986
30987 2000-06-26  Jim Meyering  <meyering@lucent.com>
30988
30989         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
30990
30991 2000-06-25  Jim Meyering  <meyering@lucent.com>
30992
30993         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
30994         Linux header bug when _XOPEN_SOURCE is defined to 500.
30995
30996 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
30997
30998         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
30999         deficiency.
31000
31001 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
31002
31003         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
31004         Include xalloc.h.
31005         Don't include <stdlib.h>.  Don't declare malloc, realloc.
31006
31007 2000-06-24  Jim Meyering  <meyering@lucent.com>
31008
31009         * m4/strerror_r.m4: Revive this file -- to try out an experimental
31010         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
31011         for which strerror does return char*, but which lacks a conveniently
31012         accessible declaration of the function.  If the compile-test says
31013         strerror_r doesn't work, then resort to a `run'-test that works on
31014         BeOS and segfaults on DEC Unix.
31015
31016 2000-06-24  Jim Meyering  <meyering@lucent.com>
31017
31018         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
31019
31020 2000-06-23  Paul Eggert  <eggert@twinsun.com>
31021
31022         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
31023         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
31024
31025 2000-06-23  Paul Eggert  <eggert@twinsun.com>
31026
31027         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
31028         (mbrtowc, mbstate_t): Define substitutes if
31029         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
31030         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
31031         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
31032
31033 2000-06-23  Jim Meyering  <meyering@lucent.com>
31034
31035         * m4/afs.m4: Add missing AC_MSG_RESULT.
31036         Reported by Bruno Haible.
31037
31038         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
31039         Suggestion from Bruno Haible.
31040
31041 2000-06-23  Jim Meyering  <meyering@lucent.com>
31042
31043         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
31044
31045 2000-06-21  Jim Meyering  <meyering@lucent.com>
31046
31047         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
31048
31049 2000-06-21  Jim Meyering  <meyering@lucent.com>
31050
31051         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
31052         (noinst_HEADERS): Add getstr.h.
31053
31054         * lib/getline.c (getstr): Move into a separate file.
31055         * lib/getstr.c (getstr): New file, extracted from getline.c, with
31056         the following changes: new parameter, delim2; both delim[12]
31057         parameters have type `int', not `char'.  The latter would lose
31058         with 8-bit delimiters.
31059         * lib/getstr.h: New file.
31060
31061 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
31062
31063         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
31064         than 1024, return a memory chunk of least possible size, instead
31065         of size PATH_MAX + 2. In the loop, increment the size proportionally.
31066         Use free/xmalloc instead of xrealloc to avoid copying for very long
31067         paths.
31068
31069 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
31070
31071         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
31072         the empty string.
31073
31074 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
31075
31076         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
31077         address, not strdup.  Include <stdlib.h> and don't declare free().
31078
31079 2000-06-19  Jim Meyering  <meyering@lucent.com>
31080
31081         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
31082
31083 2000-06-18  Jim Meyering  <meyering@lucent.com>
31084
31085         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
31086
31087         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
31088         `checking whether...' message to be consistent with that of the
31089         lstat test.
31090
31091 2000-06-18  Jim Meyering  <meyering@lucent.com>
31092
31093         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
31094         Besides, these days every porting target provides a mkdir function.
31095
31096         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
31097         needed. (this snippet comes from src/system.h).
31098
31099 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
31100
31101         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
31102
31103 2000-06-15  Paul Eggert  <eggert@twinsun.com>
31104
31105         * lib/human.c (adjust_value): New function.
31106         (human_readable_inexact): Apply rounding style even when
31107         printing approximate values.
31108
31109 2000-06-14  Paul Eggert  <eggert@twinsun.com>
31110
31111         * lib/human.c (human_readable_inexact): Allow an input block
31112         size that is not a multiple of the output block size, and vice versa.
31113         Reported by Piergiorgio Sartor.
31114
31115 2000-06-14  Paul Eggert  <eggert@twinsun.com>
31116
31117         * lib/getdate.y (get_date): Apply relative times after time
31118         zone indicator, not before.  Reported by Todd A. Jacobs.
31119
31120 2000-06-13  Jim Meyering  <meyering@lucent.com>
31121
31122         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
31123
31124         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
31125
31126 2000-06-12  Paul Eggert  <eggert@twinsun.com>
31127
31128         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
31129
31130 2000-06-12  Jim Meyering  <meyering@lucent.com>
31131
31132         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
31133         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
31134         optional argument.
31135         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
31136         the optional argument, `lib'.
31137
31138 2000-06-08  Jim Meyering  <meyering@lucent.com>
31139
31140         * m4/largefile.m4: Remove file (now that it's part of autoconf).
31141
31142 2000-06-04  Paul Eggert  <eggert@twinsun.com>
31143
31144         Rewrite largefile configuration so that we don't need to run
31145         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
31146         AC_CANONICAL_HOST in configure.in -- jmm]
31147
31148         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
31149         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
31150         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
31151         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
31152         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
31153         All uses changed.
31154         Instead of inspecting the output of getconf, try to compile the
31155         test program without and with the macro definition.
31156         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
31157         for getconf.  Instead, check for the needed flags by compiling
31158         test programs.
31159
31160 2000-06-04  Paul Eggert  <eggert@twinsun.com>
31161
31162         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
31163
31164 2000-06-04  Jim Meyering  <meyering@lucent.com>
31165
31166         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
31167         SunOS 4.1.4 for which gid_t is an unsigned type.
31168
31169 2000-06-03  Jim Meyering  <meyering@lucent.com>
31170
31171         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
31172         now that autoconf requires that.
31173
31174         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
31175         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
31176         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
31177
31178 2000-06-03  Jim Meyering  <meyering@lucent.com>
31179
31180         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
31181
31182 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
31183
31184         * m4/glibc21.m4: New file.
31185         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
31186
31187 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
31188
31189         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
31190         newer, don't install charset.alias.
31191         * lib/config.charset: Change the Linux/glibc rules so they become empty
31192         on glibc-2.1 or newer.
31193
31194 2000-06-02  Jim Meyering  <meyering@lucent.com>
31195
31196         * lib/mountlist.c: Back out last change.  Instead, do this...
31197         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
31198         me_dummy member using the same `ignore'-testing code.
31199         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
31200         fs_type strings.
31201         From Mark D. Roth.
31202
31203 2000-05-29  Jim Meyering  <meyering@lucent.com>
31204
31205         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
31206         mounts with the `ignore' attribute.  Based on a patch from
31207         Mark D. Roth.
31208
31209 2000-05-28  Jim Meyering  <meyering@lucent.com>
31210
31211         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
31212         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31213         * m4/stat.m4: Likewise.
31214         * m4/lstat.m4: Likewise.
31215         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
31216
31217         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
31218         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
31219
31220 2000-05-26  Jim Meyering  <meyering@lucent.com>
31221
31222         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
31223
31224 2000-05-24  Jim Meyering  <meyering@lucent.com>
31225
31226         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
31227         autoconf requires that.
31228         * m4/lib-check.m4: Likewise.
31229         * m4/jm-macros.m4: Likewise.
31230         * m4/strftime.m4: Likewise.
31231
31232         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
31233         AC_CHECK_DECLS, now that autoconf requires that.
31234
31235 2000-05-22  Jim Meyering  <meyering@lucent.com>
31236
31237         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31238         * m4/lstat.m4: Likewise.
31239
31240 2000-05-22  Jim Meyering  <meyering@lucent.com>
31241
31242         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
31243
31244 2000-05-20  Jim Meyering  <meyering@lucent.com>
31245
31246         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
31247         (jm_PREREQ): Use it.
31248
31249 2000-05-18  Jim Meyering  <meyering@lucent.com>
31250
31251         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
31252         back, too, since it may have been modified by allocate_entry.
31253         (hash_delete): Rewrite to use neither the assignment operator
31254         nor the comma operator in an if-expression.
31255
31256 2000-05-15  Paul Eggert  <eggert@twinsun.com>
31257
31258         * lib/closeout.c:
31259         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
31260         Remove; no longer needed.
31261         "quotearg.h": Add include.
31262         (file_name): Do not bother to explicitly initialize to NULL; it's less
31263         efficient on some hosts.
31264         (close_stdout_status): Remove test as to whether stdout was already
31265         closed; it breaks for the case "echo x | sort >&-".
31266         Quote file name colons.
31267         Do not assume that _("write error") lacks format strings.
31268
31269 2000-05-15  Jim Meyering  <meyering@lucent.com>
31270
31271         * lib/version-etc.c (version_etc_copyright): Update the copyright
31272         string used in all --version output.
31273
31274 2000-05-14  Jim Meyering  <meyering@lucent.com>
31275
31276         * lib/closeout.c (close_stdout_set_file_name): New function.
31277         (close_stdout_status): Use new file-scoped global.
31278         Return right away if fstat says the stdout file descriptor is invalid.
31279         * lib/closeout.h (close_stdout_set_file_name): Declare.
31280
31281 2000-05-10  Jim Meyering  <meyering@lucent.com>
31282
31283         * lib/closeout.c [default_exit_status]: New file-scoped variable.
31284         (close_stdout_set_status): New function.
31285         * lib/closeout.h (close_stdout_set_status): Declare.
31286
31287 2000-05-09  Jim Meyering  <meyering@lucent.com>
31288
31289         * m4/gettext.m4: Rename this...
31290         * m4/libintl.m4: ...to this.
31291
31292 2000-05-08  Jim Meyering  <meyering@lucent.com>
31293
31294         * lib/long-options.c: Don't include closeout.h.
31295         (parse_long_options): Don't call close_stdout for --version.
31296
31297 2000-05-06  Paul Eggert  <eggert@twinsun.com>
31298
31299         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
31300         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
31301         2.1.3 bug.  This avoids a clash when files like regex.c define
31302         _GNU_SOURCE.
31303
31304 2000-05-06  Jim Meyering  <meyering@lucent.com>
31305
31306         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
31307         (AC_REPLACE_FUNCS): Add strnlen.
31308
31309         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
31310         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
31311
31312         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
31313         AC_SEARCH_LIBS call for nanosleep.
31314         (LIB_NANOSLEEP): Set and AC_SUBST.
31315
31316 2000-05-06  Jim Meyering  <meyering@lucent.com>
31317
31318         * lib/strnlen.c: Undefine __strnlen and strnlen.
31319         [!weak_alias]: Define __strnlen to strnlen.
31320
31321         * lib/atexit.c: New file, from libiberty.
31322
31323 2000-05-06  Jim Meyering  <meyering@lucent.com>
31324
31325         * lib/closeout.c (close_stdout_status): Also check for errors on the
31326         stderr stream.
31327
31328 2000-05-05  Jim Meyering  <meyering@lucent.com>
31329
31330         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
31331         AC_SEARCH_LIBS call for clock_gettime.
31332         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
31333
31334         * m4/search-libs.m4: Update from autoconf.
31335
31336         su doesn't work on Solaris 2.6.
31337         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
31338         <shadow.h>.  Reported by Dragos Harabor.
31339
31340 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
31341
31342         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
31343         memcpy instead of xmalloc, xrealloc, path_concat.
31344         (locale_charset): Treat empty environment variables as absent.
31345         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
31346
31347 2000-05-04  Jim Meyering  <meyering@lucent.com>
31348
31349         * lib/getopt.c: Update from glibc.
31350         * lib/obstack.c: Likewise.
31351         * lib/obstack.h: Likewise.
31352         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
31353         file
31354
31355         * lib/regex.h: Likewise.
31356         * lib/strndup.c: Likewise.
31357         * lib/strnlen.c: New file, from glibc.
31358
31359 2000-05-03  Jim Meyering  <meyering@lucent.com>
31360
31361         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
31362
31363 2000-05-02  Paul Eggert  <eggert@twinsun.com>
31364
31365         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
31366         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
31367         compile-time test, rather than inspecting host and OS, to
31368         decide whether to define _LARGEFILE_SOURCE.
31369
31370 2000-05-01  Jim Meyering  <meyering@lucent.com>
31371
31372         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
31373
31374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
31375         Based on a patch from Bruno Haible.
31376
31377 2000-05-01  Jim Meyering  <meyering@lucent.com>
31378
31379         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
31380
31381 2000-04-29  Jim Meyering  <meyering@lucent.com>
31382
31383         * lib/path-concat.c: Declare strdup only if it's not defined.
31384         * lib/canon-host.c: Likewise.
31385
31386 2000-04-28  Jim Meyering  <meyering@lucent.com>
31387
31388         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
31389         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
31390         is included first, then limits.h is included by locale.h by libintl.h.
31391         From John David Anglin.
31392
31393 2000-04-25  Jim Meyering  <meyering@lucent.com>
31394
31395         * lib/makepath.c (S_IRWXUGO): Define.
31396         (make_path): Always perform explicit chmod if MODE specifies any
31397         of the `special' permission bits.  Prompted by a bug report against
31398         install from Mate Wierdl and Joost van Baal.
31399
31400 2000-04-18  Jim Meyering  <meyering@lucent.com>
31401
31402         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
31403         (jm_PREREQ): Use it.
31404
31405 2000-04-18  Jim Meyering  <meyering@lucent.com>
31406
31407         * lib/README: New file.
31408
31409         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
31410         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
31411
31412 2000-04-17  Jim Meyering  <meyering@lucent.com>
31413
31414         Get it right :-)
31415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
31416         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
31417         Suggestion from Akim Demaille.
31418
31419 2000-04-17  Jim Meyering  <meyering@lucent.com>
31420
31421         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
31422         the definition of it to rpl_strftime also defined-away the system's
31423         declaration.
31424
31425 2000-04-15  Jim Meyering  <meyering@lucent.com>
31426
31427         Use `C' to denote so-called `contiguous' files, the same way
31428         that tar does.
31429         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
31430         (ftypelet): Use S_ISCTG.
31431         From Michael Deutschmann.
31432
31433 2000-04-14  Jim Meyering  <meyering@lucent.com>
31434
31435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
31436         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
31437         clobbered.
31438
31439 2000-04-14  Jim Meyering  <meyering@lucent.com>
31440
31441         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
31442
31443 2000-04-13  Jim Meyering  <meyering@lucent.com>
31444
31445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
31446         AH_VERBATIM to insert required #ifndef into config.h.in.
31447         Suggestion from Akim Demaille.
31448
31449 2000-04-12  Jim Meyering  <meyering@lucent.com>
31450
31451         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
31452         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
31453         Christian Krackowizer.
31454
31455         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
31456         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
31457         (AC_SYS_LARGEFILE): Require.
31458         (AM_C_PROTOTYPES): Require.
31459
31460 2000-04-08  Jim Meyering  <meyering@lucent.com>
31461
31462         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
31463         names don't conflict.  Reported by Eli Zaretskii.
31464
31465 2000-04-07  Jim Meyering  <meyering@lucent.com>
31466
31467         * lib/putenv.c: Move inclusion of errno.h so it follows that of
31468         sys/types.h, to work around system header problems on AIX 3.2.5.
31469         From Bruno Haible.
31470
31471 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
31472
31473         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
31474         bug.  Deal with the different error behavior of Irix iconv.
31475
31476 2000-04-05  Paul Eggert  <eggert@twinsun.com>
31477
31478         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
31479         IRIX if the installer said otherwise.
31480
31481 2000-04-05  Jim Meyering  <meyering@lucent.com>
31482
31483         Portability tweaks required for ultrix4.3.
31484         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
31485         (jm_CHECK_DECLS): Add getutent to the list of functions.
31486         (_jm_DECL_HEADERS): Add utmpx.h.
31487         From John David Anglin.
31488
31489         * m4/strftime.m4: Back out the 2000-04-02 change.
31490         Instead of that change, simply undefine putenv in the test program.
31491
31492 2000-04-05  Jim Meyering  <meyering@lucent.com>
31493
31494         Portability tweaks required for ultrix4.3.
31495         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
31496         getutent.
31497         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
31498         * lib/canon-host.c: Declare strdup.
31499         * lib/path-concat.c: Likewise.
31500         From John David Anglin.
31501
31502 2000-04-04  Jim Meyering  <meyering@lucent.com>
31503
31504         Be more DOS 8.3-friendly.
31505         * lib/ref-add.sin: Renamed from ref-add.sed.in.
31506         * lib/ref-del.sin: Renamed from ref-del.sed.in.
31507         * lib/Makefile.am: Reflect renaming.
31508         Reported by Eli Zaretskii.
31509
31510         Use a temporary file name that won't clash with `charset.alias'
31511         in the DOS 8.3 name space.
31512         * lib/Makefile.am (charset_tmp): Define.
31513         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
31514         (uninstall-local): Likewise.
31515         Reported by Eli Zaretskii.
31516
31517 2000-04-03  Jim Meyering  <meyering@lucent.com>
31518
31519         * m4/gettext.m4: Fix typo in comment.
31520
31521         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
31522         textutils/configure.in).  Suggestion from Paul Eggert.
31523         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
31524
31525 2000-04-02  Paul Eggert  <eggert@twinsun.com>
31526
31527         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
31528         variable in the shell rather than using putenv, which isn't
31529         portable.  This avoids the configure-time inter-test dependency
31530         on the potentially-renamed putenv function.
31531
31532 2000-03-30  Paul Eggert  <eggert@twinsun.com>
31533
31534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
31535         before checking struct stat.st_blksize, so that
31536         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
31537
31538 2000-03-29  Paul Eggert  <eggert@twinsun.com>
31539
31540         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
31541         since strftime.c uses HAVE_STRFTIME to decide whether to use
31542         the underlying strftime.
31543
31544 2000-03-29  Paul Eggert  <eggert@twinsun.com>
31545
31546         * lib/time/strftime.c (my_strftime): Make sure we call the system
31547         strftime, not ourselves, when invoking the underlying strftime.
31548
31549 2000-03-24  Jim Meyering  <meyering@lucent.com>
31550
31551         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
31552         (charset_alias): Define.
31553         (install-exec-local): Factor out common code.
31554         (uninstall-local): Split lines longer than 80.
31555         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
31556         (SUFFIXES): Define.
31557         (.sed.in.sed): New rule.  Don't redirect directly to $@.
31558         (CLEANFILES): Add ref-add.sed and ref-del.sed.
31559
31560 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
31561
31562         * lib/config.charset: Output a line containing "Packages using this
31563         file".
31564         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
31565         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
31566         ref-del.sed): New rules.
31567
31568 2000-03-17  Jim Meyering  <meyering@lucent.com>
31569
31570         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
31571         Otherwise, include <strings.h>
31572
31573 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
31574
31575         * lib/unicodeio.c (utf8_wctomb): New function.
31576         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
31577         format instead of in UCS-4 with platform dependent endianness.
31578
31579 2000-03-10  Jim Meyering  <meyering@lucent.com>
31580
31581         * m4/lib-check.m4: Look for getspnam in -lgen, too.
31582         From Marco Franzen.
31583
31584 2000-03-07  Paul Eggert  <eggert@twinsun.com>
31585
31586         * lib/savedir.c (savedir): Work even if directory size is
31587         negative; this can happen with some screwy NFS configurations.
31588
31589 2000-03-06  Jim Meyering  <meyering@lucent.com>
31590
31591         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
31592         if it's NULL (because we ran out of memory).  From Bruno Haible.
31593
31594 2000-03-05  Jim Meyering  <meyering@lucent.com>
31595
31596         * lib/localcharset.c ("path-concat.h"): Include.
31597         (get_charset_aliases): Use path_concat instead of ANSI string
31598         concatenation.
31599
31600         * lib/unicodeio.h (PARAMS): Define.
31601         Use it to guard prototype.
31602
31603 2000-03-04  Jim Meyering  <meyering@lucent.com>
31604
31605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
31606         for lib/localcharset.c.
31607
31608 2000-03-04  Jim Meyering  <meyering@lucent.com>
31609
31610         * lib/Makefile.am (install-exec-local): Create $(libdir) before
31611         installing into it.
31612         (uninstall-local): Uncomment this rule so `make distcheck' works
31613         once again.
31614
31615         * lib/unicodeio.c (<errno.h>): Include it.
31616         (errno): Declare if not defined.
31617
31618         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
31619
31620         * lib/config.charset: New version, incorporating remarks from a linux
31621         i18n mailing list.  From Bruno Haible.
31622
31623 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
31624
31625         * m4/codeset.m4: New file.
31626         * m4/iconv.m4: New file.
31627         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
31628
31629 2000-03-03  Jim Meyering  <meyering@lucent.com>
31630
31631         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
31632
31633 2000-03-02  Jim Meyering  <meyering@lucent.com>
31634
31635         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
31636         the messages come out on separate lines.
31637
31638         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
31639         rather than jm_CHECK_DECLARATIONS.
31640         * m4/decl.m4: Remove now-unused file.
31641
31642         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
31643         geteuid.
31644
31645 2000-03-02  Jim Meyering  <meyering@lucent.com>
31646
31647         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
31648
31649 2000-03-01  Jim Meyering  <meyering@lucent.com>
31650
31651         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
31652         * lib/unicodeio.c: Likewise.
31653
31654 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
31655
31656         * lib/config.charset: New file.
31657         * lib/localcharset.c: New file.
31658         * lib/unicodeio.h, lib/unicodeio.c: New files.
31659         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
31660         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
31661         (noinst_HEADERS): Add unicodeio.h.
31662         (all-local, install-exec-local, charset.alias): New targets.
31663
31664 2000-02-28  Paul Eggert  <eggert@twinsun.com>
31665
31666         * lib/quotearg.c (ALERT_CHAR): New macro.
31667         (quotearg_buffer_restyled): Use it.
31668
31669 2000-02-27  Jim Meyering  <meyering@lucent.com>
31670
31671         * m4/check-decl.m4: Add getenv to the list.
31672
31673 2000-02-27  Jim Meyering  <meyering@lucent.com>
31674
31675         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
31676         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
31677
31678         * lib/backupfile.c: Guard inclusion of stdlib.h with
31679         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
31680         Declare malloc if needed.
31681
31682         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
31683         `#ifndef HAVE_DECL..'
31684         now that autoconf always defines the HAVE_DECL_ symbols.
31685         * lib/human.c: Likewise.
31686         * lib/same.c: Likewise.
31687         * lib/strtoumax.c: Likewise.
31688
31689         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
31690         declaration check was not run.
31691         * lib/hash.c: Likewise.
31692         * lib/human.c: Likewise.
31693         * lib/same.c: Likewise.
31694         * lib/strtoumax.c: Likewise.
31695
31696         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
31697         `.', then first look up the entire `.'-containing string as a login
31698         name.
31699
31700 2000-02-23  Jim Meyering  <meyering@lucent.com>
31701
31702         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
31703         in place of my hack.
31704
31705 2000-02-18  Paul Eggert  <eggert@twinsun.com>
31706
31707         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
31708         (textint): New typedef.
31709         (parser_control): Member year changed from int to textint.
31710         All uses changed.
31711         (YYSTYPE): Removed; replaced by %union with int and textint members.
31712         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
31713         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
31714         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
31715         (tSNUMBER, tUNUMBER): Now of type <textintval>.
31716         (date, number, to_year): Use width of number in digits, not its value,
31717         to determine whether it's a 2-digit year, or a 2-digit time.
31718         (yylex): Store number of digits of numeric tokens.
31719         Reported by John Kendall.
31720
31721         (parser_control): Changed from struct parser_control to typedef (for
31722         consistency).  All uses changed.
31723
31724         (tID): Removed; not used.
31725         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
31726
31727 2000-02-14  Paul Eggert  <eggert@twinsun.com>
31728
31729         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
31730         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
31731
31732 2000-02-12  Jim Meyering  <meyering@lucent.com>
31733
31734         * lib/userspec.c (ISDIGIT): Define it.
31735         (isdigit): Remove definition.
31736         (is_number): Use ISDIGIT, not isdigit.
31737         <libintl.h>: Include.
31738         (_ and N_): Define.
31739         (parse_user_spec): Mark translatable strings.
31740
31741 2000-02-10  Jim Meyering  <meyering@lucent.com>
31742
31743         With these changes, nanosleep.[ch] are finally enough like the other
31744         lib/* replacement files to compile on a few more losing systems.
31745
31746         * lib/nanosleep.h: Don't include config.h.
31747         Remove prototype from declaration of nanosleep.
31748         (PARAMS): Remove now-unneeded definition.
31749         * lib/nanosleep.c: #undef nanosleep.
31750         (rpl_nanosleep): Rename from nanosleep.
31751
31752 2000-02-10  Jim Meyering  <meyering@lucent.com>
31753
31754         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
31755         gnu_nanosleep to rpl_nanosleep.
31756
31757 2000-02-09  Jim Meyering  <meyering@lucent.com>
31758
31759         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
31760         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
31761
31762 2000-02-08  Akim Demaille  <akim@epita.fr>
31763
31764         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
31765         `[' and `]' and remove uses of `changequote'.
31766         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
31767         (AC_SYS_LARGEFILE): Likewise.
31768         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31769         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
31770         of changequote.
31771         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
31772         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
31773         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
31774         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
31775
31776 2000-02-05  Jim Meyering  <meyering@lucent.com>
31777
31778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
31779         Remove explicit use of AC_HEADER_TIME.  It is required by
31780         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
31781         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
31782         in autoconf whereby the expansion of the latter ended up preceding
31783         the expansion of its prerequisite, AC_HEADER_TIME.
31784         Reported by Volker Borchert.
31785
31786 2000-02-03  Jim Meyering  <meyering@lucent.com>
31787
31788         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
31789
31790 2000-02-03  Jim Meyering  <meyering@lucent.com>
31791
31792         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
31793         rather than with `#if HAVE_UTMPNAME'.
31794
31795 2000-02-02  Jim Meyering  <meyering@lucent.com>
31796
31797         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
31798         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
31799         Reported by Eli Zaretskii.
31800
31801 2000-02-01  Jim Meyering  <meyering@lucent.com>
31802
31803         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
31804
31805 2000-01-31  Jim Meyering  <meyering@lucent.com>
31806
31807         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
31808         functions.  Add the time.h and sys/time.h headers along with the
31809         AC_REQUIRE'ment of AC_HEADER_TIME.
31810
31811 2000-01-31  Jim Meyering  <meyering@lucent.com>
31812
31813         * lib/nanosleep.h (nanosleep): Guard declaration with
31814         `#if ! HAVE_DECL_NANOSLEEP'.
31815         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
31816         the declaration in that vendor's sys/timers.h.
31817         Reported by Christian Krackowizer.
31818
31819         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
31820         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
31821         (ISPRINT): Likewise.
31822         Reported by Tom Tromey.
31823
31824 2000-01-30  Jim Meyering  <meyering@lucent.com>
31825
31826         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
31827
31828         * m4/prereq.m4 (utmp_includes): Define.
31829         Check for ut_user and ut_name members in both struct utmpx
31830         and struct utmp.
31831
31832 2000-01-30  Jim Meyering  <meyering@lucent.com>
31833
31834         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
31835         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
31836         header files where only utmpx.ut_user is declared.
31837
31838         * lib/readutmp.h (UT_USER): Define.
31839
31840 2000-01-29  Jim Meyering  <meyering@lucent.com>
31841
31842         * m4/lib-check.m4: New file containing library-related checks from
31843         fileutils and sh-utils (textutils had none).
31844
31845 2000-01-28  Jim Meyering  <meyering@lucent.com>
31846
31847         * m4/perl.m4: Change format of warning message to look more like that
31848         from the missing script.  Suggestion from François Pinard.
31849
31850 2000-01-25  Jim Meyering  <meyering@lucent.com>
31851
31852         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
31853         well as time.h in the compile check.
31854         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
31855         Fix typo in cross-compiling case: s/yes/no/.
31856
31857 2000-01-23  Jim Meyering  <meyering@lucent.com>
31858
31859         * m4/jm-macros.m4: Move df-related tests here from
31860         fileutils/configure.in
31861
31862         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
31863         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
31864
31865         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
31866         s/space/ac_fsusage_space/.
31867         (jm_FILE_SYSTEM_USAGE): Take two parameters.
31868
31869         * m4/ftruncate.m4: New file (derived from part of
31870         fileutils/configure.in).
31871         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
31872         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
31873
31874         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
31875         AC_SUBST these here, rather than just in sh-util/configure.in, so
31876         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
31877         all the same.
31878         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
31879         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
31880         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
31881         (AC_SUBST(POW_LIBM)): Likewise.
31882         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
31883
31884 2000-01-23  Jim Meyering  <meyering@lucent.com>
31885
31886         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
31887         obstack.c.
31888
31889 2000-01-22  Jim Meyering  <meyering@lucent.com>
31890
31891         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
31892
31893         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
31894
31895         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
31896         configure.in
31897         (AC_CHECK_HEADERS): Likewise for sh-utils.
31898         (AC_CHECK_HEADERS): Likewise for textutils.
31899         Merge the three lists of headers.
31900
31901         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
31902         from fileutils' configure.in.
31903
31904         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
31905         code. Moved tests into their own function (_jm_DECL_HEADERS) in
31906         check-decl.m4.
31907
31908         * m4/check-decl.m4: Use #if rather than #ifdef.
31909         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
31910         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
31911         (_jm_DECL_HEADERS): Define new function.
31912         (jm_CHECK_DECLARATIONS): Require it.
31913
31914 2000-01-22  Jim Meyering  <meyering@lucent.com>
31915
31916         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
31917         [! HAVE_DECL_STRTOULL]: Declare strtoull.
31918         Required for some AIX systems.  Reported by Christian Krackowizer.
31919         [TESTING] (main): New function.
31920
31921         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
31922         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
31923         letters.
31924
31925         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
31926         iswprint.
31927
31928         * lib/strverscmp.c (ISDIGIT): Define.
31929         (strverscmp): Use ISDIGIT, not isdigit.
31930
31931 2000-01-19  Jim Meyering  <meyering@lucent.com>
31932
31933         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
31934         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
31935         defines `struct timespec' in <sys/time.h>
31936
31937         * m4/c-bs-a.m4: Remove uses of changequote altogether.
31938         Thanks to Akim for explaining.
31939
31940 2000-01-17  Paul Eggert  <eggert@twinsun.com>
31941
31942         * lib/nanosleep.c (nanosleep):
31943         Don't use SA_INTERRUPT to decide whether to call sigaction, as
31944         POSIX.1 doesn't require SA_INTERRUPT and some systems
31945         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
31946         it's been part of POSIX.1 since day 1 (in 1988).
31947
31948 2000-01-17  Jim Meyering  <meyering@lucent.com>
31949
31950         * lib/interlock: Remove unused file.  Reported by François Pinard.
31951
31952 2000-01-16  Paul Eggert  <eggert@twinsun.com>
31953
31954         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
31955         alert, backslash, formfeed, and vertical tab unnecessarily in
31956         shell quoting style.
31957
31958 2000-01-16  Jim Meyering  <meyering@lucent.com>
31959
31960         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
31961         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
31962         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
31963         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
31964
31965 2000-01-16  Jim Meyering  <meyering@lucent.com>
31966
31967         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
31968         because the latter didn't work.
31969
31970 2000-01-15  Jim Meyering  <meyering@lucent.com>
31971
31972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
31973         (AC_REPLACE_FUNCS): Add memcpy and memset.
31974         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
31975         Add strpbrk.
31976         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
31977
31978 2000-01-12  Jim Meyering  <meyering@lucent.com>
31979
31980         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
31981         (jm_PREREQ): Use it.
31982         (jm_PREREQ_READUTMP): New macro.
31983         (jm_PREREQ): Use it.
31984
31985 2000-01-11  Paul Eggert  <eggert@twinsun.com>
31986
31987         Quote multibyte characters correctly.
31988         * m4/c-bs-a.m4: New file.
31989         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
31990         (jm_PREREQ): Use it.
31991
31992 2000-01-11  Paul Eggert  <eggert@twinsun.com>
31993
31994         * m4/uintmax_t.m4: Port to autoconf 2.13.
31995
31996 2000-01-08  Jim Meyering  <meyering@ascend.com>
31997
31998         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
31999         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
32000
32001 2000-01-04  Jim Meyering  <meyering@ascend.com>
32002
32003         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
32004         jm_STRUCT_DIRENT_D_TYPE.
32005         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
32006         jm_STRUCT_DIRENT_D_INO.
32007         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
32008         jm_STRUCT_UTIMBUF.
32009         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
32010         renamings.
32011         * m4/utime.m4: Likewise.
32012
32013         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
32014         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
32015
32016 2000-01-03  Paul Eggert  <eggert@twinsun.com>
32017
32018         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
32019         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
32020
32021 2000-01-02  Jim Meyering  <meyering@ascend.com>
32022
32023         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
32024         remember if this is necessary.
32025
32026 1999-12-26  Jim Meyering  <meyering@ascend.com>
32027
32028         * m4/jm-macros.m4: Use it here.
32029         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
32030
32031 1999-12-23  Jim Meyering  <meyering@ascend.com>
32032
32033         * m4/jm-macros.m4: Check for clock_gettime (moved from
32034         fileutils/configure.in)
32035         Check for gettimeofday.
32036
32037 1999-12-20  Jim Meyering  <meyering@ascend.com>
32038
32039         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
32040         autoconf-2.14a-1999-12-20.
32041
32042 1999-12-19  Jim Meyering  <meyering@ascend.com>
32043
32044         * m4/lstat-slash.m4: New file.
32045         * m4/jm-macros.m4: Use the new macro:
32046         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32047
32048 1999-12-07  Jim Meyering  <meyering@ascend.com>
32049
32050         * m4/perl.m4: Require that File::Compare be available, too.
32051         Too many systems seem to lack it.
32052
32053         * m4/strftime.m4: Add checks for most of the cpp macros tested in
32054         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
32055
32056 1999-11-18  Paul Eggert  <eggert@twinsun.com>
32057
32058         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
32059         problem with the QNX 4.25 shell, which doesn't propagate exit
32060         status of failed commands inside shell assignments.
32061
32062 1999-11-17  Jim Meyering  <meyering@ascend.com>
32063
32064         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
32065
32066 1999-11-07  Jim Meyering  <meyering@ascend.com>
32067
32068         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
32069
32070 1999-11-06  Jim Meyering  <meyering@ascend.com>
32071
32072         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
32073         * m4/jm-macros.m4 (jm_MACROS): Use it here.
32074
32075 1999-11-05  Jim Meyering  <meyering@ascend.com>
32076
32077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
32078         configure.in of textutils, fileutils, and sh-utils into this one
32079         (shared between those packages) file.
32080         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
32081         AC_STRUCT_ST_BLKSIZE.
32082
32083 1999-11-03  Jim Meyering  <meyering@ascend.com>
32084
32085         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
32086         of AC_CHECK_TYPE checks includes unistd.h.
32087         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
32088         Suggestion from Akim Demaille.
32089
32090 1999-10-30  Jim Meyering  <meyering@ascend.com>
32091
32092         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
32093         m4-quoted string.
32094         * m4/ls-mntd-fs.m4: Likewise.
32095         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
32096         * m4/jm-winsz1.m4: Likewise.
32097
32098         * m4/const.m4: Remove file, since the fix made it into the experimental
32099         version of autoconf.
32100         * m4/mktime.m4: Likewise.
32101
32102         * m4/check-type.m4: Remove file, now that the latest version of
32103         AC_CHECK_TYPE takes a third arg to specify additional #includes.
32104
32105         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
32106         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
32107         AC_CHECK_TYPE.
32108
32109 1999-10-04  Jim Meyering  <meyering@ascend.com>
32110
32111         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
32112
32113 1999-09-22  Paul Eggert  <eggert@twinsun.com>
32114
32115         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
32116         2.95.1 bug with HP-UX 10.20.
32117
32118 1999-09-17  Jim Meyering  <meyering@ascend.com>
32119
32120         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
32121         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
32122         due to missing strdup (against sh-utils-2.0).
32123
32124 1999-08-29  Jim Meyering  <meyering@ascend.com>
32125
32126         * m4/jm-macros.m4: Require jm_BISON.
32127         * m4/bison.m4: New file.
32128
32129 1999-08-17  Paul Eggert  <eggert@twinsun.com>
32130
32131         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
32132         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
32133
32134 1999-08-05  Jim Meyering  <meyering@ascend.com>
32135
32136         * m4/getline.m4: Rename test file from conftestdata to conftest.data
32137         to avoid conflicts with `conftest' on 8+3 filesystems.
32138         Suggestion from Eli Zaretskii.
32139
32140 1999-08-04  Jim Meyering  <meyering@ascend.com>
32141
32142         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
32143         fileutils and sh-utils (textutils's getline test was inadequate).
32144         (AM_FUNC_GETLINE): Run this test.
32145         (AC_CHECK_FUNCS): Check for getdelim.
32146         Reported by Bob Proulx.
32147
32148 1999-08-02  Jim Meyering  <meyering@ascend.com>
32149
32150         * m4/jm-macros.m4: Add a comment.
32151
32152 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32153
32154         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
32155         <inttypes.h> defines strtoumax as a macro (and not as a
32156         function).
32157
32158 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32159
32160         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
32161         that we can shift, multiply and divide unsigned long long
32162         values; Ultrix cc can't do it.
32163
32164 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32165
32166         * m4/mktime.m4: New file, which is a preview of what should appear
32167         in the next public autoconf release.
32168
32169 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32170
32171         * m4/lfs.m4: Remove this file.
32172         * m4/largefile.m4: New file.  It contains the old contents of
32173         lfs.m4, except that all names with prefix AC_LFS have been
32174         changed to use the prefix AC_SYS_LARGEFILE instead, to be
32175         compatible with future autoconf versions.  Also, some minor m4
32176         quoting problems have been fixed.
32177
32178 1999-08-01  Paul Eggert  <eggert@twinsun.com>
32179
32180         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
32181         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
32182         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
32183         and simplify the shell code.
32184
32185 1999-08-01  Jim Meyering  <meyering@ascend.com>
32186
32187         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
32188         m4.
32189
32190 1999-07-20  Jim Meyering  <meyering@ascend.com>
32191
32192         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
32193
32194 1999-07-15  Jim Meyering  <meyering@ascend.com>
32195
32196         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
32197
32198 1999-05-22  Jim Meyering  <meyering@ascend.com>
32199
32200         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
32201
32202 1999-05-20  Jim Meyering  <meyering@ascend.com>
32203
32204         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
32205         Add a colon after each `then' in case $4 is empty.
32206
32207 1999-05-16  Jim Meyering  <meyering@ascend.com>
32208
32209         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
32210
32211 1999-05-10  Jim Meyering  <meyering@ascend.com>
32212
32213         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
32214
32215         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
32216         AC_FUNC_MKTIME.
32217
32218 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
32219
32220         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
32221
32222 1999-05-04  Paul Eggert  <eggert@twinsun.com>
32223
32224         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
32225         not CPPFLAGS, so that linking works correctly in IRIX.
32226
32227 1999-04-30  Paul Eggert  <eggert@twinsun.com>
32228
32229         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
32230
32231 1999-04-20  Paul Eggert  <eggert@twinsun.com>
32232
32233         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
32234         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
32235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
32236         jm_AC_TYPE_UNSIGNED_LONG_LONG.
32237         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
32238
32239         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
32240
32241 1999-04-20  Jim Meyering  <meyering@ascend.com>
32242
32243         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
32244         AC_REPLACE xstroull if necessary.  From Paul Eggert.
32245         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
32246
32247 1999-04-18  Jim Meyering  <meyering@ascend.com>
32248
32249         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
32250         * m4/jm-macros.m4: Use it.
32251
32252 1999-04-06  Jim Meyering  <meyering@ascend.com>
32253
32254         * m4/strftime.m4: Remove test for %f.
32255
32256 1999-03-29  Jim Meyering  <meyering@ascend.com>
32257
32258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
32259         superset of the AC_TYPE_* checks in the textutils, fileutils,
32260         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
32261         AC_TYPE_PID_T.
32262
32263 1999-03-28  Jim Meyering  <meyering@ascend.com>
32264
32265         * m4/jm-macros.m4: Define GNU_PACKAGE here.
32266         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
32267         replaced e.g., in the *.sh files of the sh-utils.
32268
32269 1999-03-20  Jim Meyering  <meyering@ascend.com>
32270
32271         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
32272         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
32273         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
32274
32275 1999-03-19  Jim Meyering  <meyering@ascend.com>
32276
32277         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
32278
32279 1999-03-12  Jim Meyering  <meyering@ascend.com>
32280
32281         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
32282
32283 1999-03-07  Jim Meyering  <meyering@ascend.com>
32284
32285         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
32286         declared.
32287
32288 1999-02-17  Jim Meyering  <meyering@ascend.com>
32289
32290         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
32291         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
32292
32293 1999-02-07  Jim Meyering  <meyering@ascend.com>
32294
32295         * m4/group-member.m4: New file -- extracted from sh-utils'
32296         configure.in.
32297
32298         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
32299         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
32300
32301 1999-02-06  Jim Meyering  <meyering@ascend.com>
32302
32303         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
32304         * m4/fnmatch.m4: Likewise.
32305         * m4/getgroups.m4: Likewise.
32306         * m4/lstat.m4: Likewise.
32307         * m4/malloc.m4: Likewise.
32308         * m4/putenv.m4: Likewise.
32309         * m4/realloc.m4: Likewise.
32310         * m4/regex.m4: Likewise.
32311         * m4/stat.m4: Likewise.
32312         * m4/strftime.m4: Likewise.
32313         Suggestion from Alain Magloire.
32314
32315         * m4/chown.m4: Use `.$ac_objext', not `.o'.
32316         * m4/fnmatch.m4: Likewise.
32317         * m4/getgroups.m4: Likewise.
32318         * m4/getline.m4: Likewise.
32319         * m4/lstat.m4: Likewise.
32320         * m4/malloc.m4: Likewise.
32321         * m4/memcmp.m4: Likewise.
32322         * m4/putenv.m4: Likewise.
32323         * m4/realloc.m4: Likewise.
32324         * m4/regex.m4: Likewise.
32325         * m4/stat.m4: Likewise.
32326         * m4/strftime.m4: Likewise.
32327         Suggestion from Alain Magloire.
32328
32329         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
32330         an argument.
32331
32332         * m4/regex.m4: Add a run-time Test for proper operation of
32333         re_compile_pattern.
32334
32335 1999-01-31  Jim Meyering  <meyering@ascend.com>
32336
32337         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
32338
32339 1999-01-30  Jim Meyering  <meyering@ascend.com>
32340
32341         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
32342
32343         * m4/jm-mktime.m4: Make this a wrapper around the official
32344         AM_FUNC_MKTIME rather than my private copy, now that the official one
32345         is up to date.
32346         * m4/mktime.m4: Remove file.
32347
32348         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
32349         * m4/uptime.m4: Likewise.
32350         * m4/uintmax_t.m4: Likewise.
32351
32352 1999-01-28  Jim Meyering  <meyering@ascend.com>
32353
32354         * m4/jm-macros.m4: Use jm_AFS.
32355         * m4/afs.m4: New file (from fileutils' configure.in).
32356
32357         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
32358         * m4/chown.m4: Likewise.
32359         * m4/d-ino.m4: Likewise.
32360         * m4/d-type.m4: Likewise.
32361         * m4/fnmatch.m4: Likewise.
32362         * m4/getgroups.m4: Likewise.
32363         * m4/gettext.m4: Likewise.
32364         * m4/jm-mktime.m4: Likewise.
32365         * m4/jm-winsz2.m4: Likewise.
32366         * m4/lcmessage.m4: Likewise.
32367         * m4/ls-mntd-fs.m4: Likewise.
32368         * m4/malloc.m4: Likewise.
32369         * m4/memcmp.m4: Likewise.
32370         * m4/putenv.m4: Likewise.
32371         * m4/realloc.m4: Likewise.
32372         * m4/st_mtim.m4: Likewise.
32373         * m4/strftime.m4: Likewise.
32374
32375 1999-01-16  Jim Meyering  <meyering@ascend.com>
32376
32377         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
32378         (ARGMATCH_DIE_DECL): Define.
32379
32380 1999-01-12  Jim Meyering  <meyering@ascend.com>
32381
32382         * m4/Makefile.am.in: Rewrite to avoid using fmt.
32383         Reported by Lars Hecking.
32384
32385 1999-01-10  Jim Meyering  <meyering@ascend.com>
32386
32387         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
32388         gross kludge.
32389         * m4/inttypes_h.m4: Likewise.
32390         * m4/lstat.m4: Likewise.
32391         * m4/malloc.m4: Likewise.
32392         * m4/readdir.m4: Likewise.
32393         * m4/realloc.m4: Likewise.
32394         * m4/st_dm_mode.m4: Likewise.
32395         * m4/stat.m4: Likewise.
32396         * m4/utimbuf.m4: Likewise.
32397         * m4/utimes.m4: Likewise.
32398
32399         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
32400         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
32401         comments in config.h.in are meaningful.
32402
32403         * m4/jm-macros.m4: Require autoconf-2.13 here.
32404
32405         * m4/regex.m4: By default, don't use the included regex.c on systems
32406         with glibc 2.  Suggestion from Uli Drepper.
32407
32408 1999-01-02  Jim Meyering  <meyering@ascend.com>
32409
32410         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
32411
32412 1998-12-18  Jim Meyering  <meyering@ascend.com>
32413
32414         * m4/Makefile.am.in (Makefile.am): Simplify rule.
32415         Based on a suggestion from Lars Hecking.
32416
32417 1998-11-16  Paul Eggert  <eggert@twinsun.com>
32418
32419         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
32420
32421 1998-11-16  Jim Meyering  <meyering@ascend.com>
32422
32423         * m4/lfs.m4: Double-quote the `uname...` expression.
32424
32425 1998-11-14  Jim Meyering  <meyering@ascend.com>
32426
32427         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
32428         * m4/stat.m4: Likewise.
32429
32430 1998-11-03  Jim Meyering  <meyering@ascend.com>
32431
32432         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
32433         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
32434
32435 1998-10-18  Jim Meyering  <meyering@ascend.com>
32436
32437         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
32438
32439 1998-10-17  Jim Meyering  <meyering@ascend.com>
32440
32441         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
32442         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
32443         calls for those previously hard-coded headers.  Instead, take a new
32444         parameter.
32445         (jm_CHECK_DECLARATIONS): Reflect interface change.
32446         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
32447         (jm_CHECK_DECL_LOCALTIME_R): New macro.
32448
32449         * m4/mktime.m4: Test for spring-forward gap before long-running test.
32450
32451 1998-10-14  Jim Meyering  <meyering@ascend.com>
32452
32453         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
32454         instead of "TZ=America/Vancouver".  From Paul Eggert.
32455
32456 1998-10-11  Jim Meyering  <meyering@ascend.com>
32457
32458         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
32459         This adds a test for a recently added compatibility fix for mktime.c.
32460         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
32461
32462 1998-09-27  Jim Meyering  <meyering@ascend.com>
32463
32464         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
32465
32466         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
32467         ../configure.in, including a change from Gordon Matzigkeit to allow
32468         cross-compiling for the Hurd.
32469
32470         * m4/glibc.m4: New file/macro to test for the GNU C Library
32471         versions 1 and 2.  From Gordon Matzigkeit.
32472         Indent.
32473
32474 1998-09-21  Jim Meyering  <meyering@ascend.com>
32475
32476         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
32477
32478 1998-08-18  Paul Eggert  <eggert@twinsun.com>
32479
32480         Port nanosecond-resolution times to UnixWare 2.1.2 and
32481         pedantic Solaris 2.6.
32482
32483         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
32484         AC_STRUCT_ST_MTIM.
32485         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
32486         Generate name of ns member, instead of just 1 or undef.
32487         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
32488
32489 1998-08-15  Jim Meyering  <meyering@ascend.com>
32490
32491         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
32492         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
32493         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
32494         instead of jm_TYPE_SSIZE_T.
32495
32496 1998-08-12  Jim Meyering  <meyering@ascend.com>
32497
32498         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
32499
32500 1998-08-02  Jim Meyering  <meyering@ascend.com>
32501
32502         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
32503         in acconfig.h manually.
32504
32505 1998-07-31  Paul Eggert  <eggert@twinsun.com>
32506
32507         * m4/st_mtim.m4: New file.
32508
32509 1998-07-28  Jim Meyering  <meyering@ascend.com>
32510
32511         * m4/utimes.m4: Undef stat.
32512
32513 1998-07-25  Jim Meyering  <meyering@ascend.com>
32514
32515         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
32516         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
32517
32518 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
32519
32520         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
32521         uid and gid actually remain unchanged.
32522
32523 1998-07-07  Jim Meyering  <meyering@ascend.com>
32524
32525         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
32526
32527 1998-07-04  Jim Meyering  <meyering@ascend.com>
32528
32529         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
32530         to prove that this macro can be used in packages without regex.c.
32531
32532 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
32533
32534         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
32535         is to be used.
32536
32537 1998-07-03  Jim Meyering  <meyering@ascend.com>
32538
32539         * m4/gettext.m4: Add -lintl if it's found to be necessary.
32540
32541         * m4/gettext.m4: New file -- from gettext-0.10.35.
32542         * m4/lcmessage.m4: Likewise.
32543         * m4/progtest.m4: Likewise.
32544
32545         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
32546         * m4/jm-macros.m4: Require the new macro.
32547
32548 1998-06-29  Jim Meyering  <meyering@ascend.com>
32549
32550         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
32551         for the definition of NGROUPS (used in a system header included
32552         by sys/mount.h).
32553
32554 1998-06-28  Jim Meyering  <meyering@ascend.com>
32555
32556         * m4/ls-mntd-fs.m4: New file.
32557         * m4/fstypename.m4: New file.
32558
32559         * m4/jm-macros.m4: Require the new macro.
32560         * m4/jm-glibc-io.m4: New file.
32561
32562 1998-05-19  Jim Meyering  <meyering@ascend.com>
32563
32564         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
32565         * m4/lchown.m4: New file.
32566
32567         * m4/Makefile.am.in: New file.
32568         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
32569
32570 1998-05-14  Jim Meyering  <meyering@ascend.com>
32571
32572         * m4/Makefile.am (EXTRA_DIST): Add them.
32573         * m4/jm-macros.m4: New file.
32574         * m4/utimbuf.m4: New file.
32575
32576 1998-05-12  Jim Meyering  <meyering@ascend.com>
32577
32578         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
32579
32580 1998-05-11  Jim Meyering  <meyering@ascend.com>
32581
32582         * m4/isc-posix.m4: New file.
32583
32584 1998-05-10  Jim Meyering  <meyering@ascend.com>